@skaldapp/runtime 3.1.16 → 3.1.18

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-router v5.0.3
2
+ * vue-router v5.0.4
3
3
  * (c) 2026 Eduardo San Martin Morote
4
4
  * @license MIT
5
5
  */
@@ -4,7 +4,7 @@ import{o as e,t}from"./rolldown-runtime-Bhmf7a9N.js";var n=t((e=>{e.byteLength=c
4
4
  `?(t++,n=0):r===` `&&n++;return`
5
5
  `.repeat(t)+` `.repeat(n)}function ft(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(r===`
6
6
  `)if(/\s/.test(e[n+1]))for(t+=` `;n<e.length&&/\s/.test(e[n+1]);)n++;else t+=`
7
- `;else if(r===`&`){let{entity:r,newI:i}=pt(e,n+1);t+=r,n=i-1}else t+=r}return JSON.stringify(t)}function pt(e,t){let n=``,r=0,i,a=t;if(e[a]===`#`){let t=10;a++;let n;if(e[a]===`x`)for(t=16,a++,n=a;a<e.length&&ht(e.charCodeAt(a));)a++;else for(n=a;a<e.length&&mt(e.charCodeAt(a));)a++;if(e[a]===`;`){let r=e.slice(n,a);r&&(a++,i=String.fromCodePoint(parseInt(r,t)))}}else for(;a<e.length&&r++<10;){let t=e[a];if(a++,t===`;`){i=it.get(n);break}n+=t}return i?{entity:i,newI:a}:{entity:`&`,newI:t}}function mt(e){return e>=y.digit0&&e<=y.digit9}function ht(e){return e>=y.digit0&&e<=y.digit9||e>=y.lowercaseA&&e<=y.lowercaseF||e>=y.uppercaseA&&e<=y.uppercaseF}function gt(e,t){let n=at(t),r=new Set;for(let t=0;t<e.tokens.length;t++){let i=e.tokens[t];i.type===_.name&&!i.isType&&(i.identifierRole===I.Access||i.identifierRole===I.ObjectShorthand||i.identifierRole===I.ExportAccess)&&!i.shadowsGlobal&&r.add(e.identifierNameForToken(i)),i.type===_.jsxTagStart&&r.add(n.base),i.type===_.jsxTagStart&&t+1<e.tokens.length&&e.tokens[t+1].type===_.jsxTagEnd&&(r.add(n.base),r.add(n.fragmentBase)),i.type===_.jsxName&&i.identifierRole===I.Access&&(!lt(e.identifierNameForToken(i))||e.tokens[t+1].type===_.dot)&&r.add(e.identifierNameForToken(i))}return r}var _t=class e{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(t,n,r,i,a,o,s){this.nameManager=t,this.tokens=n,this.enableLegacyTypeScriptModuleInterop=r,this.options=i,this.isTypeScriptTransformEnabled=a,this.keepUnusedImports=o,this.helperManager=s,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,_._import)&&!this.tokens.matches3AtIndex(e,_._import,_.name,_.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,_._export)&&!this.tokens.matches2AtIndex(e,_._export,_.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=gt(this.tokens,this.options);for(let[e,t]of this.importInfoByPath.entries())t.hasBareImport||t.hasStarExport||t.exportStarNames.length>0||t.namedExports.length>0||[...t.defaultNames,...t.wildcardNames,...t.namedImports.map(({localName:e})=>e)].every(e=>this.shouldAutomaticallyElideImportedName(e))&&this.importsToReplace.set(e,``)}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(let[e,t]of this.importInfoByPath.entries()){let{defaultNames:n,wildcardNames:r,namedImports:i,namedExports:a,exportStarNames:o,hasStarExport:s}=t;if(n.length===0&&r.length===0&&i.length===0&&a.length===0&&o.length===0&&!s){this.importsToReplace.set(e,`require('${e}');`);continue}let c=this.getFreeIdentifierForPath(e),l;l=this.enableLegacyTypeScriptModuleInterop?c:r.length>0?r[0]:this.getFreeIdentifierForPath(e);let u=`var ${c} = require('${e}');`;if(r.length>0)for(let e of r){let t=this.enableLegacyTypeScriptModuleInterop?c:`${this.helperManager.getHelperName(`interopRequireWildcard`)}(${c})`;u+=` var ${e} = ${t};`}else o.length>0&&l!==c?u+=` var ${l} = ${this.helperManager.getHelperName(`interopRequireWildcard`)}(${c});`:n.length>0&&l!==c&&(u+=` var ${l} = ${this.helperManager.getHelperName(`interopRequireDefault`)}(${c});`);for(let{importedName:e,localName:t}of a)u+=` ${this.helperManager.getHelperName(`createNamedExportFrom`)}(${c}, '${t}', '${e}');`;for(let e of o)u+=` exports.${e} = ${l};`;s&&(u+=` ${this.helperManager.getHelperName(`createStarExport`)}(${c});`),this.importsToReplace.set(e,u);for(let e of n)this.identifierReplacements.set(e,`${l}.default`);for(let{importedName:e,localName:t}of i)this.identifierReplacements.set(t,`${c}.${e}`)}}getFreeIdentifierForPath(e){let t=e.split(`/`),n=t[t.length-1].replace(/\W/g,``);return this.nameManager.claimFreeName(`_${n}`)}preprocessImportAtIndex(e){let t=[],n=[],r=[];if(e++,(this.tokens.matchesContextualAtIndex(e,g._type)||this.tokens.matches1AtIndex(e,_._typeof))&&!this.tokens.matches1AtIndex(e+1,_.comma)&&!this.tokens.matchesContextualAtIndex(e+1,g._from)||this.tokens.matches1AtIndex(e,_.parenL))return;if(this.tokens.matches1AtIndex(e,_.name)&&(t.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,_.comma)&&e++),this.tokens.matches1AtIndex(e,_.star)&&(e+=2,n.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,_.braceL)){let n=this.getNamedImports(e+1);e=n.newIndex;for(let e of n.namedImports)e.importedName===`default`?t.push(e.localName):r.push(e)}if(this.tokens.matchesContextualAtIndex(e,g._from)&&e++,!this.tokens.matches1AtIndex(e,_.string))throw Error(`Expected string token at the end of import statement.`);let i=this.tokens.stringValueAtIndex(e),a=this.getImportInfo(i);a.defaultNames.push(...t),a.wildcardNames.push(...n),a.namedImports.push(...r),t.length===0&&n.length===0&&r.length===0&&(a.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,_._export,_._var)||this.tokens.matches2AtIndex(e,_._export,_._let)||this.tokens.matches2AtIndex(e,_._export,_._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,_._export,_._function)||this.tokens.matches2AtIndex(e,_._export,_._class)){let t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,_._export,_.name,_._function)){let t=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(t,t)}else this.tokens.matches2AtIndex(e,_._export,_.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,_._export,_.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let t=0;for(let n=e+2;;n++)if(this.tokens.matches1AtIndex(n,_.braceL)||this.tokens.matches1AtIndex(n,_.dollarBraceL)||this.tokens.matches1AtIndex(n,_.bracketL))t++;else if(this.tokens.matches1AtIndex(n,_.braceR)||this.tokens.matches1AtIndex(n,_.bracketR))t--;else if(t===0&&!this.tokens.matches1AtIndex(n,_.name))break;else if(this.tokens.matches1AtIndex(1,_.eq)){let e=this.tokens.currentToken().rhsEndIndex;if(e==null)throw Error(`Expected = token with an end index.`);n=e-1}else{let e=this.tokens.tokens[n];if(ve(e)){let e=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(e,`exports.${e}`)}}}preprocessNamedExportAtIndex(e){e+=2;let{newIndex:t,namedImports:n}=this.getNamedImports(e);if(e=t,this.tokens.matchesContextualAtIndex(e,g._from))e++;else{for(let{importedName:e,localName:t}of n)this.addExportBinding(e,t);return}if(!this.tokens.matches1AtIndex(e,_.string))throw Error(`Expected string token at the end of import statement.`);let r=this.tokens.stringValueAtIndex(e);this.getImportInfo(r).namedExports.push(...n)}preprocessExportStarAtIndex(e){let t=null;if(this.tokens.matches3AtIndex(e,_._export,_.star,_._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,_.string))throw Error(`Expected string token at the end of star export statement.`);let n=this.tokens.stringValueAtIndex(e),r=this.getImportInfo(n);t===null?r.hasStarExport=!0:r.exportStarNames.push(t)}getNamedImports(e){let t=[];for(;;){if(this.tokens.matches1AtIndex(e,_.braceR)){e++;break}let n=nt(this.tokens,e);if(e=n.endIndex,n.isType||t.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(e,_.comma,_.braceR)){e+=2;break}else if(this.tokens.matches1AtIndex(e,_.braceR)){e++;break}else if(this.tokens.matches1AtIndex(e,_.comma))e++;else throw Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`)}return{newIndex:e,namedImports:t}}getImportInfo(e){let t=this.importInfoByPath.get(e);if(t)return t;let n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,n),n}addExportBinding(e,t){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}claimImportCode(e){let t=this.importsToReplace.get(e);return this.importsToReplace.set(e,``),t||``}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){let t=this.exportBindingsByLocalName.get(e);return!t||t.length===0?null:t.map(e=>`exports.${e}`).join(` = `)}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}};e(t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.resolveURI=r())})(e,(function(){let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function r(t){return e.test(t)}function i(e){return e.startsWith(`//`)}function a(e){return e.startsWith(`/`)}function o(e){return e.startsWith(`file:`)}function s(e){return/^[.?#]/.test(e)}function c(e){let n=t.exec(e);return u(n[1],n[2]||``,n[3],n[4]||``,n[5]||`/`,n[6]||``,n[7]||``)}function l(e){let t=n.exec(e),r=t[2];return u(`file:`,``,t[1]||``,``,a(r)?r:`/`+r,t[3]||``,t[4]||``)}function u(e,t,n,r,i,a,o){return{scheme:e,user:t,host:n,port:r,path:i,query:a,hash:o,type:7}}function d(e){if(i(e)){let t=c(`http:`+e);return t.scheme=``,t.type=6,t}if(a(e)){let t=c(`http://foo.com`+e);return t.scheme=``,t.host=``,t.type=5,t}if(o(e))return l(e);if(r(e))return c(e);let t=c(`http://foo.com/`+e);return t.scheme=``,t.host=``,t.type=e?e.startsWith(`?`)?3:e.startsWith(`#`)?2:4:1,t}function f(e){if(e.endsWith(`/..`))return e;let t=e.lastIndexOf(`/`);return e.slice(0,t+1)}function p(e,t){m(t,t.type),e.path===`/`?e.path=t.path:e.path=f(t.path)+e.path}function m(e,t){let n=t<=4,r=e.path.split(`/`),i=1,a=0,o=!1;for(let e=1;e<r.length;e++){let t=r[e];if(!t){o=!0;continue}if(o=!1,t!==`.`){if(t===`..`){a?(o=!0,a--,i--):n&&(r[i++]=t);continue}r[i++]=t,a++}}let s=``;for(let e=1;e<i;e++)s+=`/`+r[e];(!s||o&&!s.endsWith(`/..`))&&(s+=`/`),e.path=s}function h(e,t){if(!e&&!t)return``;let n=d(e),r=n.type;if(t&&r!==7){let e=d(t),i=e.type;switch(r){case 1:n.hash=e.hash;case 2:n.query=e.query;case 3:case 4:p(n,e);case 5:n.user=e.user,n.host=e.host,n.port=e.port;case 6:n.scheme=e.scheme}i>r&&(r=i)}m(n,r);let i=n.query+n.hash;switch(r){case 2:case 3:return i;case 4:{let r=n.path.slice(1);return r?s(t||e)&&!s(r)?`./`+r+i:r+i:i||`.`}case 5:return n.path+i;default:return n.scheme+`//`+n.user+n.host+n.port+n.path+i}}return h}))}))(),1);var vt=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function yt(e){return e}function bt(e,t){return yt(e)._indexes[t]}function xt(e,t){let n=bt(e,t);if(n!==void 0)return n;let{array:r,_indexes:i}=yt(e);return i[t]=r.push(t)-1}var St=0,Ct=1,wt=2,Tt=3,Et=4,Dt=-1,Ot=class{constructor({file:e,sourceRoot:t}={}){this._names=new vt,this._sources=new vt,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new vt}};function kt(e){return e}var At=(e,t,n,r,i,a,o,s)=>Nt(!0,e,t,n,r,i,a,o,s);function jt(e){let{_mappings:t,_sources:n,_sourcesContent:r,_names:i,_ignoreList:a}=kt(e);return Lt(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:r,mappings:t,ignoreList:a.array}}function Mt(e){let t=jt(e);return Object.assign({},t,{mappings:h(t.mappings)})}function Nt(e,t,n,r,i,a,o,s,c){let{_mappings:l,_sources:u,_sourcesContent:d,_names:f}=kt(t),p=Pt(l,n),m=Ft(p,r);if(!i)return e&&Rt(p,m)?void 0:It(p,m,[r]);let h=xt(u,i),g=s?xt(f,s):Dt;if(h===d.length&&(d[h]=c??null),!(e&&zt(p,m,h,a,o,g)))return It(p,m,s?[r,h,a,o,g]:[r,h,a,o])}function Pt(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}function Ft(e,t){let n=e.length;for(let r=n-1;r>=0&&!(t>=e[r][St]);n=r--);return n}function It(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function Lt(e){let{length:t}=e,n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}function Rt(e,t){return t===0?!0:e[t-1].length===1}function zt(e,t,n,r,i,a){if(t===0)return!1;let o=e[t-1];return o.length===1?!1:n===o[Ct]&&r===o[wt]&&i===o[Tt]&&a===(o.length===5?o[Et]:Dt)}function Bt({code:e,mappings:t},n,r,i,a){let o=Vt(i,a),s=new Ot({file:r.compiledFilename}),c=0,l=t[0];for(;l===void 0&&c<t.length-1;)c++,l=t[c];let u=0,d=0;l!==d&&At(s,u,0,n,u,0);for(let r=0;r<e.length;r++){if(r===l){let e=l-d,i=o[c];for(At(s,u,e,n,u,i);(l===r||l===void 0)&&c<t.length-1;)c++,l=t[c]}e.charCodeAt(r)===y.lineFeed&&(u++,d=r+1,l!==d&&At(s,u,0,n,u,0))}let{sourceRoot:f,sourcesContent:p,...m}=Mt(s);return m}function Vt(e,t){let n=Array(t.length),r=0,i=t[r].start,a=0;for(let o=0;o<e.length;o++)o===i&&(n[r]=i-a,r++,i=t[r].start),e.charCodeAt(o)===y.lineFeed&&(a=o+1);return n}var Ht={require:`
7
+ `;else if(r===`&`){let{entity:r,newI:i}=pt(e,n+1);t+=r,n=i-1}else t+=r}return JSON.stringify(t)}function pt(e,t){let n=``,r=0,i,a=t;if(e[a]===`#`){let t=10;a++;let n;if(e[a]===`x`)for(t=16,a++,n=a;a<e.length&&ht(e.charCodeAt(a));)a++;else for(n=a;a<e.length&&mt(e.charCodeAt(a));)a++;if(e[a]===`;`){let r=e.slice(n,a);r&&(a++,i=String.fromCodePoint(parseInt(r,t)))}}else for(;a<e.length&&r++<10;){let t=e[a];if(a++,t===`;`){i=it.get(n);break}n+=t}return i?{entity:i,newI:a}:{entity:`&`,newI:t}}function mt(e){return e>=y.digit0&&e<=y.digit9}function ht(e){return e>=y.digit0&&e<=y.digit9||e>=y.lowercaseA&&e<=y.lowercaseF||e>=y.uppercaseA&&e<=y.uppercaseF}function gt(e,t){let n=at(t),r=new Set;for(let t=0;t<e.tokens.length;t++){let i=e.tokens[t];i.type===_.name&&!i.isType&&(i.identifierRole===I.Access||i.identifierRole===I.ObjectShorthand||i.identifierRole===I.ExportAccess)&&!i.shadowsGlobal&&r.add(e.identifierNameForToken(i)),i.type===_.jsxTagStart&&r.add(n.base),i.type===_.jsxTagStart&&t+1<e.tokens.length&&e.tokens[t+1].type===_.jsxTagEnd&&(r.add(n.base),r.add(n.fragmentBase)),i.type===_.jsxName&&i.identifierRole===I.Access&&(!lt(e.identifierNameForToken(i))||e.tokens[t+1].type===_.dot)&&r.add(e.identifierNameForToken(i))}return r}var _t=class e{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(t,n,r,i,a,o,s){this.nameManager=t,this.tokens=n,this.enableLegacyTypeScriptModuleInterop=r,this.options=i,this.isTypeScriptTransformEnabled=a,this.keepUnusedImports=o,this.helperManager=s,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,_._import)&&!this.tokens.matches3AtIndex(e,_._import,_.name,_.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,_._export)&&!this.tokens.matches2AtIndex(e,_._export,_.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=gt(this.tokens,this.options);for(let[e,t]of this.importInfoByPath.entries())t.hasBareImport||t.hasStarExport||t.exportStarNames.length>0||t.namedExports.length>0||[...t.defaultNames,...t.wildcardNames,...t.namedImports.map(({localName:e})=>e)].every(e=>this.shouldAutomaticallyElideImportedName(e))&&this.importsToReplace.set(e,``)}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(let[e,t]of this.importInfoByPath.entries()){let{defaultNames:n,wildcardNames:r,namedImports:i,namedExports:a,exportStarNames:o,hasStarExport:s}=t;if(n.length===0&&r.length===0&&i.length===0&&a.length===0&&o.length===0&&!s){this.importsToReplace.set(e,`require('${e}');`);continue}let c=this.getFreeIdentifierForPath(e),l;l=this.enableLegacyTypeScriptModuleInterop?c:r.length>0?r[0]:this.getFreeIdentifierForPath(e);let u=`var ${c} = require('${e}');`;if(r.length>0)for(let e of r){let t=this.enableLegacyTypeScriptModuleInterop?c:`${this.helperManager.getHelperName(`interopRequireWildcard`)}(${c})`;u+=` var ${e} = ${t};`}else o.length>0&&l!==c?u+=` var ${l} = ${this.helperManager.getHelperName(`interopRequireWildcard`)}(${c});`:n.length>0&&l!==c&&(u+=` var ${l} = ${this.helperManager.getHelperName(`interopRequireDefault`)}(${c});`);for(let{importedName:e,localName:t}of a)u+=` ${this.helperManager.getHelperName(`createNamedExportFrom`)}(${c}, '${t}', '${e}');`;for(let e of o)u+=` exports.${e} = ${l};`;s&&(u+=` ${this.helperManager.getHelperName(`createStarExport`)}(${c});`),this.importsToReplace.set(e,u);for(let e of n)this.identifierReplacements.set(e,`${l}.default`);for(let{importedName:e,localName:t}of i)this.identifierReplacements.set(t,`${c}.${e}`)}}getFreeIdentifierForPath(e){let t=e.split(`/`),n=t[t.length-1].replace(/\W/g,``);return this.nameManager.claimFreeName(`_${n}`)}preprocessImportAtIndex(e){let t=[],n=[],r=[];if(e++,(this.tokens.matchesContextualAtIndex(e,g._type)||this.tokens.matches1AtIndex(e,_._typeof))&&!this.tokens.matches1AtIndex(e+1,_.comma)&&!this.tokens.matchesContextualAtIndex(e+1,g._from)||this.tokens.matches1AtIndex(e,_.parenL))return;if(this.tokens.matches1AtIndex(e,_.name)&&(t.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,_.comma)&&e++),this.tokens.matches1AtIndex(e,_.star)&&(e+=2,n.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,_.braceL)){let n=this.getNamedImports(e+1);e=n.newIndex;for(let e of n.namedImports)e.importedName===`default`?t.push(e.localName):r.push(e)}if(this.tokens.matchesContextualAtIndex(e,g._from)&&e++,!this.tokens.matches1AtIndex(e,_.string))throw Error(`Expected string token at the end of import statement.`);let i=this.tokens.stringValueAtIndex(e),a=this.getImportInfo(i);a.defaultNames.push(...t),a.wildcardNames.push(...n),a.namedImports.push(...r),t.length===0&&n.length===0&&r.length===0&&(a.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,_._export,_._var)||this.tokens.matches2AtIndex(e,_._export,_._let)||this.tokens.matches2AtIndex(e,_._export,_._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,_._export,_._function)||this.tokens.matches2AtIndex(e,_._export,_._class)){let t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,_._export,_.name,_._function)){let t=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(t,t)}else this.tokens.matches2AtIndex(e,_._export,_.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,_._export,_.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let t=0;for(let n=e+2;;n++)if(this.tokens.matches1AtIndex(n,_.braceL)||this.tokens.matches1AtIndex(n,_.dollarBraceL)||this.tokens.matches1AtIndex(n,_.bracketL))t++;else if(this.tokens.matches1AtIndex(n,_.braceR)||this.tokens.matches1AtIndex(n,_.bracketR))t--;else if(t===0&&!this.tokens.matches1AtIndex(n,_.name))break;else if(this.tokens.matches1AtIndex(1,_.eq)){let e=this.tokens.currentToken().rhsEndIndex;if(e==null)throw Error(`Expected = token with an end index.`);n=e-1}else{let e=this.tokens.tokens[n];if(ve(e)){let e=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(e,`exports.${e}`)}}}preprocessNamedExportAtIndex(e){e+=2;let{newIndex:t,namedImports:n}=this.getNamedImports(e);if(e=t,this.tokens.matchesContextualAtIndex(e,g._from))e++;else{for(let{importedName:e,localName:t}of n)this.addExportBinding(e,t);return}if(!this.tokens.matches1AtIndex(e,_.string))throw Error(`Expected string token at the end of import statement.`);let r=this.tokens.stringValueAtIndex(e);this.getImportInfo(r).namedExports.push(...n)}preprocessExportStarAtIndex(e){let t=null;if(this.tokens.matches3AtIndex(e,_._export,_.star,_._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,_.string))throw Error(`Expected string token at the end of star export statement.`);let n=this.tokens.stringValueAtIndex(e),r=this.getImportInfo(n);t===null?r.hasStarExport=!0:r.exportStarNames.push(t)}getNamedImports(e){let t=[];for(;;){if(this.tokens.matches1AtIndex(e,_.braceR)){e++;break}let n=nt(this.tokens,e);if(e=n.endIndex,n.isType||t.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(e,_.comma,_.braceR)){e+=2;break}else if(this.tokens.matches1AtIndex(e,_.braceR)){e++;break}else if(this.tokens.matches1AtIndex(e,_.comma))e++;else throw Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`)}return{newIndex:e,namedImports:t}}getImportInfo(e){let t=this.importInfoByPath.get(e);if(t)return t;let n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,n),n}addExportBinding(e,t){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}claimImportCode(e){let t=this.importsToReplace.get(e);return this.importsToReplace.set(e,``),t||``}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){let t=this.exportBindingsByLocalName.get(e);return!t||t.length===0?null:t.map(e=>`exports.${e}`).join(` = `)}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}};t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.resolveURI=r())})(e,(function(){let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function r(t){return e.test(t)}function i(e){return e.startsWith(`//`)}function a(e){return e.startsWith(`/`)}function o(e){return e.startsWith(`file:`)}function s(e){return/^[.?#]/.test(e)}function c(e){let n=t.exec(e);return u(n[1],n[2]||``,n[3],n[4]||``,n[5]||`/`,n[6]||``,n[7]||``)}function l(e){let t=n.exec(e),r=t[2];return u(`file:`,``,t[1]||``,``,a(r)?r:`/`+r,t[3]||``,t[4]||``)}function u(e,t,n,r,i,a,o){return{scheme:e,user:t,host:n,port:r,path:i,query:a,hash:o,type:7}}function d(e){if(i(e)){let t=c(`http:`+e);return t.scheme=``,t.type=6,t}if(a(e)){let t=c(`http://foo.com`+e);return t.scheme=``,t.host=``,t.type=5,t}if(o(e))return l(e);if(r(e))return c(e);let t=c(`http://foo.com/`+e);return t.scheme=``,t.host=``,t.type=e?e.startsWith(`?`)?3:e.startsWith(`#`)?2:4:1,t}function f(e){if(e.endsWith(`/..`))return e;let t=e.lastIndexOf(`/`);return e.slice(0,t+1)}function p(e,t){m(t,t.type),e.path===`/`?e.path=t.path:e.path=f(t.path)+e.path}function m(e,t){let n=t<=4,r=e.path.split(`/`),i=1,a=0,o=!1;for(let e=1;e<r.length;e++){let t=r[e];if(!t){o=!0;continue}if(o=!1,t!==`.`){if(t===`..`){a?(o=!0,a--,i--):n&&(r[i++]=t);continue}r[i++]=t,a++}}let s=``;for(let e=1;e<i;e++)s+=`/`+r[e];(!s||o&&!s.endsWith(`/..`))&&(s+=`/`),e.path=s}function h(e,t){if(!e&&!t)return``;let n=d(e),r=n.type;if(t&&r!==7){let e=d(t),i=e.type;switch(r){case 1:n.hash=e.hash;case 2:n.query=e.query;case 3:case 4:p(n,e);case 5:n.user=e.user,n.host=e.host,n.port=e.port;case 6:n.scheme=e.scheme}i>r&&(r=i)}m(n,r);let i=n.query+n.hash;switch(r){case 2:case 3:return i;case 4:{let r=n.path.slice(1);return r?s(t||e)&&!s(r)?`./`+r+i:r+i:i||`.`}case 5:return n.path+i;default:return n.scheme+`//`+n.user+n.host+n.port+n.path+i}}return h}))}))();var vt=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function yt(e){return e}function bt(e,t){return yt(e)._indexes[t]}function xt(e,t){let n=bt(e,t);if(n!==void 0)return n;let{array:r,_indexes:i}=yt(e);return i[t]=r.push(t)-1}var St=0,Ct=1,wt=2,Tt=3,Et=4,Dt=-1,Ot=class{constructor({file:e,sourceRoot:t}={}){this._names=new vt,this._sources=new vt,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new vt}};function kt(e){return e}var At=(e,t,n,r,i,a,o,s)=>Nt(!0,e,t,n,r,i,a,o,s);function jt(e){let{_mappings:t,_sources:n,_sourcesContent:r,_names:i,_ignoreList:a}=kt(e);return Lt(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:r,mappings:t,ignoreList:a.array}}function Mt(e){let t=jt(e);return Object.assign({},t,{mappings:h(t.mappings)})}function Nt(e,t,n,r,i,a,o,s,c){let{_mappings:l,_sources:u,_sourcesContent:d,_names:f}=kt(t),p=Pt(l,n),m=Ft(p,r);if(!i)return e&&Rt(p,m)?void 0:It(p,m,[r]);let h=xt(u,i),g=s?xt(f,s):Dt;if(h===d.length&&(d[h]=c??null),!(e&&zt(p,m,h,a,o,g)))return It(p,m,s?[r,h,a,o,g]:[r,h,a,o])}function Pt(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}function Ft(e,t){let n=e.length;for(let r=n-1;r>=0&&!(t>=e[r][St]);n=r--);return n}function It(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function Lt(e){let{length:t}=e,n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}function Rt(e,t){return t===0?!0:e[t-1].length===1}function zt(e,t,n,r,i,a){if(t===0)return!1;let o=e[t-1];return o.length===1?!1:n===o[Ct]&&r===o[wt]&&i===o[Tt]&&a===(o.length===5?o[Et]:Dt)}function Bt({code:e,mappings:t},n,r,i,a){let o=Vt(i,a),s=new Ot({file:r.compiledFilename}),c=0,l=t[0];for(;l===void 0&&c<t.length-1;)c++,l=t[c];let u=0,d=0;l!==d&&At(s,u,0,n,u,0);for(let r=0;r<e.length;r++){if(r===l){let e=l-d,i=o[c];for(At(s,u,e,n,u,i);(l===r||l===void 0)&&c<t.length-1;)c++,l=t[c]}e.charCodeAt(r)===y.lineFeed&&(u++,d=r+1,l!==d&&At(s,u,0,n,u,0))}let{sourceRoot:f,sourcesContent:p,...m}=Mt(s);return m}function Vt(e,t){let n=Array(t.length),r=0,i=t[r].start,a=0;for(let o=0;o<e.length;o++)o===i&&(n[r]=i-a,r++,i=t[r].start),e.charCodeAt(o)===y.lineFeed&&(a=o+1);return n}var Ht={require:`
8
8
  import {createRequire as CREATE_REQUIRE_NAME} from "module";
9
9
  const require = CREATE_REQUIRE_NAME(import.meta.url);
10
10
  `,interopRequireWildcard:`
@@ -131,5 +131,5 @@ ${t.map(({variableName:e,uniqueLocalName:t})=>` reactHotLoader.register(${e}, "
131
131
  leaveModule(module);
132
132
  })();`}process(){return!1}},hc=new Set(`break.case.catch.class.const.continue.debugger.default.delete.do.else.export.extends.finally.for.function.if.import.in.instanceof.new.return.super.switch.this.throw.try.typeof.var.void.while.with.yield.enum.implements.interface.let.package.private.protected.public.static.await.false.null.true`.split(`.`));function gc(e){if(e.length===0||!me[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!F[e.charCodeAt(t)])return!1;return!hc.has(e)}var _c=class extends st{constructor(e,t,n){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=n}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(_._public)||this.tokens.matches1(_._protected)||this.tokens.matches1(_._private)||this.tokens.matches1(_._abstract)||this.tokens.matches1(_._readonly)||this.tokens.matches1(_._override)||this.tokens.matches1(_.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(_._enum)||this.tokens.matches2(_._const,_._enum)?(this.processEnum(),!0):this.tokens.matches2(_._export,_._enum)||this.tokens.matches3(_._export,_._const,_._enum)?(this.processEnum(!0),!0):!1}processEnum(e=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(_._const)||this.tokens.matches1(_._enum);)this.tokens.removeToken();let t=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode(`export `),this.tokens.appendCode(`var ${t}; (function (${t})`),this.tokens.copyExpectedToken(_.braceL),this.processEnumBody(t),this.tokens.copyExpectedToken(_.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${t} || (exports.${t} = ${t} = {}));`):this.tokens.appendCode(`)(${t} || (${t} = {}));`)}processEnumBody(e){let t=null;for(;!this.tokens.matches1(_.braceR);){let{nameStringCode:n,variableName:r}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(_.eq,_.string,_.comma)||this.tokens.matches3(_.eq,_.string,_.braceR)?this.processStringLiteralEnumMember(e,n,r):this.tokens.matches1(_.eq)?this.processExplicitValueEnumMember(e,n,r):this.processImplicitValueEnumMember(e,n,r,t),this.tokens.matches1(_.comma)&&this.tokens.removeToken(),t=r??`${e}[${n}]`}}extractEnumKeyInfo(e){if(e.type===_.name){let t=this.tokens.identifierNameForToken(e);return{nameStringCode:`"${t}"`,variableName:gc(t)?t:null}}else if(e.type===_.string){let t=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:gc(t)?t:null}}else throw Error(`Expected name or string at beginning of enum element.`)}processStringLiteralEnumMember(e,t,n){n==null?(this.tokens.appendCode(`${e}[${t}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`;`)):(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${e}[${t}] = ${n};`))}processExplicitValueEnumMember(e,t,n){let r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw Error(`Expected rhsEndIndex on enum assign.`);if(n!=null){for(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken();this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${e}[${e}[${t}] = ${n}] = ${t};`)}else{for(this.tokens.appendCode(`${e}[${e}[${t}]`),this.tokens.copyToken();this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${t};`)}}processImplicitValueEnumMember(e,t,n,r){let i=r==null?`0`:`${r} + 1`;n!=null&&(this.tokens.appendCode(`const ${n} = ${i}; `),i=n),this.tokens.appendCode(`${e}[${e}[${t}] = ${i}] = ${t};`)}},vc=class e{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(t,n,r,i){e.prototype.__init.call(this),e.prototype.__init2.call(this),this.nameManager=t.nameManager,this.helperManager=t.helperManager;let{tokenProcessor:a,importProcessor:o}=t;this.tokens=a,this.isImportsTransformEnabled=n.includes(`imports`),this.isReactHotLoaderTransformEnabled=n.includes(`react-hot-loader`),this.disableESTransforms=!!i.disableESTransforms,i.disableESTransforms||(this.transformers.push(new fc(a,this.nameManager)),this.transformers.push(new uc(a)),this.transformers.push(new dc(a,this.nameManager))),n.includes(`jsx`)&&(i.jsxRuntime!==`preserve`&&this.transformers.push(new ct(this,a,o,this.nameManager,i)),this.transformers.push(new pc(this,a,o,i)));let s=null;if(n.includes(`react-hot-loader`)){if(!i.filePath)throw Error(`filePath is required when using the react-hot-loader transform.`);s=new mc(a,i.filePath),this.transformers.push(s)}if(n.includes(`imports`)){if(o===null)throw Error(`Expected non-null importProcessor with imports transform enabled.`);this.transformers.push(new rc(this,a,o,this.nameManager,this.helperManager,s,r,!!i.enableLegacyTypeScriptModuleInterop,n.includes(`typescript`),n.includes(`flow`),!!i.preserveDynamicImport,!!i.keepUnusedImports))}else this.transformers.push(new ic(a,this.nameManager,this.helperManager,s,n.includes(`typescript`),n.includes(`flow`),!!i.keepUnusedImports,i));n.includes(`flow`)&&this.transformers.push(new ac(this,a,n.includes(`imports`))),n.includes(`typescript`)&&this.transformers.push(new _c(this,a,n.includes(`imports`))),n.includes(`jest`)&&this.transformers.push(new lc(this,a,this.nameManager,o))}transform(){this.tokens.reset(),this.processBalancedCode();let e=this.isImportsTransformEnabled?`"use strict";`:``;for(let t of this.transformers)e+=t.getPrefixCode();e+=this.helperManager.emitHelpers(),e+=this.generatedVariables.map(e=>` var ${e};`).join(``);for(let t of this.transformers)e+=t.getHoistedCode();let t=``;for(let e of this.transformers)t+=e.getSuffixCode();let n=this.tokens.finish(),{code:r}=n;if(r.startsWith(`#!`)){let i=r.indexOf(`
133
133
  `);return i===-1&&(i=r.length,r+=`
134
- `),{code:r.slice(0,i+1)+e+r.slice(i+1)+t,mappings:this.shiftMappings(n.mappings,e.length)}}else return{code:e+r+t,mappings:this.shiftMappings(n.mappings,e.length)}}processBalancedCode(){let e=0,t=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(_.braceL)||this.tokens.matches1(_.dollarBraceL))e++;else if(this.tokens.matches1(_.braceR)){if(e===0)return;e--}if(this.tokens.matches1(_.parenL))t++;else if(this.tokens.matches1(_.parenR)){if(t===0)return;t--}this.processToken()}}processToken(){if(this.tokens.matches1(_._class)){this.processClass();return}for(let e of this.transformers)if(e.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(_._class,_.name))throw Error(`Expected identifier for exported class name.`);let e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){let e=Gs(this,this.tokens,this.nameManager,this.disableESTransforms),t=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0,n=e.headerInfo.className;t&&(n=this.nameManager.claimFreeName(`_class`),this.generatedVariables.push(n),this.tokens.appendCode(` (${n} =`));let r=this.tokens.currentToken().contextId;if(r==null)throw Error(`Expected class to have a context ID.`);for(this.tokens.copyExpectedToken(_._class);!this.tokens.matchesContextIdAndLabel(_.braceL,r);)this.processToken();this.processClassBody(e,n);let i=e.staticInitializerNames.map(e=>`${n}.${e}()`);t?this.tokens.appendCode(`, ${i.map(e=>`${e}, `).join(``)}${n})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${i.map(e=>`${e};`).join(` `)}`)}processClassBody(e,t){let{headerInfo:n,constructorInsertPos:r,constructorInitializerStatements:i,fields:a,instanceInitializerNames:o,rangesToRemove:s}=e,c=0,l=0,u=this.tokens.currentToken().contextId;if(u==null)throw Error(`Expected non-null context ID on class.`);this.tokens.copyExpectedToken(_.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode(`__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}`);let d=i.length+o.length>0;if(r===null&&d){let e=this.makeConstructorInitCode(i,o,t);if(n.hasSuperclass){let t=this.nameManager.claimFreeName(`args`);this.tokens.appendCode(`constructor(...${t}) { super(...${t}); ${e}; }`)}else this.tokens.appendCode(`constructor() { ${e}; }`)}for(;!this.tokens.matchesContextIdAndLabel(_.braceR,u);)if(c<a.length&&this.tokens.currentIndex()===a[c].start){let e=!1;for(this.tokens.matches1(_.bracketL)?this.tokens.copyTokenWithPrefix(`${a[c].initializerName}() {this`):this.tokens.matches1(_.string)||this.tokens.matches1(_.num)?(this.tokens.copyTokenWithPrefix(`${a[c].initializerName}() {this[`),e=!0):this.tokens.copyTokenWithPrefix(`${a[c].initializerName}() {this.`);this.tokens.currentIndex()<a[c].end;)e&&this.tokens.currentIndex()===a[c].equalsIndex&&this.tokens.appendCode(`]`),this.processToken();this.tokens.appendCode(`}`),c++}else if(l<s.length&&this.tokens.currentIndex()>=s[l].start){for(this.tokens.currentIndex()<s[l].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<s[l].end;)this.tokens.removeToken();l++}else this.tokens.currentIndex()===r?(this.tokens.copyToken(),d&&this.tokens.appendCode(`;${this.makeConstructorInitCode(i,o,t)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(_.braceR)}makeConstructorInitCode(e,t,n){return[...e,...t.map(e=>`${n}.prototype.${e}.call(this)`)].join(`;`)}processPossibleArrowParamEnd(){if(this.tokens.matches2(_.parenR,_.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,_.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(`) =>`),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(g._async)&&!this.tokens.matches1(_._async))return!1;let e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==_.lessThan||!e.isType)return!1;let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,_.parenL)){for(this.tokens.replaceToken(`async (`),this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(e,t){for(let n=0;n<e.length;n++){let r=e[n];r!==void 0&&(e[n]=r+t)}return e}};e(t((e=>{e.__esModule=!0,e.LinesAndColumns=void 0;var t=`
135
- `,n=`\r`;e.LinesAndColumns=function(){function e(e){this.string=e;for(var r=[0],i=0;i<e.length;)switch(e[i]){case t:i+=t.length,r.push(i);break;case n:i+=n.length,e[i]===t&&(i+=t.length),r.push(i);break;default:i++;break}this.offsets=r}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;var r=e-n[t];return{line:t,column:r}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}()}))());function yc(e){let t=new Set;for(let n=0;n<e.tokens.length;n++)e.matches1AtIndex(n,_._import)&&!e.matches3AtIndex(n,_._import,_.name,_.eq)&&bc(e,n,t);return t}function bc(e,t,n){t++,!e.matches1AtIndex(t,_.parenL)&&(e.matches1AtIndex(t,_.name)&&(n.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,_.comma)&&t++),e.matches1AtIndex(t,_.star)&&(t+=2,n.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,_.braceL)&&(t++,xc(e,t,n)))}function xc(e,t,n){for(;;){if(e.matches1AtIndex(t,_.braceR))return;let r=nt(e,t);if(t=r.endIndex,r.isType||n.add(r.rightName),e.matches2AtIndex(t,_.comma,_.braceR)||e.matches1AtIndex(t,_.braceR))return;if(e.matches1AtIndex(t,_.comma))t++;else throw Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`)}}function Sc(e,t){en(t);try{let n=Cc(e,t),r=new vc(n,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform(),i={code:r.code};if(t.sourceMapOptions){if(!t.filePath)throw Error(`filePath must be specified when generating a source map.`);i={...i,sourceMap:Bt(r,t.filePath,t.sourceMapOptions,e,n.tokenProcessor.tokens)}}return i}catch(e){throw t.filePath&&(e.message=`Error transforming ${t.filePath}: ${e.message}`),e}}function Cc(e,t){let n=t.transforms.includes(`jsx`),r=t.transforms.includes(`typescript`),i=t.transforms.includes(`flow`),a=t.disableESTransforms===!0,o=Hs(e,n,r,i),s=o.tokens,c=o.scopes,l=new Yt(e,s),u=new Ut(l),d=new Ws(e,s,i,a,u),f=!!t.enableLegacyTypeScriptModuleInterop,p=null;return t.transforms.includes(`imports`)?(p=new _t(l,d,f,t,t.transforms.includes(`typescript`),!!t.keepUnusedImports,u),p.preprocessTokens(),Wt(d,c,p.getGlobalNames()),t.transforms.includes(`typescript`)&&!t.keepUnusedImports&&p.pruneTypeOnlyImports()):t.transforms.includes(`typescript`)&&!t.keepUnusedImports&&Wt(d,c,yc(d)),{tokenProcessor:d,scopes:c,nameManager:l,importProcessor:p,helperManager:u}}export{h as n,i as r,Sc as t};
134
+ `),{code:r.slice(0,i+1)+e+r.slice(i+1)+t,mappings:this.shiftMappings(n.mappings,e.length)}}else return{code:e+r+t,mappings:this.shiftMappings(n.mappings,e.length)}}processBalancedCode(){let e=0,t=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(_.braceL)||this.tokens.matches1(_.dollarBraceL))e++;else if(this.tokens.matches1(_.braceR)){if(e===0)return;e--}if(this.tokens.matches1(_.parenL))t++;else if(this.tokens.matches1(_.parenR)){if(t===0)return;t--}this.processToken()}}processToken(){if(this.tokens.matches1(_._class)){this.processClass();return}for(let e of this.transformers)if(e.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(_._class,_.name))throw Error(`Expected identifier for exported class name.`);let e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){let e=Gs(this,this.tokens,this.nameManager,this.disableESTransforms),t=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0,n=e.headerInfo.className;t&&(n=this.nameManager.claimFreeName(`_class`),this.generatedVariables.push(n),this.tokens.appendCode(` (${n} =`));let r=this.tokens.currentToken().contextId;if(r==null)throw Error(`Expected class to have a context ID.`);for(this.tokens.copyExpectedToken(_._class);!this.tokens.matchesContextIdAndLabel(_.braceL,r);)this.processToken();this.processClassBody(e,n);let i=e.staticInitializerNames.map(e=>`${n}.${e}()`);t?this.tokens.appendCode(`, ${i.map(e=>`${e}, `).join(``)}${n})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${i.map(e=>`${e};`).join(` `)}`)}processClassBody(e,t){let{headerInfo:n,constructorInsertPos:r,constructorInitializerStatements:i,fields:a,instanceInitializerNames:o,rangesToRemove:s}=e,c=0,l=0,u=this.tokens.currentToken().contextId;if(u==null)throw Error(`Expected non-null context ID on class.`);this.tokens.copyExpectedToken(_.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode(`__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}`);let d=i.length+o.length>0;if(r===null&&d){let e=this.makeConstructorInitCode(i,o,t);if(n.hasSuperclass){let t=this.nameManager.claimFreeName(`args`);this.tokens.appendCode(`constructor(...${t}) { super(...${t}); ${e}; }`)}else this.tokens.appendCode(`constructor() { ${e}; }`)}for(;!this.tokens.matchesContextIdAndLabel(_.braceR,u);)if(c<a.length&&this.tokens.currentIndex()===a[c].start){let e=!1;for(this.tokens.matches1(_.bracketL)?this.tokens.copyTokenWithPrefix(`${a[c].initializerName}() {this`):this.tokens.matches1(_.string)||this.tokens.matches1(_.num)?(this.tokens.copyTokenWithPrefix(`${a[c].initializerName}() {this[`),e=!0):this.tokens.copyTokenWithPrefix(`${a[c].initializerName}() {this.`);this.tokens.currentIndex()<a[c].end;)e&&this.tokens.currentIndex()===a[c].equalsIndex&&this.tokens.appendCode(`]`),this.processToken();this.tokens.appendCode(`}`),c++}else if(l<s.length&&this.tokens.currentIndex()>=s[l].start){for(this.tokens.currentIndex()<s[l].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<s[l].end;)this.tokens.removeToken();l++}else this.tokens.currentIndex()===r?(this.tokens.copyToken(),d&&this.tokens.appendCode(`;${this.makeConstructorInitCode(i,o,t)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(_.braceR)}makeConstructorInitCode(e,t,n){return[...e,...t.map(e=>`${n}.prototype.${e}.call(this)`)].join(`;`)}processPossibleArrowParamEnd(){if(this.tokens.matches2(_.parenR,_.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,_.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(`) =>`),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(g._async)&&!this.tokens.matches1(_._async))return!1;let e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==_.lessThan||!e.isType)return!1;let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,_.parenL)){for(this.tokens.replaceToken(`async (`),this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(e,t){for(let n=0;n<e.length;n++){let r=e[n];r!==void 0&&(e[n]=r+t)}return e}};t((e=>{e.__esModule=!0,e.LinesAndColumns=void 0;var t=`
135
+ `,n=`\r`;e.LinesAndColumns=function(){function e(e){this.string=e;for(var r=[0],i=0;i<e.length;)switch(e[i]){case t:i+=t.length,r.push(i);break;case n:i+=n.length,e[i]===t&&(i+=t.length),r.push(i);break;default:i++;break}this.offsets=r}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;var r=e-n[t];return{line:t,column:r}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}()}))();function yc(e){let t=new Set;for(let n=0;n<e.tokens.length;n++)e.matches1AtIndex(n,_._import)&&!e.matches3AtIndex(n,_._import,_.name,_.eq)&&bc(e,n,t);return t}function bc(e,t,n){t++,!e.matches1AtIndex(t,_.parenL)&&(e.matches1AtIndex(t,_.name)&&(n.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,_.comma)&&t++),e.matches1AtIndex(t,_.star)&&(t+=2,n.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,_.braceL)&&(t++,xc(e,t,n)))}function xc(e,t,n){for(;;){if(e.matches1AtIndex(t,_.braceR))return;let r=nt(e,t);if(t=r.endIndex,r.isType||n.add(r.rightName),e.matches2AtIndex(t,_.comma,_.braceR)||e.matches1AtIndex(t,_.braceR))return;if(e.matches1AtIndex(t,_.comma))t++;else throw Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`)}}function Sc(e,t){en(t);try{let n=Cc(e,t),r=new vc(n,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform(),i={code:r.code};if(t.sourceMapOptions){if(!t.filePath)throw Error(`filePath must be specified when generating a source map.`);i={...i,sourceMap:Bt(r,t.filePath,t.sourceMapOptions,e,n.tokenProcessor.tokens)}}return i}catch(e){throw t.filePath&&(e.message=`Error transforming ${t.filePath}: ${e.message}`),e}}function Cc(e,t){let n=t.transforms.includes(`jsx`),r=t.transforms.includes(`typescript`),i=t.transforms.includes(`flow`),a=t.disableESTransforms===!0,o=Hs(e,n,r,i),s=o.tokens,c=o.scopes,l=new Yt(e,s),u=new Ut(l),d=new Ws(e,s,i,a,u),f=!!t.enableLegacyTypeScriptModuleInterop,p=null;return t.transforms.includes(`imports`)?(p=new _t(l,d,f,t,t.transforms.includes(`typescript`),!!t.keepUnusedImports,u),p.preprocessTokens(),Wt(d,c,p.getGlobalNames()),t.transforms.includes(`typescript`)&&!t.keepUnusedImports&&p.pruneTypeOnlyImports()):t.transforms.includes(`typescript`)&&!t.keepUnusedImports&&Wt(d,c,yc(d)),{tokenProcessor:d,scopes:c,nameManager:l,importProcessor:p,helperManager:u}}export{h as n,i as r,Sc as t};
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ofetch-XPJe_o5P.js","./rolldown-runtime-Bhmf7a9N.js"])))=>i.map(i=>d[i]);
2
- import{r as e,t}from"./rolldown-runtime-Bhmf7a9N.js";import{n,r}from"./sucrase-D9elb1_L.js";var i=`default`,a=`preflights`,o=`shortcuts`,s=`imports`,c={[s]:-200,[a]:-100,[o]:-10,[i]:0},l=/[\\:]?[\s'"`;{}]+/g;function u(e){return e.split(l)}var d={name:`@unocss/core/extractor-split`,order:0,extract({code:e}){return u(e)}};function f(e=[]){return Array.isArray(e)?e:[e]}function p(e){return Array.from(new Set(e))}function m(e,t){return e.reduce((e,n)=>(e.findIndex(e=>t(n,e))===-1&&e.push(n),e),[])}function h(e){return typeof e==`string`}var g=class extends Set{constructor(e){if(super(),this._map=new Map,e)for(let t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function _(e){return e instanceof g}function v(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function y(e){let t=e.length,n=-1,r,i=``,a=e.charCodeAt(0);for(;++n<t;){if(r=e.charCodeAt(n),r===0){i+=`�`;continue}if(r===37){i+=`\\%`;continue}if(r===44){i+=`\\,`;continue}if(r>=1&&r<=31||r===127||n===0&&r>=48&&r<=57||n===1&&r>=48&&r<=57&&a===45){i+=`\\${r.toString(16)} `;continue}if(n===0&&t===1&&r===45){i+=`\\${e.charAt(n)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){i+=e.charAt(n);continue}i+=`\\${e.charAt(n)}`}return i}var b=y;function ee(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(e=>e(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(e=>e!==t)}}}var te=/^\[(.+?)~?="(.*)"\]$/,x=/\.(css|postcss|sass|scss|less|stylus|styl)($|\?)/,ne=/[\w\u00A0-\uFFFF%-?]/;function re(e){return e.match(te)}function ie(e=``){return ne.test(e)}function ae(e){return typeof e==`function`?{match:e}:e}function oe(e){return e.length===3}function se(e){return e!=null}function ce(){}var le=class{constructor(){this._map=new Map}get(e,t){let n=this._map.get(e);if(n)return n.get(t)}getFallback(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(t)||r.set(t,n),r.get(t)}set(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(t,n),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,n])=>Array.from(n.entries()).map(([n,r])=>e(r,t,n)))}},ue=class extends Map{getFallback(e,t){let n=this.get(e);return n===void 0?(this.set(e,t),t):n}map(e){let t=[];return this.forEach((n,r)=>{t.push(e(n,r))}),t}flatMap(e){let t=[];return this.forEach((n,r)=>{t.push(...e(n,r))}),t}};function de(e){return h(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(e=>e[1]!=null)}function fe(e){return Array.isArray(e)?e.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?e.map(e=>de(e)):[e]:[de(e)]}function pe(e){return e.filter(([t,n],r)=>{if(t.startsWith(`$$`))return!1;for(let i=r-1;i>=0;i--)if(e[i][0]===t&&e[i][1]===n)return!1;return!0})}var me=`__virtual_key__`;function he(e){return e==null?``:pe(e).map(([e,t])=>t!=null&&typeof t!=`function`?e===`__virtual_key__`?t:`${e}:${t};`:void 0).filter(Boolean).join(``)}function ge(e){return e&&typeof e==`object`&&!Array.isArray(e)}function _e(e,t,n=!1){let r=e,i=t;if(Array.isArray(i))return n&&Array.isArray(i)?[...r,...i]:[...i];let a={...r};return ge(r)&&ge(i)&&Object.keys(i).forEach(e=>{ge(r[e])&&ge(i[e])||Array.isArray(r[e])&&Array.isArray(i[e])?a[e]=_e(r[e],i[e],n):Object.assign(a,{[e]:i[e]})}),a}function ve(e){let t,n,r;if(Array.isArray(e)){for(n=Array.from({length:t=e.length});t--;)n[t]=(r=e[t])&&typeof r==`object`?ve(r):r;return n}if(Object.prototype.toString.call(e)===`[object Object]`){for(t in n={},e)t===`__proto__`?Object.defineProperty(n,t,{value:ve(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(r=e[t])&&typeof r==`object`?ve(r):r;return n}return e}function ye(e){return h(e[0])}function be(e){return h(e[0])}var xe={};function Se(e=[`-`,`:`]){let t=e.join(`|`);return xe[t]||(xe[t]=RegExp(`((?:[!@*<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,`gm`)),xe[t].lastIndex=0,xe[t]}function Ce(e,t=[`-`,`:`],n=5){let r=Se(t),i,a=e.toString(),o=new Set,s=new Map;do i=!1,a=a.replace(r,(e,n,r,a,c)=>{if(!t.includes(r))return e;i=!0,o.add(n+r);let l=c+n.length+r.length+1,u={length:e.length,items:[]};s.set(c,u);for(let e of[...a.matchAll(/\S+/g)]){let t=l+e.index,i=s.get(t)?.items;i?s.delete(t):i=[{offset:t,length:e[0].length,className:e[0]}];for(let e of i)e.className=e.className===`~`?r===`:`?`${n}${r}~`:n:e.className.replace(/^(!?)(.*)/,`$1${n}${r}$2`),u.items.push(e)}return`$`.repeat(e.length)}),--n;while(i&&n);let c;if(typeof e==`string`){c=``;let t=0;for(let[n,r]of s)c+=e.slice(t,n),c+=r.items.map(e=>e.className).join(` `),t=n+r.length;c+=e.slice(t)}else{c=e;for(let[e,t]of s)c.overwrite(e,e+t.length,t.items.map(e=>e.className).join(` `))}return{prefixes:Array.from(o),hasChanged:i,groupsByOffset:s,get expanded(){return c.toString()}}}function we(e,t=[`-`,`:`],n=5){let r=Ce(e,t,n);return typeof e==`string`?r.expanded:e}var Te=new Set;function Ee(e){Te.has(e)||(console.warn(`[unocss]`,e),Te.add(e))}function De(e){return f(e).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Oe=`_uno_resolved`;async function ke(e){let t=typeof e==`function`?await e():await e;if(Oe in t)return t;t={...t},Object.defineProperty(t,Oe,{value:!0,enumerable:!1});let n=t.shortcuts?De(t.shortcuts):void 0;if(t.shortcuts=n,t.prefix||t.layer){let e=e=>{e[2]||={};let n=e[2];n.prefix==null&&t.prefix&&(n.prefix=f(t.prefix)),n.layer==null&&t.layer&&(n.layer=t.layer)};n?.forEach(e),t.rules?.forEach(e)}return t}async function Ae(e){let t=await ke(e);return t.presets?[t,...(await Promise.all((t.presets||[]).flatMap(f).flatMap(Ae))).flat()]:[t]}function je(e){if(e.length===0)return{};let t=[],n=[],r=!1,i=[],a=[];for(let o of e){if(o.pipeline===!1){r=!0;break}else o.pipeline?.include&&t.push(o.pipeline.include),o.pipeline?.exclude&&n.push(o.pipeline.exclude);o.filesystem&&i.push(o.filesystem),o.inline&&a.push(o.inline)}let o={pipeline:r?!1:{include:p(Fe(...t)),exclude:p(Fe(...n))}};return i.length&&(o.filesystem=p(i.flat())),a.length&&(o.inline=p(a.flat())),o}async function Me(e={},t={}){let n=Object.assign({},t,e),r=m((await Promise.all((n.presets||[]).flatMap(f).flatMap(Ae))).flat(),(e,t)=>e.name===t.name),i=[...r.filter(e=>e.enforce===`pre`),...r.filter(e=>!e.enforce),...r.filter(e=>e.enforce===`post`)],a=[...i,n],o=[...a].reverse(),s=Object.assign({},c,...a.map(e=>e.layers));function l(e){return p(a.flatMap(t=>f(t[e]||[])))}let u=l(`extractors`),h=o.find(e=>e.extractorDefault!==void 0)?.extractorDefault;h===void 0&&(h=d),h&&!u.includes(h)&&u.unshift(h),u.sort((e,t)=>(e.order||0)-(t.order||0));let g=l(`rules`),_=g.length,v={},y=[];for(let[e,t]of g.entries()){let n=t[2]??={};n.__index=e,ye(t)?f(n.prefix??``).forEach(e=>{v[e+t[0]]=t}):y.unshift(t)}let b={templates:p(a.flatMap(e=>f(e.autocomplete?.templates))),extractors:a.flatMap(e=>f(e.autocomplete?.extractors)).sort((e,t)=>(e.order||0)-(t.order||0)),shorthands:Pe(a.map(e=>e.autocomplete?.shorthands||{}))},ee=l(`separators`);ee.length||(ee=[`:`,`-`]);let te=je(l(`content`)),x={mergeSelectors:!0,warn:!0,sortLayers:e=>e,...n,blocklist:l(`blocklist`),presets:i,envMode:n.envMode||`build`,shortcutsLayer:n.shortcutsLayer||`shortcuts`,layers:s,theme:Ne(a.map(e=>e.theme)),rules:g,rulesSize:_,rulesDynamic:y,rulesStaticMap:v,preprocess:l(`preprocess`),postprocess:l(`postprocess`),preflights:l(`preflights`),autocomplete:b,variants:l(`variants`).map(ae).sort((e,t)=>(e.order||0)-(t.order||0)),shortcuts:De(l(`shortcuts`)).reverse(),extractors:u,safelist:l(`safelist`),separators:ee,details:n.details??n.envMode===`dev`,content:te,transformers:m(l(`transformers`),(e,t)=>e.name===t.name)},ne=l(`extendTheme`);for(let e of ne)x.theme=e(x.theme,x)||x.theme;for(let e of a)e?.configResolved?.(x);return x}function Ne(e){return e.map(e=>e?ve(e):{}).reduce((e,t)=>_e(e,t),{})}function Pe(e){return e.reduce((e,t)=>{let n={};for(let e in t){let r=t[e];Array.isArray(r)?n[e]=`(${r.join(`|`)})`:n[e]=r}return{...e,...n}},{})}function Fe(...e){return e.flatMap(Ie)}function Ie(e){return Array.isArray(e)?e:e?[e]:[]}function Le(e){return e}var Re=`66.6.7`,S={shortcutsNoMerge:`$$symbol-shortcut-no-merge`,noMerge:`$$symbol-no-merge`,noScope:`$$symbol-no-scope`,variants:`$$symbol-variants`,parent:`$$symbol-parent`,selector:`$$symbol-selector`,layer:`$$symbol-layer`,sort:`$$symbol-sort`,body:`$$symbol-body`},ze=class e{constructor(e={},t={}){this.userConfig=e,this.defaults=t,this.version=Re,this.events=ee(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(e,t,n,r)=>{let i=fe(t).filter(e=>e.length);if(i.length){this.config.details&&r.rules.push(n),r.generator.activatedRules.add(n);let t=n[2];return i.map(n=>{if(h(n))return[t.__index,n,t];let i=r.variantHandlers,a=t,o=e=>{i=[e,...i]},s=e=>{a={...a,...e}};for(let e of n)switch(e[0]){case S.variants:i=typeof e[1]==`function`?e[1](i)||i:[...f(e[1]),...i];break;case S.parent:o({parent:e[1]});break;case S.selector:o({selector:e[1]});break;case S.layer:o({layer:e[1]});break;case S.sort:s({sort:e[1]});break;case S.noMerge:s({noMerge:e[1]});break;case S.noScope:s({noScope:e[1]});break;case S.body:e[0]=me;break}return[t.__index,e,n,a,i]})}}}static async create(t={},n={}){let r=new e(t,n);return r.config=await Me(r.userConfig,r.defaults),r.events.emit(`config`,r.config),r}async setConfig(e,t){e&&(t&&(this.defaults=t),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Me(e,this.defaults),this.events.emit(`config`,this.config))}async applyExtractors(e,t,n=new Set){let r={original:e,code:e,id:t,extracted:n,envMode:this.config.envMode};for(let e of this.config.extractors){let t=await e.extract?.(r);if(t)if(_(t)&&_(n))for(let e of t)n.setCount(e,n.getCount(e)+t.getCount(e));else for(let e of t)n.add(e)}return n}makeContext(e,t){let n={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:S,variantHandlers:t[2],constructCSS:(...e)=>this.constructCustomCSS(n,...e),variantMatch:t};return n}async parseToken(e,t){if(this.blocked.has(e))return;let n=`${e}${t?` ${t}`:``}`;if(this.cache.has(n))return this.cache.get(n);let r=this.config.preprocess.reduce((e,t)=>t(e)??e,e);if(this.isBlocked(r)){this.blocked.add(e),this.cache.set(n,null);return}let i=await this.matchVariants(e,r);if(i.every(e=>!e||this.isBlocked(e[1]))){this.blocked.add(e),this.cache.set(n,null);return}let a=async n=>{let r=this.makeContext(e,[t||n[0],n[1],n[2],n[3]]);this.config.details&&(r.variants=[...n[3]]);let i=await this.expandShortcut(r.currentSelector,r);return i?await this.stringifyShortcuts(r.variantMatch,r,i[0],i[1]):(await this.parseUtil(r.variantMatch,r))?.flatMap(e=>this.stringifyUtil(e,r)).filter(se)},o=(await Promise.all(i.map(e=>a(e)))).flat().filter(e=>!!e);if(o?.length)return this.cache.set(n,o),o;this.cache.set(n,null)}async generate(e,t={}){let{id:n,scope:r,preflights:o=!0,safelist:s=!0,minify:c=!1,extendedInfo:l=!1}=t,u=h(e)?await this.applyExtractors(e,n,l?new g:new Set):Array.isArray(e)?new Set(e):e;if(s){let e={generator:this,theme:this.config.theme};this.config.safelist.flatMap(t=>typeof t==`function`?t(e):t).forEach(e=>{let t=e.trim();t&&!u.has(t)&&u.add(t)})}let d=c?``:`
2
+ import{r as e,t}from"./rolldown-runtime-Bhmf7a9N.js";import{n,r}from"./sucrase-BmNnDM1e.js";var i=`default`,a=`preflights`,o=`shortcuts`,s=`imports`,c={[s]:-200,[a]:-100,[o]:-10,[i]:0},l=/[\\:]?[\s'"`;{}]+/g;function u(e){return e.split(l)}var d={name:`@unocss/core/extractor-split`,order:0,extract({code:e}){return u(e)}};function f(e=[]){return Array.isArray(e)?e:[e]}function p(e){return Array.from(new Set(e))}function m(e,t){return e.reduce((e,n)=>(e.findIndex(e=>t(n,e))===-1&&e.push(n),e),[])}function h(e){return typeof e==`string`}var g=class extends Set{constructor(e){if(super(),this._map=new Map,e)for(let t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function _(e){return e instanceof g}function v(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function y(e){let t=e.length,n=-1,r,i=``,a=e.charCodeAt(0);for(;++n<t;){if(r=e.charCodeAt(n),r===0){i+=`�`;continue}if(r===37){i+=`\\%`;continue}if(r===44){i+=`\\,`;continue}if(r>=1&&r<=31||r===127||n===0&&r>=48&&r<=57||n===1&&r>=48&&r<=57&&a===45){i+=`\\${r.toString(16)} `;continue}if(n===0&&t===1&&r===45){i+=`\\${e.charAt(n)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){i+=e.charAt(n);continue}i+=`\\${e.charAt(n)}`}return i}var b=y;function ee(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(e=>e(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(e=>e!==t)}}}var te=/^\[(.+?)~?="(.*)"\]$/,x=/\.(css|postcss|sass|scss|less|stylus|styl)($|\?)/,ne=/[\w\u00A0-\uFFFF%-?]/;function re(e){return e.match(te)}function ie(e=``){return ne.test(e)}function ae(e){return typeof e==`function`?{match:e}:e}function oe(e){return e.length===3}function se(e){return e!=null}function ce(){}var le=class{constructor(){this._map=new Map}get(e,t){let n=this._map.get(e);if(n)return n.get(t)}getFallback(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(t)||r.set(t,n),r.get(t)}set(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(t,n),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,n])=>Array.from(n.entries()).map(([n,r])=>e(r,t,n)))}},ue=class extends Map{getFallback(e,t){let n=this.get(e);return n===void 0?(this.set(e,t),t):n}map(e){let t=[];return this.forEach((n,r)=>{t.push(e(n,r))}),t}flatMap(e){let t=[];return this.forEach((n,r)=>{t.push(...e(n,r))}),t}};function de(e){return h(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(e=>e[1]!=null)}function fe(e){return Array.isArray(e)?e.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?e.map(e=>de(e)):[e]:[de(e)]}function pe(e){return e.filter(([t,n],r)=>{if(t.startsWith(`$$`))return!1;for(let i=r-1;i>=0;i--)if(e[i][0]===t&&e[i][1]===n)return!1;return!0})}var me=`__virtual_key__`;function he(e){return e==null?``:pe(e).map(([e,t])=>t!=null&&typeof t!=`function`?e===`__virtual_key__`?t:`${e}:${t};`:void 0).filter(Boolean).join(``)}function ge(e){return e&&typeof e==`object`&&!Array.isArray(e)}function _e(e,t,n=!1){let r=e,i=t;if(Array.isArray(i))return n&&Array.isArray(i)?[...r,...i]:[...i];let a={...r};return ge(r)&&ge(i)&&Object.keys(i).forEach(e=>{ge(r[e])&&ge(i[e])||Array.isArray(r[e])&&Array.isArray(i[e])?a[e]=_e(r[e],i[e],n):Object.assign(a,{[e]:i[e]})}),a}function ve(e){let t,n,r;if(Array.isArray(e)){for(n=Array.from({length:t=e.length});t--;)n[t]=(r=e[t])&&typeof r==`object`?ve(r):r;return n}if(Object.prototype.toString.call(e)===`[object Object]`){for(t in n={},e)t===`__proto__`?Object.defineProperty(n,t,{value:ve(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(r=e[t])&&typeof r==`object`?ve(r):r;return n}return e}function ye(e){return h(e[0])}function be(e){return h(e[0])}var xe={};function Se(e=[`-`,`:`]){let t=e.join(`|`);return xe[t]||(xe[t]=RegExp(`((?:[!@*<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,`gm`)),xe[t].lastIndex=0,xe[t]}function Ce(e,t=[`-`,`:`],n=5){let r=Se(t),i,a=e.toString(),o=new Set,s=new Map;do i=!1,a=a.replace(r,(e,n,r,a,c)=>{if(!t.includes(r))return e;i=!0,o.add(n+r);let l=c+n.length+r.length+1,u={length:e.length,items:[]};s.set(c,u);for(let e of[...a.matchAll(/\S+/g)]){let t=l+e.index,i=s.get(t)?.items;i?s.delete(t):i=[{offset:t,length:e[0].length,className:e[0]}];for(let e of i)e.className=e.className===`~`?r===`:`?`${n}${r}~`:n:e.className.replace(/^(!?)(.*)/,`$1${n}${r}$2`),u.items.push(e)}return`$`.repeat(e.length)}),--n;while(i&&n);let c;if(typeof e==`string`){c=``;let t=0;for(let[n,r]of s)c+=e.slice(t,n),c+=r.items.map(e=>e.className).join(` `),t=n+r.length;c+=e.slice(t)}else{c=e;for(let[e,t]of s)c.overwrite(e,e+t.length,t.items.map(e=>e.className).join(` `))}return{prefixes:Array.from(o),hasChanged:i,groupsByOffset:s,get expanded(){return c.toString()}}}function we(e,t=[`-`,`:`],n=5){let r=Ce(e,t,n);return typeof e==`string`?r.expanded:e}var Te=new Set;function Ee(e){Te.has(e)||(console.warn(`[unocss]`,e),Te.add(e))}function De(e){return f(e).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Oe=`_uno_resolved`;async function ke(e){let t=typeof e==`function`?await e():await e;if(Oe in t)return t;t={...t},Object.defineProperty(t,Oe,{value:!0,enumerable:!1});let n=t.shortcuts?De(t.shortcuts):void 0;if(t.shortcuts=n,t.prefix||t.layer){let e=e=>{e[2]||={};let n=e[2];n.prefix==null&&t.prefix&&(n.prefix=f(t.prefix)),n.layer==null&&t.layer&&(n.layer=t.layer)};n?.forEach(e),t.rules?.forEach(e)}return t}async function Ae(e){let t=await ke(e);return t.presets?[t,...(await Promise.all((t.presets||[]).flatMap(f).flatMap(Ae))).flat()]:[t]}function je(e){if(e.length===0)return{};let t=[],n=[],r=!1,i=[],a=[];for(let o of e){if(o.pipeline===!1){r=!0;break}else o.pipeline?.include&&t.push(o.pipeline.include),o.pipeline?.exclude&&n.push(o.pipeline.exclude);o.filesystem&&i.push(o.filesystem),o.inline&&a.push(o.inline)}let o={pipeline:r?!1:{include:p(Fe(...t)),exclude:p(Fe(...n))}};return i.length&&(o.filesystem=p(i.flat())),a.length&&(o.inline=p(a.flat())),o}async function Me(e={},t={}){let n=Object.assign({},t,e),r=m((await Promise.all((n.presets||[]).flatMap(f).flatMap(Ae))).flat(),(e,t)=>e.name===t.name),i=[...r.filter(e=>e.enforce===`pre`),...r.filter(e=>!e.enforce),...r.filter(e=>e.enforce===`post`)],a=[...i,n],o=[...a].reverse(),s=Object.assign({},c,...a.map(e=>e.layers));function l(e){return p(a.flatMap(t=>f(t[e]||[])))}let u=l(`extractors`),h=o.find(e=>e.extractorDefault!==void 0)?.extractorDefault;h===void 0&&(h=d),h&&!u.includes(h)&&u.unshift(h),u.sort((e,t)=>(e.order||0)-(t.order||0));let g=l(`rules`),_=g.length,v={},y=[];for(let[e,t]of g.entries()){let n=t[2]??={};n.__index=e,ye(t)?f(n.prefix??``).forEach(e=>{v[e+t[0]]=t}):y.unshift(t)}let b={templates:p(a.flatMap(e=>f(e.autocomplete?.templates))),extractors:a.flatMap(e=>f(e.autocomplete?.extractors)).sort((e,t)=>(e.order||0)-(t.order||0)),shorthands:Pe(a.map(e=>e.autocomplete?.shorthands||{}))},ee=l(`separators`);ee.length||(ee=[`:`,`-`]);let te=je(l(`content`)),x={mergeSelectors:!0,warn:!0,sortLayers:e=>e,...n,blocklist:l(`blocklist`),presets:i,envMode:n.envMode||`build`,shortcutsLayer:n.shortcutsLayer||`shortcuts`,layers:s,theme:Ne(a.map(e=>e.theme)),rules:g,rulesSize:_,rulesDynamic:y,rulesStaticMap:v,preprocess:l(`preprocess`),postprocess:l(`postprocess`),preflights:l(`preflights`),autocomplete:b,variants:l(`variants`).map(ae).sort((e,t)=>(e.order||0)-(t.order||0)),shortcuts:De(l(`shortcuts`)).reverse(),extractors:u,safelist:l(`safelist`),separators:ee,details:n.details??n.envMode===`dev`,content:te,transformers:m(l(`transformers`),(e,t)=>e.name===t.name)},ne=l(`extendTheme`);for(let e of ne)x.theme=e(x.theme,x)||x.theme;for(let e of a)e?.configResolved?.(x);return x}function Ne(e){return e.map(e=>e?ve(e):{}).reduce((e,t)=>_e(e,t),{})}function Pe(e){return e.reduce((e,t)=>{let n={};for(let e in t){let r=t[e];Array.isArray(r)?n[e]=`(${r.join(`|`)})`:n[e]=r}return{...e,...n}},{})}function Fe(...e){return e.flatMap(Ie)}function Ie(e){return Array.isArray(e)?e:e?[e]:[]}function Le(e){return e}var Re=`66.6.7`,S={shortcutsNoMerge:`$$symbol-shortcut-no-merge`,noMerge:`$$symbol-no-merge`,noScope:`$$symbol-no-scope`,variants:`$$symbol-variants`,parent:`$$symbol-parent`,selector:`$$symbol-selector`,layer:`$$symbol-layer`,sort:`$$symbol-sort`,body:`$$symbol-body`},ze=class e{constructor(e={},t={}){this.userConfig=e,this.defaults=t,this.version=Re,this.events=ee(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(e,t,n,r)=>{let i=fe(t).filter(e=>e.length);if(i.length){this.config.details&&r.rules.push(n),r.generator.activatedRules.add(n);let t=n[2];return i.map(n=>{if(h(n))return[t.__index,n,t];let i=r.variantHandlers,a=t,o=e=>{i=[e,...i]},s=e=>{a={...a,...e}};for(let e of n)switch(e[0]){case S.variants:i=typeof e[1]==`function`?e[1](i)||i:[...f(e[1]),...i];break;case S.parent:o({parent:e[1]});break;case S.selector:o({selector:e[1]});break;case S.layer:o({layer:e[1]});break;case S.sort:s({sort:e[1]});break;case S.noMerge:s({noMerge:e[1]});break;case S.noScope:s({noScope:e[1]});break;case S.body:e[0]=me;break}return[t.__index,e,n,a,i]})}}}static async create(t={},n={}){let r=new e(t,n);return r.config=await Me(r.userConfig,r.defaults),r.events.emit(`config`,r.config),r}async setConfig(e,t){e&&(t&&(this.defaults=t),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Me(e,this.defaults),this.events.emit(`config`,this.config))}async applyExtractors(e,t,n=new Set){let r={original:e,code:e,id:t,extracted:n,envMode:this.config.envMode};for(let e of this.config.extractors){let t=await e.extract?.(r);if(t)if(_(t)&&_(n))for(let e of t)n.setCount(e,n.getCount(e)+t.getCount(e));else for(let e of t)n.add(e)}return n}makeContext(e,t){let n={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:S,variantHandlers:t[2],constructCSS:(...e)=>this.constructCustomCSS(n,...e),variantMatch:t};return n}async parseToken(e,t){if(this.blocked.has(e))return;let n=`${e}${t?` ${t}`:``}`;if(this.cache.has(n))return this.cache.get(n);let r=this.config.preprocess.reduce((e,t)=>t(e)??e,e);if(this.isBlocked(r)){this.blocked.add(e),this.cache.set(n,null);return}let i=await this.matchVariants(e,r);if(i.every(e=>!e||this.isBlocked(e[1]))){this.blocked.add(e),this.cache.set(n,null);return}let a=async n=>{let r=this.makeContext(e,[t||n[0],n[1],n[2],n[3]]);this.config.details&&(r.variants=[...n[3]]);let i=await this.expandShortcut(r.currentSelector,r);return i?await this.stringifyShortcuts(r.variantMatch,r,i[0],i[1]):(await this.parseUtil(r.variantMatch,r))?.flatMap(e=>this.stringifyUtil(e,r)).filter(se)},o=(await Promise.all(i.map(e=>a(e)))).flat().filter(e=>!!e);if(o?.length)return this.cache.set(n,o),o;this.cache.set(n,null)}async generate(e,t={}){let{id:n,scope:r,preflights:o=!0,safelist:s=!0,minify:c=!1,extendedInfo:l=!1}=t,u=h(e)?await this.applyExtractors(e,n,l?new g:new Set):Array.isArray(e)?new Set(e):e;if(s){let e={generator:this,theme:this.config.theme};this.config.safelist.flatMap(t=>typeof t==`function`?t(e):t).forEach(e=>{let t=e.trim();t&&!u.has(t)&&u.add(t)})}let d=c?``:`
3
3
  `,f=new Set([i]),m=l?new Map:new Set,v=new Map,y={},b=Array.from(u).map(async e=>{if(m.has(e))return;let t=await this.parseToken(e);if(t!=null){m instanceof Map?m.set(e,{data:t,count:_(u)?u.getCount(e):-1}):m.add(e);for(let e of t){let t=e[3]||``,n=e[4]?.layer;v.has(t)||v.set(t,[]),v.get(t).push(e),n&&f.add(n)}}});await Promise.all(b),await(async()=>{if(!o)return;let e={generator:this,theme:this.config.theme},t=new Set([]);this.config.preflights.forEach(({layer:e=a})=>{f.add(e),t.add(e)}),y=Object.fromEntries(await Promise.all(Array.from(t).map(async t=>[t,(await Promise.all(this.config.preflights.filter(e=>(e.layer||`preflights`)===t).map(async t=>await t.getCSS(e)))).filter(Boolean).join(d)])))})();let ee=e=>this.config.sortLayers(e.sort((e,t)=>(this.config.layers[e]??0)-(this.config.layers[t]??0)||e.localeCompare(t))),te=ee(Array.from(f)),x={},ne=this.config.outputToCssLayers,re=e=>{let t=e;return typeof ne==`object`&&(t=ne.cssLayerName?.(e)),t===null?null:t??e},ie=(e=i)=>{if(x[e])return x[e];let t=Array.from(v).sort((e,t)=>(this.parentOrders.get(e[0])??0)-(this.parentOrders.get(t[0])??0)||e[0]?.localeCompare(t[0]||``)||0).map(([t,n])=>{let i=n.length,a=n.filter(t=>(t[4]?.layer||`default`)===e).sort((e,t)=>e[0]-t[0]||(e[4]?.sort||0)-(t[4]?.sort||0)||e[5]?.currentSelector?.localeCompare(t[5]?.currentSelector??``)||e[1]?.localeCompare(t[1]||``)||e[2]?.localeCompare(t[2]||``)||0).map(([,e,t,,n,,i])=>[[[(e&&!n?.noScope?Ue(e,r):e)??``,n?.sort??0]],t,!!(i??n?.noMerge)]);if(!a.length)return;let o=a.reverse().map(([e,t,n],r)=>{if(!n&&this.config.mergeSelectors)for(let n=r+1;n<i;n++){let r=a[n];if(r&&!r[2]&&(e&&r[0]||e==null&&r[0]==null)&&r[1]===t)return e&&r[0]&&r[0].push(...e),null}let o=e?p(e.sort((e,t)=>e[1]-t[1]||e[0]?.localeCompare(t[0]||``)||0).map(e=>e[0]).filter(Boolean)):[];return o.length?`${o.join(`,${d}`)}{${t}}`:t}).filter(Boolean),s=Array.from(new Set(o)).reverse().join(d);if(!t)return s;let c=t.split(` $$ `);return`${c.join(`{`)}{${d}${s}${d}${`}`.repeat(c.length)}`}).filter(Boolean).join(d);o&&(t=[y[e],t].filter(Boolean).join(d));let n;ne&&t&&(n=re(e),n!==null&&(t=`@layer ${n}{${d}${t}${d}}`));let a=c?``:`/* layer: ${e}${n&&n!==e?`, alias: ${n}`:``} */${d}`;return x[e]=t?a+t:``},ae=(e=te,t)=>{let n=e.filter(e=>!t?.includes(e)),r=n.map(ie).filter(Boolean);if(ne){let e=n;typeof ne==`object`&&ne.allLayers&&(e=ee(Object.keys(this.config.layers))),e.length>0&&r.unshift(`@layer ${e.map(re).filter(se).join(`, `)};`)}return r.join(d)};return{get css(){return ae()},layers:te,matched:m,getLayers:ae,getLayer:ie,setLayer:async(e,t)=>{let n=await t(ie(e));return x[e]=n,n}}}async matchVariants(e,t){let n={rawSelector:e,theme:this.config.theme,generator:this},r=async t=>{let i=!0,[,,a,o]=t;for(;i;){i=!1;let s=t[1];for(let e of this.config.variants){if(!e.multiPass&&o.has(e))continue;let c=await e.match(s,n);if(c){if(h(c)){if(c===s)continue;c={matcher:c}}if(Array.isArray(c)){if(!c.length)continue;if(c.length===1)c=c[0];else{if(e.multiPass)throw Error(`multiPass can not be used together with array return variants`);let n=c.map(n=>{let r=n.matcher??s,i=[n,...a],c=new Set(o);return c.add(e),[t[0],r,i,c]});return(await Promise.all(n.map(e=>r(e)))).flat()}}t[1]=c.matcher??s,a.unshift(c),o.add(e),i=!0;break}}if(!i)break;if(a.length>500)throw Error(`Too many variants applied to "${e}"`)}return[t]};return await r([e,t||e,[],new Set])}applyVariants(e,t=e[4],n=e[1]){let r=t.slice().sort((e,t)=>(e.order||0)-(t.order||0)).reduceRight((e,t)=>n=>{let r=t.body?.(n.entries)||n.entries,i=Array.isArray(t.parent)?t.parent:[t.parent,void 0],a=t.selector?.(n.selector,r);return(t.handle??Ke)({...n,entries:r,selector:a||n.selector,parent:i[0]||n.parent,parentOrder:i[1]||n.parentOrder,layer:t.layer||n.layer,sort:t.sort||n.sort},e)},e=>e)({prefix:``,selector:Ge(n),pseudo:``,entries:e[2]}),{parent:i,parentOrder:a}=r;i!=null&&a!=null&&this.parentOrders.set(i,a);let o={selector:[r.prefix,r.selector,r.pseudo].join(``),entries:r.entries,parent:i,layer:r.layer,sort:r.sort,noMerge:r.noMerge};return this.config.postprocess.reduce((e,t)=>{let n=[];for(let r of e){let e=t(r);Array.isArray(e)?n.push(...e.filter(se)):n.push(e||r)}return n},[o])}constructCustomCSS(e,t,n){let r=de(t);return h(r)?r:this.applyVariants([0,n||e.rawSelector,r,void 0,e.variantHandlers]).map(({selector:e,entries:t,parent:n})=>{let r=`${e}{${he(t)}}`;return n?`${n}{${r}}`:r}).join(``)}async parseUtil(e,t,n=!1,r){let i=h(e)?await this.matchVariants(e):[e],a=async([e,i,a])=>{this.config.details&&(t.rules=t.rules??[]);let o={...t,variantHandlers:a},s=this.config.rulesStaticMap[i];if(s&&s[1]&&(n||!s[2]?.internal))return this.resolveCSSResult(e,s[1],s,o);for(let t of this.config.rulesDynamic){let[a,s,c]=t;if(c?.internal&&!n)continue;let l=i;if(c?.prefix){let e=f(c.prefix);if(r){let t=f(r);if(!e.some(e=>t.includes(e)))continue}else{let t=e.find(e=>i.startsWith(e));if(t==null)continue;l=i.slice(t.length)}}let u=l.match(a);if(!u)continue;let d=await s(u,o);if(!d)continue;if(typeof d!=`string`)if(Symbol.asyncIterator in d){let e=[];for await(let t of d)t&&e.push(t);d=e}else Symbol.iterator in d&&!Array.isArray(d)&&(d=Array.from(d).filter(se));let p=this.resolveCSSResult(e,d,t,o);if(p)return p}},o=(await Promise.all(i.map(e=>a(e)))).flat().filter(e=>!!e);if(o.length)return o}stringifyUtil(e,t){if(!e)return;if(oe(e))return[[e[0],void 0,e[1],void 0,e[2],this.config.details?t:void 0,void 0]];let n=this.applyVariants(e),r=[];for(let i of n){let{selector:n,entries:a,parent:o,layer:s,sort:c,noMerge:l}=i,u=he(a);if(!u)continue;let{layer:d,sort:f,...p}=e[3]??{},m={...p,layer:s??d,sort:c??f};r.push([e[0],n,u,o,m,this.config.details?t:void 0,l])}return r}async expandShortcut(e,t,n=5){if(n===0)return;let r=this.config.details?e=>{t.shortcuts=t.shortcuts??[],t.shortcuts.push(e)}:ce,i,a,o,s;for(let n of this.config.shortcuts){let o=e;if(n[2]?.prefix){let t=f(n[2].prefix).find(t=>e.startsWith(t));if(t==null)continue;o=e.slice(t.length)}if(be(n)){if(n[0]===o){i||=n[2],a=n[1],r(n);break}}else{let e=o.match(n[0]);if(e&&(a=n[1](e,t)),a){i||=n[2],r(n);break}}}if(a&&(o=p(f(a).filter(h).map(e=>we(e.trim()).split(/\s+/g)).flat()),s=f(a).filter(e=>!h(e)).map(e=>({handles:[],value:e}))),!a){let r=h(e)?await this.matchVariants(e):[e];for(let e of r){let[r,i,a]=e;if(r!==i){let e=await this.expandShortcut(i,t,n-1);e&&(o=e[0].filter(h).map(e=>r.replace(i,e)),s=e[0].filter(e=>!h(e)).map(e=>({handles:[...e.handles,...a],value:e.value})))}}}if(!(!o?.length&&!s?.length))return[[await Promise.all(f(o).map(async e=>(await this.expandShortcut(e,t,n-1))?.[0]||[e])),s].flat(2).filter(e=>!!e),i]}async stringifyShortcuts(e,t,n,r={layer:this.config.shortcutsLayer}){let i=new ue,a=(await Promise.all(p(n).map(async n=>{let i=h(n)?await this.parseUtil(n,t,!0,r.prefix):[[1/0,`{inline}`,de(n.value),void 0,n.handles]];return!i&&this.config.warn&&Ee(`unmatched utility "${n}" in shortcut "${e[1]}"`),i||[]}))).flat(1).filter(Boolean).sort((e,t)=>e[0]-t[0]),[o,,s]=e,c=[];for(let e of a){if(oe(e)){c.push([e[0],void 0,e[1],void 0,e[2],t,void 0]);continue}let n=Object.fromEntries(e[2])[S.shortcutsNoMerge],a=[...e[4],...n?[]:s];for(let{selector:t,entries:n,parent:s,sort:c,noMerge:l,layer:u}of this.applyVariants(e,a,o))i.getFallback(u??r.layer,new le).getFallback(t,s,[[],e[0]])[0].push([n,!!(l??e[3]?.noMerge),c??0])}return c.concat(i.flatMap((e,n)=>e.map(([e,i],a,o)=>{let s=(e,s,c)=>{let l=Math.max(...c.map(e=>e[1])),u=c.map(e=>e[0]);return(e?[u.flat(1)]:u).map(e=>{let c=he(e);if(c)return[i,a,c,o,{...r,noMerge:s,sort:l,layer:n},t,void 0]})};return[[e.filter(([,e])=>e).map(([e,,t])=>[e,t]),!0],[e.filter(([,e])=>!e).map(([e,,t])=>[e,t]),!1]].map(([e,t])=>[...s(!1,t,e.filter(([e])=>e.some(e=>e[0]===S.shortcutsNoMerge))),...s(!0,t,e.filter(([e])=>e.every(e=>e[0]!==S.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(e=>Array.isArray(e)?e[0]:e).some(t=>typeof t==`function`?t(e):h(t)?t===e:t.test(e))}getBlocked(e){let t=this.config.blocklist.find(t=>{let n=Array.isArray(t)?t[0]:t;return typeof n==`function`?n(e):h(n)?n===e:n.test(e)});return t?Array.isArray(t)?t:[t,void 0]:void 0}};async function Be(e,t){return await ze.create(e,t)}var Ve=/\s\$\$\s+/g;function He(e){return Ve.test(e)}function Ue(e,t){return He(e)?e.replace(Ve,t?` ${t} `:` `):t?`${t} ${e}`:e}var We=/^\[(.+?)(~?=)"(.*)"\]$/;function Ge(e){return We.test(e)?e.replace(We,(e,t,n,r)=>`[${b(t)}${n}"${b(r)}"]`):`.${b(e)}`}function Ke(e,t){return t(e)}var qe=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function Je(e={}){let t=e.prefix??`un-`,n=e.prefixedOnly??!1,r=e.trueToNonValued??!1,i;return{name:`attributify`,match(e,{generator:a}){let o=re(e);if(!o)return;let s=o[1];if(s.startsWith(t))s=s.slice(t.length);else if(n)return;let c=o[2],[,l=``,u=c]=c.match(qe)||[];if(u===`~`||r&&u===`true`||!u)return`${l}${s}`;if(i==null){let e=a?.config?.separators?.join(`|`);i=e?RegExp(`^(.*\\](?:${e}))(\\[[^\\]]+?\\])$`):!1}if(i){let[,e,t]=c.match(i)||[];if(t)return`${e}${l}${s}-${t}`}if(l&&u.match(/^[\d.]+$/)){let e=l.split(/([^:]*:)/g).filter(Boolean),t=e.pop()+u,n=e.join(``);return[{matcher:`${l}${s}-${u}`},{matcher:`${n}${s}-${t}`}]}return`${l}${s}-${u}`}}}var Ye=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Xe=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,Ze=/[\s'"`;>]+/;function Qe(e){return{name:`attributify`,extract:({content:t,cursor:n})=>{let r=t.matchAll(Ye),i,a=0;for(let e of r){let[,t,r]=e,o=e.index+t.length;if(n>o&&n<=o+r.length){a=o,i=r;break}}if(!i)return null;let o=i.matchAll(Xe),s=0,c,l;for(let e of o){let[t,r,i]=e,o=a+e.index;if(n>o&&n<=o+t.length){s=o,c=r,l=i?.slice(1);break}}if(!c||c===`class`||c===`className`||c===`:class`)return null;let u=!!e?.prefix&&c.startsWith(e.prefix);if(e?.prefixedOnly&&!u)return null;let d=u?c.slice(e.prefix.length):c;if(l===void 0)return{extracted:d,resolveReplacement(t){let n=u?e.prefix.length:0;return{start:s+n,end:s+c.length,replacement:t}}};let f=s+c.length+2,p=Ze.exec(l),m=0,h;for(;p;){let[e]=p;if(n>f+m&&n<=f+m+p.index){h=l.slice(m,m+p.index);break}m+=p.index+e.length,p=Ze.exec(l.slice(m))}h===void 0&&(h=l.slice(m));let[,g=``,_]=h.match(qe)||[];return{extracted:`${g}${d}-${_}`,transformSuggestions(e){return e.filter(e=>e.startsWith(`${g}${d}-`)).map(e=>g+e.slice(g.length+d.length+1))},resolveReplacement(e){return{start:m+f,end:m+f+h.length,replacement:g+e.slice(g.length+d.length+1)}}}}}}var $e=[`v-bind:`,`:`],et=/[\s'"`;]+/g,tt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,nt=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,rt=[`placeholder`,`fill`,`opacity`,`stroke-opacity`];function it(e){let t=e?.ignoreAttributes??rt,n=e?.nonValuedAttribute??!0,r=e?.trueToNonValued??!1;return{name:`@unocss/preset-attributify/extractor`,extract({code:i}){return Array.from(i.matchAll(tt)).flatMap(e=>Array.from((e[1]||``).matchAll(nt))).flatMap(([,i,...a])=>{let o=a.filter(Boolean).join(``);if(t.includes(i))return[];for(let e of $e)if(i.startsWith(e)){i=i.slice(e.length);break}if(!o){if(ie(i)&&n!==!1){let e=[`[${i}=""]`];return r&&e.push(`[${i}="true"]`),e}return[]}return[`class`,`className`].includes(i)?o.split(et).filter(ie):tt.test(o)?(tt.lastIndex=0,this.extract({code:o})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:o.split(et).filter(e=>!!e&&e!==`:`).map(e=>`[${i}~="${e}"]`)})}}}var at=Le((e={})=>(e.strict=e.strict??!1,e.prefix=e.prefix??`un-`,e.prefixedOnly=e.prefixedOnly??!1,e.nonValuedAttribute=e.nonValuedAttribute??!0,e.ignoreAttributes=e.ignoreAttributes??rt,{name:`@unocss/preset-attributify`,enforce:`post`,variants:[Je(e)],extractors:[it(e)],options:e,autocomplete:{extractors:[Qe(e)]},extractorDefault:e.strict?!1:void 0}));function ot(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 st=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ct=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function lt(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(st);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=ct.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 ut=Object.freeze({left:0,top:0,width:16,height:16}),dt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ft=Object.freeze({...ut,...dt}),pt=Object.freeze({...ft,body:``,hidden:!1}),mt=Object.freeze({width:null,height:null}),ht=Object.freeze({...mt,...dt});function gt(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 _t(e,t){return e?`<defs>`+e+`</defs>`+t:t}function vt(e,t,n){let r=gt(e);return _t(r.defs,t+r.content+n)}var yt=e=>e===`unset`||e===`undefined`||e===`none`;function bt(e,t){let n={...ft,...e},r={...ht,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=vt(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=lt(d,c/l)):(u=o===`auto`?c:o,d=s===null?lt(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{yt(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}var xt=/\swidth\s*=\s*["']([\w.]+)["']/,St=/\sheight\s*=\s*["']([\w.]+)["']/,Ct=/<svg\s+/;function wt(e,t,n){let r=e.slice(0,e.indexOf(`>`)),i=(e,i)=>{let a=i.exec(r),o=a!=null,s=t[e];return!s&&!yt(s)&&(typeof n==`number`?n>0&&(t[e]=lt(a?.[1]??`1em`,n)):a&&(t[e]=a[1])),o};return[i(`width`,xt),i(`height`,St)]}async function Tt(e,t,n,r,i,a){let{scale:o,addXmlNs:s=!1}=r??{},{additionalProps:c={},iconCustomizer:l}=r?.customizations??{},u=await i?.()??{};await l?.(t,n,u),Object.keys(c).forEach(e=>{let t=c[e];t!=null&&(u[e]=t)}),a?.(u);let[d,f]=wt(e,u,o);s&&(!e.includes(`xmlns=`)&&!u.xmlns&&(u.xmlns=`http://www.w3.org/2000/svg`),!e.includes(`xmlns:xlink=`)&&e.includes(`xlink:`)&&!u[`xmlns:xlink`]&&(u[`xmlns:xlink`]=`http://www.w3.org/1999/xlink`));let p=Object.keys(u).map(e=>e===`width`&&d||e===`height`&&f?null:`${e}="${u[e]}"`).filter(e=>e!=null);if(p.length&&(e=e.replace(Ct,`<svg ${p.join(` `)} `)),r){let{defaultStyle:t,defaultClass:n}=r;n&&!e.includes(`class=`)&&(e=e.replace(Ct,`<svg class="${n}" `)),t&&!e.includes(`style=`)&&(e=e.replace(Ct,`<svg style="${t}" `))}let m=r?.usedProps;return m&&(Object.keys(c).forEach(e=>{let t=u[e];t!=null&&(m[e]=t)}),u.width!==void 0&&u.width!==null&&(m.width=u.width),u.height!==void 0&&u.height!==null&&(m.height=u.height)),e}async function Et(e,t,n,r){let i;try{if(typeof e==`function`)i=await e(n);else{let t=e[n];i=typeof t==`function`?await t():t}}catch(e){console.warn(`Failed to load custom icon "${n}" in "${t}":`,e);return}if(i){let e=i.indexOf(`<svg`);e>0&&(i=i.slice(e));let{transform:a}=r?.customizations??{};return i=typeof a==`function`?await a(i,t,n):i,i.startsWith(`<svg`)?await Tt(r?.customizations?.trimCustomSvg===!0?ot(i):i,t,n,r,void 0):(console.warn(`Custom icon "${n}" in "${t}" is not a valid SVG`),i)}}function Dt(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}function Ot(e,t){let n=Dt(e,t);for(let r in pt)r in dt?r in e&&!(r in n)&&(n[r]=dt[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function kt(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}function At(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=Ot(r[e]||i[e],a)}return o(t),n.forEach(o),Ot(e,a)}function jt(e,t){if(e.icons[t])return At(e,t,[]);let n=kt(e,[t])[t];return n?At(e,t,n):null}async function Mt(e,t,n,r){let i,{customize:a}=r?.customizations??{};for(let o of n)if(i=jt(e,o),i){let e={...ht};typeof a==`function`&&(i=Object.assign({},i),e=a(e,i,`${t}:${o}`)??e);let{attributes:{width:n,height:s,...c},body:l}=bt(i,e),u=r?.scale;return await Tt(`<svg >${l}</svg>`,t,o,r,()=>({...c}),e=>{let t=(t,n)=>{let r=e[t],i;if(!yt(r)){if(r)return;typeof u==`number`?u&&(i=lt(n??`1em`,u)):i=n}i?e[t]=i:delete e[t]};t(`width`,n),t(`height`,s)})}}var Nt=async(e,t,n)=>{let r=n?.customCollections?.[e];if(r)if(typeof r==`function`){let i;try{i=await r(t)}catch(n){console.warn(`Failed to load custom icon "${t}" in "${e}":`,n);return}if(i){if(typeof i==`string`)return await Et(()=>i,e,t,n);if(`icons`in i){let r=[t,t.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase(),t.replace(/([a-z])(\d+)/g,`$1-$2`)];return await Mt(i,e,r,n)}}}else return await Et(r,e,t,n)};function Pt(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}function Ft(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" `)),Pt(t)}function It(){let e=typeof process<`u`&&process.stdout;return{isNode:e,isVSCode:e&&!!{}.VSCODE_CWD,isESLint:e&&!!{}.ESLINT}}var Lt=`academicons.akar-icons.ant-design.arcticons.basil.bi.bitcoin-icons.boxicons.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.glyphs-poly.glyphs.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.wordpress.wpf.zmdi.zondicons`.split(`.`),Rt=3;function zt(e){return Le((t={})=>{let{scale:n=1,mode:r=`auto`,prefix:i=`i-`,warn:a=!1,iconifyCollectionsNames:o,collections:s,extraProperties:c={},customizations:l={},autoInstall:u=!1,collectionsNodeResolvePath:d,layer:f=`icons`,unit:p,processor:m}=t,h=It(),g={addXmlNs:!0,scale:n,customCollections:s,autoInstall:u,cwd:d,warn:void 0,customizations:{...l,additionalProps:{...c},trimCustomSvg:!0,async iconCustomizer(e,t,r){await l.iconCustomizer?.(e,t,r),p&&(r.width||=`${n}${p}`,r.height||=`${n}${p}`)}}},_;return{name:`@unocss/preset-icons`,enforce:`pre`,options:t,layers:{icons:-30},api:{encodeSvgForCss:Ft,parseIconWithLoader:Vt},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async n=>{let[i,s,c=r]=n;_||=await e(t);let l={},u=await Vt(s,_,{...g,usedProps:l},o);if(!u){a&&!h.isESLint&&Ee(`failed to load icon "${i}"`);return}let d,f=`url("data:image/svg+xml;utf8,${Ft(u.svg)}")`;return c===`auto`&&(c=u.svg.includes(`currentColor`)?`mask`:`bg`),d=c===`mask`?{"--un-icon":f,"-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}:{background:`${f} no-repeat`,"background-size":`100% 100%`,"background-color":`transparent`,...l},m?.(d,{...u,icon:u.name,mode:c}),d},{layer:f,prefix:i}]]}})}function Bt(e,t,n=new Map){function r(r){if(Lt.includes(r))return n.has(r)||n.set(r,e(`${t}@iconify-json/${r}/icons.json`)),n.get(r)}return async(e,t,n)=>{let i=await Nt(e,t,n);if(i)return i;let a=await r(e);return a&&(i=await Mt(a,e,[t,t.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase(),t.replace(/([a-z])(\d+)/g,`$1-$2`)],n)),i}}async function Vt(e,t,n={},r=[]){let i=``,a=``,o,s=new Set([...Lt,...r,...Object.keys(n.customCollections||{})]);if(e.includes(`:`)){if([i,a]=e.split(`:`),!s.has(i))return;o=await t(i,a,n)}else{let r=e.split(/-/g);for(let e=Rt;e>=1&&(i=r.slice(0,e).join(`-`),!(s.has(i)&&(a=r.slice(e).join(`-`),o=await t(i,a,n),o)));e--);}if(o)return{collection:i,name:a,svg:o}}var Ht=`modulepreload`,Ut=function(e,t){return new URL(e,t).href},Wt={},Gt=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Ut(t,n),t in Wt)return;Wt[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Ht,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};async function Kt(e){let{$fetch:t}=await Gt(async()=>{let{$fetch:e}=await import(`./ofetch-XPJe_o5P.js`).then(e=>e.t);return{$fetch:e}},__vite__mapDeps([0,1]),import.meta.url);return Bt(t,e)}var qt=zt(async e=>{let t=e?.customFetch,n=e?.cdn;return t&&n?Bt(t,n):n?await Kt(n):Nt}),Jt=`__TAGIFY__`,Yt=/<([\w:-]+)/g;function Xt(e){let{prefix:t=``,excludedTags:n=[`b`,/^h\d+$/,`table`]}=e;return{name:`tagify`,extract({code:e}){return Array.from(e.matchAll(Yt)).filter(({1:e})=>{for(let t of n)if(typeof t==`string`){if(e===t)return!1}else if(t.lastIndex=0,t.test(e))return!1;return e.startsWith(t)}).map(([,e])=>`${Jt}${e}`)}}}function Zt(e){let{extraProperties:t}=e,n=`${Jt}${e.prefix??``}`;return{name:`tagify`,match(e){if(!e.startsWith(n))return;let r=e.slice(n.length),i={matcher:r,selector:e=>e.slice(11)};return t&&(typeof t==`function`?i.body=e=>[...e,...Object.entries(t(r)??{})]:i.body=e=>[...e,...Object.entries(t)]),i}}}var Qt=Le((e={})=>{let{defaultExtractor:t=!0}=e;return{name:`@unocss/preset-tagify`,variants:[Zt(e)],extractors:[Xt(e)],extractorDefault:t?void 0:!1}}),$t=r(),en=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},tn=class e{constructor(e,t,n){this.start=e,this.end=t,this.original=n,this.intro=``,this.outro=``,this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro+=e}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;for(;t;)e(t),t=t.next}eachPrevious(e){let t=this;for(;t;)e(t),t=t.previous}edit(e,t,n){return this.content=e,n||(this.intro=``,this.outro=``),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro=``,this.outro=``,this.edited&&=(this.content=this.original,this.storeName=!1,!1)}split(t){let n=t-this.start,r=this.original.slice(0,n),i=this.original.slice(n);this.original=r;let a=new e(t,this.end,i);return a.outro=this.outro,this.outro=``,this.end=t,this.edited?(a.edit(``,!1),this.content=``):this.content=r,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,``),this.outro.length)return!0;let t=this.content.replace(e,``);if(t.length)return t!==this.content&&(this.split(this.start+t.length).edit(``,void 0,!0),this.edited&&this.edit(t,this.storeName,!0)),!0;if(this.edit(``,void 0,!0),this.intro=this.intro.replace(e,``),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,``),this.intro.length)return!0;let t=this.content.replace(e,``);if(t.length){if(t!==this.content){let e=this.split(this.end-t.length);this.edited&&e.edit(t,this.storeName,!0),this.edit(``,void 0,!0)}return!0}else if(this.edit(``,void 0,!0),this.outro=this.outro.replace(e,``),this.outro.length)return!0}};function nn(){return typeof globalThis<`u`&&typeof globalThis.btoa==`function`?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof $t.Buffer==`function`?e=>$t.Buffer.from(e,`utf-8`).toString(`base64`):()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var rn=nn(),an=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=n(e.mappings),e.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=e.x_google_ignoreList),e.debugId!==void 0&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return`data:application/json;charset=utf-8;base64,`+rn(this.toString())}};function on(e){let t=e.split(`
4
4
  `),n=t.filter(e=>/^\t+/.test(e)),r=t.filter(e=>/^ {2,}/.test(e));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return` `;let i=r.reduce((e,t)=>{let n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return Array(i+1).join(` `)}function sn(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let e=n.length;for(;e--;)n[e]=`..`}return n.concat(r).join(`/`)}var cn=Object.prototype.toString;function ln(e){return cn.call(e)===`[object Object]`}function un(e){let t=e.split(`
5
5
  `),n=[];for(let e=0,r=0;e<t.length;e++)n.push(r),r+=t[e].length+1;return function(e){let t=0,r=n.length;for(;t<r;){let i=t+r>>1;e<n[i]?r=i:t=i+1}let i=t-1;return{line:i,column:e-n[i]}}}var dn=/\w/,fn=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,t,n,r){if(t.length){let i=t.length-1,a=t.indexOf(`