@visulima/vite-overlay 1.3.7 → 2.0.0-alpha.10
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/CHANGELOG.md +169 -0
- package/LICENSE.md +1 -1
- package/README.md +200 -26
- package/dist/index.d.ts +25 -27
- package/dist/index.js +569 -335
- package/dist/packem_chunks/github-dark-default.js +1 -0
- package/dist/packem_chunks/github-light.js +1 -0
- package/package.json +8 -9
- package/dist/constants.d.ts +0 -14
- package/dist/overlay/patch-overlay.d.ts +0 -5
- package/dist/types.d.ts +0 -94
- package/dist/utils/create-vite-solution-finder.d.ts +0 -13
- package/dist/utils/error-processing/index.d.ts +0 -21
- package/dist/utils/error-processing/parse-vue-compilation-error.d.ts +0 -12
- package/dist/utils/error-processing/process-hydration-diff.d.ts +0 -7
- package/dist/utils/error-processing/remap-stack-to-original.d.ts +0 -18
- package/dist/utils/error-processing/retrieve-source-texts.d.ts +0 -8
- package/dist/utils/error-processing/shiki-diff-transformer.d.ts +0 -8
- package/dist/utils/error-processing/utils/add-query-to-url.d.ts +0 -2
- package/dist/utils/error-processing/utils/extract-query-from-http-url.d.ts +0 -2
- package/dist/utils/esbuild-error.d.ts +0 -29
- package/dist/utils/find-error-in-source.d.ts +0 -12
- package/dist/utils/find-module-for-path.d.ts +0 -9
- package/dist/utils/generate-client-script.d.ts +0 -8
- package/dist/utils/get-source-from-map.d.ts +0 -6
- package/dist/utils/normalize-id-candidates.d.ts +0 -2
- package/dist/utils/position-aligner.d.ts +0 -6
- package/dist/utils/resolve-original-location.d.ts +0 -29
- package/dist/utils/ssr-error-enhancer.d.ts +0 -8
- package/dist/utils/stack-trace.d.ts +0 -38
package/dist/index.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
var
|
|
2
|
-
]`).replace("lheading",
|
|
3
|
-
`).map(i=>{let
|
|
4
|
-
`)}
|
|
5
|
-
`)}}}fences(e){let
|
|
6
|
-
`)}}blockquote(e){let
|
|
1
|
+
var Ni=Object.defineProperty;var b=(t,e)=>Ni(t,"name",{value:e,configurable:!0});import{createRequire as Ui}from"node:module";import{codeToANSI as Vi}from"@shikijs/cli";import{renderError as Zi,getErrorCauses as Yi}from"@visulima/error/error";import{errorHintFinder as Xi,ruleBasedFinder as Qi}from"@visulima/error/solution";import{distance as mt}from"fastest-levenshtein";import{parseStacktrace as Ne,formatStacktrace as Er,codeFrame as Wn}from"@visulima/error";import Bt from"@visulima/error/solution/ai/prompt";const Gi=Ui(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 Gi(t)},"__cjs_getBuiltinModule"),{stripVTControlCharacters:Wi,styleText:Gn}=Ct("node:util"),Ji=Ct("node:fs"),se=Ct("node:path"),{readFile:$r}=Ct("node:fs/promises");var Ki=Object.defineProperty,M=b((t,e)=>Ki(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,"E$5");M(Lt,"M");var Pe=Lt();function nn(t){Pe=t}b(nn,"ie$2");M(nn,"G");var Ee={exec:M(()=>null,"exec")};function z(t,e=""){let n=typeof t=="string"?t:t.source,o={replace:M((r,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(te.caret,"$1"),n=n.replace(r,s),o},"replace"),getRegex:M(()=>new RegExp(n,e),"getRegex")};return o}b(z,"p$6");M(z,"k");var es=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),te={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:M(t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:M(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:M(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:M(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:M(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),"headingBeginRegex"),htmlBeginRegex:M(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex"),blockquoteBeginRegex:M(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`),"blockquoteBeginRegex")},ts=/^(?:[ \t]*(?:\n|$))+/,ns=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,rs=/^ {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+|$)/,os=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,rn=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Sr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Cr=z(Sr).replace(/bull/g,rn).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(),is=z(Sr).replace(/bull/g,rn).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(),on=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ss=/^[^\n]+/,sn=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,as=z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",sn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ls=z(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,rn).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",an=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,cs=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",an).replace("tag",Tt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Lr=z(on).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(),ds=z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Lr).getRegex(),ln={blockquote:ds,code:ns,def:as,fences:rs,heading:os,hr:at,html:cs,lheading:Cr,list:ls,newline:ts,paragraph:Lr,table:Ee,text:ss},Vn=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(),us={...ln,lheading:is,table:Vn,paragraph:z(on).replace("hr",at).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Vn).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()},ps={...ln,html:z(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",an).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:Ee,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:z(on).replace("hr",at).replace("heading",` *#{1,6} *[^
|
|
2
|
+
]`).replace("lheading",Cr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},hs=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,gs=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Tr=/^( {2,}|\\)\n(?!\s*$)/,ms=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ve=/[\p{P}\p{S}]/u,Pt=/[\s\p{P}\p{S}]/u,cn=/[^\s\p{P}\p{S}]/u,fs=z(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Pt).getRegex(),Pr=/(?!~)[\p{P}\p{S}]/u,vs=/(?!~)[\s\p{P}\p{S}]/u,ws=/(?:[^\s\p{P}\p{S}]|~)/u,bs=z(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",es?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Rr=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,ys=z(Rr,"u").replace(/punct/g,Ve).getRegex(),xs=z(Rr,"u").replace(/punct/g,Pr).getRegex(),Fr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ks=z(Fr,"gu").replace(/notPunctSpace/g,cn).replace(/punctSpace/g,Pt).replace(/punct/g,Ve).getRegex(),_s=z(Fr,"gu").replace(/notPunctSpace/g,ws).replace(/punctSpace/g,vs).replace(/punct/g,Pr).getRegex(),$s=z("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,cn).replace(/punctSpace/g,Pt).replace(/punct/g,Ve).getRegex(),Es=z(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ve).getRegex(),Ss="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Cs=z(Ss,"gu").replace(/notPunctSpace/g,cn).replace(/punctSpace/g,Pt).replace(/punct/g,Ve).getRegex(),Ls=z(/\\(punct)/,"gu").replace(/punct/g,Ve).getRegex(),Ts=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(),Ps=z(an).replace("(?:-->|$)","-->").getRegex(),Rs=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",Ps).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),bt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Fs=z(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",bt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),zr=z(/^!?\[(label)\]\[(ref)\]/).replace("label",bt).replace("ref",sn).getRegex(),Dr=z(/^!?\[(ref)\](?:\[\])?/).replace("ref",sn).getRegex(),zs=z("reflink|nolink(?!\\()","g").replace("reflink",zr).replace("nolink",Dr).getRegex(),Zn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,dn={_backpedal:Ee,anyPunctuation:Ls,autolink:Ts,blockSkip:bs,br:Tr,code:gs,del:Ee,delLDelim:Ee,delRDelim:Ee,emStrongLDelim:ys,emStrongRDelimAst:ks,emStrongRDelimUnd:$s,escape:hs,link:Fs,nolink:Dr,punctuation:fs,reflink:zr,reflinkSearch:zs,tag:Rs,text:ms,url:Ee},Ds={...dn,link:z(/^!?\[(label)\]\((.*?)\)/).replace("label",bt).getRegex(),reflink:z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",bt).getRegex()},Ht={...dn,emStrongRDelimAst:_s,emStrongLDelim:xs,delLDelim:Es,delRDelim:Cs,url:z(/^((?: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:z(/^([`~]+|[^`~])(?:(?= {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()},Ms={...Ht,br:z(Tr).replace("{2,}","*").getRegex(),text:z(Ht.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ht={normal:ln,gfm:us,pedantic:ps},tt={normal:dn,gfm:Ht,breaks:Ms,pedantic:Ds},As={"&":"&","<":"<",">":">",'"':""","'":"'"},Yn=M(t=>As[t],"ke");function ie(t,e){if(e){if(te.escapeTest.test(t))return t.replace(te.escapeReplace,Yn)}else if(te.escapeTestNoEncode.test(t))return t.replace(te.escapeReplaceNoEncode,Yn);return t}b(ie,"y$7");M(ie,"O");function qt(t){try{t=encodeURI(t).replace(te.percentDecode,"%")}catch{return null}return t}b(qt,"ne$2");M(qt,"J");function Nt(t,e){let n=t.replace(te.findPipe,(i,s,l)=>{let a=!1,c=s;for(;--c>=0&&l[c]==="\\";)a=!a;return a?"|":" |"}),o=n.split(te.splitPipe),r=0;if(o[0].trim()||o.shift(),o.length>0&&!o.at(-1)?.trim()&&o.pop(),e)if(o.length>e)o.splice(e);else for(;o.length<e;)o.push("");for(;r<o.length;r++)o[r]=o[r].trim().replace(te.slashPipe,"|");return o}b(Nt,"se$2");M(Nt,"V");function He(t,e,n){let o=t.length;if(o===0)return"";let r=0;for(;r<o;){let i=t.charAt(o-r-1);if(i===e&&!n)r++;else if(i!==e&&n)r++;else break}return t.slice(0,o-r)}b(He,"I$6");M(He,"I");function Mr(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let o=0;o<t.length;o++)if(t[o]==="\\")o++;else if(t[o]===e[0])n++;else if(t[o]===e[1]&&(n--,n<0))return o;return n>0?-2:-1}b(Mr,"nt");M(Mr,"de");function Ar(t,e=0){let n=e,o="";for(let r of t)if(r===" "){let i=4-n%4;o+=" ".repeat(i),n+=i}else o+=r,n++;return o}b(Ar,"st");M(Ar,"ge");function Ut(t,e,n,o,r){let i=e.href,s=e.title||null,l=t[1].replace(r.other.outputLinkReplace,"$1");o.state.inLink=!0;let a={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:s,text:l,tokens:o.inlineTokens(l)};return o.state.inLink=!1,a}b(Ut,"le");M(Ut,"fe");function Ir(t,e,n){let o=t.match(n.other.indentCodeCompensation);if(o===null)return e;let r=o[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>=r.length?i.slice(r.length):i}).join(`
|
|
4
|
+
`)}b(Ir,"lt");M(Ir,"nt");var yt=class{static{b(this,"L")}static{M(this,"w")}options;rules;lexer;constructor(e){this.options=e||Pe}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 o=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?o:He(o,`
|
|
5
|
+
`)}}}fences(e){let n=this.rules.block.fences.exec(e);if(n){let o=n[0],r=Ir(o,n[3]||"",this.rules);return{type:"code",raw:o,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:r}}}heading(e){let n=this.rules.block.heading.exec(e);if(n){let o=n[2].trim();if(this.rules.other.endingHash.test(o)){let r=He(o,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(o=r.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(e){let n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:He(n[0],`
|
|
6
|
+
`)}}blockquote(e){let n=this.rules.block.blockquote.exec(e);if(n){let o=He(n[0],`
|
|
7
7
|
`).split(`
|
|
8
|
-
`),
|
|
9
|
-
`),
|
|
10
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");
|
|
8
|
+
`),r="",i="",s=[];for(;o.length>0;){let l=!1,a=[],c;for(c=0;c<o.length;c++)if(this.rules.other.blockquoteStart.test(o[c]))a.push(o[c]),l=!0;else if(!l)a.push(o[c]);else break;o=o.slice(c);let d=a.join(`
|
|
9
|
+
`),h=d.replace(this.rules.other.blockquoteSetextReplace,`
|
|
10
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
11
11
|
${d}`:d,i=i?`${i}
|
|
12
|
-
${
|
|
13
|
-
`+
|
|
14
|
-
`),k=this.blockquote(m);
|
|
15
|
-
`+
|
|
16
|
-
`),k=this.list(m);
|
|
17
|
-
`);continue}}return{type:"blockquote",raw:
|
|
18
|
-
`,1)[0]
|
|
19
|
-
`,1)[0],
|
|
20
|
-
`,e=e.substring(
|
|
21
|
-
`,1)[0],
|
|
22
|
-
`+
|
|
23
|
-
`+
|
|
24
|
-
`,e=e.substring(
|
|
25
|
-
`):[],
|
|
26
|
-
`?
|
|
27
|
-
`),this.blockTokens(e,this.tokens);for(let
|
|
28
|
-
`:
|
|
12
|
+
${h}`:h;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,s,!0),this.lexer.state.top=g,o.length===0)break;let f=s.at(-1);if(f?.type==="code")break;if(f?.type==="blockquote"){let v=f,m=v.raw+`
|
|
13
|
+
`+o.join(`
|
|
14
|
+
`),k=this.blockquote(m);s[s.length-1]=k,r=r.substring(0,r.length-v.raw.length)+k.raw,i=i.substring(0,i.length-v.text.length)+k.text;break}else if(f?.type==="list"){let v=f,m=v.raw+`
|
|
15
|
+
`+o.join(`
|
|
16
|
+
`),k=this.list(m);s[s.length-1]=k,r=r.substring(0,r.length-f.raw.length)+k.raw,i=i.substring(0,i.length-v.raw.length)+k.raw,o=m.substring(s.at(-1).raw.length).split(`
|
|
17
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:s,text:i}}}list(e){let n=this.rules.block.list.exec(e);if(n){let o=n[1].trim(),r=o.length>1,i={type:"list",raw:"",ordered:r,start:r?+o.slice(0,-1):"",loose:!1,items:[]};o=r?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=r?o:"[*+-]");let s=this.rules.other.listItemRegex(o),l=!1;for(;e;){let c=!1,d="",h="";if(!(n=s.exec(e))||this.rules.block.hr.test(e))break;d=n[0],e=e.substring(d.length);let g=Ar(n[2].split(`
|
|
18
|
+
`,1)[0],n[1].length),f=e.split(`
|
|
19
|
+
`,1)[0],v=!g.trim(),m=0;if(this.options.pedantic?(m=2,h=g.trimStart()):v?m=n[1].length+1:(m=g.search(this.rules.other.nonSpaceChar),m=m>4?1:m,h=g.slice(m),m+=n[1].length),v&&this.rules.other.blankLine.test(f)&&(d+=f+`
|
|
20
|
+
`,e=e.substring(f.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),R=this.rules.other.htmlBeginRegex(m),D=this.rules.other.blockquoteBeginRegex(m);for(;e;){let A=e.split(`
|
|
21
|
+
`,1)[0],j;if(f=A,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)||D.test(f)||k.test(f)||L.test(f))break;if(j.search(this.rules.other.nonSpaceChar)>=m||!f.trim())h+=`
|
|
22
|
+
`+j.slice(m);else{if(v||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(g)||$.test(g)||L.test(g))break;h+=`
|
|
23
|
+
`+f}v=!f.trim(),d+=A+`
|
|
24
|
+
`,e=e.substring(A.length+1),g=j.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(h),loose:!1,text:h,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 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 d=this.rules.other.listTaskCheckbox.exec(c.raw);if(d){let h={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};c.checked=h.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=h.raw+c.tokens[0].raw,c.tokens[0].text=h.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(h)):c.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):c.tokens.unshift(h)}}if(!i.loose){let d=c.tokens.filter(g=>g.type==="space"),h=d.length>0&&d.some(g=>this.rules.other.anyLine.test(g.raw));i.loose=h}}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 o=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=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:o,raw:n[0],href:r,title:i}}}table(e){let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let o=Nt(n[1]),r=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(o.length===r.length){for(let l of r)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<o.length;l++)s.header.push({text:o[l],tokens:this.lexer.inline(o[l]),header:!0,align:s.align[l]});for(let l of i)s.rows.push(Nt(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){let o=n[1].trim();return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:o,tokens:this.lexer.inline(o)}}}paragraph(e){let n=this.rules.block.paragraph.exec(e);if(n){let o=n[1].charAt(n[1].length-1)===`
|
|
26
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:o,tokens:this.lexer.inline(o)}}}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 o=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let s=He(o.slice(0,-1),"\\");if((o.length-s.length)%2===0)return}else{let s=Mr(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 r=n[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(r);s&&(r=s[1],i=s[3])}else i=n[3]?n[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?r=r.slice(1):r=r.slice(1,-1)),Ut(n,{href:r&&r.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 o;if((o=this.rules.inline.reflink.exec(e))||(o=this.rules.inline.nolink.exec(e))){let r=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[r.toLowerCase()];if(!i){let s=o[0].charAt(0);return{type:"text",raw:s,text:s}}return Ut(o,i,o[0],this.lexer,this.rules)}}emStrong(e,n,o=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!o||this.rules.inline.punctuation.exec(o))){let i=[...r[0]].length-1,s,l,a=i,c=0,d=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*e.length+i);(r=d.exec(n))!=null;){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(l=[...s].length,r[3]||r[4]){a+=l;continue}else if((r[5]||r[6])&&i%3&&!((i+l)%3)){c+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a+c);let h=[...r[0]][0].length,g=e.slice(0,i+r.index+h+l);if(Math.min(i,l)%2){let v=g.slice(1,-1);return{type:"em",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}let f=g.slice(2,-2);return{type:"strong",raw:g,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){let n=this.rules.inline.code.exec(e);if(n){let o=n[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(o),i=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return r&&i&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:n[0],text:o}}}br(e){let n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e,n,o=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!o||this.rules.inline.punctuation.exec(o))){let i=[...r[0]].length-1,s,l,a=i,c=this.rules.inline.delRDelim;for(c.lastIndex=0,n=n.slice(-1*e.length+i);(r=c.exec(n))!=null;){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s||(l=[...s].length,l!==i))continue;if(r[3]||r[4]){a+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a);let d=[...r[0]][0].length,h=e.slice(0,i+r.index+d+l),g=h.slice(i,-i);return{type:"del",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}}}autolink(e){let n=this.rules.inline.autolink.exec(e);if(n){let o,r;return n[2]==="@"?(o=n[1],r="mailto:"+o):(o=n[1],r=o),{type:"link",raw:n[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}url(e){let n;if(n=this.rules.inline.url.exec(e)){let o,r;if(n[2]==="@")o=n[0],r="mailto:"+o;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(i!==n[0]);o=n[0],n[1]==="www."?r="http://"+n[0]:r=n[0]}return{type:"link",raw:n[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e){let n=this.rules.inline.text.exec(e);if(n){let o=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:o}}}},he=class Gt{static{b(this,"O")}static{M(this,"u")}tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Pe,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:te,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 Gt(n).lex(e)}static lexInline(e,n){return new Gt(n).inlineTokens(e)}lex(e){e=e.replace(te.carriageReturn,`
|
|
27
|
+
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let o=this.inlineQueue[n];this.inlineTokens(o.src,o.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],o=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(te.tabCharGlobal," ").replace(te.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(s=>(r=s.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let s=n.at(-1);r.raw.length===1&&s!==void 0?s.raw+=`
|
|
28
|
+
`:n.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
29
29
|
`)?"":`
|
|
30
|
-
`)+
|
|
31
|
-
`+
|
|
30
|
+
`)+r.raw,s.text+=`
|
|
31
|
+
`+r.text,this.inlineQueue.at(-1).src=s.text):n.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
32
32
|
`)?"":`
|
|
33
|
-
`)+
|
|
34
|
-
`+
|
|
33
|
+
`)+r.raw,s.text+=`
|
|
34
|
+
`+r.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},n.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),n.push(r);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&&(r=this.tokenizer.paragraph(i))){let s=n.at(-1);o&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
|
|
35
35
|
`)?"":`
|
|
36
|
-
`)+
|
|
37
|
-
`+
|
|
36
|
+
`)+r.raw,s.text+=`
|
|
37
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(r),o=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let s=n.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
38
38
|
`)?"":`
|
|
39
|
-
`)+
|
|
40
|
-
`+
|
|
41
|
-
`;return
|
|
42
|
-
`:"<pre><code>"+(
|
|
39
|
+
`)+r.raw,s.text+=`
|
|
40
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(r);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=[]){this.tokenizer.lexer=this;let o=e,r=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)a.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,r.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)i=r[2]?r[2].length:0,o=o.slice(0,r.index+i)+"["+"a".repeat(r[0].length-i-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);o=this.options.hooks?.emStrongMask?.call({lexer:this},o)??o;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,o,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,o,l)){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,h=e.slice(1),g;this.options.extensions.startInline.forEach(f=>{g=f.call({lexer:this},h),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}},xt=class{static{b(this,"B")}static{M(this,"y")}options;parser;constructor(e){this.options=e||Pe}space(e){return""}code({text:e,lang:n,escaped:o}){let r=(n||"").match(te.notSpaceStart)?.[0],i=e.replace(te.endingNewline,"")+`
|
|
41
|
+
`;return r?'<pre><code class="language-'+ie(r)+'">'+(o?i:ie(i,!0))+`</code></pre>
|
|
42
|
+
`:"<pre><code>"+(o?i:ie(i,!0))+`</code></pre>
|
|
43
43
|
`}blockquote({tokens:e}){return`<blockquote>
|
|
44
44
|
${this.parser.parse(e)}</blockquote>
|
|
45
|
-
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:
|
|
45
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:n}){return`<h${n}>${this.parser.parseInline(e)}</h${n}>
|
|
46
46
|
`}hr(e){return`<hr>
|
|
47
|
-
`}list(e){let
|
|
48
|
-
`+
|
|
47
|
+
`}list(e){let n=e.ordered,o=e.start,r="";for(let l=0;l<e.items.length;l++){let a=e.items[l];r+=this.listitem(a)}let i=n?"ol":"ul",s=n&&o!==1?' start="'+o+'"':"";return"<"+i+s+`>
|
|
48
|
+
`+r+"</"+i+`>
|
|
49
49
|
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
50
50
|
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
51
|
-
`}table(e){let
|
|
51
|
+
`}table(e){let n="",o="";for(let i=0;i<e.header.length;i++)o+=this.tablecell(e.header[i]);n+=this.tablerow({text:o});let r="";for(let i=0;i<e.rows.length;i++){let s=e.rows[i];o="";for(let l=0;l<s.length;l++)o+=this.tablecell(s[l]);r+=this.tablerow({text:o})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
52
52
|
<thead>
|
|
53
|
-
`+
|
|
54
|
-
`+
|
|
53
|
+
`+n+`</thead>
|
|
54
|
+
`+r+`</table>
|
|
55
55
|
`}tablerow({text:e}){return`<tr>
|
|
56
56
|
${e}</tr>
|
|
57
|
-
`}tablecell(e){let
|
|
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>${
|
|
59
|
-
Please report this to https://github.com/markedjs/marked.`,
|
|
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-index:2147483647}.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-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-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))}.h-\\[var\\(--ono-v-dialog-notch-height\\)\\]{height:var(--ono-v-dialog-notch-height)}.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-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-\\[var\\(--ono-v-dialog-max-width\\)\\]{max-width:var(--ono-v-dialog-max-width)}.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-\\[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-x-\\[var\\(--ono-v-dialog-border-width\\)\\]{--tw-translate-x:var(--ono-v-dialog-border-width);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[var\\(--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-\\[var\\(--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-\\[var\\(--ono-v-dialog-radius\\)\\]{border-top-left-radius:var(--ono-v-dialog-radius)}.rounded-tr-\\[var\\(--ono-v-dialog-radius\\)\\]{border-top-right-radius:var(--ono-v-dialog-radius)}.rounded-b-\\[var\\(--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-\\[var\\(--ono-v-border\\)\\]{border-color:var(--ono-v-border)}.border-\\[var\\(--stroke-color\\)\\]{border-color:var(--stroke-color)}.bg-\\[\\#282c34\\]{background-color:#282c34}.bg-\\[\\#b0c8aa\\]{background-color:#b0c8aa}.bg-\\[var\\(--background-color\\)\\]{background-color:var(--background-color)}.bg-\\[var\\(--ono-v-chip-bg\\)\\]{background-color:var(--ono-v-chip-bg)}.bg-\\[var\\(--ono-v-red-orange\\)\\]{background-color:var(--ono-v-red-orange)}.bg-\\[var\\(--ono-v-success-bg\\)\\]{background-color:var(--ono-v-success-bg)}.bg-\\[var\\(--ono-v-surface\\)\\]{background-color:var(--ono-v-surface)}.bg-\\[var\\(--ono-v-surface-muted\\)\\]{background-color:var(--ono-v-surface-muted)}.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-\\[\\#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-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-\\[var\\(--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-\\[var\\(--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-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-\\[var\\(--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-\\[var\\(--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-\\[var\\(--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-\\[var\\(--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-\\[var\\(--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-\\[var\\(--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 cr=`/* eslint-disable no-bitwise */
|
|
57
|
+
`}tablecell(e){let n=this.parser.parseInline(e.tokens),o=e.header?"th":"td";return(e.align?`<${o} align="${e.align}">`:`<${o}>`)+n+`</${o}>
|
|
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>${ie(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:n,tokens:o}){let r=this.parser.parseInline(o),i=qt(e);if(i===null)return r;e=i;let s='<a href="'+e+'"';return n&&(s+=' title="'+ie(n)+'"'),s+=">"+r+"</a>",s}image({href:e,title:n,text:o,tokens:r}){r&&(o=this.parser.parseInline(r,this.parser.textRenderer));let i=qt(e);if(i===null)return ie(o);e=i;let s=`<img src="${e}" alt="${ie(o)}"`;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)}},un=class{static{b(this,"M")}static{M(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}},ge=class Wt{static{b(this,"j")}static{M(this,"u")}options;renderer;textRenderer;constructor(e){this.options=e||Pe,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 un}static parse(e,n){return new Wt(n).parse(e)}static parseInline(e,n){return new Wt(n).parseInline(e)}parse(e){this.renderer.parser=this;let n="";for(let o=0;o<e.length;o++){let r=e[o];if(this.options.extensions?.renderers?.[r.type]){let s=r,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=r;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){this.renderer.parser=this;let o="";for(let r=0;r<e.length;r++){let i=e[r];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)){o+=l||"";continue}}let s=i;switch(s.type){case"escape":{o+=n.text(s);break}case"html":{o+=n.html(s);break}case"link":{o+=n.link(s);break}case"image":{o+=n.image(s);break}case"checkbox":{o+=n.checkbox(s);break}case"strong":{o+=n.strong(s);break}case"em":{o+=n.em(s);break}case"codespan":{o+=n.codespan(s);break}case"br":{o+=n.br(s);break}case"del":{o+=n.del(s);break}case"text":{o+=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 o}},nt=class{static{b(this,"z")}static{M(this,"P")}options;block;constructor(e){this.options=e||Pe}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?he.lex:he.lexInline}provideParser(){return this.block?ge.parse:ge.parseInline}},Is=class{static{b(this,"fe")}static{M(this,"D")}defaults=Lt();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ge;Renderer=xt;TextRenderer=un;Lexer=he;Tokenizer=yt;Hooks=nt;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let o of t)switch(n=n.concat(e.call(this,o)),o.type){case"table":{let r=o;for(let i of r.header)n=n.concat(this.walkTokens(i.tokens,e));for(let i of r.rows)for(let s of i)n=n.concat(this.walkTokens(s.tokens,e));break}case"list":{let r=o;n=n.concat(this.walkTokens(r.items,e));break}default:{let r=o;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(i=>{let s=r[i].flat(1/0);n=n.concat(this.walkTokens(s,e))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let o={...n};if(o.async=this.defaults.async||o.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let i=e.renderers[r.name];i?e.renderers[r.name]=function(...s){let l=r.renderer.apply(this,s);return l===!1&&(l=i.apply(this,s)),l}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=e[r.level];i?i.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),o.extensions=e),n.renderer){let r=this.defaults.renderer||new xt(this.defaults);for(let i in n.renderer){if(!(i in r))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let s=i,l=n.renderer[s],a=r[s];r[s]=(...c)=>{let d=l.apply(r,c);return d===!1&&(d=a.apply(r,c)),d||""}}o.renderer=r}if(n.tokenizer){let r=this.defaults.tokenizer||new yt(this.defaults);for(let i in n.tokenizer){if(!(i in r))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let s=i,l=n.tokenizer[s],a=r[s];r[s]=(...c)=>{let d=l.apply(r,c);return d===!1&&(d=a.apply(r,c)),d}}o.tokenizer=r}if(n.hooks){let r=this.defaults.hooks||new nt;for(let i in n.hooks){if(!(i in r))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let s=i,l=n.hooks[s],a=r[s];nt.passThroughHooks.has(i)?r[s]=c=>{if(this.defaults.async&&nt.passThroughHooksRespectAsync.has(i))return(async()=>{let h=await l.call(r,c);return a.call(r,h)})();let d=l.call(r,c);return a.call(r,d)}:r[s]=(...c)=>{if(this.defaults.async)return(async()=>{let h=await l.apply(r,c);return h===!1&&(h=await a.apply(r,c)),h})();let d=l.apply(r,c);return d===!1&&(d=a.apply(r,c)),d}}o.hooks=r}if(n.walkTokens){let r=this.defaults.walkTokens,i=n.walkTokens;o.walkTokens=function(s){let l=[];return l.push(i.call(this,s)),r&&(l=l.concat(r.call(this,s))),l}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return he.lex(t,e??this.defaults)}parser(t,e){return ge.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let o={...n},r={...this.defaults,...o},i=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&o.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(r.hooks&&(r.hooks.options=r,r.hooks.block=t),r.async)return(async()=>{let s=r.hooks?await r.hooks.preprocess(e):e,l=await(r.hooks?await r.hooks.provideLexer():t?he.lex:he.lexInline)(s,r),a=r.hooks?await r.hooks.processAllTokens(l):l;r.walkTokens&&await Promise.all(this.walkTokens(a,r.walkTokens));let c=await(r.hooks?await r.hooks.provideParser():t?ge.parse:ge.parseInline)(a,r);return r.hooks?await r.hooks.postprocess(c):c})().catch(i);try{r.hooks&&(e=r.hooks.preprocess(e));let s=(r.hooks?r.hooks.provideLexer():t?he.lex:he.lexInline)(e,r);r.hooks&&(s=r.hooks.processAllTokens(s)),r.walkTokens&&this.walkTokens(s,r.walkTokens);let l=(r.hooks?r.hooks.provideParser():t?ge.parse:ge.parseInline)(s,r);return r.hooks&&(l=r.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 o="<p>An error occurred:</p><pre>"+ie(n.message+"",!0)+"</pre>";return e?Promise.resolve(o):o}if(e)return Promise.reject(n);throw n}}},Te=new Is;function q(t,e){return Te.parse(t,e)}b(q,"d$b");M(q,"g");q.options=q.setOptions=function(t){return Te.setOptions(t),q.defaults=Te.defaults,nn(q.defaults),q};q.getDefaults=Lt;q.defaults=Pe;q.use=function(...t){return Te.use(...t),q.defaults=Te.defaults,nn(q.defaults),q};q.walkTokens=function(t,e){return Te.walkTokens(t,e)};q.parseInline=Te.parseInline;q.Parser=ge;q.parser=ge.parse;q.Renderer=xt;q.TextRenderer=un;q.Lexer=he;q.lexer=he.lex;q.Tokenizer=yt;q.Hooks=nt;q.parse=q;var Xn=q,Bs=Object.defineProperty,js=b((t,e)=>Bs(t,"name",{value:e,configurable:!0}),"r$4");const Os=["cjs","mjs"],Hs=["mdoc"],Ue=js(t=>{const e=(t.split("?")[0]??t).split(".").pop()?.toLowerCase();if(!e||Os.includes(e))return"javascript";if(Hs.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"),qs=500,Br="visulima:vite-overlay:error",Ns="visulima-vite-overlay",jr="Error",Us="Runtime error",Qn="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",Jn="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",Kn="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",er="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",tr="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",nr="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 Vt=(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))(Vt||{}),Gs=`/*! tailwindcss v4.2.2 | 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-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-tracking: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;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--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;--tracking-widest:.1em;--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, "liga" 1, "calt" 1, "zero" 1;-webkit-font-smoothing:antialiased;box-sizing:border-box;background-color:#0000;font-family:JetBrains Mono,Geist Mono,ui-monospace,Cascadia Code,Fira Code,monospace;font-size:13px;line-height:1.6}pre,code{font-feature-settings:"kern" 1, "liga" 1, "calt" 1, "zero" 1;font-family:JetBrains Mono,Geist Mono,ui-monospace,Cascadia Code,Fira 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) 20%, transparent)}}kbd{background-color:var(--ono-v-chip-bg);color:var(--ono-v-chip-text);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-4{height:calc(var(--spacing) * 4)}.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-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\\/5{width:80%}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.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-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-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-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.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)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.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-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);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)}.shadow-sm{--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)}.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))}.transition-transform{transition-property:transform,translate,scale,rotate;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}.\\[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\\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/10:hover{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.hover\\:bg-white\\/15:hover{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/15:hover{background-color:color-mix(in oklab, var(--color-white) 15%, 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}.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-primary\\):focus-visible{outline-color:var(--ono-v-primary)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:bg-white\\/15:active{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.active\\:bg-white\\/15:active{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.active\\:bg-white\\/20:active{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.active\\:bg-white\\/20:active{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.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-violet:#7c3aed;--brand-violet-light:#c4b5fd;--brand-white:#fff;--brand-frost:#f2f2f2;--brand-silver:#d8d8d8;--brand-graphite:#6b6b6b;--brand-iron:#3c3c3c;--brand-charcoal:#212121;--brand-black:#000;--color-background:#f2f2f2;--color-foreground:#18181b;--color-card:#fff;--color-accent:#e4e4e7;--color-muted:#e4e4e7;--color-muted-foreground:#52525b;--color-primary:#7c3aed;--color-primary-foreground:#fff;--color-border:#d4d4d8;--color-ring:#71717a;--color-destructive:oklch(55% .22 25);--color-destructive-foreground:oklch(98% .01 25);--color-success:oklch(48% .18 155);--color-success-foreground:oklch(38% .17 155);--color-warning:oklch(58% .18 65);--color-info:oklch(45% .2 240);--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-primary);--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) 6%, 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:#212121;--color-foreground:#fafafa;--color-card:#18181b;--color-accent:#18181b;--color-muted:#27272a;--color-muted-foreground:#a1a1aa;--color-primary:#c4b5fd;--color-primary-foreground:#09090b;--color-border:oklch(100% 0 0/.1);--color-ring:#71717a;--color-destructive:oklch(65% .2 25);--color-destructive-foreground:oklch(98% .01 25);--color-success:oklch(65% .17 155);--color-success-foreground:oklch(78% .15 155);--color-warning:oklch(78% .16 65);--color-info:oklch(62% .2 240);--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-primary);--ono-v-chip-bg:var(--color-muted);--ono-v-chip-text:var(--color-foreground);--ono-v-hover-overlay:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.dark{--ono-v-hover-overlay:color-mix(in srgb, var(--color-primary) 8%, transparent)}}.dark{--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-primary);outline-offset:2px}.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='%23a1a1aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")}.v-o-skeleton{background:linear-gradient(90deg, var(--color-muted) 25%, var(--color-muted) 50%, var(--color-muted) 75%)}@supports (color:color-mix(in lab, red, red)){.v-o-skeleton{background:linear-gradient(90deg, var(--color-muted) 25%, color-mix(in srgb, var(--color-muted) 40%, transparent) 50%, var(--color-muted) 75%)}}.v-o-skeleton{background-size:200% 100%;animation:1.8s ease-in-out infinite v-o-skeleton-sweep}@keyframes v-o-skeleton-sweep{0%{background-position:200% 0}to{background-position:-200% 0}}#__v_o__stacktrace summary .dui{transition:transform .2s}#__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:.6s cubic-bezier(.34,1.56,.64,1) forwards counter-animate}@keyframes counter-animate{0%{--num:var(--num-start)}to{--num:var(--num-end)}}.v-o-signal-dot{background:#fffffff2;border-radius:50%;flex-shrink:0;width:5px;height:5px;animation:2.6s ease-in-out infinite v-o-signal-dot;display:block;position:relative}.v-o-signal-dot:before{content:"";pointer-events:none;border:1.5px solid #ffffff8c;border-radius:50%;animation:2.6s ease-out infinite v-o-signal-ring;position:absolute;inset:-5px}@keyframes v-o-signal-dot{0%,to{opacity:1;transform:scale(1)}45%{opacity:.4;transform:scale(.65)}}@keyframes v-o-signal-ring{0%{opacity:.8;transform:scale(1)}65%{opacity:0;transform:scale(2.8)}to{opacity:0;transform:scale(2.8)}}@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-tracking{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}@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}@keyframes spin{to{transform:rotate(360deg)}}`;const rr=`/* eslint-disable no-bitwise */
|
|
61
61
|
/* eslint-disable class-methods-use-this */
|
|
62
62
|
/* eslint-disable sonarjs/cognitive-complexity */
|
|
63
63
|
/* eslint-disable no-param-reassign */
|
|
@@ -66,10 +66,20 @@ Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error
|
|
|
66
66
|
/* eslint-disable no-underscore-dangle */
|
|
67
67
|
/* eslint-disable func-names */
|
|
68
68
|
/* eslint-disable no-plusplus */
|
|
69
|
+
/* eslint-disable unused-imports/no-unused-vars */
|
|
70
|
+
/* eslint-disable sonarjs/no-nested-functions */
|
|
71
|
+
/* eslint-disable no-console */
|
|
69
72
|
|
|
70
73
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
71
74
|
// @ts-nocheck
|
|
72
75
|
|
|
76
|
+
// Module-scope static regexes
|
|
77
|
+
const RE_LEADING_SLASH = /^\\//;
|
|
78
|
+
const RE_HTTP_LINK = /^https?:\\/\\//i;
|
|
79
|
+
const RE_FS_PREFIX = /^\\/@fs\\//;
|
|
80
|
+
// eslint-disable-next-line sonarjs/slow-regex, regexp/no-super-linear-backtracking
|
|
81
|
+
const RE_STACK_AT_FRAME = /\\s*at\\s+(?:(.+?)\\s+\\()?(.*?):(\\d+):(\\d+)\\)?/;
|
|
82
|
+
|
|
73
83
|
/**
|
|
74
84
|
* Custom HTML element that displays error overlays in the browser.
|
|
75
85
|
* Provides interactive error display with theme switching, code frames, and navigation.
|
|
@@ -80,7 +90,6 @@ class ErrorOverlay extends HTMLElement {
|
|
|
80
90
|
/**
|
|
81
91
|
* @typedef {import('../types').VisulimaViteOverlayErrorPayload} VisulimaViteOverlayErrorPayload
|
|
82
92
|
*/
|
|
83
|
-
|
|
84
93
|
static COPY_SUCCESS_DELAY = 2000;
|
|
85
94
|
|
|
86
95
|
static DRAG_THRESHOLD = 5;
|
|
@@ -92,14 +101,14 @@ class ErrorOverlay extends HTMLElement {
|
|
|
92
101
|
|
|
93
102
|
static SCROLL_PADDING = 8;
|
|
94
103
|
|
|
95
|
-
static WHEEL_TIMEOUT = 100;
|
|
96
|
-
|
|
97
104
|
// Cached DOM elements for performance
|
|
98
105
|
__elements = {};
|
|
99
106
|
|
|
100
107
|
// Event listeners for cleanup
|
|
101
108
|
__eventListeners = new Map();
|
|
102
109
|
|
|
110
|
+
__v_oBalloonDismissed = false;
|
|
111
|
+
|
|
103
112
|
// Core state
|
|
104
113
|
__v_oCurrentHistoryIndex = -1;
|
|
105
114
|
|
|
@@ -169,6 +178,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
169
178
|
errors: error.errors,
|
|
170
179
|
errorType: error.errorType || "server",
|
|
171
180
|
rootPath: error.rootPath || "",
|
|
181
|
+
solution: error.solution,
|
|
172
182
|
};
|
|
173
183
|
|
|
174
184
|
this.__v_oPayload = payload;
|
|
@@ -178,11 +188,12 @@ class ErrorOverlay extends HTMLElement {
|
|
|
178
188
|
this._cacheElements();
|
|
179
189
|
|
|
180
190
|
this._initializeThemeToggle();
|
|
181
|
-
this._initializeBalloon(
|
|
191
|
+
this._initializeBalloon();
|
|
182
192
|
this._restoreBalloonState();
|
|
183
193
|
this._initializeCopyError();
|
|
184
194
|
this._initializePagination();
|
|
185
195
|
this._initializeHistory();
|
|
196
|
+
this._initializeFocusTrap();
|
|
186
197
|
|
|
187
198
|
if (this.__v_oPayload.solution) {
|
|
188
199
|
this._injectSolution(this.__v_oPayload.solution);
|
|
@@ -193,14 +204,14 @@ class ErrorOverlay extends HTMLElement {
|
|
|
193
204
|
const editorSelect = this.root.querySelector("#editor-selector");
|
|
194
205
|
|
|
195
206
|
if (editorSelect) {
|
|
196
|
-
const saved = localStorage.getItem("
|
|
207
|
+
const saved = localStorage.getItem("__v-o__editor");
|
|
197
208
|
|
|
198
209
|
if (saved && editorSelect.value !== saved) {
|
|
199
210
|
editorSelect.value = saved;
|
|
200
211
|
}
|
|
201
212
|
|
|
202
213
|
editorSelect.addEventListener("change", function () {
|
|
203
|
-
localStorage.setItem("
|
|
214
|
+
localStorage.setItem("__v-o__editor", this.value || "");
|
|
204
215
|
});
|
|
205
216
|
}
|
|
206
217
|
|
|
@@ -294,8 +305,11 @@ class ErrorOverlay extends HTMLElement {
|
|
|
294
305
|
|
|
295
306
|
// Limit history to prevent memory issues
|
|
296
307
|
if (this.__v_oHistory.length > ErrorOverlay.HISTORY_LIMIT) {
|
|
297
|
-
this.__v_oHistory =
|
|
308
|
+
this.__v_oHistory.length = ErrorOverlay.HISTORY_LIMIT;
|
|
298
309
|
}
|
|
310
|
+
|
|
311
|
+
// Update balloon count with animation
|
|
312
|
+
this._updateBalloonCount(true);
|
|
299
313
|
}
|
|
300
314
|
|
|
301
315
|
/**
|
|
@@ -303,7 +317,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
303
317
|
* @private
|
|
304
318
|
* @param {Element} element - The element to add the listener to
|
|
305
319
|
* @param {string} event - The event type
|
|
306
|
-
* @param {
|
|
320
|
+
* @param {(event: Event) => void} handler - The event handler
|
|
307
321
|
* @param {object} options - Event listener options
|
|
308
322
|
*/
|
|
309
323
|
_addEventListener(element, event, handler, options = {}) {
|
|
@@ -334,6 +348,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
334
348
|
this.__elements = {
|
|
335
349
|
balloon: root.querySelector("#__v_o__balloon"),
|
|
336
350
|
balloonCount: root.querySelector("#__v_o__balloon_count"),
|
|
351
|
+
balloonGroup: root.querySelector("#__v_o__balloon_group"),
|
|
337
352
|
balloonText: root.querySelector("#__v_o__balloon_text"),
|
|
338
353
|
fileButton: root.querySelector("button[class*=\\"underline\\"]"),
|
|
339
354
|
heading: root.querySelector("#__v_o__heading"),
|
|
@@ -398,7 +413,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
398
413
|
const rootPath = this.__v_oPayload?.rootPath || "";
|
|
399
414
|
|
|
400
415
|
if (rootPath && filePath.startsWith(rootPath)) {
|
|
401
|
-
return filePath.slice(rootPath.length).replace(
|
|
416
|
+
return filePath.slice(rootPath.length).replace(RE_LEADING_SLASH, "");
|
|
402
417
|
}
|
|
403
418
|
|
|
404
419
|
return filePath;
|
|
@@ -439,37 +454,59 @@ class ErrorOverlay extends HTMLElement {
|
|
|
439
454
|
* Initializes the floating balloon button that shows the error count
|
|
440
455
|
* and toggles the overlay open/close when clicked.
|
|
441
456
|
* @private
|
|
442
|
-
* @param {number} total - The total number of errors to display
|
|
443
457
|
*/
|
|
444
|
-
_initializeBalloon(
|
|
445
|
-
const { balloon,
|
|
458
|
+
_initializeBalloon() {
|
|
459
|
+
const { balloon, balloonGroup, root } = this.__elements || {};
|
|
446
460
|
|
|
447
|
-
if (!
|
|
461
|
+
if (!balloonGroup || !root) {
|
|
448
462
|
return;
|
|
449
463
|
}
|
|
450
464
|
|
|
451
465
|
try {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
if (balloonText) {
|
|
455
|
-
balloonText.textContent = total === 1 ? "Error" : "Errors";
|
|
456
|
-
}
|
|
466
|
+
// Initialize with current history count
|
|
467
|
+
this._updateBalloonCount(false);
|
|
457
468
|
|
|
458
469
|
this._restoreBalloonState();
|
|
459
470
|
|
|
460
|
-
balloon.classList.toggle("hidden", total <= 0);
|
|
461
|
-
|
|
462
471
|
const clickHandler = (event) => {
|
|
472
|
+
// Don't toggle overlay if clicking the close button
|
|
473
|
+
if (event.target.closest("#__v_o__balloon_close")) {
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
|
|
463
477
|
event.preventDefault();
|
|
464
478
|
const isHidden = root.classList.contains("hidden");
|
|
465
479
|
|
|
466
480
|
root.classList.toggle("hidden");
|
|
481
|
+
|
|
467
482
|
this._saveBalloonState("overlay", isHidden ? "open" : "closed");
|
|
468
483
|
};
|
|
469
484
|
|
|
470
|
-
this._makeBalloonDraggable(balloon);
|
|
471
|
-
|
|
472
485
|
balloon.addEventListener("click", clickHandler);
|
|
486
|
+
|
|
487
|
+
// Handle close button click
|
|
488
|
+
const closeButton = this.root.querySelector("#__v_o__balloon_close");
|
|
489
|
+
|
|
490
|
+
if (closeButton) {
|
|
491
|
+
const closeHandler = (event) => {
|
|
492
|
+
event.preventDefault();
|
|
493
|
+
event.stopPropagation();
|
|
494
|
+
|
|
495
|
+
// Hide the balloon and mark as dismissed (persisted across hard reloads)
|
|
496
|
+
balloonGroup.classList.add("hidden");
|
|
497
|
+
balloonGroup.classList.remove("inline-flex");
|
|
498
|
+
this.__v_oBalloonDismissed = true;
|
|
499
|
+
this._saveBalloonState("dismissed", "true");
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
// Remove existing listener if any
|
|
503
|
+
const existingCloseButton = closeButton.cloneNode(true);
|
|
504
|
+
|
|
505
|
+
closeButton.parentNode.replaceChild(existingCloseButton, closeButton);
|
|
506
|
+
existingCloseButton.addEventListener("click", closeHandler);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
this._makeBalloonDraggable(balloonGroup);
|
|
473
510
|
} catch {
|
|
474
511
|
// Fail silently if DOM is not available
|
|
475
512
|
}
|
|
@@ -555,6 +592,45 @@ class ErrorOverlay extends HTMLElement {
|
|
|
555
592
|
});
|
|
556
593
|
}
|
|
557
594
|
|
|
595
|
+
/**
|
|
596
|
+
* Traps keyboard focus within the overlay when it is open (WCAG 2.1 – 2.1.2 No Keyboard Trap).
|
|
597
|
+
* Tab cycles forward through focusable elements; Shift+Tab cycles backward.
|
|
598
|
+
* @private
|
|
599
|
+
*/
|
|
600
|
+
_initializeFocusTrap() {
|
|
601
|
+
const FOCUSABLE_SELECTORS
|
|
602
|
+
= "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\\"-1\\"])";
|
|
603
|
+
|
|
604
|
+
this._addEventListener(this.root, "keydown", (event) => {
|
|
605
|
+
if (event.key !== "Tab")
|
|
606
|
+
return;
|
|
607
|
+
|
|
608
|
+
const root = this.__elements?.root;
|
|
609
|
+
|
|
610
|
+
if (!root || root.classList.contains("hidden"))
|
|
611
|
+
return;
|
|
612
|
+
|
|
613
|
+
const focusable = [...this.root.querySelectorAll(FOCUSABLE_SELECTORS)];
|
|
614
|
+
|
|
615
|
+
if (focusable.length === 0)
|
|
616
|
+
return;
|
|
617
|
+
|
|
618
|
+
const first = focusable[0];
|
|
619
|
+
const last = focusable.at(-1);
|
|
620
|
+
const active = this.root.activeElement;
|
|
621
|
+
|
|
622
|
+
if (event.shiftKey) {
|
|
623
|
+
if (active === first || !active) {
|
|
624
|
+
event.preventDefault();
|
|
625
|
+
last.focus();
|
|
626
|
+
}
|
|
627
|
+
} else if (active === last || !active) {
|
|
628
|
+
event.preventDefault();
|
|
629
|
+
first.focus();
|
|
630
|
+
}
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
|
|
558
634
|
/**
|
|
559
635
|
* Initializes the layered error history functionality with Mac Time Machine-like scrolling.
|
|
560
636
|
* @private
|
|
@@ -571,7 +647,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
571
647
|
* @private
|
|
572
648
|
*/
|
|
573
649
|
_initializeHistoryToggle() {
|
|
574
|
-
const toggleButton = this.__elements
|
|
650
|
+
const toggleButton = this.__elements?.historyToggle;
|
|
575
651
|
|
|
576
652
|
if (!toggleButton) {
|
|
577
653
|
return;
|
|
@@ -619,7 +695,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
619
695
|
const column = currentError && currentError.originalFileColumn;
|
|
620
696
|
|
|
621
697
|
if (fullPath) {
|
|
622
|
-
const isHttpLink =
|
|
698
|
+
const isHttpLink = RE_HTTP_LINK.test(fullPath);
|
|
623
699
|
let displayPath = fullPath;
|
|
624
700
|
|
|
625
701
|
if (!isHttpLink && this.__v_oPayload.rootPath && fullPath.startsWith(this.__v_oPayload.rootPath)) {
|
|
@@ -630,8 +706,11 @@ class ErrorOverlay extends HTMLElement {
|
|
|
630
706
|
}
|
|
631
707
|
}
|
|
632
708
|
|
|
633
|
-
|
|
634
|
-
|
|
709
|
+
const linesSuffix = line ? \`:\${line}\` : "";
|
|
710
|
+
|
|
711
|
+
fileElement.textContent = isHttpLink ? fullPath : \`.\${displayPath}\${linesSuffix}\`;
|
|
712
|
+
|
|
713
|
+
const editor = localStorage.getItem("__v-o__editor");
|
|
635
714
|
|
|
636
715
|
// Remove any existing event listeners
|
|
637
716
|
const newFileElement = fileElement.cloneNode(true);
|
|
@@ -644,13 +723,17 @@ class ErrorOverlay extends HTMLElement {
|
|
|
644
723
|
if (isHttpLink) {
|
|
645
724
|
globalThis.open(fullPath, "_blank");
|
|
646
725
|
} else {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
726
|
+
try {
|
|
727
|
+
// injected by the hmr plugin when served
|
|
728
|
+
// eslint-disable-next-line no-undef
|
|
729
|
+
const url = \`\${base}__open-in-editor?file=\${encodeURIComponent(fullPath)}\${
|
|
730
|
+
line ? \`&line=\${line}\` : ""
|
|
731
|
+
}\${column ? \`&column=\${column}\` : ""}\${editor ? \`&editor=\${editor}\` : ""}\`;
|
|
732
|
+
|
|
733
|
+
fetch(url).catch(() => {});
|
|
734
|
+
} catch {
|
|
735
|
+
// base may not be defined outside Vite HMR context
|
|
736
|
+
}
|
|
654
737
|
}
|
|
655
738
|
});
|
|
656
739
|
|
|
@@ -679,20 +762,20 @@ class ErrorOverlay extends HTMLElement {
|
|
|
679
762
|
.replaceAll(">", ">");
|
|
680
763
|
|
|
681
764
|
const normalizePath = (path) => {
|
|
682
|
-
if (
|
|
765
|
+
if (RE_HTTP_LINK.test(path)) {
|
|
683
766
|
const u = new URL(path);
|
|
684
767
|
|
|
685
768
|
path = u.pathname || "";
|
|
686
769
|
}
|
|
687
770
|
|
|
688
771
|
path = decodeURIComponent(path);
|
|
689
|
-
path = String(path || "").replace(
|
|
772
|
+
path = String(path || "").replace(RE_FS_PREFIX, "/");
|
|
690
773
|
|
|
691
774
|
return path;
|
|
692
775
|
};
|
|
693
776
|
|
|
694
777
|
const fmt = (line) => {
|
|
695
|
-
const m =
|
|
778
|
+
const m = RE_STACK_AT_FRAME.exec(line);
|
|
696
779
|
|
|
697
780
|
if (!m) {
|
|
698
781
|
return \`<div class="frame">\${escape(line)}</div>\`;
|
|
@@ -708,7 +791,10 @@ class ErrorOverlay extends HTMLElement {
|
|
|
708
791
|
|
|
709
792
|
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>\`;
|
|
710
793
|
};
|
|
711
|
-
const html = stackText
|
|
794
|
+
const html = stackText
|
|
795
|
+
.split("\\n")
|
|
796
|
+
.map((l) => fmt(l))
|
|
797
|
+
.join("");
|
|
712
798
|
|
|
713
799
|
stackElement.innerHTML = html;
|
|
714
800
|
stackElement.querySelectorAll(".stack-link").forEach((button) => {
|
|
@@ -726,15 +812,19 @@ class ErrorOverlay extends HTMLElement {
|
|
|
726
812
|
resolved = abs;
|
|
727
813
|
}
|
|
728
814
|
|
|
729
|
-
const editor = localStorage.getItem("
|
|
815
|
+
const editor = localStorage.getItem("__v-o__editor");
|
|
730
816
|
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
817
|
+
try {
|
|
818
|
+
// injected by the hmr plugin when served
|
|
819
|
+
// eslint-disable-next-line no-undef
|
|
820
|
+
const url = \`\${base}__open-in-editor?file=\${encodeURIComponent(resolved)}\${
|
|
821
|
+
line ? \`&line=\${line}\` : ""
|
|
822
|
+
}\${column ? \`&column=\${column}\` : ""}\${editor ? \`&editor=\${editor}\` : ""}\`;
|
|
736
823
|
|
|
737
|
-
|
|
824
|
+
fetch(url).catch(() => {});
|
|
825
|
+
} catch {
|
|
826
|
+
// base may not be defined outside Vite HMR context
|
|
827
|
+
}
|
|
738
828
|
});
|
|
739
829
|
});
|
|
740
830
|
}
|
|
@@ -779,7 +869,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
779
869
|
return;
|
|
780
870
|
}
|
|
781
871
|
|
|
782
|
-
let codeFrame = "<div class=\\"no-code-frame font-mono\\">No code frame could be generated.</div>";
|
|
872
|
+
let codeFrame = "<div class=\\"no-code-frame font-mono py-4 px-5\\">No code frame could be generated.</div>";
|
|
783
873
|
|
|
784
874
|
// Try current error's code frame first
|
|
785
875
|
if (mode === "compiled" && currentError.compiledCodeFrameContent) {
|
|
@@ -826,11 +916,8 @@ class ErrorOverlay extends HTMLElement {
|
|
|
826
916
|
renderCode("original");
|
|
827
917
|
updateRawStack("original");
|
|
828
918
|
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
if (compiledButton)
|
|
833
|
-
compiledButton.classList.remove("active");
|
|
919
|
+
originalButton.classList.add("active");
|
|
920
|
+
compiledButton?.classList.remove("active");
|
|
834
921
|
});
|
|
835
922
|
}
|
|
836
923
|
|
|
@@ -843,11 +930,8 @@ class ErrorOverlay extends HTMLElement {
|
|
|
843
930
|
renderCode("compiled");
|
|
844
931
|
updateRawStack("compiled");
|
|
845
932
|
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
if (originalButton)
|
|
850
|
-
originalButton.classList.remove("active");
|
|
933
|
+
compiledButton.classList.add("active");
|
|
934
|
+
originalButton?.classList.remove("active");
|
|
851
935
|
});
|
|
852
936
|
}
|
|
853
937
|
};
|
|
@@ -959,18 +1043,8 @@ class ErrorOverlay extends HTMLElement {
|
|
|
959
1043
|
this._navigateHistoryByScroll(scrollDirection);
|
|
960
1044
|
};
|
|
961
1045
|
|
|
962
|
-
//
|
|
963
|
-
this._addEventListener(this.root, "wheel", handleWheel, { passive: false });
|
|
964
|
-
|
|
965
|
-
// Also add to the main overlay element
|
|
1046
|
+
// Single wheel event listener — events from children bubble up to rootElement
|
|
966
1047
|
this._addEventListener(rootElement, "wheel", handleWheel, { passive: false });
|
|
967
|
-
|
|
968
|
-
// Also add to the backdrop for better coverage
|
|
969
|
-
const backdrop = this.root.querySelector("#__v_o__backdrop");
|
|
970
|
-
|
|
971
|
-
if (backdrop) {
|
|
972
|
-
this._addEventListener(backdrop, "wheel", handleWheel, { passive: false });
|
|
973
|
-
}
|
|
974
1048
|
}
|
|
975
1049
|
|
|
976
1050
|
/**
|
|
@@ -984,7 +1058,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
984
1058
|
|
|
985
1059
|
const isDark = currentTheme === "dark";
|
|
986
1060
|
|
|
987
|
-
const rootElement = this.__elements
|
|
1061
|
+
const rootElement = this.__elements?.root;
|
|
988
1062
|
const darkButton = this.root.querySelector("[data-v-o-theme-click-value=\\"dark\\"]");
|
|
989
1063
|
const lightButton = this.root.querySelector("[data-v-o-theme-click-value=\\"light\\"]");
|
|
990
1064
|
|
|
@@ -1016,13 +1090,15 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1016
1090
|
rootElement.classList.remove("dark");
|
|
1017
1091
|
}
|
|
1018
1092
|
|
|
1019
|
-
if (rootElement)
|
|
1093
|
+
if (rootElement) {
|
|
1020
1094
|
rootElement.classList.remove("hidden");
|
|
1095
|
+
rootElement.setAttribute("data-error-type", this.__v_oPayload.errorType);
|
|
1096
|
+
}
|
|
1021
1097
|
|
|
1022
1098
|
const themeButtons = this.root.querySelectorAll("[data-v-o-theme-click-value]");
|
|
1023
1099
|
|
|
1024
1100
|
themeButtons.forEach((button) => {
|
|
1025
|
-
|
|
1101
|
+
this._addEventListener(button, "click", (event) => {
|
|
1026
1102
|
event.preventDefault();
|
|
1027
1103
|
|
|
1028
1104
|
const theme = event.currentTarget.dataset.vOThemeClickValue;
|
|
@@ -1167,8 +1243,8 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1167
1243
|
};
|
|
1168
1244
|
|
|
1169
1245
|
const handleMouseDown = (event) => {
|
|
1170
|
-
if (event.target.closest("#__v_o__balloon_count")) {
|
|
1171
|
-
return; // Don't drag when clicking count
|
|
1246
|
+
if (event.target.closest("#__v_o__balloon_count") || event.target.closest("#__v_o__balloon_close")) {
|
|
1247
|
+
return; // Don't drag when clicking count or close button
|
|
1172
1248
|
}
|
|
1173
1249
|
|
|
1174
1250
|
isDragging = true;
|
|
@@ -1225,6 +1301,13 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1225
1301
|
|
|
1226
1302
|
this.__v_oPayload = historyEntry.payload;
|
|
1227
1303
|
|
|
1304
|
+
// Update error type attribute for CSS balloon visibility rules
|
|
1305
|
+
const rootElement = this.__elements?.root;
|
|
1306
|
+
|
|
1307
|
+
if (rootElement) {
|
|
1308
|
+
rootElement.setAttribute("data-error-type", this.__v_oPayload.errorType || "client");
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1228
1311
|
// Re-render the main overlay with the current error
|
|
1229
1312
|
this._updateOverlayWithHistoryError();
|
|
1230
1313
|
|
|
@@ -1246,11 +1329,19 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1246
1329
|
*/
|
|
1247
1330
|
_restoreBalloonState() {
|
|
1248
1331
|
try {
|
|
1249
|
-
const balloonStates = JSON.parse(localStorage.getItem("
|
|
1250
|
-
const balloon = this.
|
|
1251
|
-
const rootElement = this.__elements.root;
|
|
1332
|
+
const balloonStates = JSON.parse(localStorage.getItem("__v-o__balloon") || "{}");
|
|
1333
|
+
const { balloon, balloonGroup, root: rootElement } = this.__elements || {};
|
|
1252
1334
|
|
|
1253
1335
|
if (balloon && rootElement) {
|
|
1336
|
+
if (balloonStates.dismissed === "true") {
|
|
1337
|
+
this.__v_oBalloonDismissed = true;
|
|
1338
|
+
|
|
1339
|
+
if (balloonGroup) {
|
|
1340
|
+
balloonGroup.classList.add("hidden");
|
|
1341
|
+
balloonGroup.classList.remove("inline-flex");
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1254
1345
|
if (balloonStates.overlay === "open") {
|
|
1255
1346
|
rootElement.classList.remove("hidden");
|
|
1256
1347
|
} else if (balloonStates.overlay === "closed") {
|
|
@@ -1287,26 +1378,26 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1287
1378
|
}
|
|
1288
1379
|
}
|
|
1289
1380
|
|
|
1290
|
-
/**
|
|
1291
|
-
* Saves balloon state and position to localStorage
|
|
1292
|
-
* @private
|
|
1293
|
-
* @param {string} key - The state key ('overlay' or 'position')
|
|
1294
|
-
* @param {string} value - The state value
|
|
1295
|
-
*/
|
|
1296
|
-
|
|
1297
1381
|
_saveBalloonState(key, value) {
|
|
1298
1382
|
try {
|
|
1299
|
-
const item = localStorage.getItem("
|
|
1383
|
+
const item = localStorage.getItem("__v-o__balloon");
|
|
1300
1384
|
const balloonStates = item ? JSON.parse(item) : {};
|
|
1301
1385
|
|
|
1302
1386
|
balloonStates[key] = value;
|
|
1303
1387
|
|
|
1304
|
-
localStorage.setItem("
|
|
1388
|
+
localStorage.setItem("__v-o__balloon", JSON.stringify(balloonStates));
|
|
1305
1389
|
} catch {
|
|
1306
1390
|
// Fail silently if localStorage is not available
|
|
1307
1391
|
}
|
|
1308
1392
|
}
|
|
1309
1393
|
|
|
1394
|
+
/**
|
|
1395
|
+
* Saves balloon state and position to localStorage
|
|
1396
|
+
* @private
|
|
1397
|
+
* @param {string} key - The state key ('overlay' or 'position')
|
|
1398
|
+
* @param {string} value - The state value
|
|
1399
|
+
*/
|
|
1400
|
+
|
|
1310
1401
|
/**
|
|
1311
1402
|
* Toggles the history mode on/off.
|
|
1312
1403
|
* @private
|
|
@@ -1364,7 +1455,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1364
1455
|
historyLayerDepth.classList.add("opacity-0");
|
|
1365
1456
|
}
|
|
1366
1457
|
|
|
1367
|
-
const timeElement = this.__elements
|
|
1458
|
+
const timeElement = this.__elements?.historyTimestamp;
|
|
1368
1459
|
|
|
1369
1460
|
if (timeElement) {
|
|
1370
1461
|
timeElement.classList.add("hidden");
|
|
@@ -1372,6 +1463,69 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1372
1463
|
}
|
|
1373
1464
|
}
|
|
1374
1465
|
|
|
1466
|
+
/**
|
|
1467
|
+
* Updates the balloon count to show the total number of errors in history.
|
|
1468
|
+
* @private
|
|
1469
|
+
* @param {boolean} animate - Whether to animate the count change
|
|
1470
|
+
*/
|
|
1471
|
+
_updateBalloonCount(animate = false) {
|
|
1472
|
+
const { balloonCount, balloonGroup, balloonText } = this.__elements || {};
|
|
1473
|
+
|
|
1474
|
+
if (!balloonCount) {
|
|
1475
|
+
return;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
const totalErrors = this.__v_oHistory.length;
|
|
1479
|
+
const currentNumber = Number.parseInt(balloonCount.style.getPropertyValue("--num") || "0", 10);
|
|
1480
|
+
|
|
1481
|
+
// Animate if count increased and animation is requested
|
|
1482
|
+
if (animate && totalErrors > currentNumber && currentNumber > 0) {
|
|
1483
|
+
// Set start and end values for animation
|
|
1484
|
+
balloonCount.style.setProperty("--num-start", currentNumber.toString());
|
|
1485
|
+
balloonCount.style.setProperty("--num-end", totalErrors.toString());
|
|
1486
|
+
|
|
1487
|
+
// Remove animation class to reset
|
|
1488
|
+
balloonCount.classList.remove("animate-count-up");
|
|
1489
|
+
|
|
1490
|
+
// Force reflow to ensure animation restarts
|
|
1491
|
+
// eslint-disable-next-line no-void, sonarjs/void-use
|
|
1492
|
+
void balloonCount.offsetWidth;
|
|
1493
|
+
|
|
1494
|
+
// Trigger animation
|
|
1495
|
+
balloonCount.classList.add("animate-count-up");
|
|
1496
|
+
|
|
1497
|
+
// Clean up after animation completes
|
|
1498
|
+
balloonCount.addEventListener(
|
|
1499
|
+
"animationend",
|
|
1500
|
+
() => {
|
|
1501
|
+
balloonCount.style.setProperty("--num", totalErrors.toString());
|
|
1502
|
+
balloonCount.style.removeProperty("--num-start");
|
|
1503
|
+
balloonCount.style.removeProperty("--num-end");
|
|
1504
|
+
balloonCount.classList.remove("animate-count-up");
|
|
1505
|
+
},
|
|
1506
|
+
{ once: true },
|
|
1507
|
+
);
|
|
1508
|
+
} else {
|
|
1509
|
+
// No animation, just update the number directly
|
|
1510
|
+
balloonCount.style.setProperty("--num", totalErrors.toString());
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
if (balloonText) {
|
|
1514
|
+
balloonText.textContent = totalErrors === 1 ? "Error" : "Errors";
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
// Show balloon if there are errors and it's not dismissed
|
|
1518
|
+
if (balloonGroup) {
|
|
1519
|
+
if (totalErrors > 0 && !this.__v_oBalloonDismissed) {
|
|
1520
|
+
balloonGroup.classList.add("inline-flex");
|
|
1521
|
+
balloonGroup.classList.remove("hidden");
|
|
1522
|
+
} else {
|
|
1523
|
+
balloonGroup.classList.remove("inline-flex");
|
|
1524
|
+
balloonGroup.classList.add("hidden");
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1375
1529
|
/**
|
|
1376
1530
|
* Updates the history indicator in the navigation.
|
|
1377
1531
|
* @private
|
|
@@ -1423,7 +1577,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1423
1577
|
const historyEntry = this.__v_oHistory[this.__v_oCurrentHistoryIndex];
|
|
1424
1578
|
|
|
1425
1579
|
// Update timestamp on right notch
|
|
1426
|
-
const timeElement = this.__elements
|
|
1580
|
+
const timeElement = this.__elements?.historyTimestamp;
|
|
1427
1581
|
|
|
1428
1582
|
if (timeElement && historyEntry) {
|
|
1429
1583
|
timeElement.classList.remove("hidden");
|
|
@@ -1431,13 +1585,12 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1431
1585
|
const span = timeElement.querySelector("span");
|
|
1432
1586
|
|
|
1433
1587
|
if (span) {
|
|
1434
|
-
span.textContent = new Date(historyEntry.timestamp).toLocaleString(
|
|
1588
|
+
span.textContent = new Date(historyEntry.timestamp).toLocaleString(undefined, {
|
|
1435
1589
|
day: "2-digit",
|
|
1436
1590
|
hour: "2-digit",
|
|
1437
1591
|
minute: "2-digit",
|
|
1438
1592
|
month: "2-digit",
|
|
1439
1593
|
second: "2-digit",
|
|
1440
|
-
timeZone: "UTC",
|
|
1441
1594
|
year: "numeric",
|
|
1442
1595
|
});
|
|
1443
1596
|
}
|
|
@@ -1468,8 +1621,6 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1468
1621
|
|
|
1469
1622
|
if (root && typeof root.classList?.add === "function") {
|
|
1470
1623
|
root.classList.add("hidden");
|
|
1471
|
-
|
|
1472
|
-
this._saveBalloonState("overlay", "closed");
|
|
1473
1624
|
}
|
|
1474
1625
|
|
|
1475
1626
|
// Don't remove the overlay - just hide it so it can be reopened
|
|
@@ -1492,6 +1643,24 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1492
1643
|
this._saveBalloonState("overlay", "open");
|
|
1493
1644
|
}
|
|
1494
1645
|
|
|
1646
|
+
// Update error type attribute for CSS balloon visibility rules
|
|
1647
|
+
const rootElement = this.__elements?.root;
|
|
1648
|
+
|
|
1649
|
+
if (rootElement) {
|
|
1650
|
+
rootElement.setAttribute("data-error-type", this.__v_oPayload.errorType || "client");
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
// Show balloon and clear dismissed state when new error occurs
|
|
1654
|
+
const balloonGroup = this.__elements?.balloonGroup;
|
|
1655
|
+
|
|
1656
|
+
if (balloonGroup) {
|
|
1657
|
+
// Clear dismissed state and show balloon for new errors
|
|
1658
|
+
this.__v_oBalloonDismissed = false;
|
|
1659
|
+
this._saveBalloonState("dismissed", "false");
|
|
1660
|
+
balloonGroup.classList.add("inline-flex");
|
|
1661
|
+
balloonGroup.classList.remove("hidden");
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1495
1664
|
// Update code frame
|
|
1496
1665
|
const overlay = this.__elements?.overlay;
|
|
1497
1666
|
|
|
@@ -1526,212 +1695,214 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1526
1695
|
this.__v_oHistory.length = ErrorOverlay.HISTORY_LIMIT;
|
|
1527
1696
|
}
|
|
1528
1697
|
|
|
1698
|
+
// Update balloon count with animation
|
|
1699
|
+
this._updateBalloonCount(true);
|
|
1700
|
+
|
|
1529
1701
|
this._updateHistoryToggleVisibility();
|
|
1530
1702
|
}
|
|
1531
1703
|
}
|
|
1532
|
-
`;var
|
|
1533
|
-
<
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
<
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
</button>
|
|
1576
|
-
<div id="__v_o__error-overlay_pagination_count" class="inline-flex justify-center items-center min-w-8 h-5 gap-1 text-[var(--ono-v-text)] text-center text-[11px] font-medium leading-4 rounded-full px-1.5">
|
|
1577
|
-
<span id="__v_o__pagination_current">1</span>
|
|
1578
|
-
<span class="text-[var(--ono-v-text-muted)]">/</span>
|
|
1579
|
-
<span id="__v_o__pagination_total">1</span>
|
|
1580
|
-
</div>
|
|
1581
|
-
<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-[var(--ono-v-chip-bg)] rounded-full disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-[var(--ono-v-red-orange)] hover:bg-[var(--ono-v-hover-overlay)] transition-colors" disabled>
|
|
1582
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="error-overlay-pagination-button-icon" aria-label="next">
|
|
1583
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.75011 3.93945L7.28044 4.46978L10.1037 7.29301C10.4942 7.68353 10.4942 8.3167 10.1037 8.70722L7.28044 11.5304L6.75011 12.0608L5.68945 11.0001L6.21978 10.4698L8.68945 8.00011L6.21978 5.53044L5.68945 5.00011L6.75011 3.93945Z" fill="currentColor"></path>
|
|
1584
|
-
</svg>
|
|
1585
|
-
</button>
|
|
1586
|
-
<div class="flex items-center gap-1">
|
|
1587
|
-
<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-[var(--ono-v-chip-bg)] rounded-full hover:bg-[var(--ono-v-hover-overlay)] focus-visible:outline focus-visible:outline-[var(--ono-v-red-orange)] transition-colors">
|
|
1588
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-label="history">
|
|
1589
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM2.5 8a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0ZM8 4a.5.5 0 0 1 .5.5v3.5a.5.5 0 0 1-1 0V4.5A.5.5 0 0 1 8 4Z" fill="currentColor"></path>
|
|
1590
|
-
</svg>
|
|
1591
|
-
</button>
|
|
1592
|
-
<div id="__v_o__history_indicator" class="flex items-center gap-1 text-xs text-[var(--ono-v-text-muted)] hidden">
|
|
1593
|
-
<span id="__v_o__history_count">0</span>
|
|
1594
|
-
<span>/</span>
|
|
1595
|
-
<span id="__v_o__history_total">0</span>
|
|
1596
|
-
<span class="text-[10px]">scroll to navigate</span>
|
|
1704
|
+
`;var Ws=Object.defineProperty,fe=b((t,e)=>Ws(t,"name",{value:e,configurable:!0}),"r$3");const Vs=/([A-Z])/g,or='<option value="">Auto-detected Editor</option>',Zs="class ErrorOverlay",Ys="var ErrorOverlay = ",Xs="window.ErrorOverlay = ErrorOverlay;",Qs=fe(()=>{try{const t=Object.keys(Vt);return[or,...t.map(e=>`<option value="${String(e)}">${String(Vt[e])}</option>`)].join("")}catch{return or}},"generateEditorOptions"),Js=fe((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">
|
|
1705
|
+
<div id="__v_o__backdrop" class="fixed inset-0 -z-1 bg-black/65 pointer-events-auto"></div>
|
|
1706
|
+
<div class="relative z-1 w-full max-w-(--ono-v-dialog-max-width) mx-auto flex flex-col">
|
|
1707
|
+
|
|
1708
|
+
<div id="__v_o__panel" role="dialog" aria-modal="true" aria-label="Runtime Error Overlay"
|
|
1709
|
+
class="w-full max-h-[80vh] flex flex-col bg-(--ono-v-surface) border border-(--ono-v-border) shadow-2xl overflow-hidden">
|
|
1710
|
+
|
|
1711
|
+
<!-- ── Header bar ── replaces old SVG notch tabs ─────────────────────── -->
|
|
1712
|
+
<div id="__v_o__notch"
|
|
1713
|
+
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)">
|
|
1714
|
+
|
|
1715
|
+
<!-- Left: error dot · label · pagination -->
|
|
1716
|
+
<div class="flex items-center gap-2 px-3 flex-1 min-w-0">
|
|
1717
|
+
<span class="size-1.5 rounded-full bg-(--ono-v-red-orange) shrink-0"></span>
|
|
1718
|
+
<span class="text-xs font-bold uppercase tracking-widest text-(--ono-v-text-muted) shrink-0 whitespace-nowrap">
|
|
1719
|
+
<span style="color: color-mix(in srgb, var(--ono-v-primary) 50%, transparent)">// </span>Runtime Error
|
|
1720
|
+
</span>
|
|
1721
|
+
|
|
1722
|
+
<nav class="error-overlay-pagination dialog-exclude-closing-from-outside-click flex items-center gap-1 ml-1">
|
|
1723
|
+
<button id="__v_o__error-overlay-pagination-previous" type="button" aria-disabled="true"
|
|
1724
|
+
class="error-overlay-pagination-button inline-flex items-center justify-center size-7 hover:bg-(--ono-v-hover-overlay) active:scale-95 transition-transform disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline-1 focus-visible:outline-(--ono-v-primary)" disabled>
|
|
1725
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${Qn}'); mask-image: url('${Qn}')" aria-label="previous"></span>
|
|
1726
|
+
</button>
|
|
1727
|
+
<div id="__v_o__error-overlay_pagination_count"
|
|
1728
|
+
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">
|
|
1729
|
+
<span id="__v_o__pagination_current">1</span>
|
|
1730
|
+
<span>/</span>
|
|
1731
|
+
<span id="__v_o__pagination_total">1</span>
|
|
1732
|
+
</div>
|
|
1733
|
+
<button id="__v_o__error-overlay-pagination-next" type="button" aria-disabled="true"
|
|
1734
|
+
class="error-overlay-pagination-button inline-flex items-center justify-center size-7 hover:bg-(--ono-v-hover-overlay) active:scale-95 transition-transform disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline-1 focus-visible:outline-(--ono-v-primary)" disabled>
|
|
1735
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${gt}'); mask-image: url('${gt}')" aria-label="next"></span>
|
|
1736
|
+
</button>
|
|
1737
|
+
<button id="__v_o__history_toggle" type="button" title="Toggle Error History" aria-label="Toggle Error History"
|
|
1738
|
+
class="error-overlay-history-button inline-flex items-center justify-center size-7 hover:bg-(--ono-v-hover-overlay) active:scale-95 transition-transform focus-visible:outline-1 focus-visible:outline-(--ono-v-primary)">
|
|
1739
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${Jn}'); mask-image: url('${Jn}')"></span>
|
|
1740
|
+
</button>
|
|
1741
|
+
<div id="__v_o__history_indicator" class="flex items-center gap-1 text-xs text-(--ono-v-text-muted) hidden">
|
|
1742
|
+
<span id="__v_o__history_count">0</span>
|
|
1743
|
+
<span>/</span>
|
|
1744
|
+
<span id="__v_o__history_total">0</span>
|
|
1745
|
+
</div>
|
|
1746
|
+
</nav>
|
|
1597
1747
|
</div>
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
${pr
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1748
|
+
|
|
1749
|
+
<!-- Center: history timestamp (absolutely centered) -->
|
|
1750
|
+
<div id="__v_o__history_timestamp"
|
|
1751
|
+
class="absolute left-1/2 -translate-x-1/2 text-xs text-(--ono-v-text-muted) pointer-events-none hidden">
|
|
1752
|
+
<span></span>
|
|
1753
|
+
</div>
|
|
1754
|
+
|
|
1755
|
+
<!-- Right: editor select · theme · copy · close -->
|
|
1756
|
+
${n?"":`<div class="flex items-center gap-0.5 pr-1 shrink-0">
|
|
1757
|
+
<div id="__v_o__editor" class="hidden sm:flex items-center">
|
|
1758
|
+
<label for="editor-selector" class="sr-only">Editor</label>
|
|
1759
|
+
<select id="editor-selector"
|
|
1760
|
+
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>
|
|
1761
|
+
</div>
|
|
1762
|
+
<div id="v-o-theme-switch" class="flex items-center">
|
|
1763
|
+
<button type="button" title="Switch to dark mode" aria-label="Switch to dark mode"
|
|
1764
|
+
class="hover:bg-(--ono-v-hover-overlay) active:scale-95 transition-transform text-(--ono-v-text)" data-v-o-theme-click-value="dark">
|
|
1765
|
+
<span class="inline-flex items-center justify-center size-8">
|
|
1766
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${tr}'); mask-image: url('${tr}')"></span>
|
|
1767
|
+
</span>
|
|
1768
|
+
</button>
|
|
1769
|
+
<button type="button" title="Switch to light mode" aria-label="Switch to light mode"
|
|
1770
|
+
class="hidden hover:bg-(--ono-v-hover-overlay) active:scale-95 transition-transform text-(--ono-v-text)" data-v-o-theme-click-value="light">
|
|
1771
|
+
<span class="inline-flex items-center justify-center size-8">
|
|
1772
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${nr}'); mask-image: url('${nr}')"></span>
|
|
1773
|
+
</span>
|
|
1774
|
+
</button>
|
|
1775
|
+
</div>
|
|
1776
|
+
<button type="button" id="__v_o__copy_error" title="Copy Error Info" aria-label="Copy Error Info"
|
|
1777
|
+
class="inline-flex items-center justify-center size-8 hover:bg-(--ono-v-hover-overlay) active:scale-95 transition-transform text-(--ono-v-text)">
|
|
1778
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${Kn}'); mask-image: url('${Kn}')"></span>
|
|
1779
|
+
</button>
|
|
1780
|
+
<button type="button" id="__v_o__close" aria-label="Close error overlay"
|
|
1781
|
+
class="inline-flex items-center justify-center size-8 hover:bg-(--ono-v-hover-overlay) active:scale-95 transition-transform text-(--ono-v-text)">
|
|
1782
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${kt}'); mask-image: url('${kt}')"></span>
|
|
1783
|
+
</button>
|
|
1784
|
+
</div>`}
|
|
1613
1785
|
</div>
|
|
1614
1786
|
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1787
|
+
<!-- ── File / error title ──────────────────────────────────────────────── -->
|
|
1788
|
+
<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">
|
|
1789
|
+
<div id="__v_o__header_loader" class="v-o-skeleton h-5 w-3/5"></div>
|
|
1790
|
+
<div id="__v_o__title" class="flex items-center gap-2 w-full hidden">
|
|
1791
|
+
<span id="__v_o__heading" class="leading-none text-(--ono-v-red-orange) font-mono text-sm font-semibold"></span>
|
|
1792
|
+
<button type="button" id="__v_o__filelink"
|
|
1793
|
+
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>
|
|
1794
|
+
</div>
|
|
1795
|
+
<div id="__v_o__mode" class="flex items-center gap-1 shrink-0">
|
|
1796
|
+
<button type="button" data-flame-mode="original"
|
|
1797
|
+
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>
|
|
1798
|
+
<button type="button" data-flame-mode="compiled"
|
|
1799
|
+
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>
|
|
1800
|
+
</div>
|
|
1626
1801
|
</div>
|
|
1627
1802
|
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1803
|
+
<!-- ── Scrollable content ─────────────────────────────────────────────── -->
|
|
1804
|
+
<div class="flex-1 min-h-0 overflow-y-auto devtools-content-scroll">
|
|
1805
|
+
<div id="__v_o__message_loader" class="px-4 py-2 bg-(--ono-v-surface-muted) border-b border-(--ono-v-border)">
|
|
1806
|
+
<div class="v-o-skeleton h-4 w-full"></div>
|
|
1807
|
+
</div>
|
|
1808
|
+
<!-- CRITICAL: class selector used by runtime.js querySelector — do not change -->
|
|
1809
|
+
<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>
|
|
1810
|
+
|
|
1811
|
+
<div id="__v_o__solutions" class="relative hidden">
|
|
1812
|
+
<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);">
|
|
1813
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${er}'); mask-image: url('${er}')"></span>
|
|
1814
|
+
</div>
|
|
1815
|
+
<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>
|
|
1816
|
+
</div>
|
|
1638
1817
|
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1818
|
+
<div id="__v_o__body" class="relative flex min-h-0 bg-(--ono-v-surface)">
|
|
1819
|
+
<div id="__v_o__body_loader" class="w-full p-4 space-y-1.5">
|
|
1820
|
+
<div class="v-o-skeleton h-4 w-full"></div>
|
|
1821
|
+
<div class="v-o-skeleton h-4 w-3/4"></div>
|
|
1822
|
+
<div class="v-o-skeleton h-4 w-1/2"></div>
|
|
1823
|
+
<div class="v-o-skeleton h-4 w-2/3"></div>
|
|
1824
|
+
<div class="v-o-skeleton h-4 w-4/5"></div>
|
|
1825
|
+
<div class="v-o-skeleton h-4 w-1/3"></div>
|
|
1826
|
+
<div class="v-o-skeleton h-4 w-2/5"></div>
|
|
1827
|
+
<div class="v-o-skeleton h-4 w-3/5"></div>
|
|
1828
|
+
</div>
|
|
1829
|
+
<div id="__v_o__overlay" class="overflow-auto w-full hidden"></div>
|
|
1830
|
+
</div>
|
|
1649
1831
|
</div>
|
|
1650
|
-
<button type="button" id="__v_o__copy_error" title="Copy Error Info" aria-label="Copy Error Info" class="font-medium rounded-full hover:bg-[var(--ono-v-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-v-hover-overlay)] text-[var(--ono-v-text)]">
|
|
1651
|
-
<span class="inline-flex shrink-0 justify-center items-center size-8">
|
|
1652
|
-
<span class="dui size-5" style="-webkit-mask-image: url('${or}'); mask-image: url('${or}')"></span>
|
|
1653
|
-
</span>
|
|
1654
|
-
</button>
|
|
1655
|
-
</div>
|
|
1656
1832
|
|
|
1657
|
-
|
|
1658
|
-
<
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1833
|
+
<!-- ── Stack trace footer (collapsible) ──────────────────────────────── -->
|
|
1834
|
+
<details id="__v_o__stacktrace" class="shrink-0 border-t border-(--ono-v-border) bg-(--ono-v-surface-muted)">
|
|
1835
|
+
<summary class="cursor-pointer px-4 py-3 list-none flex items-center gap-2 text-xs font-bold uppercase tracking-widest text-(--ono-v-text-muted) hover:text-(--ono-v-text) transition-colors duration-200">
|
|
1836
|
+
<span class="dui size-3" style="-webkit-mask-image: url('${gt}'); mask-image: url('${gt}')"></span>
|
|
1837
|
+
Stack Trace
|
|
1838
|
+
</summary>
|
|
1839
|
+
<!-- CRITICAL: class selector used by runtime.js querySelector — do not change -->
|
|
1840
|
+
<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>
|
|
1841
|
+
</details>
|
|
1666
1842
|
</div>
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
<div class="v-o-skeleton h-4 w-4/5 rounded animate-pulse"></div>
|
|
1674
|
-
<div class="v-o-skeleton h-4 w-1/3 rounded animate-pulse"></div>
|
|
1675
|
-
<div class="v-o-skeleton h-4 w-2/5 rounded animate-pulse"></div>
|
|
1676
|
-
<div class="v-o-skeleton h-4 w-3/5 rounded animate-pulse"></div>
|
|
1677
|
-
</div>
|
|
1678
|
-
<div id="__v_o__overlay" class="overflow-auto w-full hidden"></div>
|
|
1843
|
+
|
|
1844
|
+
<!-- ── History depth visual layers ───────────────────────────────────────── -->
|
|
1845
|
+
<div id="__v_o__history_layer_depth"
|
|
1846
|
+
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">
|
|
1847
|
+
<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 shadow-sm"></div>
|
|
1848
|
+
<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>
|
|
1679
1849
|
</div>
|
|
1680
1850
|
</div>
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
|
|
1686
|
-
</svg>
|
|
1687
|
-
Raw stack trace
|
|
1688
|
-
</summary>
|
|
1689
|
-
<div class="px-4 py-3 text-[var(--ono-v-text)] text-xs rounded-b-[var(--ono-v-dialog-radius)] font-mono leading-5 overflow-auto space-y-0.5 max-h-[140px] bg-[var(--ono-v-surface)] border-t border-[var(--ono-v-border)]"></div>
|
|
1690
|
-
</details>
|
|
1691
|
-
<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">
|
|
1692
|
-
<div id="__v_o__history_layer_depth_1" class="relative w-full rounded-b-[var(--ono-v-dialog-radius)] h-5 bg-[var(--ono-v-surface-muted)] inset-shadow-[var(--ono-v-elevation-2)] -mt-3 shadow-md"></div>
|
|
1693
|
-
<div id="__v_o__history_layer_depth_2" class="relative w-[calc(100%-24px)] rounded-b-[var(--ono-v-dialog-radius)] h-5 bg-[var(--ono-v-surface-muted)] inset-shadow-[var(--ono-v-elevation-2)] -mt-3 -z-1"></div>
|
|
1851
|
+
</div>`,"rootElement"),Ks=fe((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"),Or=fe(t=>{const e=[];return Object.entries(t).forEach(([n,o])=>{if(o!=null){const r=n.replaceAll(Vs,"-$1").toLowerCase();e.push(`${r}: ${String(o)};`)}}),e.join(" ")},"cssPropertiesToString"),ea=fe(t=>t?typeof t=="string"?t:Or(t):"","generateStyles"),ta=fe(t=>{if(t?.enabled===!1)return"";const e=t?.position||"bottom-right",n=ea(t?.style),o=Ks(e),r=t?.icon?`<img src="${t.icon}" alt="" class="size-4" />`:"";return`<div id="__v_o__balloon_group" class="fixed z-2147483646 inline-flex font-mono" data-balloon-position="${e}" style="${n} ${o} box-shadow: 0 6px 20px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.07);">
|
|
1852
|
+
<!-- Signal zone — animated pulse dot on darker red strip -->
|
|
1853
|
+
<div class="flex items-center justify-center w-8 shrink-0 pointer-events-none" style="background: color-mix(in srgb, var(--ono-v-red-orange) 55%, black); border-right: 1px solid rgba(255,255,255,0.1);">
|
|
1854
|
+
<span class="v-o-signal-dot"></span>
|
|
1694
1855
|
</div>
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
${
|
|
1699
|
-
<
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
class
|
|
1705
|
-
${
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
${
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
`),o=ra(e),i=ea(e),a=ee((g,f,y)=>{let b=0;for(const[m,k]of g.entries()){if(!k)continue;const T=k.includes(f)||wr(k,f),M=Gr.some(C=>C.test(k));if(T&&M){const{bestMatch:C,bestPattern:R}=br(k);if(C&&R&&(b++,b>y))return{column:yr(C,R),line:m+1}}}return null},"processErrorConstructorLines")(n,e,r);if(a)return a;o&&ee((g,f,y)=>{if(g[0].includes("Failed to resolve import")){const b=g[1];if(!b)return;const m=ve(b);y.unshift(`import.*from ["']${m}["']`,`import.*["']${m}["']`,b)}else if(g[0].includes("is not defined")){const b=g[1];if(!b)return;y.unshift(b,`{${b}}`,`src={${b}}`,`${b}.`,`=${b}`)}else if(g[0].includes("Cannot read properties")){const b=g[1],m=g[2];if(!m)return;y.unshift(m,`${b}.${m}`,`${b}?.${m}`,`${b}[${m}]`)}else{const b=g[1];if(!b)return;const m=ve(f),k=ve(b);y.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=ee((g,f,y)=>{let b=0;for(const[m,k]of g.entries()){if(!k||!wr(k,f))continue;const{bestMatch:T,bestPattern:M}=br(k);if(T&&M&&(b++,b>y))return{column:yr(T,M),line:m+1}}return null},"processTemplateLiteralLines"),s=ee((g,f,y,b)=>{let m=0;for(const[k,T]of g.entries()){if(!T)continue;let M=-1,C=null;for(const R of f){const D=T.indexOf(R);D!==-1&&(M===-1||D<M)&&(M=D,C=R)}if(M!==-1&&C&&(m++,m>b))return{column:p(M,C,T,y),line:k+1}}return null},"processPatternLines"),p=ee((g,f,y,b)=>{if(!b)return g+1;if(b[0].includes("Failed to resolve import")){const m=b[1];if(y.includes(`"${m}"`)||y.includes(`'${m}'`)){const k=y.includes(`"${m}"`)?'"':"'";return y.indexOf(`${k}${m}${k}`)+1}}else if(b[0].includes("is not defined")){const m=b[1];if(m&&f===m)return g+1;if(m&&f.includes(m))return g+f.indexOf(m)+1}else if(b[0].includes("Cannot read properties")){const m=b[2];if(m&&f.includes(m))return g+f.indexOf(m)+1}else if(f.includes("new Error("))return y.indexOf("new Error(")+1;return g+1},"calculatePatternColumn");return l(n,e,r)||s(n,i,o,r)},"findErrorInSourceCode");var oa=Object.defineProperty,Oe=S((t,e)=>oa(t,"name",{value:e,configurable:!0}),"m$4");const ia=1,kr=Oe((t,e)=>{let r=t,n=e;return t>=20?r=Math.max(1,Math.round(t*.5)):t>15?r=Math.max(1,Math.round(t*.6)):t>10?r=Math.max(1,t-8):r=Math.max(1,t-3),e>=10||e>7?n=Math.max(0,e-1):e>5&&(n=Math.max(0,e)),{estimatedColumn:n,estimatedLine:r}},"estimateOriginalPosition"),aa=Oe((t,e,r)=>{try{const n=new bo(t),o=[{column:r,desc:"original",line:e},{column:Math.max(0,r-ia),desc:"offset",line:e},{column:r,desc:"line above",line:e-1},{column:r,desc:"line below",line:e+1},...Array.from({length:5},(i,a)=>({column:Math.max(0,r-2+a),desc:`col ${r-2+a}`,line:e}))];for(const i of o){const a=yo(n,{column:i.column,line:i.line});if(a.source&&a.line!==void 0&&a.column!==void 0&&a.line>0&&a.column>=0)return{column:a.column,line:a.line,source:a.source}}}catch(n){console.warn("Source map processing failed:",n)}return null},"resolveSourceMapPosition"),sa=Oe((t,e)=>e?Wr(t)?la(t,e):e:t,"resolveSourcePath"),la=Oe((t,e)=>{try{const r=new URL(t),n=(r.pathname||"").replace(/^\//,""),o=n.includes("/")?n.slice(0,Math.max(0,n.lastIndexOf("/"))):"";return`${r.origin}/${o?`${o}/`:""}${e}`}catch(r){return console.warn("URL parsing failed for source path resolution:",r),t}},"resolveHttpSourcePath"),xt=Oe(async(t,e,r,n,o,i,a=0)=>{if(i&&e)try{let s=null;if(e.transformResult?.map?.sourcesContent?.[0]?s=e.transformResult.map.sourcesContent[0]:e.transformResult?.code&&(s=e.transformResult.code),!s&&(e.id||e.url)){const p=e.id||e.url;if(p)try{const d=await t.transformRequest(p);d?.map&&"sourcesContent"in d.map&&d.map.sourcesContent?.[0]?s=d.map.sourcesContent[0]:d?.code&&(s=d.code)}catch(d){console.warn("Failed to get fresh source for error search:",d)}}if(!s&&r)try{const p=await import("node:fs/promises");let d=r;if(r.includes("://"))try{d=new URL(r).pathname}catch{const g=r.indexOf("://");g!==-1&&(d=r.slice(g+3))}d.startsWith("/")||(d=`${t.config.root||process.cwd()}/${d}`),s=await p.readFile(d,"utf8")}catch(p){console.warn("Failed to read source file from disk:",p)}if(s){const p=na(s,i,a);if(p)return{originalFileColumn:p.column,originalFileLine:p.line,originalFilePath:r}}}catch(s){console.warn("Source code search failed:",s)}let l=e?.transformResult?.map;if(!l&&(e?.id||e?.url)){const s=e.id||e.url;if(s)try{const p=await t.transformRequest(s);p?.map&&(l=p.map)}catch(p){console.warn("Failed to get fresh source map:",p)}}if(!l){const{estimatedColumn:s,estimatedLine:p}=kr(n,o);return{originalFileColumn:s,originalFileLine:p,originalFilePath:r}}try{const s=aa(l,n,o);if(!s){const{estimatedColumn:d,estimatedLine:g}=kr(n,o);return{originalFileColumn:d,originalFileLine:g,originalFilePath:r}}const p=sa(r,s.source);return{originalFileColumn:s.column,originalFileLine:s.line,originalFilePath:p}}catch(s){return console.warn("Source map resolution failed:",s),{originalFileColumn:o,originalFileLine:n,originalFilePath:r}}},"resolveOriginalLocation");var ca=Object.defineProperty,da=S((t,e)=>ca(t,"name",{value:e,configurable:!0}),"$e"),pa=Object.defineProperty,Ht=da((t,e)=>pa(t,"name",{value:e,configurable:!0}),"W"),ha=Object.defineProperty,_=Ht((t,e)=>ha(t,"name",{value:e,configurable:!0}),"u$1");let xr=_(()=>{var t=(()=>{var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i=_((c,h)=>{for(var u in h)e(c,u,{get:h[u],enumerable:!0})},"ne"),a=_((c,h,u,w)=>{if(h&&typeof h=="object"||typeof h=="function")for(let v of n(h))!o.call(c,v)&&v!==u&&e(c,v,{get:_(()=>h[v],"get"),enumerable:!(w=r(h,v))||w.enumerable});return c},"ae"),l=_(c=>a(e({},"__esModule",{value:!0}),c),"oe"),s={};i(s,{zeptomatch:_(()=>Xt,"zeptomatch")});var p=_(c=>{const h=new Set,u=[c];for(let w=0;w<u.length;w++){const v=u[w];if(h.has(v))continue;h.add(v);const{children:x}=v;if(x?.length)for(let E=0,F=x.length;E<F;E++)u.push(x[E])}return Array.from(h)},"M"),d=_(c=>{let h="";const u=p(c);for(let w=0,v=u.length;w<v;w++){const x=u[w];if(!x.regex)continue;const E=x.regex.flags;if(h||(h=E),h!==E)throw new Error(`Inconsistent RegExp flags used: "${h}" and "${E}"`)}return h},"se"),g=_((c,h,u)=>{const w=u.get(c);if(w!==void 0)return w;const v=c.partial??h;let x="";if(c.regex&&(x+=v?"(?:$|":"",x+=c.regex.source),c.children?.length){const E=y(c.children.map(F=>g(F,h,u)).filter(Boolean));if(E?.length){const F=c.children.some(Pe=>!Pe.regex||!(Pe.partial??h)),Z=E.length>1||v&&(!x.length||F);x+=Z?v?"(?:$|":"(?:":"",x+=E.join("|"),x+=Z?")":""}}return c.regex&&(x+=v?")":""),u.set(c,x),x},"O"),f=_((c,h)=>{const u=new Map,w=p(c);for(let v=w.length-1;v>=0;v--){const x=g(w[v],h,u);if(!(v>0))return x}return""},"ie"),y=_(c=>Array.from(new Set(c)),"ue"),b=_((c,h,u)=>b.compile(c,u).test(h),"R");b.compile=(c,h)=>{const u=h?.partial??!1,w=f(c,u),v=d(c);return new RegExp(`^(?:${w})$`,v)};var m=b,k=_((c,h)=>{const u=m.compile(c,h),w=`${u.source.slice(0,-1)}[\\\\/]?$`,v=u.flags;return new RegExp(w,v)},"le"),T=k,M=_(c=>{const h=c.map(w=>w.source).join("|")||"$^",u=c[0]?.flags;return new RegExp(h,u)},"ve"),C=M,R=_(c=>Array.isArray(c),"j"),D=_(c=>typeof c=="function","_"),X=_(c=>c.length===0,"he"),O=(()=>{const{toString:c}=Function.prototype,h=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return u=>(u.length===0||u.length===1)&&h.test(c.call(u))})(),Q=_(c=>typeof c=="number","de"),N=_(c=>typeof c=="object"&&c!==null,"xe"),st=_(c=>c instanceof RegExp,"me"),lt=(()=>{const c=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return h=>c.test(h.source)})(),ue=(()=>{const c=/^[a-zA-Z0-9_-]+$/;return h=>c.test(h.source)&&!h.flags.includes("i")})(),Ve=_(c=>typeof c=="string","A"),P=_(c=>c===void 0,"f"),A=_(c=>{const h=new Map;return u=>{const w=h.get(u);if(w!==void 0)return w;const v=c(u);return h.set(u,v),v}},"ye"),q=_((c,h,u={})=>{const w={cache:{},input:c,index:0,indexBacktrackMax:0,options:u,output:[]},v=de(h)(w),x=Math.max(w.index,w.indexBacktrackMax);if(v&&w.index===c.length)return w.output;throw new Error(`Failed to parse at index ${x}`)},"I"),$=_((c,h)=>R(c)?ke(c,h):Ve(c)?Ne(c,h):le(c,h),"i"),ke=_((c,h)=>{const u={};for(const w of c){if(w.length!==1)throw new Error(`Invalid character: "${w}"`);const v=w.charCodeAt(0);u[v]=!0}return w=>{const v=w.input;let x=w.index,E=x;for(;E<v.length&&v.charCodeAt(E)in u;)E+=1;if(E>x){if(!P(h)&&!w.options.silent){const F=v.slice(x,E),Z=D(h)?h(F,v,`${x}`):h;P(Z)||w.output.push(Z)}w.index=E}return!0}},"we"),le=_((c,h)=>{if(ue(c))return Ne(c.source,h);{const u=c.source,w=c.flags.replace(/y|$/,"y"),v=new RegExp(u,w);return lt(c)&&D(h)&&!O(h)?Ze(v,h):Ue(v,h)}},"$e"),Ze=_((c,h)=>u=>{const w=u.index,v=u.input;c.lastIndex=w;const x=c.exec(v);if(x){const E=c.lastIndex;if(!u.options.silent){const F=h(...x,v,`${w}`);P(F)||u.output.push(F)}return u.index=E,!0}else return!1},"Ee"),Ue=_((c,h)=>u=>{const w=u.index,v=u.input;if(c.lastIndex=w,c.test(v)){const x=c.lastIndex;if(!P(h)&&!u.options.silent){const E=D(h)?h(v.slice(w,x),v,`${w}`):h;P(E)||u.output.push(E)}return u.index=x,!0}else return!1},"Ce"),Ne=_((c,h)=>u=>{const w=u.index,v=u.input;if(v.startsWith(c,w)){if(!P(h)&&!u.options.silent){const x=D(h)?h(c,v,`${w}`):h;P(x)||u.output.push(x)}return u.index+=c.length,!0}else return!1},"F"),ce=_((c,h,u,w)=>{const v=de(c),x=h>1;return dt(ct(Dt(E=>{let F=0;for(;F<u;){const Z=E.index;if(!v(E)||(F+=1,E.index===Z))break}return F>=h},x),w))},"k"),V=_((c,h)=>ce(c,0,1,h),"L"),G=_((c,h)=>ce(c,0,1/0,h),"$"),ge=_((c,h)=>ce(c,1,1/0,h),"Re"),J=_((c,h)=>{const u=c.map(de);return dt(ct(Dt(w=>{for(let v=0,x=u.length;v<x;v++)if(!u[v](w))return!1;return!0}),h))},"x"),K=_((c,h)=>{const u=c.map(de);return dt(ct(w=>{for(let v=0,x=u.length;v<x;v++)if(u[v](w))return!0;return!1},h))},"p"),Dt=_((c,h=!0,u=!1)=>{const w=de(c);return h?v=>{const x=v.index,E=v.output.length,F=w(v);return!F&&!u&&(v.indexBacktrackMax=Math.max(v.indexBacktrackMax,v.index)),(!F||u)&&(v.index=x,v.output.length!==E&&(v.output.length=E)),F}:w},"q"),ct=_((c,h)=>{const u=de(c);return h?w=>{if(w.options.silent)return u(w);const v=w.output.length;if(u(w)){const x=w.output.splice(v,1/0),E=h(x);return P(E)||w.output.push(E),!0}else return!1}:u},"B"),dt=(()=>{let c=0;return h=>{const u=de(h),w=c+=1;return v=>{var x;if(v.options.memoization===!1)return u(v);const E=v.index,F=(x=v.cache)[w]||(x[w]={indexMax:-1,queue:[]}),Z=F.queue;if(E<=F.indexMax){const Me=F.store||(F.store=new Map);if(Z.length){for(let _e=0,io=Z.length;_e<io;_e+=2){const ao=Z[_e*2],so=Z[_e*2+1];Me.set(ao,so)}Z.length=0}const ne=Me.get(E);if(ne===!1)return!1;if(Q(ne))return v.index=ne,!0;if(ne)return v.index=ne.index,ne.output?.length&&v.output.push(...ne.output),!0}const Pe=v.output.length,oo=u(v);if(F.indexMax=Math.max(F.indexMax,E),oo){const Me=v.index,ne=v.output.length;if(ne>Pe){const _e=v.output.slice(Pe,ne);Z.push(E,{index:Me,output:_e})}else Z.push(E,Me);return!0}else return Z.push(E,!1),!1}}})(),Bt=_(c=>{let h;return u=>(h||(h=de(c())),h(u))},"G"),de=A(c=>{if(D(c))return X(c)?Bt(c):c;if(Ve(c)||st(c))return $(c);if(R(c))return J(c);if(N(c))return K(Object.values(c));throw new Error("Invalid rule")}),me=_(c=>c,"d"),tn=_(c=>typeof c=="string","ke"),rn=_(c=>{const h=new WeakMap,u=new WeakMap;return(w,v)=>{const x=v?.partial?u:h,E=x.get(w);if(E!==void 0)return E;const F=c(w,v);return x.set(w,F),F}},"Be"),nn=_(c=>{const h={},u={};return(w,v)=>{const x=v?.partial?u:h;return x[w]??(x[w]=c(w,v))}},"Pe"),on=$(/\\./,me),an=$(/./,me),sn=$(/\*\*\*+/,"*"),ln=$(/([^/{[(!])\*\*/,(c,h)=>`${h}*`),cn=$(/(^|.)\*\*(?=[^*/)\]}])/,(c,h)=>`${h}*`),dn=G(K([on,sn,ln,cn,an])),pn=dn,hn=_(c=>q(c,pn,{memoization:!1}).join(""),"Ie"),un=hn,jt="abcdefghijklmnopqrstuvwxyz",gn=_(c=>{let h="";for(;c>0;){const u=(c-1)%26;h=jt[u]+h,c=Math.floor((c-1)/26)}return h},"Le"),Ot=_(c=>{let h=0;for(let u=0,w=c.length;u<w;u++)h=h*26+jt.indexOf(c[u])+1;return h},"V"),pt=_((c,h)=>{if(h<c)return pt(h,c);const u=[];for(;c<=h;)u.push(c++);return u},"b"),mn=_((c,h,u)=>pt(c,h).map(w=>String(w).padStart(u,"0")),"qe"),qt=_((c,h)=>pt(Ot(c),Ot(h)).map(gn),"W"),B=_(c=>({partial:!1,regex:new RegExp(c,"s"),children:[]}),"c"),Te=_(c=>({children:c}),"y"),xe=(()=>{const c=_((h,u,w)=>{if(w.has(h))return;w.add(h);const{children:v}=h;if(!v.length)v.push(u);else for(let x=0,E=v.length;x<E;x++)c(v[x],u,w)},"e");return h=>{if(!h.length)return Te([]);for(let u=h.length-1;u>=1;u--){const w=new Set,v=h[u-1],x=h[u];c(v,x,w)}return h[0]}})(),pe=_(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),fn=$(/\\./,B),vn=$(/[$.*+?^(){}[\]\|]/,c=>B(`\\${c}`)),wn=$(/[\\\/]/,pe),bn=$(/[^$.*+?^(){}[\]\|\\\/]+/,B),yn=$(/^(?:!!)*!(.*)$/,(c,h)=>B(`(?!^${Xt.compile(h).source}$).*?`)),kn=$(/^(!!)+/),xn=K([yn,kn]),_n=$(/\/(\*\*\/)+/,()=>Te([xe([pe(),B(".+?"),pe()]),pe()])),$n=$(/^(\*\*\/)+/,()=>Te([B("^"),xe([B(".*?"),pe()])])),En=$(/\/(\*\*)$/,()=>Te([xe([pe(),B(".*?")]),B("$")])),Sn=$(/\*\*/,()=>B(".*?")),Vt=K([_n,$n,En,Sn]),Cn=$(/\*\/(?!\*\*\/|\*$)/,()=>xe([B("[^\\\\/]*?"),pe()])),Ln=$(/\*/,()=>B("[^\\\\/]*")),Zt=K([Cn,Ln]),Ut=$("?",()=>B("[^\\\\/]")),Tn=$("[",me),Pn=$("]",me),Mn=$(/[!^]/,"^\\\\/"),Rn=$(/[a-z]-[a-z]|[0-9]-[0-9]/i,me),Fn=$(/\\./,me),zn=$(/[$.*+?^(){}[\|]/,c=>`\\${c}`),Hn=$(/[\\\/]/,"\\\\/"),An=$(/[^$.*+?^(){}[\]\|\\\/]+/,me),In=K([Fn,zn,Hn,Rn,An]),Nt=J([Tn,V(Mn),G(In),Pn],c=>B(c.join(""))),Dn=$("{","(?:"),Bn=$("}",")"),jn=$(/(\d+)\.\.(\d+)/,(c,h,u)=>mn(+h,+u,Math.min(h.length,u.length)).join("|")),On=$(/([a-z]+)\.\.([a-z]+)/,(c,h,u)=>qt(h,u).join("|")),qn=$(/([A-Z]+)\.\.([A-Z]+)/,(c,h,u)=>qt(h.toLowerCase(),u.toLowerCase()).join("|").toUpperCase()),Vn=K([jn,On,qn]),Wt=J([Dn,Vn,Bn],c=>B(c.join(""))),Zn=$("{"),Un=$("}"),Nn=$(","),Wn=$(/\\./,B),Gn=$(/[$.*+?^(){[\]\|]/,c=>B(`\\${c}`)),Yn=$(/[\\\/]/,pe),Xn=$(/[^$.*+?^(){}[\]\|\\\/,]+/,B),Qn=Bt(()=>Yt),Jn=$("",()=>B("(?:)")),Kn=ge(K([Vt,Zt,Ut,Nt,Wt,Qn,Wn,Gn,Yn,Xn]),xe),Gt=K([Kn,Jn]),Yt=J([Zn,V(J([Gt,G(J([Nn,Gt]))])),Un],Te),eo=G(K([xn,Vt,Zt,Ut,Nt,Wt,Yt,fn,vn,wn,bn]),xe),to=eo,ro=_(c=>q(c,to,{memoization:!1})[0],"kr"),no=ro,ht=_((c,h,u)=>ht.compile(c,u).test(h),"N");ht.compile=(()=>{const c=nn((u,w)=>T(no(un(u)),w)),h=rn((u,w)=>C(u.map(v=>c(v,w))));return(u,w)=>tn(u)?c(u,w):h(u,w)})();var Xt=ht;return l(s)})();return t.default||t},"_lazyMatch"),ut;const ua=_((t,e)=>(ut||(ut=xr(),xr=null),ut(t,e)),"default");var ga=Object.defineProperty,ma=Ht((t,e)=>ga(t,"name",{value:e,configurable:!0}),"t$1");const fa=/^[A-Z]:\//i,ye=ma((t="")=>t&&t.replaceAll("\\","/").replace(fa,e=>e.toUpperCase()),"normalizeWindowsPath");var va=Object.defineProperty,Y=Ht((t,e)=>va(t,"name",{value:e,configurable:!0}),"r");const wa=/^[/\\]{2}/,ba=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Yr=/^[A-Z]:$/i,_r=/^\/([A-Z]:)?$/i,ya=/.(\.[^./]+)$/,ka=/^[/\\]|^[a-z]:[/\\]/i,xa=Y(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Xr=Y((t,e)=>{let r="",n=0,o=-1,i=0,a;for(let l=0;l<=t.length;++l){if(l<t.length)a=t[l];else{if(a==="/")break;a="/"}if(a==="/"){if(!(o===l-1||i===1))if(i===2){if(r.length<2||n!==2||!r.endsWith(".")||r.at(-2)!=="."){if(r.length>2){const s=r.lastIndexOf("/");s===-1?(r="",n=0):(r=r.slice(0,s),n=r.length-1-r.lastIndexOf("/")),o=l,i=0;continue}else if(r.length>0){r="",n=0,o=l,i=0;continue}}e&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+=`/${t.slice(o+1,l)}`:r=t.slice(o+1,l),n=l-o-1;o=l,i=0}else a==="."&&i!==-1?++i:i=-1}return r},"normalizeString"),Be=Y(t=>ba.test(t),"isAbsolute"),Je=Y(function(t){if(t.length===0)return".";t=ye(t);const e=wa.exec(t),r=Be(t),n=t.at(-1)==="/";return t=Xr(t,!r),t.length===0?r?"/":n?"./":".":(n&&(t+="/"),Yr.test(t)&&(t+="/"),e?r?`//${t}`:`//./${t}`:r&&!Be(t)?`/${t}`:t)},"normalize");Y((...t)=>{let e="";for(const r of t)if(r)if(e.length>0){const n=e[e.length-1]==="/",o=r[0]==="/";n&&o?e+=r.slice(1):e+=n||o?r:`/${r}`}else e+=r;return Je(e)},"join");const Ke=Y(function(...t){t=t.map(n=>ye(n));let e="",r=!1;for(let n=t.length-1;n>=-1&&!r;n--){const o=n>=0?t[n]:xa();!o||o.length===0||(e=`${o}/${e}`,r=Be(o))}return e=Xr(e,!r),r&&!Be(e)?`/${e}`:e.length>0?e:"."},"resolve");Y(function(t){return ye(t)},"toNamespacedPath");const _a=Y(function(t){return ya.exec(ye(t))?.[1]??""},"extname");Y(function(t,e){const r=Ke(t).replace(_r,"$1").split("/"),n=Ke(e).replace(_r,"$1").split("/");if(n[0][1]===":"&&r[0][1]===":"&&r[0]!==n[0])return n.join("/");const o=[...r];for(const i of o){if(n[0]!==i)break;r.shift(),n.shift()}return[...r.map(()=>".."),...n].join("/")},"relative");const $a=Y(t=>{const e=ye(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Yr.test(e[0])&&(e[0]+="/"),e.join("/")||(Be(t)?"/":".")},"dirname");Y(function(t){const e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return ye(t.root?Ke(...e):e.join("/"))},"format");const Ea=Y((t,e)=>{const r=ye(t).split("/").pop();return e&&r.endsWith(e)?r.slice(0,-e.length):r},"basename");Y(function(t){const e=ka.exec(t)?.[0]?.replaceAll("\\","/")??"",r=Ea(t),n=_a(r);return{base:r,dir:$a(t),ext:n,name:r.slice(0,r.length-n.length),root:e}},"parse");Y((t,e)=>ua(e,Je(t)),"matchesGlob");var Sa=Object.defineProperty,re=S((t,e)=>Sa(t,"name",{value:e,configurable:!0}),"e$1");const _t="/",$r=":",Ca="at ",La=/https?:\/\/[^\s)]+/g,Ta=/file:\/\//g,Qr=/\/@fs\//g,Pa=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),Ma=new Set(["<anonymous>","<unknown>","native"]),Ra=re(t=>{const e=t.trim();return!e.startsWith(Ca)||!([...Pa].some(r=>e.includes(r))||[...Ma].some(r=>e.includes(r)))?!1:/\([^)]*:\d+:\d+\)/.test(e)||/\([^)]*:\d+\)/.test(e)||/[^(\s][^:]*:\d+:\d+/.test(e)||/[^(\s][^:]*:\d+/.test(e)||e.includes("native")||e.includes("<unknown>")},"isValidStackFrame"),Fa=re(t=>(t=t.replaceAll(Qr,_t),t=t.replaceAll(Ta,""),t.includes("<unknown>")?t.trim()||"":t.trim()&&!Ra(t)?"":t),"cleanStackLine"),za=re((t,e)=>{try{const{baseUrl:r,col:n,line:o}=Ha(t),i=Aa(r,e);return Ia(i,o,n)}catch(r){return console.warn("Failed to absolutize URL:",t,r),t}},"absolutizeUrl"),Ha=re(t=>{const e=t.match(/:(\d+)(?::(\d+))?$/),r=e?.[1],n=e?.[2];return{baseUrl:e?t.slice(0,-e[0].length):t,col:n,line:r}},"parseUrlWithLocation"),Aa=re((t,e)=>{const r=new URL(t);let n=decodeURIComponent(r.pathname||"");return n=n.replaceAll(Qr,_t),Ke(e,n.startsWith(_t)?n.slice(1):n)},"urlToAbsolutePath"),Ia=re((t,e,r)=>{if(!e)return t;const n=r?`${$r}${r}`:"";return`${t}${$r}${e}${n}`},"formatAbsolutePath"),At=re(t=>t&&t.replaceAll(`\r
|
|
1856
|
+
<!-- Toggle button: count + label -->
|
|
1857
|
+
<button type="button" id="__v_o__balloon" title="Toggle error overlay" aria-label="Toggle error overlay"
|
|
1858
|
+
class="flex items-center gap-1.5 px-2.5 py-2 text-white cursor-pointer hover:bg-white/10 active:bg-white/15 transition-colors" style="background: var(--ono-v-red-orange);">
|
|
1859
|
+
${r?`<img src="${r}" alt="" class="size-3.5 opacity-90 shrink-0" />`:""}
|
|
1860
|
+
<span id="__v_o__balloon_count" style="--num: 0"></span>
|
|
1861
|
+
<span id="__v_o__balloon_text" class="text-xs font-bold uppercase tracking-widest leading-none" style="color: rgba(255,255,255,0.65)">Errors</span>
|
|
1862
|
+
</button>
|
|
1863
|
+
<!-- Dismiss button -->
|
|
1864
|
+
<button type="button" id="__v_o__balloon_close" title="Dismiss balloon" aria-label="Dismiss balloon"
|
|
1865
|
+
class="flex items-center justify-center w-7 shrink-0 text-white cursor-pointer hover:bg-white/15 active:bg-white/20 transition-colors" style="background: var(--ono-v-red-orange); border-left: 1px solid rgba(255,255,255,0.1);">
|
|
1866
|
+
<span class="dui size-3" style="-webkit-mask-image: url('${kt}'); mask-image: url('${kt}')"></span>
|
|
1867
|
+
</button>
|
|
1868
|
+
</div>`},"generateBalloonButton"),na=fe(t=>t?typeof t=="string"?t:Or(t):"","customCSSToString"),ra=fe((t,e,n)=>{const o=Qs(),r=na(n),i=r?`<style>${r}</style>`:"";return`<style>${Gs}</style>
|
|
1869
|
+
${i}
|
|
1870
|
+
${Js("__v_o__root",o)}
|
|
1871
|
+
|
|
1872
|
+
${t?ta(e):""}`},"generateOverlayTemplate"),oa=fe((t,e,n,o)=>{const r=ra(e,n,o),i=`const overlayTemplate = ${JSON.stringify(r)};`;let s=t.replace(Zs,`${i}
|
|
1873
|
+
${rr}
|
|
1874
|
+
class ViteErrorOverlay`);return s=s.replace(Ys,`${i}
|
|
1875
|
+
${rr}
|
|
1876
|
+
var ViteErrorOverlay = `),s=`${s}
|
|
1877
|
+
|
|
1878
|
+
${Xs};`,s},"patchOverlay");var ia=Object.defineProperty,W=b((t,e)=>ia(t,"name",{value:e,configurable:!0}),"n$2");const sa=/Failed to resolve import ["']([^"']+)["']/,aa=/Cannot resolve module ["']([^"']+)["']/,la=/Cannot resolve ["'](\.\.?\/[^"']*)["']/,ca=4,ir=1e3,da=5,ua=.5,pa=[".js",".ts",".jsx",".tsx",".mjs",".cjs"],ha=[".css",".scss",".sass",".less"],Hr=[".svg",".png",".jpg",".jpeg",".gif",".webp",".ico"],ga=new Set([...Hr,...pa,...ha]),Q=W((t,...e)=>{const n=t.toLowerCase();return e.some(o=>n.includes(o.toLowerCase()))},"has"),ma=W((t,e)=>{const n=se.relative(t,e);return n.startsWith(".")?n:`./${n}`},"getRelativePath"),fa=W(t=>t===0?"":t===1?" (in parent directory)":t===2?" (in grandparent directory)":` (${t} directories away)`,"getPathContext"),va=W((t,e)=>{try{const n=se.relative(t,e).split(se.sep).filter(r=>r&&r!==".");let o=0;for(const r of n)o+=r===".."?2:1;return o}catch{return 10}},"calculatePathDistance"),wa=W((t,e,n,o)=>{if(e&&o===e){const i=mt(t,n);return i<=Math.max(3,Math.floor(t.length*ua))?10-i:0}if(!e){const i=mt(t,n);return i===0?9:i<=Math.max(2,Math.floor(t.length*.3))&&ga.has(o)?7-i:0}const r=mt(t,n);return r<=Math.max(2,Math.floor(t.length*.4))?5-r:0},"calculateRelevanceScore"),ba=W((t,e,n)=>{const o=[],r=W((i,s=0)=>{if(!(s>ca||o.length>ir))try{const l=Ji.readdirSync(i,{withFileTypes:!0});for(const a of l){if(o.length>ir)break;const c=se.join(i,a.name);if(a.isDirectory()&&!a.name.startsWith(".")&&a.name!=="node_modules")r(c,s+1);else if(a.isFile()){const d=se.extname(a.name),h=se.basename(a.name,d),g=wa(e,n,h,d);g>0&&o.push({baseName:h,extension:d,fullPath:c,path:c,relevanceScore:g})}}}catch{}},"walk");return r(t),o},"collectFileCandidates"),sr=W((t,e,n)=>{const o=se.basename(t),r=se.extname(o),i=se.basename(o,r),s=se.dirname(e),l=ba(n,i,r).map(g=>{const f=mt(i,g.baseName),v=va(s,se.dirname(g.fullPath)),m=g.relevanceScore*.7+v*.2+f*.1;return{...g,nameDistance:f,pathDistance:v,score:m}});l.sort((g,f)=>g.score-f.score);const a=[],c=l.slice(0,8);let d=!1;for(const g of c){const f=ma(s,g.fullPath);if(!a.includes(f)){const v=fa(g.pathDistance);a.push(f+v);const m=g.fullPath.replaceAll("\\","/").split("/"),k=m.indexOf("public");k!==-1&&k<m.length-1&&(d=!0)}}let h=`<ul>${[...new Set(a)].slice(0,da).map(g=>`<li>\`${g}\`</li>`).join(`
|
|
1879
|
+
`)}</ul>`;if(d){const g=o;[...Hr].some(f=>g.includes(f))&&(h+=`Files in the \`public\` folder should be accessed via absolute URLs like \`/${g}\`.`)}return h},"findSimilarFiles"),ya=[{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(`
|
|
1880
|
+
`),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&&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(`
|
|
1881
|
+
`)},test:W(t=>Q(t,"hydration failed","did not match","expected server html","text content does not match"),"test")}],xa=W(t=>({async handle(e,n){const{file:o,language:r}=n,i=e.message??"";if(Q(i,"Failed to resolve import","Cannot resolve module")){const s=i.match(sa),l=i.match(aa),a=s?.[1]||l?.[1];if(a&&o){const c=sr(a,o,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(r)||Q(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(r==="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(i,"Cannot resolve")&&(r==="typescript"||r==="javascript")){const s=i.match(la);if(s){const l=s[1];if(l&&o){const a=sr(l,o,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 ya)if(s.test(i,o))return s.solution},name:"vite-solution-finder",priority:20}),"createViteSolutionFinder");var ka=Object.defineProperty,ve=b((t,e)=>ka(t,"name",{value:e,configurable:!0}),"o$4");const _a=/\.mdx$/i,$a=1,Ea=/syntax error/i,Sa=/Failed to load url\s+(.*?)\s+\(resolved id:/i,Ca=/glob:\s*"(.+)"\s*\(/i,La=ve(t=>t instanceof Error?t:new Error(String(t)),"createEnhancedError"),Ta=ve((t,e)=>{try{t.ssrFixStacktrace(e)}catch(n){console.warn("[visulima:vite-overlay:server] SSR stack trace fix failed:",n)}},"safeSsrFixStacktrace"),Pa=ve(t=>{try{const e=Ne(t,{frameLimit:$a})?.[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"),Ra=ve(async t=>{try{return await $r(t,"utf8")}catch(e){console.warn(`[visulima:vite-overlay:server] Failed to read file ${t}:`,e);return}},"safeReadFile"),Fa=ve((t,e)=>{const n=t.id||t.loc?.file||e;n&&_a.test(String(n))&&Ea.test(t.message)&&(t.hint=t.hint||"MDX detected without an appropriate integration. Install and configure the MDX plugin for Vite/your framework.")},"enhanceMdxError"),qr=ve((t,e)=>{const n=t.split(`
|
|
1882
|
+
`),o=n.findIndex(i=>i.includes(e));if(o===-1)return;const r=n[o]||"";return{column:Math.max(0,r.indexOf(e))+1,line:o+1}},"findImportLocation"),za=ve(async(t,e,n)=>{const o=Sa.exec(t.message)?.[1];if(o&&(t.title="Failed to Load Module (SSR)",t.name="FailedToLoadModuleSSR",t.message=`Failed to load module: ${o}`,t.hint="Verify import path, ensure a plugin handles this file type during SSR, and check for typos or missing files.",n&&e)){const r=qr(n,o);r&&(t.loc={...r,file:e})}},"enhanceFailedLoadError"),Da=ve(async(t,e,n)=>{const o=Ca.exec(t.message)?.[1];if(o&&(t.name="InvalidGlob",t.title="Invalid Glob Pattern",t.message=`Invalid glob pattern: ${o}`,t.hint=t.hint||"Ensure your glob follows the expected syntax and matches existing files. Avoid unintended special characters.",n&&e)){const r=qr(n,o);r&&(t.loc={...r,file:e})}},"enhanceGlobError"),Ma=ve(async(t,e)=>{const n=La(t);Ta(e,n);const o=Pa(n),r=o?await Ra(o):void 0;return await za(n,o,r),Fa(n,o),await Da(n,o,r),n},"enhanceViteSsrError");var Aa=Object.defineProperty,G=b((t,e)=>Aa(t,"name",{value:e,configurable:!0}),"t$1");const Nr={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=Nr[t.toLowerCase()];if(e)return await e()},"getLanguageImport");var Ia=Object.defineProperty,Ge=b((t,e)=>Ia(t,"name",{value:e,configurable:!0}),"a$7");let ft,vt;const Ba=Ge(async()=>{const[t,e]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:n}=t,{createJavaScriptRegexEngine:o}=e,r=await n({themes:[import("./packem_chunks/github-dark-default.js"),import("./packem_chunks/github-light.js")],langs:[],engine:o()}),i=r;return vt=Ge(()=>{try{r?.dispose?.()}catch{}ft=void 0},"disposeFn"),i},"createSingletonHighlighter"),ja=Ge(async(t,e)=>{if(e==="text")return;const n=e.toLowerCase();if(!(t.getLoadedLanguages?.()??t.getLanguages?.()??[]).includes(n)){const o=Nr[n];o&&await t.loadLanguage?.(await o())}},"ensureLanguageLoaded"),Ur=Ge(async(t=[])=>{ft||(ft=Ba());const e=await ft,n=[];for(const o of t)if(typeof o=="string")n.push(o.toLowerCase());else{const r=o.name;r&&n.push(r.toLowerCase())}return await Promise.all(n.map(o=>ja(e,o))),e},"getHighlighter");Ge(async()=>{try{vt&&(vt(),vt=void 0)}catch{}},"disposeHighlighter");const ar=Ge((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,n){const o=t.find(r=>r.line===n);return o?.classes&&this.addClassToHast(e,o.classes),e}}),"transformerCompactLineOptions");var Oa=Object.defineProperty,Gr=b((t,e)=>Oa(t,"name",{value:e,configurable:!0}),"s$2");const Ha=Gr(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"),qa=Gr(t=>t.map((e,n)=>{const{location:o,pluginName:r,text:i}=e,s={message:i||`ESBuild error #${n+1}`,name:e.name||"Error",stack:e.stack||""};return o&&(s.file=o.file,s.line=o.line,s.column=o.column),r&&(s.plugin=r),s}),"processESBuildErrors");var Na=Object.defineProperty,Wr=b((t,e)=>Na(t,"name",{value:e,configurable:!0}),"c$7");const Ua=/^\/@fs\//,Ga=/^[./]*/,Wa=Wr((t,e)=>{for(const[n,o]of t.moduleGraph.idToModuleMap){if(!o)continue;const r=o,i=[String(r.file||"").replaceAll("\\","/"),String(n||"").replaceAll("\\","/"),String(r.url||"").replaceAll("\\","/")];for(const s of e)if(i.some(l=>l===s||l.includes(s)||s.includes(l)))return o}},"findBestModuleMatch"),it=Wr((t,e)=>{const n=[...e,...e.map(i=>i.replace(Ua,"")),...e.map(i=>i.replace(Ga,""))];let o,r=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>r&&(o=s,r=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>r&&(o=l,r=d),c))return l}}catch{}return o||Wa(t,e)||void 0},"findModuleForPath");var Va=Object.defineProperty,pn=b((t,e)=>Va(t,"name",{value:e,configurable:!0}),"r$1");const Za=/^https?:\/\//,Ya=/^\/@fs\//,Xa=pn(t=>{const e=new URL(t),{pathname:n}=e,o=e.search||"",r=[n+o,n,n.replace(Ya,""),decodeURIComponent(n+o),decodeURIComponent(n)];return[...new Set(r)].filter(Boolean)},"generateUrlCandidates"),Vr=pn(t=>Za.test(t),"isHttpUrl"),Se=pn(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 Qa=Object.defineProperty,ke=b((t,e)=>Qa(t,"name",{value:e,configurable:!0}),"o$2");const Zr=/\n/g,Ja=/\s+/g,Ka=/[A-Z_$][\w$]{2,}/i,el=/\s/,tl=ke((t,e)=>t.split(Zr)[e-1]??"","getLine"),lr=ke(t=>t.replaceAll(Ja,""),"removeWhitespace"),nl=ke((t,e)=>{if(e<=0||e>t.length)return"";const n=Math.max(0,e-1),o=t.slice(n,n+64),r=Ka.exec(o);if(r?.[0])return r[0];let i=o.trim();return i.length<4&&(i=t.slice(Math.max(0,n-16),n+16).trim()),i},"extractCandidateToken"),rl=ke((t,e)=>{let n=0;for(const[o,r]of[...t].entries())if(typeof r=="string"){if(n===e)return o+1;el.test(r)||(n+=1)}return-1},"mapNormalizedToOriginalPosition"),ol=ke((t,e)=>{if(!(!t||t.length<3))for(const[n,o]of e.entries()){if(!o)continue;const r=o.indexOf(t);if(r!==-1)return{column:r+1,line:n+1}}},"tryTokenBasedSearch"),il=ke((t,e)=>{if(t)for(const[n,o]of e.entries()){if(!o)continue;const r=o.indexOf(t);if(r!==-1)return{column:r+1,line:n+1}}},"tryLineSubstringSearch"),sl=ke((t,e)=>{if(!t)return;const n=lr(t);if(n)for(const[o,r]of e.entries()){if(!r)continue;const i=lr(r).indexOf(n);if(i!==-1){const s=rl(r,i);if(s!==-1)return{column:s,line:o+1}}}},"tryWhitespaceInsensitiveSearch"),al=ke((t,e,n,o)=>{const r=tl(t,e);if(!r)return;const i=o.split(Zr),s=nl(r,n);return ol(s,i)||il(r.trim(),i)||sl(r.trim(),i)},"realignOriginalPosition");var ll=Object.defineProperty,ee=b((t,e)=>ll(t,"name",{value:e,configurable:!0}),"C$6"),We=44,Yr=59,cr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xr=new Uint8Array(64),Qr=new Uint8Array(128);for(let t=0;t<cr.length;t++){const e=cr.charCodeAt(t);Xr[t]=e,Qr[e]=t}function N(t,e){let n=0,o=0,r=0;do{const s=t.next();r=Qr[s],n|=(r&31)<<o,o+=5}while(r&32);const i=n&1;return n>>>=1,i&&(n=-2147483648|-n),e+n}b(N,"h$1");ee(N,"decodeInteger");function B(t,e,n){let o=e-n;o=o<0?-o<<1|1:o<<1;do{let r=o&31;o>>>=5,o>0&&(r|=32),t.write(Xr[r])}while(o>0);return e}b(B,"i$4");ee(B,"encodeInteger");function me(t,e){return t.pos>=e?!1:t.peek()!==We}b(me,"S$2");ee(me,"hasMoreVlq");var dr=1024*16,ur=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}},hn=class{static{b(this,"T")}static{ee(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+=ur.decode(n),this.pos=0)}flush(){const{buffer:e,out:n,pos:o}=this;return o>0?n+ur.decode(e.subarray(0,o)):n}},gn=class{static{b(this,"w")}static{ee(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:o}=this,r=n.indexOf(e,o);return r===-1?n.length:r}},Jr=[];function cl(t){const{length:e}=t,n=new gn(t),o=[],r=[];let i=0;for(;n.pos<e;n.pos++){i=N(n,i);const s=N(n,0);if(!me(n,e)){const d=r.pop();d[2]=i,d[3]=s;continue}const l=N(n,0),a=N(n,0)&1?[i,s,0,0,l,N(n,0)]:[i,s,0,0,l];let c=Jr;if(me(n,e)){c=[];do{const d=N(n,0);c.push(d)}while(me(n,e))}a.vars=c,o.push(a),r.push(a)}return o}b(cl,"z");ee(cl,"decodeOriginalScopes");function dl(t){const e=new hn;for(let n=0;n<t.length;)n=mn(t,n,e,[0]);return e.flush()}b(dl,"F$4");ee(dl,"encodeOriginalScopes");function mn(t,e,n,o){const r=t[e],{0:i,1:s,2:l,3:a,4:c,vars:d}=r;e>0&&n.write(We),o[0]=B(n,i,o[0]),B(n,s,0),B(n,c,0);const h=r.length===6?1:0;B(n,h,0),r.length===6&&B(n,r[5],0);for(const g of d)B(n,g,0);for(e++;e<t.length;){const g=t[e],{0:f,1:v}=g;if(f>l||f===l&&v>=a)break;e=mn(t,e,n,o)}return n.write(We),o[0]=B(n,l,o[0]),B(n,a,0),e}b(mn,"P$4");ee(mn,"_encodeOriginalScopes");function ul(t){const{length:e}=t,n=new gn(t),o=[],r=[];let i=0,s=0,l=0,a=0,c=0,d=0,h=0,g=0;do{const f=n.indexOf(";");let v=0;for(;n.pos<f;n.pos++){if(v=N(n,v),!me(n,f)){const A=r.pop();A[2]=i,A[3]=v;continue}const m=N(n,0),k=m&1,L=m&2,T=m&4;let $=null,R=Jr,D;if(k){const A=N(n,s);l=N(n,s===A?l:0),s=A,D=[i,v,0,0,A,l]}else D=[i,v,0,0];if(D.isScope=!!T,L){const A=a,j=c;a=N(n,a);const U=A===a;c=N(n,U?c:0),d=N(n,U&&j===c?d:0),$=[a,c,d]}if(D.callsite=$,me(n,f)){R=[];do{h=i,g=v;const A=N(n,0);let j;if(A<-1){j=[[N(n,0)]];for(let U=-1;U>A;U--){const O=h;h=N(n,h),g=N(n,h===O?g:0);const ce=N(n,0);j.push([ce,h,g])}}else j=[[A]];R.push(j)}while(me(n,f))}D.bindings=R,o.push(D),r.push(D)}i++,n.pos=f+1}while(n.pos<e);return o}b(ul,"H$2");ee(ul,"decodeGeneratedRanges");function pl(t){if(t.length===0)return"";const e=new hn;for(let n=0;n<t.length;)n=fn(t,n,e,[0,0,0,0,0,0,0]);return e.flush()}b(pl,"J$1");ee(pl,"encodeGeneratedRanges");function fn(t,e,n,o){const r=t[e],{0:i,1:s,2:l,3:a,isScope:c,callsite:d,bindings:h}=r;o[0]<i?(Zt(n,o[0],i),o[0]=i,o[1]=0):e>0&&n.write(We),o[1]=B(n,r[1],o[1]);const g=(r.length===6?1:0)|(d?2:0)|(c?4:0);if(B(n,g,0),r.length===6){const{4:f,5:v}=r;f!==o[2]&&(o[3]=0),o[2]=B(n,f,o[2]),o[3]=B(n,v,o[3])}if(d){const{0:f,1:v,2:m}=r.callsite;f!==o[4]?(o[5]=0,o[6]=0):v!==o[5]&&(o[6]=0),o[4]=B(n,f,o[4]),o[5]=B(n,v,o[5]),o[6]=B(n,m,o[6])}if(h)for(const f of h){f.length>1&&B(n,-f.length,0);const v=f[0][0];B(n,v,0);let m=i,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>l||v===l&&m>=a)break;e=fn(t,e,n,o)}return o[0]<l?(Zt(n,o[0],l),o[0]=l,o[1]=0):n.write(We),o[1]=B(n,a,o[1]),e}b(fn,"V$1");ee(fn,"_encodeGeneratedRanges");function Zt(t,e,n){do t.write(Yr);while(++e<n)}b(Zt,"U$2");ee(Zt,"catchupLine");function Kr(t){const{length:e}=t,n=new gn(t),o=[];let r=0,i=0,s=0,l=0,a=0;do{const c=n.indexOf(";"),d=[];let h=!0,g=0;for(r=0;n.pos<c;){let f;r=N(n,r),r<g&&(h=!1),g=r,me(n,c)?(i=N(n,i),s=N(n,s),l=N(n,l),me(n,c)?(a=N(n,a),f=[r,i,s,l,a]):f=[r,i,s,l]):f=[r],d.push(f),n.pos++}h||eo(d),o.push(d),n.pos=c+1}while(n.pos<=e);return o}b(Kr,"K$1");ee(Kr,"decode");function eo(t){t.sort(to)}b(eo,"Q$4");ee(eo,"sort");function to(t,e){return t[0]-e[0]}b(to,"X$3");ee(to,"sortComparator");function no(t){const e=new hn;let n=0,o=0,r=0,i=0;for(let s=0;s<t.length;s++){const l=t[s];if(s>0&&e.write(Yr),l.length===0)continue;let a=0;for(let c=0;c<l.length;c++){const d=l[c];c>0&&e.write(We),a=B(e,d[0],a),d.length!==1&&(n=B(e,d[1],n),o=B(e,d[2],o),r=B(e,d[3],r),d.length!==4&&(i=B(e,d[4],i)))}}return e.flush()}b(no,"Z$3");ee(no,"encode");var hl=Object.defineProperty,re=b((t,e)=>hl(t,"name",{value:e,configurable:!0}),"c$5");const gl=/^[\w+.-]+:\/\//,ml=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,fl=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function ro(t){return gl.test(t)}b(ro,"R$4");re(ro,"isAbsoluteUrl");function oo(t){return t.startsWith("//")}b(oo,"q$2");re(oo,"isSchemeRelativeUrl");function vn(t){return t.startsWith("/")}b(vn,"m$5");re(vn,"isAbsolutePath");function io(t){return t.startsWith("file:")}b(io,"v$4");re(io,"isFileUrl");function Yt(t){return/^[.?#]/.test(t)}b(Yt,"u$1");re(Yt,"isRelative");function rt(t){const e=ml.exec(t);return wn(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}b(rt,"f$6");re(rt,"parseAbsoluteUrl");function so(t){const e=fl.exec(t),n=e[2];return wn("file:","",e[1]||"","",vn(n)?n:"/"+n,e[3]||"",e[4]||"")}b(so,"w$4");re(so,"parseFileUrl");function wn(t,e,n,o,r,i,s){return{scheme:t,user:e,host:n,port:o,path:r,query:i,hash:s,type:7}}b(wn,"y$4");re(wn,"makeUrl");function Xt(t){if(oo(t)){const n=rt("http:"+t);return n.scheme="",n.type=6,n}if(vn(t)){const n=rt("http://foo.com"+t);return n.scheme="",n.host="",n.type=5,n}if(io(t))return so(t);if(ro(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(Xt,"p$2");re(Xt,"parseUrl");function ao(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}b(ao,"P$3");re(ao,"stripPathFilename");function lo(t,e){bn(e,e.type),t.path==="/"?t.path=e.path:t.path=ao(e.path)+t.path}b(lo,"A$2");re(lo,"mergePaths");function bn(t,e){const n=e<=4,o=t.path.split("/");let r=1,i=0,s=!1;for(let a=1;a<o.length;a++){const c=o[a];if(!c){s=!0;continue}if(s=!1,c!=="."){if(c===".."){i?(s=!0,i--,r--):n&&(o[r++]=c);continue}o[r++]=c,i++}}let l="";for(let a=1;a<r;a++)l+="/"+o[a];(!l||s&&!l.endsWith("/.."))&&(l+="/"),t.path=l}b(bn,"d$5");re(bn,"normalizePath");function co(t,e){if(!t&&!e)return"";const n=Xt(t);let o=n.type;if(e&&o!==7){const i=Xt(e),s=i.type;switch(o){case 1:n.hash=i.hash;case 2:n.query=i.query;case 3:case 4:lo(n,i);case 5:n.user=i.user,n.host=i.host,n.port=i.port;case 6:n.scheme=i.scheme}s>o&&(o=s)}bn(n,o);const r=n.query+n.hash;switch(o){case 2:case 3:return r;case 4:{const i=n.path.slice(1);return i?Yt(e||t)&&!Yt(i)?"./"+i+r:i+r:r||"."}case 5:return n.path+r;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+r}}b(co,"F$3");re(co,"resolve");var vl=Object.defineProperty,P=b((t,e)=>vl(t,"name",{value:e,configurable:!0}),"i$3");function uo(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}b(uo,"ae$2");P(uo,"stripFilename");function po(t,e){const n=uo(t),o=e?e+"/":"";return r=>co(o+(r||""),n)}b(po,"ge");P(po,"resolver");var ae=0,yn=1,xn=2,kn=3,ho=4,go=1,mo=2;function fo(t,e){const n=Qt(t,0);if(n===t.length)return t;e||(t=t.slice());for(let o=n;o<t.length;o=Qt(t,o+1))t[o]=wo(t[o],e);return t}b(fo,"he");P(fo,"maybeSort");function Qt(t,e){for(let n=e;n<t.length;n++)if(!vo(t[n]))return n;return t.length}b(Qt,"X$2");P(Qt,"nextUnsortedSegmentLine");function vo(t){for(let e=1;e<t.length;e++)if(t[e][ae]<t[e-1][ae])return!1;return!0}b(vo,"_e");P(vo,"isSorted");function wo(t,e){return e||(t=t.slice()),t.sort(_n)}b(wo,"ve$1");P(wo,"sortSegments");function _n(t,e){return t[ae]-e[ae]}b(_n,"$$2");P(_n,"sortComparator");function bo(t,e){const n=e.map(()=>[]);for(let o=0;o<t.length;o++){const r=t[o];for(let i=0;i<r.length;i++){const s=r[i];if(s.length===1)continue;const l=s[yn],a=s[xn],c=s[kn],d=n[l];(d[a]||(d[a]=[])).push([c,o,s[ae]])}}for(let o=0;o<n.length;o++){const r=n[o];for(let i=0;i<r.length;i++){const s=r[i];s&&s.sort(_n)}}return n}b(bo,"Se");P(bo,"buildBySources");var Ce=!1;function yo(t,e,n,o){for(;n<=o;){const r=n+(o-n>>1),i=t[r][ae]-e;if(i===0)return Ce=!0,r;i<0?n=r+1:o=r-1}return Ce=!1,n-1}b(yo,"Ee$1");P(yo,"binarySearch");function $n(t,e,n){for(let o=n+1;o<t.length&&t[o][ae]===e;n=o++);return n}b($n,"H$1");P($n,"upperBound");function En(t,e,n){for(let o=n-1;o>=0&&t[o][ae]===e;n=o--);return n}b(En,"Y");P(En,"lowerBound");function Sn(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}b(Sn,"k$2");P(Sn,"memoizedState");function xo(t,e,n,o){const{lastKey:r,lastNeedle:i,lastIndex:s}=n;let l=0,a=t.length-1;if(o===r){if(e===i)return Ce=s!==-1&&t[s][ae]===e,s;e>=i?l=s===-1?0:s:a=s}return n.lastKey=o,n.lastNeedle=e,n.lastIndex=yo(t,e,l,a)}b(xo,"Me$1");P(xo,"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 o=[],r=[],i=[],s=[],l=[];Cn(n,e,o,r,i,s,l,0,0,1/0,1/0);const a={version:3,file:n.file,names:s,sources:r,sourcesContent:i,mappings:o,ignoreList:l};return Lo(a)},"FlattenMap");function Cn(t,e,n,o,r,i,s,l,a,c,d){const{sections:h}=t;for(let g=0;g<h.length;g++){const{map:f,offset:v}=h[g];let m=c,k=d;if(g+1<h.length){const L=h[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)}ko(f,e,n,o,r,i,s,l+v.line,a+v.column,m,k)}}b(Cn,"ee$2");P(Cn,"recurse");function ko(t,e,n,o,r,i,s,l,a,c,d){const h=Rt(t);if("sections"in h)return Cn(...arguments);const g=new zt(h,e),f=o.length,v=i.length,m=Re(g),{resolvedSources:k,sourcesContent:L,ignoreList:T}=g;if(wt(o,k),wt(i,g.names),L)wt(r,L);else for(let $=0;$<k.length;$++)r.push(null);if(T)for(let $=0;$<T.length;$++)s.push(T[$]+f);for(let $=0;$<m.length;$++){const R=l+$;if(R>c)return;const D=_o(n,R),A=$===0?a:0,j=m[$];for(let U=0;U<j.length;U++){const O=j[U],ce=A+O[ae];if(R===c&&ce>=d)return;if(O.length===1){D.push([ce]);continue}const De=f+O[yn],de=O[xn],_e=O[kn];D.push(O.length===4?[ce,De,de,_e]:[ce,De,de,_e,v+O[ho]])}}}b(ko,"me");P(ko,"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 $o="`line` must be greater than 0 (lines start at line 1)",Eo="`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 o=typeof e=="string";if(!o&&e._decodedMemo)return e;const r=Rt(e),{version:i,file:s,names:l,sourceRoot:a,sources:c,sourcesContent:d}=r;this.version=i,this.file=s,this.names=l||[],this.sourceRoot=a,this.sources=c,this.sourcesContent=d,this.ignoreList=r.ignoreList||r.x_google_ignoreList||void 0;const h=po(n,a);this.resolvedSources=c.map(h);const{mappings:g}=r;if(typeof g=="string")this._encoded=g,this._decoded=void 0;else if(Array.isArray(g))this._encoded=void 0,this._decoded=fo(g,o);else throw r.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(r)}`);this._decodedMemo=Sn(),this._bySources=void 0,this._bySourceMemos=void 0}};function So(t){var e,n;return(n=(e=t)._encoded)!=null?n:e._encoded=no(t._decoded)}b(So,"oe$1");P(So,"encodedMappings");function Re(t){var e;return(e=t)._decoded||(e._decoded=Kr(t._encoded))}b(Re,"O$3");P(Re,"decodedMappings");function wl(t,e,n){const o=Re(t);if(e>=o.length)return null;const r=o[e],i=lt(r,t._decodedMemo,e,n,Ft);return i===-1?null:r[i]}b(wl,"Oe");P(wl,"traceSegment");function Co(t,e){let{line:n,column:o,bias:r}=e;if(n--,n<0)throw new Error($o);if(o<0)throw new Error(Eo);const i=Re(t);if(n>=i.length)return ot(null,null,null,null);const s=i[n],l=lt(s,t._decodedMemo,n,o,r||Ft);if(l===-1)return ot(null,null,null,null);const a=s[l];if(a.length===1)return ot(null,null,null,null);const{names:c,resolvedSources:d}=t;return ot(d[a[yn]],a[xn]+1,a[kn],a.length===5?c[a[ho]]:null)}b(Co,"Le$1");P(Co,"originalPositionFor");function bl(t,e){const{source:n,line:o,column:r,bias:i}=e;return Tn(t,n,o,r,i||Ft,!1)}b(bl,"ye$1");P(bl,"generatedPositionFor");function yl(t,e){const{source:n,line:o,column:r,bias:i}=e;return Tn(t,n,o,r,i||_t,!0)}b(yl,"Ce");P(yl,"allGeneratedPositionsFor");function xl(t,e){const n=Re(t),{names:o,resolvedSources:r}=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 h=null,g=null,f=null,v=null;a.length!==1&&(h=r[a[1]],g=a[2]+1,f=a[3]),a.length===5&&(v=o[a[4]]),e({generatedLine:c,generatedColumn:d,source:h,originalLine:g,originalColumn:f,name:v})}}}b(xl,"Ie");P(xl,"eachMapping");function Ln(t,e){const{sources:n,resolvedSources:o}=t;let r=n.indexOf(e);return r===-1&&(r=o.indexOf(e)),r}b(Ln,"re$1");P(Ln,"sourceIndex");function kl(t,e){const{sourcesContent:n}=t;if(n==null)return null;const o=Ln(t,e);return o===-1?null:n[o]}b(kl,"Ne");P(kl,"sourceContentFor");function _l(t,e){const{ignoreList:n}=t;if(n==null)return!1;const o=Ln(t,e);return o===-1?!1:n.includes(o)}b(_l,"be$1");P(_l,"isIgnored");function Lo(t,e){const n=new zt(Dt(t,[]),e);return n._decoded=t.mappings,n}b(Lo,"se$1");P(Lo,"presortedDecodedMap");function $l(t){return Dt(t,Re(t))}b($l,"Re$1");P($l,"decodedMap");function El(t){return Dt(t,So(t))}b(El,"we$2");P(El,"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,o){return{source:t,line:e,column:n,name:o}}b(ot,"b$3");P(ot,"OMapping");function qe(t,e){return{line:t,column:e}}b(qe,"y$3");P(qe,"GMapping");function lt(t,e,n,o,r){let i=xo(t,o,e,n);return Ce?i=(r===_t?$n:En)(t,o,i):r===_t&&i++,i===-1||i===t.length?-1:i}b(lt,"w$3");P(lt,"traceSegmentInternal");function To(t,e,n,o,r){let i=lt(t,e,n,o,Ft);if(!Ce&&r===_t&&i++,i===-1||i===t.length)return[];const s=Ce?o:t[i][ae];Ce||(i=En(t,s,i));const l=$n(t,s,i),a=[];for(;i<=l;i++){const c=t[i];a.push(qe(c[go]+1,c[mo]))}return a}b(To,"Ue");P(To,"sliceGeneratedPositions");function Tn(t,e,n,o,r,i){var s,l;if(n--,n<0)throw new Error($o);if(o<0)throw new Error(Eo);const{sources:a,resolvedSources:c}=t;let d=a.indexOf(e);if(d===-1&&(d=c.indexOf(e)),d===-1)return i?[]:qe(null,null);const h=(s=t)._bySourceMemos||(s._bySourceMemos=a.map(Sn)),g=((l=t)._bySources||(l._bySources=bo(Re(t),h)))[d][n];if(g==null)return i?[]:qe(null,null);const f=h[d];if(i)return To(g,f,n,o,r);const v=lt(g,f,n,o,r);if(v===-1)return qe(null,null);const m=g[v];return qe(m[go]+1,m[mo])}b(Tn,"ie$1");P(Tn,"generatedPosition");var Sl=Object.defineProperty,oe=b((t,e)=>Sl(t,"name",{value:e,configurable:!0}),"f$5");const Cl=/`((?:[^`$]|\$\{[^}]+\})*)`/g,pr=/\$\{[^}]+\}/g,Ll=/[.*+?^${}()|[\]\\]/g,Po=[/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*`/],Le=oe(t=>t.replaceAll(Ll,String.raw`\$&`),"escapeRegex"),Tl=oe(t=>{const e=Le(t);return[t,`new Error("${e}")`,`new Error('${e}')`,`new Error(\`${Le(t)}\`)`,`throw new Error("${e}")`,`throw new Error('${e}')`,`throw new Error(\`${Le(t)}\`)`,`Error("${e}")`,`Error('${e}')`]},"createErrorPatterns"),hr=oe((t,e)=>{const n=[...t.matchAll(Cl)];for(const o of n){const r=o[1];if(!r)continue;const i=r.split(pr);if(i.every(l=>l===""||e.includes(l))&&i.length>1)return!0;if(!r)continue;const s=r.replaceAll(pr,"(.+?)");try{if(new RegExp(`^${Le(s)}$`).test(e))return!0}catch{}}return!1},"checkTemplateLiteralMatch"),Pl=[/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 (.+?)\)/],Rl=oe(t=>{for(const e of Pl){const n=t.match(e);if(n)return n}},"findDynamicErrorMatch"),gr=oe(t=>{let e,n;for(const o of Po){const r=t.match(o);r&&(!e||o.source.includes("throw")&&!n?.source.includes("throw"))&&(e=r,n=o)}return{bestMatch:e,bestPattern:n}},"findBestErrorConstructor"),mr=oe((t,e)=>{let n=t.index??0;if(e.source.includes("throw new")&&t[0].startsWith("throw new")){const o=t[0].indexOf("new");o!==-1&&(n+=o)}return n+1},"calculateActualColumn"),Fl=oe((t,e,n=0)=>{if(!t||!e)return;const o=t.split(`
|
|
1883
|
+
`),r=Rl(e),i=Tl(e),s=oe((h,g,f)=>{let v=0;for(const[m,k]of h.entries()){if(!k)continue;const L=k.includes(g)||hr(k,g),T=Po.some($=>$.test(k));if(L&&T){const{bestMatch:$,bestPattern:R}=gr(k);if($&&R&&(v+=1,v>f))return{column:mr($,R),line:m+1}}}},"processErrorConstructorLines")(o,e,n);if(s)return s;r&&oe((h,g,f)=>{if(h[0].includes("Failed to resolve import")){const v=h[1];if(!v)return;const m=Le(v);f.unshift(`import.*from ["']${m}["']`,`import.*["']${m}["']`,v)}else if(h[0].includes("is not defined")){const v=h[1];if(!v)return;f.unshift(v,`{${v}}`,`src={${v}}`,`${v}.`,`=${v}`)}else if(h[0].includes("Cannot read properties")){const v=h[1],m=h[2];if(!m)return;f.unshift(m,`${v}.${m}`,`${v}?.${m}`,`${v}[${m}]`)}else{const v=h[1];if(!v)return;const m=Le(g),k=Le(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")(r,e,i);const l=oe((h,g,f)=>{let v=0;for(const[m,k]of h.entries()){if(!k||!hr(k,g))continue;const{bestMatch:L,bestPattern:T}=gr(k);if(L&&T&&(v+=1,v>f))return{column:mr(L,T),line:m+1}}},"processTemplateLiteralLines"),a=oe((h,g,f,v)=>{if(!v)return h+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&&g===m)return h+1;if(m&&g.includes(m))return h+g.indexOf(m)+1}else if(v[0].includes("Cannot read properties")){const m=v[2];if(m&&g.includes(m))return h+g.indexOf(m)+1}else if(g.includes("new Error("))return f.indexOf("new Error(")+1;return h+1},"calculatePatternColumn"),c=oe((h,g,f,v)=>{let m=0;for(const[k,L]of h.entries()){if(!L)continue;let T=-1,$;for(const R of g){const D=L.indexOf(R);D!==-1&&(T===-1||D<T)&&(T=D,$=R)}if(T!==-1&&$&&(m+=1,m>v))return{column:a(T,$,L,f),line:k+1}}},"processPatternLines");return l(o,e,n)||c(o,i,r,n)},"findErrorInSourceCode");var zl=Object.defineProperty,ct=b((t,e)=>zl(t,"name",{value:e,configurable:!0}),"m$4");const Dl=1,Ml=/^\//,fr=ct((t,e)=>{const n=Math.max(1,t),o=Math.max(0,e);let r,i;return n>=20?r=Math.max(1,Math.round(n*.5)):n>15?r=Math.max(1,Math.round(n*.6)):n>10?r=Math.max(1,n-8):r=Math.max(1,n-3),o>=10||o>7?i=Math.max(0,o-1):o>5?i=Math.max(0,o):i=o,{estimatedColumn:i,estimatedLine:r}},"estimateOriginalPosition"),Al=ct((t,e,n)=>{try{const o=new zt(t);if(e<=0)return;const r=[{column:n,desc:"original",line:e},{column:Math.max(0,n-Dl),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}))].filter(i=>i.line>0);for(const i of r){const s=Co(o,{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(o){console.warn("Source map processing failed:",o)}},"resolveSourceMapPosition"),Il=ct((t,e)=>e?Vr(t)?Bl(t,e):e:t,"resolveSourcePath"),Bl=ct((t,e)=>{try{const n=new URL(t),o=(n.pathname||"").replace(Ml,""),r=o.includes("/")?o.slice(0,Math.max(0,o.lastIndexOf("/"))):"";return`${n.origin}/${r?`${r}/`:""}${e}`}catch(n){return console.warn("URL parsing failed for source path resolution:",n),t}},"resolveHttpSourcePath"),Jt=ct(async(t,e,n,o,r,i,s=0)=>{if(i&&e)try{let a;if(e.transformResult?.map?.sourcesContent?.[0]?[a]=e.transformResult.map.sourcesContent: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: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 h=n.indexOf("://");h!==-1&&(d=n.slice(h+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=Fl(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(o,r);return{originalFileColumn:a,originalFileLine:c,originalFilePath:n}}try{const a=Al(l,o,r);if(!a){const{estimatedColumn:d,estimatedLine:h}=fr(o,r);return{originalFileColumn:d,originalFileLine:h,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:r,originalFileLine:o,originalFilePath:n}}},"resolveOriginalLocation");var jl=Object.defineProperty,Ol=b((t,e)=>jl(t,"name",{value:e,configurable:!0}),"$e"),Hl=Object.defineProperty,Pn=Ol((t,e)=>Hl(t,"name",{value:e,configurable:!0}),"W"),ql=Object.defineProperty,E=Pn((t,e)=>ql(t,"name",{value:e,configurable:!0}),"u$1");let vr=E(()=>{var t=(()=>{var e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=E((u,p)=>{for(var w in p)e(u,w,{get:p[w],enumerable:!0})},"ne"),s=E((u,p,w,x)=>{if(p&&typeof p=="object"||typeof p=="function")for(let y of o(p))!r.call(u,y)&&y!==w&&e(u,y,{get:E(()=>p[y],"get"),enumerable:!(x=n(p,y))||x.enumerable});return u},"ae"),l=E(u=>s(e({},"__esModule",{value:!0}),u),"oe"),a={};i(a,{zeptomatch:E(()=>Un,"zeptomatch")});var c=E(u=>{const p=new Set,w=[u];for(let x=0;x<w.length;x++){const y=w[x];if(p.has(y))continue;p.add(y);const{children:_}=y;if(_?.length)for(let C=0,I=_.length;C<I;C++)w.push(_[C])}return Array.from(p)},"M"),d=E(u=>{let p="";const w=c(u);for(let x=0,y=w.length;x<y;x++){const _=w[x];if(!_.regex)continue;const C=_.regex.flags;if(p||(p=C),p!==C)throw new Error(`Inconsistent RegExp flags used: "${p}" and "${C}"`)}return p},"se"),h=E((u,p,w)=>{const x=w.get(u);if(x!==void 0)return x;const y=u.partial??p;let _="";if(u.regex&&(_+=y?"(?:$|":"",_+=u.regex.source),u.children?.length){const C=f(u.children.map(I=>h(I,p,w)).filter(Boolean));if(C?.length){const I=u.children.some(Je=>!Je.regex||!(Je.partial??p)),J=C.length>1||y&&(!_.length||I);_+=J?y?"(?:$|":"(?:":"",_+=C.join("|"),_+=J?")":""}}return u.regex&&(_+=y?")":""),w.set(u,_),_},"O"),g=E((u,p)=>{const w=new Map,x=c(u);for(let y=x.length-1;y>=0;y--){const _=h(x[y],p,w);if(!(y>0))return _}return""},"ie"),f=E(u=>Array.from(new Set(u)),"ue"),v=E((u,p,w)=>v.compile(u,w).test(p),"R");v.compile=(u,p)=>{const w=p?.partial??!1,x=g(u,w),y=d(u);return new RegExp(`^(?:${x})$`,y)};var m=v,k=E((u,p)=>{const w=m.compile(u,p),x=`${w.source.slice(0,-1)}[\\\\/]?$`,y=w.flags;return new RegExp(x,y)},"le"),L=k,T=E(u=>{const p=u.map(x=>x.source).join("|")||"$^",w=u[0]?.flags;return new RegExp(p,w)},"ve"),$=T,R=E(u=>Array.isArray(u),"j"),D=E(u=>typeof u=="function","_"),A=E(u=>u.length===0,"he"),j=(()=>{const{toString:u}=Function.prototype,p=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return w=>(w.length===0||w.length===1)&&p.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"),De=(()=>{const u=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return p=>u.test(p.source)})(),de=(()=>{const u=/^[a-zA-Z0-9_-]+$/;return p=>u.test(p.source)&&!p.flags.includes("i")})(),_e=E(u=>typeof u=="string","A"),F=E(u=>u===void 0,"f"),H=E(u=>{const p=new Map;return w=>{const x=p.get(w);if(x!==void 0)return x;const y=u(w);return p.set(w,y),y}},"ye"),X=E((u,p,w={})=>{const x={cache:{},input:u,index:0,indexBacktrackMax:0,options:w,output:[]},y=ye(p)(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,p)=>R(u)?Me(u,p):_e(u)?Ze(u,p):we(u,p),"i"),Me=E((u,p)=>{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(p)&&!x.options.silent){const I=y.slice(_,C),J=D(p)?p(I,y,`${_}`):p;F(J)||x.output.push(J)}x.index=C}return!0}},"we"),we=E((u,p)=>{if(de(u))return Ze(u.source,p);{const w=u.source,x=u.flags.replace(/y|$/,"y"),y=new RegExp(w,x);return De(u)&&D(p)&&!j(p)?ut(y,p):pt(y,p)}},"$e"),ut=E((u,p)=>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=p(..._,y,`${x}`);F(I)||w.output.push(I)}return w.index=C,!0}else return!1},"Ee"),pt=E((u,p)=>w=>{const x=w.index,y=w.input;if(u.lastIndex=x,u.test(y)){const _=u.lastIndex;if(!F(p)&&!w.options.silent){const C=D(p)?p(y.slice(x,_),y,`${x}`):p;F(C)||w.output.push(C)}return w.index=_,!0}else return!1},"Ce"),Ze=E((u,p)=>w=>{const x=w.index,y=w.input;if(y.startsWith(u,x)){if(!F(p)&&!w.options.silent){const _=D(p)?p(u,y,`${x}`):p;F(_)||w.output.push(_)}return w.index+=u.length,!0}else return!1},"F"),Ae=E((u,p,w,x)=>{const y=ye(u),_=p>1;return Xe(ue(be(C=>{let I=0;for(;I<w;){const J=C.index;if(!y(C)||(I+=1,C.index===J))break}return I>=p},_),x))},"k"),Ye=E((u,p)=>Ae(u,0,1,p),"L"),Ie=E((u,p)=>Ae(u,0,1/0,p),"$"),Be=E((u,p)=>Ae(u,1,1/0,p),"Re"),V=E((u,p)=>{const w=u.map(ye);return Xe(ue(be(x=>{for(let y=0,_=w.length;y<_;y++)if(!w[y](x))return!1;return!0}),p))},"x"),Z=E((u,p)=>{const w=u.map(ye);return Xe(ue(x=>{for(let y=0,_=w.length;y<_;y++)if(w[y](x))return!0;return!1},p))},"p"),be=E((u,p=!0,w=!1)=>{const x=ye(u);return p?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,p)=>{const w=ye(u);return p?x=>{if(x.options.silent)return w(x);const y=x.output.length;if(w(x)){const _=x.output.splice(y,1/0),C=p(_);return F(C)||x.output.push(C),!0}else return!1}:w},"B"),Xe=(()=>{let u=0;return p=>{const w=ye(p),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 Oe=0,Oi=J.length;Oe<Oi;Oe+=2){const Hi=J[Oe*2],qi=J[Oe*2+1];Ke.set(Hi,qi)}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,ji=w(y);if(I.indexMax=Math.max(I.indexMax,C),ji){const Ke=y.index,pe=y.output.length;if(pe>Je){const Oe=y.output.slice(Je,pe);J.push(C,{index:Ke,output:Oe})}else J.push(C,Ke);return!0}else return J.push(C,!1),!1}}})(),zn=E(u=>{let p;return w=>(p||(p=ye(u())),p(w))},"G"),ye=H(u=>{if(D(u))return A(u)?zn(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")}),$e=E(u=>u,"d"),Io=E(u=>typeof u=="string","ke"),Bo=E(u=>{const p=new WeakMap,w=new WeakMap;return(x,y)=>{const _=y?.partial?w:p,C=_.get(x);if(C!==void 0)return C;const I=u(x,y);return _.set(x,I),I}},"Be"),jo=E(u=>{const p={},w={};return(x,y)=>{const _=y?.partial?w:p;return _[x]??(_[x]=u(x,y))}},"Pe"),Oo=S(/\\./,$e),Ho=S(/./,$e),qo=S(/\*\*\*+/,"*"),No=S(/([^/{[(!])\*\*/,(u,p)=>`${p}*`),Uo=S(/(^|.)\*\*(?=[^*/)\]}])/,(u,p)=>`${p}*`),Go=Ie(Z([Oo,qo,No,Uo,Ho])),Wo=Go,Vo=E(u=>X(u,Wo,{memoization:!1}).join(""),"Ie"),Zo=Vo,Dn="abcdefghijklmnopqrstuvwxyz",Yo=E(u=>{let p="";for(;u>0;){const w=(u-1)%26;p=Dn[w]+p,u=Math.floor((u-1)/26)}return p},"Le"),Mn=E(u=>{let p=0;for(let w=0,x=u.length;w<x;w++)p=p*26+Dn.indexOf(u[w])+1;return p},"V"),At=E((u,p)=>{if(p<u)return At(p,u);const w=[];for(;u<=p;)w.push(u++);return w},"b"),Xo=E((u,p,w)=>At(u,p).map(x=>String(x).padStart(w,"0")),"qe"),An=E((u,p)=>At(Mn(u),Mn(p)).map(Yo),"W"),Y=E(u=>({partial:!1,regex:new RegExp(u,"s"),children:[]}),"c"),Qe=E(u=>({children:u}),"y"),je=(()=>{const u=E((p,w,x)=>{if(x.has(p))return;x.add(p);const{children:y}=p;if(!y.length)y.push(w);else for(let _=0,C=y.length;_<C;_++)u(y[_],w,x)},"e");return p=>{if(!p.length)return Qe([]);for(let w=p.length-1;w>=1;w--){const x=new Set,y=p[w-1],_=p[w];u(y,_,x)}return p[0]}})(),xe=E(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),Qo=S(/\\./,Y),Jo=S(/[$.*+?^(){}[\]\|]/,u=>Y(`\\${u}`)),Ko=S(/[\\\/]/,xe),ei=S(/[^$.*+?^(){}[\]\|\\\/]+/,Y),ti=S(/^(?:!!)*!(.*)$/,(u,p)=>Y(`(?!^${Un.compile(p).source}$).*?`)),ni=S(/^(!!)+/),ri=Z([ti,ni]),oi=S(/\/(\*\*\/)+/,()=>Qe([je([xe(),Y(".+?"),xe()]),xe()])),ii=S(/^(\*\*\/)+/,()=>Qe([Y("^"),je([Y(".*?"),xe()])])),si=S(/\/(\*\*)$/,()=>Qe([je([xe(),Y(".*?")]),Y("$")])),ai=S(/\*\*/,()=>Y(".*?")),In=Z([oi,ii,si,ai]),li=S(/\*\/(?!\*\*\/|\*$)/,()=>je([Y("[^\\\\/]*?"),xe()])),ci=S(/\*/,()=>Y("[^\\\\/]*")),Bn=Z([li,ci]),jn=S("?",()=>Y("[^\\\\/]")),di=S("[",$e),ui=S("]",$e),pi=S(/[!^]/,"^\\\\/"),hi=S(/[a-z]-[a-z]|[0-9]-[0-9]/i,$e),gi=S(/\\./,$e),mi=S(/[$.*+?^(){}[\|]/,u=>`\\${u}`),fi=S(/[\\\/]/,"\\\\/"),vi=S(/[^$.*+?^(){}[\]\|\\\/]+/,$e),wi=Z([gi,mi,fi,hi,vi]),On=V([di,Ye(pi),Ie(wi),ui],u=>Y(u.join(""))),bi=S("{","(?:"),yi=S("}",")"),xi=S(/(\d+)\.\.(\d+)/,(u,p,w)=>Xo(+p,+w,Math.min(p.length,w.length)).join("|")),ki=S(/([a-z]+)\.\.([a-z]+)/,(u,p,w)=>An(p,w).join("|")),_i=S(/([A-Z]+)\.\.([A-Z]+)/,(u,p,w)=>An(p.toLowerCase(),w.toLowerCase()).join("|").toUpperCase()),$i=Z([xi,ki,_i]),Hn=V([bi,$i,yi],u=>Y(u.join(""))),Ei=S("{"),Si=S("}"),Ci=S(","),Li=S(/\\./,Y),Ti=S(/[$.*+?^(){[\]\|]/,u=>Y(`\\${u}`)),Pi=S(/[\\\/]/,xe),Ri=S(/[^$.*+?^(){}[\]\|\\\/,]+/,Y),Fi=zn(()=>Nn),zi=S("",()=>Y("(?:)")),Di=Be(Z([In,Bn,jn,On,Hn,Fi,Li,Ti,Pi,Ri]),je),qn=Z([Di,zi]),Nn=V([Ei,Ye(V([qn,Ie(V([Ci,qn]))])),Si],Qe),Mi=Ie(Z([ri,In,Bn,jn,On,Hn,Nn,Qo,Jo,Ko,ei]),je),Ai=Mi,Ii=E(u=>X(u,Ai,{memoization:!1})[0],"kr"),Bi=Ii,It=E((u,p,w)=>It.compile(u,w).test(p),"N");It.compile=(()=>{const u=jo((w,x)=>L(Bi(Zo(w)),x)),p=Bo((w,x)=>$(w.map(y=>u(y,x))));return(w,x)=>Io(w)?u(w,x):p(w,x)})();var Un=It;return l(a)})();return t.default||t},"_lazyMatch"),jt;const Nl=E((t,e)=>(jt||(jt=vr(),vr=null),jt(t,e)),"default");var Ul=Object.defineProperty,Gl=Pn((t,e)=>Ul(t,"name",{value:e,configurable:!0}),"t$1");const Wl=/^[A-Z]:\//i,Fe=Gl((t="")=>t&&t.replaceAll("\\","/").replace(Wl,e=>e.toUpperCase()),"normalizeWindowsPath");var Vl=Object.defineProperty,ne=Pn((t,e)=>Vl(t,"name",{value:e,configurable:!0}),"r");const Zl=/^[/\\]{2}/,Yl=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Ro=/^[A-Z]:$/i,wr=/^\/([A-Z]:)?$/i,Xl=/.(\.[^./]+)$/,Ql=/^[/\\]|^[a-z]:[/\\]/i,Jl=ne(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Fo=ne((t,e)=>{let n="",o=0,r=-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(!(r===l-1||i===1))if(i===2){if(n.length<2||o!==2||!n.endsWith(".")||n.at(-2)!=="."){if(n.length>2){const a=n.lastIndexOf("/");a===-1?(n="",o=0):(n=n.slice(0,a),o=n.length-1-n.lastIndexOf("/")),r=l,i=0;continue}else if(n.length>0){n="",o=0,r=l,i=0;continue}}e&&(n+=n.length>0?"/..":"..",o=2)}else n.length>0?n+=`/${t.slice(r+1,l)}`:n=t.slice(r+1,l),o=l-r-1;r=l,i=0}else s==="."&&i!==-1?++i:i=-1}return n},"normalizeString"),st=ne(t=>Yl.test(t),"isAbsolute"),$t=ne(function(t){if(t.length===0)return".";t=Fe(t);const e=Zl.exec(t),n=st(t),o=t.at(-1)==="/";return t=Fo(t,!n),t.length===0?n?"/":o?"./":".":(o&&(t+="/"),Ro.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 o=e[e.length-1]==="/",r=n[0]==="/";o&&r?e+=n.slice(1):e+=o||r?n:`/${n}`}else e+=n;return $t(e)},"join");const Et=ne(function(...t){t=t.map(o=>Fe(o));let e="",n=!1;for(let o=t.length-1;o>=-1&&!n;o--){const r=o>=0?t[o]:Jl();!r||r.length===0||(e=`${r}/${e}`,n=st(r))}return e=Fo(e,!n),n&&!st(e)?`/${e}`:e.length>0?e:"."},"resolve");ne(function(t){return Fe(t)},"toNamespacedPath");const Kl=ne(function(t){return Xl.exec(Fe(t))?.[1]??""},"extname");ne(function(t,e){const n=Et(t).replace(wr,"$1").split("/"),o=Et(e).replace(wr,"$1").split("/");if(o[0][1]===":"&&n[0][1]===":"&&n[0]!==o[0])return o.join("/");const r=[...n];for(const i of r){if(o[0]!==i)break;n.shift(),o.shift()}return[...n.map(()=>".."),...o].join("/")},"relative");const ec=ne(t=>{const e=Fe(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Ro.test(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 Fe(t.root?Et(...e):e.join("/"))},"format");const tc=ne((t,e)=>{const n=Fe(t).split("/").pop();return e&&n.endsWith(e)?n.slice(0,-e.length):n},"basename");ne(function(t){const e=Ql.exec(t)?.[0]?.replaceAll("\\","/")??"",n=tc(t),o=Kl(n);return{base:n,dir:ec(t),ext:o,name:n.slice(0,n.length-o.length),root:e}},"parse");ne((t,e)=>Nl(e,$t(t)),"matchesGlob");var nc=Object.defineProperty,le=b((t,e)=>nc(t,"name",{value:e,configurable:!0}),"e$1");const Kt="/",br=":",rc="at ",oc=/https?:\/\/[^\s)]+/g,ic=/file:\/\//g,zo=/\/@fs\//g,sc=/\([^)]*:\d+:\d+\)/,ac=/\([^)]*:\d+\)/,lc=/[^(\s][^:]*:\d+:\d+/,cc=/[^(\s][^:]*:\d+/,dc=/:(\d+)(?::(\d+))?$/,uc=/\n/,pc=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),hc=new Set(["<anonymous>","<unknown>","native"]),gc=le(t=>{const e=t.match(dc),n=e?.[1],o=e?.[2];return{baseUrl:e?t.slice(0,-e[0].length):t,col:o,line:n}},"parseUrlWithLocation"),mc=le((t,e)=>{const n=new URL(t);let o=decodeURIComponent(n.pathname||"");return o=o.replaceAll(zo,Kt),Et(e,o.startsWith(Kt)?o.slice(1):o)},"urlToAbsolutePath"),fc=le((t,e,n)=>{if(!e)return t;const o=n?`${br}${n}`:"";return`${t}${br}${e}${o}`},"formatAbsolutePath"),vc=le(t=>{const e=t.trim();return!e.startsWith(rc)||!([...pc].some(n=>e.includes(n))||[...hc].some(n=>e.includes(n)))?!1:sc.test(e)||ac.test(e)||lc.test(e)||cc.test(e)||e.includes("native")||e.includes("<unknown>")},"isValidStackFrame"),wc=le(t=>{let e=t.replaceAll(zo,Kt);return e=e.replaceAll(ic,""),e.includes("<unknown>")?e.trim()||"":e.trim()&&!vc(e)?"":e},"cleanStackLine"),bc=le((t,e)=>{try{const{baseUrl:n,col:o,line:r}=gc(t),i=mc(n,e);return fc(i,r,o)}catch(n){return console.warn("Failed to absolutize URL:",t,n),t}},"absolutizeUrl"),Rn=le(t=>t&&t.replaceAll(`\r
|
|
1713
1884
|
`,`
|
|
1714
1885
|
`).replaceAll("\r",`
|
|
1715
|
-
`).split(
|
|
1716
|
-
`),"cleanErrorStack"),
|
|
1717
|
-
`)[0]||t;if(e&&
|
|
1718
|
-
|
|
1719
|
-
`);t.message=i.replace(" This can happen if a SSR-ed Client Component used:","")}const
|
|
1720
|
-
`)||[])i.startsWith("+ ")?
|
|
1721
|
-
`)},"processHydrationDiff");var
|
|
1722
|
-
at `)&&(
|
|
1723
|
-
at `).replaceAll(
|
|
1724
|
-
at $1 $2`).replaceAll(
|
|
1725
|
-
at $1 $2`).replaceAll(
|
|
1726
|
-
at $1 <$2>:
|
|
1727
|
-
at $1 <unknown>:0:0`)),!
|
|
1728
|
-
`)[k-1];if(V&&
|
|
1729
|
-
`),
|
|
1730
|
-
`),
|
|
1731
|
-
`)}
|
|
1732
|
-
var orig${
|
|
1733
|
-
|
|
1734
|
-
console.${
|
|
1886
|
+
`).split(uc).map(e=>wc(e)).filter(e=>e.trim()!=="").join(`
|
|
1887
|
+
`),"cleanErrorStack"),yc=le(t=>{const e=typeof t=="string"?t:t.message||String(t);return Wi(e)},"cleanErrorMessage"),xc=le(t=>t instanceof AggregateError||t!==null&&typeof t=="object"&&"errors"in t&&Array.isArray(t.errors),"isAggregateError"),kc=le(t=>xc(t)?t.errors:[t],"extractErrors"),Mt=le((t,e)=>t&&String(t).replaceAll(oc,n=>bc(n,e)),"absolutizeStackUrls");var _c=Object.defineProperty,$c=b((t,e)=>_c(t,"name",{value:e,configurable:!0}),"c$3");const Ec=/\((\d+):(\d+)\)/,Sc=/(\S+\.vue)/,Cc=$c(t=>{if(!t.includes("[vue/compiler-sfc]"))return;let e="",n=0,o=0;const r=t.match(Ec);r&&r[1]&&r[2]&&(n=Number.parseInt(r[1],10),o=Number.parseInt(r[2],10));const i=t.match(Sc);i&&i[1]&&(e=i[1]||"");const s=t.split(`
|
|
1888
|
+
`)[0]||t;if(e&&n>0&&o>0)return{column:o,line:n,message:s,originalFilePath:e}},"parseVueCompilationError");var Lc=Object.defineProperty,Do=b((t,e)=>Lc(t,"name",{value:e,configurable:!0}),"l$2");const Tc=/<style\b[^>]*>[\s\S]*?<\/style>/gi,Pc=/<script\b[^>]*>[\s\S]*?<\/script>/gi,Rc=/<template\b[^>]*>[\s\S]*?<\/template>/gi,Fc=/style="([^"]*)"/g,zc=Do(t=>{let e=t.replaceAll(Tc,"").replaceAll(Pc,"").replaceAll(Rc,"").replaceAll("<!--$?-->","").replaceAll("<!--/$-->","");return e=e.replaceAll(Fc,(n,o)=>`style="${(o.trim().endsWith(";")?o:`${o};`).replaceAll(" ","")}"`),e},"removeStyleAndDataAttributes"),Dc="https://react.dev/link/hydration-mismatch",Mc=Do(t=>{const[e,n]=t.message.split(Dc);if(e){const[i]=e?.split(`
|
|
1889
|
+
|
|
1890
|
+
`);t.message=i.replace(" This can happen if a SSR-ed Client Component used:","")}const o=[];for(const i of zc(n?.trim()||"").split(`
|
|
1891
|
+
`)||[])i.startsWith("+ ")?o.push(`[!code ++] ${i.slice(1)}`):i.startsWith("- ")?o.push(`[!code --] ${i.slice(1)}`):i.includes(" ...")||o.push(i);let r=o.findIndex(i=>i.startsWith("[!code ++]"));if(r===-1&&(r=o.findIndex(i=>i.startsWith("[!code --]"))),r!==-1)return o.slice(Math.max(0,r-5)).join(`
|
|
1892
|
+
`)},"processHydrationDiff");var Ac=Object.defineProperty,Ic=b((t,e)=>Ac(t,"name",{value:e,configurable:!0}),"m");const Bc=/^(Error:.*?)at /,jc=/at ([^<\s]+)\s*(<[^>]+>:\d+:\d+)/g,Oc=/at ([^<\s]+)\s*(<unknown>:\d+:\d+)/g,Hc=/at ([^<\s]+)\s*<([^>]+)>:\d+:\d+/g,qc=/at ([^<\s]+)(?=\s*at|$)/g,Nc=Ic(async(t,e,n)=>{let o=e;if(e.includes("at ")&&!e.includes(`
|
|
1893
|
+
at `)&&(o=e.replace(Bc,`$1
|
|
1894
|
+
at `).replaceAll(jc,`
|
|
1895
|
+
at $1 $2`).replaceAll(Oc,`
|
|
1896
|
+
at $1 $2`).replaceAll(Hc,`
|
|
1897
|
+
at $1 <$2>:0:0`),o=o.replaceAll(qc,`
|
|
1898
|
+
at $1 <unknown>:0:0`)),!o.includes("<unknown>")&&!o.includes("react-dom")&&!o.includes("react"))return o;const r=Ne({stack:o}),i=await Promise.all(r.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,h={batchedUpdates:"Batch Updates",dispatchEvent:"Event System",executeDispatch:"Event Dispatcher",processDispatchQueue:"Event Queue",runWithFiber:"Fiber Reconciliation"};for(const[g,f]of Object.entries(h))if(d.includes(g))return{...s,column:0,file:`[React] ${f}`,line:0};if(!d.includes("$")&&!d.includes("anonymous")){const g=Se(d),f=it(t,g);if(f){const v=await Jt(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=Se(l),h=it(t,d);if(!h)return s;const g=await Jt(t,h,l,a,c);return{...s,column:g.originalFileColumn,file:g.originalFilePath,line:g.originalFileLine}}catch{return s}}));return Er(i,{header:n})},"remapStackToOriginal");var Uc=Object.defineProperty,dt=b((t,e)=>Uc(t,"name",{value:e,configurable:!0}),"t");const Gc=dt(t=>!!(t&&Array.isArray(t.sources)&&Array.isArray(t.sourcesContent)),"isValidSourceMap"),Ot=dt(t=>{if(typeof t=="string")return t},"getSourceContent"),Wc=dt((t,e)=>t===e||t.endsWith(e)||e.endsWith(t),"isPartialMatch"),Vc=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 o=$t(e),r=t.indexOf(o);if(r!==-1)return r;for(const[i,s]of t.entries()){if(!s||typeof s!="string")continue;const l=$t(s);if(Wc(l,o))return i}return-1},"findSourceIndex"),yr=dt((t,e)=>{if(!Gc(t))return;if(!e&&t.sourcesContent?.[0])return Ot(t.sourcesContent[0]);const n=Vc(t.sources,e||"");return n>=0&&t.sourcesContent?.[n]?Ot(t.sourcesContent[n]):t.sourcesContent?.[0]?Ot(t.sourcesContent[0]):void 0},"getSourceFromMap");var Zc=Object.defineProperty,Yc=b((t,e)=>Zc(t,"name",{value:e,configurable:!0}),"f");const xr=Yc(async(t,e,n,o)=>{let r,i;if(e&&typeof e=="object"&&"transformResult"in e&&e.transformResult){const l=e.transformResult;l.code&&!i&&(i=l.code),l.map&&!r&&(r=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:o[0];if(s&&(!r||!i))try{const l=await t.transformRequest(s);if(l?.code&&!i&&(i=l.code),l?.map&&!r){const{map:a}=l,c=a;typeof a=="object"&&a!==null&&"mappings"in a&&c.mappings!==""&&(r=yr(c,n))}}catch{}if(!r&&e&&typeof e=="object"&&"file"in e&&e.file)try{r=await $r(e.file,"utf8")}catch{}return{compiledSourceText:i,originalSourceText:r}},"retrieveSourceTexts");var Xc=Object.defineProperty,Qc=b((t,e)=>Xc(t,"name",{value:e,configurable:!0}),"a");const Jc=Qc((t={})=>{const{classActivePre:e="has-diff",classLineAdd:n="diff add",classLineRemove:o="diff remove"}=t;return{code(r){this.addClassToHast(this.pre,e),r.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,o)))}})},name:"shiki-diff"}},"shikiDiffTransformer");var Kc=Object.defineProperty,ed=b((t,e)=>Kc(t,"name",{value:e,configurable:!0}),"r");const td=ed((t,e)=>!e||t.includes("?")?t:t+e,"addQueryToUrl");var nd=Object.defineProperty,rd=b((t,e)=>nd(t,"name",{value:e,configurable:!0}),"e");const od=rd(t=>{try{return new URL(t).search}catch{return""}},"extractQueryFromHttpUrl");var id=Object.defineProperty,ze=b((t,e)=>id(t,"name",{value:e,configurable:!0}),"T");const sd=/[&<>"']/g,kr=/^https?:\/\/[^/]+/,_r=/^\//,ad={'"':""","&":"&","'":"'","<":"<",">":">"},en=ze(t=>t.replaceAll(sd,e=>ad[e]||e),"escapeHtml"),ld=ze(t=>Array.isArray(t)&&Ha(t)?qa(t).map(e=>({message:e.message||"ESBuild error",name:e.name||"Error",stack:e.stack||""})):kc(t),"extractIndividualErrors"),cd=ze(t=>{const e=Ne(t,{frameLimit:10}),n=e?.find(o=>o?.file?.startsWith("http"))||e?.[0];return{compiledColumn:n?.column??0,compiledFilePath:n?.file??"",compiledLine:n?.line??0}},"extractLocationFromStack"),dd=ze(async(t,e,n,o,r,i,s=0,l)=>{const a=r?.originalFilePath||e,c=r?.line??o,d=r?.column??n;if(a){let h=a,g=a;if(a.startsWith("http://")||a.startsWith("https://"))try{h=new URL(a).pathname,h.startsWith("/")&&(h=h.slice(1));const L=t.config.root||process.cwd();g=h.startsWith("/")?h:`${L}/${h}`}catch{console.warn("Failed to parse HTTP URL:",a)}const f=Se(h),v=it(t,f);if(v)try{const L=await Jt(t,v,e||l||h,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"),ud=ze((t,e,n,o,r,i)=>({compiledCodeFrameContent:void 0,compiledColumn:t,compiledFilePath:e,compiledLine:n,fixPrompt:"",originalCodeFrameContent:void 0,originalFileColumn:o,originalFileLine:r,originalFilePath:i,originalSnippet:""}),"createEmptyResult"),pd=ze(async(t,e,n,o,r,i)=>{let s,l;const a=Ue(n),c=Ue(o)||a;if(a==="text"&&t&&t.trim()&&(s=`<pre class="shiki"><code>${en(t)}</code></pre>`),c==="text"&&e&&e.trim()&&(l=`<pre class="shiki"><code>${en(e)}</code></pre>`),a==="text"&&c==="text")return{compiledCodeFrameContent:l,originalCodeFrameContent:s};const d=await Ur([c,a]),h={themes:{dark:"github-dark-default",light:"github-light"}};if(t&&t.trim())try{s=d.codeToHtml(t,{...h,lang:a,transformers:[ar([{classes:["error-line"],line:r}])]})}catch{}if(e&&e.trim())try{l=d.codeToHtml(e,{...h,lang:c,transformers:[ar([{classes:["error-line"],line:i}])]})}catch{}return{compiledCodeFrameContent:l,originalCodeFrameContent:s}},"generateSyntaxHighlightedFrames"),hd=ze(async(t,e,n=0,o,r,i)=>{const s=o==="vue"&&t?.message?Cc(t.message):void 0,l=ld(t),a=l[0]||t,c=o==="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 H=F.stack||"",X=Ne({stack:H},{frameLimit:10})?.find(S=>S?.file?.startsWith("http"));if(X?.file&&(d=od(X.file),d))break}const h=yc(a),g=Rn(a.stack||""),f=await Nc(e,g,{message:h,name:a.name});let v,m,k;if(r?.file&&r?.line&&r?.column)v=r.column,m=r.file,k=r.line;else{const F=cd(a);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 we=`${e.config.server.https?"https":"http"}://${Me}:${S}${X}`;d&&(we=td(we,d)),m=we}}if(c){const F=Mc(t);if(F){const H=m?Ue(m):"javascript";if(H==="text")return{errorCount:1,fixPrompt:Bt({applicationType:void 0,error:a,file:{file:m,language:"jsx",line:k,snippet:F}}),message:a.message,originalCodeFrameContent:`<pre class="shiki"><code>${en(F)}</code></pre>`,originalFileColumn:v,originalFileLine:k,originalFilePath:m,originalSnippet:F,originalStack:a.stack||""};const X=await Ur([H]);return{errorCount:1,fixPrompt:Bt({applicationType:void 0,error:a,file:{file:m,language:"jsx",line:k,snippet:F}}),message:a.message,originalCodeFrameContent:X.codeToHtml(F,{lang:H,themes:{dark:"github-dark-default",light:"github-light"},transformers:[Jc()]}),originalFileColumn:v,originalFileLine:k,originalFilePath:m,originalSnippet:F,originalStack:a.stack||""}}}let L=r?.file||m;if(!r?.file&&a.stack){const F=Ne(a,{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 dd(e,L,v,k,s,a.message,n,m);const D=r?.plugin;let A="",j="",U,O;try{const[F,H]=await Promise.all([it(e,Se(m)),it(e,Se(R))]);if(!F&&!H)return ud(v,m,k,T,$,R);const X=m.startsWith("http")?m.replace(kr,"").replace(_r,""):m,S=R.startsWith("http")?R.replace(kr,"").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 we={compiledSourceText:void 0,originalSourceText:void 0};let ut=Promise.resolve(we);!O&&F&&(ut=xr(e,F,X,Se(X)));let pt=Promise.resolve(we);!U&&H&&(pt=xr(e,H,S,Se(S)));const[Ze,Ae]=await Promise.all([ut,pt]);if(!O&&Ze.compiledSourceText&&({compiledSourceText:O}=Ze),!U&&Ae.originalSourceText&&({originalSourceText:U}=Ae),U){if(O&&$<=0&&k>0){const V=al(O,k,v,U);V&&($=V.line,T=V.column)}try{A=Wn(U,{start:{column:Math.max(1,T),line:Math.max(1,$)}},{showGutter:!1})}catch{A=U?.slice(0,500)||""}}const Ye=O&&k>0,Ie=$>0&&T>0;let Be=!1;if(Ye&&k>0&&a.message&&O){const V=O.split(`
|
|
1899
|
+
`)[k-1];if(V&&v<=V.length){const Z=a.message,be=Math.max(0,v-1),ue=new Set(V.slice(Math.max(0,be)));Be=ue.has("new Error(")||ue.has("throw new Error")||ue.has("throw ")||ue.has(Z.slice(0,20)),!Be&&Ie&&(R.includes(".svelte")||R.includes(".vue")||R.includes(".astro")||m.includes(".js")||m.includes(".ts"))&&(Be=!0)}}if(Ye&&Be&&O){const V=O.split(`
|
|
1900
|
+
`),Z=V.length,be=Math.min(k,Z)||Math.max(1,Z-2),ue=V[be-1]?Math.min(v||1,V[be-1]?.length||1):1;try{j=Wn(O,{start:{column:ue,line:be}},{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:De}=await pd(A,j,R,m,$,k);let de=A;if(!de&&U){const F=U.split(`
|
|
1901
|
+
`),H=Math.max(0,$-3),X=Math.min(F.length,$+2);de=F.slice(H,X).join(`
|
|
1902
|
+
`)}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:Er(Ne({message:h,name:a.name,stack:g}),{header:{message:h,name:a.name}}),errorCount:l.length,fixPrompt:_e,originalCodeFrameContent:De,originalFileColumn:T,originalFileLine:$,originalFilePath:R,originalSnippet:A,originalStack:f||g,plugin:D}},"buildExtendedErrorData");var gd=Object.defineProperty,md=b((t,e)=>gd(t,"name",{value:e,configurable:!0}),"n");const fd=md((t,e,n)=>{const o=e.map(r=>{const i=r.charAt(0).toUpperCase()+r.slice(1);return`
|
|
1903
|
+
var orig${i} = console.${r};
|
|
1904
|
+
|
|
1905
|
+
console.${r} = function(...args) {
|
|
1735
1906
|
function parseConsoleArgs(args) {
|
|
1736
1907
|
if (
|
|
1737
1908
|
args.length > 3 &&
|
|
@@ -1782,7 +1953,7 @@ console.${n} = function(...args) {
|
|
|
1782
1953
|
}
|
|
1783
1954
|
} catch {}
|
|
1784
1955
|
|
|
1785
|
-
return orig${
|
|
1956
|
+
return orig${i}.apply(console, args);
|
|
1786
1957
|
};`}).join(`
|
|
1787
1958
|
`);return String.raw`
|
|
1788
1959
|
import { createHotContext } from '/@vite/client';
|
|
@@ -1826,7 +1997,7 @@ async function sendError(error, loc) {
|
|
|
1826
1997
|
|
|
1827
1998
|
var causeChain = extractCauseChain(error);
|
|
1828
1999
|
|
|
1829
|
-
hot.send('${
|
|
2000
|
+
hot.send('${Br}', {
|
|
1830
2001
|
name: error?.name || null,
|
|
1831
2002
|
message: error.message,
|
|
1832
2003
|
stack: error.stack,
|
|
@@ -1870,13 +2041,76 @@ window.addEventListener("unhandledrejection", function (evt) {
|
|
|
1870
2041
|
sendError(evt.reason);
|
|
1871
2042
|
});
|
|
1872
2043
|
|
|
1873
|
-
|
|
2044
|
+
// Clears all error state when an HMR update is successfully applied (i.e. the error was fixed).
|
|
2045
|
+
// vite:beforeUpdate fires after successful compilation, before module replacement.
|
|
2046
|
+
// vite:beforeFullReload fires before a full-page reload (server restart / config change).
|
|
2047
|
+
function clearErrorState() {
|
|
2048
|
+
globalThis.__v_o_error_history = [];
|
|
2049
|
+
|
|
2050
|
+
var overlay = globalThis.__v_o__current;
|
|
2051
|
+
|
|
2052
|
+
if (!overlay) {
|
|
2053
|
+
return;
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
var root = overlay.__elements && overlay.__elements.root;
|
|
2057
|
+
|
|
2058
|
+
if (root) {
|
|
2059
|
+
root.classList.add('hidden');
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
var balloonGroup = overlay.__elements && overlay.__elements.balloonGroup;
|
|
2063
|
+
|
|
2064
|
+
if (balloonGroup) {
|
|
2065
|
+
balloonGroup.classList.add('hidden');
|
|
2066
|
+
balloonGroup.classList.remove('inline-flex');
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
var balloonCount = overlay.__elements && overlay.__elements.balloonCount;
|
|
2070
|
+
|
|
2071
|
+
if (balloonCount) {
|
|
2072
|
+
balloonCount.style.setProperty('--num', '0');
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
// Reset dismissed flag so the next error shows the balloon again
|
|
2076
|
+
overlay.__v_oBalloonDismissed = false;
|
|
2077
|
+
if (typeof overlay._saveBalloonState === 'function') {
|
|
2078
|
+
overlay._saveBalloonState('dismissed', 'false');
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
1874
2081
|
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
2082
|
+
hot.on('vite:beforeUpdate', function() { clearErrorState(); });
|
|
2083
|
+
hot.on('vite:beforeFullReload', function() { clearErrorState(); });
|
|
2084
|
+
|
|
2085
|
+
// Expose overlay API for manual control
|
|
2086
|
+
window.__visulima_overlay__ = {
|
|
2087
|
+
open: function() {
|
|
2088
|
+
const overlay = globalThis.__v_o__current;
|
|
2089
|
+
if (overlay && overlay.__elements?.root) {
|
|
2090
|
+
overlay.__elements.root.classList.remove("hidden");
|
|
2091
|
+
if (typeof overlay._saveBalloonState === "function") {
|
|
2092
|
+
overlay._saveBalloonState("overlay", "open");
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
},
|
|
2096
|
+
close: function() {
|
|
2097
|
+
const overlay = globalThis.__v_o__current;
|
|
2098
|
+
if (overlay && typeof overlay.close === "function") {
|
|
2099
|
+
overlay.close();
|
|
2100
|
+
}
|
|
2101
|
+
},
|
|
2102
|
+
// Get the current overlay instance if available
|
|
2103
|
+
getInstance: function() {
|
|
2104
|
+
return globalThis.__v_o__current || null;
|
|
2105
|
+
},
|
|
2106
|
+
// Send/report an error to the overlay
|
|
2107
|
+
sendError: sendError
|
|
2108
|
+
};
|
|
2109
|
+
|
|
2110
|
+
${o}
|
|
2111
|
+
`},"generateClientScript");var vd=Object.defineProperty,K=b((t,e)=>vd(t,"name",{value:e,configurable:!0}),"d");const wd=/at\s+[^(\s]+\s*\(([^:)]+):(\d+):(\d+)\)/,bd=/at\s+([^:)]+):(\d+):(\d+)/,Mo=/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/,St=K((t,e,n)=>{try{const o=n instanceof Error?n.message:String(n);t.config.logger.error(`${e}: ${o}`,{clear:!0,timestamp:!0})}catch{}},"logError"),yd=K(t=>({error:K(e=>t.config.logger.error(String(e??""),{clear:!0,timestamp:!0}),"error"),log:K(e=>t.config.logger.info(String(e??"")),"log")}),"createDevelopmentLogger"),xd=K(()=>{const t=new Map;return{recentErrors:t,shouldSkip:K(e=>{const n=Date.now(),o=t.get(e)||0;return n-o<qs?!0:(t.set(e,n),!1)},"shouldSkip")}},"createRecentErrorTracker"),Ao=K(t=>`${String(t?.message||"")}
|
|
2112
|
+
${String(t?.stack||"")}`,"createErrorSignature"),kd=K((t,e,n)=>async o=>{const r=o instanceof Error?o:new Error(String(o?.stack||o));try{t.ssrFixStacktrace(r)}catch(i){St(t,"[visulima:vite-overlay:server] ssrFixStacktrace failed",i)}try{const i=await Ma(r,t);Object.assign(r,i)}catch(i){St(t,"[visulima:vite-overlay:server] enhanceViteSsrError failed",i)}try{r.stack=Mt(Rn(String(r.stack||"")),e)}catch{}await n.error(Zi(r)),t.ws.send({err:r,type:"error"})},"createUnhandledRejectionHandler"),_d=K(async(t,e,n)=>{let o;e.push(Xi,xa(n),Qi);for await(const r of e.toSorted((i,s)=>s.priority-i.priority)){const{handle:i,name:s}=r;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:Ue(t?.originalFilePath??""),line:t?.originalFileLine??0,snippet:t?.originalSnippet??""});if(l===void 0)continue;const a=await Xn(l.header??"");o={body:await Xn(l.body??""),header:a};break}catch{continue}}return o},"findSolution"),tn=K(async(t,e,n,o,r,i,s)=>{const l=Yi(t);if(l.length===0)throw new Error("No errors found in the error stack");const a=await Promise.all(l.map(async(d,h)=>{let g=o;if(h>0){const m=(d?.stack?.split(`
|
|
2113
|
+
`)||[]).find(k=>k.includes("at ")&&!k.includes("node_modules"));if(m){const k=m.match(wd)||m.match(bd);if(k){const[,L,T,$]=k;g={column:Number.parseInt($||"0",10),file:L,line:Number.parseInt(T||"0",10),plugin:o?.plugin}}}}let f=g;h===0&&d?.sourceFile&&(f={...g,file:d.sourceFile});const v=await hd(d,e,h,s,f,l);return{hint:d?.hint,message:d?.message||"",name:d?.name||jr,stack:Mt(Rn(d?.stack||""),n),...v}})),c=await _d(a[0],i,n);return{errors:a,errorType:r,rootPath:n,solution:c}},"buildExtendedError"),Fn=K(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=Fn(t.cause)),e},"reconstructCauseChain"),$d=K((t,e,n,o,r,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=Ao(c);if(e(d))return;if(c.message?.includes("Failed to resolve import")){const h=c.message.match(Mo);if(h){const g=h[2],f=new Error(c.message);f.name="ImportResolutionError",f.stack=c.stack;const v=await tn(f,t,o,{column:c.loc?.column||1,file:g,line:c.loc?.line||1,plugin:c.plugin||"vite:import-analysis"},"server",r,i);l.err=v,n.set(JSON.stringify(v),Date.now())}}else{const h=String(c?.name||"Error"),g=String(c.message),f=String(c.stack),v=new Error(g);v.name=h,v.stack=`${h}: ${g}
|
|
2114
|
+
${Mt(f,o)}`,c.cause&&(v.cause=Fn(c.cause));const m=c.sourceFile?{column:c.column,file:c.sourceFile,line:c.line,plugin:c.plugin}:void 0,k=await tn(v,t,o,m,"server",r,i);l.err=k,n.set(JSON.stringify(k),Date.now())}}s(l,a)}catch(c){St(t,"[visulima:vite-overlay:server] ws.send intercept failed",c),a&&typeof a.send=="function"?a.send(l,a):s(l,a)}}},"setupWebSocketInterception"),Ed=K((t,e,n,o,r,i,s,l)=>{t.ws.on(Br,async(a,c)=>{if(!s)return;const d=a&&typeof a=="object"?a:{message:Us,stack:""},h=Ao(d);if(n(h))return;const g=String(d?.name||"Error"),f=String(d.message),v=String(d.stack),m=new Error(f);m.name=g,m.stack=`${g}: ${f}
|
|
2115
|
+
${Mt(v,r)}`,d.cause&&(m.cause=Fn(d.cause));try{const k=await tn(m,t,r,{column:d?.column,file:d?.file,line:d?.line,plugin:d?.plugin},"client",i,l);o.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"),c.send(L);return}const R=[`${Gn("red","[client]")} ${$.name}: ${$.message}`,...$.originalFilePath.includes("-extension://")?[]:["",Gn("blue",`${$.originalFilePath}:${$.originalFileLine}:${$.originalFileColumn}`),"",await Vi($.originalSnippet,Ue($.originalFilePath),"nord"),"","Raw stack trace:","",$.originalStack]];T.forEach((D,A)=>{const j=" ".repeat(2*A);R.push("",`${j}Caused by: `,"",`${j}${D.name}: ${D.message}`,`${j}at ${D.originalFilePath}:${D.originalFileLine}:${D.originalFileColumn}`)}),await e.error(R.join(`
|
|
2116
|
+
`)),c.send(L)}catch(k){St(t,"[visulima:vite-overlay:server] failed to build extended client error",k),c.send({err:{message:k.message,name:String(k.name||jr),stack:k.stack},type:"error"})}})},"setupHMRHandler"),Sd=K((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"),Cd=K((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"),Nd=K((t={})=>{let e,n,o;const r=(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=Sd(s.plugins,t?.reactPluginName),o=Cd(s.plugins,t?.vuePluginName)),e=l.mode||"development",s},configureServer(s){const l=s.config.root||process.cwd(),a=yd(s),{recentErrors:c,shouldSkip:d}=xd(),h=s.transformRequest.bind(s);s.transformRequest=async(v,m)=>{try{return await h(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 g;n?g="react":o&&(g="vue"),$d(s,d,c,l,t?.solutionFinders??[],g),Ed(s,a,d,c,l,t?.solutionFinders??[],r,g);const f=kd(s,l,a);process.on("unhandledRejection",f),s.httpServer?.on("close",()=>{process.off("unhandledRejection",f)})},enforce:"pre",name:Ns,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 oa(s,c,t?.overlay?.balloon,t?.overlay?.customCSS)},transformIndexHtml(){return{html:"",tags:[{attrs:{type:"module"},children:fd(e,i,t?.overlay?.balloon),injectTo:"head",tag:"script"}]}}}},"errorOverlayPlugin");export{Nd as default};
|