const t=new Map,n="#05c9ac";function e(e){const r=function(t){if(!t||"string"!=typeof t)return n;let e=t.trim();if(e.startsWith("#")||(e=`#${e}`),/^#[0-9A-Fa-f]{6}$/.test(e))return e;if(/^#[0-9A-Fa-f]{3}$/.test(e)){const t=e[1],n=e[2],r=e[3];return`#${t}${t}${n}${n}${r}${r}`}return n}(e||"");if(t.has(r))return t.get(r);if("undefined"==typeof document)return t.set(r,""),"";const f=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(`\n\n\n\n`)}`;return t.set(r,f),f}const r=120;function f(t,n){const e=t.venue_type_color;return e&&"string"==typeof e&&function(t){if(!t||"string"!=typeof t)return null;let n=t.trim();n.startsWith("#")||(n=`#${n}`);const e=n.match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i);if(!e)return null;let r=e[1];return 3===r.length&&(r=`${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}`),r.toLowerCase()}(e.trim())?e.trim():n()}export{r as S,e as g,f as t};