Files
cloud-mail/mail-worker/dist/assets/iconify-py6I6n_h.js
2025-08-28 22:28:00 +08:00

2 lines
20 KiB
JavaScript

import{cs as Ie,bx as z,bE as ve,a as we,K as G}from"./index-BtzXKQwE.js";var Se=/\s/;function Te(e){for(var t=e.length;t--&&Se.test(e.charAt(t)););return t}var ke=/^\s+/;function Ce(e){return e&&e.slice(0,Te(e)+1).replace(ke,"")}var K=NaN,Ee=/^[-+]0x[0-9a-f]+$/i,Pe=/^0b[01]+$/i,je=/^0o[0-7]+$/i,Le=parseInt;function X(e){if(typeof e=="number")return e;if(Ie(e))return K;if(z(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=z(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ce(e);var i=Pe.test(e);return i||je.test(e)?Le(e.slice(2),i?2:8):Ee.test(e)?K:+e}var _=function(){return ve.Date.now()},Oe="Expected a function",Fe=Math.max,Ae=Math.min;function Mt(e,t,i){var o,n,r,s,c,l,f=0,d=!1,h=!1,p=!0;if(typeof e!="function")throw new TypeError(Oe);t=X(t)||0,z(i)&&(d=!!i.leading,h="maxWait"in i,r=h?Fe(X(i.maxWait)||0,t):r,p="trailing"in i?!!i.trailing:p);function y(u){var g=o,w=n;return o=n=void 0,f=u,s=e.apply(w,g),s}function I(u){return f=u,c=setTimeout(v,t),d?y(u):s}function m(u){var g=u-l,w=u-f,k=t-g;return h?Ae(k,r-w):k}function a(u){var g=u-l,w=u-f;return l===void 0||g>=t||g<0||h&&w>=r}function v(){var u=_();if(a(u))return S(u);c=setTimeout(v,m(u))}function S(u){return c=void 0,p&&o?y(u):(o=n=void 0,s)}function x(){c!==void 0&&clearTimeout(c),f=0,o=l=n=c=void 0}function b(){return c===void 0?s:S(_())}function T(){var u=_(),g=a(u);if(o=arguments,n=this,l=u,g){if(c===void 0)return I(l);if(h)return clearTimeout(c),c=setTimeout(v,t),y(l)}return c===void 0&&(c=setTimeout(v,t)),s}return T.cancel=x,T.flush=b,T}const fe=/^[a-z0-9]+(-[a-z0-9]+)*$/,N=(e,t,i,o="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;o=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const c=n.pop(),l=n.pop(),f={provider:n.length>0?n[0]:o,prefix:l,name:c};return t&&!O(f)?null:f}const r=n[0],s=r.split("-");if(s.length>1){const c={provider:o,prefix:s.shift(),name:s.join("-")};return t&&!O(c)?null:c}if(i&&o===""){const c={provider:o,prefix:"",name:r};return t&&!O(c,i)?null:c}return null},O=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,ue=Object.freeze({left:0,top:0,width:16,height:16}),M=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),R=Object.freeze({...ue,...M}),Q=Object.freeze({...R,body:"",hidden:!1});function Me(e,t){const i={};!e.hFlip!=!t.hFlip&&(i.hFlip=!0),!e.vFlip!=!t.vFlip&&(i.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(i.rotate=o),i}function J(e,t){const i=Me(e,t);for(const o in Q)o in M?o in e&&!(o in i)&&(i[o]=M[o]):o in t?i[o]=t[o]:o in e&&(i[o]=e[o]);return i}function Ne(e,t){const i=e.icons,o=e.aliases||Object.create(null),n=Object.create(null);function r(s){if(i[s])return n[s]=[];if(!(s in n)){n[s]=null;const c=o[s]&&o[s].parent,l=c&&r(c);l&&(n[s]=[c].concat(l))}return n[s]}return Object.keys(i).concat(Object.keys(o)).forEach(r),n}function Re(e,t,i){const o=e.icons,n=e.aliases||Object.create(null);let r={};function s(c){r=J(o[c]||n[c],r)}return s(t),i.forEach(s),J(e,r)}function ae(e,t){const i=[];if(typeof e!="object"||typeof e.icons!="object")return i;e.not_found instanceof Array&&e.not_found.forEach(n=>{t(n,null),i.push(n)});const o=Ne(e);for(const n in o){const r=o[n];r&&(t(n,Re(e,n,r)),i.push(n))}return i}const _e={provider:"",aliases:{},not_found:{},...ue};function D(e,t){for(const i in t)if(i in e&&typeof e[i]!=typeof t[i])return!1;return!0}function de(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!D(e,_e))return null;const i=t.icons;for(const n in i){const r=i[n];if(!n||typeof r.body!="string"||!D(r,Q))return null}const o=t.aliases||Object.create(null);for(const n in o){const r=o[n],s=r.parent;if(!n||typeof s!="string"||!i[s]&&!o[s]||!D(r,Q))return null}return t}const Y=Object.create(null);function De(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function E(e,t){const i=Y[e]||(Y[e]=Object.create(null));return i[t]||(i[t]=De(e,t))}function he(e,t){return de(t)?ae(t,(i,o)=>{o?e.icons[i]=o:e.missing.add(i)}):[]}function $e(e,t,i){try{if(typeof i.body=="string")return e.icons[t]={...i},!0}catch{}return!1}let L=!1;function pe(e){return typeof e=="boolean"&&(L=e),L}function ze(e){const t=typeof e=="string"?N(e,!0,L):e;if(t){const i=E(t.provider,t.prefix),o=t.name;return i.icons[o]||(i.missing.has(o)?null:void 0)}}function Qe(e,t){const i=N(e,!0,L);if(!i)return!1;const o=E(i.provider,i.prefix);return t?$e(o,i.name,t):(o.missing.add(i.name),!0)}function Ue(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),L&&!t&&!e.prefix){let n=!1;return de(e)&&(e.prefix="",ae(e,(r,s)=>{Qe(r,s)&&(n=!0)})),n}const i=e.prefix;if(!O({prefix:i,name:"a"}))return!1;const o=E(t,i);return!!he(o,e)}const ge=Object.freeze({width:null,height:null}),me=Object.freeze({...ge,...M}),qe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,He=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Z(e,t,i){if(t===1)return e;if(i=i||100,typeof e=="number")return Math.ceil(e*t*i)/i;if(typeof e!="string")return e;const o=e.split(qe);if(o===null||!o.length)return e;const n=[];let r=o.shift(),s=He.test(r);for(;;){if(s){const c=parseFloat(r);isNaN(c)?n.push(r):n.push(Math.ceil(c*t*i)/i)}else n.push(r);if(r=o.shift(),r===void 0)return n.join("");s=!s}}function We(e,t="defs"){let i="";const o=e.indexOf("<"+t);for(;o>=0;){const n=e.indexOf(">",o),r=e.indexOf("</"+t);if(n===-1||r===-1)break;const s=e.indexOf(">",r);if(s===-1)break;i+=e.slice(n+1,r).trim(),e=e.slice(0,o).trim()+e.slice(s+1)}return{defs:i,content:e}}function Be(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Ve(e,t,i){const o=We(e);return Be(o.defs,t+o.content+i)}const Ge=e=>e==="unset"||e==="undefined"||e==="none";function Ke(e,t){const i={...R,...e},o={...me,...t},n={left:i.left,top:i.top,width:i.width,height:i.height};let r=i.body;[i,o].forEach(m=>{const a=[],v=m.hFlip,S=m.vFlip;let x=m.rotate;v?S?x+=2:(a.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),a.push("scale(-1 1)"),n.top=n.left=0):S&&(a.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),a.push("scale(1 -1)"),n.top=n.left=0);let b;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:b=n.height/2+n.top,a.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:a.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:b=n.width/2+n.left,a.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}x%2===1&&(n.left!==n.top&&(b=n.left,n.left=n.top,n.top=b),n.width!==n.height&&(b=n.width,n.width=n.height,n.height=b)),a.length&&(r=Ve(r,'<g transform="'+a.join(" ")+'">',"</g>"))});const s=o.width,c=o.height,l=n.width,f=n.height;let d,h;s===null?(h=c===null?"1em":c==="auto"?f:c,d=Z(h,l/f)):(d=s==="auto"?l:s,h=c===null?Z(d,f/l):c==="auto"?f:c);const p={},y=(m,a)=>{Ge(a)||(p[m]=a.toString())};y("width",d),y("height",h);const I=[n.left,n.top,l,f];return p.viewBox=I.join(" "),{attributes:p,viewBox:I,body:r}}const Xe=/\sid="(\S+)"/g,Je="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ye=0;function Ze(e,t=Je){const i=[];let o;for(;o=Xe.exec(e);)i.push(o[1]);if(!i.length)return e;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return i.forEach(r=>{const s=typeof t=="function"?t(r):t+(Ye++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+s+n+"$3")}),e=e.replace(new RegExp(n,"g"),""),e}const U=Object.create(null);function et(e,t){U[e]=t}function q(e){return U[e]||U[""]}function W(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 B=Object.create(null),P=["https://api.simplesvg.com","https://api.unisvg.com"],F=[];for(;P.length>0;)P.length===1||Math.random()>.5?F.push(P.shift()):F.push(P.pop());B[""]=W({resources:["https://api.iconify.design"].concat(F)});function tt(e,t){const i=W(t);return i===null?!1:(B[e]=i,!0)}function V(e){return B[e]}const nt=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ee=nt();function it(e,t){const i=V(e);if(!i)return 0;let o;if(!i.maxURL)o=0;else{let n=0;i.resources.forEach(s=>{n=Math.max(n,s.length)});const r=t+".json?icons=";o=i.maxURL-n-i.path.length-r.length}return o}function ot(e){return e===404}const rt=(e,t,i)=>{const o=[],n=it(e,t),r="icons";let s={type:r,provider:e,prefix:t,icons:[]},c=0;return i.forEach((l,f)=>{c+=l.length+1,c>=n&&f>0&&(o.push(s),s={type:r,provider:e,prefix:t,icons:[]},c=l.length),s.icons.push(l)}),o.push(s),o};function st(e){if(typeof e=="string"){const t=V(e);if(t)return t.path}return"/"}const ct=(e,t,i)=>{if(!ee){i("abort",424);return}let o=st(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});o+=r+".json?"+l.toString();break}case"custom":{const r=t.uri;o+=r.slice(0,1)==="/"?r.slice(1):r;break}default:i("abort",400);return}let n=503;ee(e+o).then(r=>{const s=r.status;if(s!==200){setTimeout(()=>{i(ot(s)?"abort":"next",s)});return}return n=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?i("abort",r):i("next",n)});return}setTimeout(()=>{i("success",r)})}).catch(()=>{i("next",n)})},lt={prepare:rt,send:ct};function ft(e){const t={loaded:[],missing:[],pending:[]},i=Object.create(null);e.sort((n,r)=>n.provider!==r.provider?n.provider.localeCompare(r.provider):n.prefix!==r.prefix?n.prefix.localeCompare(r.prefix):n.name.localeCompare(r.name));let o={provider:"",prefix:"",name:""};return e.forEach(n=>{if(o.name===n.name&&o.prefix===n.prefix&&o.provider===n.provider)return;o=n;const r=n.provider,s=n.prefix,c=n.name,l=i[r]||(i[r]=Object.create(null)),f=l[s]||(l[s]=E(r,s));let d;c in f.icons?d=t.loaded:s===""||f.missing.has(c)?d=t.missing:d=t.pending;const h={provider:r,prefix:s,name:c};d.push(h)}),t}function ye(e,t){e.forEach(i=>{const o=i.loaderCallbacks;o&&(i.loaderCallbacks=o.filter(n=>n.id!==t))})}function ut(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let i=!1;const o=e.provider,n=e.prefix;t.forEach(r=>{const s=r.icons,c=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==n)return!0;const f=l.name;if(e.icons[f])s.loaded.push({provider:o,prefix:n,name:f});else if(e.missing.has(f))s.missing.push({provider:o,prefix:n,name:f});else return i=!0,!0;return!1}),s.pending.length!==c&&(i||ye([e],r.id),r.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),r.abort))})}))}let at=0;function dt(e,t,i){const o=at++,n=ye.bind(null,i,o);if(!t.pending.length)return n;const r={id:o,icons:t,callback:e,abort:n};return i.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(r)}),n}function ht(e,t=!0,i=!1){const o=[];return e.forEach(n=>{const r=typeof n=="string"?N(n,t,i):n;r&&o.push(r)}),o}var pt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function gt(e,t,i,o){const n=e.resources.length,r=e.random?Math.floor(Math.random()*n):e.index;let s;if(e.random){let u=e.resources.slice(0);for(s=[];u.length>1;){const g=Math.floor(Math.random()*u.length);s.push(u[g]),u=u.slice(0,g).concat(u.slice(g+1))}s=s.concat(u)}else s=e.resources.slice(r).concat(e.resources.slice(0,r));const c=Date.now();let l="pending",f=0,d,h=null,p=[],y=[];typeof o=="function"&&y.push(o);function I(){h&&(clearTimeout(h),h=null)}function m(){l==="pending"&&(l="aborted"),I(),p.forEach(u=>{u.status==="pending"&&(u.status="aborted")}),p=[]}function a(u,g){g&&(y=[]),typeof u=="function"&&y.push(u)}function v(){return{startTime:c,payload:t,status:l,queriesSent:f,queriesPending:p.length,subscribe:a,abort:m}}function S(){l="failed",y.forEach(u=>{u(void 0,d)})}function x(){p.forEach(u=>{u.status==="pending"&&(u.status="aborted")}),p=[]}function b(u,g,w){const k=g!=="success";switch(p=p.filter(C=>C!==u),l){case"pending":break;case"failed":if(k||!e.dataAfterTimeout)return;break;default:return}if(g==="abort"){d=w,S();return}if(k){d=w,p.length||(s.length?T():S());return}if(I(),x(),!e.random){const C=e.resources.indexOf(u.resource);C!==-1&&C!==e.index&&(e.index=C)}l="completed",y.forEach(C=>{C(w)})}function T(){if(l!=="pending")return;I();const u=s.shift();if(u===void 0){if(p.length){h=setTimeout(()=>{I(),l==="pending"&&(x(),S())},e.timeout);return}S();return}const g={status:"pending",resource:u,callback:(w,k)=>{b(g,w,k)}};p.push(g),f++,h=setTimeout(T,e.rotate),i(u,t,g.callback)}return setTimeout(T),v}function be(e){const t={...pt,...e};let i=[];function o(){i=i.filter(c=>c().status==="pending")}function n(c,l,f){const d=gt(t,c,l,(h,p)=>{o(),f&&f(h,p)});return i.push(d),d}function r(c){return i.find(l=>c(l))||null}return{query:n,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function te(){}const $=Object.create(null);function mt(e){if(!$[e]){const t=V(e);if(!t)return;const i=be(t),o={config:t,redundancy:i};$[e]=o}return $[e]}function yt(e,t,i){let o,n;if(typeof e=="string"){const r=q(e);if(!r)return i(void 0,424),te;n=r.send;const s=mt(e);s&&(o=s.redundancy)}else{const r=W(e);if(r){o=be(r);const s=e.resources?e.resources[0]:"",c=q(s);c&&(n=c.send)}}return!o||!n?(i(void 0,424),te):o.query(t,n,i)().abort}function ne(){}function bt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ut(e)}))}function xt(e){const t=[],i=[];return e.forEach(o=>{(o.match(fe)?t:i).push(o)}),{valid:t,invalid:i}}function j(e,t,i){function o(){const n=e.pendingIcons;t.forEach(r=>{n&&n.delete(r),e.icons[r]||e.missing.add(r)})}if(i&&typeof i=="object")try{if(!he(e,i).length){o();return}}catch(n){console.error(n)}o(),bt(e)}function ie(e,t){e instanceof Promise?e.then(i=>{t(i)}).catch(()=>{t(null)}):t(e)}function It(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:i,prefix:o}=e,n=e.iconsToLoad;if(delete e.iconsToLoad,!n||!n.length)return;const r=e.loadIcon;if(e.loadIcons&&(n.length>1||!r)){ie(e.loadIcons(n,o,i),d=>{j(e,n,d)});return}if(r){n.forEach(d=>{const h=r(d,o,i);ie(h,p=>{const y=p?{prefix:o,icons:{[d]:p}}:null;j(e,[d],y)})});return}const{valid:s,invalid:c}=xt(n);if(c.length&&j(e,c,null),!s.length)return;const l=o.match(fe)?q(i):null;if(!l){j(e,s,null);return}l.prepare(i,o,s).forEach(d=>{yt(i,d,h=>{j(e,d.icons,h)})})}))}const vt=(e,t)=>{const i=ht(e,!0,pe()),o=ft(i);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,ne)}),()=>{l=!1}}const n=Object.create(null),r=[];let s,c;return o.pending.forEach(l=>{const{provider:f,prefix:d}=l;if(d===c&&f===s)return;s=f,c=d,r.push(E(f,d));const h=n[f]||(n[f]=Object.create(null));h[d]||(h[d]=[])}),o.pending.forEach(l=>{const{provider:f,prefix:d,name:h}=l,p=E(f,d),y=p.pendingIcons||(p.pendingIcons=new Set);y.has(h)||(y.add(h),n[f][d].push(h))}),r.forEach(l=>{const f=n[l.provider][l.prefix];f.length&&It(l,f)}),t?dt(t,o,r):ne};function wt(e,t){const i={...e};for(const o in t){const n=t[o],r=typeof n;o in ge?(n===null||n&&(r==="string"||r==="number"))&&(i[o]=n):r===typeof i[o]&&(i[o]=o==="rotate"?n%4:n)}return i}const St=/[\s,]+/;function Tt(e,t){t.split(St).forEach(i=>{switch(i.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function kt(e,t=0){const i=e.replace(/^-?[0-9.]*/,"");function o(n){for(;n<0;)n+=4;return n%4}if(i===""){const n=parseInt(e);return isNaN(n)?0:o(n)}else if(i!==e){let n=0;switch(i){case"%":n=25;break;case"deg":n=90}if(n){let r=parseFloat(e.slice(0,e.length-i.length));return isNaN(r)?0:(r=r/n,r%1===0?o(r):0)}}return t}function Ct(e,t){let i=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)i+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+i+">"+e+"</svg>"}function Et(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Pt(e){return"data:image/svg+xml,"+Et(e)}function jt(e){return'url("'+Pt(e)+'")'}const oe={...me,inline:!1},Lt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ot={display:"inline-block"},H={backgroundColor:"currentColor"},xe={backgroundColor:"transparent"},re={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},se={webkitMask:H,mask:H,background:xe};for(const e in se){const t=se[e];for(const i in re)t[e+i]=re[i]}const A={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";A[e+"-flip"]=t,A[e.slice(0,1)+"-flip"]=t,A[e+"Flip"]=t});function ce(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const le=(e,t)=>{const i=wt(oe,t),o={...Lt},n=t.mode||"svg",r={},s=t.style,c=typeof s=="object"&&!(s instanceof Array)?s:{};for(let m in t){const a=t[m];if(a!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":i[m]=a===!0||a==="true"||a===1;break;case"flip":typeof a=="string"&&Tt(i,a);break;case"color":r.color=a;break;case"rotate":typeof a=="string"?i[m]=kt(a):typeof a=="number"&&(i[m]=a);break;case"ariaHidden":case"aria-hidden":a!==!0&&a!=="true"&&delete o["aria-hidden"];break;default:{const v=A[m];v?(a===!0||a==="true"||a===1)&&(i[v]=!0):oe[m]===void 0&&(o[m]=a)}}}const l=Ke(e,i),f=l.attributes;if(i.inline&&(r.verticalAlign="-0.125em"),n==="svg"){o.style={...r,...c},Object.assign(o,f);let m=0,a=t.id;return typeof a=="string"&&(a=a.replace(/-/g,"_")),o.innerHTML=Ze(l.body,a?()=>a+"ID"+m++:"iconifyVue"),G("svg",o)}const{body:d,width:h,height:p}=e,y=n==="mask"||(n==="bg"?!1:d.indexOf("currentColor")!==-1),I=Ct(d,{...f,width:h+"",height:p+""});return o.style={...r,"--svg":jt(I),width:ce(f.width),height:ce(f.height),...Ot,...y?H:xe,...c},G("span",o)};pe(!0);et("",lt);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,i="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ue(o))&&console.error(i)}catch{console.error(i)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let i in t){const o="IconifyProviders["+i+"] is invalid.";try{const n=t[i];if(typeof n!="object"||!n||n.resources===void 0)continue;tt(i,n)||console.error(o)}catch{console.error(o)}}}}const Ft={...R,body:""},Nt=we({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t,i){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let o;if(typeof e!="string"||(o=N(e,!1,!0))===null)return this.abortLoading(),null;let n=ze(o);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:vt([o],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),i){n=Object.assign({},n);const s=i(n.body,o.name,o.prefix,o.provider);typeof s=="string"&&(n.body=s)}const r=["iconify"];return o.prefix!==""&&r.push("iconify--"+o.prefix),o.provider!==""&&r.push("iconify--"+o.provider),{data:n,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!t)return le(Ft,e);let i=e;return t.classes&&(i={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),le({...R,...t.data},i)}});export{Nt as I,Mt as d};