@visulima/vite-overlay 2.0.0-alpha.2 → 2.0.0-alpha.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,63 +1,68 @@
1
- var Bi=Object.defineProperty;var b=(t,e)=>Bi(t,"name",{value:e,configurable:!0});import{createRequire as ji}from"node:module";import{codeToANSI as Ui}from"@shikijs/cli";import{renderError as Vi,getErrorCauses as Ni}from"@visulima/error/error";import{errorHintFinder as Zi,ruleBasedFinder as Wi}from"@visulima/error/solution";import{distance as pt}from"fastest-levenshtein";import{parseStacktrace as Oe,formatStacktrace as xr,codeFrame as Vn}from"@visulima/error";import At from"@visulima/error/solution/ai/prompt";const Oi=ji(import.meta.url),Ge=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_t=b(t=>{if(typeof Ge<"u"&&Ge.versions&&Ge.versions.node){const[e,n]=Ge.versions.node.split(".").map(Number);if(e>22||e===22&&n>=3||e===20&&n>=16)return Ge.getBuiltinModule(t)}return Oi(t)},"__cjs_getBuiltinModule"),{stripVTControlCharacters:qi,styleText:Un}=_t("node:util"),Gi=_t("node:fs"),le=_t("node:path"),{readFile:_r}=_t("node:fs/promises");var Yi=Object.defineProperty,I=b((t,e)=>Yi(t,"name",{value:e,configurable:!0}),"k$4");function $t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}b($t,"E$7");I($t,"L");var Re=$t();function Kt(t){Re=t}b(Kt,"le");I(Kt,"Z");var Ke={exec:I(()=>null,"exec")};function R(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:I((o,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(ee.caret,"$1"),n=n.replace(o,s),r},"replace"),getRegex:I(()=>new RegExp(n,e),"getRegex")};return r}b(R,"p$6");I(R,"k");var Xi=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),ee={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:I(t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:I(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:I(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:I(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:I(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),"headingBeginRegex"),htmlBeginRegex:I(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},Qi=/^(?:[ \t]*(?:\n|$))+/,Ji=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ki=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,nt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,es=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,en=/(?:[*+-]|\d{1,9}[.)])/,$r=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Er=R($r).replace(/bull/g,en).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ts=R($r).replace(/bull/g,en).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),tn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ns=/^[^\n]+/,nn=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,rs=R(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",nn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),os=R(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,en).getRegex(),Et="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",rn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,is=R("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",rn).replace("tag",Et).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Sr=R(tn).replace("hr",nt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Et).getRegex(),ss=R(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Sr).getRegex(),on={blockquote:ss,code:Ji,def:rs,fences:Ki,heading:es,hr:nt,html:is,lheading:Er,list:os,newline:Qi,paragraph:Sr,table:Ke,text:ns},Nn=R("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",nt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Et).getRegex(),as={...on,lheading:ts,table:Nn,paragraph:R(tn).replace("hr",nt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Et).getRegex()},ls={...on,html:R(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",rn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ke,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:R(tn).replace("hr",nt).replace("heading",` *#{1,6} *[^
2
- ]`).replace("lheading",Er).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},cs=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ds=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Cr=/^( {2,}|\\)\n(?!\s*$)/,ps=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,St=/[\p{P}\p{S}]/u,sn=/[\s\p{P}\p{S}]/u,Lr=/[^\s\p{P}\p{S}]/u,hs=R(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,sn).getRegex(),Tr=/(?!~)[\p{P}\p{S}]/u,us=/(?!~)[\s\p{P}\p{S}]/u,gs=/(?:[^\s\p{P}\p{S}]|~)/u,ms=R(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Xi?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Pr=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,fs=R(Pr,"u").replace(/punct/g,St).getRegex(),vs=R(Pr,"u").replace(/punct/g,Tr).getRegex(),Mr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ws=R(Mr,"gu").replace(/notPunctSpace/g,Lr).replace(/punctSpace/g,sn).replace(/punct/g,St).getRegex(),bs=R(Mr,"gu").replace(/notPunctSpace/g,gs).replace(/punctSpace/g,us).replace(/punct/g,Tr).getRegex(),ys=R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Lr).replace(/punctSpace/g,sn).replace(/punct/g,St).getRegex(),ks=R(/\\(punct)/,"gu").replace(/punct/g,St).getRegex(),xs=R(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),_s=R(rn).replace("(?:-->|$)","-->").getRegex(),$s=R("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",_s).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),mt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Es=R(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",mt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Fr=R(/^!?\[(label)\]\[(ref)\]/).replace("label",mt).replace("ref",nn).getRegex(),Rr=R(/^!?\[(ref)\](?:\[\])?/).replace("ref",nn).getRegex(),Ss=R("reflink|nolink(?!\\()","g").replace("reflink",Fr).replace("nolink",Rr).getRegex(),Zn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,an={_backpedal:Ke,anyPunctuation:ks,autolink:xs,blockSkip:ms,br:Cr,code:ds,del:Ke,emStrongLDelim:fs,emStrongRDelimAst:ws,emStrongRDelimUnd:ys,escape:cs,link:Es,nolink:Rr,punctuation:hs,reflink:Fr,reflinkSearch:Ss,tag:$s,text:ps,url:Ke},Cs={...an,link:R(/^!?\[(label)\]\((.*?)\)/).replace("label",mt).getRegex(),reflink:R(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",mt).getRegex()},Bt={...an,emStrongRDelimAst:bs,emStrongLDelim:vs,url:R(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Zn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:R(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Zn).getRegex()},Ls={...Bt,br:R(Cr).replace("{2,}","*").getRegex(),text:R(Bt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ct={normal:on,gfm:as,pedantic:ls},Ye={normal:an,gfm:Bt,breaks:Ls,pedantic:Cs},Ts={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wn=I(t=>Ts[t],"ke");function ge(t,e){if(e){if(ee.escapeTest.test(t))return t.replace(ee.escapeReplace,Wn)}else if(ee.escapeTestNoEncode.test(t))return t.replace(ee.escapeReplaceNoEncode,Wn);return t}b(ge,"$$2");I(ge,"w");function jt(t){try{t=encodeURI(t).replace(ee.percentDecode,"%")}catch{return null}return t}b(jt,"re$2");I(jt,"X");function Ot(t,e){let n=t.replace(ee.findPipe,(i,s,l)=>{let a=!1,c=s;for(;--c>=0&&l[c]==="\\";)a=!a;return a?"|":" |"}),r=n.split(ee.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(ee.slashPipe,"|");return r}b(Ot,"se$1");I(Ot,"J");function Be(t,e,n){let r=t.length;if(r===0)return"";let o=0;for(;o<r;){let i=t.charAt(r-o-1);if(i===e&&!n)o++;else if(i!==e&&n)o++;else break}return t.slice(0,r-o)}b(Be,"_$3");I(Be,"z");function zr(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}b(zr,"Ye");I(zr,"de");function qt(t,e,n,r,o){let i=e.href,s=e.title||null,l=t[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let a={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:s,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,a}b(qt,"ne$2");I(qt,"ge");function Dr(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let o=r[1];return e.split(`
3
- `).map(i=>{let s=i.match(n.other.beginningSpace);if(s===null)return i;let[l]=s;return l.length>=o.length?i.slice(o.length):i}).join(`
4
- `)}b(Dr,"et");I(Dr,"Je");var ft=class{static{b(this,"I")}static{I(this,"y")}options;rules;lexer;constructor(e){this.options=e||Re}space(e){let n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){let n=this.rules.block.code.exec(e);if(n){let r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Be(r,`
5
- `)}}}fences(e){let n=this.rules.block.fences.exec(e);if(n){let r=n[0],o=Dr(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(e){let n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){let o=Be(r,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(r=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:Be(n[0],`
6
- `)}}blockquote(e){let n=this.rules.block.blockquote.exec(e);if(n){let r=Be(n[0],`
1
+ var Ui=Object.defineProperty;var b=(t,e)=>Ui(t,"name",{value:e,configurable:!0});import{createRequire as Gi}from"node:module";import{codeToANSI as Zi}from"@shikijs/cli";import{renderError as Yi,getErrorCauses as Xi}from"@visulima/error/error";import{errorHintFinder as Qi,ruleBasedFinder as Ji}from"@visulima/error/solution";import{distance as mt}from"fastest-levenshtein";import{parseStacktrace as Ne,formatStacktrace as Sr,codeFrame as Vn}from"@visulima/error";import Bt from"@visulima/error/solution/ai/prompt";const Wi=Gi(import.meta.url),et=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ct=b(t=>{if(typeof et<"u"&&et.versions&&et.versions.node){const[e,n]=et.versions.node.split(".").map(Number);if(e>22||e===22&&n>=3||e===20&&n>=16)return et.getBuiltinModule(t)}return Wi(t)},"__cjs_getBuiltinModule"),{stripVTControlCharacters:Vi,styleText:Wn}=Ct("node:util"),Ki=Ct("node:fs"),se=Ct("node:path"),{readFile:Er}=Ct("node:fs/promises");var es=Object.defineProperty,D=b((t,e)=>es(t,"name",{value:e,configurable:!0}),"k$4");function Lt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}b(Lt,"v$7");D(Lt,"z");var Re=Lt();function rn(t){Re=t}b(rn,"ae$3");D(rn,"G");var Se={exec:D(()=>null,"exec")};function z(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:D((i,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(K.caret,"$1"),n=n.replace(i,s),r},"replace"),getRegex:D(()=>new RegExp(n,e),"getRegex")};return r}b(z,"u$5");D(z,"d");var ts=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),K={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:D(t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:D(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:D(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:D(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:D(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),"headingBeginRegex"),htmlBeginRegex:D(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex"),blockquoteBeginRegex:D(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`),"blockquoteBeginRegex")},ns=/^(?:[ \t]*(?:\n|$))+/,rs=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,os=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,at=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,is=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,on=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Cr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Lr=z(Cr).replace(/bull/g,on).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ss=z(Cr).replace(/bull/g,on).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),sn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,as=/^[^\n]+/,an=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ls=z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",an).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),cs=z(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,on).getRegex(),Tt="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ln=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ds=z("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ln).replace("tag",Tt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Tr=z(sn).replace("hr",at).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Tt).getRegex(),us=z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Tr).getRegex(),cn={blockquote:us,code:rs,def:ls,fences:os,heading:is,hr:at,html:ds,lheading:Lr,list:cs,newline:ns,paragraph:Tr,table:Se,text:as},Zn=z("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",at).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Tt).getRegex(),ps={...cn,lheading:ss,table:Zn,paragraph:z(sn).replace("hr",at).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Zn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Tt).getRegex()},hs={...cn,html:z(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ln).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Se,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:z(sn).replace("hr",at).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",Lr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},gs=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ms=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Pr=/^( {2,}|\\)\n(?!\s*$)/,fs=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ve=/[\p{P}\p{S}]/u,Pt=/[\s\p{P}\p{S}]/u,dn=/[^\s\p{P}\p{S}]/u,vs=z(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Pt).getRegex(),Rr=/(?!~)[\p{P}\p{S}]/u,ws=/(?!~)[\s\p{P}\p{S}]/u,bs=/(?:[^\s\p{P}\p{S}]|~)/u,ys=z(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ts?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Fr=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,xs=z(Fr,"u").replace(/punct/g,Ve).getRegex(),ks=z(Fr,"u").replace(/punct/g,Rr).getRegex(),zr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",_s=z(zr,"gu").replace(/notPunctSpace/g,dn).replace(/punctSpace/g,Pt).replace(/punct/g,Ve).getRegex(),$s=z(zr,"gu").replace(/notPunctSpace/g,bs).replace(/punctSpace/g,ws).replace(/punct/g,Rr).getRegex(),Es=z("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,dn).replace(/punctSpace/g,Pt).replace(/punct/g,Ve).getRegex(),Ss=z(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ve).getRegex(),Cs="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ls=z(Cs,"gu").replace(/notPunctSpace/g,dn).replace(/punctSpace/g,Pt).replace(/punct/g,Ve).getRegex(),Ts=z(/\\(punct)/,"gu").replace(/punct/g,Ve).getRegex(),Ps=z(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Rs=z(ln).replace("(?:-->|$)","-->").getRegex(),Fs=z("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Rs).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),bt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,zs=z(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",bt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Dr=z(/^!?\[(label)\]\[(ref)\]/).replace("label",bt).replace("ref",an).getRegex(),Ar=z(/^!?\[(ref)\](?:\[\])?/).replace("ref",an).getRegex(),Ds=z("reflink|nolink(?!\\()","g").replace("reflink",Dr).replace("nolink",Ar).getRegex(),Yn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,un={_backpedal:Se,anyPunctuation:Ts,autolink:Ps,blockSkip:ys,br:Pr,code:ms,del:Se,delLDelim:Se,delRDelim:Se,emStrongLDelim:xs,emStrongRDelimAst:_s,emStrongRDelimUnd:Es,escape:gs,link:zs,nolink:Ar,punctuation:vs,reflink:Dr,reflinkSearch:Ds,tag:Fs,text:fs,url:Se},As={...un,link:z(/^!?\[(label)\]\((.*?)\)/).replace("label",bt).getRegex(),reflink:z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",bt).getRegex()},Ht={...un,emStrongRDelimAst:$s,emStrongLDelim:ks,delLDelim:Ss,delRDelim:Ls,url:z(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Yn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:z(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Yn).getRegex()},Ms={...Ht,br:z(Pr).replace("{2,}","*").getRegex(),text:z(Ht.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ht={normal:cn,gfm:ps,pedantic:hs},tt={normal:un,gfm:Ht,breaks:Ms,pedantic:As},Is={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xn=D(t=>Is[t],"de");function ie(t,e){if(e){if(K.escapeTest.test(t))return t.replace(K.escapeReplace,Xn)}else if(K.escapeTestNoEncode.test(t))return t.replace(K.escapeReplaceNoEncode,Xn);return t}b(ie,"y$7");D(ie,"O");function qt(t){try{t=encodeURI(t).replace(K.percentDecode,"%")}catch{return null}return t}b(qt,"ne$2");D(qt,"J");function Nt(t,e){let n=t.replace(K.findPipe,(o,s,a)=>{let c=!1,l=s;for(;--l>=0&&a[l]==="\\";)c=!c;return c?"|":" |"}),r=n.split(K.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(K.slashPipe,"|");return r}b(Nt,"se$2");D(Nt,"V");function me(t,e,n){let r=t.length;if(r===0)return"";let i=0;for(;i<r;){let o=t.charAt(r-i-1);if(o===e&&!n)i++;else if(o!==e&&n)i++;else break}return t.slice(0,r-i)}b(me,"$$5");D(me,"$");function Ut(t){let e=t.split(`
3
+ `),n=e.length-1;for(;n>=0&&K.blankLine.test(e[n]);)n--;return e.length-n<=2?t:e.slice(0,n+1).join(`
4
+ `)}b(Ut,"ie$2");D(Ut,"Y");function Mr(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}b(Mr,"st");D(Mr,"ge");function Ir(t,e=0){let n=e,r="";for(let i of t)if(i===" "){let o=4-n%4;r+=" ".repeat(o),n+=o}else r+=i,n++;return r}b(Ir,"it");D(Ir,"fe");function Gt(t,e,n,r,i){let o=e.href,s=e.title||null,a=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:s,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,c}b(Gt,"le");D(Gt,"me");function Br(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let i=r[1];return e.split(`
5
+ `).map(o=>{let s=o.match(n.other.beginningSpace);if(s===null)return o;let[a]=s;return a.length>=i.length?o.slice(i.length):o}).join(`
6
+ `)}b(Br,"lt");D(Br,"rt");var yt=class{static{b(this,"I")}static{D(this,"w")}options;rules;lexer;constructor(e){this.options=e||Re}space(e){let n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){let n=this.rules.block.code.exec(e);if(n){let r=this.options.pedantic?n[0]:Ut(n[0]),i=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:i}}}fences(e){let n=this.rules.block.fences.exec(e);if(n){let r=n[0],i=Br(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(e){let n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){let i=me(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:me(n[0],`
7
+ `),depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:me(n[0],`
8
+ `)}}blockquote(e){let n=this.rules.block.blockquote.exec(e);if(n){let r=me(n[0],`
7
9
  `).split(`
8
- `),o="",i="",s=[];for(;r.length>0;){let l=!1,a=[],c;for(c=0;c<r.length;c++)if(this.rules.other.blockquoteStart.test(r[c]))a.push(r[c]),l=!0;else if(!l)a.push(r[c]);else break;r=r.slice(c);let d=a.join(`
9
- `),u=d.replace(this.rules.other.blockquoteSetextReplace,`
10
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
11
- ${d}`:d,i=i?`${i}
12
- ${u}`:u;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,s,!0),this.lexer.state.top=g,r.length===0)break;let v=s.at(-1);if(v?.type==="code")break;if(v?.type==="blockquote"){let f=v,m=f.raw+`
10
+ `),i="",o="",s=[];for(;r.length>0;){let a=!1,c=[],l;for(l=0;l<r.length;l++)if(this.rules.other.blockquoteStart.test(r[l]))c.push(r[l]),a=!0;else if(!a)c.push(r[l]);else break;r=r.slice(l);let d=c.join(`
11
+ `),p=d.replace(this.rules.other.blockquoteSetextReplace,`
12
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
13
+ ${d}`:d,o=o?`${o}
14
+ ${p}`:p;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,s,!0),this.lexer.state.top=h,r.length===0)break;let f=s.at(-1);if(f?.type==="code")break;if(f?.type==="blockquote"){let v=f,m=v.raw+`
13
15
  `+r.join(`
14
- `),k=this.blockquote(m);s[s.length-1]=k,o=o.substring(0,o.length-f.raw.length)+k.raw,i=i.substring(0,i.length-f.text.length)+k.text;break}else if(v?.type==="list"){let f=v,m=f.raw+`
16
+ `),k=this.blockquote(m);s[s.length-1]=k,i=i.substring(0,i.length-v.raw.length)+k.raw,o=o.substring(0,o.length-v.text.length)+k.text;break}else if(f?.type==="list"){let v=f,m=v.raw+`
15
17
  `+r.join(`
16
- `),k=this.list(m);s[s.length-1]=k,o=o.substring(0,o.length-v.raw.length)+k.raw,i=i.substring(0,i.length-f.raw.length)+k.raw,r=m.substring(s.at(-1).raw.length).split(`
17
- `);continue}}return{type:"blockquote",raw:o,tokens:s,text:i}}}list(e){let n=this.rules.block.list.exec(e);if(n){let r=n[1].trim(),o=r.length>1,i={type:"list",raw:"",ordered:o,start:o?+r.slice(0,-1):"",loose:!1,items:[]};r=o?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=o?r:"[*+-]");let s=this.rules.other.listItemRegex(r),l=!1;for(;e;){let c=!1,d="",u="";if(!(n=s.exec(e))||this.rules.block.hr.test(e))break;d=n[0],e=e.substring(d.length);let g=n[2].split(`
18
- `,1)[0].replace(this.rules.other.listReplaceTabs,k=>" ".repeat(3*k.length)),v=e.split(`
19
- `,1)[0],f=!g.trim(),m=0;if(this.options.pedantic?(m=2,u=g.trimStart()):f?m=n[1].length+1:(m=n[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=g.slice(m),m+=n[1].length),f&&this.rules.other.blankLine.test(v)&&(d+=v+`
20
- `,e=e.substring(v.length+1),c=!0),!c){let k=this.rules.other.nextBulletRegex(m),L=this.rules.other.hrRegex(m),T=this.rules.other.fencesBeginRegex(m),$=this.rules.other.headingBeginRegex(m),M=this.rules.other.htmlBeginRegex(m);for(;e;){let z=e.split(`
21
- `,1)[0],D;if(v=z,this.options.pedantic?(v=v.replace(this.rules.other.listReplaceNesting," "),D=v):D=v.replace(this.rules.other.tabCharGlobal," "),T.test(v)||$.test(v)||M.test(v)||k.test(v)||L.test(v))break;if(D.search(this.rules.other.nonSpaceChar)>=m||!v.trim())u+=`
22
- `+D.slice(m);else{if(f||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(g)||$.test(g)||L.test(g))break;u+=`
23
- `+v}!f&&!v.trim()&&(f=!0),d+=z+`
24
- `,e=e.substring(z.length+1),g=D.slice(m)}}i.loose||(l?i.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(l=!0)),i.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),i.raw+=d}let a=i.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let c of i.items){if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),c.task){if(c.text=c.text.replace(this.rules.other.listReplaceTask,""),c.tokens[0]?.type==="text"||c.tokens[0]?.type==="paragraph"){c.tokens[0].raw=c.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),c.tokens[0].text=c.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}}let d=this.rules.other.listTaskCheckbox.exec(c.raw);if(d){let u={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};c.checked=u.checked,i.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=u.raw+c.tokens[0].raw,c.tokens[0].text=u.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(u)):c.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):c.tokens.unshift(u)}}if(!i.loose){let d=c.tokens.filter(g=>g.type==="space"),u=d.length>0&&d.some(g=>this.rules.other.anyLine.test(g.raw));i.loose=u}}if(i.loose)for(let c of i.items){c.loose=!0;for(let d of c.tokens)d.type==="text"&&(d.type="paragraph")}return i}}html(e){let n=this.rules.block.html.exec(e);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(e){let n=this.rules.block.def.exec(e);if(n){let r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:o,title:i}}}table(e){let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=Ot(n[1]),o=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
- `):[],s={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){for(let l of o)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<r.length;l++)s.header.push({text:r[l],tokens:this.lexer.inline(r[l]),header:!0,align:s.align[l]});for(let l of i)s.rows.push(Ot(l,s.header.length).map((a,c)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:s.align[c]})));return s}}lheading(e){let n=this.rules.block.lheading.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(e){let n=this.rules.block.paragraph.exec(e);if(n){let r=n[1].charAt(n[1].length-1)===`
26
- `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){let n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(e){let n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){let n=this.rules.inline.link.exec(e);if(n){let r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=Be(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=zr(n[2],"()");if(s===-2)return;if(s>-1){let l=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(o);s&&(o=s[1],i=s[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?o=o.slice(1):o=o.slice(1,-1)),qt(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(e,n){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let o=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[o.toLowerCase()];if(!i){let s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return qt(r,i,r[0],this.lexer,this.rules)}}emStrong(e,n,r=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!(!o||o[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!r||this.rules.inline.punctuation.exec(r))){let i=[...o[0]].length-1,s,l,a=i,c=0,d=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*e.length+i);(o=d.exec(n))!=null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s)continue;if(l=[...s].length,o[3]||o[4]){a+=l;continue}else if((o[5]||o[6])&&i%3&&!((i+l)%3)){c+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a+c);let u=[...o[0]][0].length,g=e.slice(0,i+o.index+u+l);if(Math.min(i,l)%2){let f=g.slice(1,-1);return{type:"em",raw:g,text:f,tokens:this.lexer.inlineTokens(f)}}let v=g.slice(2,-2);return{type:"strong",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(e){let n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return o&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(e){let n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){let n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e){let n=this.rules.inline.autolink.exec(e);if(n){let r,o;return n[2]==="@"?(r=n[1],o="mailto:"+r):(r=n[1],o=r),{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let n;if(n=this.rules.inline.url.exec(e)){let r,o;if(n[2]==="@")r=n[0],o="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(i!==n[0]);r=n[0],n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let n=this.rules.inline.text.exec(e);if(n){let r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}},me=class Ut{static{b(this,"O")}static{I(this,"u")}tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Re,this.options.tokenizer=this.options.tokenizer||new ft,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:ee,block:ct.normal,inline:Ye.normal};this.options.pedantic?(n.block=ct.pedantic,n.inline=Ye.pedantic):this.options.gfm&&(n.block=ct.gfm,this.options.breaks?n.inline=Ye.breaks:n.inline=Ye.gfm),this.tokenizer.rules=n}static get rules(){return{block:ct,inline:Ye}}static lex(e,n){return new Ut(n).lex(e)}static lexInline(e,n){return new Ut(n).inlineTokens(e)}lex(e){e=e.replace(ee.carriageReturn,`
27
- `),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){for(this.options.pedantic&&(e=e.replace(ee.tabCharGlobal," ").replace(ee.spaceLine,""));e;){let o;if(this.options.extensions?.block?.some(s=>(o=s.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let s=n.at(-1);o.raw.length===1&&s!==void 0?s.raw+=`
28
- `:n.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
18
+ `),k=this.list(m);s[s.length-1]=k,i=i.substring(0,i.length-f.raw.length)+k.raw,o=o.substring(0,o.length-v.raw.length)+k.raw,r=m.substring(s.at(-1).raw.length).split(`
19
+ `);continue}}return{type:"blockquote",raw:i,tokens:s,text:o}}}list(e){let n=this.rules.block.list.exec(e);if(n){let r=n[1].trim(),i=r.length>1,o={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");let s=this.rules.other.listItemRegex(r),a=!1;for(;e;){let l=!1,d="",p="";if(!(n=s.exec(e))||this.rules.block.hr.test(e))break;d=n[0],e=e.substring(d.length);let h=Ir(n[2].split(`
20
+ `,1)[0],n[1].length),f=e.split(`
21
+ `,1)[0],v=!h.trim(),m=0;if(this.options.pedantic?(m=2,p=h.trimStart()):v?m=n[1].length+1:(m=h.search(this.rules.other.nonSpaceChar),m=m>4?1:m,p=h.slice(m),m+=n[1].length),v&&this.rules.other.blankLine.test(f)&&(d+=f+`
22
+ `,e=e.substring(f.length+1),l=!0),!l){let k=this.rules.other.nextBulletRegex(m),L=this.rules.other.hrRegex(m),T=this.rules.other.fencesBeginRegex(m),$=this.rules.other.headingBeginRegex(m),R=this.rules.other.htmlBeginRegex(m),A=this.rules.other.blockquoteBeginRegex(m);for(;e;){let M=e.split(`
23
+ `,1)[0],j;if(f=M,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),j=f):j=f.replace(this.rules.other.tabCharGlobal," "),T.test(f)||$.test(f)||R.test(f)||A.test(f)||k.test(f)||L.test(f))break;if(j.search(this.rules.other.nonSpaceChar)>=m||!f.trim())p+=`
24
+ `+j.slice(m);else{if(v||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(h)||$.test(h)||L.test(h))break;p+=`
25
+ `+f}v=!f.trim(),d+=M+`
26
+ `,e=e.substring(M.length+1),h=j.slice(m)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(a=!0)),o.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),o.raw+=d}let c=o.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let l of o.items){this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]);let d=l.tokens[0];if(l.task&&(d?.type==="text"||d?.type==="paragraph")){l.text=l.text.replace(this.rules.other.listReplaceTask,""),d.raw=d.raw.replace(this.rules.other.listReplaceTask,""),d.text=d.text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}let p=this.rules.other.listTaskCheckbox.exec(l.raw);if(p){let h={type:"checkbox",raw:p[0]+" ",checked:p[0]!=="[ ]"};l.checked=h.checked,o.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=h.raw+l.tokens[0].raw,l.tokens[0].text=h.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(h)):l.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):l.tokens.unshift(h)}}else l.task&&(l.task=!1);if(!o.loose){let p=l.tokens.filter(f=>f.type==="space"),h=p.length>0&&p.some(f=>this.rules.other.anyLine.test(f.raw));o.loose=h}}if(o.loose)for(let l of o.items){l.loose=!0;for(let d of l.tokens)d.type==="text"&&(d.type="paragraph")}return o}}html(e){let n=this.rules.block.html.exec(e);if(n){let r=Ut(n[0]);return{type:"html",block:!0,raw:r,pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:r}}}def(e){let n=this.rules.block.def.exec(e);if(n){let r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:me(n[0],`
27
+ `),href:i,title:o}}}table(e){let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=Nt(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
28
+ `):[],s={type:"table",raw:me(n[0],`
29
+ `),header:[],align:[],rows:[]};if(r.length===i.length){for(let a of i)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<r.length;a++)s.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:s.align[a]});for(let a of o)s.rows.push(Nt(a,s.header.length).map((c,l)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:s.align[l]})));return s}}lheading(e){let n=this.rules.block.lheading.exec(e);if(n){let r=n[1].trim();return{type:"heading",raw:me(n[0],`
30
+ `),depth:n[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(e){let n=this.rules.block.paragraph.exec(e);if(n){let r=n[1].charAt(n[1].length-1)===`
31
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){let n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(e){let n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){let n=this.rules.inline.link.exec(e);if(n){let r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=me(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=Mr(n[2],"()");if(s===-2)return;if(s>-1){let a=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let i=n[2],o="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(i);s&&(i=s[1],o=s[3])}else o=n[3]?n[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),Gt(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(e,n){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=n[i.toLowerCase()];if(!o){let s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return Gt(r,o,r[0],this.lexer,this.rules)}}emStrong(e,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||!i[1]&&!i[2]&&!i[3]&&!i[4]||i[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[3])||!r||this.rules.inline.punctuation.exec(r))){let o=[...i[0]].length-1,s,a,c=o,l=0,d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*e.length+o);(i=d.exec(n))!==null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(a=[...s].length,i[3]||i[4]){c+=a;continue}else if((i[5]||i[6])&&o%3&&!((o+a)%3)){l+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+l);let p=[...i[0]][0].length,h=e.slice(0,o+i.index+p+a);if(Math.min(o,a)%2){let v=h.slice(1,-1);return{type:"em",raw:h,text:v,tokens:this.lexer.inlineTokens(v)}}let f=h.slice(2,-2);return{type:"strong",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){let n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(r),o=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&o&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(e){let n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e,n,r=""){let i=this.rules.inline.delLDelim.exec(e);if(i&&(!i[1]||!r||this.rules.inline.punctuation.exec(r))){let o=[...i[0]].length-1,s,a,c=o,l=this.rules.inline.delRDelim;for(l.lastIndex=0,n=n.slice(-1*e.length+o);(i=l.exec(n))!==null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s||(a=[...s].length,a!==o))continue;if(i[3]||i[4]){c+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c);let d=[...i[0]][0].length,p=e.slice(0,o+i.index+d+a),h=p.slice(o,-o);return{type:"del",raw:p,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(e){let n=this.rules.inline.autolink.exec(e);if(n){let r,i;return n[2]==="@"?(r=n[1],i="mailto:"+r):(r=n[1],i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let n;if(n=this.rules.inline.url.exec(e)){let r,i;if(n[2]==="@")r=n[0],i="mailto:"+r;else{let o;do o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(o!==n[0]);r=n[0],n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let n=this.rules.inline.text.exec(e);if(n){let r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}},he=class Wt{static{b(this,"H")}static{D(this,"l")}tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Re,this.options.tokenizer=this.options.tokenizer||new yt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:K,block:ht.normal,inline:tt.normal};this.options.pedantic?(n.block=ht.pedantic,n.inline=tt.pedantic):this.options.gfm&&(n.block=ht.gfm,this.options.breaks?n.inline=tt.breaks:n.inline=tt.gfm),this.tokenizer.rules=n}static get rules(){return{block:ht,inline:tt}}static lex(e,n){return new Wt(n).lex(e)}static lexInline(e,n){return new Wt(n).inlineTokens(e)}lex(e){e=e.replace(K.carriageReturn,`
32
+ `),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(K.tabCharGlobal," ").replace(K.spaceLine,""));let i=1/0;for(;e;){if(e.length<i)i=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let o;if(this.options.extensions?.block?.some(a=>(o=a.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let a=n.at(-1);o.raw.length===1&&a!==void 0?a.raw+=`
33
+ `:n.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let a=n.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
29
34
  `)?"":`
30
- `)+o.raw,s.text+=`
31
- `+o.text,this.inlineQueue.at(-1).src=s.text):n.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
35
+ `)+o.raw,a.text+=`
36
+ `+o.text,this.inlineQueue.at(-1).src=a.text):n.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let a=n.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
32
37
  `)?"":`
33
- `)+o.raw,s.text+=`
34
- `+o.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},n.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),n.push(o);continue}let i=e;if(this.options.extensions?.startBlock){let s=1/0,l=e.slice(1),a;this.options.extensions.startBlock.forEach(c=>{a=c.call({lexer:this},l),typeof a=="number"&&a>=0&&(s=Math.min(s,a))}),s<1/0&&s>=0&&(i=e.substring(0,s+1))}if(this.state.top&&(o=this.tokenizer.paragraph(i))){let s=n.at(-1);r&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
38
+ `)+o.raw,a.text+=`
39
+ `+o.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},n.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),n.push(o);continue}let s=e;if(this.options.extensions?.startBlock){let a=1/0,c=e.slice(1),l;this.options.extensions.startBlock.forEach(d=>{l=d.call({lexer:this},c),typeof l=="number"&&l>=0&&(a=Math.min(a,l))}),a<1/0&&a>=0&&(s=e.substring(0,a+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){let a=n.at(-1);r&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
35
40
  `)?"":`
36
- `)+o.raw,s.text+=`
37
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(o),r=i.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let s=n.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
41
+ `)+o.raw,a.text+=`
42
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(o),r=s.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let a=n.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
38
43
  `)?"":`
39
- `)+o.raw,s.text+=`
40
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(o);continue}if(e){let s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let r=e,o=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)a.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)i=o[2]?o[2].length:0,r=r.slice(0,o.index+i)+"["+"a".repeat(o[0].length-i-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,l="";for(;e;){s||(l=""),s=!1;let a;if(this.options.extensions?.inline?.some(d=>(a=d.call({lexer:this},e,n))?(e=e.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);let d=n.at(-1);a.type==="text"&&d?.type==="text"?(d.raw+=a.raw,d.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(e,r,l)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),n.push(a);continue}let c=e;if(this.options.extensions?.startInline){let d=1/0,u=e.slice(1),g;this.options.extensions.startInline.forEach(v=>{g=v.call({lexer:this},u),typeof g=="number"&&g>=0&&(d=Math.min(d,g))}),d<1/0&&d>=0&&(c=e.substring(0,d+1))}if(a=this.tokenizer.inlineText(c)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(l=a.raw.slice(-1)),s=!0;let d=n.at(-1);d?.type==="text"?(d.raw+=a.raw,d.text+=a.text):n.push(a);continue}if(e){let d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}},vt=class{static{b(this,"L")}static{I(this,"P")}options;parser;constructor(e){this.options=e||Re}space(e){return""}code({text:e,lang:n,escaped:r}){let o=(n||"").match(ee.notSpaceStart)?.[0],i=e.replace(ee.endingNewline,"")+`
41
- `;return o?'<pre><code class="language-'+ge(o)+'">'+(r?i:ge(i,!0))+`</code></pre>
42
- `:"<pre><code>"+(r?i:ge(i,!0))+`</code></pre>
44
+ `)+o.raw,a.text+=`
45
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){this.tokenizer.lexer=this;let r=e,i=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!==null;)l.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!==null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!==null;)o=i[2]?i[2].length:0,r=r.slice(0,i.index+o)+"["+"a".repeat(i[0].length-o-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,a="",c=1/0;for(;e;){if(e.length<c)c=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}s||(a=""),s=!1;let l;if(this.options.extensions?.inline?.some(p=>(l=p.call({lexer:this},e,n))?(e=e.substring(l.raw.length),n.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let p=n.at(-1);l.type==="text"&&p?.type==="text"?(p.raw+=l.raw,p.text+=l.text):n.push(l);continue}if(l=this.tokenizer.emStrong(e,r,a)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.del(e,r,a)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),n.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),n.push(l);continue}let d=e;if(this.options.extensions?.startInline){let p=1/0,h=e.slice(1),f;this.options.extensions.startInline.forEach(v=>{f=v.call({lexer:this},h),typeof f=="number"&&f>=0&&(p=Math.min(p,f))}),p<1/0&&p>=0&&(d=e.substring(0,p+1))}if(l=this.tokenizer.inlineText(d)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(a=l.raw.slice(-1)),s=!0;let p=n.at(-1);p?.type==="text"?(p.raw+=l.raw,p.text+=l.text):n.push(l);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return n}infiniteLoopError(e){let n="Infinite loop on byte: "+e;if(this.options.silent)console.error(n);else throw new Error(n)}},xt=class{static{b(this,"E")}static{D(this,"y")}options;parser;constructor(e){this.options=e||Re}space(e){return""}code({text:e,lang:n,escaped:r}){let i=(n||"").match(K.notSpaceStart)?.[0],o=e.replace(K.endingNewline,"")+`
46
+ `;return i?'<pre><code class="language-'+ie(i)+'">'+(r?o:ie(o,!0))+`</code></pre>
47
+ `:"<pre><code>"+(r?o:ie(o,!0))+`</code></pre>
43
48
  `}blockquote({tokens:e}){return`<blockquote>
44
49
  ${this.parser.parse(e)}</blockquote>
45
50
  `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:n}){return`<h${n}>${this.parser.parseInline(e)}</h${n}>
46
51
  `}hr(e){return`<hr>
47
- `}list(e){let n=e.ordered,r=e.start,o="";for(let l=0;l<e.items.length;l++){let a=e.items[l];o+=this.listitem(a)}let i=n?"ol":"ul",s=n&&r!==1?' start="'+r+'"':"";return"<"+i+s+`>
48
- `+o+"</"+i+`>
52
+ `}list(e){let n=e.ordered,r=e.start,i="";for(let a=0;a<e.items.length;a++){let c=e.items[a];i+=this.listitem(c)}let o=n?"ol":"ul",s=n&&r!==1?' start="'+r+'"':"";return"<"+o+s+`>
53
+ `+i+"</"+o+`>
49
54
  `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
50
55
  `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
51
- `}table(e){let n="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);n+=this.tablerow({text:r});let o="";for(let i=0;i<e.rows.length;i++){let s=e.rows[i];r="";for(let l=0;l<s.length;l++)r+=this.tablecell(s[l]);o+=this.tablerow({text:r})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
56
+ `}table(e){let n="",r="";for(let o=0;o<e.header.length;o++)r+=this.tablecell(e.header[o]);n+=this.tablerow({text:r});let i="";for(let o=0;o<e.rows.length;o++){let s=e.rows[o];r="";for(let a=0;a<s.length;a++)r+=this.tablecell(s[a]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
52
57
  <thead>
53
58
  `+n+`</thead>
54
- `+o+`</table>
59
+ `+i+`</table>
55
60
  `}tablerow({text:e}){return`<tr>
56
61
  ${e}</tr>
57
62
  `}tablecell(e){let n=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+n+`</${r}>
58
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ge(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:n,tokens:r}){let o=this.parser.parseInline(r),i=jt(e);if(i===null)return o;e=i;let s='<a href="'+e+'"';return n&&(s+=' title="'+ge(n)+'"'),s+=">"+o+"</a>",s}image({href:e,title:n,text:r,tokens:o}){o&&(r=this.parser.parseInline(o,this.parser.textRenderer));let i=jt(e);if(i===null)return ge(r);e=i;let s=`<img src="${e}" alt="${r}"`;return n&&(s+=` title="${ge(n)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ge(e.text)}},ln=class{static{b(this,"D")}static{I(this,"$")}strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},fe=class Vt{static{b(this,"H")}static{I(this,"u")}options;renderer;textRenderer;constructor(e){this.options=e||Re,this.options.renderer=this.options.renderer||new vt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ln}static parse(e,n){return new Vt(n).parse(e)}static parseInline(e,n){return new Vt(n).parseInline(e)}parse(e){let n="";for(let r=0;r<e.length;r++){let o=e[r];if(this.options.extensions?.renderers?.[o.type]){let s=o,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=l||"";continue}}let i=o;switch(i.type){case"space":{n+=this.renderer.space(i);break}case"hr":{n+=this.renderer.hr(i);break}case"heading":{n+=this.renderer.heading(i);break}case"code":{n+=this.renderer.code(i);break}case"table":{n+=this.renderer.table(i);break}case"blockquote":{n+=this.renderer.blockquote(i);break}case"list":{n+=this.renderer.list(i);break}case"checkbox":{n+=this.renderer.checkbox(i);break}case"html":{n+=this.renderer.html(i);break}case"def":{n+=this.renderer.def(i);break}case"paragraph":{n+=this.renderer.paragraph(i);break}case"text":{n+=this.renderer.text(i);break}default:{let s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(e,n=this.renderer){let r="";for(let o=0;o<e.length;o++){let i=e[o];if(this.options.extensions?.renderers?.[i.type]){let l=this.options.extensions.renderers[i.type].call({parser:this},i);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=l||"";continue}}let s=i;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"checkbox":{r+=n.checkbox(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}},Xe=class{static{b(this,"T")}static{I(this,"S")}options;block;constructor(e){this.options=e||Re}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?me.lex:me.lexInline}provideParser(){return this.block?fe.parse:fe.parseInline}},Ps=class{static{b(this,"fe")}static{I(this,"B")}defaults=$t();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=fe;Renderer=vt;TextRenderer=ln;Lexer=me;Tokenizer=ft;Hooks=Xe;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{let o=r;for(let i of o.header)n=n.concat(this.walkTokens(i.tokens,e));for(let i of o.rows)for(let s of i)n=n.concat(this.walkTokens(s.tokens,e));break}case"list":{let o=r;n=n.concat(this.walkTokens(o.items,e));break}default:{let o=r;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(i=>{let s=o[i].flat(1/0);n=n.concat(this.walkTokens(s,e))}):o.tokens&&(n=n.concat(this.walkTokens(o.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let i=e.renderers[o.name];i?e.renderers[o.name]=function(...s){let l=o.renderer.apply(this,s);return l===!1&&(l=i.apply(this,s)),l}:e.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=e[o.level];i?i.unshift(o.tokenizer):e[o.level]=[o.tokenizer],o.start&&(o.level==="block"?e.startBlock?e.startBlock.push(o.start):e.startBlock=[o.start]:o.level==="inline"&&(e.startInline?e.startInline.push(o.start):e.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(e.childTokens[o.name]=o.childTokens)}),r.extensions=e),n.renderer){let o=this.defaults.renderer||new vt(this.defaults);for(let i in n.renderer){if(!(i in o))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let s=i,l=n.renderer[s],a=o[s];o[s]=(...c)=>{let d=l.apply(o,c);return d===!1&&(d=a.apply(o,c)),d||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new ft(this.defaults);for(let i in n.tokenizer){if(!(i in o))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let s=i,l=n.tokenizer[s],a=o[s];o[s]=(...c)=>{let d=l.apply(o,c);return d===!1&&(d=a.apply(o,c)),d}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new Xe;for(let i in n.hooks){if(!(i in o))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let s=i,l=n.hooks[s],a=o[s];Xe.passThroughHooks.has(i)?o[s]=c=>{if(this.defaults.async&&Xe.passThroughHooksRespectAsync.has(i))return(async()=>{let u=await l.call(o,c);return a.call(o,u)})();let d=l.call(o,c);return a.call(o,d)}:o[s]=(...c)=>{if(this.defaults.async)return(async()=>{let u=await l.apply(o,c);return u===!1&&(u=await a.apply(o,c)),u})();let d=l.apply(o,c);return d===!1&&(d=a.apply(o,c)),d}}r.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(s){let l=[];return l.push(i.call(this,s)),o&&(l=l.concat(o.call(this,s))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return me.lex(t,e??this.defaults)}parser(t,e){return fe.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},o={...this.defaults,...r},i=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let s=o.hooks?await o.hooks.preprocess(e):e,l=await(o.hooks?await o.hooks.provideLexer():t?me.lex:me.lexInline)(s,o),a=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(a,o.walkTokens));let c=await(o.hooks?await o.hooks.provideParser():t?fe.parse:fe.parseInline)(a,o);return o.hooks?await o.hooks.postprocess(c):c})().catch(i);try{o.hooks&&(e=o.hooks.preprocess(e));let s=(o.hooks?o.hooks.provideLexer():t?me.lex:me.lexInline)(e,o);o.hooks&&(s=o.hooks.processAllTokens(s)),o.walkTokens&&this.walkTokens(s,o.walkTokens);let l=(o.hooks?o.hooks.provideParser():t?fe.parse:fe.parseInline)(s,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(s){return i(s)}}}onError(t,e){return n=>{if(n.message+=`
59
- Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error occurred:</p><pre>"+ge(n.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(n);throw n}}},Fe=new Ps;function O(t,e){return Fe.parse(t,e)}b(O,"g$6");I(O,"d");O.options=O.setOptions=function(t){return Fe.setOptions(t),O.defaults=Fe.defaults,Kt(O.defaults),O};O.getDefaults=$t;O.defaults=Re;O.use=function(...t){return Fe.use(...t),O.defaults=Fe.defaults,Kt(O.defaults),O};O.walkTokens=function(t,e){return Fe.walkTokens(t,e)};O.parseInline=Fe.parseInline;O.Parser=fe;O.parser=fe.parse;O.Renderer=vt;O.TextRenderer=ln;O.Lexer=me;O.lexer=me.lex;O.Tokenizer=ft;O.Hooks=Xe;O.parse=O;var Gn=O,Ms=Object.defineProperty,Fs=b((t,e)=>Ms(t,"name",{value:e,configurable:!0}),"r$4");const Rs=["cjs","mjs"],zs=["mdoc"],qe=Fs(t=>{const e=(t.split("?")[0]??t).split(".").pop()?.toLowerCase();if(!e||Rs.includes(e))return"javascript";if(zs.includes(e))return"markdown";switch(e){case"js":case"cjs":case"mjs":return"javascript";case"json":return"json";case"json5":return"json5";case"jsonc":return"jsonc";case"jsx":return"jsx";case"sql":return"sql";case"ts":case"cts":case"mts":return"typescript";case"tsx":return"tsx";case"xml":return"xml";case"md":return"markdown";case"mdx":return"mdx";case"svelte":return"svelte";case"vue":return"vue";case"html":return"html";case"css":return"css";case"scss":return"scss";case"less":return"less";case"sass":return"sass";case"stylus":return"stylus";case"styl":return"styl";case"txt":return"text";default:return"javascript"}},"findLanguageBasedOnExtension"),Ds=500,Ar="visulima:vite-overlay:error",As="visulima-vite-overlay",Ir="Error",Is="Runtime error",Yn="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-chevron-left%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22m15%2018-6-6%206-6%22%20%2F%3E%20%3C%2Fsvg%3E",dt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-chevron-right%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22m9%2018%206-6-6-6%22%20%2F%3E%20%3C%2Fsvg%3E",Xn="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-clock%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M12%206v6l4%202%22%20%2F%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%20%3C%2Fsvg%3E",Qn="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-copy%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Crect%20width%3D%2214%22%20height%3D%2214%22%20x%3D%228%22%20y%3D%228%22%20rx%3D%222%22%20ry%3D%222%22%20%2F%3E%20%3Cpath%20d%3D%22M4%2016c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2h10c1.1%200%202%20.9%202%202%22%20%2F%3E%20%3C%2Fsvg%3E",Jn="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-info%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2016v-4%22%20%2F%3E%20%3Cpath%20d%3D%22M12%208h.01%22%20%2F%3E%20%3C%2Fsvg%3E",Kn="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-moon-star%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%205h4%22%20%2F%3E%20%3Cpath%20d%3D%22M20%203v4%22%20%2F%3E%20%3Cpath%20d%3D%22M20.985%2012.486a9%209%200%201%201-9.473-9.472c.405-.022.617.46.402.803a6%206%200%200%200%208.268%208.268c.344-.215.825-.004.803.401%22%20%2F%3E%20%3C%2Fsvg%3E",er="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-sun%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%20%2F%3E%20%3Cpath%20d%3D%22M12%202v2%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2020v2%22%20%2F%3E%20%3Cpath%20d%3D%22m4.93%204.93%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m17.66%2017.66%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22M2%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22M20%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22m6.34%2017.66-1.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m19.07%204.93-1.41%201.41%22%20%2F%3E%20%3C%2Fsvg%3E",wt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-x%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%206%206%2018%22%20%2F%3E%20%3Cpath%20d%3D%22m6%206%2012%2012%22%20%2F%3E%20%3C%2Fsvg%3E";var Nt=(t=>(t.appcode="AppCode",t["android-studio"]="Android Studio",t.atom="Atom",t["atom-beta"]="Atom Beta",t.brackets="Brackets",t.clion="CLion",t.code="Visual Studio Code",t["code-insiders"]="Visual Studio Code Insiders",t.codium="VSCodium",t.cursor="Cursor",t.emacs="GNU Emacs",t.emacsforosx="GNU Emacs for Mac OS X",t.intellij="IntelliJ IDEA",t.idea="IntelliJ IDEA",t.nano="GNU nano",t.neovim="NeoVim",t["notepad++"]="Notepad++",t.phpstorm="PhpStorm",t.pycharm="PyCharm",t.rider="Rider",t.rubymine="RubyMine",t.sublime="SublimeText",t.textmate="TextMate",t.vim="Vim",t.visualstudio="Visual Studio",t.vscode="Visual Studio Code",t.vscodium="VSCodium",t.webstorm="WebStorm",t.xcode="Xcode",t.zed="Zed",t))(Nt||{}),Hs=`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
60
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-lime-800:oklch(45.3% .124 130.933);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-600:oklch(60.9% .126 221.723);--color-blue-50:oklch(97% .014 254.604);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25/1.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--radius-md:.375rem;--radius-lg:.5rem;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}body{background-color:var(--ono-v-bg);color:var(--ono-v-text)}pre,code{color:var(--ono-v-text)}.text-muted{color:var(--ono-v-text-muted)}a{color:var(--ono-v-link)}a:hover{text-decoration:underline}::selection{background:var(--ono-v-red-orange)}@supports (color:color-mix(in lab, red, red)){::selection{background:color-mix(in srgb,var(--ono-v-red-orange)20%,transparent)}}kbd{background-color:var(--ono-v-chip-bg);color:var(--ono-v-chip-text);border-radius:.375rem;padding:.125rem .375rem;font:.75rem ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}hr{border-color:var(--ono-v-border)}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:oklch(55.1% .027 264.364);border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:oklch(54.6% .245 262.881);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-date-and-time-value{text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{appearance:none;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:oklch(54.6% .245 262.881);--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:oklch(55.1% .027 264.364);flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.top-\\[calc\\(var\\(--ono-v-dialog-border-width\\)\\*-1\\)\\]{top:calc(var(--ono-v-dialog-border-width)*-1)}.right-6{right:calc(var(--spacing)*6)}.right-\\[-54px\\]{right:-54px}.left-\\[-54px\\]{left:-54px}.-z-1{z-index:calc(1*-1)}.z-2{z-index:2}.z-10{z-index:10}.z-2147483647,.z-\\[2147483647\\]{z-index:2147483647}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-1{margin:calc(var(--spacing)*1)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.-mt-3{margin-top:calc(var(--spacing)*-3)}.-mt-5{margin-top:calc(var(--spacing)*-5)}.mt-8{margin-top:calc(var(--spacing)*8)}.mb-0{margin-bottom:calc(var(--spacing)*0)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-2{margin-left:calc(var(--spacing)*2)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6\\.5{width:calc(var(--spacing)*6.5);height:calc(var(--spacing)*6.5)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.h-\\(--ono-v-dialog-notch-height\\){height:var(--ono-v-dialog-notch-height)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-10{height:calc(var(--spacing)*10)}.h-\\[40vmin\\]{height:40vmin}.h-\\[calc\\(100\\%\\+var\\(--ono-v-dialog-border-width\\)\\)\\]{height:calc(100% + var(--ono-v-dialog-border-width))}.max-h-50{max-height:calc(var(--spacing)*50)}.max-h-\\[140px\\]{max-height:140px}.max-h-\\[calc\\(100\\%-56px\\)\\]{max-height:calc(100% - 56px)}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-screen{min-height:100vh}.w-1\\/2{width:50%}.w-1\\/3{width:33.3333%}.w-2\\/3{width:66.6667%}.w-2\\/5{width:40%}.w-3\\/4{width:75%}.w-3\\/5{width:60%}.w-4{width:calc(var(--spacing)*4)}.w-4\\/5{width:80%}.w-6{width:calc(var(--spacing)*6)}.w-42{width:calc(var(--spacing)*42)}.w-44{width:calc(var(--spacing)*44)}.w-\\[calc\\(100\\%-24px\\)\\]{width:calc(100% - 24px)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\(--ono-v-dialog-max-width\\){max-width:var(--ono-v-dialog-max-width)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[calc\\(var\\(--ono-v-dialog-max-width\\)-24px\\)\\]{max-width:calc(var(--ono-v-dialog-max-width) - 24px)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-5{min-width:calc(var(--spacing)*5)}.min-w-8{min-width:calc(var(--spacing)*8)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.translate-x-\\(--ono-v-dialog-border-width\\){--tw-translate-x:var(--ono-v-dialog-border-width);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[calc\\(var\\(--ono-v-dialog-border-width\\)\\*-1\\)\\]{--tw-translate-x:calc(var(--ono-v-dialog-border-width)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\(--ono-v-dialog-border-width\\){--tw-translate-y:var(--ono-v-dialog-border-width);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.\\[transform\\:rotateY\\(180deg\\)\\]{transform:rotateY(180deg)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-\\[spin_20s_linear_infinite\\]{animation:20s linear infinite spin}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\(--ono-v-radius-md\\){border-radius:var(--ono-v-radius-md)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-tl-\\(--ono-v-dialog-radius\\){border-top-left-radius:var(--ono-v-dialog-radius)}.rounded-tr-\\(--ono-v-dialog-radius\\){border-top-right-radius:var(--ono-v-dialog-radius)}.rounded-b-\\(--ono-v-dialog-radius\\){border-bottom-right-radius:var(--ono-v-dialog-radius);border-bottom-left-radius:var(--ono-v-dialog-radius)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-none{--tw-border-style:none;border-style:none}.border-\\(--ono-v-border\\){border-color:var(--ono-v-border)}.border-\\(--stroke-color\\){border-color:var(--stroke-color)}.bg-\\(--background-color\\){background-color:var(--background-color)}.bg-\\(--ono-v-chip-bg\\){background-color:var(--ono-v-chip-bg)}.bg-\\(--ono-v-red-orange\\){background-color:var(--ono-v-red-orange)}.bg-\\(--ono-v-success-bg\\){background-color:var(--ono-v-success-bg)}.bg-\\(--ono-v-surface\\){background-color:var(--ono-v-surface)}.bg-\\(--ono-v-surface-muted\\){background-color:var(--ono-v-surface-muted)}.bg-\\[\\#282c34\\]{background-color:#282c34}.bg-\\[\\#b0c8aa\\]{background-color:#b0c8aa}.bg-black\\/60{background-color:#0009}@supports (color:color-mix(in lab, red, red)){.bg-black\\/60{background-color:color-mix(in oklab,var(--color-black)60%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.bg-white\\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-\\[15px\\]{padding-inline:15px}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pe-6{padding-inline-end:calc(var(--spacing)*6)}.pt-5{padding-top:calc(var(--spacing)*5)}.pt-\\[10vh\\]{padding-top:10vh}.pr-0{padding-right:calc(var(--spacing)*0)}.pl-0{padding-left:calc(var(--spacing)*0)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[calc\\(10px\\+2vmin\\)\\]{font-size:calc(10px + 2vmin)}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none{--tw-leading:1;line-height:1}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\(--ono-v-red-orange\\){color:var(--ono-v-red-orange)}.text-\\(--ono-v-text\\){color:var(--ono-v-text)}.text-\\(--ono-v-text-muted\\){color:var(--ono-v-text-muted)}.text-\\[\\#61dafb\\]{color:#61dafb}.text-\\[var\\(--ono-v-text\\)\\]{color:var(--ono-v-text)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\(--ono-v-elevation-1\\){--tw-shadow:var(--ono-v-elevation-1);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\(--ono-v-elevation-2\\){--tw-shadow:var(--ono-v-elevation-2);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[--ono-v-elevation-2\\]{--tw-shadow:--ono-v-elevation-2;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-shadow-\\(--ono-v-elevation-2\\){--tw-inset-shadow:inset var(--ono-v-elevation-2);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.\\[vite\\:legacy\\]{vite:legacy}.\\[vite\\:react-babel\\]{vite:react-babel}.\\[vite\\:vue\\]{vite:vue}.hover\\:bg-\\(--ono-v-hover-overlay\\):hover{background-color:var(--ono-v-hover-overlay)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\\:bg-white\\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\\:text-\\(--ono-v-text\\):hover{color:var(--ono-v-text)}.hover\\:text-\\[var\\(--ono-v-text-muted\\)\\]:hover{color:var(--ono-v-text-muted)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:brightness-105:hover{--tw-brightness:brightness(105%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.focus\\:bg-\\(--ono-v-hover-overlay\\):focus{background-color:var(--ono-v-hover-overlay)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\(--ono-v-red-orange\\):focus{--tw-ring-color:var(--ono-v-red-orange)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-\\(--ono-v-red-orange\\):focus-visible{outline-color:var(--ono-v-red-orange)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width:40rem){.sm\\:flex{display:flex}}@media (min-width:48rem){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}}.dark\\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\\:bg-lime-800:where(.dark,.dark *){background-color:var(--color-lime-800)}.dark\\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\\:prose-invert:where(.dark,.dark *){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}.prose-headings\\:text-white :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-white)}.prose-ul\\:list-none :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:none}.prose-hr\\:my-6 :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-block:calc(var(--spacing)*6)}.prose-hr\\:border :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-style:var(--tw-border-style);border-width:1px}}:host{--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-space-x-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial:;--ono-v-white-smoke:#f5f5f5;--ono-v-red-orange:#ff4628;--ono-v-charcoal-black:#202020;--ono-v-bg:var(--ono-v-white-smoke);--ono-v-surface:#fff;--ono-v-surface-muted:#fafafa;--ono-v-border:#b9c8d780;--ono-v-hover-overlay:#2020200d;--ono-v-success:#2ea043;--ono-v-success-bg:#d6eed1;--ono-v-neutral:#6e7681;--ono-v-neutral-bg:#6e76812e;--ono-v-chip-bg:#6e768124;--ono-v-chip-text:var(--ono-v-text);--ono-v-radius-md:.5rem;--ono-v-radius-lg:.75rem;--ono-v-elevation-1:0 1px 2px #0000000a,0 1px 1px #00000005;--ono-v-elevation-2:0 10px 25px -5px #2020201a,0 8px 10px -6px #2020201a;--ono-v-text:#111827;--ono-v-text-muted:#374151;--ono-v-link:#c4311d;--ono-v-muted-on-surface:#374151;--ono-v-on-accent:#fff;--ono-v-dialog-border-width:1px;--ono-v-dialog-radius:12px;--ono-v-dialog-max-width:960px;--ono-v-dialog-row-padding:16px;--ono-v-dialog-padding:12px;--ono-v-dialog-notch-height:42px}.dark{--ono-v-bg:#161b22;--ono-v-surface:#0d1117;--ono-v-surface-muted:#0f141b;--ono-v-border:#30363d99;--ono-v-text:#c9d1d9;--ono-v-text-muted:#8b949e;--ono-v-link:#ff6a52;--ono-v-muted-on-surface:#8b949e;--ono-v-hover-overlay:#f0f6fc0f;--ono-v-on-accent:#fff;--ono-v-success:#2ea043;--ono-v-success-bg:#2ea04333;--ono-v-neutral:#6e7681;--ono-v-neutral-bg:#6e768140;--ono-v-chip-bg:#6e768133;--ono-v-chip-text:var(--ono-v-text)}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (min-width:576px){:host{--ono-v-dialog-max-width:540px}}@media (min-width:768px){:host{--ono-v-dialog-max-width:720px}}@media (min-width:992px){:host{--ono-v-dialog-max-width:960px}}button:focus-visible,[role=tab]:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,[data-open-in-editor]:focus-visible,.js-clipboard:focus-visible{outline:2px solid var(--ono-v-red-orange);outline-offset:2px}.lucide{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.dui{width:1rem;height:1rem;-webkit-mask-image:var(--icon);-webkit-mask-position:50%;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-image:var(--icon);-webkit-mask-image:var(--icon);mask-image:var(--icon);background-color:currentColor;display:inline-block;-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.dui.hidden{display:none!important}.shiki{max-width:100%;max-height:300px;padding-bottom:calc(var(--spacing)*4);overflow-wrap:break-word;overflow:auto}.shiki pre{max-width:100%;overflow:auto}.dark .shiki,.dark .shiki span{color:var(--shiki-dark)!important;background-color:var(--shiki-dark-bg)!important;font-style:var(--shiki-dark-font-style)!important;font-weight:var(--shiki-dark-font-weight)!important;-webkit-text-decoration:var(--shiki-dark-text-decoration)!important;-webkit-text-decoration:var(--shiki-dark-text-decoration)!important;text-decoration:var(--shiki-dark-text-decoration)!important}.shiki.has-diff .diff{position:relative}.shiki.has-diff .diff.add span{background-color:#00c75826}@supports (color:color-mix(in lab, red, red)){.shiki.has-diff .diff.add span{background-color:color-mix(in oklab,var(--color-green-500)15%,transparent)}}.shiki.has-diff .diff.remove span{background-color:#fb2c3626}@supports (color:color-mix(in lab, red, red)){.shiki.has-diff .diff.remove span{background-color:color-mix(in oklab,var(--color-red-500)15%,transparent)}}.shiki.has-diff .diff.add:before{pointer-events:none;left:calc(var(--spacing)*3);margin-top:calc(var(--spacing)*.5);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--color-green-500);-webkit-user-select:none;user-select:none;content:"+";position:absolute}.shiki.has-diff .diff.remove:before{pointer-events:none;left:calc(var(--spacing)*3);margin-top:calc(var(--spacing)*.5);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--color-red-500);-webkit-user-select:none;user-select:none;content:"−";position:absolute}.dark .shiki.has-diff .diff.add{background-color:#00c75833!important}@supports (color:color-mix(in lab, red, red)){.dark .shiki.has-diff .diff.add{background-color:color-mix(in oklab,var(--color-green-500)20%,transparent)!important}}.dark .shiki.has-diff .diff.remove{background-color:#fb2c3633!important}@supports (color:color-mix(in lab, red, red)){.dark .shiki.has-diff .diff.remove{background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)!important}}.dark .shiki.has-diff .diff.add:before{color:var(--color-green-400)}.dark .shiki.has-diff .diff.remove:before{color:var(--color-red-400)}.dark [type=checkbox]:checked,.dark [type=radio]:checked{background-color:currentColor}.v-o-skeleton{background:linear-gradient(90deg,#00000014 25%,#0000 50%,#00000014 75%) 0 0/200% 100%}.dark .v-o-skeleton{background:linear-gradient(90deg,#ffffff1a 25%,#0000 50%,#ffffff1a 75%)}#__v_o__stacktrace summary svg{transition:transform .2s}#__v_o__stacktrace[open] summary svg{transform:rotate(90deg)}:has(#__v_o__root){overflow:hidden}#__v_o__root{scrollbar-width:thin;scrollbar-color:var(--ono-v-border)transparent}#__v_o__root::-webkit-scrollbar{width:8px;height:8px}#__v_o__root::-webkit-scrollbar-track{background:var(--ono-v-surface-muted);border-radius:4px}#__v_o__root::-webkit-scrollbar-thumb{background:var(--ono-v-border);border:1px solid var(--ono-v-surface-muted);border-radius:4px}#__v_o__root::-webkit-scrollbar-thumb:hover{background:var(--ono-v-neutral)}#__v_o__root::-webkit-scrollbar-thumb:active{background:var(--ono-v-link)}#__v_o__root::-webkit-scrollbar-corner{background:var(--ono-v-surface-muted)}.dark #__v_o__root{scrollbar-color:#6e768199 transparent}.dark #__v_o__root::-webkit-scrollbar-track{background:#0f141bcc}.dark #__v_o__root::-webkit-scrollbar-thumb{background:#6e768199;border-color:#0f141bcc}.dark #__v_o__root::-webkit-scrollbar-thumb:hover{background:#6e768199}.dark #__v_o__root::-webkit-scrollbar-thumb:active{background:var(--ono-v-red-orange)}.dark #__v_o__root::-webkit-scrollbar-corner{background:#0f141bcc}#__v_o__root{pointer-events:auto}#__v_o__root.scrolling-history{-webkit-user-select:none;user-select:none;cursor:grab}#__v_o__root.scrolling-history:active{cursor:grabbing}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`;const tr=`/* eslint-disable no-bitwise */
63
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ie(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:n,tokens:r}){let i=this.parser.parseInline(r),o=qt(e);if(o===null)return i;e=o;let s='<a href="'+e+'"';return n&&(s+=' title="'+ie(n)+'"'),s+=">"+i+"</a>",s}image({href:e,title:n,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let o=qt(e);if(o===null)return ie(r);e=o;let s=`<img src="${e}" alt="${ie(r)}"`;return n&&(s+=` title="${ie(n)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ie(e.text)}},pn=class{static{b(this,"M")}static{D(this,"L")}strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ge=class Vt{static{b(this,"O")}static{D(this,"l")}options;renderer;textRenderer;constructor(e){this.options=e||Re,this.options.renderer=this.options.renderer||new xt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new pn}static parse(e,n){return new Vt(n).parse(e)}static parseInline(e,n){return new Vt(n).parseInline(e)}parse(e){this.renderer.parser=this;let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let s=i,a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=a||"";continue}}let o=i;switch(o.type){case"space":{n+=this.renderer.space(o);break}case"hr":{n+=this.renderer.hr(o);break}case"heading":{n+=this.renderer.heading(o);break}case"code":{n+=this.renderer.code(o);break}case"table":{n+=this.renderer.table(o);break}case"blockquote":{n+=this.renderer.blockquote(o);break}case"list":{n+=this.renderer.list(o);break}case"checkbox":{n+=this.renderer.checkbox(o);break}case"html":{n+=this.renderer.html(o);break}case"def":{n+=this.renderer.def(o);break}case"paragraph":{n+=this.renderer.paragraph(o);break}case"text":{n+=this.renderer.text(o);break}default:{let s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(e,n=this.renderer){this.renderer.parser=this;let r="";for(let i=0;i<e.length;i++){let o=e[i];if(this.options.extensions?.renderers?.[o.type]){let a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=a||"";continue}}let s=o;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"checkbox":{r+=n.checkbox(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}},nt=class{static{b(this,"A")}static{D(this,"P")}options;block;constructor(e){this.options=e||Re}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?he.lex:he.lexInline}provideParser(e=this.block){return e?ge.parse:ge.parseInline}},Bs=class{static{b(this,"xe")}static{D(this,"D")}defaults=Lt();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ge;Renderer=xt;TextRenderer=pn;Lexer=he;Tokenizer=yt;Hooks=nt;constructor(...e){this.use(...e)}walkTokens(e,n){let r=[];for(let i of e)switch(r=r.concat(n.call(this,i)),i.type){case"table":{let o=i;for(let s of o.header)r=r.concat(this.walkTokens(s.tokens,n));for(let s of o.rows)for(let a of s)r=r.concat(this.walkTokens(a.tokens,n));break}case"list":{let o=i;r=r.concat(this.walkTokens(o.items,n));break}default:{let o=i;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(s=>{let a=o[s].flat(1/0);r=r.concat(this.walkTokens(a,n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...e){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let s=n.renderers[o.name];s?n.renderers[o.name]=function(...a){let c=o.renderer.apply(this,a);return c===!1&&(c=s.apply(this,a)),c}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=n[o.level];s?s.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),i.extensions=n),r.renderer){let o=this.defaults.renderer||new xt(this.defaults);for(let s in r.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let a=s,c=r.renderer[a],l=o[a];o[a]=(...d)=>{let p=c.apply(o,d);return p===!1&&(p=l.apply(o,d)),p||""}}i.renderer=o}if(r.tokenizer){let o=this.defaults.tokenizer||new yt(this.defaults);for(let s in r.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,c=r.tokenizer[a],l=o[a];o[a]=(...d)=>{let p=c.apply(o,d);return p===!1&&(p=l.apply(o,d)),p}}i.tokenizer=o}if(r.hooks){let o=this.defaults.hooks||new nt;for(let s in r.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let a=s,c=r.hooks[a],l=o[a];nt.passThroughHooks.has(s)?o[a]=d=>{if(this.defaults.async&&nt.passThroughHooksRespectAsync.has(s))return(async()=>{let h=await c.call(o,d);return l.call(o,h)})();let p=c.call(o,d);return l.call(o,p)}:o[a]=(...d)=>{if(this.defaults.async)return(async()=>{let h=await c.apply(o,d);return h===!1&&(h=await l.apply(o,d)),h})();let p=c.apply(o,d);return p===!1&&(p=l.apply(o,d)),p}}i.hooks=o}if(r.walkTokens){let o=this.defaults.walkTokens,s=r.walkTokens;i.walkTokens=function(a){let c=[];return c.push(s.call(this,a)),o&&(c=c.concat(o.call(this,a))),c}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,n){return he.lex(e,n??this.defaults)}parser(e,n){return ge.parse(e,n??this.defaults)}parseMarkdown(e){return(n,r)=>{let i={...r},o={...this.defaults,...i},s=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let a=o.hooks?await o.hooks.preprocess(n):n,c=await(o.hooks?await o.hooks.provideLexer(e):e?he.lex:he.lexInline)(a,o),l=o.hooks?await o.hooks.processAllTokens(c):c;o.walkTokens&&await Promise.all(this.walkTokens(l,o.walkTokens));let d=await(o.hooks?await o.hooks.provideParser(e):e?ge.parse:ge.parseInline)(l,o);return o.hooks?await o.hooks.postprocess(d):d})().catch(s);try{o.hooks&&(n=o.hooks.preprocess(n));let a=(o.hooks?o.hooks.provideLexer(e):e?he.lex:he.lexInline)(n,o);o.hooks&&(a=o.hooks.processAllTokens(a)),o.walkTokens&&this.walkTokens(a,o.walkTokens);let c=(o.hooks?o.hooks.provideParser(e):e?ge.parse:ge.parseInline)(a,o);return o.hooks&&(c=o.hooks.postprocess(c)),c}catch(a){return s(a)}}}onError(e,n){return r=>{if(r.message+=`
64
+ Please report this to https://github.com/markedjs/marked.`,e){let i="<p>An error occurred:</p><pre>"+ie(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}},Pe=new Bs;function q(t,e){return Pe.parse(t,e)}b(q,"d$b");D(q,"g");q.options=q.setOptions=function(t){return Pe.setOptions(t),q.defaults=Pe.defaults,rn(q.defaults),q};q.getDefaults=Lt;q.defaults=Re;q.use=function(...t){return Pe.use(...t),q.defaults=Pe.defaults,rn(q.defaults),q};q.walkTokens=function(t,e){return Pe.walkTokens(t,e)};q.parseInline=Pe.parseInline;q.Parser=ge;q.parser=ge.parse;q.Renderer=xt;q.TextRenderer=pn;q.Lexer=he;q.lexer=he.lex;q.Tokenizer=yt;q.Hooks=nt;q.parse=q;var Qn=q,js=Object.defineProperty,Os=b((t,e)=>js(t,"name",{value:e,configurable:!0}),"r$3");const Hs=["cjs","mjs"],qs=["mdoc"],Ue=Os(t=>{const e=(t.split("?")[0]??t).split(".").pop()?.toLowerCase();if(!e||Hs.includes(e))return"javascript";if(qs.includes(e))return"markdown";switch(e){case"js":case"cjs":case"mjs":return"javascript";case"json":return"json";case"json5":return"json5";case"jsonc":return"jsonc";case"jsx":return"jsx";case"sql":return"sql";case"ts":case"cts":case"mts":return"typescript";case"tsx":return"tsx";case"xml":return"xml";case"md":return"markdown";case"mdx":return"mdx";case"svelte":return"svelte";case"vue":return"vue";case"html":return"html";case"css":return"css";case"scss":return"scss";case"less":return"less";case"sass":return"sass";case"stylus":return"stylus";case"styl":return"styl";case"txt":return"text";default:return"javascript"}},"findLanguageBasedOnExtension"),Ns=500,jr="visulima:vite-overlay:error",Us="visulima-vite-overlay",Or="Error",Gs="Runtime error",Jn="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-chevron-left%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22m15%2018-6-6%206-6%22%20%2F%3E%20%3C%2Fsvg%3E",gt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-chevron-right%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22m9%2018%206-6-6-6%22%20%2F%3E%20%3C%2Fsvg%3E",Kn="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-clock%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%20%3Cpath%20d%3D%22M12%206v6l4%202%22%20%2F%3E%20%3C%2Fsvg%3E",er="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-copy%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Crect%20width%3D%2214%22%20height%3D%2214%22%20x%3D%228%22%20y%3D%228%22%20rx%3D%222%22%20ry%3D%222%22%20%2F%3E%20%3Cpath%20d%3D%22M4%2016c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2h10c1.1%200%202%20.9%202%202%22%20%2F%3E%20%3C%2Fsvg%3E",tr="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-info%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2016v-4%22%20%2F%3E%20%3Cpath%20d%3D%22M12%208h.01%22%20%2F%3E%20%3C%2Fsvg%3E",nr="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-moon-star%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%205h4%22%20%2F%3E%20%3Cpath%20d%3D%22M20%203v4%22%20%2F%3E%20%3Cpath%20d%3D%22M20.985%2012.486a9%209%200%201%201-9.473-9.472c.405-.022.617.46.402.803a6%206%200%200%200%208.268%208.268c.344-.215.825-.004.803.401%22%20%2F%3E%20%3C%2Fsvg%3E",rr="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-sun%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%20%2F%3E%20%3Cpath%20d%3D%22M12%202v2%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2020v2%22%20%2F%3E%20%3Cpath%20d%3D%22m4.93%204.93%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m17.66%2017.66%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22M2%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22M20%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22m6.34%2017.66-1.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m19.07%204.93-1.41%201.41%22%20%2F%3E%20%3C%2Fsvg%3E",kt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-x%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%206%206%2018%22%20%2F%3E%20%3Cpath%20d%3D%22m6%206%2012%2012%22%20%2F%3E%20%3C%2Fsvg%3E";var Zt=(t=>(t.appcode="AppCode",t["android-studio"]="Android Studio",t.atom="Atom",t["atom-beta"]="Atom Beta",t.brackets="Brackets",t.clion="CLion",t.code="Visual Studio Code",t["code-insiders"]="Visual Studio Code Insiders",t.codium="VSCodium",t.cursor="Cursor",t.emacs="GNU Emacs",t.emacsforosx="GNU Emacs for Mac OS X",t.intellij="IntelliJ IDEA",t.idea="IntelliJ IDEA",t.nano="GNU nano",t.neovim="NeoVim",t["notepad++"]="Notepad++",t.phpstorm="PhpStorm",t.pycharm="PyCharm",t.rider="Rider",t.rubymine="RubyMine",t.sublime="SublimeText",t.textmate="TextMate",t.vim="Vim",t.visualstudio="Visual Studio",t.vscode="Visual Studio Code",t.vscodium="VSCodium",t.webstorm="WebStorm",t.xcode="Xcode",t.zed="Zed",t))(Zt||{}),Ws=`/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
65
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-outline-style:solid;--num:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-600:oklch(60.9% .126 221.723);--color-blue-50:oklch(97% .014 254.604);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}body,:host{color:var(--ono-v-text);font-feature-settings:"kern" 1;letter-spacing:-.01em;-webkit-font-smoothing:antialiased;box-sizing:border-box;background-color:#0000;font-family:Space Grotesk,system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.5}pre,code{font-feature-settings:"kern" 1, "zero" 1;font-family:Space Mono,ui-monospace,Cascadia Code,monospace}a{color:var(--ono-v-link)}a:hover{text-decoration:underline}::selection{background:var(--ono-v-primary)}@supports (color:color-mix(in lab, red, red)){::selection{background:color-mix(in srgb, var(--ono-v-primary) 15%, transparent)}}kbd{background-color:var(--ono-v-chip-bg);color:var(--ono-v-chip-text);border:1px solid var(--ono-v-border);border-radius:0;padding:.125rem .375rem;font-family:inherit;font-size:.75rem}hr{border-color:var(--ono-v-border)}input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([multiple]),textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:oklch(55.1% .027 264.364);border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is(input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([multiple]),textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);border-color:oklch(54.6% .245 262.881);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-date-and-time-value{text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{-webkit-print-color-adjust:exact;print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}select:where([multiple]),select:where([size]:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}input:where([type=checkbox]),input:where([type=radio]){appearance:none;-webkit-print-color-adjust:exact;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:oklch(54.6% .245 262.881);--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:oklch(55.1% .027 264.364);flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}input:where([type=checkbox]){border-radius:0}input:where([type=radio]){border-radius:100%}input:where([type=checkbox]):focus,input:where([type=radio]):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);outline:2px solid #0000}input:where([type=checkbox]):checked,input:where([type=radio]):checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}input:where([type=checkbox]):checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){input:where([type=checkbox]):checked{appearance:auto}}input:where([type=radio]):checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){input:where([type=radio]):checked{appearance:auto}}input:where([type=checkbox]):checked:hover,input:where([type=checkbox]):checked:focus,input:where([type=radio]):checked:hover,input:where([type=radio]):checked:focus{background-color:currentColor;border-color:#0000}input:where([type=checkbox]):indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media (forced-colors:active){input:where([type=checkbox]):indeterminate{appearance:auto}}input:where([type=checkbox]):indeterminate:hover,input:where([type=checkbox]):indeterminate:focus{background-color:currentColor;border-color:#0000}input:where([type=file]){background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}input:where([type=file]):focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.top-4{top:calc(var(--spacing) * 4)}.right-6{right:calc(var(--spacing) * 6)}.left-1\\/2{left:50%}.-z-1{z-index:calc(1 * -1)}.z-1{z-index:1}.z-10{z-index:10}.z-2147483646,.z-\\[2147483646\\]{z-index:2147483646}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-1{margin:calc(var(--spacing) * 1)}.mx-auto{margin-inline:auto}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.-mt-3{margin-top:calc(var(--spacing) * -3)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mb-0{margin-bottom:calc(var(--spacing) * 0)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.ml-1{margin-left:calc(var(--spacing) * 1)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.h-5{height:calc(var(--spacing) * 5)}.h-10{height:calc(var(--spacing) * 10)}.h-\\[40vmin\\]{height:40vmin}.max-h-50{max-height:calc(var(--spacing) * 50)}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[160px\\]{max-height:160px}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-screen{min-height:100vh}.w-7{width:calc(var(--spacing) * 7)}.w-44{width:calc(var(--spacing) * 44)}.w-\\[calc\\(100\\%-24px\\)\\]{width:calc(100% - 24px)}.w-full{width:100%}.max-w-\\(--ono-v-dialog-max-width\\){max-width:var(--ono-v-dialog-max-width)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-8{min-width:calc(var(--spacing) * 8)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-\\[spin_20s_linear_infinite\\]{animation:20s linear infinite spin}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-\\(--ono-v-border\\){border-color:var(--ono-v-border)}.bg-\\(--ono-v-chip-bg\\){background-color:var(--ono-v-chip-bg)}.bg-\\(--ono-v-red-orange\\){background-color:var(--ono-v-red-orange)}.bg-\\(--ono-v-success-bg\\){background-color:var(--ono-v-success-bg)}.bg-\\(--ono-v-surface\\){background-color:var(--ono-v-surface)}.bg-\\(--ono-v-surface-muted\\){background-color:var(--ono-v-surface-muted)}.bg-\\[\\#282c34\\]{background-color:#282c34}.bg-\\[var\\(--ono-v-surface-muted\\)\\]{background-color:var(--ono-v-surface-muted)}.bg-black\\/65{background-color:#000000a6}@supports (color:color-mix(in lab, red, red)){.bg-black\\/65{background-color:color-mix(in oklab, var(--color-black) 65%, transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.pe-6{padding-inline-end:calc(var(--spacing) * 6)}.pt-\\[8vh\\]{padding-top:8vh}.pr-1{padding-right:calc(var(--spacing) * 1)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[calc\\(10px\\+2vmin\\)\\]{font-size:calc(10px + 2vmin)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-none{--tw-leading:1;line-height:1}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\(--ono-v-red-orange\\){color:var(--ono-v-red-orange)}.text-\\(--ono-v-text\\){color:var(--ono-v-text)}.text-\\(--ono-v-text-muted\\){color:var(--ono-v-text-muted)}.text-\\[\\#61dafb\\]{color:#61dafb}.text-\\[var\\(--ono-v-red-orange\\)\\]{color:var(--ono-v-red-orange)}.text-\\[var\\(--ono-v-text\\)\\]{color:var(--ono-v-text)}.text-\\[var\\(--ono-v-text-muted\\)\\]{color:var(--ono-v-text-muted)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.\\[vite\\:legacy\\]{vite:legacy}.\\[vite\\:react-babel\\]{vite:react-babel}.\\[vite\\:vue\\]{vite:vue}.hover\\:bg-\\(--ono-v-hover-overlay\\):hover{background-color:var(--ono-v-hover-overlay)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\\:text-\\(--ono-v-text\\):hover{color:var(--ono-v-text)}.hover\\:text-\\[var\\(--ono-v-text-muted\\)\\]:hover{color:var(--ono-v-text-muted)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-90:hover{opacity:.9}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-\\(--ono-v-primary\\):focus{--tw-ring-color:var(--ono-v-primary)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-\\(--ono-v-text\\):focus-visible{outline-color:var(--ono-v-text)}.active\\:opacity-80:active{opacity:.8}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}@media (min-width:40rem){.sm\\:flex{display:flex}}@media (min-width:48rem){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.dark\\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\\:prose-invert:where(.dark,.dark *){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}}:host{--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-space-x-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial:;--brand-accent:#d71921;--brand-white:#fff;--brand-bg:#f5f5f5;--brand-border-visible:#ccc;--brand-text-secondary:#666;--brand-surface-dark:#111;--brand-black:#000;--color-background:#f5f5f5;--color-foreground:#1a1a1a;--color-card:#fff;--color-accent:#f0f0f0;--color-muted:#e8e8e8;--color-muted-foreground:#666;--color-primary:#d71921;--color-primary-foreground:#fff;--color-border:#e8e8e8;--color-ring:#ccc;--color-destructive:#d71921;--color-destructive-foreground:#fff;--color-success:#4a9e5c;--color-success-foreground:#4a9e5c;--color-warning:#d4a843;--color-info:#666;--ono-v-bg:var(--color-background);--ono-v-surface:var(--color-card);--ono-v-surface-muted:var(--color-accent);--ono-v-border:var(--color-border);--ono-v-text:var(--color-foreground);--ono-v-text-muted:var(--color-muted-foreground);--ono-v-primary:var(--color-primary);--ono-v-red-orange:var(--color-destructive);--ono-v-link:var(--color-foreground);--ono-v-chip-bg:var(--color-muted);--ono-v-chip-text:var(--color-foreground);--ono-v-hover-overlay:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){:host{--ono-v-hover-overlay:color-mix(in srgb, var(--color-foreground) 4%, transparent)}}:host{--ono-v-on-accent:var(--color-primary-foreground);--ono-v-neutral:var(--color-muted-foreground);--ono-v-neutral-bg:var(--color-muted);--ono-v-success:var(--color-success);--ono-v-success-bg:var(--color-success)}@supports (color:color-mix(in lab, red, red)){:host{--ono-v-success-bg:color-mix(in srgb, var(--color-success) 12%, transparent)}}.dark{--color-background:#000;--color-foreground:#e8e8e8;--color-card:#111;--color-accent:#1a1a1a;--color-muted:#222;--color-muted-foreground:#999;--color-primary:#d71921;--color-primary-foreground:#fff;--color-border:#222;--color-ring:#333;--color-destructive:#d71921;--color-destructive-foreground:#fff;--color-success:#4a9e5c;--color-success-foreground:#4a9e5c;--color-warning:#d4a843;--color-info:#999;--ono-v-bg:var(--color-background);--ono-v-surface:var(--color-card);--ono-v-surface-muted:var(--color-accent);--ono-v-border:var(--color-border);--ono-v-text:var(--color-foreground);--ono-v-text-muted:var(--color-muted-foreground);--ono-v-primary:var(--color-primary);--ono-v-red-orange:var(--color-destructive);--ono-v-link:var(--color-foreground);--ono-v-chip-bg:var(--color-muted);--ono-v-chip-text:var(--color-foreground);--ono-v-hover-overlay:#ffffff0d;--ono-v-on-accent:var(--color-primary-foreground);--ono-v-neutral:var(--color-muted-foreground);--ono-v-neutral-bg:var(--color-muted);--ono-v-success:var(--color-success);--ono-v-success-bg:var(--color-success)}@supports (color:color-mix(in lab, red, red)){.dark{--ono-v-success-bg:color-mix(in srgb, var(--color-success) 12%, transparent)}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (min-width:576px){:host{--ono-v-dialog-max-width:540px}}@media (min-width:768px){:host{--ono-v-dialog-max-width:720px}}@media (min-width:992px){:host{--ono-v-dialog-max-width:960px}}:host{--ono-v-dialog-max-width:960px}button:focus-visible,[role=tab]:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,[data-open-in-editor]:focus-visible,.js-clipboard:focus-visible{outline:1px solid var(--ono-v-text);outline-offset:2px}.v-o-label{text-transform:uppercase;letter-spacing:.08em;font-family:Space Mono,ui-monospace,monospace;font-weight:700}.v-o-loading-text{text-transform:uppercase;letter-spacing:.06em;color:var(--ono-v-text-muted);font-family:Space Mono,ui-monospace,monospace;font-size:12px}.dui{width:1rem;height:1rem;-webkit-mask-image:var(--icon);-webkit-mask-position:50%;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-image:var(--icon);-webkit-mask-image:var(--icon);mask-image:var(--icon);background-color:currentColor;flex-shrink:0;display:inline-block;-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.dui.hidden{display:none!important}.shiki{max-width:100%;max-height:300px;padding-bottom:calc(var(--spacing) * 4);overflow-wrap:break-word;overflow:auto}.shiki pre{max-width:100%;overflow:auto}.dark .shiki,.dark .shiki span{color:var(--shiki-dark)!important;background-color:var(--shiki-dark-bg)!important;font-style:var(--shiki-dark-font-style)!important;font-weight:var(--shiki-dark-font-weight)!important;-webkit-text-decoration:var(--shiki-dark-text-decoration)!important;-webkit-text-decoration:var(--shiki-dark-text-decoration)!important;text-decoration:var(--shiki-dark-text-decoration)!important}.shiki.has-diff .diff{position:relative}.shiki.has-diff .diff.add span{background-color:#00c75826}@supports (color:color-mix(in lab, red, red)){.shiki.has-diff .diff.add span{background-color:color-mix(in oklab, var(--color-green-500) 15%, transparent)}}.shiki.has-diff .diff.remove span{background-color:#fb2c3626}@supports (color:color-mix(in lab, red, red)){.shiki.has-diff .diff.remove span{background-color:color-mix(in oklab, var(--color-red-500) 15%, transparent)}}.shiki.has-diff .diff.add:before{pointer-events:none;left:calc(var(--spacing) * 3);margin-top:calc(var(--spacing) * .5);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--color-green-500);-webkit-user-select:none;user-select:none;content:"+";position:absolute}.shiki.has-diff .diff.remove:before{pointer-events:none;left:calc(var(--spacing) * 3);margin-top:calc(var(--spacing) * .5);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--color-red-500);-webkit-user-select:none;user-select:none;content:"−";position:absolute}.dark .shiki.has-diff .diff.add{background-color:#00c75833!important}@supports (color:color-mix(in lab, red, red)){.dark .shiki.has-diff .diff.add{background-color:color-mix(in oklab, var(--color-green-500) 20%, transparent)!important}}.dark .shiki.has-diff .diff.remove{background-color:#fb2c3633!important}@supports (color:color-mix(in lab, red, red)){.dark .shiki.has-diff .diff.remove{background-color:color-mix(in oklab, var(--color-red-500) 20%, transparent)!important}}.dark .shiki.has-diff .diff.add:before{color:var(--color-green-400)}.dark .shiki.has-diff .diff.remove:before{color:var(--color-red-400)}.dark [type=checkbox]:checked,.dark [type=radio]:checked{background-color:currentColor}select#editor-selector{background-color:var(--ono-v-surface);color:var(--ono-v-text);border-color:var(--ono-v-border);color-scheme:light}.dark select#editor-selector{color-scheme:dark;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23999999' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")}#__v_o__stacktrace summary .dui{transition:transform .15s ease-out}#__v_o__stacktrace[open] summary .dui{transform:rotate(90deg)}:has(#__v_o__root){overflow:hidden}#__v_o__root:not(.hidden)[data-error-type=server]~#__v_o__balloon_group{display:none!important}.devtools-content-scroll{scrollbar-width:thin;scrollbar-color:var(--color-border) transparent}.devtools-content-scroll::-webkit-scrollbar{width:5px;height:5px}.devtools-content-scroll::-webkit-scrollbar-track{background:0 0}.devtools-content-scroll::-webkit-scrollbar-thumb{background:var(--color-border)}.devtools-content-scroll::-webkit-scrollbar-thumb:hover{background:var(--color-muted-foreground)}#__v_o__root.scrolling-history{-webkit-user-select:none;user-select:none;cursor:grab}#__v_o__root.scrolling-history:active{cursor:grabbing}@property --num{syntax:"<integer>";inherits:false;initial-value:0}#__v_o__balloon_count{counter-reset:num var(--num);font-variant-numeric:tabular-nums;color:#fff;font-size:13px;font-weight:700;line-height:1}#__v_o__balloon_count:after{content:counter(num)}#__v_o__balloon_count.animate-count-up{animation:.2s ease-out forwards counter-animate}@keyframes counter-animate{0%{--num:var(--num-start)}to{--num:var(--num-end)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}`;const or=`/* eslint-disable no-bitwise */
61
66
  /* eslint-disable class-methods-use-this */
62
67
  /* eslint-disable sonarjs/cognitive-complexity */
63
68
  /* eslint-disable no-param-reassign */
@@ -66,10 +71,20 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error
66
71
  /* eslint-disable no-underscore-dangle */
67
72
  /* eslint-disable func-names */
68
73
  /* eslint-disable no-plusplus */
74
+ /* eslint-disable unused-imports/no-unused-vars */
75
+ /* eslint-disable sonarjs/no-nested-functions */
76
+ /* eslint-disable no-console */
69
77
 
70
78
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
71
79
  // @ts-nocheck
72
80
 
81
+ // Module-scope static regexes
82
+ const RE_LEADING_SLASH = /^\\//;
83
+ const RE_HTTP_LINK = /^https?:\\/\\//i;
84
+ const RE_FS_PREFIX = /^\\/@fs\\//;
85
+ // eslint-disable-next-line sonarjs/slow-regex, regexp/no-super-linear-backtracking
86
+ const RE_STACK_AT_FRAME = /\\s*at\\s+(?:(.+?)\\s+\\()?(.*?):(\\d+):(\\d+)\\)?/;
87
+
73
88
  /**
74
89
  * Custom HTML element that displays error overlays in the browser.
75
90
  * Provides interactive error display with theme switching, code frames, and navigation.
@@ -91,8 +106,6 @@ class ErrorOverlay extends HTMLElement {
91
106
 
92
107
  static SCROLL_PADDING = 8;
93
108
 
94
- static WHEEL_TIMEOUT = 100;
95
-
96
109
  // Cached DOM elements for performance
97
110
  __elements = {};
98
111
 
@@ -170,6 +183,7 @@ class ErrorOverlay extends HTMLElement {
170
183
  errors: error.errors,
171
184
  errorType: error.errorType || "server",
172
185
  rootPath: error.rootPath || "",
186
+ solution: error.solution,
173
187
  };
174
188
 
175
189
  this.__v_oPayload = payload;
@@ -179,11 +193,12 @@ class ErrorOverlay extends HTMLElement {
179
193
  this._cacheElements();
180
194
 
181
195
  this._initializeThemeToggle();
182
- this._initializeBalloon(this.__v_oPayload.errors.length);
196
+ this._initializeBalloon();
183
197
  this._restoreBalloonState();
184
198
  this._initializeCopyError();
185
199
  this._initializePagination();
186
200
  this._initializeHistory();
201
+ this._initializeFocusTrap();
187
202
 
188
203
  if (this.__v_oPayload.solution) {
189
204
  this._injectSolution(this.__v_oPayload.solution);
@@ -295,8 +310,11 @@ class ErrorOverlay extends HTMLElement {
295
310
 
296
311
  // Limit history to prevent memory issues
297
312
  if (this.__v_oHistory.length > ErrorOverlay.HISTORY_LIMIT) {
298
- this.__v_oHistory = this.__v_oHistory.slice(0, ErrorOverlay.HISTORY_LIMIT);
313
+ this.__v_oHistory.length = ErrorOverlay.HISTORY_LIMIT;
299
314
  }
315
+
316
+ // Update balloon count with animation
317
+ this._updateBalloonCount(true);
300
318
  }
301
319
 
302
320
  /**
@@ -304,12 +322,13 @@ class ErrorOverlay extends HTMLElement {
304
322
  * @private
305
323
  * @param {Element} element - The element to add the listener to
306
324
  * @param {string} event - The event type
307
- * @param {Function} handler - The event handler
325
+ * @param {(event: Event) => void} handler - The event handler
308
326
  * @param {object} options - Event listener options
309
327
  */
310
328
  _addEventListener(element, event, handler, options = {}) {
311
- if (!element)
329
+ if (!element) {
312
330
  return;
331
+ }
313
332
 
314
333
  element.addEventListener(event, handler, options);
315
334
  const key = \`\${element.id || element.className || "unknown"}_\${event}\`;
@@ -337,7 +356,7 @@ class ErrorOverlay extends HTMLElement {
337
356
  balloonCount: root.querySelector("#__v_o__balloon_count"),
338
357
  balloonGroup: root.querySelector("#__v_o__balloon_group"),
339
358
  balloonText: root.querySelector("#__v_o__balloon_text"),
340
- fileButton: root.querySelector("button[class*=\\"underline\\"]"),
359
+ fileButton: root.querySelector('button[class*="underline"]'),
341
360
  heading: root.querySelector("#__v_o__heading"),
342
361
  historyIndicator: root.querySelector("#__v_o__history_indicator"),
343
362
  historyLayerDepth: root.querySelector("#__v_o__history_layer_depth"),
@@ -394,13 +413,14 @@ class ErrorOverlay extends HTMLElement {
394
413
  * @returns {string} Relative path
395
414
  */
396
415
  _getRelativePath(filePath) {
397
- if (!filePath)
416
+ if (!filePath) {
398
417
  return "";
418
+ }
399
419
 
400
420
  const rootPath = this.__v_oPayload?.rootPath || "";
401
421
 
402
422
  if (rootPath && filePath.startsWith(rootPath)) {
403
- return filePath.slice(rootPath.length).replace(/^\\//, "");
423
+ return filePath.slice(rootPath.length).replace(RE_LEADING_SLASH, "");
404
424
  }
405
425
 
406
426
  return filePath;
@@ -441,33 +461,20 @@ class ErrorOverlay extends HTMLElement {
441
461
  * Initializes the floating balloon button that shows the error count
442
462
  * and toggles the overlay open/close when clicked.
443
463
  * @private
444
- * @param {number} total - The total number of errors to display
445
464
  */
446
- _initializeBalloon(total) {
447
- const { balloon, balloonCount, balloonGroup, balloonText, root } = this.__elements || {};
465
+ _initializeBalloon() {
466
+ const { balloon, balloonGroup, root } = this.__elements || {};
448
467
 
449
- if (!balloonGroup || !balloonCount || !root) {
468
+ if (!balloonGroup || !root) {
450
469
  return;
451
470
  }
452
471
 
453
472
  try {
454
- balloonCount.textContent = total.toString();
455
-
456
- if (balloonText) {
457
- balloonText.textContent = total === 1 ? "Error" : "Errors";
458
- }
473
+ // Initialize with current history count
474
+ this._updateBalloonCount(false);
459
475
 
460
476
  this._restoreBalloonState();
461
477
 
462
- // Show balloon if there are errors and it's not dismissed
463
- if (total > 0 && !this.__v_oBalloonDismissed) {
464
- balloonGroup.classList.add("inline-flex");
465
- balloonGroup.classList.remove("hidden");
466
- } else {
467
- balloonGroup.classList.remove("inline-flex");
468
- balloonGroup.classList.add("hidden");
469
- }
470
-
471
478
  const clickHandler = (event) => {
472
479
  // Don't toggle overlay if clicking the close button
473
480
  if (event.target.closest("#__v_o__balloon_close")) {
@@ -492,10 +499,11 @@ class ErrorOverlay extends HTMLElement {
492
499
  event.preventDefault();
493
500
  event.stopPropagation();
494
501
 
495
- // Hide the balloon and mark as dismissed
502
+ // Hide the balloon and mark as dismissed (persisted across hard reloads)
496
503
  balloonGroup.classList.add("hidden");
497
504
  balloonGroup.classList.remove("inline-flex");
498
505
  this.__v_oBalloonDismissed = true;
506
+ this._saveBalloonState("dismissed", "true");
499
507
  };
500
508
 
501
509
  // Remove existing listener if any
@@ -549,7 +557,7 @@ class ErrorOverlay extends HTMLElement {
549
557
  ? \`\${currentError.originalFilePath}:\${currentError.originalFileLine}:\${currentError.originalFileColumn}\`
550
558
  : "Unknown location",
551
559
  currentError.message || "No error message available",
552
- ...codeFrame ? ["", codeFrame] : [],
560
+ ...(codeFrame ? ["", codeFrame] : []),
553
561
  "",
554
562
  "## Stack Trace",
555
563
  currentError.stack || "No stack trace available",
@@ -591,6 +599,48 @@ class ErrorOverlay extends HTMLElement {
591
599
  });
592
600
  }
593
601
 
602
+ /**
603
+ * Traps keyboard focus within the overlay when it is open (WCAG 2.1 – 2.1.2 No Keyboard Trap).
604
+ * Tab cycles forward through focusable elements; Shift+Tab cycles backward.
605
+ * @private
606
+ */
607
+ _initializeFocusTrap() {
608
+ const FOCUSABLE_SELECTORS =
609
+ 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
610
+
611
+ this._addEventListener(this.root, "keydown", (event) => {
612
+ if (event.key !== "Tab") {
613
+ return;
614
+ }
615
+
616
+ const root = this.__elements?.root;
617
+
618
+ if (!root || root.classList.contains("hidden")) {
619
+ return;
620
+ }
621
+
622
+ const focusable = [...this.root.querySelectorAll(FOCUSABLE_SELECTORS)];
623
+
624
+ if (focusable.length === 0) {
625
+ return;
626
+ }
627
+
628
+ const first = focusable[0];
629
+ const last = focusable.at(-1);
630
+ const active = this.root.activeElement;
631
+
632
+ if (event.shiftKey) {
633
+ if (active === first || !active) {
634
+ event.preventDefault();
635
+ last.focus();
636
+ }
637
+ } else if (active === last || !active) {
638
+ event.preventDefault();
639
+ first.focus();
640
+ }
641
+ });
642
+ }
643
+
594
644
  /**
595
645
  * Initializes the layered error history functionality with Mac Time Machine-like scrolling.
596
646
  * @private
@@ -655,7 +705,7 @@ class ErrorOverlay extends HTMLElement {
655
705
  const column = currentError && currentError.originalFileColumn;
656
706
 
657
707
  if (fullPath) {
658
- const isHttpLink = /^https?:\\/\\//i.test(fullPath);
708
+ const isHttpLink = RE_HTTP_LINK.test(fullPath);
659
709
  let displayPath = fullPath;
660
710
 
661
711
  if (!isHttpLink && this.__v_oPayload.rootPath && fullPath.startsWith(this.__v_oPayload.rootPath)) {
@@ -666,7 +716,10 @@ class ErrorOverlay extends HTMLElement {
666
716
  }
667
717
  }
668
718
 
669
- fileElement.textContent = isHttpLink ? fullPath : \`.\${displayPath}\${line ? \`:\${line}\` : ""}\`;
719
+ const linesSuffix = line ? \`:\${line}\` : "";
720
+
721
+ fileElement.textContent = isHttpLink ? fullPath : \`.\${displayPath}\${linesSuffix}\`;
722
+
670
723
  const editor = localStorage.getItem("__v-o__editor");
671
724
 
672
725
  // Remove any existing event listeners
@@ -680,13 +733,17 @@ class ErrorOverlay extends HTMLElement {
680
733
  if (isHttpLink) {
681
734
  globalThis.open(fullPath, "_blank");
682
735
  } else {
683
- // injected by the hmr plugin when served
684
- // eslint-disable-next-line no-undef
685
- const url = \`\${base}__open-in-editor?file=\${encodeURIComponent(fullPath)}\${
686
- line ? \`&line=\${line}\` : ""
687
- }\${column ? \`&column=\${column}\` : ""}\${editor ? \`&editor=\${editor}\` : ""}\`;
688
-
689
- fetch(url);
736
+ try {
737
+ // injected by the hmr plugin when served
738
+ // eslint-disable-next-line no-undef
739
+ const url = \`\${base}__open-in-editor?file=\${encodeURIComponent(fullPath)}\${
740
+ line ? \`&line=\${line}\` : ""
741
+ }\${column ? \`&column=\${column}\` : ""}\${editor ? \`&editor=\${editor}\` : ""}\`;
742
+
743
+ fetch(url).catch(() => {});
744
+ } catch {
745
+ // base may not be defined outside Vite HMR context
746
+ }
690
747
  }
691
748
  });
692
749
 
@@ -703,8 +760,8 @@ class ErrorOverlay extends HTMLElement {
703
760
  const stackElement = stackHost && stackHost.querySelector("div:last-child");
704
761
 
705
762
  if (stackHost && stackElement) {
706
- const stackText
707
- = mode === "compiled"
763
+ const stackText =
764
+ mode === "compiled"
708
765
  ? String(currentError.compiledStack || this.__v_oPayload.compiledStack || currentError.stack || "")
709
766
  : String(currentError.originalStack || currentError.stack || this.__v_oPayload.originalStack || this.__v_oPayload.stack || "");
710
767
 
@@ -715,20 +772,20 @@ class ErrorOverlay extends HTMLElement {
715
772
  .replaceAll(">", "&gt;");
716
773
 
717
774
  const normalizePath = (path) => {
718
- if (/^https?:\\/\\//i.test(path)) {
775
+ if (RE_HTTP_LINK.test(path)) {
719
776
  const u = new URL(path);
720
777
 
721
778
  path = u.pathname || "";
722
779
  }
723
780
 
724
781
  path = decodeURIComponent(path);
725
- path = String(path || "").replace(/^\\/@fs\\//, "/");
782
+ path = String(path || "").replace(RE_FS_PREFIX, "/");
726
783
 
727
784
  return path;
728
785
  };
729
786
 
730
787
  const fmt = (line) => {
731
- const m = /\\s*at\\s+(?:(.+?)\\s+\\()?(.*?):(\\d+):(\\d+)\\)?/.exec(line);
788
+ const m = RE_STACK_AT_FRAME.exec(line);
732
789
 
733
790
  if (!m) {
734
791
  return \`<div class="frame">\${escape(line)}</div>\`;
@@ -744,7 +801,10 @@ class ErrorOverlay extends HTMLElement {
744
801
 
745
802
  return \`<div class="frame"><span class="muted">at</span> \${functionHtml}<button type="button" class="stack-link text-left underline bg-transparent border-none cursor-pointer text-[var(--ono-v-text)] hover:text-[var(--ono-v-text-muted)]" data-file="\${escape(displayPath)}" data-line="\${ln}" data-column="\${col}">\${escape(display)}</button></div>\`;
746
803
  };
747
- const html = stackText.split("\\n").map(fmt).join("");
804
+ const html = stackText
805
+ .split("\\n")
806
+ .map((l) => fmt(l))
807
+ .join("");
748
808
 
749
809
  stackElement.innerHTML = html;
750
810
  stackElement.querySelectorAll(".stack-link").forEach((button) => {
@@ -764,13 +824,17 @@ class ErrorOverlay extends HTMLElement {
764
824
 
765
825
  const editor = localStorage.getItem("__v-o__editor");
766
826
 
767
- // injected by the hmr plugin when served
768
- // eslint-disable-next-line no-undef
769
- const url = \`\${base}__open-in-editor?file=\${encodeURIComponent(resolved)}\${
770
- line ? \`&line=\${line}\` : ""
771
- }\${column ? \`&column=\${column}\` : ""}\${editor ? \`&editor=\${editor}\` : ""}\`;
827
+ try {
828
+ // injected by the hmr plugin when served
829
+ // eslint-disable-next-line no-undef
830
+ const url = \`\${base}__open-in-editor?file=\${encodeURIComponent(resolved)}\${
831
+ line ? \`&line=\${line}\` : ""
832
+ }\${column ? \`&column=\${column}\` : ""}\${editor ? \`&editor=\${editor}\` : ""}\`;
772
833
 
773
- fetch(url);
834
+ fetch(url).catch(() => {});
835
+ } catch {
836
+ // base may not be defined outside Vite HMR context
837
+ }
774
838
  });
775
839
  });
776
840
  }
@@ -799,8 +863,8 @@ class ErrorOverlay extends HTMLElement {
799
863
  modeSwitch.classList.add("hidden");
800
864
  }
801
865
 
802
- const originalButton = this.root.querySelector("[data-flame-mode=\\"original\\"]");
803
- const compiledButton = this.root.querySelector("[data-flame-mode=\\"compiled\\"]");
866
+ const originalButton = this.root.querySelector('[data-flame-mode="original"]');
867
+ const compiledButton = this.root.querySelector('[data-flame-mode="compiled"]');
804
868
 
805
869
  if (originalButton) {
806
870
  originalButton.style.display = hasOriginal ? "" : "none";
@@ -815,7 +879,7 @@ class ErrorOverlay extends HTMLElement {
815
879
  return;
816
880
  }
817
881
 
818
- let codeFrame = "<div class=\\"no-code-frame font-mono\\">No code frame could be generated.</div>";
882
+ let codeFrame = '<div class="no-code-frame font-mono py-4 px-5">No code frame could be generated.</div>';
819
883
 
820
884
  // Try current error's code frame first
821
885
  if (mode === "compiled" && currentError.compiledCodeFrameContent) {
@@ -862,11 +926,8 @@ class ErrorOverlay extends HTMLElement {
862
926
  renderCode("original");
863
927
  updateRawStack("original");
864
928
 
865
- if (originalButton)
866
- originalButton.classList.add("active");
867
-
868
- if (compiledButton)
869
- compiledButton.classList.remove("active");
929
+ originalButton.classList.add("active");
930
+ compiledButton?.classList.remove("active");
870
931
  });
871
932
  }
872
933
 
@@ -879,11 +940,8 @@ class ErrorOverlay extends HTMLElement {
879
940
  renderCode("compiled");
880
941
  updateRawStack("compiled");
881
942
 
882
- if (compiledButton)
883
- compiledButton.classList.add("active");
884
-
885
- if (originalButton)
886
- originalButton.classList.remove("active");
943
+ compiledButton.classList.add("active");
944
+ originalButton?.classList.remove("active");
887
945
  });
888
946
  }
889
947
  };
@@ -974,39 +1032,32 @@ class ErrorOverlay extends HTMLElement {
974
1032
  _initializeScrollNavigation() {
975
1033
  const rootElement = this.__elements?.root;
976
1034
 
977
- if (!rootElement)
1035
+ if (!rootElement) {
978
1036
  return;
1037
+ }
979
1038
 
980
1039
  const handleWheel = (event) => {
981
1040
  // Only handle scroll events when history is enabled and we have multiple errors
982
- if (!this.__v_oHistoryEnabled || this.__v_oHistory.length <= 1)
1041
+ if (!this.__v_oHistoryEnabled || this.__v_oHistory.length <= 1) {
983
1042
  return;
1043
+ }
984
1044
 
985
1045
  // Prevent default scrolling behavior
986
1046
  event.preventDefault();
987
1047
  event.stopPropagation();
988
1048
 
989
1049
  // Ignore very small scroll movements
990
- if (Math.abs(event.deltaY) < ErrorOverlay.DRAG_THRESHOLD)
1050
+ if (Math.abs(event.deltaY) < ErrorOverlay.DRAG_THRESHOLD) {
991
1051
  return;
1052
+ }
992
1053
 
993
1054
  const scrollDirection = event.deltaY > 0 ? 1 : -1;
994
1055
 
995
1056
  this._navigateHistoryByScroll(scrollDirection);
996
1057
  };
997
1058
 
998
- // Add wheel event listener - attach to the shadow root for better event capture
999
- this._addEventListener(this.root, "wheel", handleWheel, { passive: false });
1000
-
1001
- // Also add to the main overlay element
1059
+ // Single wheel event listener events from children bubble up to rootElement
1002
1060
  this._addEventListener(rootElement, "wheel", handleWheel, { passive: false });
1003
-
1004
- // Also add to the backdrop for better coverage
1005
- const backdrop = this.root.querySelector("#__v_o__backdrop");
1006
-
1007
- if (backdrop) {
1008
- this._addEventListener(backdrop, "wheel", handleWheel, { passive: false });
1009
- }
1010
1061
  }
1011
1062
 
1012
1063
  /**
@@ -1021,8 +1072,8 @@ class ErrorOverlay extends HTMLElement {
1021
1072
  const isDark = currentTheme === "dark";
1022
1073
 
1023
1074
  const rootElement = this.__elements?.root;
1024
- const darkButton = this.root.querySelector("[data-v-o-theme-click-value=\\"dark\\"]");
1025
- const lightButton = this.root.querySelector("[data-v-o-theme-click-value=\\"light\\"]");
1075
+ const darkButton = this.root.querySelector('[data-v-o-theme-click-value="dark"]');
1076
+ const lightButton = this.root.querySelector('[data-v-o-theme-click-value="light"]');
1026
1077
 
1027
1078
  if (isDark) {
1028
1079
  if (darkButton) {
@@ -1035,8 +1086,9 @@ class ErrorOverlay extends HTMLElement {
1035
1086
  lightButton.classList.add("block");
1036
1087
  }
1037
1088
 
1038
- if (rootElement)
1089
+ if (rootElement) {
1039
1090
  rootElement.classList.add("dark");
1091
+ }
1040
1092
  } else {
1041
1093
  if (darkButton) {
1042
1094
  darkButton.classList.remove("hidden");
@@ -1048,24 +1100,28 @@ class ErrorOverlay extends HTMLElement {
1048
1100
  lightButton.classList.remove("block");
1049
1101
  }
1050
1102
 
1051
- if (rootElement)
1103
+ if (rootElement) {
1052
1104
  rootElement.classList.remove("dark");
1105
+ }
1053
1106
  }
1054
1107
 
1055
- if (rootElement)
1108
+ if (rootElement) {
1056
1109
  rootElement.classList.remove("hidden");
1110
+ rootElement.dataset.errorType = this.__v_oPayload.errorType;
1111
+ }
1057
1112
 
1058
1113
  const themeButtons = this.root.querySelectorAll("[data-v-o-theme-click-value]");
1059
1114
 
1060
1115
  themeButtons.forEach((button) => {
1061
- button.addEventListener("click", (event) => {
1116
+ this._addEventListener(button, "click", (event) => {
1062
1117
  event.preventDefault();
1063
1118
 
1064
1119
  const theme = event.currentTarget.dataset.vOThemeClickValue;
1065
1120
 
1066
1121
  if (theme === "dark") {
1067
- if (rootElement)
1122
+ if (rootElement) {
1068
1123
  rootElement.classList.add("dark");
1124
+ }
1069
1125
 
1070
1126
  localStorage.setItem("__v-o__theme", "dark");
1071
1127
 
@@ -1079,8 +1135,9 @@ class ErrorOverlay extends HTMLElement {
1079
1135
  lightButton.classList.add("block");
1080
1136
  }
1081
1137
  } else {
1082
- if (rootElement)
1138
+ if (rootElement) {
1083
1139
  rootElement.classList.remove("dark");
1140
+ }
1084
1141
 
1085
1142
  localStorage.setItem("__v-o__theme", "light");
1086
1143
 
@@ -1155,8 +1212,9 @@ class ErrorOverlay extends HTMLElement {
1155
1212
  };
1156
1213
 
1157
1214
  const handleMouseMove = (event) => {
1158
- if (!isDragging)
1215
+ if (!isDragging) {
1159
1216
  return;
1217
+ }
1160
1218
 
1161
1219
  const viewport = getViewportDimensions();
1162
1220
  const balloonWidth = balloonRect.width;
@@ -1193,8 +1251,9 @@ class ErrorOverlay extends HTMLElement {
1193
1251
  };
1194
1252
 
1195
1253
  const handleMouseUp = () => {
1196
- if (!isDragging)
1254
+ if (!isDragging) {
1197
1255
  return;
1256
+ }
1198
1257
 
1199
1258
  isDragging = false;
1200
1259
  document.removeEventListener("mousemove", handleMouseMove);
@@ -1261,6 +1320,13 @@ class ErrorOverlay extends HTMLElement {
1261
1320
 
1262
1321
  this.__v_oPayload = historyEntry.payload;
1263
1322
 
1323
+ // Update error type attribute for CSS balloon visibility rules
1324
+ const rootElement = this.__elements?.root;
1325
+
1326
+ if (rootElement) {
1327
+ rootElement.dataset.errorType = this.__v_oPayload.errorType || "client";
1328
+ }
1329
+
1264
1330
  // Re-render the main overlay with the current error
1265
1331
  this._updateOverlayWithHistoryError();
1266
1332
 
@@ -1283,9 +1349,18 @@ class ErrorOverlay extends HTMLElement {
1283
1349
  _restoreBalloonState() {
1284
1350
  try {
1285
1351
  const balloonStates = JSON.parse(localStorage.getItem("__v-o__balloon") || "{}");
1286
- const { balloon, root: rootElement } = this.__elements || {};
1352
+ const { balloon, balloonGroup, root: rootElement } = this.__elements || {};
1287
1353
 
1288
1354
  if (balloon && rootElement) {
1355
+ if (balloonStates.dismissed === "true") {
1356
+ this.__v_oBalloonDismissed = true;
1357
+
1358
+ if (balloonGroup) {
1359
+ balloonGroup.classList.add("hidden");
1360
+ balloonGroup.classList.remove("inline-flex");
1361
+ }
1362
+ }
1363
+
1289
1364
  if (balloonStates.overlay === "open") {
1290
1365
  rootElement.classList.remove("hidden");
1291
1366
  } else if (balloonStates.overlay === "closed") {
@@ -1322,13 +1397,6 @@ class ErrorOverlay extends HTMLElement {
1322
1397
  }
1323
1398
  }
1324
1399
 
1325
- /**
1326
- * Saves balloon state and position to localStorage
1327
- * @private
1328
- * @param {string} key - The state key ('overlay' or 'position')
1329
- * @param {string} value - The state value
1330
- */
1331
-
1332
1400
  _saveBalloonState(key, value) {
1333
1401
  try {
1334
1402
  const item = localStorage.getItem("__v-o__balloon");
@@ -1342,6 +1410,13 @@ class ErrorOverlay extends HTMLElement {
1342
1410
  }
1343
1411
  }
1344
1412
 
1413
+ /**
1414
+ * Saves balloon state and position to localStorage
1415
+ * @private
1416
+ * @param {string} key - The state key ('overlay' or 'position')
1417
+ * @param {string} value - The state value
1418
+ */
1419
+
1345
1420
  /**
1346
1421
  * Toggles the history mode on/off.
1347
1422
  * @private
@@ -1352,8 +1427,9 @@ class ErrorOverlay extends HTMLElement {
1352
1427
  const { historyIndicator, historyLayerDepth, historyToggle, root } = this.__elements || {};
1353
1428
 
1354
1429
  if (this.__v_oHistoryEnabled) {
1355
- if (root && typeof root.classList?.add === "function")
1430
+ if (root && typeof root.classList?.add === "function") {
1356
1431
  root.classList.add("scrolling-history");
1432
+ }
1357
1433
 
1358
1434
  if (historyIndicator && typeof historyIndicator.classList?.add === "function") {
1359
1435
  historyIndicator.classList.remove("hidden");
@@ -1383,11 +1459,13 @@ class ErrorOverlay extends HTMLElement {
1383
1459
  // Re-render the main overlay with the newest error
1384
1460
  this._updateOverlayWithHistoryError();
1385
1461
 
1386
- if (root && typeof root.classList?.remove === "function")
1462
+ if (root && typeof root.classList?.remove === "function") {
1387
1463
  root.classList.remove("scrolling-history");
1464
+ }
1388
1465
 
1389
- if (historyIndicator && typeof historyIndicator.classList?.add === "function")
1466
+ if (historyIndicator && typeof historyIndicator.classList?.add === "function") {
1390
1467
  historyIndicator.classList.add("hidden");
1468
+ }
1391
1469
 
1392
1470
  if (historyToggle) {
1393
1471
  historyToggle.style.background = "";
@@ -1407,6 +1485,69 @@ class ErrorOverlay extends HTMLElement {
1407
1485
  }
1408
1486
  }
1409
1487
 
1488
+ /**
1489
+ * Updates the balloon count to show the total number of errors in history.
1490
+ * @private
1491
+ * @param {boolean} animate - Whether to animate the count change
1492
+ */
1493
+ _updateBalloonCount(animate = false) {
1494
+ const { balloonCount, balloonGroup, balloonText } = this.__elements || {};
1495
+
1496
+ if (!balloonCount) {
1497
+ return;
1498
+ }
1499
+
1500
+ const totalErrors = this.__v_oHistory.length;
1501
+ const currentNumber = Number.parseInt(balloonCount.style.getPropertyValue("--num") || "0", 10);
1502
+
1503
+ // Animate if count increased and animation is requested
1504
+ if (animate && totalErrors > currentNumber && currentNumber > 0) {
1505
+ // Set start and end values for animation
1506
+ balloonCount.style.setProperty("--num-start", currentNumber.toString());
1507
+ balloonCount.style.setProperty("--num-end", totalErrors.toString());
1508
+
1509
+ // Remove animation class to reset
1510
+ balloonCount.classList.remove("animate-count-up");
1511
+
1512
+ // Force reflow to ensure animation restarts
1513
+ // eslint-disable-next-line no-void, sonarjs/void-use
1514
+ void balloonCount.offsetWidth;
1515
+
1516
+ // Trigger animation
1517
+ balloonCount.classList.add("animate-count-up");
1518
+
1519
+ // Clean up after animation completes
1520
+ balloonCount.addEventListener(
1521
+ "animationend",
1522
+ () => {
1523
+ balloonCount.style.setProperty("--num", totalErrors.toString());
1524
+ balloonCount.style.removeProperty("--num-start");
1525
+ balloonCount.style.removeProperty("--num-end");
1526
+ balloonCount.classList.remove("animate-count-up");
1527
+ },
1528
+ { once: true },
1529
+ );
1530
+ } else {
1531
+ // No animation, just update the number directly
1532
+ balloonCount.style.setProperty("--num", totalErrors.toString());
1533
+ }
1534
+
1535
+ if (balloonText) {
1536
+ balloonText.textContent = totalErrors === 1 ? "Error" : "Errors";
1537
+ }
1538
+
1539
+ // Show balloon if there are errors and it's not dismissed
1540
+ if (balloonGroup) {
1541
+ if (totalErrors > 0 && !this.__v_oBalloonDismissed) {
1542
+ balloonGroup.classList.add("inline-flex");
1543
+ balloonGroup.classList.remove("hidden");
1544
+ } else {
1545
+ balloonGroup.classList.remove("inline-flex");
1546
+ balloonGroup.classList.add("hidden");
1547
+ }
1548
+ }
1549
+ }
1550
+
1410
1551
  /**
1411
1552
  * Updates the history indicator in the navigation.
1412
1553
  * @private
@@ -1421,8 +1562,9 @@ class ErrorOverlay extends HTMLElement {
1421
1562
  const countElement = indicator.querySelector("#__v_o__history_count");
1422
1563
  const totalElement = indicator.querySelector("#__v_o__history_total");
1423
1564
 
1424
- if (!countElement || !totalElement)
1565
+ if (!countElement || !totalElement) {
1425
1566
  return;
1567
+ }
1426
1568
 
1427
1569
  if (this.__v_oHistory.length <= 1) {
1428
1570
  indicator.classList.add("hidden");
@@ -1466,13 +1608,12 @@ class ErrorOverlay extends HTMLElement {
1466
1608
  const span = timeElement.querySelector("span");
1467
1609
 
1468
1610
  if (span) {
1469
- span.textContent = new Date(historyEntry.timestamp).toLocaleString("en-US", {
1611
+ span.textContent = new Date(historyEntry.timestamp).toLocaleString(undefined, {
1470
1612
  day: "2-digit",
1471
1613
  hour: "2-digit",
1472
1614
  minute: "2-digit",
1473
1615
  month: "2-digit",
1474
1616
  second: "2-digit",
1475
- timeZone: "UTC",
1476
1617
  year: "numeric",
1477
1618
  });
1478
1619
  }
@@ -1515,8 +1656,9 @@ class ErrorOverlay extends HTMLElement {
1515
1656
  updateOverlay() {
1516
1657
  const currentError = this.__v_oPayload?.errors?.[0];
1517
1658
 
1518
- if (!currentError)
1659
+ if (!currentError) {
1519
1660
  return;
1661
+ }
1520
1662
 
1521
1663
  // Reopen overlay if it's hidden when new errors occur
1522
1664
  if (this.root && this.root.classList.contains("hidden")) {
@@ -1525,12 +1667,20 @@ class ErrorOverlay extends HTMLElement {
1525
1667
  this._saveBalloonState("overlay", "open");
1526
1668
  }
1527
1669
 
1670
+ // Update error type attribute for CSS balloon visibility rules
1671
+ const rootElement = this.__elements?.root;
1672
+
1673
+ if (rootElement) {
1674
+ rootElement.dataset.errorType = this.__v_oPayload.errorType || "client";
1675
+ }
1676
+
1528
1677
  // Show balloon and clear dismissed state when new error occurs
1529
1678
  const balloonGroup = this.__elements?.balloonGroup;
1530
1679
 
1531
1680
  if (balloonGroup) {
1532
1681
  // Clear dismissed state and show balloon for new errors
1533
1682
  this.__v_oBalloonDismissed = false;
1683
+ this._saveBalloonState("dismissed", "false");
1534
1684
  balloonGroup.classList.add("inline-flex");
1535
1685
  balloonGroup.classList.remove("hidden");
1536
1686
  }
@@ -1569,211 +1719,204 @@ class ErrorOverlay extends HTMLElement {
1569
1719
  this.__v_oHistory.length = ErrorOverlay.HISTORY_LIMIT;
1570
1720
  }
1571
1721
 
1722
+ // Update balloon count with animation
1723
+ this._updateBalloonCount(true);
1724
+
1572
1725
  this._updateHistoryToggleVisibility();
1573
1726
  }
1574
1727
  }
1575
- `;var Bs=Object.defineProperty,we=b((t,e)=>Bs(t,"name",{value:e,configurable:!0}),"r$3");const nr='<option value="">Auto-detected Editor</option>',js="class ErrorOverlay",Os="var ErrorOverlay = ",qs="window.ErrorOverlay = ErrorOverlay;",Us=we(()=>{try{const t=Object.keys(Nt);return[nr,...t.map(e=>`<option value="${String(e)}">${String(Nt[e])}</option>`)].join("")}catch{return nr}},"generateEditorOptions"),rr=`<svg width="60" height="42" viewBox="0 0 60 42" fill="none" xmlns="http://www.w3.org/2000/svg" class="error-overlay-notch-tail absolute top-[calc(var(--ono-v-dialog-border-width)*-1)] -z-1 h-[calc(100%+var(--ono-v-dialog-border-width))] right-[-54px] pointer-events-none" preserveAspectRatio="none">
1576
- <mask id="error_overlay_nav_mask0_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" style="mask-type: alpha;">
1577
- <mask id="error_overlay_nav_path_1_outside_1_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" fill="black">
1578
- <rect fill="white" y="-1" width="60" height="43"></rect>
1579
- <path d="M1 0L8.0783 0C15.772 0 22.7836 4.41324 26.111 11.3501L34.8889 29.6498C38.2164 36.5868 45.228 41 52.9217 41H60H1L1 0Z"></path>
1580
- </mask>
1581
- <path d="M1 0L8.0783 0C15.772 0 22.7836 4.41324 26.111 11.3501L34.8889 29.6498C38.2164 36.5868 45.228 41 52.9217 41H60H1L1 0Z" fill="white"></path>
1582
- <path d="M1 0V-1H0V0L1 0ZM1 41H0V42H1V41ZM34.8889 29.6498L33.9873 30.0823L34.8889 29.6498ZM26.111 11.3501L27.0127 10.9177L26.111 11.3501ZM1 1H8.0783V-1H1V1ZM60 40H1V42H60V40ZM2 41V0L0 0L0 41H2ZM25.2094 11.7826L33.9873 30.0823L35.7906 29.2174L27.0127 10.9177L25.2094 11.7826ZM52.9217 42H60V40H52.9217V42ZM33.9873 30.0823C37.4811 37.3661 44.8433 42 52.9217 42V40C45.6127 40 38.9517 35.8074 35.7906 29.2174L33.9873 30.0823ZM8.0783 1C15.3873 1 22.0483 5.19257 25.2094 11.7826L27.0127 10.9177C23.5188 3.6339 16.1567 -1 8.0783 -1V1Z" fill="black" mask="url(#error_overlay_nav_path_1_outside_1_2667_14687)"></path>
1583
- </mask>
1584
- <g mask="url(#error_overlay_nav_mask0_2667_14687)">
1585
- <mask id="error_overlay_nav_path_3_outside_2_2667_14687" maskUnits="userSpaceOnUse" x="-1" y="0.0244141" width="60" height="43" fill="black">
1586
- <rect fill="white" x="-1" y="0.0244141" width="60" height="43"></rect>
1587
- <path d="M0 1.02441H7.0783C14.772 1.02441 21.7836 5.43765 25.111 12.3746L33.8889 30.6743C37.2164 37.6112 44.228 42.0244 51.9217 42.0244H59H0L0 1.02441Z"></path>
1588
- </mask>
1589
- <path d="M0 1.02441H7.0783C14.772 1.02441 21.7836 5.43765 25.111 12.3746L33.8889 30.6743C37.2164 37.6112 44.228 42.0244 51.9217 42.0244H59H0L0 1.02441Z" fill="var(--background-color)"></path>
1590
- <path d="M0 1.02441L0 0.0244141H-1V1.02441H0ZM0 42.0244H-1V43.0244H0L0 42.0244ZM33.8889 30.6743L32.9873 31.1068L33.8889 30.6743ZM25.111 12.3746L26.0127 11.9421L25.111 12.3746ZM0 2.02441H7.0783V0.0244141H0L0 2.02441ZM59 41.0244H0L0 43.0244H59V41.0244ZM1 42.0244L1 1.02441H-1L-1 42.0244H1ZM24.2094 12.8071L32.9873 31.1068L34.7906 30.2418L26.0127 11.9421L24.2094 12.8071ZM51.9217 43.0244H59V41.0244H51.9217V43.0244ZM32.9873 31.1068C36.4811 38.3905 43.8433 43.0244 51.9217 43.0244V41.0244C44.6127 41.0244 37.9517 36.8318 34.7906 30.2418L32.9873 31.1068ZM7.0783 2.02441C14.3873 2.02441 21.0483 6.21699 24.2094 12.8071L26.0127 11.9421C22.5188 4.65831 15.1567 0.0244141 7.0783 0.0244141V2.02441Z" fill="var(--stroke-color)" mask="url(#error_overlay_nav_path_3_outside_2_2667_14687)"></path>
1591
- </g>
1592
- </svg>`,or=`<svg width="60" height="42" viewBox="0 0 60 42" fill="none" xmlns="http://www.w3.org/2000/svg" class="error-overlay-notch-tail absolute top-[calc(var(--ono-v-dialog-border-width)*-1)] -z-1 h-[calc(100%+var(--ono-v-dialog-border-width))] left-[-54px] pointer-events-none [transform:rotateY(180deg)]" preserveAspectRatio="none">
1593
- <mask id="error_overlay_nav_mask0_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" style="mask-type: alpha;">
1594
- <mask id="error_overlay_nav_path_1_outside_1_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" fill="black">
1595
- <rect fill="white" y="-1" width="60" height="43"></rect>
1596
- <path d="M1 0L8.0783 0C15.772 0 22.7836 4.41324 26.111 11.3501L34.8889 29.6498C38.2164 36.5868 45.228 41 52.9217 41H60H1L1 0Z"></path>
1597
- </mask>
1598
- <path d="M1 0L8.0783 0C15.772 0 22.7836 4.41324 26.111 11.3501L34.8889 29.6498C38.2164 36.5868 45.228 41 52.9217 41H60H1L1 0Z" fill="white"></path>
1599
- <path d="M1 0V-1H0V0L1 0ZM1 41H0V42H1V41ZM34.8889 29.6498L33.9873 30.0823L34.8889 29.6498ZM26.111 11.3501L27.0127 10.9177L26.111 11.3501ZM1 1H8.0783V-1H1V1ZM60 40H1V42H60V40ZM2 41V0L0 0L0 41H2ZM25.2094 11.7826L33.9873 30.0823L35.7906 29.2174L27.0127 10.9177L25.2094 11.7826ZM52.9217 42H60V40H52.9217V42ZM33.9873 30.0823C37.4811 37.3661 44.8433 42 52.9217 42V40C45.6127 40 38.9517 35.8074 35.7906 29.2174L33.9873 30.0823ZM8.0783 1C15.3873 1 22.0483 5.19257 25.2094 11.7826L27.0127 10.9177C23.5188 3.6339 16.1567 -1 8.0783 -1V1Z" fill="black" mask="url(#error_overlay_nav_path_1_outside_1_2667_14687)"></path>
1600
- </mask>
1601
- <g mask="url(#error_overlay_nav_mask0_2667_14687)">
1602
- <mask id="error_overlay_nav_path_3_outside_2_2667_14687" maskUnits="userSpaceOnUse" x="-1" y="0.0244141" width="60" height="43" fill="black">
1603
- <rect fill="white" x="-1" y="0.0244141" width="60" height="43"></rect>
1604
- <path d="M0 1.02441H7.0783C14.772 1.02441 21.7836 5.43765 25.111 12.3746L33.8889 30.6743C37.2164 37.6112 44.228 42.0244 51.9217 42.0244H59H0L0 1.02441Z"></path>
1605
- </mask>
1606
- <path d="M0 1.02441H7.0783C14.772 1.02441 21.7836 5.43765 25.111 12.3746L33.8889 30.6743C37.2164 37.6112 44.228 42.0244 51.9217 42.0244H59H0L0 1.02441Z" fill="var(--background-color)"></path>
1607
- <path d="M0 1.02441L0 0.0244141H-1V1.02441H0ZM0 42.0244H-1V43.0244H0L0 42.0244ZM33.8889 30.6743L32.9873 31.1068L33.8889 30.6743ZM25.111 12.3746L26.0127 11.9421L25.111 12.3746ZM0 2.02441H7.0783V0.0244141H0L0 2.02441ZM59 41.0244H0L0 43.0244H59V41.0244ZM1 42.0244L1 1.02441H-1L-1 42.0244H1ZM24.2094 12.8071L32.9873 31.1068L34.7906 30.2418L26.0127 11.9421L24.2094 12.8071ZM51.9217 43.0244H59V41.0244H51.9217V43.0244ZM32.9873 31.1068C36.4811 38.3905 43.8433 43.0244 51.9217 43.0244V41.0244C44.6127 41.0244 37.9517 36.8318 34.7906 30.2418L32.9873 31.1068ZM7.0783 2.02441C14.3873 2.02441 21.0483 6.21699 24.2094 12.8071L26.0127 11.9421C22.5188 4.65831 15.1567 0.0244141 7.0783 0.0244141V2.02441Z" fill="var(--stroke-color)" mask="url(#error_overlay_nav_path_3_outside_2_2667_14687)"></path>
1608
- </g>
1609
- </svg>`,Vs=we((t,e,n=!1)=>`<div id="${t}" class="fixed inset-0 z-[2147483647] flex flex-col items-center pt-[10vh] px-[15px] shadow-[--ono-v-elevation-2] hidden">
1610
- <div id="__v_o__backdrop" class="fixed inset-0 -z-1 bg-black/60 backdrop-blur-sm md:backdrop-blur pointer-events-auto"></div>
1611
- <div id="__v_o__notch" class="relative z-2 flex w-full max-w-(--ono-v-dialog-max-width) items-end justify-between outline-none translate-x-(--ono-v-dialog-border-width) translate-y-(--ono-v-dialog-border-width)" style="--stroke-color: var(--ono-v-border); --background-color: var(--ono-v-surface);">
1612
- <div class="error-overlay-notch relative text-(--ono-v-text) translate-x-[calc(var(--ono-v-dialog-border-width)*-1)] h-(--ono-v-dialog-notch-height) p-3 pr-0 bg-(--background-color) border border-(--stroke-color) border-b-0 rounded-tl-(--ono-v-dialog-radius)" data-side="left">
1613
- <nav class="error-overlay-pagination dialog-exclude-closing-from-outside-click flex justify-center items-center gap-2 w-fit">
1614
- <button id="__v_o__error-overlay-pagination-previous" type="button" aria-disabled="true" class="error-overlay-pagination-button flex justify-center items-center w-6 h-6 bg-(--ono-v-chip-bg) rounded-full disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-(--ono-v-red-orange) hover:bg-(--ono-v-hover-overlay) transition-colors" disabled>
1615
- <span class="dui size-4" style="-webkit-mask-image: url('${Yn}'); mask-image: url('${Yn}')" aria-label="previous"></span>
1616
- </button>
1617
- <div id="__v_o__error-overlay_pagination_count" class="inline-flex justify-center items-center min-w-8 h-5 gap-1 text-(--ono-v-text) text-center text-[11px] font-medium leading-4 rounded-full px-1.5">
1618
- <span id="__v_o__pagination_current">1</span>
1619
- <span class="text-(--ono-v-text-muted)">/</span>
1620
- <span id="__v_o__pagination_total">1</span>
1621
- </div>
1622
- <button type="button" id="__v_o__error-overlay-pagination-next" aria-disabled="true" class="error-overlay-pagination-button flex justify-center items-center w-6 h-6 bg-(--ono-v-chip-bg) rounded-full disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-(--ono-v-red-orange) hover:bg-(--ono-v-hover-overlay) transition-colors" disabled>
1623
- <span class="dui size-4" style="-webkit-mask-image: url('${dt}'); mask-image: url('${dt}')" aria-label="next"></span>
1624
- </button>
1625
- <div class="flex items-center gap-1">
1626
- <button type="button" id="__v_o__history_toggle" title="Toggle Error History" aria-label="Toggle Error History" class="error-overlay-history-button flex justify-center items-center w-6 h-6 bg-(--ono-v-chip-bg) rounded-full hover:bg-(--ono-v-hover-overlay) focus-visible:outline focus-visible:outline-(--ono-v-red-orange) transition-colors">
1627
- <span class="dui size-4" style="-webkit-mask-image: url('${Xn}'); mask-image: url('${Xn}')"></span>
1628
- </button>
1629
- <div id="__v_o__history_indicator" class="flex items-center gap-1 text-xs text-(--ono-v-text-muted) hidden">
1630
- <span id="__v_o__history_count">0</span>
1631
- <span>/</span>
1632
- <span id="__v_o__history_total">0</span>
1633
- <span class="text-[10px]">scroll to navigate</span>
1728
+ `;var Vs=Object.defineProperty,ve=b((t,e)=>Vs(t,"name",{value:e,configurable:!0}),"i$6");const Zs=/([A-Z])/g,ir='<option value="">Auto-detected Editor</option>',Ys="class ErrorOverlay",Xs="var ErrorOverlay = ",Qs="window.ErrorOverlay = ErrorOverlay;",Js=ve(()=>{try{const t=Object.keys(Zt);return[ir,...t.map(e=>`<option value="${String(e)}">${String(Zt[e])}</option>`)].join("")}catch{return ir}},"generateEditorOptions"),Ks=ve((t,e,n=!1)=>`<div id="${t}" class="fixed inset-0 z-[2147483646] flex flex-col items-center pt-[8vh] px-4 pb-4 hidden">
1729
+ <div id="__v_o__backdrop" class="fixed inset-0 -z-1 bg-black/65 pointer-events-auto"></div>
1730
+ <div class="relative z-1 w-full max-w-(--ono-v-dialog-max-width) mx-auto flex flex-col">
1731
+
1732
+ <div id="__v_o__panel" role="dialog" aria-modal="true" aria-label="Runtime Error Overlay"
1733
+ class="w-full max-h-[80vh] flex flex-col bg-(--ono-v-surface) border border-(--ono-v-border) overflow-hidden">
1734
+
1735
+ <!-- ── Header bar ── replaces old SVG notch tabs ─────────────────────── -->
1736
+ <div id="__v_o__notch"
1737
+ class="dialog-exclude-closing-from-outside-click relative flex items-center gap-2 min-h-12 shrink-0 border-b border-(--ono-v-border) bg-(--ono-v-surface-muted)">
1738
+
1739
+ <!-- Left: error dot · label · pagination -->
1740
+ <div class="flex items-center gap-2 px-3 flex-1 min-w-0">
1741
+ <span class="size-1.5 rounded-full bg-(--ono-v-red-orange) shrink-0"></span>
1742
+ <span class="v-o-label text-xs text-(--ono-v-text-muted) shrink-0 whitespace-nowrap">RUNTIME ERROR</span>
1743
+
1744
+ <nav class="error-overlay-pagination dialog-exclude-closing-from-outside-click flex items-center gap-1 ml-1">
1745
+ <button id="__v_o__error-overlay-pagination-previous" type="button" aria-disabled="true"
1746
+ class="error-overlay-pagination-button inline-flex items-center justify-center size-7 hover:bg-(--ono-v-hover-overlay) active:opacity-80 transition-opacity duration-150 disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline-1 focus-visible:outline-(--ono-v-text)" disabled>
1747
+ <span class="dui size-4" style="-webkit-mask-image: url('${Jn}'); mask-image: url('${Jn}')" aria-label="previous"></span>
1748
+ </button>
1749
+ <div id="__v_o__error-overlay_pagination_count"
1750
+ class="inline-flex justify-center items-center min-w-8 gap-1 text-(--ono-v-text-muted) text-center text-xs font-medium px-1">
1751
+ <span id="__v_o__pagination_current">1</span>
1752
+ <span>/</span>
1753
+ <span id="__v_o__pagination_total">1</span>
1754
+ </div>
1755
+ <button id="__v_o__error-overlay-pagination-next" type="button" aria-disabled="true"
1756
+ class="error-overlay-pagination-button inline-flex items-center justify-center size-7 hover:bg-(--ono-v-hover-overlay) active:opacity-80 transition-opacity duration-150 disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline-1 focus-visible:outline-(--ono-v-text)" disabled>
1757
+ <span class="dui size-4" style="-webkit-mask-image: url('${gt}'); mask-image: url('${gt}')" aria-label="next"></span>
1758
+ </button>
1759
+ <button id="__v_o__history_toggle" type="button" title="Toggle Error History" aria-label="Toggle Error History"
1760
+ class="error-overlay-history-button inline-flex items-center justify-center size-7 hover:bg-(--ono-v-hover-overlay) active:opacity-80 transition-opacity duration-150 focus-visible:outline-1 focus-visible:outline-(--ono-v-text)">
1761
+ <span class="dui size-4" style="-webkit-mask-image: url('${Kn}'); mask-image: url('${Kn}')"></span>
1762
+ </button>
1763
+ <div id="__v_o__history_indicator" class="flex items-center gap-1 text-xs text-(--ono-v-text-muted) hidden">
1764
+ <span id="__v_o__history_count">0</span>
1765
+ <span>/</span>
1766
+ <span id="__v_o__history_total">0</span>
1767
+ </div>
1768
+ </nav>
1634
1769
  </div>
1635
- </div>
1636
- </nav>
1637
- ${rr}
1638
- </div>
1639
- <div class="grow flex justify-center items-end">
1640
- <div id="__v_o__history_timestamp" class="bg-(--ono-v-surface) text-sm text-(--ono-v-text-muted) flex items-end justify-center relative w-42 border-t border-(--stroke-color) hidden">
1641
- ${or}
1642
- <span></span>
1643
- ${rr}
1644
- </div>
1645
- </div>
1646
- <div class="error-overlay-notch flex gap-1 relative translate-x-[calc(var(--ono-v-dialog-border-width)*-1)] h-(--ono-v-dialog-notch-height) p-3 pl-0 bg-(--background-color) border border-(--stroke-color) border-b-0 rounded-tr-(--ono-v-dialog-radius)" data-side="right">
1647
- ${n?"":`<div id="__v_o__editor" class="hidden sm:flex items-center gap-1">
1648
- <label for="editor-selector" class="sr-only">Editor</label>
1649
- <select id="editor-selector" class="py-1 cursor-pointer px-2 pe-6 block w-44 bg-(--ono-v-surface) border border-(--ono-v-border) rounded-(--ono-v-radius-md) text-xs text-(--ono-v-text) shadow-(--ono-v-elevation-1) hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:ring-1 focus:ring-(--ono-v-red-orange)">${e}</select>
1770
+
1771
+ <!-- Center: history timestamp (absolutely centered) -->
1772
+ <div id="__v_o__history_timestamp"
1773
+ class="absolute left-1/2 -translate-x-1/2 text-xs text-(--ono-v-text-muted) pointer-events-none hidden">
1774
+ <span></span>
1775
+ </div>
1776
+
1777
+ <!-- Right: editor select · theme · copy · close -->
1778
+ ${n?"":`<div class="flex items-center gap-0.5 pr-1 shrink-0">
1779
+ <div id="__v_o__editor" class="hidden sm:flex items-center">
1780
+ <label for="editor-selector" class="sr-only">Editor</label>
1781
+ <select id="editor-selector"
1782
+ class="py-1 cursor-pointer px-2 pe-6 w-44 bg-(--ono-v-surface) border border-(--ono-v-border) text-xs text-(--ono-v-text) hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:ring-1 focus:ring-(--ono-v-primary)">${e}</select>
1783
+ </div>
1784
+ <div id="v-o-theme-switch" class="flex items-center">
1785
+ <button type="button" title="Switch to dark mode" aria-label="Switch to dark mode"
1786
+ class="hover:bg-(--ono-v-hover-overlay) active:opacity-80 transition-opacity duration-150 text-(--ono-v-text)" data-v-o-theme-click-value="dark">
1787
+ <span class="inline-flex items-center justify-center size-8">
1788
+ <span class="dui size-4" style="-webkit-mask-image: url('${nr}'); mask-image: url('${nr}')"></span>
1789
+ </span>
1790
+ </button>
1791
+ <button type="button" title="Switch to light mode" aria-label="Switch to light mode"
1792
+ class="hidden hover:bg-(--ono-v-hover-overlay) active:opacity-80 transition-opacity duration-150 text-(--ono-v-text)" data-v-o-theme-click-value="light">
1793
+ <span class="inline-flex items-center justify-center size-8">
1794
+ <span class="dui size-4" style="-webkit-mask-image: url('${rr}'); mask-image: url('${rr}')"></span>
1795
+ </span>
1796
+ </button>
1797
+ </div>
1798
+ <button type="button" id="__v_o__copy_error" title="Copy Error Info" aria-label="Copy Error Info"
1799
+ class="inline-flex items-center justify-center size-8 hover:bg-(--ono-v-hover-overlay) active:opacity-80 transition-opacity duration-150 text-(--ono-v-text)">
1800
+ <span class="dui size-4" style="-webkit-mask-image: url('${er}'); mask-image: url('${er}')"></span>
1801
+ </button>
1802
+ <button type="button" id="__v_o__close" aria-label="Close error overlay"
1803
+ class="inline-flex items-center justify-center size-8 hover:bg-(--ono-v-hover-overlay) active:opacity-80 transition-opacity duration-150 text-(--ono-v-text)">
1804
+ <span class="dui size-4" style="-webkit-mask-image: url('${kt}'); mask-image: url('${kt}')"></span>
1805
+ </button>
1806
+ </div>`}
1650
1807
  </div>
1651
1808
 
1652
- <div id="v-o-theme-switch" class="flex items-center gap-1">
1653
- <button type="button" title="Switch to dark mode" aria-label="Switch to dark mode" class="font-medium rounded-full hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:bg-(--ono-v-hover-overlay) text-(--ono-v-text)" data-v-o-theme-click-value="dark">
1654
- <span class="inline-flex shrink-0 justify-center items-center size-8">
1655
- <span class="dui size-5" style="-webkit-mask-image: url('${Kn}'); mask-image: url('${Kn}')"></span>
1656
- </span>
1657
- </button>
1658
- <button type="button" title="Switch to light mode" aria-label="Switch to light mode" class="hidden font-medium rounded-full hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:bg-(--ono-v-hover-overlay) text-(--ono-v-text)" data-v-o-theme-click-value="light">
1659
- <span class="inline-flex shrink-0 justify-center items-center size-8">
1660
- <span class="dui size-5" style="-webkit-mask-image: url('${er}'); mask-image: url('${er}')"></span>
1661
- </span>
1662
- </button>
1809
+ <!-- ── File / error title ──────────────────────────────────────────────── -->
1810
+ <div id="__v_o__header" class="flex items-center gap-2 justify-between border-b border-(--ono-v-border) bg-(--ono-v-surface) px-4 py-2 min-h-10">
1811
+ <div id="__v_o__header_loader"><span class="v-o-loading-text">[LOADING...]</span></div>
1812
+ <div id="__v_o__title" class="flex items-center gap-2 w-full hidden">
1813
+ <span id="__v_o__heading" class="leading-none text-(--ono-v-red-orange) font-mono text-sm font-semibold"></span>
1814
+ <button type="button" id="__v_o__filelink"
1815
+ class="ml-1 text-xs font-normal font-mono underline text-(--ono-v-text-muted) hover:text-(--ono-v-text) bg-transparent border-none cursor-pointer transition-colors"></button>
1816
+ </div>
1817
+ <div id="__v_o__mode" class="flex items-center gap-1 shrink-0">
1818
+ <button type="button" data-flame-mode="original"
1819
+ class="inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-(--ono-v-text) bg-(--ono-v-chip-bg) hover:bg-(--ono-v-hover-overlay) focus:outline-hidden" style="display:none">Original</button>
1820
+ <button type="button" data-flame-mode="compiled"
1821
+ class="inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-(--ono-v-text) bg-(--ono-v-chip-bg) hover:bg-(--ono-v-hover-overlay) focus:outline-hidden" style="display:none">Compiled</button>
1822
+ </div>
1663
1823
  </div>
1664
1824
 
1665
- <div class="flex items-center">
1666
- <button type="button" id="__v_o__close" aria-label="Close error overlay" class="font-medium rounded-full hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:bg-(--ono-v-hover-overlay) text-(--ono-v-text)">
1667
- <span class="inline-flex shrink-0 justify-center items-center size-8">
1668
- <span class="dui size-5" style="-webkit-mask-image: url('${wt}'); mask-image: url('${wt}')"></span>
1669
- </span>
1670
- </button>
1671
- </div>`}
1672
- ${or}
1673
- </div>
1674
- </div>
1825
+ <!-- ── Scrollable content ─────────────────────────────────────────────── -->
1826
+ <div class="flex-1 min-h-0 overflow-y-auto devtools-content-scroll">
1827
+ <div id="__v_o__message_loader" class="px-4 py-2 bg-(--ono-v-surface-muted) border-b border-(--ono-v-border)">
1828
+ <span class="v-o-loading-text">[LOADING...]</span>
1829
+ </div>
1830
+ <!-- CRITICAL: class selector used by runtime.js querySelector — do not change -->
1831
+ <div id="__v_o__message" class="px-4 py-2 text-sm text-[var(--ono-v-red-orange)] font-mono bg-[var(--ono-v-surface-muted)] border-b border-(--ono-v-border) font-medium hidden"></div>
1832
+
1833
+ <div id="__v_o__solutions" class="relative hidden">
1834
+ <div title="Possible Solution" class="absolute top-4 right-6 z-10 size-6 flex items-center justify-center" style="background-color: var(--ono-v-success);">
1835
+ <span class="dui size-4" style="-webkit-mask-image: url('${tr}'); mask-image: url('${tr}')"></span>
1836
+ </div>
1837
+ <div id="__v_o__solutions_container" class="max-h-50 overflow-y-auto px-4 py-2 bg-(--ono-v-success-bg) m-1 mb-0 prose prose-sm max-w-full dark:prose-invert"></div>
1838
+ </div>
1675
1839
 
1676
- <div id="__v_o__panel" role="dialog" aria-modal="true" aria-label="Runtime Error Overlay" class="relative z-10 flex w-full max-w-(--ono-v-dialog-max-width) max-h-[calc(100%-56px)] scale-100 opacity-100 flex-col overflow-hidden rounded-b-(--ono-v-dialog-radius) bg-(--ono-v-surface) text-(--ono-v-text) shadow-(--ono-v-elevation-1) border-b border-(--ono-v-border) ">
1677
- <div id="__v_o__header" class="flex items-center gap-1 justify-between border-b border-(--ono-v-border) bg-(--ono-v-surface) px-4 py-2">
1678
- <div id="__v_o__header_loader" class="v-o-skeleton h-6 w-3/5 rounded animate-pulse"></div>
1679
- <div id="__v_o__title" class="flex items-center gap-2 w-full font-bold text-(--ono-v-text) hidden">
1680
- <span id="__v_o__heading" class="leading-none rounded-md text-(--ono-v-red-orange) font-mono text-sm"></span>
1681
- <button type="button" id="__v_o__filelink" class="ml-2 text-xs font-normal font-mono underline text-(--ono-v-text-muted) hover:text-(--ono-v-text) bg-transparent border-none cursor-pointer"></button>
1682
- </div>
1683
- <div id="__v_o__mode" class="sm:flex items-center gap-1">
1684
- <button type="button" data-flame-mode="original" class="inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-(--ono-v-text) bg-(--ono-v-chip-bg) rounded-full hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:bg-(--ono-v-hover-overlay)" style="display:none">Original</button>
1685
- <button type="button" data-flame-mode="compiled" class="inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-(--ono-v-text) bg-(--ono-v-chip-bg) rounded-full hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:bg-(--ono-v-hover-overlay)" style="display:none">Compiled</button>
1840
+ <div id="__v_o__body" class="relative flex min-h-0 bg-(--ono-v-surface)">
1841
+ <div id="__v_o__body_loader" class="w-full p-4">
1842
+ <span class="v-o-loading-text">[LOADING...]</span>
1843
+ </div>
1844
+ <div id="__v_o__overlay" class="overflow-auto w-full hidden"></div>
1845
+ </div>
1686
1846
  </div>
1687
- <button type="button" id="__v_o__copy_error" title="Copy Error Info" aria-label="Copy Error Info" class="font-medium rounded-full hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:bg-(--ono-v-hover-overlay) text-(--ono-v-text)">
1688
- <span class="inline-flex shrink-0 justify-center items-center size-8">
1689
- <span class="dui size-5" style="-webkit-mask-image: url('${Qn}'); mask-image: url('${Qn}')"></span>
1690
- </span>
1691
- </button>
1692
- </div>
1693
1847
 
1694
- <div id="__v_o__message_loader" class="px-4 py-2 bg-(--ono-v-surface-muted) border-b border-(--ono-v-border)">
1695
- <div class="v-o-skeleton h-4 w-full rounded animate-pulse"></div>
1848
+ <!-- ── Stack trace footer (collapsible) ──────────────────────────────── -->
1849
+ <details id="__v_o__stacktrace" class="shrink-0 border-t border-(--ono-v-border) bg-(--ono-v-surface-muted)">
1850
+ <summary class="cursor-pointer px-4 py-3 list-none flex items-center gap-2 v-o-label text-xs text-(--ono-v-text-muted) hover:text-(--ono-v-text) transition-colors duration-150">
1851
+ <span class="dui size-3" style="-webkit-mask-image: url('${gt}'); mask-image: url('${gt}')"></span>
1852
+ STACK TRACE
1853
+ </summary>
1854
+ <!-- CRITICAL: class selector used by runtime.js querySelector — do not change -->
1855
+ <div class="px-4 py-3 text-xs font-mono text-[var(--ono-v-text-muted)] whitespace-pre-wrap leading-5 overflow-auto max-h-[160px] bg-(--ono-v-surface) border-t border-(--ono-v-border)"></div>
1856
+ </details>
1696
1857
  </div>
1697
- <div id="__v_o__message" class="px-4 py-2 text-sm text-(--ono-v-red-orange) font-mono bg-(--ono-v-surface-muted) border-b border-(--ono-v-border) font-medium hidden"></div>
1698
- <div id="__v_o__solutions" class="relative hidden">
1699
- <div title="Possible Solution" class="bg-[#b0c8aa] dark:bg-lime-800 rounded-(--ono-v-radius-md) absolute top-4 right-6 z-10 size-6.5 flex items-center justify-center shadow-(--ono-v-elevation-1)">
1700
- <span class="dui size-5" style="-webkit-mask-image: url('${Jn}'); mask-image: url('${Jn}')"></span>
1701
- </div>
1702
- <div id="__v_o__solutions_container" class="max-h-50 overflow-y-auto px-4 py-2 bg-(--ono-v-success-bg) m-1 mb-0 prose prose-sm max-w-full prose-headings:text-white prose-ul:list-none prose-hr:my-6 prose-hr:border dark:prose-invert"></div>
1703
- </div>
1704
- <div id="__v_o__body" class="relative flex min-h-0 mx-1 py-2 bg-(--ono-v-surface)">
1705
- <div id="__v_o__body_loader" class="w-full space-y-1.5">
1706
- <div class="v-o-skeleton h-4 w-full rounded animate-pulse"></div>
1707
- <div class="v-o-skeleton h-4 w-3/4 rounded animate-pulse"></div>
1708
- <div class="v-o-skeleton h-4 w-1/2 rounded animate-pulse"></div>
1709
- <div class="v-o-skeleton h-4 w-2/3 rounded animate-pulse"></div>
1710
- <div class="v-o-skeleton h-4 w-4/5 rounded animate-pulse"></div>
1711
- <div class="v-o-skeleton h-4 w-1/3 rounded animate-pulse"></div>
1712
- <div class="v-o-skeleton h-4 w-2/5 rounded animate-pulse"></div>
1713
- <div class="v-o-skeleton h-4 w-3/5 rounded animate-pulse"></div>
1714
- </div>
1715
- <div id="__v_o__overlay" class="overflow-auto w-full hidden"></div>
1716
- </div>
1717
- </div>
1718
1858
 
1719
- <details id="__v_o__stacktrace" class="relative -mt-5 pt-5 w-full max-w-(--ono-v-dialog-max-width) rounded-b-(--ono-v-dialog-radius) bg-(--ono-v-surface-muted) shadow-(--ono-v-elevation-2)">
1720
- <summary class="cursor-pointer px-4 py-3 text-xs font-mono text-(--ono-v-text-muted) hover:text-(--ono-v-text) transition-colors duration-200 list-none flex items-center gap-2 font-medium">
1721
- <span class="dui w-4 h-4" style="-webkit-mask-image: url('${dt}'); mask-image: url('${dt}')"></span>
1722
- Raw stack trace
1723
- </summary>
1724
- <div class="px-4 py-3 text-(--ono-v-text) text-xs rounded-b-(--ono-v-dialog-radius) font-mono leading-5 overflow-auto space-y-0.5 max-h-[140px] bg-(--ono-v-surface) border-t border-(--ono-v-border)"></div>
1725
- </details>
1726
- <div id="__v_o__history_layer_depth" class="relative flex items-center flex-col -z-1 w-full max-w-[calc(var(--ono-v-dialog-max-width)-24px)] h-10 opacity-0 transition-opacity duration-200 pointer-events-none">
1727
- <div id="__v_o__history_layer_depth_1" class="relative w-full rounded-b-(--ono-v-dialog-radius) h-5 bg-(--ono-v-surface-muted) inset-shadow-(--ono-v-elevation-2) -mt-3 shadow-md"></div>
1728
- <div id="__v_o__history_layer_depth_2" class="relative w-[calc(100%-24px)] rounded-b-(--ono-v-dialog-radius) h-5 bg-(--ono-v-surface-muted) inset-shadow-(--ono-v-elevation-2) -mt-3 -z-1"></div>
1859
+ <!-- ── History depth visual layers ───────────────────────────────────────── -->
1860
+ <div id="__v_o__history_layer_depth"
1861
+ class="relative flex items-center flex-col -z-1 w-[calc(100%-24px)] mx-auto h-10 opacity-0 transition-opacity duration-200 pointer-events-none">
1862
+ <div id="__v_o__history_layer_depth_1" class="relative w-full h-5 bg-(--ono-v-surface-muted) border border-(--ono-v-border) border-t-0 -mt-3"></div>
1863
+ <div id="__v_o__history_layer_depth_2" class="relative w-[calc(100%-24px)] h-5 bg-(--ono-v-surface-muted) border border-(--ono-v-border) border-t-0 -mt-3 -z-1"></div>
1864
+ </div>
1729
1865
  </div>
1730
- </div>`,"rootElement"),Ns=we((t="bottom-right")=>({"bottom-left":"bottom: 8px; left: 8px;","bottom-right":"bottom: 8px; right: 8px;","top-left":"top: 8px; left: 8px;","top-right":"top: 8px; right: 8px;"})[t],"getPositionStyles"),Hr=we(t=>{const e=[];return Object.entries(t).forEach(([n,r])=>{if(r!=null){const o=n.replaceAll(/([A-Z])/g,"-$1").toLowerCase();e.push(`${o}: ${String(r)};`)}}),e.join(" ")},"cssPropertiesToString"),Zs=we(t=>t?typeof t=="string"?t:Hr(t):"","generateStyles"),Ws=we(t=>{if(t?.enabled===!1)return"";const e=t?.position||"bottom-right",n=Zs(t?.style),r=Ns(e),o=t?.icon?`<img src="${t.icon}" alt="" class="w-4 h-4" />`:"",i=o?`${o}
1731
- <span id="__v_o__balloon_count" class="inline-flex items-center justify-center min-w-5 h-5 px-1.5 rounded-full bg-white/20 text-white font-bold">0</span>
1732
- <span id="__v_o__balloon_text">Errors</span>`:`<span id="__v_o__balloon_count" class="inline-flex items-center justify-center min-w-5 h-5 px-1.5 rounded-full bg-white/20 text-white font-bold">0</span>
1733
- <span id="__v_o__balloon_text">Errors</span>`;return`<div id="__v_o__balloon_group" class="fixed z-2147483647 inline-flex items-center px-2.5 py-1.5 rounded-full bg-(--ono-v-red-orange) text-white font-sans text-xs leading-none shadow-lg cursor-pointer transition-all duration-200 hover:brightness-105" data-balloon-position="${e}" style="${n} ${r}">
1734
- <button type="button" id="__v_o__balloon" title="Toggle error overlay" aria-label="Toggle error overlay" class="w-full flex items-center gap-2">
1735
- ${i}
1866
+ </div>`,"rootElement"),ea=ve((t="bottom-right")=>({"bottom-left":"bottom: 8px; left: 8px;","bottom-right":"bottom: 8px; right: 8px;","top-left":"top: 8px; left: 8px;","top-right":"top: 8px; right: 8px;"})[t],"getPositionStyles"),Hr=ve(t=>{const e=[];return Object.entries(t).forEach(([n,r])=>{if(r!=null){const i=n.replaceAll(Zs,"-$1").toLowerCase();e.push(`${i}: ${String(r)};`)}}),e.join(" ")},"cssPropertiesToString"),ta=ve(t=>t?typeof t=="string"?t:Hr(t):"","generateStyles"),na=ve(t=>{if(t?.enabled===!1)return"";const e=t?.position||"bottom-right",n=ta(t?.style),r=ea(e),i=t?.icon?`<img src="${t.icon}" alt="" class="size-4" />`:"";return`<div id="__v_o__balloon_group" class="fixed z-2147483646 inline-flex" data-balloon-position="${e}" style="${n} ${r}">
1867
+ <!-- Toggle button: count + label -->
1868
+ <button type="button" id="__v_o__balloon" title="Toggle error overlay" aria-label="Toggle error overlay"
1869
+ class="flex items-center gap-1.5 px-3 py-2 text-white cursor-pointer hover:opacity-90 active:opacity-80 transition-opacity duration-150" style="background: var(--ono-v-red-orange);">
1870
+ ${i?`<img src="${i}" alt="" class="size-3.5 opacity-90 shrink-0" />`:""}
1871
+ <span id="__v_o__balloon_count" style="--num: 0"></span>
1872
+ <span id="__v_o__balloon_text" class="v-o-label text-xs leading-none" style="color: rgba(255,255,255,0.7)">ERRORS</span>
1736
1873
  </button>
1737
- <button type="button" id="__v_o__balloon_close" title="Dismiss balloon" aria-label="Dismiss balloon" class="ml-2 inline-flex items-center justify-center w-4 h-4 rounded-full hover:bg-white/20 transition-colors border">
1738
- <span class="dui" style="-webkit-mask-image: url('${wt}'); mask-image: url('${wt}')"></span>
1874
+ <!-- Dismiss button -->
1875
+ <button type="button" id="__v_o__balloon_close" title="Dismiss balloon" aria-label="Dismiss balloon"
1876
+ class="flex items-center justify-center w-7 shrink-0 text-white cursor-pointer hover:opacity-90 active:opacity-80 transition-opacity duration-150" style="background: var(--ono-v-red-orange); border-left: 1px solid rgba(255,255,255,0.15);">
1877
+ <span class="dui size-3" style="-webkit-mask-image: url('${kt}'); mask-image: url('${kt}')"></span>
1739
1878
  </button>
1740
- </div>`},"generateBalloonButton"),Gs=we(t=>t?typeof t=="string"?t:Hr(t):"","customCSSToString"),Ys=we((t,e,n)=>{const r=Us(),o=Gs(n),i=o?`<style>${o}</style>`:"";return`<style>${Hs}</style>
1741
- ${i}
1742
- ${Vs("__v_o__root",r)}
1743
-
1744
- ${t?Ws(e):""}`},"generateOverlayTemplate"),Xs=we((t,e,n,r)=>{const o=Ys(e,n,r),i=`const overlayTemplate = ${JSON.stringify(o)};`;let s=t.replace(js,`${i}
1745
- ${tr}
1746
- class ViteErrorOverlay`);return s=s.replace(Os,`${i}
1747
- ${tr}
1879
+ </div>`},"generateBalloonButton"),ra=ve(t=>t?typeof t=="string"?t:Hr(t):"","customCSSToString"),oa=ve((t,e,n)=>{const r=Js(),i=ra(n),o=i?`<style>${i}</style>`:"";return`<link rel="preconnect" href="https://fonts.googleapis.com">
1880
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1881
+ <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
1882
+ <style>${Ws}</style>
1883
+ ${o}
1884
+ ${Ks("__v_o__root",r)}
1885
+
1886
+ ${t?na(e):""}`},"generateOverlayTemplate"),ia=ve((t,e,n,r)=>{const i=oa(e,n,r),o=`const overlayTemplate = ${JSON.stringify(i)};`;let s=t.replace(Ys,`${o}
1887
+ ${or}
1888
+ class ViteErrorOverlay`);return s=s.replace(Xs,`${o}
1889
+ ${or}
1748
1890
  var ViteErrorOverlay = `),s=`${s}
1749
1891
 
1750
- ${qs};`,s},"patchOverlay");var Qs=Object.defineProperty,N=b((t,e)=>Qs(t,"name",{value:e,configurable:!0}),"n$1");const Js=4,ir=1e3,Ks=5,ea=.5,ta=[".js",".ts",".jsx",".tsx",".mjs",".cjs"],na=[".css",".scss",".sass",".less"],Br=[".svg",".png",".jpg",".jpeg",".gif",".webp",".ico"],ra=new Set([...Br,...ta,...na]),Y=N((t,...e)=>{const n=t.toLowerCase();return e.some(r=>n.includes(r.toLowerCase()))},"has"),oa=N((t,e)=>{const n=le.relative(t,e);return n.startsWith(".")?n:`./${n}`},"getRelativePath"),ia=N(t=>t===0?"":t===1?" (in parent directory)":t===2?" (in grandparent directory)":` (${t} directories away)`,"getPathContext"),sa=N((t,e)=>{try{const n=le.relative(t,e).split(le.sep).filter(o=>o&&o!==".");let r=0;for(const o of n)r+=o===".."?2:1;return r}catch{return 10}},"calculatePathDistance"),aa=N((t,e,n,r)=>{if(e&&r===e){const i=pt(t,n);return i<=Math.max(3,Math.floor(t.length*ea))?10-i:0}if(!e){const i=pt(t,n);return i===0?9:i<=Math.max(2,Math.floor(t.length*.3))&&ra.has(r)?7-i:0}const o=pt(t,n);return o<=Math.max(2,Math.floor(t.length*.4))?5-o:0},"calculateRelevanceScore"),la=N((t,e,n)=>{const r=[],o=N((i,s=0)=>{if(!(s>Js||r.length>ir))try{const l=Gi.readdirSync(i,{withFileTypes:!0});for(const a of l){if(r.length>ir)break;const c=le.join(i,a.name);if(a.isDirectory()&&!a.name.startsWith(".")&&a.name!=="node_modules")o(c,s+1);else if(a.isFile()){const d=le.extname(a.name),u=le.basename(a.name,d),g=aa(e,n,u,d);g>0&&r.push({baseName:u,extension:d,fullPath:c,path:c,relevanceScore:g})}}}catch{}},"walk");return o(t),r},"collectFileCandidates"),sr=N((t,e,n)=>{const r=le.basename(t),o=le.extname(r),i=le.basename(r,o),s=le.dirname(e),l=la(n,i,o).map(g=>{const v=pt(i,g.baseName),f=sa(s,le.dirname(g.fullPath)),m=g.relevanceScore*.7+f*.2+v*.1;return{...g,nameDistance:v,pathDistance:f,score:m}});l.sort((g,v)=>g.score-v.score);const a=[],c=l.slice(0,8);let d=!1;for(const g of c){const v=oa(s,g.fullPath);if(!a.includes(v)){const f=ia(g.pathDistance);a.push(v+f);const m=g.fullPath.replaceAll("\\","/").split("/"),k=m.indexOf("public");k!==-1&&k<m.length-1&&(d=!0)}}let u=`<ul>${[...new Set(a)].slice(0,Ks).map(g=>`<li>\`${g}\`</li>`).join(`
1751
- `)}</ul>`;if(d){const g=r;[...Br].some(v=>g.includes(v))&&(u+=`Files in the \`public\` folder should be accessed via absolute URLs like \`/${g}\`.`)}return u},"findSimilarFiles"),ca=[{solution:{body:"Browser APIs like `window` and `document` are not available during server-side rendering. Use dynamic imports or check for SSR environment before using browser APIs.",header:"SSR Browser API Error"},test:N(t=>Y(t,"window is not defined","document is not defined"),"test")},{solution:{body:"Some plugins need specific ordering. Use `enforce: 'pre'` for plugins that need to run first, or `enforce: 'post'` for plugins that need to run last.",header:"Plugin Ordering Issue"},test:N(t=>Y(t,"Plugin ordering","enforce"),"test")},{solution:{body:"CSS Modules require proper configuration. Make sure your CSS files use the `.module.css` extension and are imported correctly.",header:"CSS Modules Configuration"},test:N(t=>Y(t,"CSS Modules","module.css"),"test")},{solution:{body:["Only variables prefixed with `VITE_` are exposed on `import.meta.env` to the client at build time.","Server-only variables should not be prefixed with `VITE_`.","- Do not use `process.env` in browser code; prefer `import.meta.env.*`","- Custom vars must be prefixed with `VITE_` to be exposed to client",'- For TS, add `/// <reference types="vite/client" />` for type-safe access'].join(`
1752
- `),header:"Environment Variables"},test:N(t=>Y(t,"VITE_","process.env"),"test")},{solution:{body:"For static assets, use the `new URL('./path/to/asset', import.meta.url)` syntax or import them and use the returned URL.",header:"Asset Import Issue"},test:N(t=>Y(t,"Failed to load")&&Y(t,".png",".jpg",".svg"),"test")},{solution:{body:"Some issues only occur in production builds. Check if the error happens in development mode. You might need different configurations for build vs dev.",header:"Build vs Development Mode"},test:N(t=>Y(t,"production","build"),"test")},{solution:{body:"HMR issues can occur with certain patterns. Make sure you're not mutating module-level variables and consider using `import.meta.hot` guards.",header:"Hot Module Replacement Issue"},test:N(t=>Y(t,"HMR","hot reload"),"test")},{solution:{body:"Check your `tsconfig.json` and make sure it includes proper paths and compiler options. For Vite, you might need a `vite-env.d.ts` file.",header:"TypeScript Configuration"},test:N((t,e)=>Y(t,"TypeScript")||e&&e.endsWith(".ts"),"test")},{solution:{body:"Some dependencies need to be excluded from pre-bundling. Add them to `optimizeDeps.exclude` in your Vite config.",header:"Dependency Optimization"},test:N(t=>Y(t,"optimizeDeps","pre-bundling"),"test")},{solution:{body:"Configure path aliases in your Vite config using the `resolve.alias` option to match your TypeScript path mappings.",header:"Path Resolution"},test:N(t=>Y(t,"resolve.alias","Cannot find module"),"test")},{solution:{body:"Server middleware and proxy settings should be configured in the `server` section of your Vite config.",header:"Server Configuration"},test:N(t=>Y(t,"middleware","proxy"),"test")},{solution:{body:"Check your plugin configuration in `vite.config.js/ts`. Make sure all required options are provided and options are correctly typed.",header:"Plugin Configuration"},test:N(t=>Y(t,"plugin","configuration"),"test")},{solution:{body:"Configure your build output directory using `build.outDir` in your Vite config. Make sure the directory is writable.",header:"Build Output Configuration"},test:N(t=>Y(t,"build.outDir","dist"),"test")},{solution:{body:["Client and server rendered markup differ.","","Checklist:","- A server/client branch `if (typeof window !== 'undefined')`.","- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.","- Date formatting in a user's locale which doesn't match the server.","- External changing data without sending a snapshot of it along with the HTML.","- Invalid HTML tag nesting.","","It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.","","https://react.dev/link/hydration-mismatch"].join(`
1753
- `)},test:N(t=>Y(t,"hydration failed","did not match","expected server html","text content does not match"),"test")}],da=N(t=>({async handle(e,n){const{file:r,language:o}=n,i=e.message??"";if(Y(i,"Failed to resolve import","Cannot resolve module")){const s=i.match(/Failed to resolve import ["']([^"']+)["']/),l=i.match(/Cannot resolve module ["']([^"']+)["']/),a=s?.[1]||l?.[1];if(a&&r){const c=sr(a,r,t);if(c)return{body:`The import path \`${a}\` could not be resolved.<br/><br/>Did you mean one of these files?<br/>${c}`};if([".jsx",".tsx"].includes(o)||Y(i,"react"))return{body:"Install and configure the React plugin. Add `@vitejs/plugin-react` to your dependencies and include it in your Vite config.",header:"Missing React Plugin"};if(o==="vue")return{body:"Install and configure the Vue plugin. Add `@vitejs/plugin-vue` to your dependencies and include it in your Vite config.",header:"Missing Vue Plugin"}}}if(Y(i,"Cannot resolve")&&(o==="typescript"||o==="javascript")){const s=i.match(/Cannot resolve ["'](\.\.?\/[^"']*)["']/);if(s){const l=s[1];if(l&&r){const a=sr(l,r,t);if(a)return{body:`Cannot resolve \`${l}\`. Did you mean one of these files?${a}`,header:"File Not Found"}}}return{body:"In Vite, you may need to include file extensions in imports, especially for TypeScript files. Try adding `.js` extension to your imports.",header:"Missing File Extension"}}for(const s of ca)if(s.test(i,r))return s.solution},name:"vite-solution-finder",priority:20}),"createViteSolutionFinder");var pa=Object.defineProperty,V=b((t,e)=>pa(t,"name",{value:e,configurable:!0}),"t$1");const jr={javascript:V(()=>import("@shikijs/langs/javascript"),"javascript"),typescript:V(()=>import("@shikijs/langs/typescript"),"typescript"),jsx:V(()=>import("@shikijs/langs/jsx"),"jsx"),tsx:V(()=>import("@shikijs/langs/tsx"),"tsx"),json:V(()=>import("@shikijs/langs/json"),"json"),jsonc:V(()=>import("@shikijs/langs/jsonc"),"jsonc"),xml:V(()=>import("@shikijs/langs/xml"),"xml"),sql:V(()=>import("@shikijs/langs/sql"),"sql"),markdown:V(()=>import("@shikijs/langs/markdown"),"markdown"),mdx:V(()=>import("@shikijs/langs/mdx"),"mdx"),html:V(()=>import("@shikijs/langs/html"),"html"),css:V(()=>import("@shikijs/langs/css"),"css"),scss:V(()=>import("@shikijs/langs/scss"),"scss"),less:V(()=>import("@shikijs/langs/less"),"less"),sass:V(()=>import("@shikijs/langs/sass"),"sass"),stylus:V(()=>import("@shikijs/langs/stylus"),"stylus"),styl:V(()=>import("@shikijs/langs/styl"),"styl"),svelte:V(()=>import("@shikijs/langs/svelte"),"svelte"),vue:V(()=>import("@shikijs/langs/vue"),"vue"),bash:V(()=>import("@shikijs/langs/bash"),"bash"),shell:V(()=>import("@shikijs/langs/shell"),"shell"),text:V(()=>Promise.resolve({name:"text",patterns:[],scopeName:"source.text"}),"text")};V(async t=>{if(typeof t!="string"||!t)return;const e=jr[t.toLowerCase()];if(e)return await e()},"getLanguageImport");var ha=Object.defineProperty,Ue=b((t,e)=>ha(t,"name",{value:e,configurable:!0}),"r$2");let ht,ut;const ua=Ue(async()=>{const[t,e]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:n}=t,{createJavaScriptRegexEngine:r}=e,o=await n({themes:[import("./packem_chunks/github-dark-default.js"),import("./packem_chunks/github-light.js")],langs:[],engine:r()}),i=o;return ut=Ue(()=>{try{o?.dispose?.()}catch{}ht=void 0},"disposeFn"),i},"createSingletonHighlighter"),ga=Ue(async(t,e)=>{if(e==="text")return;const n=e.toLowerCase();if(!(t.getLanguages?.()||[]).includes(n)){const r=jr[n];r&&await t.loadLanguage?.(r())}},"ensureLanguageLoaded"),Or=Ue(async(t=[])=>{ht||(ht=ua());const e=await ht,n=[];for(const r of t)if(typeof r=="string")n.push(r.toLowerCase());else{const o=r.name;o&&n.push(o.toLowerCase())}return await Promise.all(n.map(r=>ga(e,r))),e},"getHighlighter");Ue(async()=>{try{ut&&(ut(),ut=void 0)}catch{}},"disposeHighlighter");const ar=Ue((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,n){const r=t.find(o=>o.line===n);return r?.classes&&this.addClassToHast(e,r.classes),e}}),"transformerCompactLineOptions");var ma=Object.defineProperty,qr=b((t,e)=>ma(t,"name",{value:e,configurable:!0}),"s$4");const fa=qr(t=>!Array.isArray(t)||t.length===0?!1:t.some(e=>e&&typeof e=="object"&&(e.location||e.pluginName||e.text)),"isESBuildErrorArray"),va=qr(t=>t.map((e,n)=>{const{location:r,pluginName:o,text:i}=e,s={message:i||`ESBuild error #${n+1}`};return r&&(s.file=r.file,s.line=r.line,s.column=r.column),o&&(s.plugin=o),s.name=e.name||"Error",s.stack=e.stack||"",s}),"processESBuildErrors");var wa=Object.defineProperty,Ur=b((t,e)=>wa(t,"name",{value:e,configurable:!0}),"c$6");const ba=Ur((t,e)=>{for(const[n,r]of t.moduleGraph.idToModuleMap){if(!r)continue;const o=r,i=[String(o.file||"").replaceAll("\\","/"),String(n||"").replaceAll("\\","/"),String(o.url||"").replaceAll("\\","/")];for(const s of e)if(i.some(l=>l===s||l.includes(s)||s.includes(l)))return r}},"findBestModuleMatch"),et=Ur((t,e)=>{const n=[...e,...e.map(i=>i.replace(/^\/@fs\//,"")),...e.map(i=>i.replace(/^[./]*/,""))];let r,o=0;for(const i of n)try{const s=t.moduleGraph.getModuleById(i);if(s){const a=Object.keys(s).length>0,c=!!s.transformResult;let d=0;if(a&&c?d=2:a&&(d=1),a&&(d>o&&(r=s,o=d),c))return s}const l=t.moduleGraph.getModuleByUrl?.(i);if(l){const a=Object.keys(l).length>0,c=!!l.transformResult;let d=0;if(a&&c?d=2:a&&(d=1),a&&(d>o&&(r=l,o=d),c))return l}}catch{}return r||ba(t,e)||void 0},"findModuleForPath");var ya=Object.defineProperty,cn=b((t,e)=>ya(t,"name",{value:e,configurable:!0}),"r$1");const ka=/^https?:\/\//,xa=cn(t=>{const e=new URL(t),{pathname:n}=e,r=e.search||"",o=[n+r,n,n.replace(/^\/@fs\//,""),decodeURIComponent(n+r),decodeURIComponent(n)];return[...new Set(o)].filter(Boolean)},"generateUrlCandidates"),Vr=cn(t=>ka.test(t),"isHttpUrl"),Te=cn(t=>{if(!t)return[];try{if(Vr(t))return xa(t);const e=[t];if(t.startsWith("/")&&e.push(t.slice(1)),t.includes("?")){const n=t.split("?")[0];n&&e.push(n)}return[...new Set(e)].filter(Boolean)}catch(e){return console.warn(`Failed to normalize path "${t}":`,e),[]}},"normalizeIdCandidates");var _a=Object.defineProperty,Ee=b((t,e)=>_a(t,"name",{value:e,configurable:!0}),"o$4");const $a=Ee((t,e)=>t.split(/\n/g)[e-1]??"","getLine"),lr=Ee(t=>t.replaceAll(/\s+/g,""),"removeWhitespace"),Ea=Ee((t,e)=>{if(e<=0||e>t.length)return"";const n=Math.max(0,e-1),r=t.slice(n,n+64),o=/[A-Z_$][\w$]{2,}/i.exec(r);if(o?.[0])return o[0];let i=r.trim();return i.length<4&&(i=t.slice(Math.max(0,n-16),n+16).trim()),i},"extractCandidateToken"),Sa=Ee((t,e)=>{if(!t||t.length<3)return null;for(const[n,r]of e.entries()){if(!r)continue;const o=r.indexOf(t);if(o!==-1)return{column:o+1,line:n+1}}return null},"tryTokenBasedSearch"),Ca=Ee((t,e)=>{if(!t)return null;for(const[n,r]of e.entries()){if(!r)continue;const o=r.indexOf(t);if(o!==-1)return{column:o+1,line:n+1}}return null},"tryLineSubstringSearch"),La=Ee((t,e)=>{if(!t)return null;const n=lr(t);if(!n)return null;for(const[r,o]of e.entries()){if(!o)continue;const i=lr(o).indexOf(n);if(i!==-1){const s=Ta(o,i);if(s!==-1)return{column:s,line:r+1}}}return null},"tryWhitespaceInsensitiveSearch"),Ta=Ee((t,e)=>{let n=0;for(const[r,o]of[...t].entries())if(typeof o=="string"){if(n===e)return r+1;/\s/.test(o)||n++}return-1},"mapNormalizedToOriginalPosition"),Pa=Ee((t,e,n,r)=>{const o=$a(t,e);if(!o)return null;const i=r.split(/\n/g),s=Ea(o,n);return Sa(s,i)||Ca(o.trim(),i)||La(o.trim(),i)},"realignOriginalPosition");var Ma=Object.defineProperty,K=b((t,e)=>Ma(t,"name",{value:e,configurable:!0}),"C$5"),Ve=44,Nr=59,cr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zr=new Uint8Array(64),Wr=new Uint8Array(128);for(let t=0;t<cr.length;t++){const e=cr.charCodeAt(t);Zr[t]=e,Wr[e]=t}function q(t,e){let n=0,r=0,o=0;do{const s=t.next();o=Wr[s],n|=(o&31)<<r,r+=5}while(o&32);const i=n&1;return n>>>=1,i&&(n=-2147483648|-n),e+n}b(q,"h$2");K(q,"decodeInteger");function H(t,e,n){let r=e-n;r=r<0?-r<<1|1:r<<1;do{let o=r&31;r>>>=5,r>0&&(o|=32),t.write(Zr[o])}while(r>0);return e}b(H,"i$4");K(H,"encodeInteger");function ve(t,e){return t.pos>=e?!1:t.peek()!==Ve}b(ve,"S$4");K(ve,"hasMoreVlq");var dr=1024*16,pr=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}},dn=class{static{b(this,"T")}static{K(this,"StringWriter")}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(dr)}write(e){const{buffer:n}=this;n[this.pos++]=e,this.pos===dr&&(this.out+=pr.decode(n),this.pos=0)}flush(){const{buffer:e,out:n,pos:r}=this;return r>0?n+pr.decode(e.subarray(0,r)):n}},pn=class{static{b(this,"w")}static{K(this,"StringReader")}constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:n,pos:r}=this,o=n.indexOf(e,r);return o===-1?n.length:o}},Gr=[];function Fa(t){const{length:e}=t,n=new pn(t),r=[],o=[];let i=0;for(;n.pos<e;n.pos++){i=q(n,i);const s=q(n,0);if(!ve(n,e)){const d=o.pop();d[2]=i,d[3]=s;continue}const l=q(n,0),a=q(n,0)&1?[i,s,0,0,l,q(n,0)]:[i,s,0,0,l];let c=Gr;if(ve(n,e)){c=[];do{const d=q(n,0);c.push(d)}while(ve(n,e))}a.vars=c,r.push(a),o.push(a)}return r}b(Fa,"z");K(Fa,"decodeOriginalScopes");function Ra(t){const e=new dn;for(let n=0;n<t.length;)n=hn(t,n,e,[0]);return e.flush()}b(Ra,"F$4");K(Ra,"encodeOriginalScopes");function hn(t,e,n,r){const o=t[e],{0:i,1:s,2:l,3:a,4:c,vars:d}=o;e>0&&n.write(Ve),r[0]=H(n,i,r[0]),H(n,s,0),H(n,c,0);const u=o.length===6?1:0;H(n,u,0),o.length===6&&H(n,o[5],0);for(const g of d)H(n,g,0);for(e++;e<t.length;){const g=t[e],{0:v,1:f}=g;if(v>l||v===l&&f>=a)break;e=hn(t,e,n,r)}return n.write(Ve),r[0]=H(n,l,r[0]),H(n,a,0),e}b(hn,"P$4");K(hn,"_encodeOriginalScopes");function za(t){const{length:e}=t,n=new pn(t),r=[],o=[];let i=0,s=0,l=0,a=0,c=0,d=0,u=0,g=0;do{const v=n.indexOf(";");let f=0;for(;n.pos<v;n.pos++){if(f=q(n,f),!ve(n,v)){const D=o.pop();D[2]=i,D[3]=f;continue}const m=q(n,0),k=m&1,L=m&2,T=m&4;let $=null,M=Gr,z;if(k){const D=q(n,s);l=q(n,s===D?l:0),s=D,z=[i,f,0,0,D,l]}else z=[i,f,0,0];if(z.isScope=!!T,L){const D=a,Z=c;a=q(n,a);const U=D===a;c=q(n,U?c:0),d=q(n,U&&Z===c?d:0),$=[a,c,d]}if(z.callsite=$,ve(n,v)){M=[];do{u=i,g=f;const D=q(n,0);let Z;if(D<-1){Z=[[q(n,0)]];for(let U=-1;U>D;U--){const B=u;u=q(n,u),g=q(n,u===B?g:0);const pe=q(n,0);Z.push([pe,u,g])}}else Z=[[D]];M.push(Z)}while(ve(n,v))}z.bindings=M,r.push(z),o.push(z)}i++,n.pos=v+1}while(n.pos<e);return r}b(za,"H$2");K(za,"decodeGeneratedRanges");function Da(t){if(t.length===0)return"";const e=new dn;for(let n=0;n<t.length;)n=un(t,n,e,[0,0,0,0,0,0,0]);return e.flush()}b(Da,"J$1");K(Da,"encodeGeneratedRanges");function un(t,e,n,r){const o=t[e],{0:i,1:s,2:l,3:a,isScope:c,callsite:d,bindings:u}=o;r[0]<i?(Zt(n,r[0],i),r[0]=i,r[1]=0):e>0&&n.write(Ve),r[1]=H(n,o[1],r[1]);const g=(o.length===6?1:0)|(d?2:0)|(c?4:0);if(H(n,g,0),o.length===6){const{4:v,5:f}=o;v!==r[2]&&(r[3]=0),r[2]=H(n,v,r[2]),r[3]=H(n,f,r[3])}if(d){const{0:v,1:f,2:m}=o.callsite;v!==r[4]?(r[5]=0,r[6]=0):f!==r[5]&&(r[6]=0),r[4]=H(n,v,r[4]),r[5]=H(n,f,r[5]),r[6]=H(n,m,r[6])}if(u)for(const v of u){v.length>1&&H(n,-v.length,0);const f=v[0][0];H(n,f,0);let m=i,k=s;for(let L=1;L<v.length;L++){const T=v[L];m=H(n,T[1],m),k=H(n,T[2],k),H(n,T[0],0)}}for(e++;e<t.length;){const v=t[e],{0:f,1:m}=v;if(f>l||f===l&&m>=a)break;e=un(t,e,n,r)}return r[0]<l?(Zt(n,r[0],l),r[0]=l,r[1]=0):n.write(Ve),r[1]=H(n,a,r[1]),e}b(un,"V$1");K(un,"_encodeGeneratedRanges");function Zt(t,e,n){do t.write(Nr);while(++e<n)}b(Zt,"U$1");K(Zt,"catchupLine");function Yr(t){const{length:e}=t,n=new pn(t),r=[];let o=0,i=0,s=0,l=0,a=0;do{const c=n.indexOf(";"),d=[];let u=!0,g=0;for(o=0;n.pos<c;){let v;o=q(n,o),o<g&&(u=!1),g=o,ve(n,c)?(i=q(n,i),s=q(n,s),l=q(n,l),ve(n,c)?(a=q(n,a),v=[o,i,s,l,a]):v=[o,i,s,l]):v=[o],d.push(v),n.pos++}u||Xr(d),r.push(d),n.pos=c+1}while(n.pos<=e);return r}b(Yr,"K$2");K(Yr,"decode");function Xr(t){t.sort(Qr)}b(Xr,"Q$3");K(Xr,"sort");function Qr(t,e){return t[0]-e[0]}b(Qr,"X$3");K(Qr,"sortComparator");function Jr(t){const e=new dn;let n=0,r=0,o=0,i=0;for(let s=0;s<t.length;s++){const l=t[s];if(s>0&&e.write(Nr),l.length===0)continue;let a=0;for(let c=0;c<l.length;c++){const d=l[c];c>0&&e.write(Ve),a=H(e,d[0],a),d.length!==1&&(n=H(e,d[1],n),r=H(e,d[2],r),o=H(e,d[3],o),d.length!==4&&(i=H(e,d[4],i)))}}return e.flush()}b(Jr,"Z$2");K(Jr,"encode");var Aa=Object.defineProperty,oe=b((t,e)=>Aa(t,"name",{value:e,configurable:!0}),"c$4");const Ia=/^[\w+.-]+:\/\//,Ha=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Ba=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function Kr(t){return Ia.test(t)}b(Kr,"R$3");oe(Kr,"isAbsoluteUrl");function eo(t){return t.startsWith("//")}b(eo,"q$2");oe(eo,"isSchemeRelativeUrl");function gn(t){return t.startsWith("/")}b(gn,"m$5");oe(gn,"isAbsolutePath");function to(t){return t.startsWith("file:")}b(to,"v$4");oe(to,"isFileUrl");function Wt(t){return/^[.?#]/.test(t)}b(Wt,"u$2");oe(Wt,"isRelative");function Qe(t){const e=Ha.exec(t);return mn(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}b(Qe,"f$3");oe(Qe,"parseAbsoluteUrl");function no(t){const e=Ba.exec(t),n=e[2];return mn("file:","",e[1]||"","",gn(n)?n:"/"+n,e[3]||"",e[4]||"")}b(no,"w$2");oe(no,"parseFileUrl");function mn(t,e,n,r,o,i,s){return{scheme:t,user:e,host:n,port:r,path:o,query:i,hash:s,type:7}}b(mn,"y$5");oe(mn,"makeUrl");function Gt(t){if(eo(t)){const n=Qe("http:"+t);return n.scheme="",n.type=6,n}if(gn(t)){const n=Qe("http://foo.com"+t);return n.scheme="",n.host="",n.type=5,n}if(to(t))return no(t);if(Kr(t))return Qe(t);const e=Qe("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,e}b(Gt,"p$3");oe(Gt,"parseUrl");function ro(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}b(ro,"P$3");oe(ro,"stripPathFilename");function oo(t,e){fn(e,e.type),t.path==="/"?t.path=e.path:t.path=ro(e.path)+t.path}b(oo,"A$1");oe(oo,"mergePaths");function fn(t,e){const n=e<=4,r=t.path.split("/");let o=1,i=0,s=!1;for(let a=1;a<r.length;a++){const c=r[a];if(!c){s=!0;continue}if(s=!1,c!=="."){if(c===".."){i?(s=!0,i--,o--):n&&(r[o++]=c);continue}r[o++]=c,i++}}let l="";for(let a=1;a<o;a++)l+="/"+r[a];(!l||s&&!l.endsWith("/.."))&&(l+="/"),t.path=l}b(fn,"d$7");oe(fn,"normalizePath");function io(t,e){if(!t&&!e)return"";const n=Gt(t);let r=n.type;if(e&&r!==7){const i=Gt(e),s=i.type;switch(r){case 1:n.hash=i.hash;case 2:n.query=i.query;case 3:case 4:oo(n,i);case 5:n.user=i.user,n.host=i.host,n.port=i.port;case 6:n.scheme=i.scheme}s>r&&(r=s)}fn(n,r);const o=n.query+n.hash;switch(r){case 2:case 3:return o;case 4:{const i=n.path.slice(1);return i?Wt(e||t)&&!Wt(i)?"./"+i+o:i+o:o||"."}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}b(io,"F$3");oe(io,"resolve");var ja=Object.defineProperty,P=b((t,e)=>ja(t,"name",{value:e,configurable:!0}),"i$3");function so(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}b(so,"ae");P(so,"stripFilename");function ao(t,e){const n=so(t),r=e?e+"/":"";return o=>io(r+(o||""),n)}b(ao,"ge");P(ao,"resolver");var ce=0,vn=1,wn=2,bn=3,lo=4,co=1,po=2;function ho(t,e){const n=Yt(t,0);if(n===t.length)return t;e||(t=t.slice());for(let r=n;r<t.length;r=Yt(t,r+1))t[r]=go(t[r],e);return t}b(ho,"he$1");P(ho,"maybeSort");function Yt(t,e){for(let n=e;n<t.length;n++)if(!uo(t[n]))return n;return t.length}b(Yt,"X$2");P(Yt,"nextUnsortedSegmentLine");function uo(t){for(let e=1;e<t.length;e++)if(t[e][ce]<t[e-1][ce])return!1;return!0}b(uo,"_e");P(uo,"isSorted");function go(t,e){return e||(t=t.slice()),t.sort(yn)}b(go,"ve$1");P(go,"sortSegments");function yn(t,e){return t[ce]-e[ce]}b(yn,"$");P(yn,"sortComparator");function mo(t,e){const n=e.map(()=>[]);for(let r=0;r<t.length;r++){const o=t[r];for(let i=0;i<o.length;i++){const s=o[i];if(s.length===1)continue;const l=s[vn],a=s[wn],c=s[bn],d=n[l];(d[a]||(d[a]=[])).push([c,r,s[ce]])}}for(let r=0;r<n.length;r++){const o=n[r];for(let i=0;i<o.length;i++){const s=o[i];s&&s.sort(yn)}}return n}b(mo,"Se");P(mo,"buildBySources");var Pe=!1;function fo(t,e,n,r){for(;n<=r;){const o=n+(r-n>>1),i=t[o][ce]-e;if(i===0)return Pe=!0,o;i<0?n=o+1:r=o-1}return Pe=!1,n-1}b(fo,"Ee");P(fo,"binarySearch");function kn(t,e,n){for(let r=n+1;r<t.length&&t[r][ce]===e;n=r++);return n}b(kn,"H$1");P(kn,"upperBound");function xn(t,e,n){for(let r=n-1;r>=0&&t[r][ce]===e;n=r--);return n}b(xn,"Y");P(xn,"lowerBound");function _n(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}b(_n,"k$1");P(_n,"memoizedState");function vo(t,e,n,r){const{lastKey:o,lastNeedle:i,lastIndex:s}=n;let l=0,a=t.length-1;if(r===o){if(e===i)return Pe=s!==-1&&t[s][ce]===e,s;e>=i?l=s===-1?0:s:a=s}return n.lastKey=r,n.lastNeedle=e,n.lastIndex=fo(t,e,l,a)}b(vo,"Me");P(vo,"memoizedBinarySearch");function Ct(t){return typeof t=="string"?JSON.parse(t):t}b(Ct,"j$1");P(Ct,"parse");P(function(t,e){const n=Ct(t);if(!("sections"in n))return new Tt(n,e);const r=[],o=[],i=[],s=[],l=[];$n(n,e,r,o,i,s,l,0,0,1/0,1/0);const a={version:3,file:n.file,names:s,sources:o,sourcesContent:i,mappings:r,ignoreList:l};return $o(a)},"FlattenMap");function $n(t,e,n,r,o,i,s,l,a,c,d){const{sections:u}=t;for(let g=0;g<u.length;g++){const{map:v,offset:f}=u[g];let m=c,k=d;if(g+1<u.length){const L=u[g+1].offset;m=Math.min(c,l+L.line),m===c?k=Math.min(d,a+L.column):m<c&&(k=a+L.column)}wo(v,e,n,r,o,i,s,l+f.line,a+f.column,m,k)}}b($n,"ee$1");P($n,"recurse");function wo(t,e,n,r,o,i,s,l,a,c,d){const u=Ct(t);if("sections"in u)return $n(...arguments);const g=new Tt(u,e),v=r.length,f=i.length,m=ze(g),{resolvedSources:k,sourcesContent:L,ignoreList:T}=g;if(gt(r,k),gt(i,g.names),L)gt(o,L);else for(let $=0;$<k.length;$++)o.push(null);if(T)for(let $=0;$<T.length;$++)s.push(T[$]+v);for(let $=0;$<m.length;$++){const M=l+$;if(M>c)return;const z=bo(n,M),D=$===0?a:0,Z=m[$];for(let U=0;U<Z.length;U++){const B=Z[U],pe=D+B[ce];if(M===c&&pe>=d)return;if(B.length===1){z.push([pe]);continue}const Ae=v+B[vn],he=B[wn],Se=B[bn];z.push(B.length===4?[pe,Ae,he,Se]:[pe,Ae,he,Se,f+B[lo]])}}}b(wo,"me");P(wo,"addSection");function gt(t,e){for(let n=0;n<e.length;n++)t.push(e[n])}b(gt,"G$1");P(gt,"append");function bo(t,e){for(let n=t.length;n<=e;n++)t[n]=[];return t[e]}b(bo,"xe$1");P(bo,"getLine");var yo="`line` must be greater than 0 (lines start at line 1)",ko="`column` must be greater than or equal to 0 (columns start at column 0)",bt=-1,Lt=1,Tt=class{static{b(this,"R")}static{P(this,"TraceMap")}constructor(e,n){const r=typeof e=="string";if(!r&&e._decodedMemo)return e;const o=Ct(e),{version:i,file:s,names:l,sourceRoot:a,sources:c,sourcesContent:d}=o;this.version=i,this.file=s,this.names=l||[],this.sourceRoot=a,this.sources=c,this.sourcesContent=d,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const u=ao(n,a);this.resolvedSources=c.map(u);const{mappings:g}=o;if(typeof g=="string")this._encoded=g,this._decoded=void 0;else if(Array.isArray(g))this._encoded=void 0,this._decoded=ho(g,r);else throw o.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(o)}`);this._decodedMemo=_n(),this._bySources=void 0,this._bySourceMemos=void 0}};function xo(t){var e,n;return(n=(e=t)._encoded)!=null?n:e._encoded=Jr(t._decoded)}b(xo,"oe$1");P(xo,"encodedMappings");function ze(t){var e;return(e=t)._decoded||(e._decoded=Yr(t._encoded))}b(ze,"O$1");P(ze,"decodedMappings");function Oa(t,e,n){const r=ze(t);if(e>=r.length)return null;const o=r[e],i=rt(o,t._decodedMemo,e,n,Lt);return i===-1?null:o[i]}b(Oa,"Oe");P(Oa,"traceSegment");function _o(t,e){let{line:n,column:r,bias:o}=e;if(n--,n<0)throw new Error(yo);if(r<0)throw new Error(ko);const i=ze(t);if(n>=i.length)return Je(null,null,null,null);const s=i[n],l=rt(s,t._decodedMemo,n,r,o||Lt);if(l===-1)return Je(null,null,null,null);const a=s[l];if(a.length===1)return Je(null,null,null,null);const{names:c,resolvedSources:d}=t;return Je(d[a[vn]],a[wn]+1,a[bn],a.length===5?c[a[lo]]:null)}b(_o,"Le");P(_o,"originalPositionFor");function qa(t,e){const{source:n,line:r,column:o,bias:i}=e;return Sn(t,n,r,o,i||Lt,!1)}b(qa,"ye$1");P(qa,"generatedPositionFor");function Ua(t,e){const{source:n,line:r,column:o,bias:i}=e;return Sn(t,n,r,o,i||bt,!0)}b(Ua,"Ce$1");P(Ua,"allGeneratedPositionsFor");function Va(t,e){const n=ze(t),{names:r,resolvedSources:o}=t;for(let i=0;i<n.length;i++){const s=n[i];for(let l=0;l<s.length;l++){const a=s[l],c=i+1,d=a[0];let u=null,g=null,v=null,f=null;a.length!==1&&(u=o[a[1]],g=a[2]+1,v=a[3]),a.length===5&&(f=r[a[4]]),e({generatedLine:c,generatedColumn:d,source:u,originalLine:g,originalColumn:v,name:f})}}}b(Va,"Ie");P(Va,"eachMapping");function En(t,e){const{sources:n,resolvedSources:r}=t;let o=n.indexOf(e);return o===-1&&(o=r.indexOf(e)),o}b(En,"re$1");P(En,"sourceIndex");function Na(t,e){const{sourcesContent:n}=t;if(n==null)return null;const r=En(t,e);return r===-1?null:n[r]}b(Na,"Ne");P(Na,"sourceContentFor");function Za(t,e){const{ignoreList:n}=t;if(n==null)return!1;const r=En(t,e);return r===-1?!1:n.includes(r)}b(Za,"be$1");P(Za,"isIgnored");function $o(t,e){const n=new Tt(Pt(t,[]),e);return n._decoded=t.mappings,n}b($o,"se");P($o,"presortedDecodedMap");function Wa(t){return Pt(t,ze(t))}b(Wa,"Re");P(Wa,"decodedMap");function Ga(t){return Pt(t,xo(t))}b(Ga,"we$1");P(Ga,"encodedMap");function Pt(t,e){return{version:t.version,file:t.file,names:t.names,sourceRoot:t.sourceRoot,sources:t.sources,sourcesContent:t.sourcesContent,mappings:e,ignoreList:t.ignoreList||t.x_google_ignoreList}}b(Pt,"B");P(Pt,"clone");function Je(t,e,n,r){return{source:t,line:e,column:n,name:r}}b(Je,"b$2");P(Je,"OMapping");function je(t,e){return{line:t,column:e}}b(je,"y$4");P(je,"GMapping");function rt(t,e,n,r,o){let i=vo(t,r,e,n);return Pe?i=(o===bt?kn:xn)(t,r,i):o===bt&&i++,i===-1||i===t.length?-1:i}b(rt,"w$1");P(rt,"traceSegmentInternal");function Eo(t,e,n,r,o){let i=rt(t,e,n,r,Lt);if(!Pe&&o===bt&&i++,i===-1||i===t.length)return[];const s=Pe?r:t[i][ce];Pe||(i=xn(t,s,i));const l=kn(t,s,i),a=[];for(;i<=l;i++){const c=t[i];a.push(je(c[co]+1,c[po]))}return a}b(Eo,"Ue");P(Eo,"sliceGeneratedPositions");function Sn(t,e,n,r,o,i){var s,l;if(n--,n<0)throw new Error(yo);if(r<0)throw new Error(ko);const{sources:a,resolvedSources:c}=t;let d=a.indexOf(e);if(d===-1&&(d=c.indexOf(e)),d===-1)return i?[]:je(null,null);const u=(s=t)._bySourceMemos||(s._bySourceMemos=a.map(_n)),g=((l=t)._bySources||(l._bySources=mo(ze(t),u)))[d][n];if(g==null)return i?[]:je(null,null);const v=u[d];if(i)return Eo(g,v,n,r,o);const f=rt(g,v,n,r,o);if(f===-1)return je(null,null);const m=g[f];return je(m[co]+1,m[po])}b(Sn,"ie");P(Sn,"generatedPosition");var Ya=Object.defineProperty,se=b((t,e)=>Ya(t,"name",{value:e,configurable:!0}),"u$1");const Xa=/`((?:[^`$]|\$\{[^}]+\})*)`/g,hr=/\$\{[^}]+\}/g,Qa=/[.*+?^${}()|[\]\\]/g,So=[/new Error\(/,/throw new Error\(/,/new Error`/,/throw new Error`/,/new [A-Z]\w*\(/,/throw new [A-Z]\w*\(/,/new [A-Z]\w*`/,/throw new [A-Z]\w*`/],Me=se(t=>t.replaceAll(Qa,String.raw`\$&`),"escapeRegex"),Ja=se(t=>{const e=Me(t);return[t,`new Error("${e}")`,`new Error('${e}')`,`new Error(\`${Me(t)}\`)`,`throw new Error("${e}")`,`throw new Error('${e}')`,`throw new Error(\`${Me(t)}\`)`,`Error("${e}")`,`Error('${e}')`]},"createErrorPatterns"),ur=se((t,e)=>{const n=[...t.matchAll(Xa)];for(const r of n){const o=r[1];if(!o)continue;const i=o.split(hr);if(i.every(l=>l===""||e.includes(l))&&i.length>1)return!0;if(!o)continue;const s=o.replaceAll(hr,"(.+?)");try{if(new RegExp(`^${Me(s)}$`).test(e))return!0}catch{}}return!1},"checkTemplateLiteralMatch"),Ka=[/Failed to resolve import ["']([^"']+)["'](?:\s+from ["']([^"']+)["'])?/,/(.+?)\s+from line \d+/,/(.+?)\s+is not defined/,/(.+?)\s+is not a function/,/Cannot read properties of (.+?)\s+\(reading (.+?)\)/],el=se(t=>{for(const e of Ka){const n=t.match(e);if(n)return n}return null},"findDynamicErrorMatch"),gr=se(t=>{let e=null,n=null;for(const r of So){const o=t.match(r);o&&(!e||r.source.includes("throw")&&!n?.source.includes("throw"))&&(e=o,n=r)}return{bestMatch:e,bestPattern:n}},"findBestErrorConstructor"),mr=se((t,e)=>{let n=t.index;if(e.source.includes("throw new")&&t[0].startsWith("throw new")){const r=t[0].indexOf("new");r!==-1&&(n+=r)}return n+1},"calculateActualColumn"),tl=se((t,e,n=0)=>{if(!t||!e)return null;const r=t.split(`
1754
- `),o=el(e),i=Ja(e),s=se((u,g,v)=>{let f=0;for(const[m,k]of u.entries()){if(!k)continue;const L=k.includes(g)||ur(k,g),T=So.some($=>$.test(k));if(L&&T){const{bestMatch:$,bestPattern:M}=gr(k);if($&&M&&(f++,f>v))return{column:mr($,M),line:m+1}}}return null},"processErrorConstructorLines")(r,e,n);if(s)return s;o&&se((u,g,v)=>{if(u[0].includes("Failed to resolve import")){const f=u[1];if(!f)return;const m=Me(f);v.unshift(`import.*from ["']${m}["']`,`import.*["']${m}["']`,f)}else if(u[0].includes("is not defined")){const f=u[1];if(!f)return;v.unshift(f,`{${f}}`,`src={${f}}`,`${f}.`,`=${f}`)}else if(u[0].includes("Cannot read properties")){const f=u[1],m=u[2];if(!m)return;v.unshift(m,`${f}.${m}`,`${f}?.${m}`,`${f}[${m}]`)}else{const f=u[1];if(!f)return;const m=Me(g),k=Me(f);v.unshift(`new Error(\`${k}`,`throw new Error(\`${k}`,`new Error("${k}`,`new Error('${k}`,`throw new Error("${k}`,`throw new Error('${k}`,`new Error("${m}")`,`new Error('${m}')`,`throw new Error("${m}")`,`throw new Error('${m}')`,`new Error(\`${m}\`)`,`throw new Error(\`${m}\`)`)}},"addDynamicPatterns")(o,e,i);const l=se((u,g,v)=>{let f=0;for(const[m,k]of u.entries()){if(!k||!ur(k,g))continue;const{bestMatch:L,bestPattern:T}=gr(k);if(L&&T&&(f++,f>v))return{column:mr(L,T),line:m+1}}return null},"processTemplateLiteralLines"),a=se((u,g,v,f)=>{let m=0;for(const[k,L]of u.entries()){if(!L)continue;let T=-1,$=null;for(const M of g){const z=L.indexOf(M);z!==-1&&(T===-1||z<T)&&(T=z,$=M)}if(T!==-1&&$&&(m++,m>f))return{column:c(T,$,L,v),line:k+1}}return null},"processPatternLines"),c=se((u,g,v,f)=>{if(!f)return u+1;if(f[0].includes("Failed to resolve import")){const m=f[1];if(v.includes(`"${m}"`)||v.includes(`'${m}'`)){const k=v.includes(`"${m}"`)?'"':"'";return v.indexOf(`${k}${m}${k}`)+1}}else if(f[0].includes("is not defined")){const m=f[1];if(m&&g===m)return u+1;if(m&&g.includes(m))return u+g.indexOf(m)+1}else if(f[0].includes("Cannot read properties")){const m=f[2];if(m&&g.includes(m))return u+g.indexOf(m)+1}else if(g.includes("new Error("))return v.indexOf("new Error(")+1;return u+1},"calculatePatternColumn");return l(r,e,n)||a(r,i,o,n)},"findErrorInSourceCode");var nl=Object.defineProperty,ot=b((t,e)=>nl(t,"name",{value:e,configurable:!0}),"m$4");const rl=1,fr=ot((t,e)=>{let n=t,r=e;return t>=20?n=Math.max(1,Math.round(t*.5)):t>15?n=Math.max(1,Math.round(t*.6)):t>10?n=Math.max(1,t-8):n=Math.max(1,t-3),e>=10||e>7?r=Math.max(0,e-1):e>5&&(r=Math.max(0,e)),{estimatedColumn:r,estimatedLine:n}},"estimateOriginalPosition"),ol=ot((t,e,n)=>{try{const r=new Tt(t),o=[{column:n,desc:"original",line:e},{column:Math.max(0,n-rl),desc:"offset",line:e},{column:n,desc:"line above",line:e-1},{column:n,desc:"line below",line:e+1},...Array.from({length:5},(i,s)=>({column:Math.max(0,n-2+s),desc:`col ${n-2+s}`,line:e}))];for(const i of o){const s=_o(r,{column:i.column,line:i.line});if(s.source&&s.line!==void 0&&s.column!==void 0&&s.line>0&&s.column>=0)return{column:s.column,line:s.line,source:s.source}}}catch(r){console.warn("Source map processing failed:",r)}return null},"resolveSourceMapPosition"),il=ot((t,e)=>e?Vr(t)?sl(t,e):e:t,"resolveSourcePath"),sl=ot((t,e)=>{try{const n=new URL(t),r=(n.pathname||"").replace(/^\//,""),o=r.includes("/")?r.slice(0,Math.max(0,r.lastIndexOf("/"))):"";return`${n.origin}/${o?`${o}/`:""}${e}`}catch(n){return console.warn("URL parsing failed for source path resolution:",n),t}},"resolveHttpSourcePath"),Xt=ot(async(t,e,n,r,o,i,s=0)=>{if(i&&e)try{let a=null;if(e.transformResult?.map?.sourcesContent?.[0]?a=e.transformResult.map.sourcesContent[0]:e.transformResult?.code&&(a=e.transformResult.code),!a&&(e.id||e.url)){const c=e.id||e.url;if(c)try{const d=await t.transformRequest(c);d?.map&&"sourcesContent"in d.map&&d.map.sourcesContent?.[0]?a=d.map.sourcesContent[0]:d?.code&&(a=d.code)}catch(d){console.warn("Failed to get fresh source for error search:",d)}}if(!a&&n)try{const c=await import("node:fs/promises");let d=n;if(n.includes("://"))try{d=new URL(n).pathname}catch{const u=n.indexOf("://");u!==-1&&(d=n.slice(u+3))}d.startsWith("/")||(d=`${t.config.root||process.cwd()}/${d}`),a=await c.readFile(d,"utf8")}catch(c){console.warn("Failed to read source file from disk:",c)}if(a){const c=tl(a,i,s);if(c)return{originalFileColumn:c.column,originalFileLine:c.line,originalFilePath:n}}}catch(a){console.warn("Source code search failed:",a)}let l=e?.transformResult?.map;if(!l&&(e?.id||e?.url)){const a=e.id||e.url;if(a)try{const c=await t.transformRequest(a);c?.map&&(l=c.map)}catch(c){console.warn("Failed to get fresh source map:",c)}}if(!l){const{estimatedColumn:a,estimatedLine:c}=fr(r,o);return{originalFileColumn:a,originalFileLine:c,originalFilePath:n}}try{const a=ol(l,r,o);if(!a){const{estimatedColumn:d,estimatedLine:u}=fr(r,o);return{originalFileColumn:d,originalFileLine:u,originalFilePath:n}}const c=il(n,a.source);return{originalFileColumn:a.column,originalFileLine:a.line,originalFilePath:c}}catch(a){return console.warn("Source map resolution failed:",a),{originalFileColumn:o,originalFileLine:r,originalFilePath:n}}},"resolveOriginalLocation");var al=Object.defineProperty,ll=b((t,e)=>al(t,"name",{value:e,configurable:!0}),"$e"),cl=Object.defineProperty,Cn=ll((t,e)=>cl(t,"name",{value:e,configurable:!0}),"W"),dl=Object.defineProperty,E=Cn((t,e)=>dl(t,"name",{value:e,configurable:!0}),"u$1");let vr=E(()=>{var t=(()=>{var e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i=E((p,h)=>{for(var w in h)e(p,w,{get:h[w],enumerable:!0})},"ne"),s=E((p,h,w,x)=>{if(h&&typeof h=="object"||typeof h=="function")for(let y of r(h))!o.call(p,y)&&y!==w&&e(p,y,{get:E(()=>h[y],"get"),enumerable:!(x=n(h,y))||x.enumerable});return p},"ae"),l=E(p=>s(e({},"__esModule",{value:!0}),p),"oe"),a={};i(a,{zeptomatch:E(()=>qn,"zeptomatch")});var c=E(p=>{const h=new Set,w=[p];for(let x=0;x<w.length;x++){const y=w[x];if(h.has(y))continue;h.add(y);const{children:_}=y;if(_?.length)for(let C=0,A=_.length;C<A;C++)w.push(_[C])}return Array.from(h)},"M"),d=E(p=>{let h="";const w=c(p);for(let x=0,y=w.length;x<y;x++){const _=w[x];if(!_.regex)continue;const C=_.regex.flags;if(h||(h=C),h!==C)throw new Error(`Inconsistent RegExp flags used: "${h}" and "${C}"`)}return h},"se"),u=E((p,h,w)=>{const x=w.get(p);if(x!==void 0)return x;const y=p.partial??h;let _="";if(p.regex&&(_+=y?"(?:$|":"",_+=p.regex.source),p.children?.length){const C=v(p.children.map(A=>u(A,h,w)).filter(Boolean));if(C?.length){const A=p.children.some(Ze=>!Ze.regex||!(Ze.partial??h)),Q=C.length>1||y&&(!_.length||A);_+=Q?y?"(?:$|":"(?:":"",_+=C.join("|"),_+=Q?")":""}}return p.regex&&(_+=y?")":""),w.set(p,_),_},"O"),g=E((p,h)=>{const w=new Map,x=c(p);for(let y=x.length-1;y>=0;y--){const _=u(x[y],h,w);if(!(y>0))return _}return""},"ie"),v=E(p=>Array.from(new Set(p)),"ue"),f=E((p,h,w)=>f.compile(p,w).test(h),"R");f.compile=(p,h)=>{const w=h?.partial??!1,x=g(p,w),y=d(p);return new RegExp(`^(?:${x})$`,y)};var m=f,k=E((p,h)=>{const w=m.compile(p,h),x=`${w.source.slice(0,-1)}[\\\\/]?$`,y=w.flags;return new RegExp(x,y)},"le"),L=k,T=E(p=>{const h=p.map(x=>x.source).join("|")||"$^",w=p[0]?.flags;return new RegExp(h,w)},"ve"),$=T,M=E(p=>Array.isArray(p),"j"),z=E(p=>typeof p=="function","_"),D=E(p=>p.length===0,"he"),Z=(()=>{const{toString:p}=Function.prototype,h=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return w=>(w.length===0||w.length===1)&&h.test(p.call(w))})(),U=E(p=>typeof p=="number","de"),B=E(p=>typeof p=="object"&&p!==null,"xe"),pe=E(p=>p instanceof RegExp,"me"),Ae=(()=>{const p=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return h=>p.test(h.source)})(),he=(()=>{const p=/^[a-zA-Z0-9_-]+$/;return h=>p.test(h.source)&&!h.flags.includes("i")})(),Se=E(p=>typeof p=="string","A"),F=E(p=>p===void 0,"f"),j=E(p=>{const h=new Map;return w=>{const x=h.get(w);if(x!==void 0)return x;const y=p(w);return h.set(w,y),y}},"ye"),G=E((p,h,w={})=>{const x={cache:{},input:p,index:0,indexBacktrackMax:0,options:w,output:[]},y=xe(h)(x),_=Math.max(x.index,x.indexBacktrackMax);if(y&&x.index===p.length)return x.output;throw new Error(`Failed to parse at index ${_}`)},"I"),S=E((p,h)=>M(p)?ye(p,h):Se(p)?lt(p,h):ae(p,h),"i"),ye=E((p,h)=>{const w={};for(const x of p){if(x.length!==1)throw new Error(`Invalid character: "${x}"`);const y=x.charCodeAt(0);w[y]=!0}return x=>{const y=x.input;let _=x.index,C=_;for(;C<y.length&&y.charCodeAt(C)in w;)C+=1;if(C>_){if(!F(h)&&!x.options.silent){const A=y.slice(_,C),Q=z(h)?h(A,y,`${_}`):h;F(Q)||x.output.push(Q)}x.index=C}return!0}},"we"),ae=E((p,h)=>{if(he(p))return lt(p.source,h);{const w=p.source,x=p.flags.replace(/y|$/,"y"),y=new RegExp(w,x);return Ae(p)&&z(h)&&!Z(h)?st(y,h):at(y,h)}},"$e"),st=E((p,h)=>w=>{const x=w.index,y=w.input;p.lastIndex=x;const _=p.exec(y);if(_){const C=p.lastIndex;if(!w.options.silent){const A=h(..._,y,`${x}`);F(A)||w.output.push(A)}return w.index=C,!0}else return!1},"Ee"),at=E((p,h)=>w=>{const x=w.index,y=w.input;if(p.lastIndex=x,p.test(y)){const _=p.lastIndex;if(!F(h)&&!w.options.silent){const C=z(h)?h(y.slice(x,_),y,`${x}`):h;F(C)||w.output.push(C)}return w.index=_,!0}else return!1},"Ce"),lt=E((p,h)=>w=>{const x=w.index,y=w.input;if(y.startsWith(p,x)){if(!F(h)&&!w.options.silent){const _=z(h)?h(p,y,`${x}`):h;F(_)||w.output.push(_)}return w.index+=p.length,!0}else return!1},"F"),ke=E((p,h,w,x)=>{const y=xe(p),_=h>1;return Rt(Ft(Pn(C=>{let A=0;for(;A<w;){const Q=C.index;if(!y(C)||(A+=1,C.index===Q))break}return A>=h},_),x))},"k"),X=E((p,h)=>ke(p,0,1,h),"L"),te=E((p,h)=>ke(p,0,1/0,h),"$"),Ce=E((p,h)=>ke(p,1,1/0,h),"Re"),re=E((p,h)=>{const w=p.map(xe);return Rt(Ft(Pn(x=>{for(let y=0,_=w.length;y<_;y++)if(!w[y](x))return!1;return!0}),h))},"x"),ie=E((p,h)=>{const w=p.map(xe);return Rt(Ft(x=>{for(let y=0,_=w.length;y<_;y++)if(w[y](x))return!0;return!1},h))},"p"),Pn=E((p,h=!0,w=!1)=>{const x=xe(p);return h?y=>{const _=y.index,C=y.output.length,A=x(y);return!A&&!w&&(y.indexBacktrackMax=Math.max(y.indexBacktrackMax,y.index)),(!A||w)&&(y.index=_,y.output.length!==C&&(y.output.length=C)),A}:x},"q"),Ft=E((p,h)=>{const w=xe(p);return h?x=>{if(x.options.silent)return w(x);const y=x.output.length;if(w(x)){const _=x.output.splice(y,1/0),C=h(_);return F(C)||x.output.push(C),!0}else return!1}:w},"B"),Rt=(()=>{let p=0;return h=>{const w=xe(h),x=p+=1;return y=>{var _;if(y.options.memoization===!1)return w(y);const C=y.index,A=(_=y.cache)[x]||(_[x]={indexMax:-1,queue:[]}),Q=A.queue;if(C<=A.indexMax){const We=A.store||(A.store=new Map);if(Q.length){for(let He=0,Ai=Q.length;He<Ai;He+=2){const Ii=Q[He*2],Hi=Q[He*2+1];We.set(Ii,Hi)}Q.length=0}const ue=We.get(C);if(ue===!1)return!1;if(U(ue))return y.index=ue,!0;if(ue)return y.index=ue.index,ue.output?.length&&y.output.push(...ue.output),!0}const Ze=y.output.length,Di=w(y);if(A.indexMax=Math.max(A.indexMax,C),Di){const We=y.index,ue=y.output.length;if(ue>Ze){const He=y.output.slice(Ze,ue);Q.push(C,{index:We,output:He})}else Q.push(C,We);return!0}else return Q.push(C,!1),!1}}})(),Mn=E(p=>{let h;return w=>(h||(h=xe(p())),h(w))},"G"),xe=j(p=>{if(z(p))return D(p)?Mn(p):p;if(Se(p)||pe(p))return S(p);if(M(p))return re(p);if(B(p))return ie(Object.values(p));throw new Error("Invalid rule")}),Le=E(p=>p,"d"),Ro=E(p=>typeof p=="string","ke"),zo=E(p=>{const h=new WeakMap,w=new WeakMap;return(x,y)=>{const _=y?.partial?w:h,C=_.get(x);if(C!==void 0)return C;const A=p(x,y);return _.set(x,A),A}},"Be"),Do=E(p=>{const h={},w={};return(x,y)=>{const _=y?.partial?w:h;return _[x]??(_[x]=p(x,y))}},"Pe"),Ao=S(/\\./,Le),Io=S(/./,Le),Ho=S(/\*\*\*+/,"*"),Bo=S(/([^/{[(!])\*\*/,(p,h)=>`${h}*`),jo=S(/(^|.)\*\*(?=[^*/)\]}])/,(p,h)=>`${h}*`),Oo=te(ie([Ao,Ho,Bo,jo,Io])),qo=Oo,Uo=E(p=>G(p,qo,{memoization:!1}).join(""),"Ie"),Vo=Uo,Fn="abcdefghijklmnopqrstuvwxyz",No=E(p=>{let h="";for(;p>0;){const w=(p-1)%26;h=Fn[w]+h,p=Math.floor((p-1)/26)}return h},"Le"),Rn=E(p=>{let h=0;for(let w=0,x=p.length;w<x;w++)h=h*26+Fn.indexOf(p[w])+1;return h},"V"),zt=E((p,h)=>{if(h<p)return zt(h,p);const w=[];for(;p<=h;)w.push(p++);return w},"b"),Zo=E((p,h,w)=>zt(p,h).map(x=>String(x).padStart(w,"0")),"qe"),zn=E((p,h)=>zt(Rn(p),Rn(h)).map(No),"W"),W=E(p=>({partial:!1,regex:new RegExp(p,"s"),children:[]}),"c"),Ne=E(p=>({children:p}),"y"),Ie=(()=>{const p=E((h,w,x)=>{if(x.has(h))return;x.add(h);const{children:y}=h;if(!y.length)y.push(w);else for(let _=0,C=y.length;_<C;_++)p(y[_],w,x)},"e");return h=>{if(!h.length)return Ne([]);for(let w=h.length-1;w>=1;w--){const x=new Set,y=h[w-1],_=h[w];p(y,_,x)}return h[0]}})(),_e=E(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),Wo=S(/\\./,W),Go=S(/[$.*+?^(){}[\]\|]/,p=>W(`\\${p}`)),Yo=S(/[\\\/]/,_e),Xo=S(/[^$.*+?^(){}[\]\|\\\/]+/,W),Qo=S(/^(?:!!)*!(.*)$/,(p,h)=>W(`(?!^${qn.compile(h).source}$).*?`)),Jo=S(/^(!!)+/),Ko=ie([Qo,Jo]),ei=S(/\/(\*\*\/)+/,()=>Ne([Ie([_e(),W(".+?"),_e()]),_e()])),ti=S(/^(\*\*\/)+/,()=>Ne([W("^"),Ie([W(".*?"),_e()])])),ni=S(/\/(\*\*)$/,()=>Ne([Ie([_e(),W(".*?")]),W("$")])),ri=S(/\*\*/,()=>W(".*?")),Dn=ie([ei,ti,ni,ri]),oi=S(/\*\/(?!\*\*\/|\*$)/,()=>Ie([W("[^\\\\/]*?"),_e()])),ii=S(/\*/,()=>W("[^\\\\/]*")),An=ie([oi,ii]),In=S("?",()=>W("[^\\\\/]")),si=S("[",Le),ai=S("]",Le),li=S(/[!^]/,"^\\\\/"),ci=S(/[a-z]-[a-z]|[0-9]-[0-9]/i,Le),di=S(/\\./,Le),pi=S(/[$.*+?^(){}[\|]/,p=>`\\${p}`),hi=S(/[\\\/]/,"\\\\/"),ui=S(/[^$.*+?^(){}[\]\|\\\/]+/,Le),gi=ie([di,pi,hi,ci,ui]),Hn=re([si,X(li),te(gi),ai],p=>W(p.join(""))),mi=S("{","(?:"),fi=S("}",")"),vi=S(/(\d+)\.\.(\d+)/,(p,h,w)=>Zo(+h,+w,Math.min(h.length,w.length)).join("|")),wi=S(/([a-z]+)\.\.([a-z]+)/,(p,h,w)=>zn(h,w).join("|")),bi=S(/([A-Z]+)\.\.([A-Z]+)/,(p,h,w)=>zn(h.toLowerCase(),w.toLowerCase()).join("|").toUpperCase()),yi=ie([vi,wi,bi]),Bn=re([mi,yi,fi],p=>W(p.join(""))),ki=S("{"),xi=S("}"),_i=S(","),$i=S(/\\./,W),Ei=S(/[$.*+?^(){[\]\|]/,p=>W(`\\${p}`)),Si=S(/[\\\/]/,_e),Ci=S(/[^$.*+?^(){}[\]\|\\\/,]+/,W),Li=Mn(()=>On),Ti=S("",()=>W("(?:)")),Pi=Ce(ie([Dn,An,In,Hn,Bn,Li,$i,Ei,Si,Ci]),Ie),jn=ie([Pi,Ti]),On=re([ki,X(re([jn,te(re([_i,jn]))])),xi],Ne),Mi=te(ie([Ko,Dn,An,In,Hn,Bn,On,Wo,Go,Yo,Xo]),Ie),Fi=Mi,Ri=E(p=>G(p,Fi,{memoization:!1})[0],"kr"),zi=Ri,Dt=E((p,h,w)=>Dt.compile(p,w).test(h),"N");Dt.compile=(()=>{const p=Do((w,x)=>L(zi(Vo(w)),x)),h=zo((w,x)=>$(w.map(y=>p(y,x))));return(w,x)=>Ro(w)?p(w,x):h(w,x)})();var qn=Dt;return l(a)})();return t.default||t},"_lazyMatch"),It;const pl=E((t,e)=>(It||(It=vr(),vr=null),It(t,e)),"default");var hl=Object.defineProperty,ul=Cn((t,e)=>hl(t,"name",{value:e,configurable:!0}),"t$1");const gl=/^[A-Z]:\//i,De=ul((t="")=>t&&t.replaceAll("\\","/").replace(gl,e=>e.toUpperCase()),"normalizeWindowsPath");var ml=Object.defineProperty,ne=Cn((t,e)=>ml(t,"name",{value:e,configurable:!0}),"r");const fl=/^[/\\]{2}/,vl=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Co=/^[A-Z]:$/i,wr=/^\/([A-Z]:)?$/i,wl=/.(\.[^./]+)$/,bl=/^[/\\]|^[a-z]:[/\\]/i,yl=ne(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Lo=ne((t,e)=>{let n="",r=0,o=-1,i=0,s;for(let l=0;l<=t.length;++l){if(l<t.length)s=t[l];else{if(s==="/")break;s="/"}if(s==="/"){if(!(o===l-1||i===1))if(i===2){if(n.length<2||r!==2||!n.endsWith(".")||n.at(-2)!=="."){if(n.length>2){const a=n.lastIndexOf("/");a===-1?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),o=l,i=0;continue}else if(n.length>0){n="",r=0,o=l,i=0;continue}}e&&(n+=n.length>0?"/..":"..",r=2)}else n.length>0?n+=`/${t.slice(o+1,l)}`:n=t.slice(o+1,l),r=l-o-1;o=l,i=0}else s==="."&&i!==-1?++i:i=-1}return n},"normalizeString"),tt=ne(t=>vl.test(t),"isAbsolute"),yt=ne(function(t){if(t.length===0)return".";t=De(t);const e=fl.exec(t),n=tt(t),r=t.at(-1)==="/";return t=Lo(t,!n),t.length===0?n?"/":r?"./":".":(r&&(t+="/"),Co.test(t)&&(t+="/"),e?n?`//${t}`:`//./${t}`:n&&!tt(t)?`/${t}`:t)},"normalize");ne((...t)=>{let e="";for(const n of t)if(n)if(e.length>0){const r=e[e.length-1]==="/",o=n[0]==="/";r&&o?e+=n.slice(1):e+=r||o?n:`/${n}`}else e+=n;return yt(e)},"join");const kt=ne(function(...t){t=t.map(r=>De(r));let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const o=r>=0?t[r]:yl();!o||o.length===0||(e=`${o}/${e}`,n=tt(o))}return e=Lo(e,!n),n&&!tt(e)?`/${e}`:e.length>0?e:"."},"resolve");ne(function(t){return De(t)},"toNamespacedPath");const kl=ne(function(t){return wl.exec(De(t))?.[1]??""},"extname");ne(function(t,e){const n=kt(t).replace(wr,"$1").split("/"),r=kt(e).replace(wr,"$1").split("/");if(r[0][1]===":"&&n[0][1]===":"&&n[0]!==r[0])return r.join("/");const o=[...n];for(const i of o){if(r[0]!==i)break;n.shift(),r.shift()}return[...n.map(()=>".."),...r].join("/")},"relative");const xl=ne(t=>{const e=De(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Co.test(e[0])&&(e[0]+="/"),e.join("/")||(tt(t)?"/":".")},"dirname");ne(function(t){const e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return De(t.root?kt(...e):e.join("/"))},"format");const _l=ne((t,e)=>{const n=De(t).split("/").pop();return e&&n.endsWith(e)?n.slice(0,-e.length):n},"basename");ne(function(t){const e=bl.exec(t)?.[0]?.replaceAll("\\","/")??"",n=_l(t),r=kl(n);return{base:n,dir:xl(t),ext:r,name:n.slice(0,n.length-r.length),root:e}},"parse");ne((t,e)=>pl(e,yt(t)),"matchesGlob");var $l=Object.defineProperty,de=b((t,e)=>$l(t,"name",{value:e,configurable:!0}),"e$1");const Qt="/",br=":",El="at ",Sl=/https?:\/\/[^\s)]+/g,Cl=/file:\/\//g,To=/\/@fs\//g,Ll=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),Tl=new Set(["<anonymous>","<unknown>","native"]),Pl=de(t=>{const e=t.trim();return!e.startsWith(El)||!([...Ll].some(n=>e.includes(n))||[...Tl].some(n=>e.includes(n)))?!1:/\([^)]*:\d+:\d+\)/.test(e)||/\([^)]*:\d+\)/.test(e)||/[^(\s][^:]*:\d+:\d+/.test(e)||/[^(\s][^:]*:\d+/.test(e)||e.includes("native")||e.includes("<unknown>")},"isValidStackFrame"),Ml=de(t=>(t=t.replaceAll(To,Qt),t=t.replaceAll(Cl,""),t.includes("<unknown>")?t.trim()||"":t.trim()&&!Pl(t)?"":t),"cleanStackLine"),Fl=de((t,e)=>{try{const{baseUrl:n,col:r,line:o}=Rl(t),i=zl(n,e);return Dl(i,o,r)}catch(n){return console.warn("Failed to absolutize URL:",t,n),t}},"absolutizeUrl"),Rl=de(t=>{const e=t.match(/:(\d+)(?::(\d+))?$/),n=e?.[1],r=e?.[2];return{baseUrl:e?t.slice(0,-e[0].length):t,col:r,line:n}},"parseUrlWithLocation"),zl=de((t,e)=>{const n=new URL(t);let r=decodeURIComponent(n.pathname||"");return r=r.replaceAll(To,Qt),kt(e,r.startsWith(Qt)?r.slice(1):r)},"urlToAbsolutePath"),Dl=de((t,e,n)=>{if(!e)return t;const r=n?`${br}${n}`:"";return`${t}${br}${e}${r}`},"formatAbsolutePath"),Ln=de(t=>t&&t.replaceAll(`\r
1892
+ ${Qs};`,s},"patchOverlay");var sa=Object.defineProperty,W=b((t,e)=>sa(t,"name",{value:e,configurable:!0}),"n$2");const aa=/Failed to resolve import ["']([^"']+)["']/,la=/Cannot resolve module ["']([^"']+)["']/,ca=/Cannot resolve ["'](\.\.?\/[^"']*)["']/,da=4,sr=1e3,ua=5,pa=.5,ha=[".js",".ts",".jsx",".tsx",".mjs",".cjs"],ga=[".css",".scss",".sass",".less"],qr=[".svg",".png",".jpg",".jpeg",".gif",".webp",".ico"],ma=new Set([...qr,...ha,...ga]),Q=W((t,...e)=>{const n=t.toLowerCase();return e.some(r=>n.includes(r.toLowerCase()))},"has"),fa=W((t,e)=>{const n=se.relative(t,e);return n.startsWith(".")?n:`./${n}`},"getRelativePath"),va=W(t=>t===0?"":t===1?" (in parent directory)":t===2?" (in grandparent directory)":` (${t} directories away)`,"getPathContext"),wa=W((t,e)=>{try{const n=se.relative(t,e).split(se.sep).filter(i=>i&&i!==".");let r=0;for(const i of n)r+=i===".."?2:1;return r}catch{return 10}},"calculatePathDistance"),ba=W((t,e,n,r)=>{if(e&&r===e){const o=mt(t,n);return o<=Math.max(3,Math.floor(t.length*pa))?10-o:0}if(!e){const o=mt(t,n);return o===0?9:o<=Math.max(2,Math.floor(t.length*.3))&&ma.has(r)?7-o:0}const i=mt(t,n);return i<=Math.max(2,Math.floor(t.length*.4))?5-i:0},"calculateRelevanceScore"),ya=W((t,e,n)=>{const r=[],i=W((o,s=0)=>{if(!(s>da||r.length>sr))try{const a=Ki.readdirSync(o,{withFileTypes:!0});for(const c of a){if(r.length>sr)break;const l=se.join(o,c.name);if(c.isDirectory()&&!c.name.startsWith(".")&&c.name!=="node_modules")i(l,s+1);else if(c.isFile()){const d=se.extname(c.name),p=se.basename(c.name,d),h=ba(e,n,p,d);h>0&&r.push({baseName:p,extension:d,fullPath:l,path:l,relevanceScore:h})}}}catch{}},"walk");return i(t),r},"collectFileCandidates"),ar=W((t,e,n)=>{const r=se.basename(t),i=se.extname(r),o=se.basename(r,i),s=se.dirname(e),a=ya(n,o,i).map(h=>{const f=mt(o,h.baseName),v=wa(s,se.dirname(h.fullPath)),m=h.relevanceScore*.7+v*.2+f*.1;return{...h,nameDistance:f,pathDistance:v,score:m}});a.sort((h,f)=>h.score-f.score);const c=[],l=a.slice(0,8);let d=!1;for(const h of l){const f=fa(s,h.fullPath);if(!c.includes(f)){const v=va(h.pathDistance);c.push(f+v);const m=h.fullPath.replaceAll("\\","/").split("/"),k=m.indexOf("public");k!==-1&&k<m.length-1&&(d=!0)}}let p=`<ul>${[...new Set(c)].slice(0,ua).map(h=>`<li>\`${h}\`</li>`).join(`
1893
+ `)}</ul>`;if(d){const h=r;[...qr].some(f=>h.includes(f))&&(p+=`Files in the \`public\` folder should be accessed via absolute URLs like \`/${h}\`.`)}return p},"findSimilarFiles"),xa=[{solution:{body:"Browser APIs like `window` and `document` are not available during server-side rendering. Use dynamic imports or check for SSR environment before using browser APIs.",header:"SSR Browser API Error"},test:W(t=>Q(t,"window is not defined","document is not defined"),"test")},{solution:{body:"Some plugins need specific ordering. Use `enforce: 'pre'` for plugins that need to run first, or `enforce: 'post'` for plugins that need to run last.",header:"Plugin Ordering Issue"},test:W(t=>Q(t,"Plugin ordering","enforce"),"test")},{solution:{body:"CSS Modules require proper configuration. Make sure your CSS files use the `.module.css` extension and are imported correctly.",header:"CSS Modules Configuration"},test:W(t=>Q(t,"CSS Modules","module.css"),"test")},{solution:{body:["Only variables prefixed with `VITE_` are exposed on `import.meta.env` to the client at build time.","Server-only variables should not be prefixed with `VITE_`.","- Do not use `process.env` in browser code; prefer `import.meta.env.*`","- Custom vars must be prefixed with `VITE_` to be exposed to client",'- For TS, add `/// <reference types="vite/client" />` for type-safe access'].join(`
1894
+ `),header:"Environment Variables"},test:W(t=>Q(t,"VITE_","process.env"),"test")},{solution:{body:"For static assets, use the `new URL('./path/to/asset', import.meta.url)` syntax or import them and use the returned URL.",header:"Asset Import Issue"},test:W(t=>Q(t,"Failed to load")&&Q(t,".png",".jpg",".svg"),"test")},{solution:{body:"Some issues only occur in production builds. Check if the error happens in development mode. You might need different configurations for build vs dev.",header:"Build vs Development Mode"},test:W(t=>Q(t,"production","build"),"test")},{solution:{body:"HMR issues can occur with certain patterns. Make sure you're not mutating module-level variables and consider using `import.meta.hot` guards.",header:"Hot Module Replacement Issue"},test:W(t=>Q(t,"HMR","hot reload"),"test")},{solution:{body:"Check your `tsconfig.json` and make sure it includes proper paths and compiler options. For Vite, you might need a `vite-env.d.ts` file.",header:"TypeScript Configuration"},test:W((t,e)=>Q(t,"TypeScript")||e?.endsWith(".ts"),"test")},{solution:{body:"Some dependencies need to be excluded from pre-bundling. Add them to `optimizeDeps.exclude` in your Vite config.",header:"Dependency Optimization"},test:W(t=>Q(t,"optimizeDeps","pre-bundling"),"test")},{solution:{body:"Configure path aliases in your Vite config using the `resolve.alias` option to match your TypeScript path mappings.",header:"Path Resolution"},test:W(t=>Q(t,"resolve.alias","Cannot find module"),"test")},{solution:{body:"Server middleware and proxy settings should be configured in the `server` section of your Vite config.",header:"Server Configuration"},test:W(t=>Q(t,"middleware","proxy"),"test")},{solution:{body:"Check your plugin configuration in `vite.config.js/ts`. Make sure all required options are provided and options are correctly typed.",header:"Plugin Configuration"},test:W(t=>Q(t,"plugin","configuration"),"test")},{solution:{body:"Configure your build output directory using `build.outDir` in your Vite config. Make sure the directory is writable.",header:"Build Output Configuration"},test:W(t=>Q(t,"build.outDir","dist"),"test")},{solution:{body:["Client and server rendered markup differ.","","Checklist:","- A server/client branch `if (typeof window !== 'undefined')`.","- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.","- Date formatting in a user's locale which doesn't match the server.","- External changing data without sending a snapshot of it along with the HTML.","- Invalid HTML tag nesting.","","It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.","","https://react.dev/link/hydration-mismatch"].join(`
1895
+ `)},test:W(t=>Q(t,"hydration failed","did not match","expected server html","text content does not match"),"test")}],ka=W(t=>({async handle(e,n){const{file:r,language:i}=n,o=e.message??"";if(Q(o,"Failed to resolve import","Cannot resolve module")){const s=o.match(aa),a=o.match(la),c=s?.[1]||a?.[1];if(c&&r){const l=ar(c,r,t);if(l)return{body:`The import path \`${c}\` could not be resolved.<br/><br/>Did you mean one of these files?<br/>${l}`};if([".jsx",".tsx"].includes(i)||Q(o,"react"))return{body:"Install and configure the React plugin. Add `@vitejs/plugin-react` to your dependencies and include it in your Vite config.",header:"Missing React Plugin"};if(i==="vue")return{body:"Install and configure the Vue plugin. Add `@vitejs/plugin-vue` to your dependencies and include it in your Vite config.",header:"Missing Vue Plugin"}}}if(Q(o,"Cannot resolve")&&(i==="typescript"||i==="javascript")){const s=o.match(ca);if(s){const a=s[1];if(a&&r){const c=ar(a,r,t);if(c)return{body:`Cannot resolve \`${a}\`. Did you mean one of these files?${c}`,header:"File Not Found"}}}return{body:"In Vite, you may need to include file extensions in imports, especially for TypeScript files. Try adding `.js` extension to your imports.",header:"Missing File Extension"}}for(const s of xa)if(s.test(o,r))return s.solution},name:"vite-solution-finder",priority:20}),"createViteSolutionFinder");var _a=Object.defineProperty,we=b((t,e)=>_a(t,"name",{value:e,configurable:!0}),"o$4");const $a=/\.mdx$/i,Ea=1,Sa=/syntax error/i,Ca=/Failed to load url\s+(.*?)\s+\(resolved id:/i,La=/glob:\s*"(.+)"\s*\(/i,Ta=we(t=>t instanceof Error?t:new Error(String(t)),"createEnhancedError"),Pa=we((t,e)=>{try{t.ssrFixStacktrace(e)}catch(n){console.warn("[visulima:vite-overlay:server] SSR stack trace fix failed:",n)}},"safeSsrFixStacktrace"),Ra=we(t=>{try{const e=Ne(t,{frameLimit:Ea})?.[0];return String(e?.file||t.loc?.file||t.id||"")}catch(e){console.warn("[visulima:vite-overlay:server] Stack trace parsing failed:",e);return}},"extractTopFileFromStack"),Fa=we(async t=>{try{return await Er(t,"utf8")}catch(e){console.warn(`[visulima:vite-overlay:server] Failed to read file ${t}:`,e);return}},"safeReadFile"),za=we((t,e)=>{const n=t.id||t.loc?.file||e;n&&$a.test(String(n))&&Sa.test(t.message)&&(t.hint=t.hint||"MDX detected without an appropriate integration. Install and configure the MDX plugin for Vite/your framework.")},"enhanceMdxError"),Nr=we((t,e)=>{const n=t.split(`
1896
+ `),r=n.findIndex(o=>o.includes(e));if(r===-1)return;const i=n[r]||"";return{column:Math.max(0,i.indexOf(e))+1,line:r+1}},"findImportLocation"),Da=we(async(t,e,n)=>{const r=Ca.exec(t.message)?.[1];if(r&&(t.title="Failed to Load Module (SSR)",t.name="FailedToLoadModuleSSR",t.message=`Failed to load module: ${r}`,t.hint="Verify import path, ensure a plugin handles this file type during SSR, and check for typos or missing files.",n&&e)){const i=Nr(n,r);i&&(t.loc={...i,file:e})}},"enhanceFailedLoadError"),Aa=we(async(t,e,n)=>{const r=La.exec(t.message)?.[1];if(r&&(t.name="InvalidGlob",t.title="Invalid Glob Pattern",t.message=`Invalid glob pattern: ${r}`,t.hint=t.hint||"Ensure your glob follows the expected syntax and matches existing files. Avoid unintended special characters.",n&&e)){const i=Nr(n,r);i&&(t.loc={...i,file:e})}},"enhanceGlobError"),Ma=we(async(t,e)=>{const n=Ta(t);Pa(e,n);const r=Ra(n),i=r?await Fa(r):void 0;return await Da(n,r,i),za(n,r),await Aa(n,r,i),n},"enhanceViteSsrError");var Ia=Object.defineProperty,G=b((t,e)=>Ia(t,"name",{value:e,configurable:!0}),"t$1");const Ur={javascript:G(()=>import("@shikijs/langs/javascript"),"javascript"),typescript:G(()=>import("@shikijs/langs/typescript"),"typescript"),jsx:G(()=>import("@shikijs/langs/jsx"),"jsx"),tsx:G(()=>import("@shikijs/langs/tsx"),"tsx"),json:G(()=>import("@shikijs/langs/json"),"json"),jsonc:G(()=>import("@shikijs/langs/jsonc"),"jsonc"),xml:G(()=>import("@shikijs/langs/xml"),"xml"),sql:G(()=>import("@shikijs/langs/sql"),"sql"),markdown:G(()=>import("@shikijs/langs/markdown"),"markdown"),mdx:G(()=>import("@shikijs/langs/mdx"),"mdx"),html:G(()=>import("@shikijs/langs/html"),"html"),css:G(()=>import("@shikijs/langs/css"),"css"),scss:G(()=>import("@shikijs/langs/scss"),"scss"),less:G(()=>import("@shikijs/langs/less"),"less"),sass:G(()=>import("@shikijs/langs/sass"),"sass"),stylus:G(()=>import("@shikijs/langs/stylus"),"stylus"),styl:G(()=>import("@shikijs/langs/styl"),"styl"),svelte:G(()=>import("@shikijs/langs/svelte"),"svelte"),vue:G(()=>import("@shikijs/langs/vue"),"vue"),bash:G(()=>import("@shikijs/langs/bash"),"bash"),shell:G(()=>import("@shikijs/langs/shell"),"shell"),text:G(()=>Promise.resolve({name:"text",patterns:[],scopeName:"source.text",repository:{}}),"text")};G(async t=>{if(typeof t!="string"||!t)return;const e=Ur[t.toLowerCase()];if(e)return await e()},"getLanguageImport");var Ba=Object.defineProperty,Ge=b((t,e)=>Ba(t,"name",{value:e,configurable:!0}),"a$7");let ft,vt;const ja=Ge(async()=>{const[t,e]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:n}=t,{createJavaScriptRegexEngine:r}=e,i=await n({themes:[import("./packem_chunks/min-dark.js"),import("./packem_chunks/min-light.js")],langs:[],engine:r()}),o=i;return vt=Ge(()=>{try{i?.dispose?.()}catch{}ft=void 0},"disposeFn"),o},"createSingletonHighlighter"),Oa=Ge(async(t,e)=>{if(e==="text")return;const n=e.toLowerCase();if(!(t.getLoadedLanguages?.()??t.getLanguages?.()??[]).includes(n)){const r=Ur[n];r&&await t.loadLanguage?.(await r())}},"ensureLanguageLoaded"),Gr=Ge(async(t=[])=>{ft||(ft=ja());const e=await ft,n=[];for(const r of t)if(typeof r=="string")n.push(r.toLowerCase());else{const i=r.name;i&&n.push(i.toLowerCase())}return await Promise.all(n.map(r=>Oa(e,r))),e},"getHighlighter");Ge(async()=>{try{vt&&(vt(),vt=void 0)}catch{}},"disposeHighlighter");const lr=Ge((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,n){const r=t.find(i=>i.line===n);return r?.classes&&this.addClassToHast(e,r.classes),e}}),"transformerCompactLineOptions");var Ha=Object.defineProperty,Wr=b((t,e)=>Ha(t,"name",{value:e,configurable:!0}),"s$2");const qa=Wr(t=>!Array.isArray(t)||t.length===0?!1:t.some(e=>e&&typeof e=="object"&&("location"in e||"pluginName"in e||"text"in e)),"isESBuildErrorArray"),Na=Wr(t=>t.map((e,n)=>{const{location:r,pluginName:i,text:o}=e,s={message:o||`ESBuild error #${n+1}`,name:e.name||"Error",stack:e.stack||""};return r&&(s.file=r.file,s.line=r.line,s.column=r.column),i&&(s.plugin=i),s}),"processESBuildErrors");var Ua=Object.defineProperty,Vr=b((t,e)=>Ua(t,"name",{value:e,configurable:!0}),"c$7");const Ga=/^\/@fs\//,Wa=/^[./]*/,Va=Vr((t,e)=>{for(const[n,r]of t.moduleGraph.idToModuleMap){if(!r)continue;const i=r,o=[String(i.file||"").replaceAll("\\","/"),String(n||"").replaceAll("\\","/"),String(i.url||"").replaceAll("\\","/")];for(const s of e)if(o.some(a=>a===s||a.includes(s)||s.includes(a)))return r}},"findBestModuleMatch"),it=Vr((t,e)=>{const n=[...e,...e.map(o=>o.replace(Ga,"")),...e.map(o=>o.replace(Wa,""))];let r,i=0;for(const o of n)try{const s=t.moduleGraph.getModuleById(o);if(s){const c=Object.keys(s).length>0,l=!!s.transformResult;let d=0;if(c&&l?d=2:c&&(d=1),c&&(d>i&&(r=s,i=d),l))return s}const a=t.moduleGraph.getModuleByUrl?.(o);if(a){const c=Object.keys(a).length>0,l=!!a.transformResult;let d=0;if(c&&l?d=2:c&&(d=1),c&&(d>i&&(r=a,i=d),l))return a}}catch{}return r||Va(t,e)||void 0},"findModuleForPath");var Za=Object.defineProperty,hn=b((t,e)=>Za(t,"name",{value:e,configurable:!0}),"r$1");const Ya=/^https?:\/\//,Xa=/^\/@fs\//,Qa=hn(t=>{const e=new URL(t),{pathname:n}=e,r=e.search||"",i=[n+r,n,n.replace(Xa,""),decodeURIComponent(n+r),decodeURIComponent(n)];return[...new Set(i)].filter(Boolean)},"generateUrlCandidates"),Zr=hn(t=>Ya.test(t),"isHttpUrl"),Ce=hn(t=>{if(!t)return[];try{if(Zr(t))return Qa(t);const e=[t];if(t.startsWith("/")&&e.push(t.slice(1)),t.includes("?")){const n=t.split("?")[0];n&&e.push(n)}return[...new Set(e)].filter(Boolean)}catch(e){return console.warn(`Failed to normalize path "${t}":`,e),[]}},"normalizeIdCandidates");var Ja=Object.defineProperty,_e=b((t,e)=>Ja(t,"name",{value:e,configurable:!0}),"o$2");const Yr=/\n/,Ka=/\s+/g,el=/[A-Z_$][\w$]{2,}/i,tl=/\s/,nl=_e((t,e)=>t.split(Yr)[e-1]??"","getLine"),cr=_e(t=>t.replaceAll(Ka,""),"removeWhitespace"),rl=_e((t,e)=>{if(e<=0||e>t.length)return"";const n=Math.max(0,e-1),r=t.slice(n,n+64),i=el.exec(r);if(i?.[0])return i[0];let o=r.trim();return o.length<4&&(o=t.slice(Math.max(0,n-16),n+16).trim()),o},"extractCandidateToken"),ol=_e((t,e)=>{let n=0;for(const[r,i]of[...t].entries())if(typeof i=="string"){if(n===e)return r+1;tl.test(i)||(n+=1)}return-1},"mapNormalizedToOriginalPosition"),il=_e((t,e)=>{if(!(!t||t.length<3))for(const[n,r]of e.entries()){if(!r)continue;const i=r.indexOf(t);if(i!==-1)return{column:i+1,line:n+1}}},"tryTokenBasedSearch"),sl=_e((t,e)=>{if(t)for(const[n,r]of e.entries()){if(!r)continue;const i=r.indexOf(t);if(i!==-1)return{column:i+1,line:n+1}}},"tryLineSubstringSearch"),al=_e((t,e)=>{if(!t)return;const n=cr(t);if(n)for(const[r,i]of e.entries()){if(!i)continue;const o=cr(i).indexOf(n);if(o!==-1){const s=ol(i,o);if(s!==-1)return{column:s,line:r+1}}}},"tryWhitespaceInsensitiveSearch"),ll=_e((t,e,n,r)=>{const i=nl(t,e);if(!i)return;const o=r.split(Yr),s=rl(i,n);return il(s,o)||sl(i.trim(),o)||al(i.trim(),o)},"realignOriginalPosition");var cl=Object.defineProperty,te=b((t,e)=>cl(t,"name",{value:e,configurable:!0}),"C$6"),We=44,Xr=59,dr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qr=new Uint8Array(64),Jr=new Uint8Array(128);for(let t=0;t<dr.length;t++){const e=dr.charCodeAt(t);Qr[t]=e,Jr[e]=t}function N(t,e){let n=0,r=0,i=0;do{const s=t.next();i=Jr[s],n|=(i&31)<<r,r+=5}while(i&32);const o=n&1;return n>>>=1,o&&(n=-2147483648|-n),e+n}b(N,"h$2");te(N,"decodeInteger");function B(t,e,n){let r=e-n;r=r<0?-r<<1|1:r<<1;do{let i=r&31;r>>>=5,r>0&&(i|=32),t.write(Qr[i])}while(r>0);return e}b(B,"i$4");te(B,"encodeInteger");function fe(t,e){return t.pos>=e?!1:t.peek()!==We}b(fe,"S$2");te(fe,"hasMoreVlq");var ur=1024*16,pr=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}},gn=class{static{b(this,"T")}static{te(this,"StringWriter")}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(ur)}write(e){const{buffer:n}=this;n[this.pos++]=e,this.pos===ur&&(this.out+=pr.decode(n),this.pos=0)}flush(){const{buffer:e,out:n,pos:r}=this;return r>0?n+pr.decode(e.subarray(0,r)):n}},mn=class{static{b(this,"w")}static{te(this,"StringReader")}constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:n,pos:r}=this,i=n.indexOf(e,r);return i===-1?n.length:i}},Kr=[];function dl(t){const{length:e}=t,n=new mn(t),r=[],i=[];let o=0;for(;n.pos<e;n.pos++){o=N(n,o);const s=N(n,0);if(!fe(n,e)){const d=i.pop();d[2]=o,d[3]=s;continue}const a=N(n,0),c=N(n,0)&1?[o,s,0,0,a,N(n,0)]:[o,s,0,0,a];let l=Kr;if(fe(n,e)){l=[];do{const d=N(n,0);l.push(d)}while(fe(n,e))}c.vars=l,r.push(c),i.push(c)}return r}b(dl,"z");te(dl,"decodeOriginalScopes");function ul(t){const e=new gn;for(let n=0;n<t.length;)n=fn(t,n,e,[0]);return e.flush()}b(ul,"F$4");te(ul,"encodeOriginalScopes");function fn(t,e,n,r){const i=t[e],{0:o,1:s,2:a,3:c,4:l,vars:d}=i;e>0&&n.write(We),r[0]=B(n,o,r[0]),B(n,s,0),B(n,l,0);const p=i.length===6?1:0;B(n,p,0),i.length===6&&B(n,i[5],0);for(const h of d)B(n,h,0);for(e++;e<t.length;){const h=t[e],{0:f,1:v}=h;if(f>a||f===a&&v>=c)break;e=fn(t,e,n,r)}return n.write(We),r[0]=B(n,a,r[0]),B(n,c,0),e}b(fn,"P$4");te(fn,"_encodeOriginalScopes");function pl(t){const{length:e}=t,n=new mn(t),r=[],i=[];let o=0,s=0,a=0,c=0,l=0,d=0,p=0,h=0;do{const f=n.indexOf(";");let v=0;for(;n.pos<f;n.pos++){if(v=N(n,v),!fe(n,f)){const M=i.pop();M[2]=o,M[3]=v;continue}const m=N(n,0),k=m&1,L=m&2,T=m&4;let $=null,R=Kr,A;if(k){const M=N(n,s);a=N(n,s===M?a:0),s=M,A=[o,v,0,0,M,a]}else A=[o,v,0,0];if(A.isScope=!!T,L){const M=c,j=l;c=N(n,c);const U=M===c;l=N(n,U?l:0),d=N(n,U&&j===l?d:0),$=[c,l,d]}if(A.callsite=$,fe(n,f)){R=[];do{p=o,h=v;const M=N(n,0);let j;if(M<-1){j=[[N(n,0)]];for(let U=-1;U>M;U--){const O=p;p=N(n,p),h=N(n,p===O?h:0);const ce=N(n,0);j.push([ce,p,h])}}else j=[[M]];R.push(j)}while(fe(n,f))}A.bindings=R,r.push(A),i.push(A)}o++,n.pos=f+1}while(n.pos<e);return r}b(pl,"H$2");te(pl,"decodeGeneratedRanges");function hl(t){if(t.length===0)return"";const e=new gn;for(let n=0;n<t.length;)n=vn(t,n,e,[0,0,0,0,0,0,0]);return e.flush()}b(hl,"J$1");te(hl,"encodeGeneratedRanges");function vn(t,e,n,r){const i=t[e],{0:o,1:s,2:a,3:c,isScope:l,callsite:d,bindings:p}=i;r[0]<o?(Yt(n,r[0],o),r[0]=o,r[1]=0):e>0&&n.write(We),r[1]=B(n,i[1],r[1]);const h=(i.length===6?1:0)|(d?2:0)|(l?4:0);if(B(n,h,0),i.length===6){const{4:f,5:v}=i;f!==r[2]&&(r[3]=0),r[2]=B(n,f,r[2]),r[3]=B(n,v,r[3])}if(d){const{0:f,1:v,2:m}=i.callsite;f!==r[4]?(r[5]=0,r[6]=0):v!==r[5]&&(r[6]=0),r[4]=B(n,f,r[4]),r[5]=B(n,v,r[5]),r[6]=B(n,m,r[6])}if(p)for(const f of p){f.length>1&&B(n,-f.length,0);const v=f[0][0];B(n,v,0);let m=o,k=s;for(let L=1;L<f.length;L++){const T=f[L];m=B(n,T[1],m),k=B(n,T[2],k),B(n,T[0],0)}}for(e++;e<t.length;){const f=t[e],{0:v,1:m}=f;if(v>a||v===a&&m>=c)break;e=vn(t,e,n,r)}return r[0]<a?(Yt(n,r[0],a),r[0]=a,r[1]=0):n.write(We),r[1]=B(n,c,r[1]),e}b(vn,"V$1");te(vn,"_encodeGeneratedRanges");function Yt(t,e,n){do t.write(Xr);while(++e<n)}b(Yt,"U$2");te(Yt,"catchupLine");function eo(t){const{length:e}=t,n=new mn(t),r=[];let i=0,o=0,s=0,a=0,c=0;do{const l=n.indexOf(";"),d=[];let p=!0,h=0;for(i=0;n.pos<l;){let f;i=N(n,i),i<h&&(p=!1),h=i,fe(n,l)?(o=N(n,o),s=N(n,s),a=N(n,a),fe(n,l)?(c=N(n,c),f=[i,o,s,a,c]):f=[i,o,s,a]):f=[i],d.push(f),n.pos++}p||to(d),r.push(d),n.pos=l+1}while(n.pos<=e);return r}b(eo,"K$1");te(eo,"decode");function to(t){t.sort(no)}b(to,"Q$4");te(to,"sort");function no(t,e){return t[0]-e[0]}b(no,"X$3");te(no,"sortComparator");function ro(t){const e=new gn;let n=0,r=0,i=0,o=0;for(let s=0;s<t.length;s++){const a=t[s];if(s>0&&e.write(Xr),a.length===0)continue;let c=0;for(let l=0;l<a.length;l++){const d=a[l];l>0&&e.write(We),c=B(e,d[0],c),d.length!==1&&(n=B(e,d[1],n),r=B(e,d[2],r),i=B(e,d[3],i),d.length!==4&&(o=B(e,d[4],o)))}}return e.flush()}b(ro,"Z$3");te(ro,"encode");var gl=Object.defineProperty,re=b((t,e)=>gl(t,"name",{value:e,configurable:!0}),"c$5");const ml=/^[\w+.-]+:\/\//,fl=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,vl=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function oo(t){return ml.test(t)}b(oo,"R$4");re(oo,"isAbsoluteUrl");function io(t){return t.startsWith("//")}b(io,"q$2");re(io,"isSchemeRelativeUrl");function wn(t){return t.startsWith("/")}b(wn,"m$5");re(wn,"isAbsolutePath");function so(t){return t.startsWith("file:")}b(so,"v$4");re(so,"isFileUrl");function Xt(t){return/^[.?#]/.test(t)}b(Xt,"u$1");re(Xt,"isRelative");function rt(t){const e=fl.exec(t);return bn(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}b(rt,"f$6");re(rt,"parseAbsoluteUrl");function ao(t){const e=vl.exec(t),n=e[2];return bn("file:","",e[1]||"","",wn(n)?n:"/"+n,e[3]||"",e[4]||"")}b(ao,"w$4");re(ao,"parseFileUrl");function bn(t,e,n,r,i,o,s){return{scheme:t,user:e,host:n,port:r,path:i,query:o,hash:s,type:7}}b(bn,"y$4");re(bn,"makeUrl");function Qt(t){if(io(t)){const n=rt("http:"+t);return n.scheme="",n.type=6,n}if(wn(t)){const n=rt("http://foo.com"+t);return n.scheme="",n.host="",n.type=5,n}if(so(t))return ao(t);if(oo(t))return rt(t);const e=rt("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,e}b(Qt,"p$2");re(Qt,"parseUrl");function lo(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}b(lo,"P$3");re(lo,"stripPathFilename");function co(t,e){yn(e,e.type),t.path==="/"?t.path=e.path:t.path=lo(e.path)+t.path}b(co,"A$3");re(co,"mergePaths");function yn(t,e){const n=e<=4,r=t.path.split("/");let i=1,o=0,s=!1;for(let c=1;c<r.length;c++){const l=r[c];if(!l){s=!0;continue}if(s=!1,l!=="."){if(l===".."){o?(s=!0,o--,i--):n&&(r[i++]=l);continue}r[i++]=l,o++}}let a="";for(let c=1;c<i;c++)a+="/"+r[c];(!a||s&&!a.endsWith("/.."))&&(a+="/"),t.path=a}b(yn,"d$5");re(yn,"normalizePath");function uo(t,e){if(!t&&!e)return"";const n=Qt(t);let r=n.type;if(e&&r!==7){const o=Qt(e),s=o.type;switch(r){case 1:n.hash=o.hash;case 2:n.query=o.query;case 3:case 4:co(n,o);case 5:n.user=o.user,n.host=o.host,n.port=o.port;case 6:n.scheme=o.scheme}s>r&&(r=s)}yn(n,r);const i=n.query+n.hash;switch(r){case 2:case 3:return i;case 4:{const o=n.path.slice(1);return o?Xt(e||t)&&!Xt(o)?"./"+o+i:o+i:i||"."}case 5:return n.path+i;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+i}}b(uo,"F$3");re(uo,"resolve");var wl=Object.defineProperty,P=b((t,e)=>wl(t,"name",{value:e,configurable:!0}),"i$3");function po(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}b(po,"ae$2");P(po,"stripFilename");function ho(t,e){const n=po(t),r=e?e+"/":"";return i=>uo(r+(i||""),n)}b(ho,"ge");P(ho,"resolver");var ae=0,xn=1,kn=2,_n=3,go=4,mo=1,fo=2;function vo(t,e){const n=Jt(t,0);if(n===t.length)return t;e||(t=t.slice());for(let r=n;r<t.length;r=Jt(t,r+1))t[r]=bo(t[r],e);return t}b(vo,"he");P(vo,"maybeSort");function Jt(t,e){for(let n=e;n<t.length;n++)if(!wo(t[n]))return n;return t.length}b(Jt,"X$2");P(Jt,"nextUnsortedSegmentLine");function wo(t){for(let e=1;e<t.length;e++)if(t[e][ae]<t[e-1][ae])return!1;return!0}b(wo,"_e");P(wo,"isSorted");function bo(t,e){return e||(t=t.slice()),t.sort($n)}b(bo,"ve$1");P(bo,"sortSegments");function $n(t,e){return t[ae]-e[ae]}b($n,"$$2");P($n,"sortComparator");function yo(t,e){const n=e.map(()=>[]);for(let r=0;r<t.length;r++){const i=t[r];for(let o=0;o<i.length;o++){const s=i[o];if(s.length===1)continue;const a=s[xn],c=s[kn],l=s[_n],d=n[a];(d[c]||(d[c]=[])).push([l,r,s[ae]])}}for(let r=0;r<n.length;r++){const i=n[r];for(let o=0;o<i.length;o++){const s=i[o];s&&s.sort($n)}}return n}b(yo,"Se");P(yo,"buildBySources");var Le=!1;function xo(t,e,n,r){for(;n<=r;){const i=n+(r-n>>1),o=t[i][ae]-e;if(o===0)return Le=!0,i;o<0?n=i+1:r=i-1}return Le=!1,n-1}b(xo,"Ee$1");P(xo,"binarySearch");function En(t,e,n){for(let r=n+1;r<t.length&&t[r][ae]===e;n=r++);return n}b(En,"H$1");P(En,"upperBound");function Sn(t,e,n){for(let r=n-1;r>=0&&t[r][ae]===e;n=r--);return n}b(Sn,"Y");P(Sn,"lowerBound");function Cn(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}b(Cn,"k$2");P(Cn,"memoizedState");function ko(t,e,n,r){const{lastKey:i,lastNeedle:o,lastIndex:s}=n;let a=0,c=t.length-1;if(r===i){if(e===o)return Le=s!==-1&&t[s][ae]===e,s;e>=o?a=s===-1?0:s:c=s}return n.lastKey=r,n.lastNeedle=e,n.lastIndex=xo(t,e,a,c)}b(ko,"Me$1");P(ko,"memoizedBinarySearch");function Rt(t){return typeof t=="string"?JSON.parse(t):t}b(Rt,"j");P(Rt,"parse");P(function(t,e){const n=Rt(t);if(!("sections"in n))return new zt(n,e);const r=[],i=[],o=[],s=[],a=[];Ln(n,e,r,i,o,s,a,0,0,1/0,1/0);const c={version:3,file:n.file,names:s,sources:i,sourcesContent:o,mappings:r,ignoreList:a};return To(c)},"FlattenMap");function Ln(t,e,n,r,i,o,s,a,c,l,d){const{sections:p}=t;for(let h=0;h<p.length;h++){const{map:f,offset:v}=p[h];let m=l,k=d;if(h+1<p.length){const L=p[h+1].offset;m=Math.min(l,a+L.line),m===l?k=Math.min(d,c+L.column):m<l&&(k=c+L.column)}_o(f,e,n,r,i,o,s,a+v.line,c+v.column,m,k)}}b(Ln,"ee$2");P(Ln,"recurse");function _o(t,e,n,r,i,o,s,a,c,l,d){const p=Rt(t);if("sections"in p)return Ln(...arguments);const h=new zt(p,e),f=r.length,v=o.length,m=Fe(h),{resolvedSources:k,sourcesContent:L,ignoreList:T}=h;if(wt(r,k),wt(o,h.names),L)wt(i,L);else for(let $=0;$<k.length;$++)i.push(null);if(T)for(let $=0;$<T.length;$++)s.push(T[$]+f);for(let $=0;$<m.length;$++){const R=a+$;if(R>l)return;const A=$o(n,R),M=$===0?c:0,j=m[$];for(let U=0;U<j.length;U++){const O=j[U],ce=M+O[ae];if(R===l&&ce>=d)return;if(O.length===1){A.push([ce]);continue}const Ae=f+O[xn],de=O[kn],$e=O[_n];A.push(O.length===4?[ce,Ae,de,$e]:[ce,Ae,de,$e,v+O[go]])}}}b(_o,"me");P(_o,"addSection");function wt(t,e){for(let n=0;n<e.length;n++)t.push(e[n])}b(wt,"G$1");P(wt,"append");function $o(t,e){for(let n=t.length;n<=e;n++)t[n]=[];return t[e]}b($o,"xe");P($o,"getLine");var Eo="`line` must be greater than 0 (lines start at line 1)",So="`column` must be greater than or equal to 0 (columns start at column 0)",_t=-1,Ft=1,zt=class{static{b(this,"R")}static{P(this,"TraceMap")}constructor(e,n){const r=typeof e=="string";if(!r&&e._decodedMemo)return e;const i=Rt(e),{version:o,file:s,names:a,sourceRoot:c,sources:l,sourcesContent:d}=i;this.version=o,this.file=s,this.names=a||[],this.sourceRoot=c,this.sources=l,this.sourcesContent=d,this.ignoreList=i.ignoreList||i.x_google_ignoreList||void 0;const p=ho(n,c);this.resolvedSources=l.map(p);const{mappings:h}=i;if(typeof h=="string")this._encoded=h,this._decoded=void 0;else if(Array.isArray(h))this._encoded=void 0,this._decoded=vo(h,r);else throw i.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(i)}`);this._decodedMemo=Cn(),this._bySources=void 0,this._bySourceMemos=void 0}};function Co(t){var e,n;return(n=(e=t)._encoded)!=null?n:e._encoded=ro(t._decoded)}b(Co,"oe$1");P(Co,"encodedMappings");function Fe(t){var e;return(e=t)._decoded||(e._decoded=eo(t._encoded))}b(Fe,"O$3");P(Fe,"decodedMappings");function bl(t,e,n){const r=Fe(t);if(e>=r.length)return null;const i=r[e],o=lt(i,t._decodedMemo,e,n,Ft);return o===-1?null:i[o]}b(bl,"Oe");P(bl,"traceSegment");function Lo(t,e){let{line:n,column:r,bias:i}=e;if(n--,n<0)throw new Error(Eo);if(r<0)throw new Error(So);const o=Fe(t);if(n>=o.length)return ot(null,null,null,null);const s=o[n],a=lt(s,t._decodedMemo,n,r,i||Ft);if(a===-1)return ot(null,null,null,null);const c=s[a];if(c.length===1)return ot(null,null,null,null);const{names:l,resolvedSources:d}=t;return ot(d[c[xn]],c[kn]+1,c[_n],c.length===5?l[c[go]]:null)}b(Lo,"Le$1");P(Lo,"originalPositionFor");function yl(t,e){const{source:n,line:r,column:i,bias:o}=e;return Pn(t,n,r,i,o||Ft,!1)}b(yl,"ye$1");P(yl,"generatedPositionFor");function xl(t,e){const{source:n,line:r,column:i,bias:o}=e;return Pn(t,n,r,i,o||_t,!0)}b(xl,"Ce");P(xl,"allGeneratedPositionsFor");function kl(t,e){const n=Fe(t),{names:r,resolvedSources:i}=t;for(let o=0;o<n.length;o++){const s=n[o];for(let a=0;a<s.length;a++){const c=s[a],l=o+1,d=c[0];let p=null,h=null,f=null,v=null;c.length!==1&&(p=i[c[1]],h=c[2]+1,f=c[3]),c.length===5&&(v=r[c[4]]),e({generatedLine:l,generatedColumn:d,source:p,originalLine:h,originalColumn:f,name:v})}}}b(kl,"Ie");P(kl,"eachMapping");function Tn(t,e){const{sources:n,resolvedSources:r}=t;let i=n.indexOf(e);return i===-1&&(i=r.indexOf(e)),i}b(Tn,"re$1");P(Tn,"sourceIndex");function _l(t,e){const{sourcesContent:n}=t;if(n==null)return null;const r=Tn(t,e);return r===-1?null:n[r]}b(_l,"Ne");P(_l,"sourceContentFor");function $l(t,e){const{ignoreList:n}=t;if(n==null)return!1;const r=Tn(t,e);return r===-1?!1:n.includes(r)}b($l,"be$1");P($l,"isIgnored");function To(t,e){const n=new zt(Dt(t,[]),e);return n._decoded=t.mappings,n}b(To,"se$1");P(To,"presortedDecodedMap");function El(t){return Dt(t,Fe(t))}b(El,"Re$1");P(El,"decodedMap");function Sl(t){return Dt(t,Co(t))}b(Sl,"we$2");P(Sl,"encodedMap");function Dt(t,e){return{version:t.version,file:t.file,names:t.names,sourceRoot:t.sourceRoot,sources:t.sources,sourcesContent:t.sourcesContent,mappings:e,ignoreList:t.ignoreList||t.x_google_ignoreList}}b(Dt,"B");P(Dt,"clone");function ot(t,e,n,r){return{source:t,line:e,column:n,name:r}}b(ot,"b$4");P(ot,"OMapping");function qe(t,e){return{line:t,column:e}}b(qe,"y$3");P(qe,"GMapping");function lt(t,e,n,r,i){let o=ko(t,r,e,n);return Le?o=(i===_t?En:Sn)(t,r,o):i===_t&&o++,o===-1||o===t.length?-1:o}b(lt,"w$3");P(lt,"traceSegmentInternal");function Po(t,e,n,r,i){let o=lt(t,e,n,r,Ft);if(!Le&&i===_t&&o++,o===-1||o===t.length)return[];const s=Le?r:t[o][ae];Le||(o=Sn(t,s,o));const a=En(t,s,o),c=[];for(;o<=a;o++){const l=t[o];c.push(qe(l[mo]+1,l[fo]))}return c}b(Po,"Ue");P(Po,"sliceGeneratedPositions");function Pn(t,e,n,r,i,o){var s,a;if(n--,n<0)throw new Error(Eo);if(r<0)throw new Error(So);const{sources:c,resolvedSources:l}=t;let d=c.indexOf(e);if(d===-1&&(d=l.indexOf(e)),d===-1)return o?[]:qe(null,null);const p=(s=t)._bySourceMemos||(s._bySourceMemos=c.map(Cn)),h=((a=t)._bySources||(a._bySources=yo(Fe(t),p)))[d][n];if(h==null)return o?[]:qe(null,null);const f=p[d];if(o)return Po(h,f,n,r,i);const v=lt(h,f,n,r,i);if(v===-1)return qe(null,null);const m=h[v];return qe(m[mo]+1,m[fo])}b(Pn,"ie$1");P(Pn,"generatedPosition");var Cl=Object.defineProperty,oe=b((t,e)=>Cl(t,"name",{value:e,configurable:!0}),"f$5");const Ll=/`((?:[^`$]|\$\{[^}]+\})*)`/g,hr=/\$\{[^}]+\}/g,Tl=/[.*+?^${}()|[\]\\]/g,Ro=[/new Error\(/,/throw new Error\(/,/new Error`/,/throw new Error`/,/new [A-Z]\w*\(/,/throw new [A-Z]\w*\(/,/new [A-Z]\w*`/,/throw new [A-Z]\w*`/],Te=oe(t=>t.replaceAll(Tl,String.raw`\$&`),"escapeRegex"),Pl=oe(t=>{const e=Te(t);return[t,`new Error("${e}")`,`new Error('${e}')`,`new Error(\`${Te(t)}\`)`,`throw new Error("${e}")`,`throw new Error('${e}')`,`throw new Error(\`${Te(t)}\`)`,`Error("${e}")`,`Error('${e}')`]},"createErrorPatterns"),gr=oe((t,e)=>{const n=[...t.matchAll(Ll)];for(const r of n){const i=r[1];if(!i)continue;const o=i.split(hr);if(o.every(a=>a===""||e.includes(a))&&o.length>1)return!0;if(!i)continue;const s=i.replaceAll(hr,"(.+?)");try{if(new RegExp(`^${Te(s)}$`).test(e))return!0}catch{}}return!1},"checkTemplateLiteralMatch"),Rl=[/Failed to resolve import ["']([^"']+)["'](?:\s+from ["']([^"']+)["'])?/,/(.+?)\s+from line \d+/,/(.+?)\s+is not defined/,/(.+?)\s+is not a function/,/Cannot read properties of (.+?)\s+\(reading (.+?)\)/],Fl=oe(t=>{for(const e of Rl){const n=t.match(e);if(n)return n}},"findDynamicErrorMatch"),mr=oe(t=>{let e,n;for(const r of Ro){const i=t.match(r);i&&(!e||r.source.includes("throw")&&!n?.source.includes("throw"))&&(e=i,n=r)}return{bestMatch:e,bestPattern:n}},"findBestErrorConstructor"),fr=oe((t,e)=>{let n=t.index??0;if(e.source.includes("throw new")&&t[0].startsWith("throw new")){const r=t[0].indexOf("new");r!==-1&&(n+=r)}return n+1},"calculateActualColumn"),zl=oe((t,e,n=0)=>{if(!t||!e)return;const r=t.split(`
1897
+ `),i=Fl(e),o=Pl(e),s=oe((p,h,f)=>{let v=0;for(const[m,k]of p.entries()){if(!k)continue;const L=k.includes(h)||gr(k,h),T=Ro.some($=>$.test(k));if(L&&T){const{bestMatch:$,bestPattern:R}=mr(k);if($&&R&&(v+=1,v>f))return{column:fr($,R),line:m+1}}}},"processErrorConstructorLines")(r,e,n);if(s)return s;i&&oe((p,h,f)=>{if(p[0].includes("Failed to resolve import")){const v=p[1];if(!v)return;const m=Te(v);f.unshift(`import.*from ["']${m}["']`,`import.*["']${m}["']`,v)}else if(p[0].includes("is not defined")){const v=p[1];if(!v)return;f.unshift(v,`{${v}}`,`src={${v}}`,`${v}.`,`=${v}`)}else if(p[0].includes("Cannot read properties")){const v=p[1],m=p[2];if(!m)return;f.unshift(m,`${v}.${m}`,`${v}?.${m}`,`${v}[${m}]`)}else{const v=p[1];if(!v)return;const m=Te(h),k=Te(v);f.unshift(`new Error(\`${k}`,`throw new Error(\`${k}`,`new Error("${k}`,`new Error('${k}`,`throw new Error("${k}`,`throw new Error('${k}`,`new Error("${m}")`,`new Error('${m}')`,`throw new Error("${m}")`,`throw new Error('${m}')`,`new Error(\`${m}\`)`,`throw new Error(\`${m}\`)`)}},"addDynamicPatterns")(i,e,o);const a=oe((p,h,f)=>{let v=0;for(const[m,k]of p.entries()){if(!k||!gr(k,h))continue;const{bestMatch:L,bestPattern:T}=mr(k);if(L&&T&&(v+=1,v>f))return{column:fr(L,T),line:m+1}}},"processTemplateLiteralLines"),c=oe((p,h,f,v)=>{if(!v)return p+1;if(v[0].includes("Failed to resolve import")){const m=v[1];if(f.includes(`"${m}"`)||f.includes(`'${m}'`)){const k=f.includes(`"${m}"`)?'"':"'";return f.indexOf(`${k}${m}${k}`)+1}}else if(v[0].includes("is not defined")){const m=v[1];if(m&&h===m)return p+1;if(m&&h.includes(m))return p+h.indexOf(m)+1}else if(v[0].includes("Cannot read properties")){const m=v[2];if(m&&h.includes(m))return p+h.indexOf(m)+1}else if(h.includes("new Error("))return f.indexOf("new Error(")+1;return p+1},"calculatePatternColumn"),l=oe((p,h,f,v)=>{let m=0;for(const[k,L]of p.entries()){if(!L)continue;let T=-1,$;for(const R of h){const A=L.indexOf(R);A!==-1&&(T===-1||A<T)&&(T=A,$=R)}if(T!==-1&&$&&(m+=1,m>v))return{column:c(T,$,L,f),line:k+1}}},"processPatternLines");return a(r,e,n)||l(r,o,i,n)},"findErrorInSourceCode");var Dl=Object.defineProperty,ct=b((t,e)=>Dl(t,"name",{value:e,configurable:!0}),"m$4");const Al=1,Ml=/^\//,vr=ct((t,e)=>{const n=Math.max(1,t),r=Math.max(0,e);let i,o;return n>=20?i=Math.max(1,Math.round(n*.5)):n>15?i=Math.max(1,Math.round(n*.6)):n>10?i=Math.max(1,n-8):i=Math.max(1,n-3),r>=10||r>7?o=Math.max(0,r-1):r>5?o=Math.max(0,r):o=r,{estimatedColumn:o,estimatedLine:i}},"estimateOriginalPosition"),Il=ct((t,e,n)=>{try{const r=new zt(t);if(e<=0)return;const i=[{column:n,desc:"original",line:e},{column:Math.max(0,n-Al),desc:"offset",line:e},{column:n,desc:"line above",line:e-1},{column:n,desc:"line below",line:e+1},...Array.from({length:5},(o,s)=>({column:Math.max(0,n-2+s),desc:`col ${n-2+s}`,line:e}))].filter(o=>o.line>0);for(const o of i){const s=Lo(r,{column:o.column,line:o.line});if(s.source&&s.line!==void 0&&s.column!==void 0&&s.line>0&&s.column>=0)return{column:s.column,line:s.line,source:s.source}}}catch(r){console.warn("Source map processing failed:",r)}},"resolveSourceMapPosition"),Bl=ct((t,e)=>e?Zr(t)?jl(t,e):e:t,"resolveSourcePath"),jl=ct((t,e)=>{try{const n=new URL(t),r=(n.pathname||"").replace(Ml,""),i=r.includes("/")?r.slice(0,Math.max(0,r.lastIndexOf("/"))):"";return`${n.origin}/${i?`${i}/`:""}${e}`}catch(n){return console.warn("URL parsing failed for source path resolution:",n),t}},"resolveHttpSourcePath"),Kt=ct(async(t,e,n,r,i,o,s=0)=>{if(o&&e)try{let c;if(e.transformResult?.map?.sourcesContent?.[0]?[c]=e.transformResult.map.sourcesContent:e.transformResult?.code&&(c=e.transformResult.code),!c&&(e.id||e.url)){const l=e.id||e.url;if(l)try{const d=await t.transformRequest(l);d?.map&&"sourcesContent"in d.map&&d.map.sourcesContent?.[0]?[c]=d.map.sourcesContent:d?.code&&(c=d.code)}catch(d){console.warn("Failed to get fresh source for error search:",d)}}if(!c&&n)try{const l=await import("node:fs/promises");let d=n;if(n.includes("://"))try{d=new URL(n).pathname}catch{const p=n.indexOf("://");p!==-1&&(d=n.slice(p+3))}d.startsWith("/")||(d=`${t.config.root||process.cwd()}/${d}`),c=await l.readFile(d,"utf8")}catch(l){console.warn("Failed to read source file from disk:",l)}if(c){const l=zl(c,o,s);if(l)return{originalFileColumn:l.column,originalFileLine:l.line,originalFilePath:n}}}catch(c){console.warn("Source code search failed:",c)}let a=e?.transformResult?.map;if(!a&&(e?.id||e?.url)){const c=e.id||e.url;if(c)try{const l=await t.transformRequest(c);l?.map&&(a=l.map)}catch(l){console.warn("Failed to get fresh source map:",l)}}if(!a){const{estimatedColumn:c,estimatedLine:l}=vr(r,i);return{originalFileColumn:c,originalFileLine:l,originalFilePath:n}}try{const c=Il(a,r,i);if(!c){const{estimatedColumn:d,estimatedLine:p}=vr(r,i);return{originalFileColumn:d,originalFileLine:p,originalFilePath:n}}const l=Bl(n,c.source);return{originalFileColumn:c.column,originalFileLine:c.line,originalFilePath:l}}catch(c){return console.warn("Source map resolution failed:",c),{originalFileColumn:i,originalFileLine:r,originalFilePath:n}}},"resolveOriginalLocation");var Ol=Object.defineProperty,Hl=b((t,e)=>Ol(t,"name",{value:e,configurable:!0}),"$e"),ql=Object.defineProperty,Rn=Hl((t,e)=>ql(t,"name",{value:e,configurable:!0}),"W"),Nl=Object.defineProperty,E=Rn((t,e)=>Nl(t,"name",{value:e,configurable:!0}),"u$1");let wr=E(()=>{var t=(()=>{var e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o=E((u,g)=>{for(var w in g)e(u,w,{get:g[w],enumerable:!0})},"ne"),s=E((u,g,w,x)=>{if(g&&typeof g=="object"||typeof g=="function")for(let y of r(g))!i.call(u,y)&&y!==w&&e(u,y,{get:E(()=>g[y],"get"),enumerable:!(x=n(g,y))||x.enumerable});return u},"ae"),a=E(u=>s(e({},"__esModule",{value:!0}),u),"oe"),c={};o(c,{zeptomatch:E(()=>Gn,"zeptomatch")});var l=E(u=>{const g=new Set,w=[u];for(let x=0;x<w.length;x++){const y=w[x];if(g.has(y))continue;g.add(y);const{children:_}=y;if(_?.length)for(let C=0,I=_.length;C<I;C++)w.push(_[C])}return Array.from(g)},"M"),d=E(u=>{let g="";const w=l(u);for(let x=0,y=w.length;x<y;x++){const _=w[x];if(!_.regex)continue;const C=_.regex.flags;if(g||(g=C),g!==C)throw new Error(`Inconsistent RegExp flags used: "${g}" and "${C}"`)}return g},"se"),p=E((u,g,w)=>{const x=w.get(u);if(x!==void 0)return x;const y=u.partial??g;let _="";if(u.regex&&(_+=y?"(?:$|":"",_+=u.regex.source),u.children?.length){const C=f(u.children.map(I=>p(I,g,w)).filter(Boolean));if(C?.length){const I=u.children.some(Je=>!Je.regex||!(Je.partial??g)),J=C.length>1||y&&(!_.length||I);_+=J?y?"(?:$|":"(?:":"",_+=C.join("|"),_+=J?")":""}}return u.regex&&(_+=y?")":""),w.set(u,_),_},"O"),h=E((u,g)=>{const w=new Map,x=l(u);for(let y=x.length-1;y>=0;y--){const _=p(x[y],g,w);if(!(y>0))return _}return""},"ie"),f=E(u=>Array.from(new Set(u)),"ue"),v=E((u,g,w)=>v.compile(u,w).test(g),"R");v.compile=(u,g)=>{const w=g?.partial??!1,x=h(u,w),y=d(u);return new RegExp(`^(?:${x})$`,y)};var m=v,k=E((u,g)=>{const w=m.compile(u,g),x=`${w.source.slice(0,-1)}[\\\\/]?$`,y=w.flags;return new RegExp(x,y)},"le"),L=k,T=E(u=>{const g=u.map(x=>x.source).join("|")||"$^",w=u[0]?.flags;return new RegExp(g,w)},"ve"),$=T,R=E(u=>Array.isArray(u),"j"),A=E(u=>typeof u=="function","_"),M=E(u=>u.length===0,"he"),j=(()=>{const{toString:u}=Function.prototype,g=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return w=>(w.length===0||w.length===1)&&g.test(u.call(w))})(),U=E(u=>typeof u=="number","de"),O=E(u=>typeof u=="object"&&u!==null,"xe"),ce=E(u=>u instanceof RegExp,"me"),Ae=(()=>{const u=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return g=>u.test(g.source)})(),de=(()=>{const u=/^[a-zA-Z0-9_-]+$/;return g=>u.test(g.source)&&!g.flags.includes("i")})(),$e=E(u=>typeof u=="string","A"),F=E(u=>u===void 0,"f"),H=E(u=>{const g=new Map;return w=>{const x=g.get(w);if(x!==void 0)return x;const y=u(w);return g.set(w,y),y}},"ye"),X=E((u,g,w={})=>{const x={cache:{},input:u,index:0,indexBacktrackMax:0,options:w,output:[]},y=xe(g)(x),_=Math.max(x.index,x.indexBacktrackMax);if(y&&x.index===u.length)return x.output;throw new Error(`Failed to parse at index ${_}`)},"I"),S=E((u,g)=>R(u)?Me(u,g):$e(u)?Ze(u,g):be(u,g),"i"),Me=E((u,g)=>{const w={};for(const x of u){if(x.length!==1)throw new Error(`Invalid character: "${x}"`);const y=x.charCodeAt(0);w[y]=!0}return x=>{const y=x.input;let _=x.index,C=_;for(;C<y.length&&y.charCodeAt(C)in w;)C+=1;if(C>_){if(!F(g)&&!x.options.silent){const I=y.slice(_,C),J=A(g)?g(I,y,`${_}`):g;F(J)||x.output.push(J)}x.index=C}return!0}},"we"),be=E((u,g)=>{if(de(u))return Ze(u.source,g);{const w=u.source,x=u.flags.replace(/y|$/,"y"),y=new RegExp(w,x);return Ae(u)&&A(g)&&!j(g)?ut(y,g):pt(y,g)}},"$e"),ut=E((u,g)=>w=>{const x=w.index,y=w.input;u.lastIndex=x;const _=u.exec(y);if(_){const C=u.lastIndex;if(!w.options.silent){const I=g(..._,y,`${x}`);F(I)||w.output.push(I)}return w.index=C,!0}else return!1},"Ee"),pt=E((u,g)=>w=>{const x=w.index,y=w.input;if(u.lastIndex=x,u.test(y)){const _=u.lastIndex;if(!F(g)&&!w.options.silent){const C=A(g)?g(y.slice(x,_),y,`${x}`):g;F(C)||w.output.push(C)}return w.index=_,!0}else return!1},"Ce"),Ze=E((u,g)=>w=>{const x=w.index,y=w.input;if(y.startsWith(u,x)){if(!F(g)&&!w.options.silent){const _=A(g)?g(u,y,`${x}`):g;F(_)||w.output.push(_)}return w.index+=u.length,!0}else return!1},"F"),Ie=E((u,g,w,x)=>{const y=xe(u),_=g>1;return Xe(ue(ye(C=>{let I=0;for(;I<w;){const J=C.index;if(!y(C)||(I+=1,C.index===J))break}return I>=g},_),x))},"k"),Ye=E((u,g)=>Ie(u,0,1,g),"L"),Be=E((u,g)=>Ie(u,0,1/0,g),"$"),je=E((u,g)=>Ie(u,1,1/0,g),"Re"),V=E((u,g)=>{const w=u.map(xe);return Xe(ue(ye(x=>{for(let y=0,_=w.length;y<_;y++)if(!w[y](x))return!1;return!0}),g))},"x"),Z=E((u,g)=>{const w=u.map(xe);return Xe(ue(x=>{for(let y=0,_=w.length;y<_;y++)if(w[y](x))return!0;return!1},g))},"p"),ye=E((u,g=!0,w=!1)=>{const x=xe(u);return g?y=>{const _=y.index,C=y.output.length,I=x(y);return!I&&!w&&(y.indexBacktrackMax=Math.max(y.indexBacktrackMax,y.index)),(!I||w)&&(y.index=_,y.output.length!==C&&(y.output.length=C)),I}:x},"q"),ue=E((u,g)=>{const w=xe(u);return g?x=>{if(x.options.silent)return w(x);const y=x.output.length;if(w(x)){const _=x.output.splice(y,1/0),C=g(_);return F(C)||x.output.push(C),!0}else return!1}:w},"B"),Xe=(()=>{let u=0;return g=>{const w=xe(g),x=u+=1;return y=>{var _;if(y.options.memoization===!1)return w(y);const C=y.index,I=(_=y.cache)[x]||(_[x]={indexMax:-1,queue:[]}),J=I.queue;if(C<=I.indexMax){const Ke=I.store||(I.store=new Map);if(J.length){for(let He=0,Hi=J.length;He<Hi;He+=2){const qi=J[He*2],Ni=J[He*2+1];Ke.set(qi,Ni)}J.length=0}const pe=Ke.get(C);if(pe===!1)return!1;if(U(pe))return y.index=pe,!0;if(pe)return y.index=pe.index,pe.output?.length&&y.output.push(...pe.output),!0}const Je=y.output.length,Oi=w(y);if(I.indexMax=Math.max(I.indexMax,C),Oi){const Ke=y.index,pe=y.output.length;if(pe>Je){const He=y.output.slice(Je,pe);J.push(C,{index:Ke,output:He})}else J.push(C,Ke);return!0}else return J.push(C,!1),!1}}})(),Dn=E(u=>{let g;return w=>(g||(g=xe(u())),g(w))},"G"),xe=H(u=>{if(A(u))return M(u)?Dn(u):u;if($e(u)||ce(u))return S(u);if(R(u))return V(u);if(O(u))return Z(Object.values(u));throw new Error("Invalid rule")}),Ee=E(u=>u,"d"),Bo=E(u=>typeof u=="string","ke"),jo=E(u=>{const g=new WeakMap,w=new WeakMap;return(x,y)=>{const _=y?.partial?w:g,C=_.get(x);if(C!==void 0)return C;const I=u(x,y);return _.set(x,I),I}},"Be"),Oo=E(u=>{const g={},w={};return(x,y)=>{const _=y?.partial?w:g;return _[x]??(_[x]=u(x,y))}},"Pe"),Ho=S(/\\./,Ee),qo=S(/./,Ee),No=S(/\*\*\*+/,"*"),Uo=S(/([^/{[(!])\*\*/,(u,g)=>`${g}*`),Go=S(/(^|.)\*\*(?=[^*/)\]}])/,(u,g)=>`${g}*`),Wo=Be(Z([Ho,No,Uo,Go,qo])),Vo=Wo,Zo=E(u=>X(u,Vo,{memoization:!1}).join(""),"Ie"),Yo=Zo,An="abcdefghijklmnopqrstuvwxyz",Xo=E(u=>{let g="";for(;u>0;){const w=(u-1)%26;g=An[w]+g,u=Math.floor((u-1)/26)}return g},"Le"),Mn=E(u=>{let g=0;for(let w=0,x=u.length;w<x;w++)g=g*26+An.indexOf(u[w])+1;return g},"V"),Mt=E((u,g)=>{if(g<u)return Mt(g,u);const w=[];for(;u<=g;)w.push(u++);return w},"b"),Qo=E((u,g,w)=>Mt(u,g).map(x=>String(x).padStart(w,"0")),"qe"),In=E((u,g)=>Mt(Mn(u),Mn(g)).map(Xo),"W"),Y=E(u=>({partial:!1,regex:new RegExp(u,"s"),children:[]}),"c"),Qe=E(u=>({children:u}),"y"),Oe=(()=>{const u=E((g,w,x)=>{if(x.has(g))return;x.add(g);const{children:y}=g;if(!y.length)y.push(w);else for(let _=0,C=y.length;_<C;_++)u(y[_],w,x)},"e");return g=>{if(!g.length)return Qe([]);for(let w=g.length-1;w>=1;w--){const x=new Set,y=g[w-1],_=g[w];u(y,_,x)}return g[0]}})(),ke=E(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),Jo=S(/\\./,Y),Ko=S(/[$.*+?^(){}[\]\|]/,u=>Y(`\\${u}`)),ei=S(/[\\\/]/,ke),ti=S(/[^$.*+?^(){}[\]\|\\\/]+/,Y),ni=S(/^(?:!!)*!(.*)$/,(u,g)=>Y(`(?!^${Gn.compile(g).source}$).*?`)),ri=S(/^(!!)+/),oi=Z([ni,ri]),ii=S(/\/(\*\*\/)+/,()=>Qe([Oe([ke(),Y(".+?"),ke()]),ke()])),si=S(/^(\*\*\/)+/,()=>Qe([Y("^"),Oe([Y(".*?"),ke()])])),ai=S(/\/(\*\*)$/,()=>Qe([Oe([ke(),Y(".*?")]),Y("$")])),li=S(/\*\*/,()=>Y(".*?")),Bn=Z([ii,si,ai,li]),ci=S(/\*\/(?!\*\*\/|\*$)/,()=>Oe([Y("[^\\\\/]*?"),ke()])),di=S(/\*/,()=>Y("[^\\\\/]*")),jn=Z([ci,di]),On=S("?",()=>Y("[^\\\\/]")),ui=S("[",Ee),pi=S("]",Ee),hi=S(/[!^]/,"^\\\\/"),gi=S(/[a-z]-[a-z]|[0-9]-[0-9]/i,Ee),mi=S(/\\./,Ee),fi=S(/[$.*+?^(){}[\|]/,u=>`\\${u}`),vi=S(/[\\\/]/,"\\\\/"),wi=S(/[^$.*+?^(){}[\]\|\\\/]+/,Ee),bi=Z([mi,fi,vi,gi,wi]),Hn=V([ui,Ye(hi),Be(bi),pi],u=>Y(u.join(""))),yi=S("{","(?:"),xi=S("}",")"),ki=S(/(\d+)\.\.(\d+)/,(u,g,w)=>Qo(+g,+w,Math.min(g.length,w.length)).join("|")),_i=S(/([a-z]+)\.\.([a-z]+)/,(u,g,w)=>In(g,w).join("|")),$i=S(/([A-Z]+)\.\.([A-Z]+)/,(u,g,w)=>In(g.toLowerCase(),w.toLowerCase()).join("|").toUpperCase()),Ei=Z([ki,_i,$i]),qn=V([yi,Ei,xi],u=>Y(u.join(""))),Si=S("{"),Ci=S("}"),Li=S(","),Ti=S(/\\./,Y),Pi=S(/[$.*+?^(){[\]\|]/,u=>Y(`\\${u}`)),Ri=S(/[\\\/]/,ke),Fi=S(/[^$.*+?^(){}[\]\|\\\/,]+/,Y),zi=Dn(()=>Un),Di=S("",()=>Y("(?:)")),Ai=je(Z([Bn,jn,On,Hn,qn,zi,Ti,Pi,Ri,Fi]),Oe),Nn=Z([Ai,Di]),Un=V([Si,Ye(V([Nn,Be(V([Li,Nn]))])),Ci],Qe),Mi=Be(Z([oi,Bn,jn,On,Hn,qn,Un,Jo,Ko,ei,ti]),Oe),Ii=Mi,Bi=E(u=>X(u,Ii,{memoization:!1})[0],"kr"),ji=Bi,It=E((u,g,w)=>It.compile(u,w).test(g),"N");It.compile=(()=>{const u=Oo((w,x)=>L(ji(Yo(w)),x)),g=jo((w,x)=>$(w.map(y=>u(y,x))));return(w,x)=>Bo(w)?u(w,x):g(w,x)})();var Gn=It;return a(c)})();return t.default||t},"_lazyMatch"),jt;const Ul=E((t,e)=>(jt||(jt=wr(),wr=null),jt(t,e)),"default");var Gl=Object.defineProperty,Wl=Rn((t,e)=>Gl(t,"name",{value:e,configurable:!0}),"t$1");const Vl=/^[A-Z]:\//i,ze=Wl((t="")=>t&&t.replaceAll("\\","/").replace(Vl,e=>e.toUpperCase()),"normalizeWindowsPath");var Zl=Object.defineProperty,ne=Rn((t,e)=>Zl(t,"name",{value:e,configurable:!0}),"r");const Yl=/^[/\\]{2}/,Xl=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Fo=/^[A-Z]:$/i,br=/^\/([A-Z]:)?$/i,Ql=/.(\.[^./]+)$/,Jl=/^[/\\]|^[a-z]:[/\\]/i,Kl=/\/$/,ec=ne(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),zo=ne((t,e)=>{let n="",r=0,i=-1,o=0,s;for(let a=0;a<=t.length;++a){if(a<t.length)s=t[a];else{if(s==="/")break;s="/"}if(s==="/"){if(!(i===a-1||o===1))if(o===2){if(n.length<2||r!==2||!n.endsWith(".")||n.at(-2)!=="."){if(n.length>2){const c=n.lastIndexOf("/");c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}else if(n.length>0){n="",r=0,i=a,o=0;continue}}e&&(n+=n.length>0?"/..":"..",r=2)}else n.length>0?n+=`/${t.slice(i+1,a)}`:n=t.slice(i+1,a),r=a-i-1;i=a,o=0}else s==="."&&o!==-1?++o:o=-1}return n},"normalizeString"),st=ne(t=>Xl.test(t),"isAbsolute"),$t=ne(function(t){if(t.length===0)return".";t=ze(t);const e=Yl.exec(t),n=st(t),r=t.at(-1)==="/";return t=zo(t,!n),t.length===0?n?"/":r?"./":".":(r&&(t+="/"),Fo.test(t)&&(t+="/"),e?n?`//${t}`:`//./${t}`:n&&!st(t)?`/${t}`:t)},"normalize");ne((...t)=>{let e="";for(const n of t)if(n)if(e.length>0){const r=e.at(-1)==="/",i=n[0]==="/";r&&i?e+=n.slice(1):e+=r||i?n:`/${n}`}else e+=n;return $t(e)},"join");const Et=ne(function(...t){t=t.map(r=>ze(r));let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:ec();!i||i.length===0||(e=`${i}/${e}`,n=st(i))}return e=zo(e,!n),n&&!st(e)?`/${e}`:e.length>0?e:"."},"resolve");ne(function(t){return ze(t)},"toNamespacedPath");const tc=ne(function(t){return Ql.exec(ze(t))?.[1]??""},"extname");ne(function(t,e){const n=Et(t).replace(br,"$1").split("/"),r=Et(e).replace(br,"$1").split("/");if(r[0][1]===":"&&n[0][1]===":"&&n[0]!==r[0])return r.join("/");const i=[...n];for(const o of i){if(r[0]!==o)break;n.shift(),r.shift()}return[...n.map(()=>".."),...r].join("/")},"relative");const nc=ne(t=>{const e=ze(t).replace(Kl,"").split("/").slice(0,-1);return e.length===1&&Fo.test(e[0])&&(e[0]=`${e[0]}/`),e.join("/")||(st(t)?"/":".")},"dirname");ne(function(t){const e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return ze(t.root?Et(...e):e.join("/"))},"format");const rc=ne((t,e)=>{const n=ze(t).split("/").pop();return e&&n.endsWith(e)?n.slice(0,-e.length):n},"basename");ne(function(t){const e=Jl.exec(t)?.[0]?.replaceAll("\\","/")??"",n=rc(t),r=tc(n);return{base:n,dir:nc(t),ext:r,name:n.slice(0,n.length-r.length),root:e}},"parse");ne((t,e)=>Ul(e,$t(t)),"matchesGlob");var oc=Object.defineProperty,le=b((t,e)=>oc(t,"name",{value:e,configurable:!0}),"e$1");const en="/",yr=":",ic="at ",sc=/https?:\/\/[^\s)]+/g,ac=/file:\/\//g,Do=/\/@fs\//g,lc=/\([^)]*:\d+:\d+\)/,cc=/\([^)]*:\d+\)/,dc=/[^(\s][^:]*:\d+:\d+/,uc=/[^(\s][^:]*:\d+/,pc=/:(\d+)(?::(\d+))?$/,hc=/\n/,gc=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),mc=new Set(["<anonymous>","<unknown>","native"]),fc=le(t=>{const e=t.match(pc),n=e?.[1],r=e?.[2];return{baseUrl:e?t.slice(0,-e[0].length):t,col:r,line:n}},"parseUrlWithLocation"),vc=le((t,e)=>{const n=new URL(t);let r=decodeURIComponent(n.pathname||"");return r=r.replaceAll(Do,en),Et(e,r.startsWith(en)?r.slice(1):r)},"urlToAbsolutePath"),wc=le((t,e,n)=>{if(!e)return t;const r=n?`${yr}${n}`:"";return`${t}${yr}${e}${r}`},"formatAbsolutePath"),bc=le(t=>{const e=t.trim();return!e.startsWith(ic)||!([...gc].some(n=>e.includes(n))||[...mc].some(n=>e.includes(n)))?!1:lc.test(e)||cc.test(e)||dc.test(e)||uc.test(e)||e.includes("native")||e.includes("<unknown>")},"isValidStackFrame"),yc=le(t=>{let e=t.replaceAll(Do,en);return e=e.replaceAll(ac,""),e.includes("<unknown>")?e.trim()||"":e.trim()&&!bc(e)?"":e},"cleanStackLine"),xc=le((t,e)=>{try{const{baseUrl:n,col:r,line:i}=fc(t),o=vc(n,e);return wc(o,i,r)}catch(n){return console.warn("Failed to absolutize URL:",t,n),t}},"absolutizeUrl"),Fn=le(t=>t&&t.replaceAll(`\r
1755
1898
  `,`
1756
1899
  `).replaceAll("\r",`
1757
- `).split(/\n/).map(Ml).filter(e=>e.trim()!=="").join(`
1758
- `),"cleanErrorStack"),Al=de(t=>{const e=typeof t=="string"?t:t.message||String(t);return qi(e)},"cleanErrorMessage"),Il=de(t=>t instanceof AggregateError||t&&typeof t=="object"&&"errors"in t&&Array.isArray(t.errors),"isAggregateError"),Hl=de(t=>Il(t)?t.errors:[t],"extractErrors"),Mt=de((t,e)=>t&&String(t).replaceAll(Sl,n=>Fl(n,e)),"absolutizeStackUrls");var Bl=Object.defineProperty,jl=b((t,e)=>Bl(t,"name",{value:e,configurable:!0}),"a$3");const Ol=jl(t=>{if(!t.includes("[vue/compiler-sfc]"))return;let e="",n=0,r=0;const o=/\((\d+):(\d+)\)/,i=t.match(o);i&&i[1]&&i[2]&&(n=Number.parseInt(i[1],10),r=Number.parseInt(i[2],10));const s=/(\S+\.vue)/,l=t.match(s);l&&l[1]&&(e=l[1]||"");const a=t.split(`
1759
- `)[0]||t;if(e&&n>0&&r>0)return{column:r,line:n,message:a,originalFilePath:e}},"parseVueCompilationError");var ql=Object.defineProperty,Po=b((t,e)=>ql(t,"name",{value:e,configurable:!0}),"a$2");const Ul=Po(t=>{const e=/<style\b[^>]*>[\s\S]*?<\/style>/gi,n=/<script\b[^>]*>[\s\S]*?<\/script>/gi,r=/<template\b[^>]*>[\s\S]*?<\/template>/gi,o=/style="([^"]*)"/g;let i=t.replaceAll(e,"").replaceAll(n,"").replaceAll(r,"").replaceAll("<!--$?-->","").replaceAll("<!--/$-->","");return i=i.replaceAll(o,(s,l)=>`style="${(l.trim().endsWith(";")?l:`${l};`).replaceAll(" ","")}"`),i},"removeStyleAndDataAttributes"),Vl="https://react.dev/link/hydration-mismatch",Nl=Po(t=>{const[e,n]=t.message.split(Vl);if(e){const[i]=e?.split(`
1760
-
1761
- `);t.message=i.replace(" This can happen if a SSR-ed Client Component used:","")}const r=[];for(const i of Ul(n?.trim()||"").split(`
1762
- `)||[])i.startsWith("+ ")?r.push(`[!code ++] ${i.slice(1)}`):i.startsWith("- ")?r.push(`[!code --] ${i.slice(1)}`):i.includes(" ...")||r.push(i);let o=r.findIndex(i=>i.startsWith("[!code ++]"));if(o===-1&&(o=r.findIndex(i=>i.startsWith("[!code --]"))),o!==-1)return r.slice(Math.max(0,o-5)).join(`
1763
- `)},"processHydrationDiff");var Zl=Object.defineProperty,Wl=b((t,e)=>Zl(t,"name",{value:e,configurable:!0}),"m$1");const Gl=Wl(async(t,e,n)=>{let r=e;if(e.includes("at ")&&!e.includes(`
1764
- at `)&&(r=e.replace(/^(Error:.*?)at /,`$1
1765
- at `).replaceAll(/at ([^<\s]+)\s*(<[^>]+>:\d+:\d+)/g,`
1766
- at $1 $2`).replaceAll(/at ([^<\s]+)\s*(<unknown>:\d+:\d+)/g,`
1767
- at $1 $2`).replaceAll(/at ([^<\s]+)\s*<([^>]+)>:\d+:\d+/g,`
1768
- at $1 <$2>:d+:d+`),r=r.replaceAll(/at ([^<\s]+)(?=\s*at|$)/g,`
1769
- at $1 <unknown>:0:0`)),!r.includes("<unknown>")&&!r.includes("react-dom")&&!r.includes("react"))return r;const o=Oe({stack:r}),i=await Promise.all(o.map(async s=>{const{file:l}=s,a=s.line??0,c=s.column??0;if(l&&l!=="<unknown>"&&a>0&&c>0&&!l.includes("react-dom")&&!l.includes("react"))return s;if(!l||a<=0||c<=0){if((l==="<unknown>"||l&&(l.includes("react-dom")||l.includes("react")))&&s.methodName){const{methodName:d}=s,u={batchedUpdates:"Batch Updates",dispatchEvent:"Event System",executeDispatch:"Event Dispatcher",processDispatchQueue:"Event Queue",runWithFiber:"Fiber Reconciliation"};for(const[g,v]of Object.entries(u))if(d.includes(g))return{...s,column:0,file:`[React] ${v}`,line:0};if(!d.includes("$")&&!d.includes("anonymous")){const g=Te(d),v=et(t,g);if(v){const f=await Xt(t,v,"",1,1);if(f.originalFilePath)return{...s,column:f.originalFileColumn||1,file:f.originalFilePath,line:f.originalFileLine||1}}}}return s}try{const d=Te(l),u=et(t,d);if(!u)return s;const g=await Xt(t,u,l,a,c);return{...s,column:g.originalFileColumn,file:g.originalFilePath,line:g.originalFileLine}}catch{return s}}));return xr(i,{header:n})},"remapStackToOriginal");var Yl=Object.defineProperty,it=b((t,e)=>Yl(t,"name",{value:e,configurable:!0}),"t");const Xl=it(t=>!!(t&&Array.isArray(t.sources)&&Array.isArray(t.sourcesContent)),"isValidSourceMap"),Ht=it(t=>typeof t=="string"?t:void 0,"getSourceContent"),Ql=it((t,e)=>t===e||t.endsWith(e)||e.endsWith(t),"isPartialMatch"),Jl=it((t,e)=>{if(!t||t.length===0)return-1;const n=t.indexOf(e);if(n!==-1)return n;if(!(e.includes("\\")||e.includes("/")))return-1;const r=yt(e),o=t.indexOf(r);if(o!==-1)return o;for(const[i,s]of t.entries()){if(!s||typeof s!="string")continue;const l=yt(s);if(Ql(l,r))return i}return-1},"findSourceIndex"),yr=it((t,e)=>{if(!Xl(t))return;if(!e&&t.sourcesContent?.[0])return Ht(t.sourcesContent[0]);const n=Jl(t.sources,e||"");return n>=0&&t.sourcesContent?.[n]?Ht(t.sourcesContent[n]):t.sourcesContent?.[0]?Ht(t.sourcesContent[0]):void 0},"getSourceFromMap");var Kl=Object.defineProperty,ec=b((t,e)=>Kl(t,"name",{value:e,configurable:!0}),"f");const kr=ec(async(t,e,n,r)=>{let o,i;if(e&&typeof e=="object"&&"transformResult"in e&&e.transformResult){const l=e.transformResult;l.code&&!i&&(i=l.code),l.map&&!o&&(o=yr(l.map,n))}const s=e&&typeof e=="object"&&("id"in e&&e.id||"url"in e&&e.url)?"id"in e&&e.id||"url"in e&&e.url:r[0];if(s&&(!o||!i))try{const l=await t.transformRequest(s);if(l?.code&&!i&&(i=l.code),l?.map&&!o){const{map:a}=l;typeof a=="object"&&a!==null&&"mappings"in a&&a.mappings!==""&&(o=yr(a,n))}}catch{}if(!o&&e&&typeof e=="object"&&"file"in e&&e.file)try{o=await _r(e.file,"utf8")}catch{}return{compiledSourceText:i,originalSourceText:o}},"retrieveSourceTexts");var tc=Object.defineProperty,nc=b((t,e)=>tc(t,"name",{value:e,configurable:!0}),"a");const rc=nc((t={})=>{const{classActivePre:e="has-diff",classLineAdd:n="diff add",classLineRemove:r="diff remove"}=t;return{code(o){this.addClassToHast(this.pre,e),o.children.filter(i=>i.type==="element").forEach(i=>{for(const s of i.children){if(s.type!=="element")continue;const l=s.children[0];l.type==="text"&&(l.value.startsWith("[!code ++]")&&(l.value=l.value.slice(10),this.addClassToHast(i,n)),l.value.startsWith("[!code --]")&&(l.value=l.value.slice(10),this.addClassToHast(i,r)))}})},name:"shiki-diff"}},"shikiDiffTransformer");var oc=Object.defineProperty,ic=b((t,e)=>oc(t,"name",{value:e,configurable:!0}),"r");const sc=ic((t,e)=>!e||t.includes("?")?t:t+e,"addQueryToUrl");var ac=Object.defineProperty,lc=b((t,e)=>ac(t,"name",{value:e,configurable:!0}),"e");const cc=lc(t=>{try{return new URL(t).search}catch{return""}},"extractQueryFromHttpUrl");var dc=Object.defineProperty,$e=b((t,e)=>dc(t,"name",{value:e,configurable:!0}),"E$1");const pc=$e(t=>Array.isArray(t)&&fa(t)?va(t).map(e=>({message:e.message||"ESBuild error",name:e.name||"Error",stack:e.stack||""})):Hl(t),"extractIndividualErrors"),hc=$e(t=>{const e=Oe(t,{frameLimit:10}),n=e?.find(r=>r?.file?.startsWith("http"))||e?.[0];return{compiledColumn:n?.column??0,compiledFilePath:n?.file??"",compiledLine:n?.line??0}},"extractLocationFromStack"),uc=$e(async(t,e,n,r,o,i,s=0,l)=>{const a=o?.originalFilePath||e,c=o?.line??r,d=o?.column??n;if(a){let u=a,g=a;if(a.startsWith("http://")||a.startsWith("https://"))try{u=new URL(a).pathname,u.startsWith("/")&&(u=u.slice(1));const L=t.config.root||process.cwd();g=u.startsWith("/")?u:`${L}/${u}`}catch{console.warn("Failed to parse HTTP URL:",a)}const v=Te(u),f=et(t,v);if(f)try{const L=await Xt(t,f,e||l||u,c,d,i,s),T=g||L.originalFilePath;return{originalFileColumn:L.originalFileColumn,originalFileLine:L.originalFileLine,originalFilePath:T}}catch{console.warn("⚠️ Source map resolution failed, using estimation")}let m,k=d;return c>=20?m=Math.max(1,Math.round(c*.5)):c>15?m=Math.max(1,Math.round(c*.6)):c>10?m=Math.max(1,c-8):m=Math.max(1,c-3),d>=10||d>7?k=Math.max(0,d-1):d>5&&(k=Math.max(0,d)),{originalFileColumn:k,originalFileLine:m,originalFilePath:g||a}}return{originalFileColumn:d,originalFileLine:c,originalFilePath:a}},"resolveOriginalLocationInfo"),gc=$e((t,e,n,r,o,i)=>({compiledCodeFrameContent:void 0,compiledColumn:t,compiledFilePath:e,compiledLine:n,fixPrompt:"",originalCodeFrameContent:void 0,originalFileColumn:r,originalFileLine:o,originalFilePath:i,originalSnippet:""}),"createEmptyResult"),mc=$e(async(t,e,n,r,o,i)=>{let s,l;const a=qe(n),c=qe(r)||a,d=$e(v=>v.replaceAll(/[&<>"']/g,f=>({'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;"})[f]||f),"escapeHtml");if(a==="text"&&t&&t.trim()&&(s=`<pre class="shiki"><code>${d(t)}</code></pre>`),c==="text"&&e&&e.trim()&&(l=`<pre class="shiki"><code>${d(e)}</code></pre>`),a==="text"&&c==="text")return{compiledCodeFrameContent:l,originalCodeFrameContent:s};const u=await Or([c,a]),g={themes:{dark:"github-dark-default",light:"github-light"}};if(t&&t.trim())try{s=u.codeToHtml(t,{...g,lang:a,transformers:[ar([{classes:["error-line"],line:o}])]})}catch{}if(e&&e.trim())try{l=u.codeToHtml(e,{...g,lang:c,transformers:[ar([{classes:["error-line"],line:i}])]})}catch{}return{compiledCodeFrameContent:l,originalCodeFrameContent:s}},"generateSyntaxHighlightedFrames"),fc=$e(async(t,e,n=0,r,o,i)=>{const s=r==="vue"&&t?.message?Ol(t.message):void 0,l=pc(t),a=l[0]||t,c=r==="react"&&t.message&&(t.message.toLowerCase().includes("hydration")||t.message.toLowerCase().includes("hydrating"));let d="";if(i&&i.length>1)for(const F of i.slice(1)){const j=F.stack||"",G=Oe({stack:j},{frameLimit:10})?.find(S=>S?.file?.startsWith("http"));if(G?.file&&(d=cc(G.file),d))break}const u=Al(a),g=Ln(a.stack||""),v=await Gl(e,g,{message:u,name:a.name});let f,m,k;if(o?.file&&o?.line&&o?.column)f=o.column,m=o.file,k=o.line;else{const F=hc(a);if(f=F.compiledColumn,m=F.compiledFilePath,k=F.compiledLine,m&&!m.startsWith("http")){const j=e.config.root;let G=m;m.startsWith(j)&&(G=m.slice(j.length)),G.startsWith("/")||(G=`/${G}`);const S=e.config.server.port||e.config.preview?.port||5173,ye=e.config.server.host||e.config.preview?.host||"localhost";let ae=`${e.config.server.https?"https":"http"}://${ye}:${S}${G}`;d&&(ae=sc(ae,d)),m=ae}}if(c){const F=Nl(t);if(F){const j=m?qe(m):"javascript";if(j==="text"){const S=$e(ye=>ye.replaceAll(/[&<>"']/g,ae=>({'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;"})[ae]||ae),"escapeHtml");return{errorCount:1,fixPrompt:At({applicationType:void 0,error:a,file:{file:m,language:"jsx",line:k,snippet:F}}),message:a.message,originalCodeFrameContent:`<pre class="shiki"><code>${S(F)}</code></pre>`,originalFileColumn:f,originalFileLine:k,originalFilePath:m,originalSnippet:F,originalStack:a.stack||""}}const G=await Or([j]);return{errorCount:1,fixPrompt:At({applicationType:void 0,error:a,file:{file:m,language:"jsx",line:k,snippet:F}}),message:a.message,originalCodeFrameContent:G.codeToHtml(F,{lang:j,themes:{dark:"github-dark-default",light:"github-light"},transformers:[rc()]}),originalFileColumn:f,originalFileLine:k,originalFilePath:m,originalSnippet:F,originalStack:a.stack||""}}}let L=o?.file||m;if(!o?.file&&a.stack){const F=Oe(a,{frameLimit:10})?.find(j=>j?.file&&!j.file.startsWith("http")&&!j.file.includes("node_modules")&&!j.file.includes(".vite")&&j.file.includes(".tsx"));F?.file&&(L=F.file)}let{originalFileColumn:T,originalFileLine:$,originalFilePath:M}=await uc(e,L,f,k,s,a.message,n,m);const z=o?.plugin;let D="",Z="",U,B;try{const[F,j]=await Promise.all([et(e,Te(m)),et(e,Te(M))]);if(!F&&!j)return gc(f,m,k,T,$,M);const G=m.startsWith("http")?m.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):m,S=M.startsWith("http")?M.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):M,ye=F||j;if(ye?.transformResult?.code&&(B=ye.transformResult.code),j?.transformResult?.map&&!U){const X=j.transformResult.map;try{const te=X.sourcesContent?.[0];te&&(U=te)}catch(te){console.warn("Failed to get original source from source map:",te)}}const[ae,st]=await Promise.all([!B&&F?kr(e,F,G,Te(G)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0}),!U&&j?kr(e,j,S,Te(S)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0})]);if(!B&&ae.compiledSourceText&&({compiledSourceText:B}=ae),!U&&st.originalSourceText&&({originalSourceText:U}=st),U){if(B&&$<=0&&k>0){const X=Pa(B,k,f,U);X&&($=X.line,T=X.column)}try{D=Vn(U,{start:{column:Math.max(1,T),line:Math.max(1,$)}},{showGutter:!1})}catch{D=U?.slice(0,500)||""}}const at=B&&k>0,lt=$>0&&T>0;let ke=!1;if(at&&k>0&&a.message&&B){const X=B.split(`
1770
- `)[k-1];if(X&&f<=X.length){const te=a.message,Ce=Math.max(0,f-1),re=new Set(X.slice(Math.max(0,Ce)));ke=re.has("new Error(")||re.has("throw new Error")||re.has("throw ")||re.has(te.slice(0,20)),!ke&&lt&&(M.includes(".svelte")||M.includes(".vue")||M.includes(".astro")||m.includes(".js")||m.includes(".ts"))&&(ke=!0)}}if(at&&ke&&B){const X=B.split(`
1771
- `),te=X.length,Ce=Math.min(k,te)||Math.max(1,te-2),re=X[Ce-1]?Math.min(f||1,X[Ce-1]?.length||1):1;try{Z=Vn(B,{start:{column:re,line:Ce}},{showGutter:!1})}catch(ie){console.warn("Compiled codeFrame failed:",ie),Z=B?.slice(0,500)||""}}}catch(F){console.warn("Source retrieval failed:",F)}const{compiledCodeFrameContent:pe,originalCodeFrameContent:Ae}=await mc(D,Z,M,m,$,k);let he=D;if(!he&&U){const F=U.split(`
1772
- `),j=Math.max(0,$-3),G=Math.min(F.length,$+2);he=F.slice(j,G).join(`
1773
- `)}he||(he=Z||`Error at line ${$} in ${M}`);const Se=At({applicationType:void 0,error:t,file:{file:M,language:qe(M),line:$,snippet:he}});return{compiledCodeFrameContent:pe,compiledColumn:f,compiledFilePath:m,compiledLine:k,compiledStack:xr(Oe({message:u,name:a.name,stack:g}),{header:{message:u,name:a.name}}),errorCount:l.length,fixPrompt:Se,originalCodeFrameContent:Ae,originalFileColumn:T,originalFileLine:$,originalFilePath:M,originalSnippet:D,originalStack:v||g,plugin:z}},"buildExtendedErrorData");var vc=Object.defineProperty,wc=b((t,e)=>vc(t,"name",{value:e,configurable:!0}),"o$1");const bc=wc((t,e,n)=>{const r=e.map(o=>{const i=o.charAt(0).toUpperCase()+o.slice(1);return`
1774
- var orig${i} = console.${o};
1775
-
1776
- console.${o} = function(...args) {
1900
+ `).split(hc).map(e=>yc(e)).filter(e=>e.trim()!=="").join(`
1901
+ `),"cleanErrorStack"),kc=le(t=>{const e=typeof t=="string"?t:t.message||String(t);return Vi(e)},"cleanErrorMessage"),_c=le(t=>t instanceof AggregateError||t!==null&&typeof t=="object"&&"errors"in t&&Array.isArray(t.errors),"isAggregateError"),$c=le(t=>_c(t)?t.errors:[t],"extractErrors"),At=le((t,e)=>t&&String(t).replaceAll(sc,n=>xc(n,e)),"absolutizeStackUrls");var Ec=Object.defineProperty,Sc=b((t,e)=>Ec(t,"name",{value:e,configurable:!0}),"c$3");const Cc=/\((\d+):(\d+)\)/,Lc=/(\S+\.vue)/,Tc=Sc(t=>{if(!t.includes("[vue/compiler-sfc]"))return;let e="",n=0,r=0;const i=t.match(Cc);i?.[1]&&i[2]&&(n=Number.parseInt(i[1],10),r=Number.parseInt(i[2],10));const o=t.match(Lc);o?.[1]&&(e=o[1]||"");const s=t.split(`
1902
+ `)[0]||t;if(e&&n>0&&r>0)return{column:r,line:n,message:s,originalFilePath:e}},"parseVueCompilationError");var Pc=Object.defineProperty,Ao=b((t,e)=>Pc(t,"name",{value:e,configurable:!0}),"l$2");const Rc=/<style\b[^>]*>[\s\S]*?<\/style>/gi,Fc=/<script\b[^>]*>[\s\S]*?<\/script>/gi,zc=/<template\b[^>]*>[\s\S]*?<\/template>/gi,Dc=/style="([^"]*)"/g,Ac=Ao(t=>{let e=t.replaceAll(Rc,"").replaceAll(Fc,"").replaceAll(zc,"").replaceAll("<!--$?-->","").replaceAll("<!--/$-->","");return e=e.replaceAll(Dc,(n,r)=>`style="${(r.trim().endsWith(";")?r:`${r};`).replaceAll(" ","")}"`),e},"removeStyleAndDataAttributes"),Mc="https://react.dev/link/hydration-mismatch",Ic=Ao(t=>{const[e,n]=t.message.split(Mc);if(e){const[o]=e?.split(`
1903
+
1904
+ `);t.message=o.replace(" This can happen if a SSR-ed Client Component used:","")}const r=[];for(const o of Ac(n?.trim()||"").split(`
1905
+ `)||[])o.startsWith("+ ")?r.push(`[!code ++] ${o.slice(1)}`):o.startsWith("- ")?r.push(`[!code --] ${o.slice(1)}`):o.includes(" ...")||r.push(o);let i=r.findIndex(o=>o.startsWith("[!code ++]"));if(i===-1&&(i=r.findIndex(o=>o.startsWith("[!code --]"))),i!==-1)return r.slice(Math.max(0,i-5)).join(`
1906
+ `)},"processHydrationDiff");var Bc=Object.defineProperty,jc=b((t,e)=>Bc(t,"name",{value:e,configurable:!0}),"m");const Oc=/^(Error:.*?)at /,Hc=/at ([^<\s]+)\s*(<[^>]+>:\d+:\d+)/g,qc=/at ([^<\s]+)\s*(<unknown>:\d+:\d+)/g,Nc=/at ([^<\s]+)\s*<([^>]+)>:\d+:\d+/g,Uc=/at ([^<\s]+)(?=\s*at|$)/g,Gc=jc(async(t,e,n)=>{let r=e;if(e.includes("at ")&&!e.includes(`
1907
+ at `)&&(r=e.replace(Oc,`$1
1908
+ at `).replaceAll(Hc,`
1909
+ at $1 $2`).replaceAll(qc,`
1910
+ at $1 $2`).replaceAll(Nc,`
1911
+ at $1 <$2>:0:0`),r=r.replaceAll(Uc,`
1912
+ at $1 <unknown>:0:0`)),!r.includes("<unknown>")&&!r.includes("react-dom")&&!r.includes("react"))return r;const i=Ne({stack:r}),o=await Promise.all(i.map(async s=>{const{file:a}=s,c=s.line??0,l=s.column??0;if(a&&a!=="<unknown>"&&c>0&&l>0&&!a.includes("react-dom")&&!a.includes("react"))return s;if(!a||c<=0||l<=0){if((a==="<unknown>"||a&&(a.includes("react-dom")||a.includes("react")))&&s.methodName){const{methodName:d}=s,p={batchedUpdates:"Batch Updates",dispatchEvent:"Event System",executeDispatch:"Event Dispatcher",processDispatchQueue:"Event Queue",runWithFiber:"Fiber Reconciliation"};for(const[h,f]of Object.entries(p))if(d.includes(h))return{...s,column:0,file:`[React] ${f}`,line:0};if(!d.includes("$")&&!d.includes("anonymous")){const h=Ce(d),f=it(t,h);if(f){const v=await Kt(t,f,"",1,1);if(v.originalFilePath)return{...s,column:v.originalFileColumn||1,file:v.originalFilePath,line:v.originalFileLine||1}}}}return s}try{const d=Ce(a),p=it(t,d);if(!p)return s;const h=await Kt(t,p,a,c,l);return{...s,column:h.originalFileColumn,file:h.originalFilePath,line:h.originalFileLine}}catch{return s}}));return Sr(o,{header:n})},"remapStackToOriginal");var Wc=Object.defineProperty,dt=b((t,e)=>Wc(t,"name",{value:e,configurable:!0}),"t");const Vc=dt(t=>!!(t&&Array.isArray(t.sources)&&Array.isArray(t.sourcesContent)),"isValidSourceMap"),Ot=dt(t=>{if(typeof t=="string")return t},"getSourceContent"),Zc=dt((t,e)=>t===e||t.endsWith(e)||e.endsWith(t),"isPartialMatch"),Yc=dt((t,e)=>{if(!t||t.length===0)return-1;const n=t.indexOf(e);if(n!==-1)return n;if(!(e.includes("\\")||e.includes("/")))return-1;const r=$t(e),i=t.indexOf(r);if(i!==-1)return i;for(const[o,s]of t.entries()){if(!s||typeof s!="string")continue;const a=$t(s);if(Zc(a,r))return o}return-1},"findSourceIndex"),xr=dt((t,e)=>{if(!Vc(t))return;if(!e&&t.sourcesContent?.[0])return Ot(t.sourcesContent[0]);const n=Yc(t.sources,e||"");return n>=0&&t.sourcesContent?.[n]?Ot(t.sourcesContent[n]):t.sourcesContent?.[0]?Ot(t.sourcesContent[0]):void 0},"getSourceFromMap");var Xc=Object.defineProperty,Qc=b((t,e)=>Xc(t,"name",{value:e,configurable:!0}),"f");const kr=Qc(async(t,e,n,r)=>{let i,o;if(e&&typeof e=="object"&&"transformResult"in e&&e.transformResult){const a=e.transformResult;a.code&&!o&&(o=a.code),a.map&&!i&&(i=xr(a.map,n))}const s=e&&typeof e=="object"&&("id"in e&&e.id||"url"in e&&e.url)?"id"in e&&e.id||"url"in e&&e.url:r[0];if(s&&(!i||!o))try{const a=await t.transformRequest(s);if(a?.code&&!o&&(o=a.code),a?.map&&!i){const{map:c}=a,l=c;typeof c=="object"&&c!==null&&"mappings"in c&&l.mappings!==""&&(i=xr(l,n))}}catch{}if(!i&&e&&typeof e=="object"&&"file"in e&&e.file)try{i=await Er(e.file,"utf8")}catch{}return{compiledSourceText:o,originalSourceText:i}},"retrieveSourceTexts");var Jc=Object.defineProperty,Kc=b((t,e)=>Jc(t,"name",{value:e,configurable:!0}),"a");const ed=Kc((t={})=>{const{classActivePre:e="has-diff",classLineAdd:n="diff add",classLineRemove:r="diff remove"}=t;return{code(i){this.addClassToHast(this.pre,e),i.children.filter(o=>o.type==="element").forEach(o=>{for(const s of o.children){if(s.type!=="element")continue;const a=s.children[0];a.type==="text"&&(a.value.startsWith("[!code ++]")&&(a.value=a.value.slice(10),this.addClassToHast(o,n)),a.value.startsWith("[!code --]")&&(a.value=a.value.slice(10),this.addClassToHast(o,r)))}})},name:"shiki-diff"}},"shikiDiffTransformer");var td=Object.defineProperty,nd=b((t,e)=>td(t,"name",{value:e,configurable:!0}),"r");const rd=nd((t,e)=>!e||t.includes("?")?t:t+e,"addQueryToUrl");var od=Object.defineProperty,id=b((t,e)=>od(t,"name",{value:e,configurable:!0}),"e");const sd=id(t=>{try{return new URL(t).search}catch{return""}},"extractQueryFromHttpUrl");var ad=Object.defineProperty,De=b((t,e)=>ad(t,"name",{value:e,configurable:!0}),"T");const ld=/[&<>"']/g,_r=/^https?:\/\/[^/]+/,$r=/^\//,cd={'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;"},tn=De(t=>t.replaceAll(ld,e=>cd[e]||e),"escapeHtml"),dd=De(t=>Array.isArray(t)&&qa(t)?Na(t).map(e=>({message:e.message||"ESBuild error",name:e.name||"Error",stack:e.stack||""})):$c(t),"extractIndividualErrors"),ud=De(t=>{const e=Ne(t,{frameLimit:10}),n=e?.find(r=>r?.file?.startsWith("http"))||e?.[0];return{compiledColumn:n?.column??0,compiledFilePath:n?.file??"",compiledLine:n?.line??0}},"extractLocationFromStack"),pd=De(async(t,e,n,r,i,o,s=0,a)=>{const c=i?.originalFilePath||e,l=i?.line??r,d=i?.column??n;if(c){let p=c,h=c;if(c.startsWith("http://")||c.startsWith("https://"))try{p=new URL(c).pathname,p.startsWith("/")&&(p=p.slice(1));const L=t.config.root||process.cwd();h=p.startsWith("/")?p:`${L}/${p}`}catch{console.warn("Failed to parse HTTP URL:",c)}const f=Ce(p),v=it(t,f);if(v)try{const L=await Kt(t,v,e||a||p,l,d,o,s),T=h||L.originalFilePath;return{originalFileColumn:L.originalFileColumn,originalFileLine:L.originalFileLine,originalFilePath:T}}catch{console.warn("Source map resolution failed, using estimation")}let m,k=d;return l>=20?m=Math.max(1,Math.round(l*.5)):l>15?m=Math.max(1,Math.round(l*.6)):l>10?m=Math.max(1,l-8):m=Math.max(1,l-3),d>=10||d>7?k=Math.max(0,d-1):d>5&&(k=Math.max(0,d)),{originalFileColumn:k,originalFileLine:m,originalFilePath:h||c}}return{originalFileColumn:d,originalFileLine:l,originalFilePath:c}},"resolveOriginalLocationInfo"),hd=De((t,e,n,r,i,o)=>({compiledCodeFrameContent:void 0,compiledColumn:t,compiledFilePath:e,compiledLine:n,fixPrompt:"",originalCodeFrameContent:void 0,originalFileColumn:r,originalFileLine:i,originalFilePath:o,originalSnippet:""}),"createEmptyResult"),gd=De(async(t,e,n,r,i,o)=>{let s,a;const c=Ue(n),l=Ue(r)||c;if(c==="text"&&t&&t.trim()&&(s=`<pre class="shiki"><code>${tn(t)}</code></pre>`),l==="text"&&e&&e.trim()&&(a=`<pre class="shiki"><code>${tn(e)}</code></pre>`),c==="text"&&l==="text")return{compiledCodeFrameContent:a,originalCodeFrameContent:s};const d=await Gr([l,c]),p={themes:{dark:"min-dark",light:"min-light"}};if(t&&t.trim())try{s=d.codeToHtml(t,{...p,lang:c,transformers:[lr([{classes:["error-line"],line:i}])]})}catch{}if(e&&e.trim())try{a=d.codeToHtml(e,{...p,lang:l,transformers:[lr([{classes:["error-line"],line:o}])]})}catch{}return{compiledCodeFrameContent:a,originalCodeFrameContent:s}},"generateSyntaxHighlightedFrames"),md=De(async(t,e,n=0,r,i,o)=>{const s=r==="vue"&&t?.message?Tc(t.message):void 0,a=dd(t),c=a[0]||t,l=r==="react"&&t.message&&(t.message.toLowerCase().includes("hydration")||t.message.toLowerCase().includes("hydrating"));let d="";if(o&&o.length>1)for(const F of o.slice(1)){const H=F.stack||"",X=Ne({stack:H},{frameLimit:10})?.find(S=>S?.file?.startsWith("http"));if(X?.file&&(d=sd(X.file),d))break}const p=kc(c),h=Fn(c.stack||""),f=await Gc(e,h,{message:p,name:c.name});let v,m,k;if(i?.file&&i?.line&&i?.column)v=i.column,m=i.file,k=i.line;else{const F=ud(c);if(v=F.compiledColumn,m=F.compiledFilePath,k=F.compiledLine,m&&!m.startsWith("http")){const H=e.config.root;let X=m;m.startsWith(H)&&(X=m.slice(H.length)),X.startsWith("/")||(X=`/${X}`);const S=e.config.server.port||e.config.preview?.port||5173,Me=e.config.server.host||e.config.preview?.host||"localhost";let be=`${e.config.server.https?"https":"http"}://${Me}:${S}${X}`;d&&(be=rd(be,d)),m=be}}if(l){const F=Ic(t);if(F){const H=m?Ue(m):"javascript";if(H==="text")return{errorCount:1,fixPrompt:Bt({applicationType:void 0,error:c,file:{file:m,language:"jsx",line:k,snippet:F}}),message:c.message,originalCodeFrameContent:`<pre class="shiki"><code>${tn(F)}</code></pre>`,originalFileColumn:v,originalFileLine:k,originalFilePath:m,originalSnippet:F,originalStack:c.stack||""};const X=await Gr([H]);return{errorCount:1,fixPrompt:Bt({applicationType:void 0,error:c,file:{file:m,language:"jsx",line:k,snippet:F}}),message:c.message,originalCodeFrameContent:X.codeToHtml(F,{lang:H,themes:{dark:"min-dark",light:"min-light"},transformers:[ed()]}),originalFileColumn:v,originalFileLine:k,originalFilePath:m,originalSnippet:F,originalStack:c.stack||""}}}let L=i?.file||m;if(!i?.file&&c.stack){const F=Ne(c,{frameLimit:10})?.find(H=>H?.file&&!H.file.startsWith("http")&&!H.file.includes("node_modules")&&!H.file.includes(".vite")&&H.file.includes(".tsx"));F?.file&&(L=F.file)}let{originalFileColumn:T,originalFileLine:$,originalFilePath:R}=await pd(e,L,v,k,s,c.message,n,m);const A=i?.plugin;let M="",j="",U,O;try{const[F,H]=await Promise.all([it(e,Ce(m)),it(e,Ce(R))]);if(!F&&!H)return hd(v,m,k,T,$,R);const X=m.startsWith("http")?m.replace(_r,"").replace($r,""):m,S=R.startsWith("http")?R.replace(_r,"").replace($r,""):R,Me=F||H;if(Me?.transformResult?.code&&(O=Me.transformResult.code),H?.transformResult?.map&&!U){const V=H.transformResult.map;try{const Z=V.sourcesContent?.[0];Z&&(U=Z)}catch(Z){console.warn("Failed to get original source from source map:",Z)}}const be={compiledSourceText:void 0,originalSourceText:void 0};let ut=Promise.resolve(be);!O&&F&&(ut=kr(e,F,X,Ce(X)));let pt=Promise.resolve(be);!U&&H&&(pt=kr(e,H,S,Ce(S)));const[Ze,Ie]=await Promise.all([ut,pt]);if(!O&&Ze.compiledSourceText&&({compiledSourceText:O}=Ze),!U&&Ie.originalSourceText&&({originalSourceText:U}=Ie),U){if(O&&$<=0&&k>0){const V=ll(O,k,v,U);V&&($=V.line,T=V.column)}try{M=Vn(U,{start:{column:Math.max(1,T),line:Math.max(1,$)}},{showGutter:!1})}catch{M=U?.slice(0,500)||""}}const Ye=O&&k>0,Be=$>0&&T>0;let je=!1;if(Ye&&k>0&&c.message&&O){const V=O.split(`
1913
+ `)[k-1];if(V&&v<=V.length){const Z=c.message,ye=Math.max(0,v-1),ue=new Set(V.slice(Math.max(0,ye)));je=ue.has("new Error(")||ue.has("throw new Error")||ue.has("throw ")||ue.has(Z.slice(0,20)),!je&&Be&&(R.includes(".svelte")||R.includes(".vue")||R.includes(".astro")||m.includes(".js")||m.includes(".ts"))&&(je=!0)}}if(Ye&&je&&O){const V=O.split(`
1914
+ `),Z=V.length,ye=Math.min(k,Z)||Math.max(1,Z-2),ue=V[ye-1]?Math.min(v||1,V[ye-1]?.length||1):1;try{j=Vn(O,{start:{column:ue,line:ye}},{showGutter:!1})}catch(Xe){console.warn("Compiled codeFrame failed:",Xe),j=O?.slice(0,500)||""}}}catch(F){console.warn("Source retrieval failed:",F)}const{compiledCodeFrameContent:ce,originalCodeFrameContent:Ae}=await gd(M,j,R,m,$,k);let de=M;if(!de&&U){const F=U.split(`
1915
+ `),H=Math.max(0,$-3),X=Math.min(F.length,$+2);de=F.slice(H,X).join(`
1916
+ `)}de||(de=j||`Error at line ${$} in ${R}`);const $e=Bt({applicationType:void 0,error:t,file:{file:R,language:Ue(R),line:$,snippet:de}});return{compiledCodeFrameContent:ce,compiledColumn:v,compiledFilePath:m,compiledLine:k,compiledStack:Sr(Ne({message:p,name:c.name,stack:h}),{header:{message:p,name:c.name}}),errorCount:a.length,fixPrompt:$e,originalCodeFrameContent:Ae,originalFileColumn:T,originalFileLine:$,originalFilePath:R,originalSnippet:M,originalStack:f||h,plugin:A}},"buildExtendedErrorData");var fd=Object.defineProperty,vd=b((t,e)=>fd(t,"name",{value:e,configurable:!0}),"n");const wd=vd((t,e,n)=>{const r=e.map(i=>{const o=i.charAt(0).toUpperCase()+i.slice(1);return`
1917
+ var orig${o} = console.${i};
1918
+
1919
+ console.${i} = function(...args) {
1777
1920
  function parseConsoleArgs(args) {
1778
1921
  if (
1779
1922
  args.length > 3 &&
@@ -1824,7 +1967,7 @@ console.${o} = function(...args) {
1824
1967
  }
1825
1968
  } catch {}
1826
1969
 
1827
- return orig${i}.apply(console, args);
1970
+ return orig${o}.apply(console, args);
1828
1971
  };`}).join(`
1829
1972
  `);return String.raw`
1830
1973
  import { createHotContext } from '/@vite/client';
@@ -1868,7 +2011,7 @@ async function sendError(error, loc) {
1868
2011
 
1869
2012
  var causeChain = extractCauseChain(error);
1870
2013
 
1871
- hot.send('${Ar}', {
2014
+ hot.send('${jr}', {
1872
2015
  name: error?.name || null,
1873
2016
  message: error.message,
1874
2017
  stack: error.stack,
@@ -1912,6 +2055,47 @@ window.addEventListener("unhandledrejection", function (evt) {
1912
2055
  sendError(evt.reason);
1913
2056
  });
1914
2057
 
2058
+ // Clears all error state when an HMR update is successfully applied (i.e. the error was fixed).
2059
+ // vite:beforeUpdate fires after successful compilation, before module replacement.
2060
+ // vite:beforeFullReload fires before a full-page reload (server restart / config change).
2061
+ function clearErrorState() {
2062
+ globalThis.__v_o_error_history = [];
2063
+
2064
+ var overlay = globalThis.__v_o__current;
2065
+
2066
+ if (!overlay) {
2067
+ return;
2068
+ }
2069
+
2070
+ var root = overlay.__elements && overlay.__elements.root;
2071
+
2072
+ if (root) {
2073
+ root.classList.add('hidden');
2074
+ }
2075
+
2076
+ var balloonGroup = overlay.__elements && overlay.__elements.balloonGroup;
2077
+
2078
+ if (balloonGroup) {
2079
+ balloonGroup.classList.add('hidden');
2080
+ balloonGroup.classList.remove('inline-flex');
2081
+ }
2082
+
2083
+ var balloonCount = overlay.__elements && overlay.__elements.balloonCount;
2084
+
2085
+ if (balloonCount) {
2086
+ balloonCount.style.setProperty('--num', '0');
2087
+ }
2088
+
2089
+ // Reset dismissed flag so the next error shows the balloon again
2090
+ overlay.__v_oBalloonDismissed = false;
2091
+ if (typeof overlay._saveBalloonState === 'function') {
2092
+ overlay._saveBalloonState('dismissed', 'false');
2093
+ }
2094
+ }
2095
+
2096
+ hot.on('vite:beforeUpdate', function() { clearErrorState(); });
2097
+ hot.on('vite:beforeFullReload', function() { clearErrorState(); });
2098
+
1915
2099
  // Expose overlay API for manual control
1916
2100
  window.__visulima_overlay__ = {
1917
2101
  open: function() {
@@ -1938,10 +2122,9 @@ window.__visulima_overlay__ = {
1938
2122
  };
1939
2123
 
1940
2124
  ${r}
1941
- `},"generateClientScript");var yc=Object.defineProperty,be=b((t,e)=>yc(t,"name",{value:e,configurable:!0}),"o");const kc=/\.mdx$/i,xc=1,_c=/Failed to load url\s+(.*?)\s+\(resolved id:/i,$c=/glob:\s*"(.+)"\s*\(/i,Ec=be(t=>t instanceof Error?t:new Error(String(t)),"createEnhancedError"),Sc=be((t,e)=>{try{t.ssrFixStacktrace(e)}catch(n){console.warn("[visulima:vite-overlay:server] SSR stack trace fix failed:",n)}},"safeSsrFixStacktrace"),Cc=be(t=>{try{const e=Oe(t,{frameLimit:xc})?.[0];return String(e?.file||t.loc?.file||t.id||"")}catch(e){console.warn("[visulima:vite-overlay:server] Stack trace parsing failed:",e);return}},"extractTopFileFromStack"),Lc=be(async t=>{try{return await _r(t,"utf8")}catch(e){console.warn(`[visulima:vite-overlay:server] Failed to read file ${t}:`,e);return}},"safeReadFile"),Tc=be((t,e)=>{const n=t.id||t.loc?.file||e;n&&kc.test(String(n))&&/syntax error/i.test(t.message)&&(t.hint=t.hint||"MDX detected without an appropriate integration. Install and configure the MDX plugin for Vite/your framework.")},"enhanceMdxError"),Mo=be((t,e)=>{const n=t.split(`
1942
- `),r=n.findIndex(i=>i.includes(e));if(r===-1)return;const o=n[r]||"";return{column:Math.max(0,o.indexOf(e))+1,line:r+1}},"findImportLocation"),Pc=be(async(t,e,n)=>{const r=_c.exec(t.message)?.[1];if(r&&(t.title="Failed to Load Module (SSR)",t.name="FailedToLoadModuleSSR",t.message=`Failed to load module: ${r}`,t.hint="Verify import path, ensure a plugin handles this file type during SSR, and check for typos or missing files.",n&&e)){const o=Mo(n,r);o&&(t.loc={...o,file:e})}},"enhanceFailedLoadError"),Mc=be(async(t,e,n)=>{const r=$c.exec(t.message)?.[1];if(r&&(t.name="InvalidGlob",t.title="Invalid Glob Pattern",t.message=`Invalid glob pattern: ${r}`,t.hint=t.hint||"Ensure your glob follows the expected syntax and matches existing files. Avoid unintended special characters.",n&&e)){const o=Mo(n,r);o&&(t.loc={...o,file:e})}},"enhanceGlobError"),Fc=be(async(t,e)=>{const n=Ec(t);Sc(e,n);const r=Cc(n),o=r?await Lc(r):void 0;return await Pc(n,r,o),Tc(n,r),await Mc(n,r,o),n},"enhanceViteSsrError");var Rc=Object.defineProperty,J=b((t,e)=>Rc(t,"name",{value:e,configurable:!0}),"d");const xt=J((t,e,n)=>{try{const r=n instanceof Error?n.message:String(n);t.config.logger.error(`${e}: ${r}`,{clear:!0,timestamp:!0})}catch{}},"logError"),zc=J(t=>({error:J(e=>t.config.logger.error(String(e??""),{clear:!0,timestamp:!0}),"error"),log:J(e=>t.config.logger.info(String(e??"")),"log")}),"createDevelopmentLogger"),Dc=J(()=>{const t=new Map;return{recentErrors:t,shouldSkip:J(e=>{const n=Date.now(),r=t.get(e)||0;return n-r<Ds?!0:(t.set(e,n),!1)},"shouldSkip")}},"createRecentErrorTracker"),Fo=J(t=>`${String(t?.message||"")}
1943
- ${String(t?.stack||"")}`,"createErrorSignature"),Ac=J((t,e,n)=>async r=>{const o=r instanceof Error?r:new Error(String(r?.stack||r));try{t.ssrFixStacktrace(o)}catch(i){xt(t,"[visulima:vite-overlay:server] ssrFixStacktrace failed",i)}try{const i=await Fc(o,t);Object.assign(o,i)}catch(i){xt(t,"[visulima:vite-overlay:server] enhanceViteSsrError failed",i)}try{o.stack=Mt(Ln(String(o.stack||"")),e)}catch{}await n.error(Vi(o)),t.ws.send({err:o,type:"error"})},"createUnhandledRejectionHandler"),Ic=J(async(t,e,n)=>{let r;e.push(Zi,da(n),Wi);for await(const o of e.toSorted((i,s)=>s.priority-i.priority)){const{handle:i,name:s}=o;if(process.env.DEBUG&&console.debug(`Running solution finder: ${s}`),typeof i=="function")try{const l=await i({hint:t?.hint??"",message:t.message,name:t.name,stack:t?.stack},{file:t?.originalFilePath??"",language:qe(t?.originalFilePath??""),line:t?.originalFileLine??0,snippet:t?.originalSnippet??""});if(l===void 0)continue;const a=await Gn(l.header??"");r={body:await Gn(l.body??""),header:a};break}catch{continue}}return r},"findSolution"),Jt=J(async(t,e,n,r,o,i,s)=>{const l=Ni(t);if(l.length===0)throw new Error("No errors found in the error stack");const a=await Promise.all(l.map(async(d,u)=>{let g=r;if(u>0){const m=(d?.stack?.split(`
1944
- `)||[]).find(k=>k.includes("at ")&&!k.includes("node_modules"));if(m){const k=m.match(/at\s+[^(\s]+\s*\(([^:)]+):(\d+):(\d+)\)/)||m.match(/at\s+([^:)]+):(\d+):(\d+)/);if(k){const[,L,T,$]=k;g={column:Number.parseInt($||"0",10),file:L,line:Number.parseInt(T||"0",10),plugin:r?.plugin}}}}let v=g;u===0&&d?.sourceFile&&(v={...g,file:d.sourceFile});const f=await fc(d,e,u,s,v,l);return{hint:d?.hint,message:d?.message||"",name:d?.name||Ir,stack:Mt(Ln(d?.stack||""),n),...f}})),c=await Ic(a[0],i,n);return{errors:a,errorType:o,rootPath:n,solution:c}},"buildExtendedError"),Tn=J(t=>{if(!t)return null;const e=new Error(String(t.message||"Caused by error"));return e.name=String(t.name||"Error"),e.stack=String(t.stack||""),t.cause&&(e.cause=Tn(t.cause)),e},"reconstructCauseChain"),Hc=J((t,e,n,r,o,i)=>{const s=t.ws.send.bind(t.ws);t.ws.send=async(l,a)=>{try{if(l&&typeof l=="object"&&l.type==="error"&&l.err){const{err:c}=l,d=Fo(c);if(e(d))return;if(c.message?.includes("Failed to resolve import")){const u=c.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(u){const g=u[2],v=new Error(c.message);v.name="ImportResolutionError",v.stack=c.stack;const f=await Jt(v,t,r,{column:c.loc?.column||1,file:g,line:c.loc?.line||1,plugin:c.plugin||"vite:import-analysis"},"server",o,i);l.err=f,n.set(JSON.stringify(f),Date.now())}}else{const u=String(c?.name||"Error"),g=String(c.message),v=String(c.stack),f=new Error(g);f.name=u,f.stack=`${u}: ${g}
1945
- ${Mt(v,r)}`,c.cause&&(f.cause=Tn(c.cause));const m=c.sourceFile?{column:c.column,file:c.sourceFile,line:c.line,plugin:c.plugin}:void 0,k=await Jt(f,t,r,m,"server",o,i);l.err=k,n.set(JSON.stringify(k),Date.now())}}s(l,a)}catch(c){xt(t,"[visulima:vite-overlay:server] ws.send intercept failed",c),a&&typeof a.send=="function"?a.send(l,a):s(l,a)}}},"setupWebSocketInterception"),Bc=J((t,e,n,r,o,i,s,l)=>{t.ws.on(Ar,async(a,c)=>{if(!s)return;const d=a&&typeof a=="object"?a:{message:Is,stack:""},u=Fo(d);if(n(u))return;const g=String(d?.name||"Error"),v=String(d.message),f=String(d.stack),m=new Error(v);m.name=g,m.stack=`${g}: ${v}
1946
- ${Mt(f,o)}`,d.cause&&(m.cause=Tn(d.cause));try{const k=await Jt(m,t,o,{column:d?.column,file:d?.file,line:d?.line,plugin:d?.plugin},"client",i,l);r.set(JSON.stringify(k),Date.now());const L={err:{...k},type:"error"};k.solution&&(L.solutions=k.solution);const T=[...k.errors],$=T.shift();if(!$){await e.error("No error information available"),c.send(L);return}const M=[`${Un("red","[client]")} ${$.name}: ${$.message}`,...$.originalFilePath.includes("-extension://")?[]:["",Un("blue",`${$.originalFilePath}:${$.originalFileLine}:${$.originalFileColumn}`),"",await Ui($.originalSnippet,qe($.originalFilePath),"nord"),"","Raw stack trace:","",$.originalStack]];T.forEach((z,D)=>{const Z=" ".repeat(2*D);M.push("",`${Z}Caused by: `,"",`${Z}${z.name}: ${z.message}`,`${Z}at ${z.originalFilePath}:${z.originalFileLine}:${z.originalFileColumn}`)}),await e.error(M.join(`
1947
- `)),c.send(L)}catch(k){xt(t,"[visulima:vite-overlay:server] failed to build extended client error",k),c.send({err:{message:k.message,name:String(k.name||Ir),stack:k.stack},type:"error"})}})},"setupHMRHandler"),jc=J((t,e)=>t.flat().some(n=>n&&(e&&n.name===e||n.name==="vite:react-swc"||n.name==="vite:react-refresh"||n.name==="vite:react-babel"||n.name==="@vitejs/plugin-react"||typeof n=="function"&&n.name?.includes("react")||n.constructor&&n.constructor.name?.includes("React"))),"hasReactPlugin"),Oc=J((t,e)=>t.flat().some(n=>n&&(e&&n.name===e||n.name==="vite:vue"||n.name==="@vitejs/plugin-vue"||typeof n=="function"&&n.name?.includes("vue")||n.constructor&&n.constructor.name?.includes("Vue"))),"hasVuePlugin"),rd=J((t={})=>{let e,n,r;const o=(t.logClientRuntimeError===void 0?t.forwardConsole:t.logClientRuntimeError)??!0,i=t.forwardedConsoleMethods??["error"];if(t.logClientRuntimeError!==void 0&&console.warn("[vite-overlay] The 'logClientRuntimeError' option is deprecated. Please use 'forwardConsole' instead."),i.length===0)throw new Error("forwardedConsoleMethods must be an array of console method names");return{apply:"serve",config(s,l){return s.plugins&&(n=jc(s.plugins,t?.reactPluginName),r=Oc(s.plugins,t?.vuePluginName)),e=l.mode||"development",s},configureServer(s){const l=s.config.root||process.cwd(),a=zc(s),{recentErrors:c,shouldSkip:d}=Dc(),u=s.transformRequest.bind(s);s.transformRequest=async(f,m)=>{try{return await u(f,m)}catch(k){if(k?.message?.includes("Failed to resolve import")){const L=k.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(L){const[,T,$]=L;k.sourceFile=$,k.importPath=T}}throw k}};let g;n?g="react":r&&(g="vue"),Hc(s,d,c,l,t?.solutionFinders??[],g),Bc(s,a,d,c,l,t?.solutionFinders??[],o,g);const v=Ac(s,l,a);process.on("unhandledRejection",v),s.httpServer?.on("close",()=>{process.off("unhandledRejection",v)})},enforce:"pre",name:As,transform(s,l,a){if(a?.ssr||!(l.includes("vite/dist/client/client.mjs")||l.includes("/@vite/client")))return null;const c=t?.showBallonButton===void 0?t?.overlay?.balloon?.enabled??!0:t.showBallonButton;return Xs(s,c,t?.overlay?.balloon,t?.overlay?.customCSS)},transformIndexHtml(){return{html:"",tags:[{attrs:{type:"module"},children:bc(e,i,t?.overlay?.balloon),injectTo:"head",tag:"script"}]}}}},"errorOverlayPlugin");export{rd as default};
2125
+ `},"generateClientScript");var bd=Object.defineProperty,ee=b((t,e)=>bd(t,"name",{value:e,configurable:!0}),"d");const yd=/at\s+[^(\s]+\s*\(([^:)]+):(\d+):(\d+)\)/,xd=/at\s+([^:)]+):(\d+):(\d+)/,Mo=/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/,St=ee((t,e,n)=>{try{const r=n instanceof Error?n.message:String(n);t.config.logger.error(`${e}: ${r}`,{clear:!0,timestamp:!0})}catch{}},"logError"),kd=ee(t=>({error:ee(e=>{t.config.logger.error(String(e??""),{clear:!0,timestamp:!0})},"error"),log:ee(e=>{t.config.logger.info(String(e??""))},"log")}),"createDevelopmentLogger"),_d=ee(()=>{const t=new Map;return{recentErrors:t,shouldSkip:ee(e=>{const n=Date.now(),r=t.get(e)||0;return n-r<Ns?!0:(t.set(e,n),!1)},"shouldSkip")}},"createRecentErrorTracker"),Io=ee(t=>`${String(t?.message||"")}
2126
+ ${String(t?.stack||"")}`,"createErrorSignature"),$d=ee((t,e,n)=>async r=>{const i=r instanceof Error?r:new Error(String(r?.stack||r));try{t.ssrFixStacktrace(i)}catch(o){St(t,"[visulima:vite-overlay:server] ssrFixStacktrace failed",o)}try{const o=await Ma(i,t);Object.assign(i,o)}catch(o){St(t,"[visulima:vite-overlay:server] enhanceViteSsrError failed",o)}try{i.stack=At(Fn(String(i.stack||"")),e)}catch{}await n.error(Yi(i)),t.ws.send({err:i,type:"error"})},"createUnhandledRejectionHandler"),Ed=ee(async(t,e,n)=>{let r;e.push(Qi,ka(n),Ji);for await(const i of e.toSorted((o,s)=>s.priority-o.priority)){const{handle:o,name:s}=i;if(process.env.DEBUG&&console.debug(`Running solution finder: ${s}`),typeof o=="function")try{const a=await o({hint:t?.hint??"",message:t.message,name:t.name,stack:t?.stack},{file:t?.originalFilePath??"",language:Ue(t?.originalFilePath??""),line:t?.originalFileLine??0,snippet:t?.originalSnippet??""});if(a===void 0)continue;const c=await Qn(a.header??"");r={body:await Qn(a.body??""),header:c};break}catch{continue}}return r},"findSolution"),nn=ee(async(t,e,n,r,i,o,s)=>{const a=Xi(t);if(a.length===0)throw new Error("No errors found in the error stack");const c=await Promise.all(a.map(async(d,p)=>{let h=r;if(p>0){const m=(d?.stack?.split(`
2127
+ `)||[]).find(k=>k.includes("at ")&&!k.includes("node_modules"));if(m){const k=m.match(yd)||m.match(xd);if(k){const[,L,T,$]=k;h={column:Number.parseInt($||"0",10),file:L,line:Number.parseInt(T||"0",10),plugin:r?.plugin}}}}let f=h;p===0&&d?.sourceFile&&(f={...h,file:d.sourceFile});const v=await md(d,e,p,s,f,a);return{hint:d?.hint,message:d?.message||"",name:d?.name||Or,stack:At(Fn(d?.stack||""),n),...v}})),l=await Ed(c[0],o,n);return{errors:c,errorType:i,rootPath:n,solution:l}},"buildExtendedError"),zn=ee(t=>{if(!t)return;const e=new Error(String(t.message||"Caused by error"));return e.name=String(t.name||"Error"),e.stack=String(t.stack||""),t.cause&&(e.cause=zn(t.cause)),e},"reconstructCauseChain"),Sd=ee((t,e,n,r,i,o)=>{const s=t.ws.send.bind(t.ws);t.ws.send=async(a,c)=>{try{if(a&&typeof a=="object"&&a.type==="error"&&a.err){const{err:l}=a,d=Io(l);if(e(d))return;if(l.message?.includes("Failed to resolve import")){const p=l.message.match(Mo);if(p){const h=p[2],f=new Error(l.message);f.name="ImportResolutionError",f.stack=l.stack;const v=await nn(f,t,r,{column:l.loc?.column||1,file:h,line:l.loc?.line||1,plugin:l.plugin||"vite:import-analysis"},"server",i,o);a.err=v,n.set(JSON.stringify(v),Date.now())}}else{const p=String(l?.name||"Error"),h=String(l.message),f=String(l.stack),v=new Error(h);v.name=p,v.stack=`${p}: ${h}
2128
+ ${At(f,r)}`,l.cause&&(v.cause=zn(l.cause));const m=l.sourceFile?{column:l.column,file:l.sourceFile,line:l.line,plugin:l.plugin}:void 0,k=await nn(v,t,r,m,"server",i,o);a.err=k,n.set(JSON.stringify(k),Date.now())}}s(a,c)}catch(l){St(t,"[visulima:vite-overlay:server] ws.send intercept failed",l),c&&typeof c.send=="function"?c.send(a,c):s(a,c)}}},"setupWebSocketInterception"),Cd=ee((t,e,n,r,i,o,s,a)=>{t.ws.on(jr,async(c,l)=>{if(!s)return;const d=c&&typeof c=="object"?c:{message:Gs,stack:""},p=Io(d);if(n(p))return;const h=String(d?.name||"Error"),f=String(d.message),v=String(d.stack),m=new Error(f);m.name=h,m.stack=`${h}: ${f}
2129
+ ${At(v,i)}`,d.cause&&(m.cause=zn(d.cause));try{const k=await nn(m,t,i,{column:d?.column,file:d?.file,line:d?.line,plugin:d?.plugin},"client",o,a);r.set(JSON.stringify(k),Date.now());const L={err:{...k},type:"error"};k.solution&&(L.solution=k.solution);const T=[...k.errors],$=T.shift();if(!$){await e.error("No error information available"),l.send(L);return}const R=[`${Wn("red","[client]")} ${$.name}: ${$.message}`,...$.originalFilePath.includes("-extension://")?[]:["",Wn("blue",`${$.originalFilePath}:${$.originalFileLine}:${$.originalFileColumn}`),"",await Zi($.originalSnippet,Ue($.originalFilePath),"nord"),"","Raw stack trace:","",$.originalStack]];T.forEach((A,M)=>{const j=" ".repeat(2*M);R.push("",`${j}Caused by: `,"",`${j}${A.name}: ${A.message}`,`${j}at ${A.originalFilePath}:${A.originalFileLine}:${A.originalFileColumn}`)}),await e.error(R.join(`
2130
+ `)),l.send(L)}catch(k){St(t,"[visulima:vite-overlay:server] failed to build extended client error",k),l.send({err:{message:k.message,name:String(k.name||Or),stack:k.stack},type:"error"})}})},"setupHMRHandler"),Ld=ee((t,e)=>t.flat().some(n=>n&&(e&&n.name===e||n.name==="vite:react-swc"||n.name==="vite:react-refresh"||n.name==="vite:react-babel"||n.name==="@vitejs/plugin-react"||typeof n=="function"&&n.name?.includes("react")||n.constructor&&n.constructor.name?.includes("React"))),"hasReactPlugin"),Td=ee((t,e)=>t.flat().some(n=>n&&(e&&n.name===e||n.name==="vite:vue"||n.name==="@vitejs/plugin-vue"||typeof n=="function"&&n.name?.includes("vue")||n.constructor&&n.constructor.name?.includes("Vue"))),"hasVuePlugin"),Wd=ee((t={})=>{let e,n,r;const i=(t.logClientRuntimeError===void 0?t.forwardConsole:t.logClientRuntimeError)??!0,o=t.forwardedConsoleMethods??["error"];if(t.logClientRuntimeError!==void 0&&console.warn("[vite-overlay] The 'logClientRuntimeError' option is deprecated. Please use 'forwardConsole' instead."),o.length===0)throw new Error("forwardedConsoleMethods must be an array of console method names");return{apply:"serve",config(s,a){return s.plugins&&(n=Ld(s.plugins,t?.reactPluginName),r=Td(s.plugins,t?.vuePluginName)),e=a.mode||"development",s},configureServer(s){const a=s.config.root||process.cwd(),c=kd(s),{recentErrors:l,shouldSkip:d}=_d(),p=s.transformRequest.bind(s);s.transformRequest=async(v,m)=>{try{return await p(v,m)}catch(k){if(k?.message?.includes("Failed to resolve import")){const L=k.message.match(Mo);if(L){const[,T,$]=L;k.sourceFile=$,k.importPath=T}}throw k}};let h;n?h="react":r&&(h="vue"),Sd(s,d,l,a,t?.solutionFinders??[],h),Cd(s,c,d,l,a,t?.solutionFinders??[],i,h);const f=$d(s,a,c);process.on("unhandledRejection",f),s.httpServer?.on("close",()=>{process.off("unhandledRejection",f)})},enforce:"pre",name:Us,transform(s,a,c){if(c?.ssr||!(a.includes("vite/dist/client/client.mjs")||a.includes("/@vite/client")))return null;const l=t?.showBallonButton===void 0?t?.overlay?.balloon?.enabled??!0:t.showBallonButton;return ia(s,l,t?.overlay?.balloon,t?.overlay?.customCSS)},transformIndexHtml(){return{html:"",tags:[{attrs:{type:"module"},children:wd(e,o,t?.overlay?.balloon),injectTo:"head",tag:"script"}]}}}},"errorOverlayPlugin");export{Wd as default};