Spaces:
Running
Running
import{d as ke,e as ie,K as Qe,r as Ue,c as A,U as Ve,V as Ke,k as F,l as ce,G as _,I as le,B as Ge,J as Je,t as We,W as Xe,u as Ye,_ as Ze}from"./entry.9d7edd96.js";import{u as et}from"./config.5151e501.js";const Ae=Object.freeze({left:0,top:0,width:16,height:16}),je=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Y=Object.freeze({...Ae,...je});Object.freeze({...Y,body:"",hidden:!1});({...Ae});const Te=Object.freeze({width:null,height:null}),Pe=Object.freeze({...Te,...je});function tt(e,t){const n={...e};for(const s in t){const o=t[s],r=typeof o;s in Te?(o===null||o&&(r==="string"||r==="number"))&&(n[s]=o):r===typeof n[s]&&(n[s]=s==="rotate"?o%4:o)}return n}const nt=/[\s,]+/;function ot(e,t){t.split(nt).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function st(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function s(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:s(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r=r/o,r%1===0?s(r):0)}}return t}const rt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,it=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ae(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(rt);if(s===null||!s.length)return e;const o=[];let r=s.shift(),i=it.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?o.push(r):o.push(Math.ceil(c*t*n)/n)}else o.push(r);if(r=s.shift(),r===void 0)return o.join("");i=!i}}const ct=e=>e==="unset"||e==="undefined"||e==="none";function lt(e,t){const n={...Y,...e},s={...Pe,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(f=>{const d=[],h=f.hFlip,I=f.vFlip;let b=f.rotate;h?I?b+=2:(d.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),d.push("scale(-1 1)"),o.top=o.left=0):I&&(d.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),d.push("scale(1 -1)"),o.top=o.left=0);let v;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:v=o.height/2+o.top,d.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:d.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,d.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}b%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),d.length&&(r='<g transform="'+d.join(" ")+'">'+r+"</g>")});const i=s.width,c=s.height,l=o.width,a=o.height;let u,p;i===null?(p=c===null?"1em":c==="auto"?a:c,u=ae(p,l/a)):(u=i==="auto"?l:i,p=c===null?ae(u,a/l):c==="auto"?a:c);const g={},y=(f,d)=>{ct(d)||(g[f]=d.toString())};return y("width",u),y("height",p),g.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:g,body:r}}const at=/\sid="(\S+)"/g,ut="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ft=0;function dt(e,t=ut){const n=[];let s;for(;s=at.exec(e);)n.push(s[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof t=="function"?t(r):t+(ft++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function pt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function ht(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function gt(e){return"data:image/svg+xml,"+ht(e)}function mt(e){return'url("'+gt(e)+'")'}const ue={...Pe,inline:!1},yt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},bt={display:"inline-block"},U={backgroundColor:"currentColor"},Oe={backgroundColor:"transparent"},fe={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},de={webkitMask:U,mask:U,background:Oe};for(const e in de){const t=de[e];for(const n in fe)t[e+n]=fe[n]}const z={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";z[e+"-flip"]=t,z[e.slice(0,1)+"-flip"]=t,z[e+"Flip"]=t});function pe(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const vt=(e,t)=>{const n=tt(ue,t),s={...yt},o=t.mode||"svg",r={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let d in t){const h=t[d];if(h!==void 0)switch(d){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[d]=h===!0||h==="true"||h===1;break;case"flip":typeof h=="string"&&ot(n,h);break;case"color":r.color=h;break;case"rotate":typeof h=="string"?n[d]=st(h):typeof h=="number"&&(n[d]=h);break;case"ariaHidden":case"aria-hidden":h!==!0&&h!=="true"&&delete s["aria-hidden"];break;default:{const I=z[d];I?(h===!0||h==="true"||h===1)&&(n[I]=!0):ue[d]===void 0&&(s[d]=h)}}}const l=lt(e,n),a=l.attributes;if(n.inline&&(r.verticalAlign="-0.125em"),o==="svg"){s.style={...r,...c},Object.assign(s,a);let d=0,h=t.id;return typeof h=="string"&&(h=h.replace(/-/g,"_")),s.innerHTML=dt(l.body,h?()=>h+"ID"+d++:"iconifyVue"),ie("svg",s)}const{body:u,width:p,height:g}=e,y=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),f=pt(u,{...a,width:p+"",height:g+""});return s.style={...r,"--svg":mt(f),width:pe(a.width),height:pe(a.height),...bt,...y?U:Oe,...c},ie("span",s)},wt=Object.create(null),xt=ke({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?wt[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:vt({...Y,...n},e)}}),T=/^[a-z0-9]+(-[a-z0-9]+)*$/,D=(e,t,n,s="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;s=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:s,prefix:l,name:c};return t&&!L(a)?null:a}const r=o[0],i=r.split("-");if(i.length>1){const c={provider:s,prefix:i.shift(),name:i.join("-")};return t&&!L(c)?null:c}if(n&&s===""){const c={provider:s,prefix:"",name:r};return t&&!L(c,n)?null:c}return null},L=(e,t)=>e?!!((e.provider===""||e.provider.match(T))&&(t&&e.prefix===""||e.prefix.match(T))&&e.name.match(T)):!1,Ee=Object.freeze({left:0,top:0,width:16,height:16}),N=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Z=Object.freeze({...Ee,...N}),V=Object.freeze({...Z,body:"",hidden:!1});function It(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function he(e,t){const n=It(e,t);for(const s in V)s in N?s in e&&!(s in n)&&(n[s]=N[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function St(e,t){const n=e.icons,s=e.aliases||Object.create(null),o=Object.create(null);function r(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=s[i]&&s[i].parent,l=c&&r(c);l&&(o[i]=[c].concat(l))}return o[i]}return(t||Object.keys(n).concat(Object.keys(s))).forEach(r),o}function Ct(e,t,n){const s=e.icons,o=e.aliases||Object.create(null);let r={};function i(c){r=he(s[c]||o[c],r)}return i(t),n.forEach(i),he(e,r)}function Fe(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const s=St(e);for(const o in s){const r=s[o];r&&(t(o,Ct(e,o,r)),n.push(o))}return n}const kt={provider:"",aliases:{},not_found:{},...Ee};function H(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function _e(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!H(e,kt))return null;const n=t.icons;for(const o in n){const r=n[o];if(!o.match(T)||typeof r.body!="string"||!H(r,V))return null}const s=t.aliases||Object.create(null);for(const o in s){const r=s[o],i=r.parent;if(!o.match(T)||typeof i!="string"||!n[i]&&!s[i]||!H(r,V))return null}return t}const ge=Object.create(null);function At(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=ge[e]||(ge[e]=Object.create(null));return n[t]||(n[t]=At(e,t))}function ee(e,t){return _e(t)?Fe(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function jt(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let P=!1;function Me(e){return typeof e=="boolean"&&(P=e),P}function Tt(e){const t=typeof e=="string"?D(e,!0,P):e;if(t){const n=C(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function Pt(e,t){const n=D(e,!0,P);if(!n)return!1;const s=C(n.provider,n.prefix);return jt(s,n.name,t)}function Ot(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),P&&!t&&!e.prefix){let o=!1;return _e(e)&&(e.prefix="",Fe(e,(r,i)=>{i&&Pt(r,i)&&(o=!0)})),o}const n=e.prefix;if(!L({provider:t,prefix:n,name:"a"}))return!1;const s=C(t,n);return!!ee(s,e)}const Et=Object.freeze({width:null,height:null}),Ft=Object.freeze({...Et,...N});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const K=Object.create(null);function _t(e,t){K[e]=t}function G(e){return K[e]||K[""]}function te(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ne=Object.create(null),j=["https://api.simplesvg.com","https://api.unisvg.com"],$=[];for(;j.length>0;)j.length===1||Math.random()>.5?$.push(j.shift()):$.push(j.pop());ne[""]=te({resources:["https://api.iconify.design"].concat($)});function Mt(e,t){const n=te(t);return n===null?!1:(ne[e]=n,!0)}function oe(e){return ne[e]}const zt=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let me=zt();function Lt(e,t){const n=oe(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const r=t+".json?icons=";s=n.maxURL-o-n.path.length-r.length}return s}function $t(e){return e===404}const Nt=(e,t,n)=>{const s=[],o=Lt(e,t),r="icons";let i={type:r,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(s.push(i),i={type:r,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),s.push(i),s};function Dt(e){if(typeof e=="string"){const t=oe(e);if(t)return t.path}return"/"}const Rt=(e,t,n)=>{if(!me){n("abort",424);return}let s=Dt(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});s+=r+".json?"+l.toString();break}case"custom":{const r=t.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let o=503;me(e+s).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n($t(i)?"abort":"next",i)});return}return o=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",o)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",o)})},Bt={prepare:Nt,send:Rt};function Ht(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,r)=>o.provider!==r.provider?o.provider.localeCompare(r.provider):o.prefix!==r.prefix?o.prefix.localeCompare(r.prefix):o.name.localeCompare(r.name));let s={provider:"",prefix:"",name:""};return e.forEach(o=>{if(s.name===o.name&&s.prefix===o.prefix&&s.provider===o.provider)return;s=o;const r=o.provider,i=o.prefix,c=o.name,l=n[r]||(n[r]=Object.create(null)),a=l[i]||(l[i]=C(r,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const p={provider:r,prefix:i,name:c};u.push(p)}),t}function ze(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(o=>o.id!==t))})}function qt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const s=e.provider,o=e.prefix;t.forEach(r=>{const i=r.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:s,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:s,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ze([e],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let Qt=0;function Ut(e,t,n){const s=Qt++,o=ze.bind(null,n,s);if(!t.pending.length)return o;const r={id:s,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),o}function Vt(e,t=!0,n=!1){const s=[];return e.forEach(o=>{const r=typeof o=="string"?D(o,t,n):o;r&&s.push(r)}),s}var Kt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Gt(e,t,n,s){const o=e.resources.length,r=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const w=Math.floor(Math.random()*m.length);i.push(m[w]),m=m.slice(0,w).concat(m.slice(w+1))}i=i.concat(m)}else i=e.resources.slice(r).concat(e.resources.slice(0,r));const c=Date.now();let l="pending",a=0,u,p=null,g=[],y=[];typeof s=="function"&&y.push(s);function f(){p&&(clearTimeout(p),p=null)}function d(){l==="pending"&&(l="aborted"),f(),g.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),g=[]}function h(m,w){w&&(y=[]),typeof m=="function"&&y.push(m)}function I(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:g.length,subscribe:h,abort:d}}function b(){l="failed",y.forEach(m=>{m(void 0,u)})}function v(){g.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),g=[]}function qe(m,w,k){const E=w!=="success";switch(g=g.filter(S=>S!==m),l){case"pending":break;case"failed":if(E||!e.dataAfterTimeout)return;break;default:return}if(w==="abort"){u=k,b();return}if(E){u=k,g.length||(i.length?B():b());return}if(f(),v(),!e.random){const S=e.resources.indexOf(m.resource);S!==-1&&S!==e.index&&(e.index=S)}l="completed",y.forEach(S=>{S(k)})}function B(){if(l!=="pending")return;f();const m=i.shift();if(m===void 0){if(g.length){p=setTimeout(()=>{f(),l==="pending"&&(v(),b())},e.timeout);return}b();return}const w={status:"pending",resource:m,callback:(k,E)=>{qe(w,k,E)}};g.push(w),a++,p=setTimeout(B,e.rotate),n(m,t,w.callback)}return setTimeout(B),I}function Le(e){const t={...Kt,...e};let n=[];function s(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const u=Gt(t,c,l,(p,g)=>{s(),a&&a(p,g)});return n.push(u),u}function r(c){return n.find(l=>c(l))||null}return{query:o,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:s}}function ye(){}const q=Object.create(null);function Jt(e){if(!q[e]){const t=oe(e);if(!t)return;const n=Le(t),s={config:t,redundancy:n};q[e]=s}return q[e]}function Wt(e,t,n){let s,o;if(typeof e=="string"){const r=G(e);if(!r)return n(void 0,424),ye;o=r.send;const i=Jt(e);i&&(s=i.redundancy)}else{const r=te(e);if(r){s=Le(r);const i=e.resources?e.resources[0]:"",c=G(i);c&&(o=c.send)}}return!s||!o?(n(void 0,424),ye):s.query(t,o,n)().abort}const be="iconify2",O="iconify",$e=O+"-count",ve=O+"-version",Ne=36e5,Xt=168;function J(e,t){try{return e.getItem(t)}catch{}}function se(e,t,n){try{return e.setItem(t,n),!0}catch{}}function we(e,t){try{e.removeItem(t)}catch{}}function W(e,t){return se(e,$e,t.toString())}function X(e){return parseInt(J(e,$e))||0}const R={local:!0,session:!0},De={local:new Set,session:new Set};let re=!1;function Yt(e){re=e}let M=typeof window>"u"?{}:window;function Re(e){const t=e+"Storage";try{if(M&&M[t]&&typeof M[t].length=="number")return M[t]}catch{}R[e]=!1}function Be(e,t){const n=Re(e);if(!n)return;const s=J(n,ve);if(s!==be){if(s){const c=X(n);for(let l=0;l<c;l++)we(n,O+l.toString())}se(n,ve,be),W(n,0);return}const o=Math.floor(Date.now()/Ne)-Xt,r=c=>{const l=O+c.toString(),a=J(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}we(n,l)}};let i=X(n);for(let c=i-1;c>=0;c--)r(c)||(c===i-1?(i--,W(n,i)):De[e].add(c))}function He(){if(!re){Yt(!0);for(const e in R)Be(e,t=>{const n=t.data,s=t.provider,o=n.prefix,r=C(s,o);if(!ee(r,n).length)return!1;const i=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,i):i,!0})}}function Zt(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const s in R)Be(s,o=>{const r=o.data;return o.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t});return!0}function en(e,t){re||He();function n(s){let o;if(!R[s]||!(o=Re(s)))return;const r=De[s];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=X(o),!W(o,i+1))return;const c={cached:Math.floor(Date.now()/Ne),provider:e.provider,data:t};return se(o,O+i.toString(),JSON.stringify(c))}t.lastModified&&!Zt(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function xe(){}function tn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,qt(e)}))}function nn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:s}=e,o=e.iconsToLoad;delete e.iconsToLoad;let r;if(!o||!(r=G(n)))return;r.prepare(n,s,o).forEach(c=>{Wt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=ee(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(p=>{u.delete(p)}),en(e,l)}catch(a){console.error(a)}tn(e)})})}))}const on=(e,t)=>{const n=Vt(e,!0,Me()),s=Ht(n);if(!s.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(s.loaded,s.missing,s.pending,xe)}),()=>{l=!1}}const o=Object.create(null),r=[];let i,c;return s.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,r.push(C(a,u));const p=o[a]||(o[a]=Object.create(null));p[u]||(p[u]=[])}),s.pending.forEach(l=>{const{provider:a,prefix:u,name:p}=l,g=C(a,u),y=g.pendingIcons||(g.pendingIcons=new Set);y.has(p)||(y.add(p),o[a][u].push(p))}),r.forEach(l=>{const{provider:a,prefix:u}=l;o[a][u].length&&nn(l,o[a][u])}),t?Ut(t,s,r):xe},sn=e=>new Promise((t,n)=>{const s=typeof e=="string"?D(e,!0):e;if(!s){n(e);return}on([s||e],o=>{if(o.length&&s){const r=Tt(s);if(r){t({...Z,...r});return}}n(e)})});({...Ft});const Ie={backgroundColor:"currentColor"},rn={backgroundColor:"transparent"},Se={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ce={webkitMask:Ie,mask:Ie,background:rn};for(const e in Ce){const t=Ce[e];for(const n in Se)t[e+n]=Se[n]}const Q={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Q[e+"-flip"]=t,Q[e.slice(0,1)+"-flip"]=t,Q[e+"Flip"]=t});Me(!0);_t("",Bt);if(typeof document<"u"&&typeof window<"u"){He();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Ot(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const s="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Mt(n,o)||console.error(s)}catch{console.error(s)}}}}({...Z});function cn(e,t){return e??t()}function x(e){let t,n=e[0],s=1;for(;s<e.length;){const o=e[s],r=e[s+1];if(s+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=r(n)):(o==="call"||o==="optionalCall")&&(n=r((...i)=>n.call(t,...i)),t=void 0)}return n}const ln=["width","height"],an=ke({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const s=e,o=Ye(),r=et();x([r,"optionalAccess",f=>f.nuxtIcon,"optionalAccess",f=>f.aliases]);const i=Qe("icons",()=>({})),c=Ue(!1),l=A(()=>(x([r,"access",f=>f.nuxtIcon,"optionalAccess",f=>f.aliases])||{})[s.name]||s.name),a=A(()=>x([i,"access",f=>f.value,"optionalAccess",f=>f[l.value]])),u=A(()=>o.vueApp.component(l.value)),p=A(()=>{if(!s.size&&typeof x([r,"access",d=>d.nuxtIcon,"optionalAccess",d=>d.size])=="boolean"&&!x([r,"access",d=>d.nuxtIcon,"optionalAccess",d=>d.size]))return;const f=s.size||x([r,"access",d=>d.nuxtIcon,"optionalAccess",d=>d.size])||"1em";return String(Number(f))===f?`${f}px`:f}),g=A(()=>cn(x([r,"optionalAccess",f=>f.nuxtIcon,"optionalAccess",f=>f.class]),()=>"icon"));async function y(){u.value||x([i,"access",f=>f.value,"optionalAccess",f=>f[l.value]])||(c.value=!0,i.value[l.value]=await sn(l.value).catch(()=>{}),c.value=!1)}return Ve(()=>l.value,y),!u.value&&([t,n]=Ke(()=>y()),t=await t,n()),(f,d)=>c.value?(F(),ce("span",{key:0,class:_(g.value),width:p.value,height:p.value},null,10,ln)):a.value?(F(),le(Ge(xt),{key:1,icon:a.value,class:_(g.value),width:p.value,height:p.value},null,8,["icon","class","width","height"])):u.value?(F(),le(Je(u.value),{key:2,class:_(g.value),width:p.value,height:p.value},null,8,["class","width","height"])):(F(),ce("span",{key:3,class:_(g.value),style:Xe({fontSize:p.value,lineHeight:p.value,width:p.value,height:p.value})},We(e.name),7))}});const dn=Ze(an,[["__scopeId","data-v-f172b434"]]);export{dn as default}; | |