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(/