import{n as e}from"./rolldown-runtime-BG2f4sTM.js";var t,n,r,i,a=e((()=>{t=Object.freeze({left:0,top:0,width:16,height:16}),n=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),r=Object.freeze({...t,...n}),i=Object.freeze({...r,body:``,hidden:!1})})),o,s,c=e((()=>{a(),o=Object.freeze({width:null,height:null}),s=Object.freeze({...o,...n})})),l,u,d=e((()=>{l=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!u(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!u(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!u(e,n)?null:e}return null},u=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1}));function f(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}var p=e((()=>{}));function m(e,t){let r=f(e,t);for(let a in i)a in n?a in e&&!(a in r)&&(r[a]=n[a]):a in t?r[a]=t[a]:a in e&&(r[a]=e[a]);return r}var h=e((()=>{a(),p()}));function g(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}var _=e((()=>{}));function v(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=m(r[e]||i[e],a)}return o(t),n.forEach(o),m(e,a)}function y(e,t){if(e.icons[t])return v(e,t,[]);let n=g(e,[t])[t];return n?v(e,t,n):null}var b=e((()=>{h(),_()}));function x(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(S);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=C.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}var S,C,w=e((()=>{S=/(-?[0-9.]*[0-9]+[0-9.]*)/g,C=/^-?[0-9.]*[0-9]+[0-9.]*$/g}));function T(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function E(e,t){return e?`<defs>`+e+`</defs>`+t:t}function D(e,t,n){let r=T(e);return E(r.defs,t+r.content+n)}var O=e((()=>{}));function k(e,t){let n={...r,...e},i={...s,...t},a={left:n.left,top:n.top,width:n.width,height:n.height},o=n.body;[n,i].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,i=e.rotate;n?r?i+=2:(t.push(`translate(`+(a.width+a.left).toString()+` `+(0-a.top).toString()+`)`),t.push(`scale(-1 1)`),a.top=a.left=0):r&&(t.push(`translate(`+(0-a.left).toString()+` `+(a.height+a.top).toString()+`)`),t.push(`scale(1 -1)`),a.top=a.left=0);let s;switch(i<0&&(i-=Math.floor(i/4)*4),i%=4,i){case 1:s=a.height/2+a.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(a.width/2+a.left).toString()+` `+(a.height/2+a.top).toString()+`)`);break;case 3:s=a.width/2+a.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}i%2==1&&(a.left!==a.top&&(s=a.left,a.left=a.top,a.top=s),a.width!==a.height&&(s=a.width,a.width=a.height,a.height=s)),t.length&&(o=D(o,`<g transform="`+t.join(` `)+`">`,`</g>`))});let c=i.width,l=i.height,u=a.width,d=a.height,f,p;c===null?(p=l===null?`1em`:l===`auto`?d:l,f=x(p,u/d)):(f=c===`auto`?u:c,p=l===null?x(f,d/u):l===`auto`?d:l);let m={},h=(e,t)=>{A(t)||(m[e]=t.toString())};h(`width`,f),h(`height`,p);let g=[a.left,a.top,u,d];return m.viewBox=g.join(` `),{attributes:m,viewBox:g,body:o}}var A,j=e((()=>{a(),c(),w(),O(),A=e=>e===`unset`||e===`undefined`||e===`none`}));function M(e,t=P){let n=[],r;for(;r=N.exec(e);)n.push(r[1]);if(!n.length)return e;let i=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(n=>{let r=typeof t==`function`?t(n):t+(F++).toString(),a=n.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+a+`)([")]|\\.[a-z])`,`g`),`$1`+r+i+`$3`)}),e=e.replace(new RegExp(i,`g`),``),e}var N,P,F,I=e((()=>{N=/\sid="(\S+)"/g,P=`IconifyId`+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),F=0}));function L(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}var R=e((()=>{})),z=e((()=>{d(),b(),j(),I(),R()}));function B(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
[	 ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
`)&&(o=String(e).split(`
`).map(function(e,t){return t===0?e:``+i+e}).join(`
`)),a+=o+n[t+1]}),a}var V=e((()=>{}));export{R as a,k as c,b as d,d as f,L as i,j as l,V as n,I as o,l as p,z as r,M as s,B as t,y as u};
//# sourceMappingURL=esm-B1fsB5y-.js.map