var B=Object.defineProperty;var P=(e,a,l)=>a in e?B(e,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[a]=l;var C=(e,a,l)=>P(e,typeof a!="symbol"?a+"":a,l);import{aa as H,C as I,V as O,_ as j,x as L,h as R}from"./index-BLqts8WY.js";function d(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function T(e){var a,l,i,n,t,c,f;const r=(a=e.meta)===null||a===void 0?void 0:a.title,u=(l=e.meta)===null||l===void 0?void 0:l.creator,s=(i=e.meta)===null||i===void 0?void 0:i.source,o=(t=(n=e.meta)===null||n===void 0?void 0:n.license)===null||t===void 0?void 0:t.url,h=E(e);return!r&&!u&&!s&&!o&&!h?"":''+(r?`${d(r)}`:"")+(u?`${d(u)}`:"")+(s?`${d((f=(c=e.meta)===null||c===void 0?void 0:c.source)!==null&&f!==void 0?f:"")}`:"")+(o?`${d(o)}`:"")+(h?`${d(h)}`:"")+""}function E(e){var a,l,i,n,t,c,f,r,u,s,o,h,p,_,y;let g=!((a=e.meta)===null||a===void 0)&&a.title?`„${(l=e.meta)===null||l===void 0?void 0:l.title}”`:"Design",Z=`„${(n=(i=e.meta)===null||i===void 0?void 0:i.creator)!==null&&n!==void 0?n:"Unknown"}”`;!((t=e.meta)===null||t===void 0)&&t.source&&(g+=` (${e.meta.source})`);let b="";return((f=(c=e.meta)===null||c===void 0?void 0:c.license)===null||f===void 0?void 0:f.name)!=="MIT"&&((r=e.meta)===null||r===void 0?void 0:r.creator)!=="DiceBear"&&(!((u=e.meta)===null||u===void 0)&&u.title)&&(b+="Remix of "),b+=`${g} by ${Z}`,!((o=(s=e.meta)===null||s===void 0?void 0:s.license)===null||o===void 0)&&o.name&&(b+=`, licensed under „${(p=(h=e.meta)===null||h===void 0?void 0:h.license)===null||p===void 0?void 0:p.name}”`,!((y=(_=e.meta)===null||_===void 0?void 0:_.license)===null||y===void 0)&&y.url&&(b+=` (${e.meta.license.url})`)),b}function G(e){var a,l,i,n,t,c,f,r,u;const s=E(e);return{"IPTC:ObjectName":(a=e.meta)===null||a===void 0?void 0:a.title,"XMP-dc:Title":(l=e.meta)===null||l===void 0?void 0:l.title,"IPTC:CopyrightNotice":s,"XMP-dc:Rights":s,"IPTC:By-line":(i=e.meta)===null||i===void 0?void 0:i.creator,"XMP-dc:Creator":(n=e.meta)===null||n===void 0?void 0:n.creator,"IPTC:Credit":(t=e.meta)===null||t===void 0?void 0:t.creator,"XMP-photoshop:Credit":(c=e.meta)===null||c===void 0?void 0:c.creator,"XMP-plus:LicensorURL":(f=e.meta)===null||f===void 0?void 0:f.source,"XMP-xmpRights:WebStatement":(u=(r=e.meta)===null||r===void 0?void 0:r.license)===null||u===void 0?void 0:u.url}}const S=-2147483648,W=2147483647;function N(e){return e^=e<<13,e^=e>>17,e^=e<<5,e}function X(e){let a=0;for(let l=0;la=N(a),i=(n,t)=>Math.floor((l()-S)/(W-S)*(t+1-n)+n);return{seed:e,next:l,bool(n=50){return i(0,100)<=n},integer(n,t){return i(n,t)},pick(n,t){var c;return n.length===0?(l(),t):(c=n[i(0,n.length-1)])!==null&&c!==void 0?c:t},shuffle(n){const t=w(l().toString());return n.sort(()=>t.integer(-1,1))},string(n,t="abcdefghijklmnopqrstuvwxyz1234567890"){const c=w(l().toString());let f="";for(let r=0;r`;switch(i){case"solid":return u+e.body;case"gradientLinear":return``+e.body}}function Y(e,a){let{width:l,height:i,x:n,y:t}=$(e),c=a?(a-100)/100:0,f=(l/2+n)*c*-1,r=(i/2+t)*c*-1;return`${e.body}`}function J(e,a,l){let i=$(e),n=(i.width+i.x*2)*((a??0)/100),t=(i.height+i.y*2)*((l??0)/100);return`${e.body}`}function K(e,a){let{width:l,height:i,x:n,y:t}=$(e);return`${e.body}`}function Q(e){let{width:a,x:l}=$(e);return`${e.body}`}function e1(e,a){let{width:l,height:i,x:n,y:t}=$(e),c=a?l*a/100:0,f=a?i*a/100:0;return`${e.body}`}function a1(e){const a={xmlns:"http://www.w3.org/2000/svg",...e.attributes};return Object.keys(a).map(l=>`${d(l)}="${d(a[l])}"`).join(" ")}function l1(e){const a=w(Math.random().toString()),l={};return e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(i,n,t,c)=>(l[t]=l[t]||a.string(8),`${n}${l[t]}${c}`))}const n1={type:"object",$schema:"http://json-schema.org/draft-07/schema#",properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1,examples:[!0,!1]}}};function z(e){var a;let l={},i=(a=e.properties)!==null&&a!==void 0?a:{};return Object.keys(i).forEach(n=>{let t=i[n];typeof t=="object"&&t.default!==void 0&&(Array.isArray(t.default)?l[n]=[...t.default]:typeof t.default=="object"?l[n]={...t.default}:l[n]=t.default)}),l}function i1(e,a){var l;let i={...z(n1),...z((l=e.schema)!==null&&l!==void 0?l:{}),...a};return JSON.parse(JSON.stringify(i))}function V(e){switch(e){case"svg":return"image/svg+xml";case"png":case"jpeg":return`image/${e}`;default:throw new Error(`Unsupported format: ${e}`)}}function t1(e,a=512){let l=a;return e=e.replace(/]*)/,(i,n)=>{const t=n.match(/width="([^"]+)"/);return t&&(l=parseInt(t[1])),n.match(/width="([^"]+)"/)?n=n.replace(/width="([^"]+)"/,`width="${l}"`):n+=` width="${l}"`,n.match(/height="([^"]+)"/)?n=n.replace(/height="([^"]+)"/,`height="${l}"`):n+=` height="${l}"`,`F(e,a,l),toFile:i=>r1(i,e,a,l),toArrayBuffer:()=>d1(e,a,l)}};async function F(e,a,l){return a==="svg"?`data:${V(a)};utf8,${encodeURIComponent(e)}`:(await U(e,a,l)).toDataURL(V(a))}async function d1(e,a,l){if(a==="svg")return c1().encode(e);const i=await U(e,a,l);return await new Promise((n,t)=>{i.toBlob(c=>{c?n(c.arrayBuffer()):t(new Error("Could not create blob"))},V(a))})}async function r1(e,a,l,i){const n=document.createElement("a");n.href=await F(a,l,i),n.download=e,n.click(),n.remove()}async function U(e,a,l){l&&console.warn("The `exif` option is not supported in the browser version of `@dicebear/converter`. \nPlease use the node version of `@dicebear/converter` to generate images with exif data.");let{svg:i,size:n}=t1(e);const t=document.createElement("canvas");t.width=n,t.height=n;const c=t.getContext("2d");if(c===null)throw new Error("Could not get canvas context");a==="jpeg"&&(c.fillStyle="white",c.fillRect(0,0,n,n));var f=document.createElement("img");return f.width=n,f.height=n,f.setAttribute("src",await F(i,"svg")),new Promise((r,u)=>{f.onload=()=>{c.drawImage(f,0,0,n,n),r(t)},f.onerror=s=>u(s)})}function D(e){return e==="transparent"?e:`#${e}`}function f1(e,a){var l;let i;a.length<=2?(e.next(),i=a):i=e.shuffle(a),i.length===0&&(i=["transparent"]);const n=i[0],t=(l=i[1])!==null&&l!==void 0?l:i[0];return{primary:D(n),secondary:D(t)}}function u1(e,a={}){var l,i,n,t,c;a=i1(e,a);const f=w(a.seed),r=e.create({prng:f,options:a}),{primary:u,secondary:s}=f1(f,(l=a.backgroundColor)!==null&&l!==void 0?l:[]),o=f.pick((i=a.backgroundType)!==null&&i!==void 0?i:[],"solid"),h=f.integer(!((n=a.backgroundRotation)===null||n===void 0)&&n.length?Math.min(...a.backgroundRotation):0,!((t=a.backgroundRotation)===null||t===void 0)&&t.length?Math.max(...a.backgroundRotation):0);a.size&&(r.attributes.width=a.size.toString(),r.attributes.height=a.size.toString()),a.scale!==void 0&&a.scale!==100&&(r.body=Y(r,a.scale)),a.flip&&(r.body=Q(r)),a.rotate&&(r.body=K(r,a.rotate)),(a.translateX||a.translateY)&&(r.body=J(r,a.translateX,a.translateY)),u!=="transparent"&&s!=="transparent"&&(r.body=q(r,u,s,o,h)),(a.radius||a.clip)&&(r.body=e1(r,(c=a.radius)!==null&&c!==void 0?c:0)),a.randomizeIds&&(r.body=l1(r));const p=a1(r),_=T(e),y=G(e),g=`${_}${r.body}`;return{toString:()=>g,toJson:()=>{var Z;return{svg:g,extra:{primaryBackgroundColor:u,secondaryBackgroundColor:s,backgroundType:o,backgroundRotation:h,...(Z=r.extra)===null||Z===void 0?void 0:Z.call(r)}}},toDataUriSync:()=>`data:image/svg+xml;utf8,${encodeURIComponent(g)}`,...x(g,"svg"),png:({includeExif:Z=!1}={})=>x(g,"png",Z?y:void 0),jpeg:({includeExif:Z=!1}={})=>x(g,"jpeg",Z?y:void 0)}}const s1={circle:(e,a)=>{var l,i,n,t,c,f,r,u,s,o,h,p;return`${(i=(l=e.clothing)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.mouth)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}${(f=(c=e.nose)===null||c===void 0?void 0:c.value(e,a))!==null&&f!==void 0?f:""}${(u=(r=e.eyes)===null||r===void 0?void 0:r.value(e,a))!==null&&u!==void 0?u:""}${(o=(s=e.eyebrows)===null||s===void 0?void 0:s.value(e,a))!==null&&o!==void 0?o:""}${(p=(h=e.top)===null||h===void 0?void 0:h.value(e,a))!==null&&p!==void 0?p:""}`},default:(e,a)=>{var l,i,n,t,c,f,r,u,s,o,h,p;return`${(i=(l=e.clothing)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.mouth)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}${(f=(c=e.nose)===null||c===void 0?void 0:c.value(e,a))!==null&&f!==void 0?f:""}${(u=(r=e.eyes)===null||r===void 0?void 0:r.value(e,a))!==null&&u!==void 0?u:""}${(o=(s=e.eyebrows)===null||s===void 0?void 0:s.value(e,a))!==null&&o!==void 0?o:""}${(p=(h=e.top)===null||h===void 0?void 0:h.value(e,a))!==null&&p!==void 0?p:""}`}},o1={blazerAndShirt:(e,a)=>``,blazerAndSweater:(e,a)=>``,collarAndSweater:(e,a)=>``,graphicShirt:(e,a)=>{var l,i;return`${(i=(l=e.clothingGraphic)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}`},hoodie:(e,a)=>``,overall:(e,a)=>``,shirtCrewNeck:(e,a)=>``,shirtScoopNeck:(e,a)=>``,shirtVNeck:(e,a)=>``},h1={concerned:(e,a)=>'',default:(e,a)=>'',disbelief:(e,a)=>'',eating:(e,a)=>'',grimace:(e,a)=>'',sad:(e,a)=>'',screamOpen:(e,a)=>'',serious:(e,a)=>'',smile:(e,a)=>'',tongue:(e,a)=>'',twinkle:(e,a)=>'',vomit:(e,a)=>''},p1={default:(e,a)=>''},v1={closed:(e,a)=>'',cry:(e,a)=>'',default:(e,a)=>'',eyeRoll:(e,a)=>'',happy:(e,a)=>'',hearts:(e,a)=>'',side:(e,a)=>'',squint:(e,a)=>'',surprised:(e,a)=>'',winkWacky:(e,a)=>'',wink:(e,a)=>'',xDizzy:(e,a)=>''},g1={angryNatural:(e,a)=>'',defaultNatural:(e,a)=>'',flatNatural:(e,a)=>'',frownNatural:(e,a)=>'',raisedExcitedNatural:(e,a)=>'',sadConcernedNatural:(e,a)=>'',unibrowNatural:(e,a)=>'',upDownNatural:(e,a)=>'',angry:(e,a)=>'',default:(e,a)=>'',raisedExcited:(e,a)=>'',sadConcerned:(e,a)=>'',upDown:(e,a)=>''},Z1={eyepatch:(e,a)=>{var l,i;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}`},hat:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},hijab:(e,a)=>{var l,i;return`${(i=(l=e.accessories)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}`},turban:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},winterHat1:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},winterHat02:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},winterHat03:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},winterHat04:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},bob:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},bun:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},curly:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},curvy:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},dreads:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},frida:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},fro:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},froBand:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},longButNotTooLong:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},miaWallace:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},shavedSides:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},straight02:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},straight01:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},straightAndStrand:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},dreads01:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},dreads02:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},frizzle:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},shaggy:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},shaggyMullet:(e,a)=>{var l,i,n,t;return`${(i=(l=e.accessories)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.facialHair)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},shortCurly:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},shortFlat:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},shortRound:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},shortWaved:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},sides:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},theCaesar:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},theCaesarAndSidePart:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`},bigHair:(e,a)=>{var l,i,n,t;return`${(i=(l=e.facialHair)===null||l===void 0?void 0:l.value(e,a))!==null&&i!==void 0?i:""}${(t=(n=e.accessories)===null||n===void 0?void 0:n.value(e,a))!==null&&t!==void 0?t:""}`}},m1={beardLight:(e,a)=>``,beardMagestic:(e,a)=>``,beardMedium:(e,a)=>``,moustacheFancy:(e,a)=>``,moustacheMagnum:(e,a)=>``},M1={kurt:(e,a)=>``,prescription01:(e,a)=>``,prescription02:(e,a)=>``,round:(e,a)=>``,sunglasses:(e,a)=>``,wayfarers:(e,a)=>``},y1={bat:(e,a)=>'',bear:(e,a)=>'',cumbia:(e,a)=>'',deer:(e,a)=>'',diamond:(e,a)=>'',hola:(e,a)=>'',pizza:(e,a)=>'',resist:(e,a)=>'',skull:(e,a)=>'',skullOutline:(e,a)=>''},$1=Object.freeze(Object.defineProperty({__proto__:null,accessories:M1,clothing:o1,clothingGraphic:y1,eyebrows:g1,eyes:v1,facialHair:m1,mouth:h1,nose:p1,style:s1,top:Z1},Symbol.toStringTag,{value:"Module"}));function v({prng:e,group:a,values:l=[]}){const i=$1,n=e.pick(l);if(n&&i[a][n])return{name:n,value:i[a][n]}}function _1({prng:e,options:a}){const l=v({prng:e,group:"style",values:a.style}),i=v({prng:e,group:"clothing",values:a.clothing}),n=v({prng:e,group:"mouth",values:a.mouth}),t=v({prng:e,group:"nose",values:a.nose}),c=v({prng:e,group:"eyes",values:a.eyes}),f=v({prng:e,group:"eyebrows",values:a.eyebrows}),r=v({prng:e,group:"top",values:a.top}),u=v({prng:e,group:"facialHair",values:a.facialHair}),s=v({prng:e,group:"accessories",values:a.accessories}),o=v({prng:e,group:"clothingGraphic",values:a.clothingGraphic});return{style:l,clothing:i,mouth:n,nose:t,eyes:c,eyebrows:f,top:e.bool(a.topProbability)?r:void 0,facialHair:e.bool(a.facialHairProbability)?u:void 0,accessories:e.bool(a.accessoriesProbability)?s:void 0,clothingGraphic:o}}function m(e){return e==="transparent"?e:`#${e}`}function b1({prng:e,options:a}){var l,i,n,t,c,f,r;return{accessories:m(e.pick((l=a.accessoriesColor)!==null&&l!==void 0?l:[],"transparent")),clothes:m(e.pick((i=a.clothesColor)!==null&&i!==void 0?i:[],"transparent")),hat:m(e.pick((n=a.hatColor)!==null&&n!==void 0?n:[],"transparent")),hair:m(e.pick((t=a.hairColor)!==null&&t!==void 0?t:[],"transparent")),skin:m(e.pick((c=a.skinColor)!==null&&c!==void 0?c:[],"transparent")),facialHair:m(e.pick((f=a.facialHairColor)!==null&&f!==void 0?f:[],"transparent")),background:m(e.pick((r=a.backgroundColor)!==null&&r!==void 0?r:[],"transparent"))}}function C1({prng:e,options:a,components:l,colors:i}){var n,t;((n=l.style)===null||n===void 0?void 0:n.name)==="circle"&&(a.backgroundColor=[]),((t=l.style)===null||t===void 0?void 0:t.name)!=="circle"&&a.backgroundColor&&a.backgroundColor.length===1&&a.backgroundColor[0]==="65c9ff"&&(a.backgroundColor=[])}const A1={$schema:"http://json-schema.org/draft-07/schema#",properties:{accessories:{type:"array",items:{type:"string",enum:["kurt","prescription01","prescription02","round","sunglasses","wayfarers"]},default:["kurt","prescription01","prescription02","round","sunglasses","wayfarers"]},accessoriesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["262e33","65c9ff","5199e4","25557c","e6e6e6","929598","3c4f5c","b1e2ff","a7ffc4","ffdeb5","ffafb9","ffffb1","ff488e","ff5c5c","ffffff"]},accessoriesProbability:{type:"integer",minimum:0,maximum:100,default:10},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["65c9ff"]},clothesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["262e33","65c9ff","5199e4","25557c","e6e6e6","929598","3c4f5c","b1e2ff","a7ffc4","ffafb9","ffffb1","ff488e","ff5c5c","ffffff"]},clothing:{type:"array",items:{type:"string",enum:["blazerAndShirt","blazerAndSweater","collarAndSweater","graphicShirt","hoodie","overall","shirtCrewNeck","shirtScoopNeck","shirtVNeck"]},default:["blazerAndShirt","blazerAndSweater","collarAndSweater","graphicShirt","hoodie","overall","shirtCrewNeck","shirtScoopNeck","shirtVNeck"]},clothingGraphic:{type:"array",items:{type:"string",enum:["bat","bear","cumbia","deer","diamond","hola","pizza","resist","skull","skullOutline"]},default:["bat","bear","cumbia","deer","diamond","hola","pizza","resist","skull","skullOutline"]},eyebrows:{type:"array",items:{type:"string",enum:["angryNatural","defaultNatural","flatNatural","frownNatural","raisedExcitedNatural","sadConcernedNatural","unibrowNatural","upDownNatural","angry","default","raisedExcited","sadConcerned","upDown"]},default:["angryNatural","defaultNatural","flatNatural","frownNatural","raisedExcitedNatural","sadConcernedNatural","unibrowNatural","upDownNatural","angry","default","raisedExcited","sadConcerned","upDown"]},eyes:{type:"array",items:{type:"string",enum:["closed","cry","default","eyeRoll","happy","hearts","side","squint","surprised","winkWacky","wink","xDizzy"]},default:["closed","cry","default","eyeRoll","happy","hearts","side","squint","surprised","winkWacky","wink","xDizzy"]},facialHair:{type:"array",items:{type:"string",enum:["beardLight","beardMagestic","beardMedium","moustacheFancy","moustacheMagnum"]},default:["beardLight","beardMagestic","beardMedium","moustacheFancy","moustacheMagnum"]},facialHairColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["a55728","2c1b18","b58143","d6b370","724133","4a312c","f59797","ecdcbf","c93305","e8e1e1"]},facialHairProbability:{type:"integer",minimum:0,maximum:100,default:10},hairColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["a55728","2c1b18","b58143","d6b370","724133","4a312c","f59797","ecdcbf","c93305","e8e1e1"]},hatColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["262e33","65c9ff","5199e4","25557c","e6e6e6","929598","3c4f5c","b1e2ff","a7ffc4","ffdeb5","ffafb9","ffffb1","ff488e","ff5c5c","ffffff"]},mouth:{type:"array",items:{type:"string",enum:["concerned","default","disbelief","eating","grimace","sad","screamOpen","serious","smile","tongue","twinkle","vomit"]},default:["concerned","default","disbelief","eating","grimace","sad","screamOpen","serious","smile","tongue","twinkle","vomit"]},nose:{type:"array",items:{type:"string",enum:["default"]},default:["default"]},skinColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["614335","d08b5b","ae5d29","edb98a","ffdbb4","fd9841","f8d25c"]},style:{type:"array",items:{type:"string",enum:["circle","default"]},default:["default"]},top:{type:"array",items:{type:"string",enum:["eyepatch","hat","hijab","turban","winterHat1","winterHat02","winterHat03","winterHat04","bob","bun","curly","curvy","dreads","frida","fro","froBand","longButNotTooLong","miaWallace","shavedSides","straight02","straight01","straightAndStrand","dreads01","dreads02","frizzle","shaggy","shaggyMullet","shortCurly","shortFlat","shortRound","shortWaved","sides","theCaesar","theCaesarAndSidePart","bigHair"]},default:["eyepatch","hat","hijab","turban","winterHat1","winterHat02","winterHat03","winterHat04","bob","bun","curly","curvy","dreads","frida","fro","froBand","longButNotTooLong","miaWallace","shavedSides","straight02","straight01","straightAndStrand","dreads01","dreads02","frizzle","shaggy","shaggyMullet","shortCurly","shortFlat","shortRound","shortWaved","sides","theCaesar","theCaesarAndSidePart","bigHair"]},topProbability:{type:"integer",minimum:0,maximum:100,default:100}}},w1={title:"Avataaars",creator:"Pablo Stanley",source:"https://avataaars.com/",homepage:"https://twitter.com/pablostanley",license:{name:"Free for personal and commercial use",url:"https://avataaars.com/"}},H1=({prng:e,options:a})=>{var l,i;const n=_1({prng:e,options:a}),t=b1({prng:e,options:a});return C1({prng:e,options:a,components:n,colors:t}),{attributes:{viewBox:"0 0 280 280",fill:"none","shape-rendering":"auto"},body:`${(i=(l=n.style)===null||l===void 0?void 0:l.value(n,t))!==null&&i!==void 0?i:""}`,extra:()=>({...Object.entries(n).reduce((c,[f,r])=>(c[f]=r==null?void 0:r.name,c),{}),...Object.entries(t).reduce((c,[f,r])=>(c[`${f}Color`]=r,c),{})})}},k1=Object.freeze(Object.defineProperty({__proto__:null,create:H1,meta:w1,schema:A1},Symbol.toStringTag,{value:"Module"}));var x1=Object.defineProperty,V1=Object.getOwnPropertyDescriptor,A=(e,a,l,i)=>{for(var n=i>1?void 0:i?V1(a,l):a,t=e.length-1,c;t>=0;t--)(c=e[t])&&(n=(i?c(a,l,n):c(n))||n);return i&&n&&x1(a,l,n),n};let M=class extends O{constructor(){super(...arguments);C(this,"contact");C(this,"entityId","");C(this,"iconSize",0);C(this,"profileImageUrl","")}generateIcon(){var i,n;const l=((i=this.contact)==null?void 0:i.profileImageUrl)||this.profileImageUrl;if(l)return``;{const t=((n=this.contact)==null?void 0:n.did)||this.entityId;if(!t)return``;const c={seed:t||"",size:this.iconSize};return u1(k1,c).toString()}}};A([H],M.prototype,"contact",2);A([H],M.prototype,"entityId",2);A([H],M.prototype,"iconSize",2);A([H],M.prototype,"profileImageUrl",2);M=A([I],M);const F1=["innerHTML"];function S1(e,a,l,i,n,t){return L(),R("div",{innerHTML:e.generateIcon(),class:"w-fit"},null,8,F1)}const N1=j(M,[["render",S1]]);export{N1 as E};