@visulima/ono 2.0.0-alpha.5 → 2.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var Io=Object.defineProperty;var f=(e,t)=>Io(e,"name",{value:t,configurable:!0});import{createRequire as zo}from"node:module";import{parseStacktrace as Ut}from"@visulima/error/stacktrace";import{renderError as Ro,getErrorCauses as jo}from"@visulima/error/error";import{ruleBasedFinder as Zt,errorHintFinder as Gt}from"@visulima/error/solution";import{s as S,a as E,b as Mo,d as Oo,c as Po,n as kt,e as xt,f as No}from"./packem_shared/clipboard-BS03XwiW.js";import Ve from"isomorphic-dompurify";import{t as qo,g as Wo}from"./packem_shared/process-B37didfB.js";import{parseStacktrace as at,codeFrame as it}from"@visulima/error";import Vt from"@visulima/error/solution/ai/prompt";const Bo=zo(import.meta.url),ie=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Re=f(e=>{if(typeof ie<"u"&&ie.versions&&ie.versions.node){const[t,o]=ie.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return ie.getBuiltinModule(e)}return Bo(e)},"__cjs_getBuiltinModule"),{createRequire:Lo}=Re("node:module"),{readFile:_o}=Re("node:fs/promises"),{fileURLToPath:Fo}=Re("node:url"),{createHash:Ho}=Re("node:crypto");var Uo=Object.defineProperty,R=f((e,t)=>Uo(e,"name",{value:t,configurable:!0}),"y$2"),Zo=Object.defineProperty,$=R((e,t)=>Zo(e,"name",{value:t,configurable:!0}),"w");const Go=Lo(import.meta.url),Y=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,st=$(e=>{if(typeof Y<"u"&&Y.versions&&Y.versions.node){const[t,o]=Y.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Y.getBuiltinModule(e)}return Go(e)},"__cjs_getBuiltinModule"),oe=Y,{execFileSync:Vo}=st("node:child_process"),xe=st("node:fs"),Ko=st("node:tty");var Qo=Object.defineProperty,Jo=$((e,t)=>Qo(e,"name",{value:t,configurable:!0}),"p$2"),Xo=Object.defineProperty,Kt=Jo((e,t)=>Xo(e,"name",{value:t,configurable:!0}),"e"),Yo=Object.defineProperty,er=Kt((e,t)=>Yo(e,"name",{value:t,configurable:!0}),"E");const Qt=String.raw,yt=Qt`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,tr=er(()=>new RegExp(Qt`\p{RI}{2}|(?)${yt}(?:\u200D${yt})*`,"gu"),"default");var or=Object.defineProperty,rr=Kt((e,t)=>or(e,"name",{value:t,configurable:!0}),"p");const re=new Set(["\x1B",""]),je="\x07",Jt="[",lt="m",Ae="]8;;",nr=39,ar=/[\u200B\uFEFF\u2060-\u2064]/g,ir=new RegExp(`(?:\\${Jt}(?<code>\\d+)m|\\${Ae}(?<uri>.*)${je})`),sr=Object.freeze(new Map([[0,0],[1,22],[2,22],[3,23],[4,24],[7,27],[8,28],[9,29],[30,39],[31,39],[32,39],[33,39],[34,39],[35,39],[36,39],[37,39],[40,49],[41,49],[42,49],[43,49],[44,49],[45,49],[46,49],[47,49],[90,39]])),se=/[\u001B\u009B](?:[[()#;?]{0,10}(?:\d{1,4}(?:;\d{0,4})*)?[0-9A-ORZcf-nqry=><]|\]8;;[^\u0007\u001B]{0,100}(?:\u0007|\u001B\\))/g,ye=/[\u0000-\u0008\n-\u001F\u007F-\u009F]{1,1000}/y,Se=tr();rr(e=>e.replace(Se,""),"stripEmoji");var lr=Object.defineProperty,P=$((e,t)=>lr(e,"name",{value:t,configurable:!0}),"f$1"),cr=Object.defineProperty,j=P((e,t)=>cr(e,"name",{value:t,configurable:!0}),"c"),dr=Object.defineProperty,_e=j((e,t)=>dr(e,"name",{value:t,configurable:!0}),"E");function H(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}f(H,"F$1");R(H,"M");$(H,"M$2");P(H,"E");j(H,"A");_e(H,"isAmbiguous");function U(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}f(U,"M$2");R(U,"N");$(U,"A$1");P(U,"C");j(U,"D");_e(U,"isFullWidth");function Z(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}f(Z,"N$1");R(Z,"L");$(Z,"N$3");P(Z,"j");j(Z,"C");_e(Z,"isWide");function ne(e){return H(e)?"ambiguous":U(e)?"fullwidth":e===8361||e>=65377&&e<=65470||e>=65474&&e<=65479||e>=65482&&e<=65487||e>=65490&&e<=65495||e>=65498&&e<=65500||e>=65512&&e<=65518?"halfwidth":e>=32&&e<=126||e===162||e===163||e===165||e===166||e===172||e===175||e>=10214&&e<=10221||e===10629||e===10630?"narrow":Z(e)?"wide":"neutral"}f(ne,"z");R(ne,"J");$(ne,"F$1");P(ne,"R");j(ne,"t");_e(ne,"getCategory");var pr=Object.defineProperty,ct=j((e,t)=>pr(e,"name",{value:t,configurable:!0}),"e");function G(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}f(G,"L$2");R(G,"_");$(G,"j$3");P(G,"y");j(G,"r");ct(G,"validate");function V(e){return G(e),ne(e)}f(V,"P$1");R(V,"P");$(V,"y$3");P(V,"v");j(V,"eastAsianWidthType");ct(V,"eastAsianWidthType");function ge(e,{ambiguousAsWide:t=!1}={}){return G(e),U(e)||Z(e)||t&&H(e)?2:1}f(ge,"Q");R(ge,"le");$(ge,"_$1");P(ge,"J");j(ge,"eastAsianWidth");ct(ge,"eastAsianWidth");var hr=Object.defineProperty,Fe=j((e,t)=>hr(e,"name",{value:t,configurable:!0}),"d");const $t=new Map,$e=/(?:[\u0020-\u007E\u00A0-\u00FF](?!\uFE0F)){1,1000}/y,Ce=Fe(e=>e>=32&&e<=126?"latin":e===8203||e===8204||e===8205||e===8288?"zero":e<=31||e>=127&&e<=159?"control":e>=160&&e<=255||e>=9472&&e<=9599?"latin":e>=4352&&e<=4607||e>=11904&&e<=40959||e>=44032&&e<=55215||e>=63744&&e<=64255||e>=65280&&e<=65519&&!(e>=65377&&e<=65439)||e>=12352&&e<=12543?"wide":e===8230?"latin":"other","getCharType"),ur=Fe((e,t)=>{const o=Math.floor(e/65536),n=e%65536;let r=$t.get(o);if(r||(r=new Map,$t.set(o,r)),r.has(n))return r.get(n);let i;if(Ce(e)==="latin")i=t.width.regular;else if(Ce(e)==="control")i=t.width.control;else if(Ce(e)==="wide")i=t.width.wide;else switch(V(e)){case"ambiguous":{i=t.width.ambiguousIsNarrow?t.width.regular:t.width.wide;break}case"fullwidth":{i=t.width.fullWidth;break}case"wide":{i=t.width.wide;break}default:i=t.width.regular}return r.set(n,i),i},"getCachedCharWidth"),gr=Fe(e=>e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071||e>=917760&&e<=917999||e>=65024&&e<=65039||e>=3633&&e<=3642||e>=3655&&e<=3662||e>=3761&&e<=3769||e>=3771&&e<=3772||e>=3784&&e<=3789||e>=2304&&e<=2307||e>=2362&&e<=2383||e>=2385&&e<=2391||e>=2402&&e<=2403||e>=2433&&e<=2435||e>=2492&&e<=2500||e>=2509&&e<=2509||e>=2561&&e<=2563||e>=2620&&e<=2637||e>=1611&&e<=1631||e>=1648&&e<=1648||e>=1750&&e<=1773||e>=2276&&e<=2302||e>=1425&&e<=1469||e>=1471&&e<=1471||e>=1473&&e<=1474||e>=1476&&e<=1477||e>=1479&&e<=1479||e>=3893&&e<=3893||e>=3895&&e<=3895||e>=3897&&e<=3897||e>=3953&&e<=3966||e>=3968&&e<=3972||e>=3974&&e<=3975?!0:e>=768&&e<=777||e>=803&&e<=803,"isCombiningCharacter"),Ke=Fe((e,t={})=>{if(!e||e.length===0)return{ellipsed:!1,index:0,truncated:!1,width:0};const o={truncation:{countAnsiEscapeCodes:t.countAnsiEscapeCodes??!1,ellipsis:t.ellipsis??"",ellipsisWidth:t.ellipsisWidth??(t.ellipsis?Ke(t.ellipsis,{...t,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width:0),limit:t.limit??Number.POSITIVE_INFINITY},width:{ambiguousIsNarrow:t.ambiguousIsNarrow??!1,ansi:t.ansiWidth??0,control:t.controlWidth??0,emoji:t.emojiWidth??2,fullWidth:t.fullWidth??2,halfWidth:t.halfWidth??1,regular:t.regularWidth??1,tab:t.tabWidth??8,wide:t.wideWidth??2}},n=Math.max(0,o.truncation.limit-o.truncation.ellipsisWidth),{length:r}=e,i=r>1e4;let a=0,l=0,s=r,d=!1;const c=e.includes("\x1B")||e.includes("");for(;a<r;){if(c&&(e[a]==="\x1B"||e[a]==="")){if(e.startsWith("\x1B]8;;",a)){const w="\x1B]8;;\x07",y=w.length,D=e.indexOf("\x07",a+5);if(D!==-1){const _=e.indexOf(w,D+1);if(_!==-1){const N=_+y,I=e.slice(D+1,_).replace(se,""),ke=Ke(I,{ambiguousIsNarrow:o.width.ambiguousIsNarrow,ansiWidth:o.width.ansi,controlWidth:o.width.control,countAnsiEscapeCodes:!1,ellipsis:o.truncation.ellipsis,ellipsisWidth:o.truncation.ellipsisWidth,emojiWidth:o.width.emoji,fullWidth:o.width.fullWidth,halfWidth:o.width.halfWidth,limit:Math.max(0,n-l),regularWidth:o.width.regular,tabWidth:o.width.tab,wideWidth:o.width.wide}),ae=ke.width;if(ke.truncated)d=!0,s=Math.min(s,a);else if(l+ae>n&&(s=Math.min(s,a),d=!0,l+ae>o.truncation.limit))break;if(l+=ae,a=N,d&&l>=o.truncation.limit)break;continue}}}if(se.lastIndex=a,se.test(e)){const w=se.lastIndex-a,y=o.truncation.countAnsiEscapeCodes?w:o.width.ansi;if(l+y>n&&(s=Math.min(s,a),l+y>o.truncation.limit)){d=!0;break}l+=y,a=se.lastIndex;continue}}const u=e.codePointAt(a);if(u===8203||u===65279||u>=8288&&u<=8292){a+=1;continue}if(u===9){if(l+o.width.tab>n&&(s=Math.min(s,a),l+o.width.tab>o.truncation.limit)){d=!0;break}l+=o.width.tab,a+=1;continue}if($e.lastIndex=a,$e.test(e)){const w=($e.lastIndex-a)*o.width.regular;if(l+w>n){const y=Math.floor((n-l)/o.width.regular);if(s=Math.min(s,a+y),l+w>o.truncation.limit){d=!0;break}}l+=w,a=$e.lastIndex;continue}if((u<=31||u>=127&&u<=159)&&(ye.lastIndex=a,ye.test(e))){const w=(ye.lastIndex-a)*o.width.control;if(l+w>n&&(s=Math.min(s,a+Math.floor((n-l)/o.width.control)),l+w>o.truncation.limit)){d=!0;break}l+=w,a=ye.lastIndex;continue}if(Se.lastIndex=a,Se.test(e)){if(l+o.width.emoji>n&&(s=Math.min(s,a),l+o.width.emoji>o.truncation.limit)){d=!0;break}l+=o.width.emoji,a=Se.lastIndex;continue}const m=e.codePointAt(a)??0;if(gr(m)){a+=m>65535?2:1;continue}let g;if(i)g=ur(m,o);else switch(Ce(m)){case"control":{g=o.width.control;break}case"latin":{g=o.width.regular;break}case"wide":{g=o.width.wide;break}case"zero":{g=0;break}default:switch(V(m)){case"ambiguous":{g=o.width.ambiguousIsNarrow?o.width.regular:o.width.wide;break}case"fullwidth":{g=o.width.fullWidth;break}case"wide":{g=o.width.wide;break}default:g=o.width.regular}}if(l+g>n&&(s=Math.min(s,a),l+g>o.truncation.limit)){d=!0;break}l+=g,a+=m>65535?2:1}let h=l,p=!1;return d&&o.truncation.limit>=o.truncation.ellipsisWidth&&(h=o.truncation.limit,p=!0),{ellipsed:p,index:d?s:r,truncated:d,width:h}},"getStringTruncatedWidth");var mr=Object.defineProperty,fr=$((e,t)=>mr(e,"name",{value:t,configurable:!0}),"i$1"),wr=Object.defineProperty,br=fr((e,t)=>wr(e,"name",{value:t,configurable:!0}),"e"),vr=Object.defineProperty,kr=br((e,t)=>vr(e,"name",{value:t,configurable:!0}),"r");const k=kr((e,t={})=>Ke(e,{...t,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width,"getStringWidth");var xr=Object.defineProperty,yr=$((e,t)=>xr(e,"name",{value:t,configurable:!0}),"g"),$r=Object.defineProperty,Er=yr((e,t)=>$r(e,"name",{value:t,configurable:!0}),"s"),Sr=Object.defineProperty,dt=Er((e,t)=>Sr(e,"name",{value:t,configurable:!0}),"n");const Cr=dt((e,t)=>Math.floor((e-t)/2),"halfDiff"),Tr=dt((e,t)=>e-t,"fullDiff"),Et=dt((e,t={})=>{const o=t.align??"center";if(o==="left")return e;const n=t.split??`
|
|
2
|
-
`,
|
|
3
|
-
`),
|
|
4
|
-
`?(
|
|
5
|
-
`&&(o&&d&&(t+=
|
|
1
|
+
var Po=Object.defineProperty;var f=(e,t)=>Po(e,"name",{value:t,configurable:!0});import{createRequire as No}from"node:module";import{parseStacktrace as Qt}from"@visulima/error/stacktrace";import{renderError as Ho,getErrorCauses as Uo}from"@visulima/error/error";import{ruleBasedFinder as Jt,errorHintFinder as Xt}from"@visulima/error/solution";import{s as E,a as $,b as Vo,d as Ko,c as Qo,n as Et,e as St,f as Jo}from"./packem_shared/clipboard-CzFaiOZC.js";import Ve from"isomorphic-dompurify";import{t as Xo,g as Yo}from"./packem_shared/process-B37didfB.js";import{parseStacktrace as at,codeFrame as it}from"@visulima/error";import Yt from"@visulima/error/solution/ai/prompt";const qo=No(import.meta.url),se=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Le=f(e=>{if(typeof se<"u"&&se.versions&&se.versions.node){const[t,o]=se.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return se.getBuiltinModule(e)}return qo(e)},"__cjs_getBuiltinModule"),{createRequire:Wo}=Le("node:module"),{readFile:Zo}=Le("node:fs/promises"),{fileURLToPath:Go}=Le("node:url"),{createHash:er}=Le("node:crypto");var tr=Object.defineProperty,P=f((e,t)=>tr(e,"name",{value:t,configurable:!0}),"y$3"),or=Object.defineProperty,S=P((e,t)=>or(e,"name",{value:t,configurable:!0}),"w");const rr=Wo(import.meta.url),X=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,st=S(e=>{if(typeof X<"u"&&X.versions&&X.versions.node){const[t,o]=X.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return X.getBuiltinModule(e)}return rr(e)},"__cjs_getBuiltinModule"),W=X,{execFileSync:nr}=st("node:child_process"),de=st("node:fs"),ar=st("node:tty");var ir=Object.defineProperty,sr=S((e,t)=>ir(e,"name",{value:t,configurable:!0}),"p$3"),lr=Object.defineProperty,eo=sr((e,t)=>lr(e,"name",{value:t,configurable:!0}),"e"),cr=Object.defineProperty,dr=eo((e,t)=>cr(e,"name",{value:t,configurable:!0}),"E");const to=String.raw,Ct=to`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,pr=dr(()=>new RegExp(to`\p{RI}{2}|(?)${Ct}(?:\u200D${Ct})*`,"gu"),"default");var ur=Object.defineProperty,hr=eo((e,t)=>ur(e,"name",{value:t,configurable:!0}),"p");const te=new Set(["\x1B",""]),je="\x07",oo="[",lt="m",Ae="]8;;",gr=39,mr=/[\u200B\uFEFF\u2060-\u2064]/g,fr=new RegExp(`(?:\\${oo}(?<code>\\d+)m|\\${Ae}(?<uri>.*)${je})`),wr=Object.freeze(new Map([[0,0],[1,22],[2,22],[3,23],[4,24],[7,27],[8,28],[9,29],[30,39],[31,39],[32,39],[33,39],[34,39],[35,39],[36,39],[37,39],[40,49],[41,49],[42,49],[43,49],[44,49],[45,49],[46,49],[47,49],[90,39]])),le=/[\u001B\u009B](?:[[()#;?]{0,10}(?:\d{1,4}(?:;\d{0,4})*)?[0-9A-ORZcf-nqry=><]|\]8;;[^\u0007\u001B]{0,100}(?:\u0007|\u001B\\))/g,ye=/[\u0000-\u0008\n-\u001F\u007F-\u009F]{1,1000}/y,Se=pr();hr(e=>e.replace(Se,""),"stripEmoji");var br=Object.defineProperty,oe=S((e,t)=>br(e,"name",{value:t,configurable:!0}),"m$3"),vr=Object.defineProperty,_=oe((e,t)=>vr(e,"name",{value:t,configurable:!0}),"c");const ct=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],dt=[12288,12288,65281,65376,65504,65510],pt=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],ut=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],_e=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var xr=Object.defineProperty,kr=_((e,t)=>xr(e,"name",{value:t,configurable:!0}),"r$2");const me=kr((e,t)=>{let o=0,r=Math.floor(e.length/2)-1;for(;o<=r;){const n=Math.floor((o+r)/2),a=n*2;if(t<e[a])r=n-1;else if(t>e[a+1])o=n+1;else return!0}return!1},"isInRange");var yr=Object.defineProperty,Z=_((e,t)=>yr(e,"name",{value:t,configurable:!0}),"r$1");const $r=ct[0],Er=ct.at(-1),Sr=dt[0],Cr=dt.at(-1),Tr=pt[0],Ar=pt.at(-1),Dr=ut[0],Ir=ut.at(-1),zr=_e[0],Br=_e.at(-1),Tt=19968,[Rr,Lr]=re(_e);function re(e){let t=e[0],o=e[1];for(let r=0;r<e.length;r+=2){const n=e[r],a=e[r+1];if(Tt>=n&&Tt<=a)return[n,a];a-n>o-t&&(t=n,o=a)}return[t,o]}f(re,"H$1");P(re,"Y");S(re,"B$2");oe(re,"H");_(re,"N");Z(re,"findWideFastPathRange");const ro=Z(e=>e<$r||e>Er?!1:me(ct,e),"isAmbiguous"),no=Z(e=>e<Sr||e>Cr?!1:me(dt,e),"isFullWidth"),jr=Z(e=>e<Tr||e>Ar?!1:me(pt,e),"isHalfWidth"),_r=Z(e=>e<Dr||e>Ir?!1:me(ut,e),"isNarrow"),ao=Z(e=>e>=Rr&&e<=Lr?!0:e<zr||e>Br?!1:me(_e,e),"isWide");function ne(e){return ro(e)?"ambiguous":no(e)?"fullwidth":jr(e)?"halfwidth":_r(e)?"narrow":ao(e)?"wide":"neutral"}f(ne,"z$1");P(ne,"Z");S(ne,"$$1");oe(ne,"J");_(ne,"getCategory");Z(ne,"getCategory");var Fr=Object.defineProperty,ht=_((e,t)=>Fr(e,"name",{value:t,configurable:!0}),"e");function G(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}f(G,"C$2");P(G,"P");S(G,"N$3");oe(G,"F");_(G,"r");ht(G,"validate");function V(e){return G(e),ne(e)}f(V,"M$1");P(V,"_");S(V,"y$3");oe(V,"P");_(V,"eastAsianWidthType");ht(V,"eastAsianWidthType");function fe(e,{ambiguousAsWide:t=!1}={}){return G(e),no(e)||ao(e)||t&&ro(e)?2:1}f(fe,"Q$1");P(fe,"fe");S(fe,"J$1");oe(fe,"w1");_(fe,"eastAsianWidth");ht(fe,"eastAsianWidth");var Mr=Object.defineProperty,Fe=_((e,t)=>Mr(e,"name",{value:t,configurable:!0}),"d");const At=new Map,$e=/(?:[\u0020-\u007E\u00A0-\u00FF](?!\uFE0F)){1,1000}/y,Ce=Fe(e=>e>=32&&e<=126?"latin":e===8203||e===8204||e===8205||e===8288?"zero":e<=31||e>=127&&e<=159?"control":e>=160&&e<=255||e>=9472&&e<=9599?"latin":e>=4352&&e<=4607||e>=11904&&e<=40959||e>=44032&&e<=55215||e>=63744&&e<=64255||e>=65280&&e<=65519&&!(e>=65377&&e<=65439)||e>=12352&&e<=12543?"wide":e===8230?"latin":"other","getCharType"),Or=Fe((e,t)=>{const o=Math.floor(e/65536),r=e%65536;let n=At.get(o);if(n||(n=new Map,At.set(o,n)),n.has(r))return n.get(r);let a;if(Ce(e)==="latin")a=t.width.regular;else if(Ce(e)==="control")a=t.width.control;else if(Ce(e)==="wide")a=t.width.wide;else switch(V(e)){case"ambiguous":{a=t.width.ambiguousIsNarrow?t.width.regular:t.width.wide;break}case"fullwidth":{a=t.width.fullWidth;break}case"wide":{a=t.width.wide;break}default:a=t.width.regular}return n.set(r,a),a},"getCachedCharWidth"),Pr=Fe(e=>e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071||e>=917760&&e<=917999||e>=65024&&e<=65039||e>=3633&&e<=3642||e>=3655&&e<=3662||e>=3761&&e<=3769||e>=3771&&e<=3772||e>=3784&&e<=3789||e>=2304&&e<=2307||e>=2362&&e<=2383||e>=2385&&e<=2391||e>=2402&&e<=2403||e>=2433&&e<=2435||e>=2492&&e<=2500||e>=2509&&e<=2509||e>=2561&&e<=2563||e>=2620&&e<=2637||e>=1611&&e<=1631||e>=1648&&e<=1648||e>=1750&&e<=1773||e>=2276&&e<=2302||e>=1425&&e<=1469||e>=1471&&e<=1471||e>=1473&&e<=1474||e>=1476&&e<=1477||e>=1479&&e<=1479||e>=3893&&e<=3893||e>=3895&&e<=3895||e>=3897&&e<=3897||e>=3953&&e<=3966||e>=3968&&e<=3972||e>=3974&&e<=3975?!0:e>=768&&e<=777||e>=803&&e<=803,"isCombiningCharacter"),Ke=Fe((e,t={})=>{if(!e||e.length===0)return{ellipsed:!1,index:0,truncated:!1,width:0};const o={truncation:{countAnsiEscapeCodes:t.countAnsiEscapeCodes??!1,ellipsis:t.ellipsis??"",ellipsisWidth:t.ellipsisWidth??(t.ellipsis?Ke(t.ellipsis,{...t,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width:0),limit:t.limit??Number.POSITIVE_INFINITY},width:{ambiguousIsNarrow:t.ambiguousIsNarrow??!1,ansi:t.ansiWidth??0,control:t.controlWidth??0,emoji:t.emojiWidth??2,fullWidth:t.fullWidth??2,halfWidth:t.halfWidth??1,regular:t.regularWidth??1,tab:t.tabWidth??8,wide:t.wideWidth??2}},r=Math.max(0,o.truncation.limit-o.truncation.ellipsisWidth),{length:n}=e,a=n>1e4;let i=0,l=0,s=n,d=!1;const c=e.includes("\x1B")||e.includes("");for(;i<n;){if(c&&(e[i]==="\x1B"||e[i]==="")){if(e.startsWith("\x1B]8;;",i)){const w="\x1B]8;;\x07",y=w.length,D=e.indexOf("\x07",i+5);if(D!==-1){const L=e.indexOf(w,D+1);if(L!==-1){const ae=L+y,F=e.slice(D+1,L).replace(le,""),z=Ke(F,{ambiguousIsNarrow:o.width.ambiguousIsNarrow,ansiWidth:o.width.ansi,controlWidth:o.width.control,countAnsiEscapeCodes:!1,ellipsis:o.truncation.ellipsis,ellipsisWidth:o.truncation.ellipsisWidth,emojiWidth:o.width.emoji,fullWidth:o.width.fullWidth,halfWidth:o.width.halfWidth,limit:Math.max(0,r-l),regularWidth:o.width.regular,tabWidth:o.width.tab,wideWidth:o.width.wide}),ie=z.width;if(z.truncated)d=!0,s=Math.min(s,i);else if(l+ie>r&&(s=Math.min(s,i),d=!0,l+ie>o.truncation.limit))break;if(l+=ie,i=ae,d&&l>=o.truncation.limit)break;continue}}}if(le.lastIndex=i,le.test(e)){const w=le.lastIndex-i,y=o.truncation.countAnsiEscapeCodes?w:o.width.ansi;if(l+y>r&&(s=Math.min(s,i),l+y>o.truncation.limit)){d=!0;break}l+=y,i=le.lastIndex;continue}}const h=e.codePointAt(i);if(h===8203||h===65279||h>=8288&&h<=8292){i+=1;continue}if(h===9){if(l+o.width.tab>r&&(s=Math.min(s,i),l+o.width.tab>o.truncation.limit)){d=!0;break}l+=o.width.tab,i+=1;continue}if($e.lastIndex=i,$e.test(e)){const w=($e.lastIndex-i)*o.width.regular;if(l+w>r){const y=Math.floor((r-l)/o.width.regular);if(s=Math.min(s,i+y),l+w>o.truncation.limit){d=!0;break}}l+=w,i=$e.lastIndex;continue}if((h<=31||h>=127&&h<=159)&&(ye.lastIndex=i,ye.test(e))){const w=(ye.lastIndex-i)*o.width.control;if(l+w>r&&(s=Math.min(s,i+Math.floor((r-l)/o.width.control)),l+w>o.truncation.limit)){d=!0;break}l+=w,i=ye.lastIndex;continue}if(Se.lastIndex=i,Se.test(e)){if(l+o.width.emoji>r&&(s=Math.min(s,i),l+o.width.emoji>o.truncation.limit)){d=!0;break}l+=o.width.emoji,i=Se.lastIndex;continue}const m=e.codePointAt(i)??0;if(Pr(m)){i+=m>65535?2:1;continue}let g;if(a)g=Or(m,o);else switch(Ce(m)){case"control":{g=o.width.control;break}case"latin":{g=o.width.regular;break}case"wide":{g=o.width.wide;break}case"zero":{g=0;break}default:switch(V(m)){case"ambiguous":{g=o.width.ambiguousIsNarrow?o.width.regular:o.width.wide;break}case"fullwidth":{g=o.width.fullWidth;break}case"wide":{g=o.width.wide;break}default:g=o.width.regular}}if(l+g>r&&(s=Math.min(s,i),l+g>o.truncation.limit)){d=!0;break}l+=g,i+=m>65535?2:1}let u=l,p=!1;return d&&o.truncation.limit>=o.truncation.ellipsisWidth&&(u=o.truncation.limit,p=!0),{ellipsed:p,index:d?s:n,truncated:d,width:u}},"getStringTruncatedWidth");var Nr=Object.defineProperty,qr=S((e,t)=>Nr(e,"name",{value:t,configurable:!0}),"i"),Wr=Object.defineProperty,Hr=qr((e,t)=>Wr(e,"name",{value:t,configurable:!0}),"e"),Ur=Object.defineProperty,Zr=Hr((e,t)=>Ur(e,"name",{value:t,configurable:!0}),"r");const x=Zr((e,t={})=>Ke(e,{...t,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width,"getStringWidth");var Gr=Object.defineProperty,Vr=S((e,t)=>Gr(e,"name",{value:t,configurable:!0}),"g"),Kr=Object.defineProperty,Qr=Vr((e,t)=>Kr(e,"name",{value:t,configurable:!0}),"s"),Jr=Object.defineProperty,gt=Qr((e,t)=>Jr(e,"name",{value:t,configurable:!0}),"n");const Xr=gt((e,t)=>Math.floor((e-t)/2),"halfDiff"),Yr=gt((e,t)=>e-t,"fullDiff"),Dt=gt((e,t={})=>{const o=t.align??"center";if(o==="left")return e;const r=t.split??`
|
|
2
|
+
`,n=t.pad??" ",a=o==="right"?Yr:Xr;let i=!1;Array.isArray(e)||(i=!0,e=String(e).split(r));let l,s=0;return e=e.map(d=>(d=String(d),l=x(d,t.stringWidthOptions),s=Math.max(l,s),{str:d,width:l})).map(d=>Array.from({length:a(s,d.width)+1}).join(n)+d.str),i?e.join(r):e},"alignText");var en=Object.defineProperty,io=S((e,t)=>en(e,"name",{value:t,configurable:!0}),"x$1"),tn=Object.defineProperty,K=io((e,t)=>tn(e,"name",{value:t,configurable:!0}),"d"),on=Object.defineProperty,rn=K((e,t)=>on(e,"name",{value:t,configurable:!0}),"a$2");class so{static{f(this,"Nt")}static{P(this,"je")}static{S(this,"T")}static{io(this,"w")}static{K(this,"u")}static{rn(this,"AnsiStateTracker")}activeForeground=void 0;activeBackground=void 0;activeFormatting=[];processEscape(t){const o=/\x1B\[(\d+)m/.exec(t);if(!o)return;const r=Number.parseInt(o[1],10);switch(r){case 0:{this.activeForeground=void 0,this.activeBackground=void 0,this.activeFormatting=[];break}case 39:{this.activeForeground=void 0;break}case 49:{this.activeBackground=void 0;break}default:if(r>=30&&r<=37||r>=90&&r<=97)this.activeForeground=t;else if(r>=40&&r<=47||r>=100&&r<=107)this.activeBackground=t;else if([1,2,3,4,7,8,9].includes(r))this.activeFormatting.push(t);else if([22,23,24,27,28,29].includes(r)){const n={22:"[1m",23:"[3m",24:"[4m",27:"[7m",28:"[8m",29:"[9m"}[r];n&&(this.activeFormatting=this.activeFormatting.filter(a=>!a.includes(n)))}}}getStartEscapesForAllActiveAttributes(){return[this.activeBackground,this.activeForeground,...this.activeFormatting].filter(Boolean).join("")}getEndEscapesForAllActiveAttributes(){const t=[];if(this.activeFormatting.length>0){const o={"\x1B[1m":"\x1B[22m","\x1B[2m":"\x1B[22m","\x1B[3m":"\x1B[23m","\x1B[4m":"\x1B[24m","\x1B[7m":"\x1B[27m","\x1B[8m":"\x1B[28m","\x1B[9m":"\x1B[29m"};[...this.activeFormatting].toReversed().forEach(r=>{const n=o[r];n&&t.push(n)})}return this.activeForeground&&t.push("\x1B[39m"),this.activeBackground&&t.push("\x1B[49m"),t.join("")}}var nn=Object.defineProperty,lo=K((e,t)=>nn(e,"name",{value:t,configurable:!0}),"o");const co=lo((e,t)=>{if(!te.has(e[t]))return{isInsideEscape:!1,isInsideLinkEscape:!1};const o=!0,r=e.slice(t+1,t+1+Ae.length).join("")===Ae;return{isInsideEscape:o,isInsideLinkEscape:r}},"checkEscapeSequence"),an=lo((e,t={})=>{const o=new so;let r="",n=!1,a=!1,i="",l="",s=!1;const d=[...e];for(let c=0;c<d.length;c++){const u=d[c];if(u&&te.has(u)){if(r){const m=t.getWidth?.(r)??0,g={isEscapeSequence:!1,isGrapheme:!0,text:r,width:m};if(s&&(g.isHyperlink=!0,g.hyperlinkUrl=l),t.onSegment?.(g,o)===!1)return;r=""}if(n=!0,i=u,a=co(d,c).isInsideLinkEscape,a){let m=c+1;for(l="";m<d.length;){const w=d[m];if(w===je)break;l+=w,m+=1}l=l.slice(4);const g={hyperlinkUrl:l,isEscapeSequence:!0,isGrapheme:!1,isHyperlink:!0,isHyperlinkStart:!0,width:0};if(t.onSegment?.(g,o)===!1)return;c=m,s=!0,n=!1,a=!1,i="";continue}if(c+1<d.length&&d[c+1]==="\\"&&s){const m={isEscapeSequence:!0,isGrapheme:!1,isHyperlink:!0,isHyperlinkEnd:!0,width:0};if(t.onSegment?.(m,o)===!1)return;s=!1,l="",c+=1,n=!1,i="";continue}}if(n){if(i!==u&&(i+=u),u===lt){n=!1,o.processEscape(i);const m={isEscapeSequence:!0,isGrapheme:!1,text:i,width:0};if(t.onSegment?.(m,o)===!1)return;i=""}continue}r+=u;const p=t.getWidth?.(r)??0,h={isEscapeSequence:!1,isGrapheme:!0,text:r,width:p};if(s&&(h.isHyperlink=!0,h.hyperlinkUrl=l),t.onSegment?.(h,o)===!1)return;r=""}if(r){const c=t.getWidth?.(r)??0,u={isEscapeSequence:!1,isGrapheme:!0,text:r,width:c};s&&(u.isHyperlink=!0,u.hyperlinkUrl=l),t.onSegment?.(u,o)}if(i){const c={isEscapeSequence:!0,isGrapheme:!1,text:i,width:0};t.onSegment?.(c,o)}},"processAnsiString");var sn=Object.defineProperty,ln=K((e,t)=>sn(e,"name",{value:t,configurable:!0}),"t$1");const It=ln(e=>`${te.values().next().value}${oo}${e}${lt}`,"wrapAnsiCode");var cn=Object.defineProperty,dn=K((e,t)=>cn(e,"name",{value:t,configurable:!0}),"t");const zt=dn(e=>`${te.values().next().value}${Ae}${e}${je}`,"wrapAnsiHyperlink");var pn=Object.defineProperty,un=K((e,t)=>pn(e,"name",{value:t,configurable:!0}),"l");const hn=un(e=>{if(e.length===0)return"";if(e.length===1)return e[0];let t="",o,r;const n=e.join(`
|
|
3
|
+
`),a=[...n];let i=0;for(const[l,s]of a.entries()){if(t+=s,te.has(s)){const c=fr.exec(n.slice(i))?.groups??{};if(c.code!==void 0){const u=Number.parseFloat(c.code);o=u===gr?void 0:u}else c.uri!==void 0&&(r=c.uri.length===0?void 0:c.uri)}const d=wr.get(Number(o));a[l+1]===`
|
|
4
|
+
`?(r&&(t+=zt("")),o&&d&&(t+=It(d))):s===`
|
|
5
|
+
`&&(o&&d&&(t+=It(o)),r&&(t+=zt(r))),i+=s.length}return t},"preserveAnsi");var gn=Object.defineProperty,O=K((e,t)=>gn(e,"name",{value:t,configurable:!0}),"h");const He=O(e=>{if(!e.includes("\x1B"))return e;let t=e;return e.includes("\x1B[30m")&&(t+="\x1B[39m"),e.includes("\x1B[42m")&&(t+="\x1B[49m"),t},"resetAnsiAtLineBreak"),H=O(e=>{const t=e.split(" ");let o=t.length;for(;o>0&&x(t[o-1])===0;)o--;return o===t.length?e:t.slice(0,o).join(" ")+t.slice(o).join("")},"stringVisibleTrimSpacesRight"),po=O((e,t,o)=>{if(e.length===0)return[""];if(t<=0)return[e];const r=[],n=new so;let a="",i=0,l=!1,s=!1,d="",c=0;for(;c<e.length;){const u=e[c];if(te.has(u)){l=!0,d=u,a+=u,s=co([...e],c).isInsideLinkEscape,c+=1;continue}if(l){d+=u,a+=u,s?u===je&&(l=s=!1):u===lt&&(l=!1,n.processEscape(d)),c+=1;continue}const p=x(u),h=u===" ";if(p===0){a+=u,c+=1;continue}if(i+p>t&&(a&&r.push(a+n.getEndEscapesForAllActiveAttributes()),a=n.getStartEscapesForAllActiveAttributes(),i=x(a),h&&o)){for(;c<e.length&&e[c]===" ";)c+=1;continue}if(a+=u,i+=p,i===t&&c<e.length-1&&(r.push(a+n.getEndEscapesForAllActiveAttributes()),a=n.getStartEscapesForAllActiveAttributes(),i=x(a),c+1<e.length&&e[c+1]===" "&&o)){for(c+=1;c<e.length&&e[c]===" ";)c+=1;continue}c+=1}return a&&r.push(a+n.getEndEscapesForAllActiveAttributes()),o?r.map(u=>H(u)):r},"wrapWithBreakAtWidth"),mn=O((e,t,o)=>{if(e.length===0)return[];const r=o?e.trim():e;if(r.length===0)return[];const n=[];let a="",i=0;return an(r,{getWidth:x,onSegment:O((l,s)=>{if(l.isEscapeSequence)a+=l.text;else{const d=l.text===" ";if(l.width===0)return a+=l.text,!0;if(i+l.width>t&&(a&&n.push(a),a=s.getStartEscapesForAllActiveAttributes(),i=0,d))return o||n.push(s.getStartEscapesForAllActiveAttributes()+l.text),!0;a+=l.text,i+=l.width}return!0},"onSegment")}),a&&n.push(a),o?n.map(l=>H(l)):n},"wrapCharByChar"),fn=O((e,t,o)=>{if(e.length===0)return[];const r=o?e.trim():e;if(r.length===0)return[];const n=r.split(/(?=\s)|(?<=\s)/),a=[];let i="",l=0,s=0;for(;s<n.length;){const d=n[s],c=/^\s+$/.test(d),u=x(d);if(d.length===0){s+=1;continue}if(o&&c&&l===0){s+=1;continue}if(l+u>t&&l>0){o?a.push(H(i)):a.push(i),i="",l=0;continue}i+=d,l+=u,s+=1}return i&&(o?a.push(H(i)):a.push(i)),a},"wrapWithWordBoundaries"),wn=O((e,t,o)=>{if(e.length===0)return[];const r=o?e.trim():e;if(r.length===0)return[];const n=r.split(/(?=\s)|(?<=\s)/),a=[];let i="",l=0,s=0;for(;s<n.length;){const d=n[s],c=/^\s+$/.test(d),u=x(d);if(d.length===0){s+=1;continue}if(o&&c&&l===0){s+=1;continue}if(u>t){i&&a.push(He(o?H(i):i));const p=po(d,t,o);if(p.length>0){for(let h=0;h<p.length-1;h+=1)a.push(p[h]);i=p[p.length-1],l=x(i)}else i="",l=0;s+=1;continue}if(l+u>t&&l>0&&(a.push(He(o?H(i):i)),i="",l=0,o&&c)){s+=1;continue}i+=d,l+=u,s+=1}return i&&a.push(He(o?H(i):i)),a},"wrapAndBreakWords"),ee={BREAK_AT_CHARACTERS:"BREAK_AT_CHARACTERS",BREAK_WORDS:"BREAK_WORDS",PRESERVE_WORDS:"PRESERVE_WORDS",STRICT_WIDTH:"STRICT_WIDTH"},uo=O((e,t={})=>{const{removeZeroWidthCharacters:o=!0,trim:r=!0,width:n=80,wrapMode:a=ee.PRESERVE_WORDS}=t;if(r&&e.trim()==="")return"";let i=String(e).normalize("NFC").replaceAll(`\r
|
|
6
6
|
`,`
|
|
7
|
-
`);return o&&(
|
|
8
|
-
`).map(l=>{if(
|
|
9
|
-
`)},"wordWrap");var
|
|
10
|
-
`))t=Math.max(t,
|
|
11
|
-
`,A=" ",he="none",
|
|
12
|
-
`),m=Math.max(...
|
|
7
|
+
`);return o&&(i=i.replaceAll(mr,"")),i.split(`
|
|
8
|
+
`).map(l=>{if(r&&l.trim()==="")return"";let s;switch(a){case ee.BREAK_AT_CHARACTERS:{s=mn(l,n,r);break}case ee.BREAK_WORDS:{s=wn(l,n,r);break}case ee.STRICT_WIDTH:{s=po(l,n,r);break}default:s=fn(l,n,r)}return hn(s)}).join(`
|
|
9
|
+
`)},"wordWrap");var bn=Object.defineProperty,N=S((e,t)=>bn(e,"name",{value:t,configurable:!0}),"n$1");const ho=80,go=24,Qe=N((e,t,{shell:o,env:r}={})=>nr(e,t,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:o,env:r}).trim(),"exec"),Te=N((e,t)=>({columns:Number.parseInt(e,10),rows:Number.parseInt(t,10)}),"create"),mo=N((e,t)=>{const{columns:o,rows:r}=Te(e,t);if(!(Number.isNaN(o)||Number.isNaN(r))&&!(o===ho&&r===go))return{columns:o,rows:r}},"createIfNotDefault"),vn=N(()=>{if(W.platform!=="linux")return!0;try{const e=de.readFileSync("/proc/self/stat","utf8"),t=e.lastIndexOf(") ");if(t===-1)return!1;const o=e.slice(t+2).trim().split(/\s+/),r=Number.parseInt(o[2],10),n=Number.parseInt(o[5],10);return Number.isNaN(r)||Number.isNaN(n)||n<=0?!1:r===n}catch{return!1}},"isForegroundProcess");function we(){const{env:e,stdout:t,stderr:o}=W;if(t?.columns&&t?.rows)return Te(t.columns,t.rows);if(o?.columns&&o?.rows)return Te(o.columns,o.rows);if(e.COLUMNS&&e.LINES)return Te(e.COLUMNS,e.LINES);const r={columns:ho,rows:go};return W.platform==="win32"?Ue()??r:W.platform==="darwin"?Bt()??Ue()??r:Bt()??Ue()??xn()??r}f(we,"tt$1");P(we,"ge");S(we,"O");N(we,"terminalSize");const Bt=N(()=>{try{const e=W.platform==="darwin"?de.constants.O_EVTONLY|de.constants.O_NONBLOCK:de.constants.O_NONBLOCK,{columns:t,rows:o}=ar.WriteStream(de.openSync("/dev/tty",e));return{columns:t,rows:o}}catch{}},"devTty"),Ue=N(()=>{try{const e=Qe("tput",["cols"],{env:{TERM:"dumb",...W.env}}),t=Qe("tput",["lines"],{env:{TERM:"dumb",...W.env}});if(e&&t)return mo(e,t)}catch{}},"tput"),xn=N(()=>{try{if(!vn())return;const e=Qe("resize",["-u"]).match(/\d+/g);if(e.length===2)return mo(e[0],e[1])}catch{}},"resize"),kn={arrow:{bottom:"↑",bottomLeft:"↗",bottomRight:"↖",left:"→",right:"←",top:"↓",topLeft:"↘",topRight:"↙"},bold:{bottom:"━",bottomLeft:"┗",bottomRight:"┛",left:"┃",right:"┃",top:"━",topLeft:"┏",topRight:"┓"},classic:{bottom:"-",bottomLeft:"+",bottomRight:"+",left:"|",right:"|",top:"-",topLeft:"+",topRight:"+"},double:{bottom:"═",bottomLeft:"╚",bottomRight:"╝",left:"║",right:"║",top:"═",topLeft:"╔",topRight:"╗"},doubleSingle:{bottom:"═",bottomLeft:"╘",bottomRight:"╛",left:"│",right:"│",top:"═",topLeft:"╒",topRight:"╕"},round:{bottom:"─",bottomLeft:"╰",bottomRight:"╯",left:"│",right:"│",top:"─",topLeft:"╭",topRight:"╮"},single:{bottom:"─",bottomLeft:"└",bottomRight:"┘",left:"│",right:"│",top:"─",topLeft:"┌",topRight:"┐"},singleDouble:{bottom:"─",bottomLeft:"╙",bottomRight:"╜",left:"║",right:"║",top:"─",topLeft:"╓",topRight:"╖"}};var yn=Object.defineProperty,$n=S((e,t)=>yn(e,"name",{value:t,configurable:!0}),"n");const fo=$n(e=>{let t=0;for(const o of e.split(`
|
|
10
|
+
`))t=Math.max(t,x(o));return t},"widestLine");var En=Object.defineProperty,T=S((e,t)=>En(e,"name",{value:t,configurable:!0}),"s");const M=`
|
|
11
|
+
`,A=" ",he="none",Rt=T(e=>typeof e=="number"?{bottom:e,left:e*3,right:e*3,top:e}:{bottom:0,left:0,right:0,top:0,...e},"getObject"),ge=T(e=>e===he?0:2,"getBorderWidth"),Sn=T(e=>{const t=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"];let o;if(e===he){e={};for(const r of t)e[r]=""}if(typeof e=="string"){const r=kn[e];if(r===void 0)throw new TypeError(`Invalid border style: ${e}`);o=r}else{typeof e.vertical=="string"&&(e.left=e.vertical,e.right=e.vertical),typeof e.horizontal=="string"&&(e.top=e.horizontal,e.bottom=e.horizontal);for(const r of t)if(e[r]===null||typeof e[r]!="string")throw new TypeError(`Invalid border style: ${r}`);o=e}return o},"getBorderChars"),Lt=T((e,t,o,r,n)=>{let a="";e=t(e);const i=x(e);switch(n){case"left":{a=e+r(o.slice(i),x(o.slice(i)));break}case"right":{a=`${r(o.slice(i+2),x(o.slice(i))+2)} ${e} `;break}default:{if(o=o.slice(i),o.length%2===1)o=o.slice(Math.floor(o.length/2)),a=r(o.slice(1),x(o.slice(1)))+e+r(o,x(o));else{o=o.slice(o.length/2);const l=x(o);a=r(o,l)+e+r(o,l)}break}}return a},"wrapText"),Cn=T((e,{height:t,padding:o,textAlignment:r,width:n})=>{e=Dt(e,{align:r});let a=e.split(M);const i=fo(e),l=n-o.left-o.right;if(i>l){const c=[];for(const u of a){const p=uo(u,{width:l,wrapMode:ee.BREAK_WORDS}),h=Dt(p,{align:r}).split(`
|
|
12
|
+
`),m=Math.max(...h.map(g=>x(g)));for(const g of h){let w;switch(r){case"center":{w=A.repeat((l-m)/2)+g;break}case"right":{w=A.repeat(l-m)+g;break}default:{w=g;break}}c.push(w)}}a=c}r==="center"&&i<l?a=a.map(c=>A.repeat((l-i)/2)+c):r==="right"&&i<l&&(a=a.map(c=>A.repeat(l-i)+c));const s=A.repeat(o.left),d=A.repeat(o.right);return a=a.map(c=>{const u=s+c+d,p=n-x(u);return u+A.repeat(Math.max(p,0))}),o.top>0&&(a=[...Array.from({length:o.top}).fill(A.repeat(n)),...a]),o.bottom>0&&(a=[...a,...Array.from({length:o.bottom}).fill(A.repeat(n))]),t&&a.length>t?a=a.slice(0,t):t&&a.length<t&&(a=[...a,...Array.from({length:t-a.length}).fill(A.repeat(n))]),a.join(M)},"makeContentText"),Tn=T((e,t,o,r)=>{const n=T((p,h,m)=>r.borderColor?r.borderColor(p,h,m):p,"colorizeBorder"),a=T(p=>r.headerTextColor?r.headerTextColor(p):p,"colorizeHeaderText"),i=T(p=>r.footerTextColor?r.footerTextColor(p):p,"colorizeFooterText"),l=T(p=>r.textColor?r.textColor(p):p,"colorizeContent"),s=Sn(r.borderStyle);let d=A.repeat(r.margin.left);if(r.float==="center"){const p=Math.max((o-t-ge(r.borderStyle))/2,0);d=A.repeat(p)}else if(r.float==="right"){const p=Math.max(o-t-r.margin.right-ge(r.borderStyle),0);d=A.repeat(p)}let c="";if(r.margin.top&&(c+=M.repeat(r.margin.top)),r.borderStyle!==he||r.headerText){let p=n(s.top.repeat(t),"top",t);r.headerText&&(p=Lt(r.headerText,a,s.top.repeat(t),(m,g)=>n(m,"top",g),r.headerAlignment));const h=n(d+s.topLeft,"topLeft",x(d+s.topLeft));c+=h+p+n(s.topRight,"topRight",x(s.topRight))+M}const u=e.split(M);if(c+=u.map(p=>d+n(s.left,"left",x(s.left))+l(p)+n(s.right,"right",x(s.right))).join(M),r.borderStyle!==he||r.footerText){const p=M+n(d+s.bottomLeft,"bottomLeft",x(d+s.bottomLeft));let h=n(s.bottom.repeat(t),"bottom",t);r.footerText&&(h=Lt(r.footerText,i,s.bottom.repeat(t),(m,g)=>n(m,"bottom",g),r.footerAlignment)),c+=p+h+n(s.bottomRight,"bottomRight",x(s.bottomRight))}return r.margin.bottom&&(c+=M.repeat(r.margin.bottom)),c},"boxContent"),An=T(e=>{if(e.fullscreen){let t=we();typeof e.fullscreen=="function"&&(t=e.fullscreen(t.columns,t.rows)),e.width||(e.width=t.columns),e.height||(e.height=t.rows)}return e.width&&(e.width=Math.max(1,e.width-ge(e.borderStyle))),e.height&&(e.height=Math.max(1,e.height-ge(e.borderStyle))),e},"sanitizeOptions"),jt=T((e,t)=>t===he?e:` ${e} `,"formatTitle"),Dn=T((e,t,o)=>{o=An(o);const r=o.width!==void 0,n=ge(o.borderStyle),a=t-o.margin.left-o.margin.right-n,i=fo(uo(e,{trim:!1,width:t-n,wrapMode:ee.BREAK_WORDS}))+o.padding.left+o.padding.right;if(o.headerText&&r?(o.headerText=o.headerText.slice(0,Math.max(0,o.width-2)),o.headerText&&(o.headerText=jt(o.headerText,o.borderStyle))):o.headerText&&(o.headerText=o.headerText.slice(0,Math.max(0,a-2)),o.headerText&&(o.headerText=jt(o.headerText,o.borderStyle),x(o.headerText)>i&&(o.width=x(o.headerText)))),o.width=o.width||i,!r){if(o.margin.left&&o.margin.right&&o.width>a){const l=(t-o.width-n)/(o.margin.left+o.margin.right);o.margin.left=Math.max(0,Math.floor(o.margin.left*l)),o.margin.right=Math.max(0,Math.floor(o.margin.right*l))}o.width=Math.min(o.width,t-n-o.margin.left-o.margin.right)}return o.width-(o.padding.left+o.padding.right)<=0&&(o.padding.left=0,o.padding.right=0),o.height&&o.height-(o.padding.top+o.padding.bottom)<=0&&(o.padding.top=0,o.padding.bottom=0),o},"determineDimensions"),In=T((e,t={})=>{if(t.borderColor!==void 0&&typeof t.borderColor!="function")throw new Error('"borderColor" is not a valid function');if(t.textColor!==void 0&&typeof t.textColor!="function")throw new Error('"textColor" is not a valid function');let o={borderStyle:"single",dimBorder:!1,float:"left",footerAlignment:"right",headerAlignment:"left",textAlignment:"left",transformTabToSpace:4,...t};o.padding=Rt(t.padding??0),o.margin=Rt(t.margin),o.transformTabToSpace&&(e=e.replaceAll(" "," ".repeat(o.transformTabToSpace)));const{columns:r}=we();return o=Dn(e,r,o),Tn(Cn(e,o),o.width,r,o)},"boxen");var zn=Object.defineProperty,Bn=f((e,t)=>zn(e,"name",{value:t,configurable:!0}),"r$5");const Rn=["cjs","mjs"],Ln=["mdoc"],be=Bn(e=>{const t=(e.split("?")[0]??e).split(".").pop()?.toLowerCase();if(!t||Rn.includes(t))return"javascript";if(Ln.includes(t))return"markdown";switch(t){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");var jn=Object.defineProperty,wo=f((e,t)=>jn(e,"name",{value:t,configurable:!0}),"o$4");const pe=new Map,ve=wo(async e=>{if(/^(?:http|https|file|data):/.test(e)){if(pe.has(e))return pe.get(e);if(e.startsWith("file:"))try{const t=Go(e),o=await Zo(t,"utf8");return pe.set(e,o),o}catch{return}try{const t=await fetch(e);if(!t.ok)return;const o=await t.text();return pe.set(e,o),o}catch{return}}},"getFileSource");wo(()=>{pe.clear()},"clearFileSourceCache");var _n=Object.defineProperty,Me=f((e,t)=>_n(e,"name",{value:t,configurable:!0}),"d$3");const Fn=Me(e=>e.replace(/^\s*#+\s*/,"").trim(),"sanitizeTitle"),Mn=Me(async(e,t,o=!1)=>{const r=[...t,Jt,Xt],n=Qt(e,{frameLimit:1})[0]??{};for await(const a of r.sort((i,l)=>i.priority-l.priority)){const{handle:i}=a;if(typeof i!="function")continue;const l=await i(e,{file:n.file??"",language:be(n.file??""),line:n.line??0,snippet:n.file?await ve(n.file):""});if(l)return l}},"runSolutionFinders"),bo=Me(async(e,t)=>{const{solutionFinders:o=[],solutionTitle:r,color:n,debug:a=!1,...i}=t,l=Ho(e,{...i,...n?.codeFrame}),s=await Mn(e,o,a);if(!s)return{errorAnsi:l,solutionBox:void 0};const d=Fn(s.header??r??"A possible solution to this error"),c=In(s.body,{borderStyle:"round",padding:{top:1,right:2,bottom:1,left:2},margin:{top:0,right:0,bottom:0,left:0},headerText:`💡 ${d}`,headerAlignment:"left",textAlignment:"left",...n?.boxen});return{errorAnsi:l,solutionBox:c}},"buildOutput");Me(async(e,t={})=>{const{logger:o=console,...r}=t,{errorAnsi:n,solutionBox:a}=await bo(e,r);o.error(n),a&&(o.log(""),o.log(a))},"terminalOutput");const _t="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-help-circle%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%22M9.09%209a3%203%200%200%201%205.83%201c0%202-3%203-3%203%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2017h.01%22%20%2F%3E%20%3C%2Fsvg%3E",Ft="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-keyboard%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%22M10%208h.01%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2012h.01%22%20%2F%3E%20%3Cpath%20d%3D%22M14%208h.01%22%20%2F%3E%20%3Cpath%20d%3D%22M16%2012h.01%22%20%2F%3E%20%3Cpath%20d%3D%22M18%208h.01%22%20%2F%3E%20%3Cpath%20d%3D%22M6%208h.01%22%20%2F%3E%20%3Cpath%20d%3D%22M7%2016h10%22%20%2F%3E%20%3Cpath%20d%3D%22M8%2012h.01%22%20%2F%3E%20%3Crect%20width%3D%2220%22%20height%3D%2216%22%20x%3D%222%22%20y%3D%224%22%20rx%3D%222%22%20%2F%3E%20%3C%2Fsvg%3E";var On=Object.defineProperty,Pn=f((e,t)=>On(e,"name",{value:t,configurable:!0}),"o$3");const Nn=`
|
|
13
13
|
<div id="ono-shortcuts-modal" class="fixed inset-0 z-50 hidden backdrop-blur-xl items-center justify-center p-2" role="dialog" aria-modal="true" aria-hidden="true" aria-labelledby="ono-shortcuts-title">
|
|
14
14
|
<div class="bg-[var(--ono-surface)] rounded-[var(--ono-radius-lg)] shadow-[var(--ono-elevation-2)] max-w-md w-full max-h-[90vh] overflow-auto">
|
|
15
15
|
<div class="flex items-center justify-between px-4 py-2 border-b border-[var(--ono-border)]">
|
|
16
16
|
<div class="flex items-center gap-2">
|
|
17
|
-
<span class="dui shrink-0 size-4" style="-webkit-mask-image:url('${
|
|
17
|
+
<span class="dui shrink-0 size-4" style="-webkit-mask-image:url('${Ft}'); mask-image:url('${Ft}')"></span>
|
|
18
18
|
<h3 id="ono-shortcuts-title" class="font-semibold text-[var(--ono-text)] text-lg">Keyboard shortcuts</h3>
|
|
19
19
|
</div>
|
|
20
20
|
<button type="button" data-ono-action="close-shortcuts-modal" aria-label="Close keyboard shortcuts" class="text-[var(--ono-text-muted)] hover:text-[var(--ono-text)] p-1 text-xl font-bold">
|
|
@@ -59,7 +59,7 @@ var Io=Object.defineProperty;var f=(e,t)=>Io(e,"name",{value:t,configurable:!0})
|
|
|
59
59
|
</div>
|
|
60
60
|
</div>
|
|
61
61
|
</div>
|
|
62
|
-
`,
|
|
62
|
+
`,qn=`
|
|
63
63
|
const bindShortcutsModal = () => {
|
|
64
64
|
const modal = document.getElementById('ono-shortcuts-modal');
|
|
65
65
|
if (!modal) return;
|
|
@@ -104,22 +104,22 @@ const bindShortcutsModal = () => {
|
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
|
-
`,
|
|
107
|
+
`,vo=Pn(()=>{const e=`
|
|
108
108
|
<button type="button" aria-label="Open keyboard shortcuts" title="Keyboard shortcuts" data-ono-action="open-shortcuts-modal" class="flex justify-center items-center size-9 rounded-[var(--ono-radius-md)] shadow-[var(--ono-elevation-1)] bg-[var(--ono-surface)] text-[var(--ono-text)] hover:bg-[var(--ono-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-hover-overlay)] disabled:opacity-50 disabled:pointer-events-none cursor-pointer">
|
|
109
|
-
<span class="dui shrink-0 size-4" style="-webkit-mask-image:url('${
|
|
109
|
+
<span class="dui shrink-0 size-4" style="-webkit-mask-image:url('${_t}'); mask-image:url('${_t}')"></span>
|
|
110
110
|
<span class="sr-only">Keyboard shortcuts</span>
|
|
111
111
|
</button>
|
|
112
|
-
`;return{html:
|
|
112
|
+
`;return{html:Nn+e,script:qn.trim()}},"shortcutsButton");var Je=(e=>(e.appcode="AppCode",e["android-studio"]="Android Studio",e.atom="Atom",e["atom-beta"]="Atom Beta",e.brackets="Brackets",e.clion="CLion",e.code="Visual Studio Code",e["code-insiders"]="Visual Studio Code Insiders",e.codium="VSCodium",e.cursor="Cursor",e.emacs="GNU Emacs",e.emacsforosx="GNU Emacs for Mac OS X",e.intellij="IntelliJ IDEA",e.idea="IntelliJ IDEA",e.nano="GNU nano",e.neovim="NeoVim",e["notepad++"]="Notepad++",e.phpstorm="PhpStorm",e.pycharm="PyCharm",e.rider="Rider",e.rubymine="RubyMine",e.sublime="SublimeText",e.textmate="TextMate",e.vim="Vim",e.visualstudio="Visual Studio",e.vscode="Visual Studio Code",e.vscodium="VSCodium",e.webstorm="WebStorm",e.xcode="Xcode",e.zed="Zed",e))(Je||{}),Wn=Object.defineProperty,Hn=f((e,t)=>Wn(e,"name",{value:t,configurable:!0}),"t$2");const Un=Hn(e=>{let t='<option value="">Auto-detected Editor</option>';return Object.keys(Je).forEach(o=>{const r=e&&String(e)===String(o);t+=`<option value="${String(o)}" ${r?"selected":""}>${Je[o]}</option>`}),`<div class="relative inline-block">
|
|
113
113
|
<label for="editor-selector" class="sr-only">Editor</label>
|
|
114
114
|
<select id="editor-selector" class="peer py-2 px-3 pe-9 block w-56 bg-[var(--ono-surface)] border border-[var(--ono-border)] rounded-[var(--ono-radius-md)] text-sm text-[var(--ono-text)] shadow-[var(--ono-elevation-1)] hover:bg-[var(--ono-hover-overlay)] focus:outline-hidden focus:ring-1 focus:ring-[var(--ono-red-orange)]">
|
|
115
115
|
${t}
|
|
116
116
|
</select>
|
|
117
|
-
</div>`},"editorSelector"),
|
|
117
|
+
</div>`},"editorSelector"),Mt="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",Ot="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";var Zn=Object.defineProperty,Gn=f((e,t)=>Zn(e,"name",{value:t,configurable:!0}),"n$8");const Vn=Gn((e="auto")=>{const t="flex justify-center items-center size-9 rounded-[var(--ono-radius-md)] shadow-[var(--ono-elevation-1)] bg-[var(--ono-surface)] text-[var(--ono-text)] hover:bg-[var(--ono-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-hover-overlay)] disabled:opacity-50 disabled:pointer-events-none cursor-pointer";return{html:`
|
|
118
118
|
<div id="ono-theme-switch" class="flex items-center">
|
|
119
119
|
<div class="inline-block">
|
|
120
120
|
<button type="button" aria-label="Switch to dark mode" title="Dark mode" class="ono-theme-btn ono-theme-dark hidden ${t}" data-ono-theme="dark">
|
|
121
121
|
<span class="inline-flex shrink-0 justify-center items-center size-4">
|
|
122
|
-
<span class="dui" style="-webkit-mask-image: url('${
|
|
122
|
+
<span class="dui" style="-webkit-mask-image: url('${Mt}'); mask-image: url('${Mt}')"></span>
|
|
123
123
|
</span>
|
|
124
124
|
</button>
|
|
125
125
|
</div>
|
|
@@ -127,7 +127,7 @@ const bindShortcutsModal = () => {
|
|
|
127
127
|
<div class="inline-block">
|
|
128
128
|
<button type="button" aria-label="Switch to light mode" title="Light mode" class="ono-theme-btn ono-theme-light ${t}" data-ono-theme="light">
|
|
129
129
|
<span class="inline-flex shrink-0 justify-center items-center size-4">
|
|
130
|
-
<span class="dui" style="-webkit-mask-image: url('${
|
|
130
|
+
<span class="dui" style="-webkit-mask-image: url('${Ot}'); mask-image: url('${Ot}')"></span>
|
|
131
131
|
</span>
|
|
132
132
|
</button>
|
|
133
133
|
</div>
|
|
@@ -220,16 +220,16 @@ ready(function() {
|
|
|
220
220
|
attributes: true,
|
|
221
221
|
attributeFilter: ['class']
|
|
222
222
|
});
|
|
223
|
-
});`}},"themeToggle");var
|
|
223
|
+
});`}},"themeToggle");var Kn=Object.defineProperty,Qn=f((e,t)=>Kn(e,"name",{value:t,configurable:!0}),"a$2");const Jn=Qn((e,t=!1)=>{const o=Vn(e.theme),r=vo();return{html:`<div class="w-full flex gap-3 items-center">
|
|
224
224
|
${t?`<nav class="flex gap-1">
|
|
225
225
|
<button type="button" class="px-2 py-1 rounded-[var(--ono-radius-md)] text-xs bg-[var(--ono-chip-bg)] text-[var(--ono-chip-text)] shadow-[var(--ono-elevation-1)]" title="View stack trace">Stack</button>
|
|
226
226
|
<button type="button" class="px-2 py-1 rounded-[var(--ono-radius-md)] text-xs bg-[var(--ono-white-smoke)] text-[var(--ono-text)] shadow-[var(--ono-elevation-1)]" title="View request context">Context</button>
|
|
227
227
|
</nav>`:""}
|
|
228
228
|
<div class="grow"></div>
|
|
229
|
-
${e.openInEditorUrl?
|
|
230
|
-
${
|
|
229
|
+
${e.openInEditorUrl?Un(e.editor):""}
|
|
230
|
+
${r.html}
|
|
231
231
|
${o.html}
|
|
232
|
-
</div>`,script:`${o.script}${
|
|
232
|
+
</div>`,script:`${o.script}${r.script}${e.openInEditorUrl?`
|
|
233
233
|
bindShortcutsModal();
|
|
234
234
|
|
|
235
235
|
// Initialize editor selector from localStorage if available
|
|
@@ -255,7 +255,7 @@ bindShortcutsModal();
|
|
|
255
255
|
`:`
|
|
256
256
|
bindShortcutsModal();
|
|
257
257
|
`}
|
|
258
|
-
`}},"headerBar"),
|
|
258
|
+
`}},"headerBar"),Xn=`<!-- @license lucide-static v0.577.0 - ISC -->
|
|
259
259
|
<svg
|
|
260
260
|
class="lucide lucide-blocks"
|
|
261
261
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -271,7 +271,7 @@ bindShortcutsModal();
|
|
|
271
271
|
<path d="M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2" />
|
|
272
272
|
<rect x="14" y="2" width="8" height="8" rx="1" />
|
|
273
273
|
</svg>
|
|
274
|
-
`,
|
|
274
|
+
`,Yn=`<!-- @license lucide-static v0.577.0 - ISC -->
|
|
275
275
|
<svg
|
|
276
276
|
class="lucide lucide-layers"
|
|
277
277
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -288,7 +288,7 @@ bindShortcutsModal();
|
|
|
288
288
|
<path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12" />
|
|
289
289
|
<path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17" />
|
|
290
290
|
</svg>
|
|
291
|
-
`,
|
|
291
|
+
`,ea=`<!-- @license lucide-static v0.577.0 - ISC -->
|
|
292
292
|
<svg
|
|
293
293
|
class="lucide lucide-square-dashed"
|
|
294
294
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -314,8 +314,8 @@ bindShortcutsModal();
|
|
|
314
314
|
<path d="M3 14v1" />
|
|
315
315
|
<path d="M21 14v1" />
|
|
316
316
|
</svg>
|
|
317
|
-
`;var
|
|
318
|
-
${e.map(o=>{const
|
|
317
|
+
`;var ta=Object.defineProperty,oa=f((e,t)=>ta(e,"name",{value:t,configurable:!0}),"e$1");const xo=oa((...e)=>e.filter(t=>typeof t=="string"&&t.length>0).join(" "),"cn");var ra=Object.defineProperty,Pt=f((e,t)=>ra(e,"name",{value:t,configurable:!0}),"r$3");const na=Pt(e=>{const t=Pt(o=>{if(o.icon)return E(o.icon);switch(o.id){case"context":return Xn;case"stack":return Yn;default:return ea}},"getIcon");return{html:`<nav class="flex gap-1 p-1 rounded-[var(--ono-radius-md)] bg-[var(--ono-surface-muted)] shadow-[var(--ono-elevation-1)]" role="tablist">
|
|
318
|
+
${e.map(o=>{const r=xo("relative px-3 py-1.5 rounded-[var(--ono-radius-md)] text-sm font-medium cursor-pointer text-[var(--ono-text-muted)] dark:text-[var(--ono-neutral)] transition-all duration-150 hover:text-[var(--ono-text)] hover:bg-[var(--ono-surface)] focus:outline-hidden focus:ring-2 ring-[var(--ono-red-orange)] inline-flex gap-2 items-center","active:bg-[var(--ono-surface)] active:text-[var(--ono-text)] active:shadow-[var(--ono-elevation-1)] active:ring-2",o.selected?"active":"","[:>svg]:size-4"),n=$(o.id),a=E(o.name);return`<button type="button" class="${r}" id="ono-tab-${n}" aria-selected="${o.selected?"true":"false"}" data-ono-tab="#ono-section-${n}" aria-controls="ono-section-${n}" role="tab" title="${a}">${t(o)}<span>${a}</span></button>`}).join("")}
|
|
319
319
|
</nav>`,script:`
|
|
320
320
|
// Tabs system initialization
|
|
321
321
|
(function() {
|
|
@@ -403,8 +403,8 @@ bindShortcutsModal();
|
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
405
|
})();
|
|
406
|
-
`}},"headerTabs");var
|
|
407
|
-
@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-space-y-reverse:0;--tw-border-style:solid;--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-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-ease:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z: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-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-700:oklch(37.2% .044 257.287);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-white:#fff;--spacing:.25rem;--container-md:28rem;--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);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--radius-lg:.5rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--blur-xl:24px;--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-bg);color:var(--ono-text)}pre,code{color:var(--ono-text)}.text-muted{color:var(--ono-text-muted)}a{color:var(--ono-link)}a:hover{text-decoration:underline}::selection{background:var(--ono-red-orange)}@supports (color:color-mix(in lab, red, red)){::selection{background:color-mix(in srgb,var(--ono-red-orange)20%,transparent)}}kbd{background-color:var(--ono-chip-bg);color:var(--ono-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-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{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;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{.collapse{visibility:collapse}.invisible{visibility:hidden}.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}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.-top-40{top:calc(var(--spacing)*-40)}.top-0{top:calc(var(--spacing)*0)}.top-0\\.5{top:calc(var(--spacing)*.5)}.top-2{top:calc(var(--spacing)*2)}.top-4{top:calc(var(--spacing)*4)}.top-full{top:100%}.right-2{right:calc(var(--spacing)*2)}.left-0{left:calc(var(--spacing)*0)}.left-0\\.5{left:calc(var(--spacing)*.5)}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.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}}.mx-auto{margin-inline:auto}.my-6{margin-block:calc(var(--spacing)*6)}.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-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-6{margin-top:calc(var(--spacing)*6)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-4{margin-left:calc(var(--spacing)*4)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-full{height:100%}.max-h-\\[90vh\\]{max-height:90vh}.max-h-\\[calc\\(100dvh-2rem\\)\\]{max-height:calc(100dvh - 2rem)}.w-4{width:calc(var(--spacing)*4)}.w-4\\/12{width:33.3333%}.w-8{width:calc(var(--spacing)*8)}.w-8\\/12{width:66.6667%}.w-9{width:calc(var(--spacing)*9)}.w-12{width:calc(var(--spacing)*12)}.w-56{width:calc(var(--spacing)*56)}.w-64{width:calc(var(--spacing)*64)}.w-full{width:100%}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-6\\/12{min-width:50%}.min-w-52{min-width:calc(var(--spacing)*52)}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.cursor-help{cursor:help}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[200px_1fr\\]{grid-template-columns:200px 1fr}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.items-start{align-items:flex-start}.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-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-x-3{column-gap:calc(var(--spacing)*3)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.rounded{border-radius:.25rem}.rounded-\\[var\\(--ono-radius-lg\\)\\]{border-radius:var(--ono-radius-lg)}.rounded-\\[var\\(--ono-radius-md\\)\\]{border-radius:var(--ono-radius-md)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-tl-lg{border-top-left-radius:var(--radius-lg)}.rounded-r-\\[var\\(--ono-radius-lg\\)\\]{border-top-right-radius:var(--ono-radius-lg);border-bottom-right-radius:var(--ono-radius-lg)}.rounded-tr-lg{border-top-right-radius:var(--radius-lg)}.rounded-br-lg{border-bottom-right-radius:var(--radius-lg)}.rounded-bl-lg{border-bottom-left-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-\\[var\\(--ono-border\\)\\]{border-color:var(--ono-border)}.border-\\[var\\(--ono-red-orange\\)\\]{border-color:var(--ono-red-orange)}.border-blue-600{border-color:var(--color-blue-600)}.border-transparent{border-color:#0000}.bg-\\[var\\(--ono-bg\\)\\]{background-color:var(--ono-bg)}.bg-\\[var\\(--ono-chip-bg\\)\\]{background-color:var(--ono-chip-bg)}.bg-\\[var\\(--ono-success-bg\\)\\]{background-color:var(--ono-success-bg)}.bg-\\[var\\(--ono-surface\\)\\]{background-color:var(--ono-surface)}.bg-\\[var\\(--ono-surface-muted\\)\\]{background-color:var(--ono-surface-muted)}.bg-\\[var\\(--ono-white-smoke\\)\\]{background-color:var(--ono-white-smoke)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-white{background-color:var(--color-white)}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.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)}.py-4{padding-block:calc(var(--spacing)*4)}.pe-9{padding-inline-end:calc(var(--spacing)*9)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-5{padding-top:calc(var(--spacing)*5)}.pt-6{padding-top:calc(var(--spacing)*6)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-5{padding-left:calc(var(--spacing)*5)}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.font-mono{font-family:var(--font-mono)}.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}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[var\\(--ono-chip-text\\)\\]{color:var(--ono-chip-text)}.text-\\[var\\(--ono-on-accent\\)\\]{color:var(--ono-on-accent)}.text-\\[var\\(--ono-red-orange\\)\\]{color:var(--ono-red-orange)}.text-\\[var\\(--ono-text\\)\\]{color:var(--ono-text)}.text-\\[var\\(--ono-text-muted\\)\\]{color:var(--ono-text-muted)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.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-elevation-1\\)\\]{--tw-shadow:var(--ono-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-elevation-2\\)\\]{--tw-shadow:var(--ono-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-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px 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)}.ring-\\[var\\(--ono-red-orange\\)\\]{--tw-ring-color:var(--ono-red-orange)}.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-xl{--tw-backdrop-blur:blur(var(--blur-xl));-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-\\[height\\]{transition-property:height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[max-height\\,opacity\\]{transition-property:max-height,opacity;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-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-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.peer-checked\\:translate-x-4:is(:where(.peer):checked~*){--tw-translate-x:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y)}.peer-checked\\:bg-\\[var\\(--ono-red-orange\\)\\]:is(:where(.peer):checked~*){background-color:var(--ono-red-orange)}.last\\:mb-0:last-child{margin-bottom:calc(var(--spacing)*0)}.hover\\:bg-\\[var\\(--ono-hover-overlay\\)\\]:hover{background-color:var(--ono-hover-overlay)}.hover\\:bg-\\[var\\(--ono-surface\\)\\]:hover{background-color:var(--ono-surface)}.hover\\:bg-\\[var\\(--ono-surface-muted\\)\\]:hover{background-color:var(--ono-surface-muted)}.hover\\:text-\\[var\\(--ono-link\\)\\]:hover{color:var(--ono-link)}.hover\\:text-\\[var\\(--ono-text\\)\\]:hover{color:var(--ono-text)}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:bg-\\[var\\(--ono-hover-overlay\\)\\]:focus{background-color:var(--ono-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-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + 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-red-orange\\)\\]:focus{--tw-ring-color:var(--ono-red-orange)}.focus\\:ring-gray-600:focus{--tw-ring-color:var(--color-gray-600)}.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\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + 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)}.active\\:bg-\\[var\\(--ono-surface\\)\\]:active{background-color:var(--ono-surface)}.active\\:text-\\[var\\(--ono-text\\)\\]:active{color:var(--ono-text)}.active\\:shadow-\\[var\\(--ono-elevation-1\\)\\]:active{--tw-shadow:var(--ono-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)}.active\\:ring-2:active{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + 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)}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:opacity-50:disabled{opacity:.5}.dark\\:bg-gray-700\\/50:where(.dark,.dark *){background-color:#36415380}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-gray-700\\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-700)50%,transparent)}}.dark\\:text-\\[var\\(--ono-neutral\\)\\]:where(.dark,.dark *){color:var(--ono-neutral)}.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-\\[var\\(--ono-success-border\\)\\] :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--ono-success-border)}.\\[\\&\\.ono-dropdown-open\\]\\:block.ono-dropdown-open{display:block}.\\[\\&\\.ono-dropdown-open\\]\\:rotate-180.ono-dropdown-open{rotate:180deg}.\\[\\:\\>svg\\]\\:size-4:is(){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}}:root,:host{--ono-white-smoke:#f5f5f5;--ono-red-orange:#ff4628;--ono-charcoal-black:#202020;--ono-bg:var(--ono-white-smoke);--ono-surface:#fff;--ono-surface-muted:#fafafa;--ono-border:#b9c8d780;--ono-hover-overlay:#2020200d;--ono-success:#2ea043;--ono-success-bg:#03611699;--ono-neutral:#6e7681;--ono-neutral-bg:#6e76812e;--ono-chip-bg:#6e768124;--ono-chip-text:var(--ono-text);--ono-radius-md:.5rem;--ono-radius-lg:.75rem;--ono-elevation-1:0 1px 2px #0000000a,0 1px 1px #00000005;--ono-elevation-2:0 10px 25px -5px #2020201a,0 8px 10px -6px #2020201a;--ono-text:#111827;--ono-text-muted:#374151;--ono-link:#c4311d;--ono-muted-on-surface:#374151;--ono-on-accent:#fff}.dark{--ono-bg:#161b22;--ono-surface:#0d1117;--ono-surface-muted:#0f141b;--ono-border:#30363d99;--ono-text:#c9d1d9;--ono-text-muted:#8b949e;--ono-link:#ff6a52;--ono-muted-on-surface:#8b949e;--ono-hover-overlay:#f0f6fc0f;--ono-on-accent:#fff;--ono-success:#2ea043;--ono-success-bg:#2ea04333;--ono-neutral:#6e7681;--ono-neutral-bg:#6e768140;--ono-chip-bg:#6e768133;--ono-chip-text:var(--ono-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}}.shiki{max-width:100%;padding-bottom:calc(var(--spacing)*6);overflow-wrap:break-word;overflow:auto}.shiki pre{max-width:100%;overflow:auto}.shiki::-webkit-scrollbar{height:calc(var(--spacing)*2)}.shiki::-webkit-scrollbar-thumb{border-radius:3.40282e38px}.shiki::-webkit-scrollbar-thumb{background-color:var(--color-gray-500)}.shiki:where(.dark,.dark *)::-webkit-scrollbar-thumb{background-color:var(--color-slate-500)}.shiki::-webkit-scrollbar-track{border-radius:3.40282e38px}.shiki::-webkit-scrollbar-track{background-color:var(--color-gray-100)}.shiki:where(.dark,.dark *)::-webkit-scrollbar-track{background-color:var(--color-slate-700)}html.dark .shiki,html.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}.dark [type=checkbox]:checked,.dark [type=radio]:checked{background-color:currentColor}.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}details>summary [data-chevron]{transition:transform .2s ease-in-out}details[open]>summary [data-chevron]{transform:rotate(180deg)}details summary .ono-expand-icon-open{display:none!important}details[open] summary .ono-expand-icon-open,details[open] summary .ono-expand-icon-closed{display:inline-block!important}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-red-orange);outline-offset:2px}[role=tab].active{border-left:3px solid var(--ono-red-orange);background-color:#ff462814}.stack-tab-active{border-left:3px solid var(--ono-red-orange)!important;color:var(--ono-red-orange)!important;background-color:#ff462814!important;font-weight:600!important}[role=tab][aria-disabled=true],button[disabled]{opacity:.55}.ono-dropdown-menu{transition:opacity .15s;display:none}.ono-dropdown-menu.ono-dropdown-open{opacity:1;display:block}.ono-dropdown-toggle.ono-dropdown-open svg{transform:rotate(180deg)}.ono-tab-active{border-left:3px solid var(--ono-red-orange)!important;color:var(--ono-red-orange)!important;background-color:#ff462814!important;font-weight:600!important}.hidden{display:none!important}.block{display:block!important}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@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-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-ease{syntax:"*";inherits:false}@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}`,Ln=Object.defineProperty,Oe=f((e,t)=>Ln(e,"name",{value:t,configurable:!0}),"n$6");const De=Oe(e=>e.replaceAll(/[&<>"']/g,t=>({'"':""","&":"&","'":"'","<":"<",">":">"})[t]||t),"escapeHtml"),Rn=`
|
|
406
|
+
`}},"headerTabs");var aa=`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
|
|
407
|
+
@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-space-y-reverse:0;--tw-border-style:solid;--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-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-ease:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z: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-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-700:oklch(37.2% .044 257.287);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-white:#fff;--spacing:.25rem;--container-md:28rem;--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);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--radius-lg:.5rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--blur-xl:24px;--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-bg);color:var(--ono-text)}pre,code{color:var(--ono-text)}.text-muted{color:var(--ono-text-muted)}a{color:var(--ono-link)}a:hover{text-decoration:underline}::selection{background:var(--ono-red-orange)}@supports (color:color-mix(in lab, red, red)){::selection{background:color-mix(in srgb, var(--ono-red-orange) 20%, transparent)}}kbd{background-color:var(--ono-chip-bg);color:var(--ono-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-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{.collapse{visibility:collapse}.invisible{visibility:hidden}.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}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.-top-40{top:calc(var(--spacing) * -40)}.top-0{top:calc(var(--spacing) * 0)}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.top-full{top:100%}.right-2{right:calc(var(--spacing) * 2)}.left-0{left:calc(var(--spacing) * 0)}.left-0\\.5{left:calc(var(--spacing) * .5)}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.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}}.mx-auto{margin-inline:auto}.my-6{margin-block:calc(var(--spacing) * 6)}.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-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-4{margin-left:calc(var(--spacing) * 4)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-full{height:100%}.max-h-\\[90vh\\]{max-height:90vh}.max-h-\\[calc\\(100dvh-2rem\\)\\]{max-height:calc(100dvh - 2rem)}.w-4{width:calc(var(--spacing) * 4)}.w-4\\/12{width:33.3333%}.w-8{width:calc(var(--spacing) * 8)}.w-8\\/12{width:66.6667%}.w-9{width:calc(var(--spacing) * 9)}.w-12{width:calc(var(--spacing) * 12)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-full{width:100%}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-6\\/12{min-width:50%}.min-w-52{min-width:calc(var(--spacing) * 52)}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.cursor-help{cursor:help}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[200px_1fr\\]{grid-template-columns:200px 1fr}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.items-start{align-items:flex-start}.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-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.rounded{border-radius:.25rem}.rounded-\\[var\\(--ono-radius-lg\\)\\]{border-radius:var(--ono-radius-lg)}.rounded-\\[var\\(--ono-radius-md\\)\\]{border-radius:var(--ono-radius-md)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-tl-lg{border-top-left-radius:var(--radius-lg)}.rounded-r-\\[var\\(--ono-radius-lg\\)\\]{border-top-right-radius:var(--ono-radius-lg);border-bottom-right-radius:var(--ono-radius-lg)}.rounded-tr-lg{border-top-right-radius:var(--radius-lg)}.rounded-br-lg{border-bottom-right-radius:var(--radius-lg)}.rounded-bl-lg{border-bottom-left-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-\\[var\\(--ono-border\\)\\]{border-color:var(--ono-border)}.border-\\[var\\(--ono-red-orange\\)\\]{border-color:var(--ono-red-orange)}.border-blue-600{border-color:var(--color-blue-600)}.border-transparent{border-color:#0000}.bg-\\[var\\(--ono-bg\\)\\]{background-color:var(--ono-bg)}.bg-\\[var\\(--ono-chip-bg\\)\\]{background-color:var(--ono-chip-bg)}.bg-\\[var\\(--ono-success-bg\\)\\]{background-color:var(--ono-success-bg)}.bg-\\[var\\(--ono-surface\\)\\]{background-color:var(--ono-surface)}.bg-\\[var\\(--ono-surface-muted\\)\\]{background-color:var(--ono-surface-muted)}.bg-\\[var\\(--ono-white-smoke\\)\\]{background-color:var(--ono-white-smoke)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-white{background-color:var(--color-white)}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.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)}.py-4{padding-block:calc(var(--spacing) * 4)}.pe-9{padding-inline-end:calc(var(--spacing) * 9)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.font-mono{font-family:var(--font-mono)}.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}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[var\\(--ono-chip-text\\)\\]{color:var(--ono-chip-text)}.text-\\[var\\(--ono-on-accent\\)\\]{color:var(--ono-on-accent)}.text-\\[var\\(--ono-red-orange\\)\\]{color:var(--ono-red-orange)}.text-\\[var\\(--ono-text\\)\\]{color:var(--ono-text)}.text-\\[var\\(--ono-text-muted\\)\\]{color:var(--ono-text-muted)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.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-elevation-1\\)\\]{--tw-shadow:var(--ono-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-elevation-2\\)\\]{--tw-shadow:var(--ono-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-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px 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)}.ring-\\[var\\(--ono-red-orange\\)\\]{--tw-ring-color:var(--ono-red-orange)}.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-xl{--tw-backdrop-blur:blur(var(--blur-xl));-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-\\[height\\]{transition-property:height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[max-height\\,opacity\\]{transition-property:max-height,opacity;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-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-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.peer-checked\\:translate-x-4:is(:where(.peer):checked~*){--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.peer-checked\\:bg-\\[var\\(--ono-red-orange\\)\\]:is(:where(.peer):checked~*){background-color:var(--ono-red-orange)}.last\\:mb-0:last-child{margin-bottom:calc(var(--spacing) * 0)}.hover\\:bg-\\[var\\(--ono-hover-overlay\\)\\]:hover{background-color:var(--ono-hover-overlay)}.hover\\:bg-\\[var\\(--ono-surface\\)\\]:hover{background-color:var(--ono-surface)}.hover\\:bg-\\[var\\(--ono-surface-muted\\)\\]:hover{background-color:var(--ono-surface-muted)}.hover\\:text-\\[var\\(--ono-link\\)\\]:hover{color:var(--ono-link)}.hover\\:text-\\[var\\(--ono-text\\)\\]:hover{color:var(--ono-text)}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:bg-\\[var\\(--ono-hover-overlay\\)\\]:focus{background-color:var(--ono-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-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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-red-orange\\)\\]:focus{--tw-ring-color:var(--ono-red-orange)}.focus\\:ring-gray-600:focus{--tw-ring-color:var(--color-gray-600)}.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\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + 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)}.active\\:bg-\\[var\\(--ono-surface\\)\\]:active{background-color:var(--ono-surface)}.active\\:text-\\[var\\(--ono-text\\)\\]:active{color:var(--ono-text)}.active\\:shadow-\\[var\\(--ono-elevation-1\\)\\]:active{--tw-shadow:var(--ono-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)}.active\\:ring-2:active{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:opacity-50:disabled{opacity:.5}.dark\\:bg-gray-700\\/50:where(.dark,.dark *){background-color:#36415380}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-gray-700\\/50:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-gray-700) 50%, transparent)}}.dark\\:text-\\[var\\(--ono-neutral\\)\\]:where(.dark,.dark *){color:var(--ono-neutral)}.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-\\[var\\(--ono-success-border\\)\\] :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--ono-success-border)}.\\[\\&\\.ono-dropdown-open\\]\\:block.ono-dropdown-open{display:block}.\\[\\&\\.ono-dropdown-open\\]\\:rotate-180.ono-dropdown-open{rotate:180deg}.\\[\\:\\>svg\\]\\:size-4:is(){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}}:root,:host{--ono-white-smoke:#f5f5f5;--ono-red-orange:#ff4628;--ono-charcoal-black:#202020;--ono-bg:var(--ono-white-smoke);--ono-surface:#fff;--ono-surface-muted:#fafafa;--ono-border:#b9c8d780;--ono-hover-overlay:#2020200d;--ono-success:#2ea043;--ono-success-bg:#03611699;--ono-neutral:#6e7681;--ono-neutral-bg:#6e76812e;--ono-chip-bg:#6e768124;--ono-chip-text:var(--ono-text);--ono-radius-md:.5rem;--ono-radius-lg:.75rem;--ono-elevation-1:0 1px 2px #0000000a, 0 1px 1px #00000005;--ono-elevation-2:0 10px 25px -5px #2020201a, 0 8px 10px -6px #2020201a;--ono-text:#111827;--ono-text-muted:#374151;--ono-link:#c4311d;--ono-muted-on-surface:#374151;--ono-on-accent:#fff}.dark{--ono-bg:#161b22;--ono-surface:#0d1117;--ono-surface-muted:#0f141b;--ono-border:#30363d99;--ono-text:#c9d1d9;--ono-text-muted:#8b949e;--ono-link:#ff6a52;--ono-muted-on-surface:#8b949e;--ono-hover-overlay:#f0f6fc0f;--ono-on-accent:#fff;--ono-success:#2ea043;--ono-success-bg:#2ea04333;--ono-neutral:#6e7681;--ono-neutral-bg:#6e768140;--ono-chip-bg:#6e768133;--ono-chip-text:var(--ono-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}}.shiki{max-width:100%;padding-bottom:calc(var(--spacing) * 6);overflow-wrap:break-word;overflow:auto}.shiki pre{max-width:100%;overflow:auto}.shiki::-webkit-scrollbar{height:calc(var(--spacing) * 2)}.shiki::-webkit-scrollbar-thumb{border-radius:3.40282e38px}.shiki::-webkit-scrollbar-thumb{background-color:var(--color-gray-500)}.shiki:where(.dark,.dark *)::-webkit-scrollbar-thumb{background-color:var(--color-slate-500)}.shiki::-webkit-scrollbar-track{border-radius:3.40282e38px}.shiki::-webkit-scrollbar-track{background-color:var(--color-gray-100)}.shiki:where(.dark,.dark *)::-webkit-scrollbar-track{background-color:var(--color-slate-700)}html.dark .shiki,html.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}.dark [type=checkbox]:checked,.dark [type=radio]:checked{background-color:currentColor}.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}details>summary [data-chevron]{transition:transform .2s ease-in-out}details[open]>summary [data-chevron]{transform:rotate(180deg)}details summary .ono-expand-icon-open{display:none!important}details[open] summary .ono-expand-icon-open,details[open] summary .ono-expand-icon-closed{display:inline-block!important}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-red-orange);outline-offset:2px}[role=tab].active{border-left:3px solid var(--ono-red-orange);background-color:#ff462814}.stack-tab-active{border-left:3px solid var(--ono-red-orange)!important;color:var(--ono-red-orange)!important;background-color:#ff462814!important;font-weight:600!important}[role=tab][aria-disabled=true],button[disabled]{opacity:.55}.ono-dropdown-menu{transition:opacity .15s;display:none}.ono-dropdown-menu.ono-dropdown-open{opacity:1;display:block}.ono-dropdown-toggle.ono-dropdown-open svg{transform:rotate(180deg)}.ono-tab-active{border-left:3px solid var(--ono-red-orange)!important;color:var(--ono-red-orange)!important;background-color:#ff462814!important;font-weight:600!important}.hidden{display:none!important}.block{display:block!important}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@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-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-ease{syntax:"*";inherits:false}@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}`,ia=Object.defineProperty,Oe=f((e,t)=>ia(e,"name",{value:t,configurable:!0}),"n$6");const De=Oe(e=>e.replaceAll(/[&<>"']/g,t=>({'"':""","&":"&","'":"'","<":"<",">":">"})[t]||t),"escapeHtml"),sa=`
|
|
408
408
|
// Ensures listeners run as soon as the DOM is interactive
|
|
409
409
|
function subscribeToDOMContentLoaded(listener) {
|
|
410
410
|
if (document.readyState !== 'loading') {
|
|
@@ -413,7 +413,7 @@ bindShortcutsModal();
|
|
|
413
413
|
}
|
|
414
414
|
try { document.addEventListener('DOMContentLoaded', listener); } catch (_) {}
|
|
415
415
|
}
|
|
416
|
-
`,
|
|
416
|
+
`,la=`
|
|
417
417
|
subscribeToDOMContentLoaded(() => {
|
|
418
418
|
// Global keyboard shortcut for ? and Shift+/ to open shortcuts
|
|
419
419
|
if (!window.__onoShortcutKeyBound) {
|
|
@@ -456,24 +456,24 @@ bindShortcutsModal();
|
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
458
|
});
|
|
459
|
-
`,Ze=Oe((e,t)=>`<script${t?` nonce="${De(t)}"`:""}>${e}<\/script>`,"createScriptTag"),
|
|
460
|
-
`)?
|
|
459
|
+
`,Ze=Oe((e,t)=>`<script${t?` nonce="${De(t)}"`:""}>${e}<\/script>`,"createScriptTag"),ca=Oe((e,t)=>`<style${t?` nonce="${De(t)}"`:""}>${e}</style>`,"createStyleTag"),da=Oe(({content:e,cspNonce:t,css:o,description:r,error:n,scripts:a,theme:i,title:l})=>{const s=Vo(t),d=De(l||"Error"),c=De(r||""),u=n.stack||n.toString(),p=Ve.sanitize(u.includes(`
|
|
460
|
+
`)?u.replaceAll(`
|
|
461
461
|
`,`
|
|
462
|
-
`):
|
|
462
|
+
`):u);return`<!--
|
|
463
463
|
${p}
|
|
464
464
|
-->
|
|
465
465
|
<!DOCTYPE html>
|
|
466
|
-
<html lang="en" class="${
|
|
466
|
+
<html lang="en" class="${i==="dark"?"dark":""}">
|
|
467
467
|
<head>
|
|
468
468
|
<meta charset="UTF-8">
|
|
469
469
|
<title>${d}</title>
|
|
470
470
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
471
471
|
<meta name="description" content="${c}">
|
|
472
|
-
${
|
|
473
|
-
${Ze(
|
|
474
|
-
${
|
|
472
|
+
${ca(o,s)}
|
|
473
|
+
${Ze(sa.trim(),s)}
|
|
474
|
+
${a.filter(Boolean).map(h=>Ze(h,s)).join(`
|
|
475
475
|
`)}
|
|
476
|
-
${Ze(
|
|
476
|
+
${Ze(la.trim(),s)}
|
|
477
477
|
</head>
|
|
478
478
|
<body>
|
|
479
479
|
<div id="visulima-ono-container" class="bg-[var(--ono-bg)] text-[var(--ono-text)]">
|
|
@@ -486,17 +486,17 @@ bindShortcutsModal();
|
|
|
486
486
|
<!--
|
|
487
487
|
${p}
|
|
488
488
|
-->
|
|
489
|
-
`},"layout");var
|
|
489
|
+
`},"layout");var pa=Object.defineProperty,ua=f((e,t)=>pa(e,"name",{value:t,configurable:!0}),"o$1");const j=globalThis,ha=[[!!j.Netlify,"netlify"],[!!j.EdgeRuntime,"edge-light"],[j.navigator?.userAgent==="Cloudono-Workers","workerd"],[!!j.Deno,"deno"],[!!j.__lagon__,"lagon"],[j.process?.release?.name==="node","node"],[!!j.Bun||!!j.process?.versions?.bun,"bun"],[!!j.fastly,"fastly"]],ga=ua(()=>{const e=ha.find(t=>t[0]);if(e)return e[1]},"detectRuntime"),ma=ga(),Nt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-minus%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%22M5%2012h14%22%20%2F%3E%20%3C%2Fsvg%3E",qt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-plus%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%22M5%2012h14%22%20%2F%3E%20%3Cpath%20d%3D%22M12%205v14%22%20%2F%3E%20%3C%2Fsvg%3E",Ie="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-chevron-down%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%22m6%209%206%206%206-6%22%20%2F%3E%20%3C%2Fsvg%3E";var fa=Object.defineProperty,wa=f((e,t)=>fa(e,"name",{value:t,configurable:!0}),"t$1");const ba=wa(e=>{if(typeof e!="string")throw new TypeError("revisionHash: input must be a string");return er("sha256").update(e,"utf8").digest("hex").slice(0,16)},"revisionHash");var va=Object.defineProperty,xa=f((e,t)=>va(e,"name",{value:t,configurable:!0}),"n$3");const ka=xa(e=>{if(e.startsWith("node:"))return"internal";if(e.includes("node_modules"))return"node_modules";if(e.includes("native"))return"native";if(e.includes("webpack"))return"webpack"},"getType");var ya=Object.defineProperty,$a=f((e,t)=>ya(e,"name",{value:t,configurable:!0}),"n$2");const Ea=$a(e=>{const t=[];let o=[];for(let r=0;r<e.length;r+=1){o.push(e[r]);const n=r===e.length-1,a=!n&&e[r].type!==e[r+1].type;(n||a)&&(o.length>1?t.push(o):t.push(o[0]),o=[])}return t},"groupSimilarTypes");var Sa=Object.defineProperty,Wt=f((e,t)=>Sa(e,"name",{value:t,configurable:!0}),"m$3");const ko=Wt(async(e,t={})=>{const o=ba(e.name+e.message+e.stack),r=at(e),n=Wt(p=>p.replaceAll(/[&<>"']/g,h=>({'"':""","&":"&","'":"'","<":"<",">":">"})[h]||h),"escapeHtml"),a=[],i=[];for await(const[p,h]of r.entries()){const m=`// Unable to load source code for ${h.file}:${h.line}:${h.column}`,g=h.file?await ve(h.file):void 0,w=!!g,y=g?it(g,{start:{column:h.column,line:h.line}},{linesAbove:9,linesBelow:10,showGutter:!1}):m,D=be(h.file||"");let L;if(D==="text")L=`<pre class="shiki"><code>${n(y)}</code></pre>`;else{const Oo=(await Ko([D])).codeToHtml(y,{lang:D,themes:{dark:"github-dark-default",light:"github-light"}});L=E(Oo)}const ae=`${h.file}:${h.line}:${h.column}`,F=(h.file||"").replace(/^file:\/\//,""),z=ae.replace(Xo.cwd?.()||"","").replace("file:///",""),ie=E(h.methodName||""),J=E(z);a.push({html:`<button type="button" id="source-code-tabs-item-${o}-${p}" data-stack-tab="#source-code-tabs-${o}-${p}" aria-controls="source-code-tabs-${o}-${p}" ${w?"":'disabled aria-disabled="true"'} class="${xo("relative inline-flex items-center gap-x-2 text-sm whitespace-nowrap p-6 w-full text-left border-l-2 border-transparent hover:bg-[var(--ono-hover-overlay)] text-[var(--ono-text-muted)] cursor-pointer",w?"cursor-pointer":"cursor-not-allowed")}">
|
|
490
490
|
<div class="flex flex-col w-full text-left overflow-hidden min-w-0">
|
|
491
|
-
<span class="font-medium text-[var(--ono-text)] truncate">${
|
|
492
|
-
<span class="text-sm text-[var(--ono-text-muted)] truncate">${
|
|
491
|
+
<span class="font-medium text-[var(--ono-text)] truncate">${ie}</span>
|
|
492
|
+
<span class="text-sm text-[var(--ono-text-muted)] truncate">${J}</span>
|
|
493
493
|
</div>
|
|
494
|
-
</button>`,type:
|
|
494
|
+
</button>`,type:h.file?ka(h.file):void 0});let We=J;t.openInEditorUrl?We=`<button type="button" class="underline hover:text-[var(--ono-link)]" data-open-in-editor data-url="${Qo(t.openInEditorUrl)}" data-path="${$(F)}" data-line="${$(h.line||1)}" data-column="${$(h.column||1)}" title="Open ${J} in external editor">${J} — Open in editor</button>`:w&&(We=`<button type="button" class="underline hover:text-[var(--ono-link)]" data-editor-link data-path="${$(F)}" data-line="${$(h.line||1)}" data-column="${$(h.column||1)}" title="Open ${J} in editor">${J} — Open in editor</button>`),i.push(`<div id="source-code-tabs-${o}-${p}" class="${p===0&&w?"block":"hidden"}" aria-labelledby="source-code-tabs-item-${o}-${p}" tabindex="0">
|
|
495
495
|
<div class="pt-6 px-6 text-sm text-right text-[var(--ono-text)]">
|
|
496
496
|
${We}
|
|
497
497
|
</div>
|
|
498
|
-
<div class="p-6">${
|
|
499
|
-
</div>`)}const l=
|
|
498
|
+
<div class="p-6">${L}</div>
|
|
499
|
+
</div>`)}const l=Ea(a),s=l.map((p,h)=>{if(Array.isArray(p)){const m=p[0];let g;switch(m.type){case"bun":{g="bun";break}case"internal":{g="internal";break}case"native":{g="native";break}case"node_modules":{g="node_modules";break}case"webpack":{g="webpack";break}default:g="application"}const w=`small-switch-${o}-${h}`,y=`stack-trace-group-${o}-${h}`;return`<div class="flex items-center gap-2">
|
|
500
500
|
<label for="${w}" class="relative text-sm text-[var(--ono-text)] flex gap-2 items-center">
|
|
501
501
|
<div class="relative inline-flex h-5 w-9 cursor-pointer items-center">
|
|
502
502
|
<input type="checkbox" id="${w}" data-group-toggle="${o}" data-target-id="${y}" class="peer sr-only">
|
|
@@ -513,7 +513,7 @@ bindShortcutsModal();
|
|
|
513
513
|
<div class="flex flex-row items-center gap-2">${s}</div>
|
|
514
514
|
</div>
|
|
515
515
|
<nav class="flex flex-col" aria-label="Frames">
|
|
516
|
-
${l.map((p,
|
|
516
|
+
${l.map((p,h)=>{if(Array.isArray(p)){const m=p[0];let g;switch(m.type){case"bun":{g="bun";break}case"internal":{g="internal";break}case"native":{g="native";break}case"node_modules":{g="node_modules";break}case"webpack":{g="webpack";break}default:g="application"}return`<details id="stack-trace-group-${o}-${h}">
|
|
517
517
|
<summary class="py-3 px-6 cursor-pointer flex items-center justify-between text-sm hover:bg-[var(--ono-hover-overlay)] focus:outline-hidden focus:ring-1 focus:ring-gray-600 text-[var(--ono-text)]">
|
|
518
518
|
<span class="flex items-center gap-2">
|
|
519
519
|
<span class="uppercase tracking-wide text-[10px] text-[var(--ono-text-muted)]">${g}</span>
|
|
@@ -525,9 +525,9 @@ bindShortcutsModal();
|
|
|
525
525
|
</details>`}return p.html}).join("")}
|
|
526
526
|
</nav>
|
|
527
527
|
</div>
|
|
528
|
-
<div class="w-8/12 rounded-tr-lg rounded-br-lg overflow-hidden bg-[var(--ono-surface)]">${
|
|
528
|
+
<div class="w-8/12 rounded-tr-lg rounded-br-lg overflow-hidden bg-[var(--ono-surface)]">${i.join("")}</div>
|
|
529
529
|
</main>
|
|
530
|
-
</section>`,
|
|
530
|
+
</section>`,u=`
|
|
531
531
|
(function(){
|
|
532
532
|
(window.subscribeToDOMContentLoaded || function (fn) {
|
|
533
533
|
if (document.readyState !== 'loading') fn(); else document.addEventListener('DOMContentLoaded', fn);
|
|
@@ -737,18 +737,18 @@ bindShortcutsModal();
|
|
|
737
737
|
});
|
|
738
738
|
});
|
|
739
739
|
})();
|
|
740
|
-
`;return{html:c,script:
|
|
740
|
+
`;return{html:c,script:u}},"stackTraceViewer"),Xe="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";var Ca=Object.defineProperty,Ta=f((e,t)=>Ca(e,"name",{value:t,configurable:!0}),"s$2");const yo=Ta(({message:e}={})=>e?`<span class="inline-flex justify-center items-center text-[var(--ono-text)] cursor-help" title="${E(e)}">
|
|
741
741
|
<span class="dui" style="-webkit-mask-image: url('${Xe}'); mask-image: url('${Xe}')"></span>
|
|
742
|
-
</span>`:"","tooltip");var
|
|
742
|
+
</span>`:"","tooltip");var Aa=Object.defineProperty,Da=f((e,t)=>Aa(e,"name",{value:t,configurable:!0}),"r$1");const Ia=Da(async(e,t={})=>{if(e.length===0)return{html:"",script:""};const o=[],r=[];for await(const[n,a]of e.entries())if(a instanceof Error){const{html:i,script:l}=await ko(a,{openInEditorUrl:t.openInEditorUrl});o.push(`<details aria-label="Cause ${n+1}" class="relative rounded-[var(--ono-radius-lg)] mb-2 last:mb-0 group shadow-[var(--ono-elevation-1)] bg-[var(--ono-surface)]">
|
|
743
743
|
<summary class="pl-5 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] transition-all inline-flex justify-between items-center gap-x-3 w-full font-semibold text-start py-4 px-5 disabled:opacity-50 disabled:pointer-events-none cursor-pointer text-[var(--ono-text)]">
|
|
744
|
-
${
|
|
745
|
-
<span class="dui ono-expand-icon-closed size-4" style="-webkit-mask-image:url('${
|
|
746
|
-
<span class="dui ono-expand-icon-open size-4" style="-webkit-mask-image:url('${
|
|
744
|
+
${E(a.name)}: ${E(a.message)}
|
|
745
|
+
<span class="dui ono-expand-icon-closed size-4" style="-webkit-mask-image:url('${qt}'); mask-image:url('${qt}')"></span>
|
|
746
|
+
<span class="dui ono-expand-icon-open size-4" style="-webkit-mask-image:url('${Nt}'); mask-image:url('${Nt}')"></span>
|
|
747
747
|
</summary>
|
|
748
748
|
<section class="w-full overflow-hidden transition-[height] duration-300 p-5 pt-0">
|
|
749
|
-
${
|
|
749
|
+
${i}
|
|
750
750
|
</section>
|
|
751
|
-
</details>`),
|
|
751
|
+
</details>`),r.push(l)}else typeof a=="string"?o.push(`<div class="container rounded-lg mt-2 py-4 px-5 shadow-xl bg-[var(--ono-white-smoke)] text-[var(--ono-text)]">${E(a)}</div>`):o.push(`<div class="container rounded-lg mt-2 py-4 px-5 shadow-xl bg-[var(--ono-white-smoke)] text-[var(--ono-text)]">${E(JSON.stringify(a))}</div>`);return{html:`<style>
|
|
752
752
|
/* Toggle plus/minus icons inside <details> */
|
|
753
753
|
details summary .ono-expand-icon-open { display: none !important; }
|
|
754
754
|
details[open] summary .ono-expand-icon-open { display: inline-block !important; }
|
|
@@ -757,13 +757,13 @@ bindShortcutsModal();
|
|
|
757
757
|
<section class="w-full">
|
|
758
758
|
<div>
|
|
759
759
|
<h3 class="text-xl font-bold inline-flex justify-center items-center text-[var(--ono-text)]">Error causes</h3>
|
|
760
|
-
${
|
|
760
|
+
${yo({message:`The "cause" property of an Error indicates the original reason the error occurred.
|
|
761
761
|
Causes are ordered in the sequence they occurred.`})}
|
|
762
762
|
</div>
|
|
763
763
|
<div class="mt-6">${o.join(`
|
|
764
764
|
`)}</div>
|
|
765
|
-
</section>`,script:
|
|
766
|
-
`)}},"causes"),
|
|
765
|
+
</section>`,script:r.join(`
|
|
766
|
+
`)}},"causes"),Ht="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-external-link%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%203h6v6%22%20%2F%3E%20%3Cpath%20d%3D%22M10%2014%2021%203%22%20%2F%3E%20%3Cpath%20d%3D%22M18%2013v6a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2h6%22%20%2F%3E%20%3C%2Fsvg%3E";var za=Object.defineProperty,Ba=f((e,t)=>za(e,"name",{value:t,configurable:!0}),"i$2");const $o=Ba(({label:e="Copy",secondaryLabel:t="Copy fix prompt",secondaryText:o,successText:r="Copied!",targetId:n})=>{const a=E(t),i=$(o),l=$(n),s=$(e),d=E(e);return{html:`
|
|
767
767
|
<div class="ono-dropdown relative inline-block">
|
|
768
768
|
<button
|
|
769
769
|
type="button"
|
|
@@ -771,11 +771,11 @@ bindShortcutsModal();
|
|
|
771
771
|
title="${s}"
|
|
772
772
|
aria-haspopup="menu"
|
|
773
773
|
aria-expanded="false"
|
|
774
|
-
aria-controls="${
|
|
774
|
+
aria-controls="${$(`ono-copy-menu-${String(n).replace(/^#/,"")}`)}"
|
|
775
775
|
class="ono-dropdown-toggle inline-flex justify-center items-center gap-2 px-1 h-8 rounded-[var(--ono-radius-md)] shadow-[var(--ono-elevation-1)] bg-[var(--ono-surface)] text-[var(--ono-text)] hover:bg-[var(--ono-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-hover-overlay)] disabled:opacity-50 disabled:pointer-events-none cursor-pointer"
|
|
776
776
|
>
|
|
777
|
-
<span class="ono-copy-default dui size-4 transition" style="-webkit-mask-image: url('${
|
|
778
|
-
<span class="ono-copy-success dui hidden size-4 text-[var(--ono-red-orange)]" style="-webkit-mask-image: url('${
|
|
777
|
+
<span class="ono-copy-default dui size-4 transition" style="-webkit-mask-image: url('${Et}'); mask-image: url('${Et}')"></span>
|
|
778
|
+
<span class="ono-copy-success dui hidden size-4 text-[var(--ono-red-orange)]" style="-webkit-mask-image: url('${St}'); mask-image: url('${St}')"></span>
|
|
779
779
|
<span class="sr-only">${d}</span>
|
|
780
780
|
<span class="dui size-4 transition-transform duration-200 [&.ono-dropdown-open]:rotate-180" style="-webkit-mask-image:url('${Ie}'); mask-image:url('${Ie}')"></span>
|
|
781
781
|
</button>
|
|
@@ -786,7 +786,7 @@ bindShortcutsModal();
|
|
|
786
786
|
role="menuitem"
|
|
787
787
|
class="ono-copy-menu-item w-full text-left px-3 py-2 rounded-[var(--ono-radius-md)] hover:bg-[var(--ono-hover-overlay)] focus:outline-hidden cursor-pointer"
|
|
788
788
|
data-target="#${l}"
|
|
789
|
-
data-success-text="${
|
|
789
|
+
data-success-text="${$(r)}"
|
|
790
790
|
>
|
|
791
791
|
${d}
|
|
792
792
|
</button>
|
|
@@ -794,79 +794,79 @@ bindShortcutsModal();
|
|
|
794
794
|
type="button"
|
|
795
795
|
role="menuitem"
|
|
796
796
|
class="ono-copy-menu-item w-full text-left px-3 py-2 rounded-[var(--ono-radius-md)] hover:bg-[var(--ono-hover-overlay)] focus:outline-hidden cursor-pointer"
|
|
797
|
-
data-text="${
|
|
798
|
-
data-success-text="${
|
|
797
|
+
data-text="${i}"
|
|
798
|
+
data-success-text="${$(r)}"
|
|
799
799
|
>
|
|
800
|
-
${
|
|
800
|
+
${a}
|
|
801
801
|
</button>
|
|
802
802
|
</div>
|
|
803
803
|
</div>
|
|
804
|
-
`}},"copyDropdown"),Ge="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
|
|
805
|
-
]`).replace("lheading",
|
|
806
|
-
`).map(
|
|
807
|
-
`)}f(
|
|
808
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let o=t[0],
|
|
809
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let o=
|
|
804
|
+
`}},"copyDropdown"),Ge="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 Ra=Object.defineProperty,v=f((e,t)=>Ra(e,"name",{value:t,configurable:!0}),"k");function Pe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}f(Pe,"v$1");v(Pe,"M");var Q=Pe();function mt(e){Q=e}f(mt,"le");v(mt,"G");var q={exec:v(()=>null,"exec")};function b(e,t=""){let o=typeof e=="string"?e:e.source,r={replace:v((n,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(C.caret,"$1"),o=o.replace(n,i),r},"replace"),getRegex:v(()=>new RegExp(o,t),"getRegex")};return r}f(b,"p");v(b,"k");var La=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),C={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:v(e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:v(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:v(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:v(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:v(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),"headingBeginRegex"),htmlBeginRegex:v(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex"),blockquoteBeginRegex:v(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`),"blockquoteBeginRegex")},ja=/^(?:[ \t]*(?:\n|$))+/,_a=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Fa=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,xe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ma=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ft=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Eo=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,So=b(Eo).replace(/bull/g,ft).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(),Oa=b(Eo).replace(/bull/g,ft).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(),wt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Pa=/^[^\n]+/,bt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Na=b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",bt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),qa=b(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ft).getRegex(),Ne="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",vt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Wa=b("^ {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",vt).replace("tag",Ne).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Co=b(wt).replace("hr",xe).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",Ne).getRegex(),Ha=b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Co).getRegex(),xt={blockquote:Ha,code:_a,def:Na,fences:Fa,heading:Ma,hr:xe,html:Wa,lheading:So,list:qa,newline:ja,paragraph:Co,table:q,text:Pa},Ut=b("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",xe).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",Ne).getRegex(),Ua={...xt,lheading:Oa,table:Ut,paragraph:b(wt).replace("hr",xe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ut).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",Ne).getRegex()},Za={...xt,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vt).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:q,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(wt).replace("hr",xe).replace("heading",` *#{1,6} *[^
|
|
805
|
+
]`).replace("lheading",So).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ga=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Va=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,To=/^( {2,}|\\)\n(?!\s*$)/,Ka=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,qe=/[\p{P}\p{S}]/u,kt=/[\s\p{P}\p{S}]/u,Ao=/[^\s\p{P}\p{S}]/u,Qa=b(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,kt).getRegex(),Do=/(?!~)[\p{P}\p{S}]/u,Ja=/(?!~)[\s\p{P}\p{S}]/u,Xa=/(?:[^\s\p{P}\p{S}]|~)/u,Io=/(?![*_])[\p{P}\p{S}]/u,Ya=/(?![*_])[\s\p{P}\p{S}]/u,ei=/(?:[^\s\p{P}\p{S}]|[*_])/u,ti=b(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",La?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),zo=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,oi=b(zo,"u").replace(/punct/g,qe).getRegex(),ri=b(zo,"u").replace(/punct/g,Do).getRegex(),Bo="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ni=b(Bo,"gu").replace(/notPunctSpace/g,Ao).replace(/punctSpace/g,kt).replace(/punct/g,qe).getRegex(),ai=b(Bo,"gu").replace(/notPunctSpace/g,Xa).replace(/punctSpace/g,Ja).replace(/punct/g,Do).getRegex(),ii=b("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ao).replace(/punctSpace/g,kt).replace(/punct/g,qe).getRegex(),si=b(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Io).getRegex(),li="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ci=b(li,"gu").replace(/notPunctSpace/g,ei).replace(/punctSpace/g,Ya).replace(/punct/g,Io).getRegex(),di=b(/\\(punct)/,"gu").replace(/punct/g,qe).getRegex(),pi=b(/^<(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(),ui=b(vt).replace("(?:-->|$)","-->").getRegex(),hi=b("^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",ui).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ze=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,gi=b(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ze).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ro=b(/^!?\[(label)\]\[(ref)\]/).replace("label",ze).replace("ref",bt).getRegex(),Lo=b(/^!?\[(ref)\](?:\[\])?/).replace("ref",bt).getRegex(),mi=b("reflink|nolink(?!\\()","g").replace("reflink",Ro).replace("nolink",Lo).getRegex(),Zt=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,yt={_backpedal:q,anyPunctuation:di,autolink:pi,blockSkip:ti,br:To,code:Va,del:q,delLDelim:q,delRDelim:q,emStrongLDelim:oi,emStrongRDelimAst:ni,emStrongRDelimUnd:ii,escape:Ga,link:gi,nolink:Lo,punctuation:Qa,reflink:Ro,reflinkSearch:mi,tag:hi,text:Ka,url:q},fi={...yt,link:b(/^!?\[(label)\]\((.*?)\)/).replace("label",ze).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ze).getRegex()},Ye={...yt,emStrongRDelimAst:ai,emStrongLDelim:ri,delLDelim:si,delRDelim:ci,url:b(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Zt).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:b(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Zt).getRegex()},wi={...Ye,br:b(To).replace("{2,}","*").getRegex(),text:b(Ye.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ee={normal:xt,gfm:Ua,pedantic:Za},ce={normal:yt,gfm:Ye,breaks:wi,pedantic:fi},bi={"&":"&","<":"<",">":">",'"':""","'":"'"},Gt=v(e=>bi[e],"de");function I(e,t){if(t){if(C.escapeTest.test(e))return e.replace(C.escapeReplace,Gt)}else if(C.escapeTestNoEncode.test(e))return e.replace(C.escapeReplaceNoEncode,Gt);return e}f(I,"y$1");v(I,"O");function et(e){try{e=encodeURI(e).replace(C.percentDecode,"%")}catch{return null}return e}f(et,"re");v(et,"X");function tt(e,t){let o=e.replace(C.findPipe,(a,i,l)=>{let s=!1,d=i;for(;--d>=0&&l[d]==="\\";)s=!s;return s?"|":" |"}),r=o.split(C.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(C.slashPipe,"|");return r}f(tt,"ne");v(tt,"J");function Y(e,t,o){let r=e.length;if(r===0)return"";let n=0;for(;n<r;){let a=e.charAt(r-n-1);if(a===t&&!o)n++;else if(a!==t&&o)n++;else break}return e.slice(0,r-n)}f(Y,"_");v(Y,"E");function jo(e,t){if(e.indexOf(t[1])===-1)return-1;let o=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])o++;else if(e[r]===t[1]&&(o--,o<0))return r;return o>0?-2:-1}f(jo,"it");v(jo,"ge");function _o(e,t=0){let o=t,r="";for(let n of e)if(n===" "){let a=4-o%4;r+=" ".repeat(a),o+=a}else r+=n,o++;return r}f(_o,"at");v(_o,"fe");function ot(e,t,o,r,n){let a=t.href,i=t.title||null,l=e[1].replace(n.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:e[0].charAt(0)==="!"?"image":"link",raw:o,href:a,title:i,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,s}f(ot,"se");v(ot,"me");function Fo(e,t,o){let r=e.match(o.other.indentCodeCompensation);if(r===null)return t;let n=r[1];return t.split(`
|
|
806
|
+
`).map(a=>{let i=a.match(o.other.beginningSpace);if(i===null)return a;let[l]=i;return l.length>=n.length?a.slice(n.length):a}).join(`
|
|
807
|
+
`)}f(Fo,"ot");v(Fo,"it");var Be=class{static{f(this,"I")}static{v(this,"w")}options;rules;lexer;constructor(e){this.options=e||Q}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let o=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?o:Y(o,`
|
|
808
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let o=t[0],r=Fo(o,t[3]||"",this.rules);return{type:"code",raw:o,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let o=t[2].trim();if(this.rules.other.endingHash.test(o)){let r=Y(o,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(o=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Y(t[0],`
|
|
809
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let o=Y(t[0],`
|
|
810
810
|
`).split(`
|
|
811
|
-
`),
|
|
811
|
+
`),r="",n="",a=[];for(;o.length>0;){let i=!1,l=[],s;for(s=0;s<o.length;s++)if(this.rules.other.blockquoteStart.test(o[s]))l.push(o[s]),i=!0;else if(!i)l.push(o[s]);else break;o=o.slice(s);let d=l.join(`
|
|
812
812
|
`),c=d.replace(this.rules.other.blockquoteSetextReplace,`
|
|
813
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");
|
|
814
|
-
${d}`:d,
|
|
815
|
-
${c}`:c;let
|
|
813
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
814
|
+
${d}`:d,n=n?`${n}
|
|
815
|
+
${c}`:c;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,a,!0),this.lexer.state.top=u,o.length===0)break;let p=a.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let h=p,m=h.raw+`
|
|
816
816
|
`+o.join(`
|
|
817
|
-
`),g=this.blockquote(m);
|
|
817
|
+
`),g=this.blockquote(m);a[a.length-1]=g,r=r.substring(0,r.length-h.raw.length)+g.raw,n=n.substring(0,n.length-h.text.length)+g.text;break}else if(p?.type==="list"){let h=p,m=h.raw+`
|
|
818
818
|
`+o.join(`
|
|
819
|
-
`),g=this.list(m);
|
|
820
|
-
`);continue}}return{type:"blockquote",raw:
|
|
821
|
-
`,1)[0]
|
|
822
|
-
`,1)[0],u
|
|
823
|
-
`,e=e.substring(p.length+1),s=!0),!s){let g=this.rules.other.nextBulletRegex(m),w=this.rules.other.hrRegex(m),y=this.rules.other.fencesBeginRegex(m),D=this.rules.other.headingBeginRegex(m),
|
|
824
|
-
`,1)[0],
|
|
825
|
-
`+
|
|
826
|
-
`+p}
|
|
827
|
-
`,e=e.substring(
|
|
828
|
-
`):[],
|
|
829
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:o,tokens:this.lexer.inline(o)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let o=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let
|
|
830
|
-
`),this.blockTokens(t,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let
|
|
831
|
-
`:o.push(
|
|
819
|
+
`),g=this.list(m);a[a.length-1]=g,r=r.substring(0,r.length-p.raw.length)+g.raw,n=n.substring(0,n.length-h.raw.length)+g.raw,o=m.substring(a.at(-1).raw.length).split(`
|
|
820
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:a,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let o=t[1].trim(),r=o.length>1,n={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 a=this.rules.other.listItemRegex(o),i=!1;for(;e;){let s=!1,d="",c="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let u=_o(t[2].split(`
|
|
821
|
+
`,1)[0],t[1].length),p=e.split(`
|
|
822
|
+
`,1)[0],h=!u.trim(),m=0;if(this.options.pedantic?(m=2,c=u.trimStart()):h?m=t[1].length+1:(m=u.search(this.rules.other.nonSpaceChar),m=m>4?1:m,c=u.slice(m),m+=t[1].length),h&&this.rules.other.blankLine.test(p)&&(d+=p+`
|
|
823
|
+
`,e=e.substring(p.length+1),s=!0),!s){let g=this.rules.other.nextBulletRegex(m),w=this.rules.other.hrRegex(m),y=this.rules.other.fencesBeginRegex(m),D=this.rules.other.headingBeginRegex(m),L=this.rules.other.htmlBeginRegex(m),ae=this.rules.other.blockquoteBeginRegex(m);for(;e;){let F=e.split(`
|
|
824
|
+
`,1)[0],z;if(p=F,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),z=p):z=p.replace(this.rules.other.tabCharGlobal," "),y.test(p)||D.test(p)||L.test(p)||ae.test(p)||g.test(p)||w.test(p))break;if(z.search(this.rules.other.nonSpaceChar)>=m||!p.trim())c+=`
|
|
825
|
+
`+z.slice(m);else{if(h||u.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||y.test(u)||D.test(u)||w.test(u))break;c+=`
|
|
826
|
+
`+p}h=!p.trim(),d+=F+`
|
|
827
|
+
`,e=e.substring(F.length+1),u=z.slice(m)}}n.loose||(i?n.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(i=!0)),n.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),n.raw+=d}let l=n.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let s of n.items){if(this.lexer.state.top=!1,s.tokens=this.lexer.blockTokens(s.text,[]),s.task){if(s.text=s.text.replace(this.rules.other.listReplaceTask,""),s.tokens[0]?.type==="text"||s.tokens[0]?.type==="paragraph"){s.tokens[0].raw=s.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),s.tokens[0].text=s.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let c=this.lexer.inlineQueue.length-1;c>=0;c--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)){this.lexer.inlineQueue[c].src=this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask,"");break}}let d=this.rules.other.listTaskCheckbox.exec(s.raw);if(d){let c={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};s.checked=c.checked,n.loose?s.tokens[0]&&["paragraph","text"].includes(s.tokens[0].type)&&"tokens"in s.tokens[0]&&s.tokens[0].tokens?(s.tokens[0].raw=c.raw+s.tokens[0].raw,s.tokens[0].text=c.raw+s.tokens[0].text,s.tokens[0].tokens.unshift(c)):s.tokens.unshift({type:"paragraph",raw:c.raw,text:c.raw,tokens:[c]}):s.tokens.unshift(c)}}if(!n.loose){let d=s.tokens.filter(u=>u.type==="space"),c=d.length>0&&d.some(u=>this.rules.other.anyLine.test(u.raw));n.loose=c}}if(n.loose)for(let s of n.items){s.loose=!0;for(let d of s.tokens)d.type==="text"&&(d.type="paragraph")}return n}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let o=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:o,raw:t[0],href:r,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let o=tt(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
828
|
+
`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(o.length===r.length){for(let i of r)this.rules.other.tableAlignRight.test(i)?a.align.push("right"):this.rules.other.tableAlignCenter.test(i)?a.align.push("center"):this.rules.other.tableAlignLeft.test(i)?a.align.push("left"):a.align.push(null);for(let i=0;i<o.length;i++)a.header.push({text:o[i],tokens:this.lexer.inline(o[i]),header:!0,align:a.align[i]});for(let i of n)a.rows.push(tt(i,a.header.length).map((l,s)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[s]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let o=t[1].charAt(t[1].length-1)===`
|
|
829
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:o,tokens:this.lexer.inline(o)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let o=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let a=Y(o.slice(0,-1),"\\");if((o.length-a.length)%2===0)return}else{let a=jo(t[2],"()");if(a===-2)return;if(a>-1){let i=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],n=a[3])}else n=t[3]?t[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)),ot(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){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," "),n=t[r.toLowerCase()];if(!n){let a=o[0].charAt(0);return{type:"text",raw:a,text:a}}return ot(o,n,o[0],this.lexer,this.rules)}}emStrong(e,t,o=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!o||this.rules.inline.punctuation.exec(o))){let n=[...r[0]].length-1,a,i,l=n,s=0,d=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+n);(r=d.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(i=[...a].length,r[3]||r[4]){l+=i;continue}else if((r[5]||r[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l+s);let c=[...r[0]][0].length,u=e.slice(0,n+r.index+c+i);if(Math.min(n,i)%2){let h=u.slice(1,-1);return{type:"em",raw:u,text:h,tokens:this.lexer.inlineTokens(h)}}let p=u.slice(2,-2);return{type:"strong",raw:u,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let o=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(o),n=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return r&&n&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:t[0],text:o}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,o=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!o||this.rules.inline.punctuation.exec(o))){let n=[...r[0]].length-1,a,i,l=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a||(i=[...a].length,i!==n))continue;if(r[3]||r[4]){l+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l);let d=[...r[0]][0].length,c=e.slice(0,n+r.index+d+i),u=c.slice(n,-n);return{type:"del",raw:c,text:u,tokens:this.lexer.inlineTokens(u)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let o,r;return t[2]==="@"?(o=t[1],r="mailto:"+o):(o=t[1],r=o),{type:"link",raw:t[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let o,r;if(t[2]==="@")o=t[0],r="mailto:"+o;else{let n;do n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(n!==t[0]);o=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let o=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:o}}}},B=class rt{static{f(this,"H")}static{v(this,"u")}tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Q,this.options.tokenizer=this.options.tokenizer||new Be,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 o={other:C,block:Ee.normal,inline:ce.normal};this.options.pedantic?(o.block=Ee.pedantic,o.inline=ce.pedantic):this.options.gfm&&(o.block=Ee.gfm,this.options.breaks?o.inline=ce.breaks:o.inline=ce.gfm),this.tokenizer.rules=o}static get rules(){return{block:Ee,inline:ce}}static lex(t,o){return new rt(o).lex(t)}static lexInline(t,o){return new rt(o).inlineTokens(t)}lex(t){t=t.replace(C.carriageReturn,`
|
|
830
|
+
`),this.blockTokens(t,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let r=this.inlineQueue[o];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,o=[],r=!1){for(this.options.pedantic&&(t=t.replace(C.tabCharGlobal," ").replace(C.spaceLine,""));t;){let n;if(this.options.extensions?.block?.some(i=>(n=i.call({lexer:this},t,o))?(t=t.substring(n.raw.length),o.push(n),!0):!1))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let i=o.at(-1);n.raw.length===1&&i!==void 0?i.raw+=`
|
|
831
|
+
`:o.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let i=o.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
832
832
|
`)?"":`
|
|
833
|
-
`)+
|
|
834
|
-
`+
|
|
833
|
+
`)+n.raw,i.text+=`
|
|
834
|
+
`+n.text,this.inlineQueue.at(-1).src=i.text):o.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),o.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),o.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),o.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),o.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),o.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),o.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length);let i=o.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
835
835
|
`)?"":`
|
|
836
|
-
`)+
|
|
837
|
-
`+
|
|
836
|
+
`)+n.raw,i.text+=`
|
|
837
|
+
`+n.raw,this.inlineQueue.at(-1).src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},o.push(n));continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),o.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),o.push(n);continue}let a=t;if(this.options.extensions?.startBlock){let i=1/0,l=t.slice(1),s;this.options.extensions.startBlock.forEach(d=>{s=d.call({lexer:this},l),typeof s=="number"&&s>=0&&(i=Math.min(i,s))}),i<1/0&&i>=0&&(a=t.substring(0,i+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){let i=o.at(-1);r&&i?.type==="paragraph"?(i.raw+=(i.raw.endsWith(`
|
|
838
838
|
`)?"":`
|
|
839
|
-
`)+
|
|
840
|
-
`+
|
|
839
|
+
`)+n.raw,i.text+=`
|
|
840
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):o.push(n),r=a.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let i=o.at(-1);i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
841
841
|
`)?"":`
|
|
842
|
-
`)+
|
|
843
|
-
`+
|
|
844
|
-
`;return
|
|
845
|
-
`:"<pre><code>"+(
|
|
842
|
+
`)+n.raw,i.text+=`
|
|
843
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):o.push(n);continue}if(t){let i="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return this.state.top=!0,o}inline(t,o=[]){return this.inlineQueue.push({src:t,tokens:o}),o}inlineTokens(t,o=[]){let r=t,n=null;if(this.tokens.links){let s=Object.keys(this.tokens.links);if(s.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)s.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,n.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)a=n[2]?n[2].length:0,r=r.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,l="";for(;t;){i||(l=""),i=!1;let s;if(this.options.extensions?.inline?.some(c=>(s=c.call({lexer:this},t,o))?(t=t.substring(s.raw.length),o.push(s),!0):!1))continue;if(s=this.tokenizer.escape(t)){t=t.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.tag(t)){t=t.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.link(t)){t=t.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(s.raw.length);let c=o.at(-1);s.type==="text"&&c?.type==="text"?(c.raw+=s.raw,c.text+=s.text):o.push(s);continue}if(s=this.tokenizer.emStrong(t,r,l)){t=t.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.codespan(t)){t=t.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.br(t)){t=t.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.del(t,r,l)){t=t.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.autolink(t)){t=t.substring(s.raw.length),o.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(t))){t=t.substring(s.raw.length),o.push(s);continue}let d=t;if(this.options.extensions?.startInline){let c=1/0,u=t.slice(1),p;this.options.extensions.startInline.forEach(h=>{p=h.call({lexer:this},u),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(d=t.substring(0,c+1))}if(s=this.tokenizer.inlineText(d)){t=t.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(l=s.raw.slice(-1)),i=!0;let c=o.at(-1);c?.type==="text"?(c.raw+=s.raw,c.text+=s.text):o.push(s);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return o}},Re=class{static{f(this,"L")}static{v(this,"y")}options;parser;constructor(t){this.options=t||Q}space(t){return""}code({text:t,lang:o,escaped:r}){let n=(o||"").match(C.notSpaceStart)?.[0],a=t.replace(C.endingNewline,"")+`
|
|
844
|
+
`;return n?'<pre><code class="language-'+I(n)+'">'+(r?a:I(a,!0))+`</code></pre>
|
|
845
|
+
`:"<pre><code>"+(r?a:I(a,!0))+`</code></pre>
|
|
846
846
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
847
847
|
${this.parser.parse(t)}</blockquote>
|
|
848
848
|
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:o}){return`<h${o}>${this.parser.parseInline(t)}</h${o}>
|
|
849
849
|
`}hr(t){return`<hr>
|
|
850
|
-
`}list(t){let o=t.ordered,
|
|
851
|
-
`+
|
|
850
|
+
`}list(t){let o=t.ordered,r=t.start,n="";for(let l=0;l<t.items.length;l++){let s=t.items[l];n+=this.listitem(s)}let a=o?"ol":"ul",i=o&&r!==1?' start="'+r+'"':"";return"<"+a+i+`>
|
|
851
|
+
`+n+"</"+a+`>
|
|
852
852
|
`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
|
|
853
853
|
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
854
|
-
`}table(t){let o="",
|
|
854
|
+
`}table(t){let o="",r="";for(let a=0;a<t.header.length;a++)r+=this.tablecell(t.header[a]);o+=this.tablerow({text:r});let n="";for(let a=0;a<t.rows.length;a++){let i=t.rows[a];r="";for(let l=0;l<i.length;l++)r+=this.tablecell(i[l]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
855
855
|
<thead>
|
|
856
856
|
`+o+`</thead>
|
|
857
|
-
`+
|
|
857
|
+
`+n+`</table>
|
|
858
858
|
`}tablerow({text:t}){return`<tr>
|
|
859
859
|
${t}</tr>
|
|
860
|
-
`}tablecell(t){let o=this.parser.parseInline(t.tokens),
|
|
861
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${
|
|
862
|
-
Please report this to https://github.com/markedjs/marked.`,e){let
|
|
860
|
+
`}tablecell(t){let o=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+o+`</${r}>
|
|
861
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${I(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:o,tokens:r}){let n=this.parser.parseInline(r),a=et(t);if(a===null)return n;t=a;let i='<a href="'+t+'"';return o&&(i+=' title="'+I(o)+'"'),i+=">"+n+"</a>",i}image({href:t,title:o,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let a=et(t);if(a===null)return I(r);t=a;let i=`<img src="${t}" alt="${I(r)}"`;return o&&(i+=` title="${I(o)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:I(t.text)}},$t=class{static{f(this,"D")}static{v(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}},R=class nt{static{f(this,"O")}static{v(this,"u")}options;renderer;textRenderer;constructor(t){this.options=t||Q,this.options.renderer=this.options.renderer||new Re,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $t}static parse(t,o){return new nt(o).parse(t)}static parseInline(t,o){return new nt(o).parseInline(t)}parse(t){let o="";for(let r=0;r<t.length;r++){let n=t[r];if(this.options.extensions?.renderers?.[n.type]){let i=n,l=this.options.extensions.renderers[i.type].call({parser:this},i);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(i.type)){o+=l||"";continue}}let a=n;switch(a.type){case"space":{o+=this.renderer.space(a);break}case"hr":{o+=this.renderer.hr(a);break}case"heading":{o+=this.renderer.heading(a);break}case"code":{o+=this.renderer.code(a);break}case"table":{o+=this.renderer.table(a);break}case"blockquote":{o+=this.renderer.blockquote(a);break}case"list":{o+=this.renderer.list(a);break}case"checkbox":{o+=this.renderer.checkbox(a);break}case"html":{o+=this.renderer.html(a);break}case"def":{o+=this.renderer.def(a);break}case"paragraph":{o+=this.renderer.paragraph(a);break}case"text":{o+=this.renderer.text(a);break}default:{let i='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return o}parseInline(t,o=this.renderer){let r="";for(let n=0;n<t.length;n++){let a=t[n];if(this.options.extensions?.renderers?.[a.type]){let l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=l||"";continue}}let i=a;switch(i.type){case"escape":{r+=o.text(i);break}case"html":{r+=o.html(i);break}case"link":{r+=o.link(i);break}case"image":{r+=o.image(i);break}case"checkbox":{r+=o.checkbox(i);break}case"strong":{r+=o.strong(i);break}case"em":{r+=o.em(i);break}case"codespan":{r+=o.codespan(i);break}case"br":{r+=o.br(i);break}case"del":{r+=o.del(i);break}case"text":{r+=o.text(i);break}default:{let l='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}},ue=class{static{f(this,"z")}static{v(this,"P")}options;block;constructor(e){this.options=e||Q}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?B.lex:B.lexInline}provideParser(){return this.block?R.parse:R.parseInline}},vi=class{static{f(this,"xe")}static{v(this,"B")}defaults=Pe();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=R;Renderer=Re;TextRenderer=$t;Lexer=B;Tokenizer=Be;Hooks=ue;constructor(...e){this.use(...e)}walkTokens(e,t){let o=[];for(let r of e)switch(o=o.concat(t.call(this,r)),r.type){case"table":{let n=r;for(let a of n.header)o=o.concat(this.walkTokens(a.tokens,t));for(let a of n.rows)for(let i of a)o=o.concat(this.walkTokens(i.tokens,t));break}case"list":{let n=r;o=o.concat(this.walkTokens(n.items,t));break}default:{let n=r;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(a=>{let i=n[a].flat(1/0);o=o.concat(this.walkTokens(i,t))}):n.tokens&&(o=o.concat(this.walkTokens(n.tokens,t)))}}return o}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(o=>{let r={...o};if(r.async=this.defaults.async||r.async||!1,o.extensions&&(o.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let a=t.renderers[n.name];a?t.renderers[n.name]=function(...i){let l=n.renderer.apply(this,i);return l===!1&&(l=a.apply(this,i)),l}:t.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[n.level];a?a.unshift(n.tokenizer):t[n.level]=[n.tokenizer],n.start&&(n.level==="block"?t.startBlock?t.startBlock.push(n.start):t.startBlock=[n.start]:n.level==="inline"&&(t.startInline?t.startInline.push(n.start):t.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(t.childTokens[n.name]=n.childTokens)}),r.extensions=t),o.renderer){let n=this.defaults.renderer||new Re(this.defaults);for(let a in o.renderer){if(!(a in n))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,l=o.renderer[i],s=n[i];n[i]=(...d)=>{let c=l.apply(n,d);return c===!1&&(c=s.apply(n,d)),c||""}}r.renderer=n}if(o.tokenizer){let n=this.defaults.tokenizer||new Be(this.defaults);for(let a in o.tokenizer){if(!(a in n))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,l=o.tokenizer[i],s=n[i];n[i]=(...d)=>{let c=l.apply(n,d);return c===!1&&(c=s.apply(n,d)),c}}r.tokenizer=n}if(o.hooks){let n=this.defaults.hooks||new ue;for(let a in o.hooks){if(!(a in n))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,l=o.hooks[i],s=n[i];ue.passThroughHooks.has(a)?n[i]=d=>{if(this.defaults.async&&ue.passThroughHooksRespectAsync.has(a))return(async()=>{let u=await l.call(n,d);return s.call(n,u)})();let c=l.call(n,d);return s.call(n,c)}:n[i]=(...d)=>{if(this.defaults.async)return(async()=>{let u=await l.apply(n,d);return u===!1&&(u=await s.apply(n,d)),u})();let c=l.apply(n,d);return c===!1&&(c=s.apply(n,d)),c}}r.hooks=n}if(o.walkTokens){let n=this.defaults.walkTokens,a=o.walkTokens;r.walkTokens=function(i){let l=[];return l.push(a.call(this,i)),n&&(l=l.concat(n.call(this,i))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return B.lex(e,t??this.defaults)}parser(e,t){return R.parse(e,t??this.defaults)}parseMarkdown(e){return(t,o)=>{let r={...o},n={...this.defaults,...r},a=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&r.async===!1)return a(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 t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=e),n.async)return(async()=>{let i=n.hooks?await n.hooks.preprocess(t):t,l=await(n.hooks?await n.hooks.provideLexer():e?B.lex:B.lexInline)(i,n),s=n.hooks?await n.hooks.processAllTokens(l):l;n.walkTokens&&await Promise.all(this.walkTokens(s,n.walkTokens));let d=await(n.hooks?await n.hooks.provideParser():e?R.parse:R.parseInline)(s,n);return n.hooks?await n.hooks.postprocess(d):d})().catch(a);try{n.hooks&&(t=n.hooks.preprocess(t));let i=(n.hooks?n.hooks.provideLexer():e?B.lex:B.lexInline)(t,n);n.hooks&&(i=n.hooks.processAllTokens(i)),n.walkTokens&&this.walkTokens(i,n.walkTokens);let l=(n.hooks?n.hooks.provideParser():e?R.parse:R.parseInline)(i,n);return n.hooks&&(l=n.hooks.postprocess(l)),l}catch(i){return a(i)}}}onError(e,t){return o=>{if(o.message+=`
|
|
862
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+I(o.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(o);throw o}}},U=new vi;function k(e,t){return U.parse(e,t)}f(k,"d");v(k,"g");k.options=k.setOptions=function(e){return U.setOptions(e),k.defaults=U.defaults,mt(k.defaults),k};k.getDefaults=Pe;k.defaults=Q;k.use=function(...e){return U.use(...e),k.defaults=U.defaults,mt(k.defaults),k};k.walkTokens=function(e,t){return U.walkTokens(e,t)};k.parseInline=U.parseInline;k.Parser=R;k.parser=R.parse;k.Renderer=Re;k.TextRenderer=$t;k.Lexer=B;k.lexer=B.lex;k.Tokenizer=Be;k.Hooks=ue;k.parse=k;var Vt=k,xi=Object.defineProperty,ki=f((e,t)=>xi(e,"name",{value:t,configurable:!0}),"l$2");const yi=ki(async(e,t=[])=>{let o;t.push(Jt,Xt);const r=Qt(e,{frameLimit:1})[0];for await(const n of t.toSorted((a,i)=>i.priority-a.priority)){if(o)break;const{handle:a,name:i}=n;if(process.env.DEBUG&&console.debug(`Running solution finder: ${i}`),typeof a=="function")try{o=await a(e,{file:r?.file??"",language:be(r?.file??""),line:r?.line??0,snippet:r?.file?await ve(r.file):""})}catch{continue}}return o?{html:`<div id="ono-solution-wrapper" class="relative w-full transition-all duration-300 ease-in-out overflow-visible">
|
|
863
863
|
<button id="ono-solution-button" type="button" aria-label="Toggle solutions" aria-controls="ono-solution-content" aria-expanded="true" title="Toggle solution details" class="bg-[var(--ono-success-bg)] text-[var(--ono-text)] rounded-[var(--ono-radius-md)] p-2 absolute top-2 right-2 z-10 h-9 w-8 cursor-pointer shadow-[var(--ono-elevation-1)]">
|
|
864
864
|
<span id="ono-solution-icon" class="dui" style="-webkit-mask-image: url('${Ge}'); mask-image: url('${Ge}')"></span>
|
|
865
865
|
</button>
|
|
866
866
|
<div id="ono-solution-content" role="region" aria-label="Suggested solutions" tabindex="-1" class="bg-[var(--ono-success-bg)] rounded-r-[var(--ono-radius-lg)] shadow-[var(--ono-elevation-1)] w-full h-full overflow-hidden transition-[max-height,opacity] duration-150 ease-in-out opacity-100">
|
|
867
867
|
<div class="p-6 prose prose-sm prose-headings:text-white prose-ul:list-none prose-hr:my-6 prose-hr:border-[var(--ono-success-border)] max-w-full relative text-[var(--ono-on-accent)]" aria-live="polite">
|
|
868
|
-
${await(async()=>{if(!o.header)return"<h2 class='text-[var(--ono-on-accent)]'>A possible solution to this error</h2>";const
|
|
869
|
-
${await(async()=>{const
|
|
868
|
+
${await(async()=>{if(!o.header)return"<h2 class='text-[var(--ono-on-accent)]'>A possible solution to this error</h2>";const n=await Vt(o.header);return Ve.sanitize(String(n))})()}
|
|
869
|
+
${await(async()=>{const n=await Vt(o.body);return Ve.sanitize(String(n))})()}
|
|
870
870
|
</div>
|
|
871
871
|
</div>
|
|
872
872
|
</div>`,script:`(window.subscribeToDOMContentLoaded || function (fn) {
|
|
@@ -972,14 +972,14 @@ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error
|
|
|
972
972
|
// Add event listeners
|
|
973
973
|
button.addEventListener('click', handleClick);
|
|
974
974
|
button.addEventListener('keydown', handleKeydown);
|
|
975
|
-
});`}:{html:"",script:""}},"solutions");var
|
|
976
|
-
<input type="hidden" id="clipboard-sticky-error-title" value="${
|
|
975
|
+
});`}:{html:"",script:""}},"solutions");var $i=Object.defineProperty,Ei=f((e,t)=>$i(e,"name",{value:t,configurable:!0}),"n");const Si=Ei(async e=>{const t=E(e.name),o=E(e.message),r=$(`${e.name}: ${e.message}`),n=at(e,{frameLimit:1})?.[0],a=n?.file??"",i=n?.line??0,l=a?await ve(a):"",s=l?it(l,{start:{column:n?.column,line:i}},{linesAbove:9,linesBelow:10,showGutter:!0}):"",d=Yt({applicationType:void 0,error:e,file:{file:a,language:be(a),line:i,snippet:s}}),c=vo(),u=$o({label:"Copy error title",secondaryLabel:"Copy fix prompt",secondaryText:d,targetId:"clipboard-sticky-error-title"});return{html:`<div id="error-card-sticky-header" class="fixed invisible container px-6 py-4 -top-40 z-10 rounded-[var(--ono-radius-lg)] transition-all duration-300 shadow-[var(--ono-elevation-1)] bg-[var(--ono-surface)]">
|
|
976
|
+
<input type="hidden" id="clipboard-sticky-error-title" value="${r}">
|
|
977
977
|
<div class="flex items-center gap-2">
|
|
978
978
|
<h1 class="text-sm font-semibold py-1 px-2 text-[var(--ono-chip-text)] bg-[var(--ono-chip-bg)] rounded-[var(--ono-radius-md)] shadow-[var(--ono-elevation-1)]" aria-label="Error name">${t}</h1>
|
|
979
979
|
<span class="text-md font-semibold line-clamp-1 text-[var(--ono-text)]" aria-label="Error message">${o}</span>
|
|
980
980
|
<div class="grow"></div>
|
|
981
981
|
${c.html}
|
|
982
|
-
${
|
|
982
|
+
${u.html}
|
|
983
983
|
</div>
|
|
984
984
|
</div>`,script:`${c.script}(function() {
|
|
985
985
|
ready(function () {
|
|
@@ -1020,8 +1020,8 @@ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error
|
|
|
1020
1020
|
}
|
|
1021
1021
|
} catch (_) {}
|
|
1022
1022
|
});
|
|
1023
|
-
})();`}},"stickyHeader");var
|
|
1024
|
-
<input type="hidden" id="clipboard-error-title" value="${
|
|
1023
|
+
})();`}},"stickyHeader");var Ci=Object.defineProperty,Ti=f((e,t)=>Ci(e,"name",{value:t,configurable:!0}),"l$1");const Ai=Ti(async({error:e,runtimeName:t,solutionFinders:o,version:r})=>{let n=`${t?.toUpperCase()} ${r??""}`;n.includes("NODE")&&(n=`<a href="https://nodejs.org/dist/latest-${r?.split(".")[0]}.x/docs/api/" class="text-blue-500 hover:underline inline-flex items-center text-sm" target="_blank" rel="noopener noreferrer">${n.replace("NODE","Node.js")}<span class="dui ml-1" style="-webkit-mask-image: url('${Ht}'); mask-image: url('${Ht}')" title="Open Node.js documentation"></span></a>`);const{html:a,script:i}=await yi(e,o),{html:l,script:s}=await Si(e),d=E(e.name),c=E(e.message),u=$(`${e.name}: ${e.message}`),p=at(e,{frameLimit:1})?.[0],h=p?.file??"",m=p?.line??0,g=h?await ve(h):"",w=g?it(g,{start:{column:p?.column,line:m}},{linesAbove:9,linesBelow:10,showGutter:!0}):"",y=Yt({applicationType:void 0,error:e,file:{file:h,language:be(h),line:m,snippet:w}}),D=$o({label:"Copy error title",secondaryLabel:"Copy fix prompt",secondaryText:y,targetId:"clipboard-error-title"});return{html:`<section id="error-card" class="container rounded-[var(--ono-radius-lg)] shadow-[var(--ono-elevation-2)] bg-[var(--ono-surface)]">
|
|
1024
|
+
<input type="hidden" id="clipboard-error-title" value="${u}">
|
|
1025
1025
|
<div class="flex flex-row">
|
|
1026
1026
|
<div class="flex flex-col gap-3 grow min-w-6/12 w-full p-6 pt-5">
|
|
1027
1027
|
<div class="flex flex-row items-center gap-2">
|
|
@@ -1031,24 +1031,24 @@ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error
|
|
|
1031
1031
|
${D.html}
|
|
1032
1032
|
<div class="grow"></div>
|
|
1033
1033
|
<div class="text-sm font-semibold py-1 px-2 text-[var(--ono-text-muted)] rounded-[var(--ono-radius-md)] shadow-[var(--ono-elevation-1)]">
|
|
1034
|
-
${
|
|
1034
|
+
${n}
|
|
1035
1035
|
</div>
|
|
1036
1036
|
</div>
|
|
1037
1037
|
<div class="text-md font-semibold text-[var(--ono-text)]">
|
|
1038
1038
|
${c}
|
|
1039
1039
|
</div>
|
|
1040
1040
|
</div>
|
|
1041
|
-
${
|
|
1041
|
+
${a}
|
|
1042
1042
|
</div>
|
|
1043
1043
|
</section>
|
|
1044
|
-
${l}`,scripts:[
|
|
1044
|
+
${l}`,scripts:[i,s]}},"errorCard");var Di=Object.defineProperty,Ii=f((e,t)=>Di(e,"name",{value:t,configurable:!0}),"o");const zi=Ii(e=>{const t=yo({message:"The orginal stack trace from the main error."}),o=E(e);return`<section>
|
|
1045
1045
|
<h3 class="text-xl font-bold inline-flex justify-center items-center text-[var(--ono-text)]">Stack Trace</h3>
|
|
1046
1046
|
${t}
|
|
1047
1047
|
<div class="container rounded-[var(--ono-radius-lg)] shadow-[var(--ono-elevation-1)] my-6 bg-[var(--ono-surface)]">
|
|
1048
1048
|
<main id="raw-stack-trace" class="p-6 prose prose-sm max-w-full text-[var(--ono-text)]">${o}</main>
|
|
1049
1049
|
</div>
|
|
1050
|
-
</section>`},"rawStackTrace");var
|
|
1051
|
-
`),"buildScriptContent"),
|
|
1050
|
+
</section>`},"rawStackTrace");var Bi=Object.defineProperty,ke=f((e,t)=>Bi(e,"name",{value:t,configurable:!0}),"s");const Ri=ke(e=>{if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.name=="string"&&typeof t.message=="string"&&(t.stack===void 0||typeof t.stack=="string")},"isErrorLike"),Li=ke(e=>{if(e.length===0)throw new TypeError("No errors found in the error stack");const t=e[0];if(t instanceof Error)return t;if(Ri(t)){const o=new Error(t.message);return o.name=t.name,typeof t.stack=="string"&&(o.stack=t.stack),o}throw new TypeError("Main cause is not a valid Error object")},"extractMainError"),ji=ke((e,t,o,r)=>['<div class="flex flex-col gap-6">',e,t,o,r,"</div>"].join(""),"buildHtmlContent"),_i=ke((e,t,o)=>[e,t,...o].filter(Boolean).join(`
|
|
1051
|
+
`),"buildScriptContent"),Fi=ke(async(e,t=[],o={})=>{if(!e)throw new TypeError("Error parameter is required");if(!Array.isArray(t))throw new TypeError("solutionFinders must be an array");const r=Uo(e),n=Li(r),a=r.length>1?r.slice(1):[],[i,l,s]=await Promise.all([Ai({error:n,runtimeName:ma,solutionFinders:t,version:Yo()}),ko(n,{openInEditorUrl:o.openInEditorUrl}),Ia(a,o)]),{html:d,scripts:c}=i,{html:u,script:p}=l,{html:h,script:m}=s,g=ji(d,u,h,zi(n.stack)),w=_i(p,m,c);return{code:{html:g,script:w},defaultSelected:!0,id:"stack",name:"Stack"}},"stack");var Mi=Object.defineProperty,Oi=f((e,t)=>Mi(e,"name",{value:t,configurable:!0}),"f");const Pi=`
|
|
1052
1052
|
// DOM utility functions
|
|
1053
1053
|
function ready(fn) {
|
|
1054
1054
|
if (document.readyState !== 'loading') fn();
|
|
@@ -1078,7 +1078,7 @@ function removeClass(el, className) {
|
|
|
1078
1078
|
function toggleClass(el, className) {
|
|
1079
1079
|
el.classList.toggle(className);
|
|
1080
1080
|
}
|
|
1081
|
-
`,
|
|
1081
|
+
`,Ni=`
|
|
1082
1082
|
// Enhanced clipboard and dropdown functionality
|
|
1083
1083
|
|
|
1084
1084
|
// Clipboard functionality
|
|
@@ -1225,7 +1225,7 @@ ready(function() {
|
|
|
1225
1225
|
console.log('Copy dropdown: Script initialized and ready');
|
|
1226
1226
|
// Dropdown and clipboard initialization complete
|
|
1227
1227
|
});
|
|
1228
|
-
`,
|
|
1228
|
+
`,qi=`
|
|
1229
1229
|
// Shortcuts modal functionality
|
|
1230
1230
|
|
|
1231
1231
|
// Make modal functions globally available immediately
|
|
@@ -1283,7 +1283,7 @@ document.addEventListener('click', function(e) {
|
|
|
1283
1283
|
ready(function() {
|
|
1284
1284
|
// Shortcuts modal initialization complete
|
|
1285
1285
|
});
|
|
1286
|
-
`,
|
|
1286
|
+
`,Wi=`
|
|
1287
1287
|
// Clipboard functionality for copy buttons
|
|
1288
1288
|
function copyToClipboard(text, successCallback) {
|
|
1289
1289
|
if (!text) return;
|
|
@@ -1323,4 +1323,4 @@ document.addEventListener('click', function(e) {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
1325
|
});
|
|
1326
|
-
`,
|
|
1326
|
+
`,Hi=Oi(async(e,t=[],o={})=>{if(!e)throw new TypeError("Error parameter is required");if(!Array.isArray(t))throw new TypeError("solutionFinders must be an array");const r=Jo(o),{code:{html:n,script:a},id:i,name:l}=await Fi(e,t,r),s=Array.isArray(r.content)?r.content:[],d=s.some(g=>g.defaultSelected),c=[{id:i,name:l,selected:!d}];for(const g of s)c.push({id:String(g.id),name:String(g.name),selected:!!g.defaultSelected});const u=na(c),p=Jn(r),h=['<div class="flex flex-row gap-6 w-full mb-6">',u.html,p.html,"</div>"],m=$(i);h.push(`<div id="ono-section-${m}" class="${d?"hidden relative":"relative"}" role="tabpanel" aria-labelledby="ono-tab-${m}">${n}</div>`);for(const g of s){const w=$(String(g.id)),y=g.defaultSelected?"":" hidden";h.push(`<div id="ono-section-${w}" class="${y} relative" role="tabpanel" aria-labelledby="ono-tab-${w}">${g.code.html}</div>`)}return da({content:h.join("").trim(),cspNonce:o?.cspNonce,css:aa,description:"Error",error:e,scripts:[Pi,Ni,qi,Wi,u.script,p.script,a,...s.map(g=>g.code.script||"")].filter(Boolean),theme:o?.theme,title:"Error"})},"template");var Ui=Object.defineProperty,Mo=f((e,t)=>Ui(e,"name",{value:t,configurable:!0}),"e");const Kt=Mo(e=>e instanceof Error?e:new Error(String(e)),"ensureError");class rs{static{f(this,"Ono")}static{Mo(this,"Ono")}async toHTML(t,o){const r=Kt(t),{solutionFinders:n=[],...a}=o??{};return await Hi(r,n,a)}async toANSI(t,o={}){const r=Kt(t);return bo(r,o)}}export{rs as Ono};
|