@unocss/runtime 66.5.12 → 66.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
3
  "type": "module",
4
- "version": "66.5.12",
4
+ "version": "66.6.0",
5
5
  "description": "CSS-in-JS Runtime for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -36,9 +36,9 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@iconify/utils": "^3.1.0",
39
- "@unocss/preset-attributify": "66.5.12",
40
- "@unocss/preset-uno": "66.5.12",
41
- "@unocss/core": "66.5.12"
39
+ "@unocss/core": "66.6.0",
40
+ "@unocss/preset-attributify": "66.6.0",
41
+ "@unocss/preset-uno": "66.6.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "tsup": "^8.5.1"
@@ -1 +1 @@
1
- "use strict";(()=>{var U=/^\[(.+?)~?="(.*)"\]$/;var T=/[\w\u00A0-\uFFFF%-?]/;function w(t){return t.match(U)}function E(t=""){return T.test(t)}var V=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function v(t={}){let d=t.prefix??"un-",o=t.prefixedOnly??!1,x=t.trueToNonValued??!1,l;return{name:"attributify",match(r,{generator:b}){let i=w(r);if(!i)return;let e=i[1];if(e.startsWith(d))e=e.slice(d.length);else if(o)return;let f=i[2],[,p="",n=f]=f.match(V)||[];if(n==="~"||x&&n==="true"||!n)return`${p}${e}`;if(l==null){let a=b?.config?.separators?.join("|");a?l=new RegExp(`^(.*\\](?:${a}))(\\[[^\\]]+?\\])$`):l=!1}if(l){let[,a,u]=f.match(l)||[];if(u)return`${a}${p}${e}-${u}`}if(p&&n.match(/^[\d.]+$/)){let a=p.split(/([^:]*:)/g).filter(Boolean),u=a.pop()+n,c=a.join("");return[{matcher:`${p}${e}-${n}`},{matcher:`${c}${e}-${u}`}]}return`${p}${e}-${n}`}}}var k=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,C=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,_=/[\s'"`;>]+/;function F(t){return{name:"attributify",extract:({content:d,cursor:o})=>{let x=d.matchAll(k),l,r=0;for(let s of x){let[,m,g]=s,A=s.index+m.length;if(o>A&&o<=A+g.length){r=A,l=g;break}}if(!l)return null;let b=l.matchAll(C),i=0,e,f;for(let s of b){let[m,g,A]=s,$=r+s.index;if(o>$&&o<=$+m.length){i=$,e=g,f=A?.slice(1);break}}if(!e||e==="class"||e==="className"||e===":class")return null;let p=!!t?.prefix&&e.startsWith(t.prefix);if(t?.prefixedOnly&&!p)return null;let n=p?e.slice(t.prefix.length):e;if(f===void 0)return{extracted:n,resolveReplacement(s){let m=p?t.prefix.length:0;return{start:i+m,end:i+e.length,replacement:s}}};let a=i+e.length+2,u=_.exec(f),c=0,h;for(;u;){let[s]=u;if(o>a+c&&o<=a+c+u.index){h=f.slice(c,c+u.index);break}c+=u.index+s.length,u=_.exec(f.slice(c))}h===void 0&&(h=f.slice(c));let[,y="",S]=h.match(V)||[];return{extracted:`${y}${n}-${S}`,transformSuggestions(s){return s.filter(m=>m.startsWith(`${y}${n}-`)).map(m=>y+m.slice(y.length+n.length+1))},resolveReplacement(s){return{start:c+a,end:c+a+h.length,replacement:y+s.slice(y.length+n.length+1)}}}}}}var W=["v-bind:",":"],P=/[\s'"`;]+/g,O=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,I=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,R=["placeholder","fill","opacity","stroke-opacity"];function N(t){let d=t?.ignoreAttributes??R,o=t?.nonValuedAttribute??!0,x=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:l}){return Array.from(l.matchAll(O)).flatMap(r=>Array.from((r[1]||"").matchAll(I))).flatMap(([,r,...b])=>{let i=b.filter(Boolean).join("");if(d.includes(r))return[];for(let e of W)if(r.startsWith(e)){r=r.slice(e.length);break}if(!i){if(E(r)&&o!==!1){let e=[`[${r}=""]`];return x&&e.push(`[${r}="true"]`),e}return[]}return["class","className"].includes(r)?i.split(P).filter(E):O.test(i)?(O.lastIndex=0,this.extract({code:i})):t?.prefixedOnly&&t.prefix&&!r.startsWith(t.prefix)?[]:i.split(P).filter(e=>!!e&&e!==":").map(e=>`[${r}~="${e}"]`)})}}}var B=(t={})=>{t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??R;let d=[v(t)],o=[N(t)],x=[F(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:d,extractors:o,options:t,autocomplete:{extractors:x},extractorDefault:t.strict?!1:void 0}},j=B;window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},{presetAttributify:t=>j(t)});})();
1
+ "use strict";(()=>{var V="default",j="preflights",P="shortcuts",L="imports",z={[L]:-200,[j]:-100,[P]:-10,[V]:0};var N=/^\[(.+?)~?="(.*)"\]$/;var k=/[\w\u00A0-\uFFFF%-?]/;function S(t){return t.match(N)}function b(t=""){return k.test(t)}var C=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function F(t={}){let d=t.prefix??"un-",f=t.prefixedOnly??!1,g=t.trueToNonValued??!1,a;return{name:"attributify",match(r,{generator:y}){let n=S(r);if(!n)return;let e=n[1];if(e.startsWith(d))e=e.slice(d.length);else if(f)return;let u=n[2],[,h="",s=u]=u.match(C)||[];if(s==="~"||g&&s==="true"||!s)return`${h}${e}`;if(a==null){let o=y?.config?.separators?.join("|");o?a=new RegExp(`^(.*\\](?:${o}))(\\[[^\\]]+?\\])$`):a=!1}if(a){let[,o,c]=u.match(a)||[];if(c)return`${o}${h}${e}-${c}`}if(h&&s.match(/^[\d.]+$/)){let o=h.split(/([^:]*:)/g).filter(Boolean),c=o.pop()+s,l=o.join("");return[{matcher:`${h}${e}-${s}`},{matcher:`${l}${e}-${c}`}]}return`${h}${e}-${s}`}}}var T=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,B=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,M=/[\s'"`;>]+/;function I(t){return{name:"attributify",extract:({content:d,cursor:f})=>{let g=d.matchAll(T),a,r=0;for(let i of g){let[,p,A]=i,$=i.index+p.length;if(f>$&&f<=$+A.length){r=$,a=A;break}}if(!a)return null;let y=a.matchAll(B),n=0,e,u;for(let i of y){let[p,A,$]=i,v=r+i.index;if(f>v&&f<=v+p.length){n=v,e=A,u=$?.slice(1);break}}if(!e||e==="class"||e==="className"||e===":class")return null;let h=!!t?.prefix&&e.startsWith(t.prefix);if(t?.prefixedOnly&&!h)return null;let s=h?e.slice(t.prefix.length):e;if(u===void 0)return{extracted:s,resolveReplacement(i){let p=h?t.prefix.length:0;return{start:n+p,end:n+e.length,replacement:i}}};let o=n+e.length+2,c=M.exec(u),l=0,x;for(;c;){let[i]=c;if(f>o+l&&f<=o+l+c.index){x=u.slice(l,l+c.index);break}l+=c.index+i.length,c=M.exec(u.slice(l))}x===void 0&&(x=u.slice(l));let[,m="",O]=x.match(C)||[];return{extracted:`${m}${s}-${O}`,transformSuggestions(i){return i.filter(p=>p.startsWith(`${m}${s}-`)).map(p=>m+p.slice(m.length+s.length+1))},resolveReplacement(i){return{start:l+o,end:l+o+x.length,replacement:m+i.slice(m.length+s.length+1)}}}}}}var U=["v-bind:",":"],_=/[\s'"`;]+/g,w=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,G=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,E=["placeholder","fill","opacity","stroke-opacity"];function D(t){let d=t?.ignoreAttributes??E,f=t?.nonValuedAttribute??!0,g=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:a}){return Array.from(a.matchAll(w)).flatMap(r=>Array.from((r[1]||"").matchAll(G))).flatMap(([,r,...y])=>{let n=y.filter(Boolean).join("");if(d.includes(r))return[];for(let e of U)if(r.startsWith(e)){r=r.slice(e.length);break}if(!n){if(b(r)&&f!==!1){let e=[`[${r}=""]`];return g&&e.push(`[${r}="true"]`),e}return[]}return["class","className"].includes(r)?n.split(_).filter(b):w.test(n)?(w.lastIndex=0,this.extract({code:n})):t?.prefixedOnly&&t.prefix&&!r.startsWith(t.prefix)?[]:n.split(_).filter(e=>!!e&&e!==":").map(e=>`[${r}~="${e}"]`)})}}}var W=(t={})=>(t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??E,{name:"@unocss/preset-attributify",enforce:"post",variants:[F(t)],extractors:[D(t)],options:t,autocomplete:{extractors:[I(t)]},extractorDefault:t.strict?!1:void 0}),R=W;window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},{presetAttributify:t=>R(t)});})();
@@ -1 +1 @@
1
- "use strict";(()=>{var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge,v,V,H,T=d(()=>{"use strict";ge=Object.freeze({left:0,top:0,width:16,height:16}),v=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),V=Object.freeze({...ge,...v}),H=Object.freeze({...V,body:"",hidden:!1})});var he,$,N=d(()=>{"use strict";T();he=Object.freeze({width:null,height:null}),$=Object.freeze({...he,...v})});function B(e,t){let i={};!e.hFlip!=!t.hFlip&&(i.hFlip=!0),!e.vFlip!=!t.vFlip&&(i.vFlip=!0);let n=((e.rotate||0)+(t.rotate||0))%4;return n&&(i.rotate=n),i}var J=d(()=>{"use strict"});function U(e,t){let i=B(e,t);for(let n in H)n in v?n in e&&!(n in i)&&(i[n]=v[n]):n in t?i[n]=t[n]:n in e&&(i[n]=e[n]);return i}var X=d(()=>{"use strict";T();J()});function Z(e,t){let i=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function r(s){if(i[s])return o[s]=[];if(!(s in o)){o[s]=null;let c=n[s]&&n[s].parent,f=c&&r(c);f&&(o[s]=[c].concat(f))}return o[s]}return(t||Object.keys(i).concat(Object.keys(n))).forEach(r),o}var Q=d(()=>{"use strict"});function Y(e,t,i){let n=e.icons,o=e.aliases||Object.create(null),r={};function s(c){r=U(n[c]||o[c],r)}return s(t),i.forEach(s),U(e,r)}function ee(e,t){if(e.icons[t])return Y(e,t,[]);let i=Z(e,[t])[t];return i?Y(e,t,i):null}var oe=d(()=>{"use strict";X();Q()});function b(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;let n=e.split(we);if(n===null||!n.length)return e;let o=[],r=n.shift(),s=Ie.test(r);for(;;){if(s){let c=parseFloat(r);isNaN(c)?o.push(r):o.push(Math.ceil(c*t*i)/i)}else o.push(r);if(r=n.shift(),r===void 0)return o.join("");s=!s}}var we,Ie,P=d(()=>{"use strict";we=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ie=/^-?[0-9.]*[0-9]+[0-9.]*$/g});function Se(e,t="defs"){let i="",n=e.indexOf("<"+t);for(;n>=0;){let o=e.indexOf(">",n),r=e.indexOf("</"+t);if(o===-1||r===-1)break;let s=e.indexOf(">",r);if(s===-1)break;i+=e.slice(o+1,r).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:i,content:e}}function ye(e,t){return e?"<defs>"+e+"</defs>"+t:t}function te(e,t,i){let n=Se(e);return ye(n.defs,t+n.content+i)}var ie=d(()=>{"use strict"});function ne(e,t){let i={...V,...e},n={...$,...t},o={left:i.left,top:i.top,width:i.width,height:i.height},r=i.body;[i,n].forEach(l=>{let a=[],x=l.hFlip,S=l.vFlip,w=l.rotate;x?S?w+=2:(a.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),a.push("scale(-1 1)"),o.top=o.left=0):S&&(a.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),a.push("scale(1 -1)"),o.top=o.left=0);let p;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:p=o.height/2+o.top,a.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:a.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:p=o.width/2+o.left,a.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}w%2===1&&(o.left!==o.top&&(p=o.left,o.left=o.top,o.top=p),o.width!==o.height&&(p=o.width,o.width=o.height,o.height=p)),a.length&&(r=te(r,'<g transform="'+a.join(" ")+'">',"</g>"))});let s=n.width,c=n.height,f=o.width,u=o.height,m,y;s===null?(y=c===null?"1em":c==="auto"?u:c,m=b(y,f/u)):(m=s==="auto"?f:s,y=c===null?b(m,u/f):c==="auto"?u:c);let I={},g=(l,a)=>{k(a)||(I[l]=a.toString())};g("width",m),g("height",y);let h=[o.left,o.top,f,u];return I.viewBox=h.join(" "),{attributes:I,viewBox:h,body:r}}var k,D=d(()=>{"use strict";T();N();P();ie();k=e=>e==="unset"||e==="undefined"||e==="none"});function se(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}var ce=d(()=>{"use strict"});function ve(e,t,i){let n=e.slice(0,e.indexOf(">")),o=(r,s)=>{let c=s.exec(n),f=c!=null,u=t[r];return!u&&!k(u)&&(typeof i=="number"?i>0&&(t[r]=b(c?.[1]??"1em",i)):c&&(t[r]=c[1])),f};return[o("width",xe),o("height",be)]}async function z(e,t,i,n,o,r){let{scale:s,addXmlNs:c=!1}=n??{},{additionalProps:f={},iconCustomizer:u}=n?.customizations??{},m=await o?.()??{};await u?.(t,i,m),Object.keys(f).forEach(l=>{let a=f[l];a!=null&&(m[l]=a)}),r?.(m);let[y,I]=ve(e,m,s);c&&(!e.includes("xmlns=")&&!m.xmlns&&(m.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!m["xmlns:xlink"]&&(m["xmlns:xlink"]="http://www.w3.org/1999/xlink"));let g=Object.keys(m).map(l=>l==="width"&&y||l==="height"&&I?null:`${l}="${m[l]}"`).filter(l=>l!=null);if(g.length&&(e=e.replace(_,`<svg ${g.join(" ")} `)),n){let{defaultStyle:l,defaultClass:a}=n;a&&!e.includes("class=")&&(e=e.replace(_,`<svg class="${a}" `)),l&&!e.includes("style=")&&(e=e.replace(_,`<svg style="${l}" `))}let h=n?.usedProps;return h&&(Object.keys(f).forEach(l=>{let a=m[l];a!=null&&(h[l]=a)}),typeof m.width<"u"&&m.width!==null&&(h.width=m.width),typeof m.height<"u"&&m.height!==null&&(h.height=m.height)),e}var xe,be,_,A=d(()=>{"use strict";P();D();xe=/\swidth\s*=\s*["']([\w.]+)["']/,be=/\sheight\s*=\s*["']([\w.]+)["']/,_=/<svg\s+/});async function R(e,t,i,n){let o;try{if(typeof e=="function")o=await e(i);else{let r=e[i];o=typeof r=="function"?await r():r}}catch(r){console.warn(`Failed to load custom icon "${i}" in "${t}":`,r);return}if(o){let r=o.indexOf("<svg");r>0&&(o=o.slice(r));let{transform:s}=n?.customizations??{};return o=typeof s=="function"?await s(o,t,i):o,o.startsWith("<svg")?await z(n?.customizations?.trimCustomSvg===!0?se(o):o,t,i,n,void 0):(console.warn(`Custom icon "${i}" in "${t}" is not a valid SVG`),o)}}var ae=d(()=>{"use strict";ce();A()});async function E(e,t,i,n){let o,{customize:r}=n?.customizations??{};for(let s of i)if(o=ee(e,s),o){let c={...$};typeof r=="function"&&(o=Object.assign({},o),c=r(c,o,`${t}:${s}`)??c);let{attributes:{width:f,height:u,...m},body:y}=ne(o,c),I=n?.scale;return await z(`<svg >${y}</svg>`,t,s,n,()=>({...m}),g=>{let h=(l,a)=>{let x=g[l],S;if(!k(x)){if(x)return;typeof I=="number"?I&&(S=b(a??"1em",I)):S=a}S?g[l]=S:delete g[l]};h("width",f),h("height",u)})}}var q=d(()=>{"use strict";N();oe();P();D();A()});var j,W=d(()=>{"use strict";ae();q();j=async(e,t,i)=>{let n=i?.customCollections?.[e];if(n)if(typeof n=="function"){let o;try{o=await n(t)}catch(r){console.warn(`Failed to load custom icon "${t}" in "${e}":`,r);return}if(o){if(typeof o=="string")return await R(()=>o,e,t,i);if("icons"in o){let r=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await E(o,e,r,i)}}}else return await R(n,e,t,i)}});function re(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function G(e){let t=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!t.includes(" xmlns:xlink=")&&t.includes(" xlink:")&&(t=t.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),t.includes(" xmlns=")||(t=t.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),re(t)}W();function le(){let e=typeof process<"u"&&process.stdout,t=e&&!!process.env.VSCODE_CWD,i=e&&!!process.env.ESLINT;return{isNode:e,isVSCode:t,isESLint:i}}var me=new Set;function fe(e){me.has(e)||(console.warn("[unocss]",e),me.add(e))}W();q();var M=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","dinkie-icons","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fa7-brands","fa7-regular","fa7-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","picon","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","roentgen","si-glyph","si","sidekickicons","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-block","streamline-color","streamline-cyber-color","streamline-cyber","streamline-emojis","streamline-flex-color","streamline-flex","streamline-freehand-color","streamline-freehand","streamline-guidance","streamline-kameleon-color","streamline-logos","streamline-pixel","streamline-plump-color","streamline-plump","streamline-sharp-color","streamline-sharp","streamline-stickies-color","streamline-ultimate-color","streamline-ultimate","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","temaki","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"];var Ce=3;function pe(e){return(t={})=>{let{scale:i=1,mode:n="auto",prefix:o="i-",warn:r=!1,iconifyCollectionsNames:s,collections:c,extraProperties:f={},customizations:u={},autoInstall:m=!1,collectionsNodeResolvePath:y,layer:I="icons",unit:g,processor:h}=t,l=le(),a={addXmlNs:!0,scale:i,customCollections:c,autoInstall:m,cwd:y,warn:void 0,customizations:{...u,additionalProps:{...f},trimCustomSvg:!0,async iconCustomizer(S,w,p){await u.iconCustomizer?.(S,w,p),g&&(p.width||(p.width=`${i}${g}`),p.height||(p.height=`${i}${g}`))}}},x;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:G,parseIconWithLoader:ue},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async S=>{let[w,p,O=n]=S;x=x||await e(t);let L={},C=await ue(p,x,{...a,usedProps:L},s);if(!C){r&&!l.isESLint&&fe(`failed to load icon "${w}"`);return}let F,K=`url("data:image/svg+xml;utf8,${G(C.svg)}")`;return O==="auto"&&(O=C.svg.includes("currentColor")?"mask":"bg"),O==="mask"?F={"--un-icon":K,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...L}:F={background:`${K} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...L},h?.(F,{...C,icon:C.name,mode:O}),F},{layer:I,prefix:o}]]}}}function de(e,t,i=new Map){function n(o){if(M.includes(o))return i.has(o)||i.set(o,e(`${t}@iconify-json/${o}/icons.json`)),i.get(o)}return async(o,r,s)=>{let c=await j(o,r,s);if(c)return c;let f=await n(o);if(f){let u=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];c=await E(f,o,u,s)}return c}}async function ue(e,t,i={},n=[]){let o="",r="",s,c=new Set([...M,...n,...Object.keys(i.customCollections||{})]);if(e.includes(":")){if([o,r]=e.split(":"),!c.has(o))return;s=await t(o,r,i)}else{let f=e.split(/-/g);for(let u=Ce;u>=1&&(o=f.slice(0,u).join("-"),!(!!c.has(o)&&(r=f.slice(u).join("-"),s=await t(o,r,i),s)));u--);}if(s)return{collection:o,name:r,svg:s}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},(()=>{let e=pe(async t=>{let i=t?.customFetch??(o=>fetch(o).then(r=>r.json())),n=t?.cdn;return n?de(i,n):j});return{presetIcons:t=>e(t)}})());})();
1
+ "use strict";(()=>{var ye=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,r)=>(typeof require<"u"?require:o)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var d=(e,o)=>()=>(e&&(o=e(e=0)),o);var we,I,F,K,O=d(()=>{"use strict";we=Object.freeze({left:0,top:0,width:16,height:16}),I=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),F=Object.freeze({...we,...I}),K=Object.freeze({...F,body:"",hidden:!1})});var Se,E,T=d(()=>{"use strict";O();Se=Object.freeze({width:null,height:null}),E=Object.freeze({...Se,...I})});function Y(e,o){let r={};!e.hFlip!=!o.hFlip&&(r.hFlip=!0),!e.vFlip!=!o.vFlip&&(r.vFlip=!0);let n=((e.rotate||0)+(o.rotate||0))%4;return n&&(r.rotate=n),r}var X=d(()=>{"use strict"});function N(e,o){let r=Y(e,o);for(let n in K)n in I?n in e&&!(n in r)&&(r[n]=I[n]):n in o?r[n]=o[n]:n in e&&(r[n]=e[n]);return r}var Z=d(()=>{"use strict";O();X()});function J(e,o){let r=e.icons,n=e.aliases||Object.create(null),t=Object.create(null);function i(s){if(r[s])return t[s]=[];if(!(s in t)){t[s]=null;let a=n[s]&&n[s].parent,u=a&&i(a);u&&(t[s]=[a].concat(u))}return t[s]}return(o||Object.keys(r).concat(Object.keys(n))).forEach(i),t}var Q=d(()=>{"use strict"});function ee(e,o,r){let n=e.icons,t=e.aliases||Object.create(null),i={};function s(a){i=N(n[a]||t[a],i)}return s(o),r.forEach(s),N(e,i)}function te(e,o){if(e.icons[o])return ee(e,o,[]);let r=J(e,[o])[o];return r?ee(e,o,r):null}var oe=d(()=>{"use strict";Z();Q()});function x(e,o,r){if(o===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*o*r)/r;if(typeof e!="string")return e;let n=e.split(ve);if(n===null||!n.length)return e;let t=[],i=n.shift(),s=be.test(i);for(;;){if(s){let a=parseFloat(i);isNaN(a)?t.push(i):t.push(Math.ceil(a*o*r)/r)}else t.push(i);if(i=n.shift(),i===void 0)return t.join("");s=!s}}var ve,be,L=d(()=>{"use strict";ve=/(-?[0-9.]*[0-9]+[0-9.]*)/g,be=/^-?[0-9.]*[0-9]+[0-9.]*$/g});function xe(e,o="defs"){let r="",n=e.indexOf("<"+o);for(;n>=0;){let t=e.indexOf(">",n),i=e.indexOf("</"+o);if(t===-1||i===-1)break;let s=e.indexOf(">",i);if(s===-1)break;r+=e.slice(t+1,i).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}function Ie(e,o){return e?"<defs>"+e+"</defs>"+o:o}function re(e,o,r){let n=xe(e);return Ie(n.defs,o+n.content+r)}var ne=d(()=>{"use strict"});function ie(e,o){let r={...F,...e},n={...E,...o},t={left:r.left,top:r.top,width:r.width,height:r.height},i=r.body;[r,n].forEach(l=>{let c=[],b=l.hFlip,S=l.vFlip,y=l.rotate;b?S?y+=2:(c.push("translate("+(t.width+t.left).toString()+" "+(0-t.top).toString()+")"),c.push("scale(-1 1)"),t.top=t.left=0):S&&(c.push("translate("+(0-t.left).toString()+" "+(t.height+t.top).toString()+")"),c.push("scale(1 -1)"),t.top=t.left=0);let p;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:p=t.height/2+t.top,c.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:c.unshift("rotate(180 "+(t.width/2+t.left).toString()+" "+(t.height/2+t.top).toString()+")");break;case 3:p=t.width/2+t.left,c.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}y%2===1&&(t.left!==t.top&&(p=t.left,t.left=t.top,t.top=p),t.width!==t.height&&(p=t.width,t.width=t.height,t.height=p)),c.length&&(i=re(i,'<g transform="'+c.join(" ")+'">',"</g>"))});let s=n.width,a=n.height,u=t.width,m=t.height,f,v;s===null?(v=a===null?"1em":a==="auto"?m:a,f=x(v,u/m)):(f=s==="auto"?u:s,v=a===null?x(f,m/u):a==="auto"?m:a);let w={},h=(l,c)=>{$(c)||(w[l]=c.toString())};h("width",f),h("height",v);let g=[t.left,t.top,u,m];return w.viewBox=g.join(" "),{attributes:w,viewBox:g,body:i}}var $,R=d(()=>{"use strict";O();T();L();ne();$=e=>e==="unset"||e==="undefined"||e==="none"});function ae(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}var ce=d(()=>{"use strict"});function ke(e,o,r){let n=e.slice(0,e.indexOf(">")),t=(i,s)=>{let a=s.exec(n),u=a!=null,m=o[i];return!m&&!$(m)&&(typeof r=="number"?r>0&&(o[i]=x(a?.[1]??"1em",r)):a&&(o[i]=a[1])),u};return[t("width",Ce),t("height",$e)]}async function _(e,o,r,n,t,i){let{scale:s,addXmlNs:a=!1}=n??{},{additionalProps:u={},iconCustomizer:m}=n?.customizations??{},f=await t?.()??{};await m?.(o,r,f),Object.keys(u).forEach(l=>{let c=u[l];c!=null&&(f[l]=c)}),i?.(f);let[v,w]=ke(e,f,s);a&&(!e.includes("xmlns=")&&!f.xmlns&&(f.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!f["xmlns:xlink"]&&(f["xmlns:xlink"]="http://www.w3.org/1999/xlink"));let h=Object.keys(f).map(l=>l==="width"&&v||l==="height"&&w?null:`${l}="${f[l]}"`).filter(l=>l!=null);if(h.length&&(e=e.replace(V,`<svg ${h.join(" ")} `)),n){let{defaultStyle:l,defaultClass:c}=n;c&&!e.includes("class=")&&(e=e.replace(V,`<svg class="${c}" `)),l&&!e.includes("style=")&&(e=e.replace(V,`<svg style="${l}" `))}let g=n?.usedProps;return g&&(Object.keys(u).forEach(l=>{let c=f[l];c!=null&&(g[l]=c)}),typeof f.width<"u"&&f.width!==null&&(g.width=f.width),typeof f.height<"u"&&f.height!==null&&(g.height=f.height)),e}var Ce,$e,V,U=d(()=>{"use strict";L();R();Ce=/\swidth\s*=\s*["']([\w.]+)["']/,$e=/\sheight\s*=\s*["']([\w.]+)["']/,V=/<svg\s+/});async function D(e,o,r,n){let t;try{if(typeof e=="function")t=await e(r);else{let i=e[r];t=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${r}" in "${o}":`,i);return}if(t){let i=t.indexOf("<svg");i>0&&(t=t.slice(i));let{transform:s}=n?.customizations??{};return t=typeof s=="function"?await s(t,o,r):t,t.startsWith("<svg")?await _(n?.customizations?.trimCustomSvg===!0?ae(t):t,o,r,n,void 0):(console.warn(`Custom icon "${r}" in "${o}" is not a valid SVG`),t)}}var le=d(()=>{"use strict";ce();U()});async function M(e,o,r,n){let t,{customize:i}=n?.customizations??{};for(let s of r)if(t=te(e,s),t){let a={...E};typeof i=="function"&&(t=Object.assign({},t),a=i(a,t,`${o}:${s}`)??a);let{attributes:{width:u,height:m,...f},body:v}=ie(t,a),w=n?.scale;return await _(`<svg >${v}</svg>`,o,s,n,()=>({...f}),h=>{let g=(l,c)=>{let b=h[l],S;if(!$(b)){if(b)return;typeof w=="number"?w&&(S=x(c??"1em",w)):S=c}S?h[l]=S:delete h[l]};g("width",u),g("height",m)})}}var G=d(()=>{"use strict";T();oe();L();R();U()});var k,q=d(()=>{"use strict";le();G();k=async(e,o,r)=>{let n=r?.customCollections?.[e];if(n)if(typeof n=="function"){let t;try{t=await n(o)}catch(i){console.warn(`Failed to load custom icon "${o}" in "${e}":`,i);return}if(t){if(typeof t=="string")return await D(()=>t,e,o,r);if("icons"in t){let i=[o,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.replace(/([a-z])(\d+)/g,"$1-$2")];return await M(t,e,i,r)}}}else return await D(n,e,o,r)}});function se(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function z(e){let o=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!o.includes(" xmlns:xlink=")&&o.includes(" xlink:")&&(o=o.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),o.includes(" xmlns=")||(o=o.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),se(o)}q();var je="default",Ae="preflights",Oe="shortcuts",Ee="imports",St={[Ee]:-200,[Ae]:-100,[Oe]:-10,[je]:0};var fe=new Set;function ue(e){fe.has(e)||(console.warn("[unocss]",e),fe.add(e))}function me(){let e=typeof process<"u"&&process.stdout;return{isNode:e,isVSCode:e&&!!process.env.VSCODE_CWD,isESLint:e&&!!process.env.ESLINT}}var pe=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","dinkie-icons","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fa7-brands","fa7-regular","fa7-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","picon","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","roentgen","si-glyph","si","sidekickicons","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-block","streamline-color","streamline-cyber-color","streamline-cyber","streamline-emojis","streamline-flex-color","streamline-flex","streamline-freehand-color","streamline-freehand","streamline-guidance","streamline-kameleon-color","streamline-logos","streamline-pixel","streamline-plump-color","streamline-plump","streamline-sharp-color","streamline-sharp","streamline-stickies-color","streamline-ultimate-color","streamline-ultimate","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","temaki","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],Le=3;function W(e){return(o={})=>{let{scale:r=1,mode:n="auto",prefix:t="i-",warn:i=!1,iconifyCollectionsNames:s,collections:a,extraProperties:u={},customizations:m={},autoInstall:f=!1,collectionsNodeResolvePath:v,layer:w="icons",unit:h,processor:g}=o,l=me(),c={addXmlNs:!0,scale:r,customCollections:a,autoInstall:f,cwd:v,warn:void 0,customizations:{...m,additionalProps:{...u},trimCustomSvg:!0,async iconCustomizer(S,y,p){await m.iconCustomizer?.(S,y,p),h&&(p.width||(p.width=`${r}${h}`),p.height||(p.height=`${r}${h}`))}}},b;return{name:"@unocss/preset-icons",enforce:"pre",options:o,layers:{icons:-30},api:{encodeSvgForCss:z,parseIconWithLoader:B},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async S=>{let[y,p,j=n]=S;b=b||await e(o);let P={},C=await B(p,b,{...c,usedProps:P},s);if(!C){i&&!l.isESLint&&ue(`failed to load icon "${y}"`);return}let A,H=`url("data:image/svg+xml;utf8,${z(C.svg)}")`;return j==="auto"&&(j=C.svg.includes("currentColor")?"mask":"bg"),j==="mask"?A={"--un-icon":H,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...P}:A={background:`${H} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...P},g?.(A,{...C,icon:C.name,mode:j}),A},{layer:w,prefix:t}]]}}}async function B(e,o,r={},n=[]){let t="",i="",s,a=new Set([...pe,...n,...Object.keys(r.customCollections||{})]);if(e.includes(":")){if([t,i]=e.split(":"),!a.has(t))return;s=await o(t,i,r)}else{let u=e.split(/-/g);for(let m=Le;m>=1&&(t=u.slice(0,m).join("-"),!(!!a.has(t)&&(i=u.slice(m).join("-"),s=await o(t,i,r),s)));m--);}if(s)return{collection:t,name:i,svg:s}}var de=ye("module");var _e={},At=(0,de.createRequire)(_e.url);q();G();var he=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","dinkie-icons","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fa7-brands","fa7-regular","fa7-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","picon","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","roentgen","si-glyph","si","sidekickicons","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-block","streamline-color","streamline-cyber-color","streamline-cyber","streamline-emojis","streamline-flex-color","streamline-flex","streamline-freehand-color","streamline-freehand","streamline-guidance","streamline-kameleon-color","streamline-logos","streamline-pixel","streamline-plump-color","streamline-plump","streamline-sharp-color","streamline-sharp","streamline-stickies-color","streamline-ultimate-color","streamline-ultimate","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","temaki","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"];function ge(e,o,r=new Map){function n(t){if(he.includes(t))return r.has(t)||r.set(t,e(`${o}@iconify-json/${t}/icons.json`)),r.get(t)}return async(t,i,s)=>{let a=await k(t,i,s);if(a)return a;let u=await n(t);if(u){let m=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await M(u,t,m,s)}return a}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},(()=>{let e=W(async o=>{let r=o?.customFetch??(t=>fetch(t).then(i=>i.json())),n=o?.cdn;return n?ge(r,n):k});return{presetIcons:o=>e(o)}})());})();