@visulima/ono 2.0.0-alpha.8 → 2.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/error-inspector/page/create-request-context.js +45 -45
- package/dist/index.js +145 -116
- package/dist/packem_chunks/min-dark.js +1 -0
- package/dist/packem_chunks/min-light.js +1 -0
- package/dist/packem_shared/clipboard-jWc8JBuB.js +1 -0
- package/dist/packem_shared/process-BO_aZsiL.js +1 -0
- package/dist/server/open-in-editor.js +1 -1
- package/package.json +164 -165
- package/dist/packem_chunks/github-dark-default.js +0 -1
- package/dist/packem_chunks/github-light.js +0 -1
- package/dist/packem_shared/clipboard-CzFaiOZC.js +0 -1
- package/dist/packem_shared/process-B37didfB.js +0 -1
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var Oo=Object.defineProperty;var m=(e,t)=>Oo(e,"name",{value:t,configurable:!0});import{createRequire as Po}from"node:module";import{parseStacktrace as Jt}from"@visulima/error/stacktrace";import{renderError as Wo,getErrorCauses as Ho}from"@visulima/error/error";import{ruleBasedFinder as Xt,errorHintFinder as Yt}from"@visulima/error/solution";import{s as E,a as $,b as Vo,d as Go,c as Ko,n as St,e as Ct,f as Qo}from"./packem_shared/clipboard-CzFaiOZC.js";import Ke from"isomorphic-dompurify";import{t as Jo,g as Xo}from"./packem_shared/process-B37didfB.js";import{parseStacktrace as it,codeFrame as st}from"@visulima/error";import eo from"@visulima/error/solution/ai/prompt";const No=Po(import.meta.url),le=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,je=m(e=>{if(typeof le<"u"&&le.versions&&le.versions.node){const[t,o]=le.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return le.getBuiltinModule(e)}return No(e)},"__cjs_getBuiltinModule"),{createRequire:qo}=je("node:module"),{readFile:Uo}=je("node:fs/promises"),{fileURLToPath:Zo}=je("node:url"),{createHash:Yo}=je("node:crypto");var er=Object.defineProperty,P=m((e,t)=>er(e,"name",{value:t,configurable:!0}),"y$3"),tr=Object.defineProperty,S=P((e,t)=>tr(e,"name",{value:t,configurable:!0}),"w");const or=qo(import.meta.url),Y=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,lt=S(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 or(e)},"__cjs_getBuiltinModule"),W=Y,{execFileSync:rr}=lt("node:child_process"),pe=lt("node:fs"),nr=lt("node:tty");var ar=Object.defineProperty,ir=S((e,t)=>ar(e,"name",{value:t,configurable:!0}),"p$3"),sr=Object.defineProperty,to=ir((e,t)=>sr(e,"name",{value:t,configurable:!0}),"e"),lr=Object.defineProperty,cr=to((e,t)=>lr(e,"name",{value:t,configurable:!0}),"E");const oo=String.raw,Tt=oo`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,dr=cr(()=>new RegExp(oo`\p{RI}{2}|(?)${Tt}(?:\u200D${Tt})*`,"gu"),"default");var pr=Object.defineProperty,ur=to((e,t)=>pr(e,"name",{value:t,configurable:!0}),"p");const oe=new Set(["\x1B",""]),_e="\x07",ro="[",ct="m",De="]8;;",hr=39,gr=/[\u200B\uFEFF\u2060-\u2064]/g,mr=new RegExp(`(?:\\${ro}(?<code>\\d+)m|\\${De}(?<uri>.*)${_e})`),fr=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]])),ce=/[\u001B\u009B](?:[[()#;?]{0,10}(?:\d{1,4}(?:;\d{0,4})*)?[0-9A-ORZcf-nqry=><]|\]8;;[^\u0007\u001B]{0,100}(?:\u0007|\u001B\\))/g,$e=/[\u0000-\u0008\n-\u001F\u007F-\u009F]{1,1000}/y,Ce=dr();ur(e=>e.replace(Ce,""),"stripEmoji");var wr=Object.defineProperty,re=S((e,t)=>wr(e,"name",{value:t,configurable:!0}),"m$3"),br=Object.defineProperty,_=re((e,t)=>br(e,"name",{value:t,configurable:!0}),"c");const dt=[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],pt=[12288,12288,65281,65376,65504,65510],ut=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],ht=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Fe=[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 vr=Object.defineProperty,xr=_((e,t)=>vr(e,"name",{value:t,configurable:!0}),"r$2");const fe=xr((e,t)=>{let o=0,n=Math.floor(e.length/2)-1;for(;o<=n;){const r=Math.floor((o+n)/2),a=r*2;if(t<e[a])n=r-1;else if(t>e[a+1])o=r+1;else return!0}return!1},"isInRange");var kr=Object.defineProperty,Z=_((e,t)=>kr(e,"name",{value:t,configurable:!0}),"r$1");const yr=dt[0],$r=dt.at(-1),Er=pt[0],Sr=pt.at(-1),Cr=ut[0],Tr=ut.at(-1),Ar=ht[0],Dr=ht.at(-1),Ir=Fe[0],zr=Fe.at(-1),At=19968,[Br,Rr]=ne(Fe);function ne(e){let t=e[0],o=e[1];for(let n=0;n<e.length;n+=2){const r=e[n],a=e[n+1];if(At>=r&&At<=a)return[r,a];a-r>o-t&&(t=r,o=a)}return[t,o]}m(ne,"H$2");P(ne,"Y");S(ne,"B$2");re(ne,"H");_(ne,"N");Z(ne,"findWideFastPathRange");const no=Z(e=>e<yr||e>$r?!1:fe(dt,e),"isAmbiguous"),ao=Z(e=>e<Er||e>Sr?!1:fe(pt,e),"isFullWidth"),Lr=Z(e=>e<Cr||e>Tr?!1:fe(ut,e),"isHalfWidth"),jr=Z(e=>e<Ar||e>Dr?!1:fe(ht,e),"isNarrow"),io=Z(e=>e>=Br&&e<=Rr?!0:e<Ir||e>zr?!1:fe(Fe,e),"isWide");function ae(e){return no(e)?"ambiguous":ao(e)?"fullwidth":Lr(e)?"halfwidth":jr(e)?"narrow":io(e)?"wide":"neutral"}m(ae,"z$1");P(ae,"Z");S(ae,"$$1");re(ae,"J");_(ae,"getCategory");Z(ae,"getCategory");var _r=Object.defineProperty,gt=_((e,t)=>_r(e,"name",{value:t,configurable:!0}),"e");function V(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}m(V,"C$2");P(V,"P");S(V,"N$3");re(V,"F");_(V,"r");gt(V,"validate");function G(e){return V(e),ae(e)}m(G,"M$2");P(G,"_");S(G,"y$3");re(G,"P");_(G,"eastAsianWidthType");gt(G,"eastAsianWidthType");function we(e,{ambiguousAsWide:t=!1}={}){return V(e),ao(e)||io(e)||t&&no(e)?2:1}m(we,"Q");P(we,"fe");S(we,"J$1");re(we,"w1");_(we,"eastAsianWidth");gt(we,"eastAsianWidth");var Fr=Object.defineProperty,Me=_((e,t)=>Fr(e,"name",{value:t,configurable:!0}),"d");const Dt=new Map,Ee=/(?:[\u0020-\u007E\u00A0-\u00FF](?!\uFE0F)){1,1000}/y,Te=Me(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"),Mr=Me((e,t)=>{const o=Math.floor(e/65536),n=e%65536;let r=Dt.get(o);if(r||(r=new Map,Dt.set(o,r)),r.has(n))return r.get(n);let a;if(Te(e)==="latin")a=t.width.regular;else if(Te(e)==="control")a=t.width.control;else if(Te(e)==="wide")a=t.width.wide;else switch(G(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 r.set(n,a),a},"getCachedCharWidth"),Or=Me(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"),Qe=Me((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?Qe(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,a=r>1e4;let i=0,s=0,l=r,c=!1;const d=e.includes("\x1B")||e.includes("");for(;i<r;){if(d&&(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 B=e.indexOf(w,D+1);if(B!==-1){const se=B+y,J=e.slice(D+1,B).replace(ce,""),F=Qe(J,{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-s),regularWidth:o.width.regular,tabWidth:o.width.tab,wideWidth:o.width.wide}),I=F.width;if(F.truncated)c=!0,l=Math.min(l,i);else if(s+I>n&&(l=Math.min(l,i),c=!0,s+I>o.truncation.limit))break;if(s+=I,i=se,c&&s>=o.truncation.limit)break;continue}}}if(ce.lastIndex=i,ce.test(e)){const w=ce.lastIndex-i,y=o.truncation.countAnsiEscapeCodes?w:o.width.ansi;if(s+y>n&&(l=Math.min(l,i),s+y>o.truncation.limit)){c=!0;break}s+=y,i=ce.lastIndex;continue}}const h=e.codePointAt(i);if(h===8203||h===65279||h>=8288&&h<=8292){i+=1;continue}if(h===9){if(s+o.width.tab>n&&(l=Math.min(l,i),s+o.width.tab>o.truncation.limit)){c=!0;break}s+=o.width.tab,i+=1;continue}if(Ee.lastIndex=i,Ee.test(e)){const w=(Ee.lastIndex-i)*o.width.regular;if(s+w>n){const y=Math.floor((n-s)/o.width.regular);if(l=Math.min(l,i+y),s+w>o.truncation.limit){c=!0;break}}s+=w,i=Ee.lastIndex;continue}if((h<=31||h>=127&&h<=159)&&($e.lastIndex=i,$e.test(e))){const w=($e.lastIndex-i)*o.width.control;if(s+w>n&&(l=Math.min(l,i+Math.floor((n-s)/o.width.control)),s+w>o.truncation.limit)){c=!0;break}s+=w,i=$e.lastIndex;continue}if(Ce.lastIndex=i,Ce.test(e)){if(s+o.width.emoji>n&&(l=Math.min(l,i),s+o.width.emoji>o.truncation.limit)){c=!0;break}s+=o.width.emoji,i=Ce.lastIndex;continue}const f=e.codePointAt(i)??0;if(Or(f)){i+=f>65535?2:1;continue}let g;if(a)g=Mr(f,o);else switch(Te(f)){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(G(f)){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(s+g>n&&(l=Math.min(l,i),s+g>o.truncation.limit)){c=!0;break}s+=g,i+=f>65535?2:1}let p=s,u=!1;return c&&o.truncation.limit>=o.truncation.ellipsisWidth&&(p=o.truncation.limit,u=!0),{ellipsed:u,index:c?l:r,truncated:c,width:p}},"getStringTruncatedWidth");var Pr=Object.defineProperty,Nr=S((e,t)=>Pr(e,"name",{value:t,configurable:!0}),"i"),qr=Object.defineProperty,Wr=Nr((e,t)=>qr(e,"name",{value:t,configurable:!0}),"e"),Hr=Object.defineProperty,Ur=Wr((e,t)=>Hr(e,"name",{value:t,configurable:!0}),"r");const x=Ur((e,t={})=>Qe(e,{...t,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width,"getStringWidth");var Zr=Object.defineProperty,Vr=S((e,t)=>Zr(e,"name",{value:t,configurable:!0}),"g"),Gr=Object.defineProperty,Kr=Vr((e,t)=>Gr(e,"name",{value:t,configurable:!0}),"s"),Qr=Object.defineProperty,mt=Kr((e,t)=>Qr(e,"name",{value:t,configurable:!0}),"n");const Jr=mt((e,t)=>Math.floor((e-t)/2),"halfDiff"),Xr=mt((e,t)=>e-t,"fullDiff"),It=mt((e,t={})=>{const o=t.align??"center";if(o==="left")return e;const n=t.split??`
|
|
2
|
-
`,r=t.pad??" ",a=o==="right"?
|
|
3
|
-
`),a=[...r];let i=0;for(const[s,l]of a.entries()){if(t+=l,
|
|
4
|
-
`?(n&&(t+=
|
|
5
|
-
`&&(o&&c&&(t+=
|
|
1
|
+
var Ho=Object.defineProperty;var m=(e,t)=>Ho(e,"name",{value:t,configurable:!0});import{createRequire as Uo}from"node:module";import{parseStacktrace as eo}from"@visulima/error/stacktrace";import{renderError as Vo,getErrorCauses as Ko}from"@visulima/error/error";import{ruleBasedFinder as to,errorHintFinder as oo}from"@visulima/error/solution";import{s as S,a as E,b as Yo,d as Jo,c as er,n as At,e as Dt,f as tr}from"./packem_shared/clipboard-jWc8JBuB.js";import{sanitize as Qe}from"isomorphic-dompurify";import{n as or,g as rr}from"./packem_shared/process-BO_aZsiL.js";import{parseStacktrace as lt,codeFrame as ct}from"@visulima/error";import ro from"@visulima/error/solution/ai/prompt";const Go=Uo(import.meta.url),ie=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Be=m(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 Go(e)},"__cjs_getBuiltinModule"),{createRequire:Zo}=Be("node:module"),{readFile:Qo}=Be("node:fs/promises"),{fileURLToPath:Xo}=Be("node:url"),{createHash:nr}=Be("node:crypto");var ar=Object.defineProperty,P=m((e,t)=>ar(e,"name",{value:t,configurable:!0}),"E$2"),ir=Object.defineProperty,$=P((e,t)=>ir(e,"name",{value:t,configurable:!0}),"b");const sr=Zo(import.meta.url),J=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,dt=$(e=>{if(typeof J<"u"&&J.versions&&J.versions.node){const[t,o]=J.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return J.getBuiltinModule(e)}return sr(e)},"__cjs_getBuiltinModule"),W=J,{execFileSync:lr}=dt("node:child_process"),ce=dt("node:fs"),cr=dt("node:tty");var dr=Object.defineProperty,pt=$((e,t)=>dr(e,"name",{value:t,configurable:!0}),"s$3"),pr=Object.defineProperty,Le=pt((e,t)=>pr(e,"name",{value:t,configurable:!0}),"l");const ut=[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],ht=[12288,12288,65281,65376,65504,65510],gt=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],mt=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],je=[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 ur=Object.defineProperty,hr=Le((e,t)=>ur(e,"name",{value:t,configurable:!0}),"r$1");const ge=hr((e,t)=>{let o=0,n=Math.floor(e.length/2)-1;for(;o<=n;){const r=Math.floor((o+n)/2),a=r*2;if(t<e[a])n=r-1;else if(t>e[a+1])o=r+1;else return!0}return!1},"isInRange");var gr=Object.defineProperty,G=Le((e,t)=>gr(e,"name",{value:t,configurable:!0}),"r");const mr=ut[0],fr=ut.at(-1),wr=ht[0],br=ht.at(-1),vr=gt[0],kr=gt.at(-1),xr=mt[0],yr=mt.at(-1),$r=je[0],Er=je.at(-1),It=19968,[Sr,Cr]=te(je);function te(e){let t=e[0],o=e[1];for(let n=0;n<e.length;n+=2){const r=e[n],a=e[n+1];if(It>=r&&It<=a)return[r,a];a-r>o-t&&(t=r,o=a)}return[t,o]}m(te,"_");P(te,"G");$(te,"b$3");pt(te,"b");Le(te,"N");G(te,"findWideFastPathRange");const no=G(e=>e<mr||e>fr?!1:ge(ut,e),"isAmbiguous"),ao=G(e=>e<wr||e>br?!1:ge(ht,e),"isFullWidth"),Tr=G(e=>e<vr||e>kr?!1:ge(gt,e),"isHalfWidth"),Ar=G(e=>e<xr||e>yr?!1:ge(mt,e),"isNarrow"),io=G(e=>e>=Sr&&e<=Cr?!0:e<$r||e>Er?!1:ge(je,e),"isWide");function oe(e){return no(e)?"ambiguous":ao(e)?"fullwidth":Tr(e)?"halfwidth":Ar(e)?"narrow":io(e)?"wide":"neutral"}m(oe,"D$2");P(oe,"U");$(oe,"v$4");pt(oe,"q");Le(oe,"getCategory");G(oe,"getCategory");var Dr=Object.defineProperty,Fe=$((e,t)=>Dr(e,"name",{value:t,configurable:!0}),"i$2"),Ir=Object.defineProperty,Me=Fe((e,t)=>Ir(e,"name",{value:t,configurable:!0}),"a"),zr=Object.defineProperty,ft=Me((e,t)=>zr(e,"name",{value:t,configurable:!0}),"e");function Z(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}m(Z,"j$2");P(Z,"M");$(Z,"s$2");Fe(Z,"s");Me(Z,"r");ft(Z,"validate");function V(e){return Z(e),oe(e)}m(V,"F$1");P(V,"P");$(V,"r$3");Fe(V,"p");Me(V,"eastAsianWidthType");ft(V,"eastAsianWidthType");function me(e,{ambiguousAsWide:t=!1}={}){return Z(e),ao(e)||io(e)||t&&no(e)?2:1}m(me,"Q");P(me,"de");$(me,"o$2");Fe(me,"W");Me(me,"eastAsianWidth");ft(me,"eastAsianWidth");var Rr=Object.defineProperty,Br=$((e,t)=>Rr(e,"name",{value:t,configurable:!0}),"p$4"),Lr=Object.defineProperty,so=Br((e,t)=>Lr(e,"name",{value:t,configurable:!0}),"e"),jr=Object.defineProperty,Fr=so((e,t)=>jr(e,"name",{value:t,configurable:!0}),"E");const lo=String.raw,zt=lo`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,Mr=Fr(()=>new RegExp(lo`\p{RI}{2}|(?)${zt}(?:\u200D${zt})*`,"gu"),"default");var _r=Object.defineProperty,Or=so((e,t)=>_r(e,"name",{value:t,configurable:!0}),"p");const re=new Set(["\x1B",""]),_e="\x07",co="[",wt="m",Te="]8;;",Pr=39,Nr=/[\u200B\uFEFF\u2060-\u2064]/g,qr=new RegExp(`(?:\\${co}(?<code>\\d+)m|\\${Te}(?<uri>.*)${_e})`),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]])),se=/[\u001B\u009B](?:[[()#;?]{0,10}(?:\d{1,4}(?:;\d{0,4})*)?[0-9A-ORZcf-nqry=><]|\]8;;[^\u0007\u001B]{0,100}(?:\u0007|\u001B\\))/g,xe=/[\u0000-\u0008\n-\u001F\u007F-\u009F]{1,1000}/y,Ee=Mr();Or(e=>e.replace(Ee,""),"stripEmoji");var Hr=Object.defineProperty,Ur=$((e,t)=>Hr(e,"name",{value:t,configurable:!0}),"E$1"),Gr=Object.defineProperty,Zr=Ur((e,t)=>Gr(e,"name",{value:t,configurable:!0}),"A"),Vr=Object.defineProperty,Oe=Zr((e,t)=>Vr(e,"name",{value:t,configurable:!0}),"d");const Rt=new Map,ye=/(?:[\u0020-\u007E\u00A0-\u00FF](?!\uFE0F)){1,1000}/y,Se=Oe(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"),Kr=Oe((e,t)=>{const o=Math.floor(e/65536),n=e%65536;let r=Rt.get(o);if(r||(r=new Map,Rt.set(o,r)),r.has(n))return r.get(n);let a;if(Se(e)==="latin")a=t.width.regular;else if(Se(e)==="control")a=t.width.control;else if(Se(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 r.set(n,a),a},"getCachedCharWidth"),Qr=Oe(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"),Xe=Oe((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?Xe(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,a=r>1e4;let i=0,s=0,l=r,c=!1;const d=e.includes("\x1B")||e.includes("");for(;i<r;){if(d&&(e[i]==="\x1B"||e[i]==="")){if(e.startsWith("\x1B]8;;",i)){const f="\x1B]8;;\x07",y=f.length,D=e.indexOf("\x07",i+5);if(D!==-1){const R=e.indexOf(f,D+1);if(R!==-1){const ae=R+y,X=e.slice(D+1,R).replace(se,""),M=Xe(X,{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-s),regularWidth:o.width.regular,tabWidth:o.width.tab,wideWidth:o.width.wide}),I=M.width;if(M.truncated)c=!0,l=Math.min(l,i);else if(s+I>n&&(l=Math.min(l,i),c=!0,s+I>o.truncation.limit))break;if(s+=I,i=ae,c&&s>=o.truncation.limit)break;continue}}}if(se.lastIndex=i,se.test(e)){const f=se.lastIndex-i,y=o.truncation.countAnsiEscapeCodes?f:o.width.ansi;if(s+y>n&&(l=Math.min(l,i),s+y>o.truncation.limit)){c=!0;break}s+=y,i=se.lastIndex;continue}}const u=e.codePointAt(i);if(u===8203||u===65279||u>=8288&&u<=8292){i+=1;continue}if(u===9){if(s+o.width.tab>n&&(l=Math.min(l,i),s+o.width.tab>o.truncation.limit)){c=!0;break}s+=o.width.tab,i+=1;continue}if(ye.lastIndex=i,ye.test(e)){const f=(ye.lastIndex-i)*o.width.regular;if(s+f>n){const y=Math.floor((n-s)/o.width.regular);if(l=Math.min(l,i+y),s+f>o.truncation.limit){c=!0;break}}s+=f,i=ye.lastIndex;continue}if((u<=31||u>=127&&u<=159)&&(xe.lastIndex=i,xe.test(e))){const f=(xe.lastIndex-i)*o.width.control;if(s+f>n&&(l=Math.min(l,i+Math.floor((n-s)/o.width.control)),s+f>o.truncation.limit)){c=!0;break}s+=f,i=xe.lastIndex;continue}if(Ee.lastIndex=i,Ee.test(e)){if(s+o.width.emoji>n&&(l=Math.min(l,i),s+o.width.emoji>o.truncation.limit)){c=!0;break}s+=o.width.emoji,i=Ee.lastIndex;continue}const w=e.codePointAt(i)??0;if(Qr(w)){i+=w>65535?2:1;continue}let g;if(a)g=Kr(w,o);else switch(Se(w)){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(w)){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(s+g>n&&(l=Math.min(l,i),s+g>o.truncation.limit)){c=!0;break}s+=g,i+=w>65535?2:1}let h=s,p=!1;return c&&o.truncation.limit>=o.truncation.ellipsisWidth&&(h=o.truncation.limit,p=!0),{ellipsed:p,index:c?l:r,truncated:c,width:h}},"getStringTruncatedWidth");var Xr=Object.defineProperty,Yr=$((e,t)=>Xr(e,"name",{value:t,configurable:!0}),"i"),Jr=Object.defineProperty,en=Yr((e,t)=>Jr(e,"name",{value:t,configurable:!0}),"e"),tn=Object.defineProperty,on=en((e,t)=>tn(e,"name",{value:t,configurable:!0}),"r");const k=on((e,t={})=>Xe(e,{...t,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width,"getStringWidth");var rn=Object.defineProperty,nn=$((e,t)=>rn(e,"name",{value:t,configurable:!0}),"p$2"),an=Object.defineProperty,sn=nn((e,t)=>an(e,"name",{value:t,configurable:!0}),"h"),ln=Object.defineProperty,bt=sn((e,t)=>ln(e,"name",{value:t,configurable:!0}),"n");const cn=bt((e,t)=>Math.floor((e-t)/2),"halfDiff"),dn=bt((e,t)=>e-t,"fullDiff"),Bt=bt((e,t={})=>{const o=t.align??"center";if(o==="left")return e;const n=t.split??`
|
|
2
|
+
`,r=t.pad??" ",a=o==="right"?dn:cn;let i=!1,s;Array.isArray(e)?s=e:(i=!0,s=e.split(n));let l,c=0;const d=s.map(h=>(l=k(h,t.stringWidthOptions),c=Math.max(l,c),{str:h,width:l})).map(h=>Array.from({length:a(c,h.width)+1}).join(r)+h.str);return i?d.join(n):d},"alignText");var pn=Object.defineProperty,po=$((e,t)=>pn(e,"name",{value:t,configurable:!0}),"b"),un=Object.defineProperty,K=po((e,t)=>un(e,"name",{value:t,configurable:!0}),"d"),hn=Object.defineProperty,gn=K((e,t)=>hn(e,"name",{value:t,configurable:!0}),"a");const mn=/\x1B\[(\d+)m/;class uo{static{m(this,"Mt")}static{P(this,"Fe")}static{$(this,"T")}static{po(this,"T")}static{K(this,"d")}static{gn(this,"AnsiStateTracker")}activeForeground=void 0;activeBackground=void 0;activeFormatting=[];processEscape(t){const o=mn.exec(t);if(!o)return;const n=Number.parseInt(o[1],10);switch(n){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(n>=30&&n<=37||n>=90&&n<=97)this.activeForeground=t;else if(n>=40&&n<=47||n>=100&&n<=107)this.activeBackground=t;else if([1,2,3,4,7,8,9].includes(n))this.activeFormatting.push(t);else if([22,23,24,27,28,29].includes(n)){const r={22:"[1m",23:"[3m",24:"[4m",27:"[7m",28:"[8m",29:"[9m"}[n];r&&(this.activeFormatting=this.activeFormatting.filter(a=>!a.includes(r)))}}}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(n=>{const r=o[n];r&&t.push(r)})}return this.activeForeground&&t.push("\x1B[39m"),this.activeBackground&&t.push("\x1B[49m"),t.join("")}}var fn=Object.defineProperty,ho=K((e,t)=>fn(e,"name",{value:t,configurable:!0}),"o");const go=ho((e,t)=>{if(!re.has(e[t]))return{isInsideEscape:!1,isInsideLinkEscape:!1};const o=!0,n=e.slice(t+1,t+1+Te.length).join("")===Te;return{isInsideEscape:o,isInsideLinkEscape:n}},"checkEscapeSequence"),wn=ho((e,t={})=>{const o=new uo;let n="",r=!1,a="",i="",s=!1;const l=[...e];for(let c=0;c<l.length;c++){const d=l[c];if(d&&re.has(d)){if(n){const g=t.getWidth?.(n)??0,f={isEscapeSequence:!1,isGrapheme:!0,text:n,width:g};if(s&&(f.isHyperlink=!0,f.hyperlinkUrl=i),t.onSegment?.(f,o)===!1)return;n=""}r=!0,a=d;const u=go(l,c),{isInsideLinkEscape:w}=u;if(w){let g=c+1;for(i="";g<l.length;){const y=l[g];if(y===_e)break;i+=y,g+=1}i=i.slice(4);const f={hyperlinkUrl:i,isEscapeSequence:!0,isGrapheme:!1,isHyperlink:!0,isHyperlinkStart:!0,width:0};if(t.onSegment?.(f,o)===!1)return;c=g,s=!0,r=!1,a="";continue}if(c+1<l.length&&l[c+1]==="\\"&&s){const g={isEscapeSequence:!0,isGrapheme:!1,isHyperlink:!0,isHyperlinkEnd:!0,width:0};if(t.onSegment?.(g,o)===!1)return;s=!1,i="",c+=1,r=!1,a="";continue}}if(r){if(a!==d&&(a+=d),d===wt){r=!1,o.processEscape(a);const u={isEscapeSequence:!0,isGrapheme:!1,text:a,width:0};if(t.onSegment?.(u,o)===!1)return;a=""}continue}n+=d;const h=t.getWidth?.(n)??0,p={isEscapeSequence:!1,isGrapheme:!0,text:n,width:h};if(s&&(p.isHyperlink=!0,p.hyperlinkUrl=i),t.onSegment?.(p,o)===!1)return;n=""}if(n){const c=t.getWidth?.(n)??0,d={isEscapeSequence:!1,isGrapheme:!0,text:n,width:c};s&&(d.isHyperlink=!0,d.hyperlinkUrl=i),t.onSegment?.(d,o)}if(a){const c={isEscapeSequence:!0,isGrapheme:!1,text:a,width:0};t.onSegment?.(c,o)}},"processAnsiString");var bn=Object.defineProperty,vn=K((e,t)=>bn(e,"name",{value:t,configurable:!0}),"t$1");const Lt=vn(e=>`${re.values().next().value}${co}${String(e)}${wt}`,"wrapAnsiCode");var kn=Object.defineProperty,xn=K((e,t)=>kn(e,"name",{value:t,configurable:!0}),"s");const jt=xn(e=>`${re.values().next().value}${Te}${e}${_e}`,"wrapAnsiHyperlink");var yn=Object.defineProperty,$n=K((e,t)=>yn(e,"name",{value:t,configurable:!0}),"l");const En=$n(e=>{if(e.length===0)return"";if(e.length===1)return e[0];let t="",o,n;const r=e.join(`
|
|
3
|
+
`),a=[...r];let i=0;for(const[s,l]of a.entries()){if(t+=l,re.has(l)){const d=qr.exec(r.slice(i))?.groups??{};if(d.code!==void 0){const h=Number.parseFloat(d.code);o=h===Pr?void 0:h}else d.uri!==void 0&&(n=d.uri.length===0?void 0:d.uri)}const c=Wr.get(Number(o));a[s+1]===`
|
|
4
|
+
`?(n&&(t+=jt("")),o&&c&&(t+=Lt(c))):l===`
|
|
5
|
+
`&&(o&&c&&(t+=Lt(o)),n&&(t+=jt(n))),i+=l.length}return t},"preserveAnsi");var Sn=Object.defineProperty,O=K((e,t)=>Sn(e,"name",{value:t,configurable:!0}),"f");const mo=/(?=\s)|(?<=\s)/,fo=/^\s+$/,Ge=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&&k(t[o-1])===0;)o--;return o===t.length?e:t.slice(0,o).join(" ")+t.slice(o).join("")},"stringVisibleTrimSpacesRight"),wo=O((e,t,o)=>{if(e.length===0)return[""];if(t<=0)return[e];const n=[],r=new uo;let a="",i=0,s=!1,l=!1,c="",d=0;for(;d<e.length;){const h=e[d];if(re.has(h)){s=!0,c=h,a+=h,l=go([...e],d).isInsideLinkEscape,d+=1;continue}if(s){c+=h,a+=h,l?h===_e&&(s=l=!1):h===wt&&(s=!1,r.processEscape(c)),d+=1;continue}const p=k(h),u=h===" ";if(p===0){a+=h,d+=1;continue}if(i+p>t&&(a&&n.push(a+r.getEndEscapesForAllActiveAttributes()),a=r.getStartEscapesForAllActiveAttributes(),i=k(a),u&&o)){for(;d<e.length&&e[d]===" ";)d+=1;continue}if(a+=h,i+=p,i===t&&d<e.length-1&&(n.push(a+r.getEndEscapesForAllActiveAttributes()),a=r.getStartEscapesForAllActiveAttributes(),i=k(a),d+1<e.length&&e[d+1]===" "&&o)){for(d+=1;d<e.length&&e[d]===" ";)d+=1;continue}d+=1}return a&&n.push(a+r.getEndEscapesForAllActiveAttributes()),o?n.map(h=>H(h)):n},"wrapWithBreakAtWidth"),Cn=O((e,t,o)=>{if(e.length===0)return[];const n=o?e.trim():e;if(n.length===0)return[];const r=[];let a="",i=0;return wn(n,{getWidth:k,onSegment:O((s,l)=>{const c=s.text??"";if(s.isEscapeSequence)a+=c;else{const d=c===" ";if(s.width===0)return a+=c,!0;if(i+s.width>t&&(a&&r.push(a),a=l.getStartEscapesForAllActiveAttributes(),i=0,d))return o||r.push(l.getStartEscapesForAllActiveAttributes()+c),!0;a+=c,i+=s.width}return!0},"onSegment")}),a&&r.push(a),o?r.map(s=>H(s)):r},"wrapCharByChar"),Tn=O((e,t,o)=>{if(e.length===0)return[];const n=o?e.trim():e;if(n.length===0)return[];const r=n.split(mo),a=[];let i="",s=0,l=0;for(;l<r.length;){const c=r[l],d=fo.test(c),h=k(c);if(c.length===0){l+=1;continue}if(o&&d&&s===0){l+=1;continue}if(s+h>t&&s>0){o?a.push(H(i)):a.push(i),i="",s=0;continue}i+=c,s+=h,l+=1}return i&&(o?a.push(H(i)):a.push(i)),a},"wrapWithWordBoundaries"),An=O((e,t,o)=>{if(e.length===0)return[];const n=o?e.trim():e;if(n.length===0)return[];const r=n.split(mo),a=[];let i="",s=0,l=0;for(;l<r.length;){const c=r[l],d=fo.test(c),h=k(c);if(c.length===0){l+=1;continue}if(o&&d&&s===0){l+=1;continue}if(h>t){i&&a.push(Ge(o?H(i):i));const p=wo(c,t,o);if(p.length>0){for(let u=0;u<p.length-1;u+=1)a.push(p[u]);i=p.at(-1),s=k(i)}else i="",s=0;l+=1;continue}if(s+h>t&&s>0&&(a.push(Ge(o?H(i):i)),i="",s=0,o&&d)){l+=1;continue}i+=c,s+=h,l+=1}return i&&a.push(Ge(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"},bo=O((e,t={})=>{const{removeZeroWidthCharacters:o=!0,trim:n=!0,width:r=80,wrapMode:a=ee.PRESERVE_WORDS}=t;if(n&&e.trim()==="")return"";let i=e.normalize("NFC").replaceAll(`\r
|
|
6
6
|
`,`
|
|
7
|
-
`);return o&&(i=i.replaceAll(
|
|
8
|
-
`).map(s=>{if(n&&s.trim()==="")return"";let l;switch(a){case
|
|
9
|
-
`)},"wordWrap");var
|
|
10
|
-
`))t=Math.max(t,
|
|
11
|
-
`,A=" ",
|
|
12
|
-
`),
|
|
7
|
+
`);return o&&(i=i.replaceAll(Nr,"")),i.split(`
|
|
8
|
+
`).map(s=>{if(n&&s.trim()==="")return"";let l;switch(a){case ee.BREAK_AT_CHARACTERS:{l=Cn(s,r,n);break}case ee.BREAK_WORDS:{l=An(s,r,n);break}case ee.STRICT_WIDTH:{l=wo(s,r,n);break}default:l=Tn(s,r,n)}return En(l)}).join(`
|
|
9
|
+
`)},"wordWrap");var Dn=Object.defineProperty,N=$((e,t)=>Dn(e,"name",{value:t,configurable:!0}),"n$1");const vo=80,ko=24,Ye=N((e,t,{shell:o,env:n}={})=>lr(e,t,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:o,env:n}).trim(),"exec"),Ce=N((e,t)=>({columns:Number.parseInt(e,10),rows:Number.parseInt(t,10)}),"create"),xo=N((e,t)=>{const{columns:o,rows:n}=Ce(e,t);if(!(Number.isNaN(o)||Number.isNaN(n))&&!(o===vo&&n===ko))return{columns:o,rows:n}},"createIfNotDefault"),In=N(()=>{if(W.platform!=="linux")return!0;try{const e=ce.readFileSync("/proc/self/stat","utf8"),t=e.lastIndexOf(") ");if(t===-1)return!1;const o=e.slice(t+2).trim().split(/\s+/),n=Number.parseInt(o[2],10),r=Number.parseInt(o[5],10);return Number.isNaN(n)||Number.isNaN(r)||r<=0?!1:n===r}catch{return!1}},"isForegroundProcess");function fe(){const{env:e,stdout:t,stderr:o}=W;if(t?.columns&&t?.rows)return Ce(t.columns,t.rows);if(o?.columns&&o?.rows)return Ce(o.columns,o.rows);if(e.COLUMNS&&e.LINES)return Ce(e.COLUMNS,e.LINES);const n={columns:vo,rows:ko};return W.platform==="win32"?Ze()??n:W.platform==="darwin"?Ft()??Ze()??n:Ft()??Ze()??zn()??n}m(fe,"et$1");P(fe,"me");$(fe,"O$1");N(fe,"terminalSize");const Ft=N(()=>{try{const e=W.platform==="darwin"?ce.constants.O_EVTONLY|ce.constants.O_NONBLOCK:ce.constants.O_NONBLOCK,{columns:t,rows:o}=cr.WriteStream(ce.openSync("/dev/tty",e));return{columns:t,rows:o}}catch{}},"devTty"),Ze=N(()=>{try{const e=Ye("tput",["cols"],{env:{TERM:"dumb",...W.env}}),t=Ye("tput",["lines"],{env:{TERM:"dumb",...W.env}});if(e&&t)return xo(e,t)}catch{}},"tput"),zn=N(()=>{try{if(!In())return;const e=Ye("resize",["-u"]).match(/\d+/g);if(e.length===2)return xo(e[0],e[1])}catch{}},"resize"),Rn={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 Bn=Object.defineProperty,Ln=$((e,t)=>Bn(e,"name",{value:t,configurable:!0}),"n");const yo=Ln(e=>{let t=0;for(const o of e.split(`
|
|
10
|
+
`))t=Math.max(t,k(o));return t},"widestLine");var jn=Object.defineProperty,T=$((e,t)=>jn(e,"name",{value:t,configurable:!0}),"s");const _=`
|
|
11
|
+
`,A=" ",ue="none",Mt=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"),he=T(e=>e===ue?0:2,"getBorderWidth"),Fn=T(e=>{const t=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"];let o;if(e===ue){e={};for(const n of t)e[n]=""}if(typeof e=="string"){const n=Rn[e];if(n===void 0)throw new TypeError(`Invalid border style: ${e}`);o=n}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 n of t)if(typeof e[n]!="string")throw new TypeError(`Invalid border style: ${n}`);o=e}return o},"getBorderChars"),_t=T((e,t,o,n,r)=>{e=t(e);const a=k(e);let i;switch(r){case"left":{i=e+n(o.slice(a),k(o.slice(a)));break}case"right":{i=`${n(o.slice(a+2),k(o.slice(a))+2)} ${e} `;break}default:{if(o=o.slice(a),o.length%2===1)o=o.slice(Math.floor(o.length/2)),i=n(o.slice(1),k(o.slice(1)))+e+n(o,k(o));else{o=o.slice(o.length/2);const s=k(o);i=n(o,s)+e+n(o,s)}break}}return i},"wrapText"),Mn=T((e,{height:t,padding:o,textAlignment:n,width:r})=>{e=Bt(e,{align:n});let a=e.split(_);const i=yo(e),s=r-o.left-o.right;if(i>s){const d=[];for(const h of a){const p=bo(h,{width:s,wrapMode:ee.BREAK_WORDS}),u=Bt(p,{align:n}).split(`
|
|
12
|
+
`),w=Math.max(...u.map(g=>k(g)));for(const g of u){let f;switch(n){case"center":{f=A.repeat((s-w)/2)+g;break}case"right":{f=A.repeat(s-w)+g;break}default:{f=g;break}}d.push(f)}}a=d}n==="center"&&i<s?a=a.map(d=>A.repeat((s-i)/2)+d):n==="right"&&i<s&&(a=a.map(d=>A.repeat(s-i)+d));const l=A.repeat(o.left),c=A.repeat(o.right);return a=a.map(d=>{const h=l+d+c,p=r-k(h);return h+A.repeat(Math.max(p,0))}),o.top>0&&(a=[...Array.from({length:o.top}).fill(A.repeat(r)),...a]),o.bottom>0&&(a=[...a,...Array.from({length:o.bottom}).fill(A.repeat(r))]),t&&a.length>t?a=a.slice(0,t):t&&a.length<t&&(a=[...a,...Array.from({length:t-a.length}).fill(A.repeat(r))]),a.join(_)},"makeContentText"),_n=T((e,t,o,n)=>{const r=T((p,u,w)=>n.borderColor?n.borderColor(p,u,w):p,"colorizeBorder"),a=T(p=>n.headerTextColor?n.headerTextColor(p):p,"colorizeHeaderText"),i=T(p=>n.footerTextColor?n.footerTextColor(p):p,"colorizeFooterText"),s=T(p=>n.textColor?n.textColor(p):p,"colorizeContent"),l=Fn(n.borderStyle);let c=A.repeat(n.margin.left);if(n.float==="center"){const p=Math.max((o-t-he(n.borderStyle))/2,0);c=A.repeat(p)}else if(n.float==="right"){const p=Math.max(o-t-n.margin.right-he(n.borderStyle),0);c=A.repeat(p)}let d="";if(n.margin.top&&(d+=_.repeat(n.margin.top)),n.borderStyle!==ue||n.headerText){let p=r(l.top.repeat(t),"top",t);n.headerText&&(p=_t(n.headerText,a,l.top.repeat(t),(w,g)=>r(w,"top",g),n.headerAlignment));const u=r(c+l.topLeft,"topLeft",k(c+l.topLeft));d+=u+p+r(l.topRight,"topRight",k(l.topRight))+_}const h=e.split(_);if(d+=h.map(p=>c+r(l.left,"left",k(l.left))+s(p)+r(l.right,"right",k(l.right))).join(_),n.borderStyle!==ue||n.footerText){const p=_+r(c+l.bottomLeft,"bottomLeft",k(c+l.bottomLeft));let u=r(l.bottom.repeat(t),"bottom",t);n.footerText&&(u=_t(n.footerText,i,l.bottom.repeat(t),(w,g)=>r(w,"bottom",g),n.footerAlignment)),d+=p+u+r(l.bottomRight,"bottomRight",k(l.bottomRight))}return n.margin.bottom&&(d+=_.repeat(n.margin.bottom)),d},"boxContent"),On=T(e=>{if(e.fullscreen){let t=fe();typeof e.fullscreen=="function"&&(t=e.fullscreen(t.columns,t.rows)),e.width??=t.columns,e.height??=t.rows}return e.width&&(e.width=Math.max(1,e.width-he(e.borderStyle))),e.height&&(e.height=Math.max(1,e.height-he(e.borderStyle))),e},"sanitizeOptions"),Ot=T((e,t)=>t===ue?e:` ${e} `,"formatTitle"),Pn=T((e,t,o)=>{o=On(o);const n=o.width!==void 0,r=he(o.borderStyle),a=t-o.margin.left-o.margin.right-r,i=yo(bo(e,{trim:!1,width:t-r,wrapMode:ee.BREAK_WORDS}))+o.padding.left+o.padding.right;if(o.headerText&&n?(o.headerText=o.headerText.slice(0,Math.max(0,o.width-2)),o.headerText&&(o.headerText=Ot(o.headerText,o.borderStyle))):o.headerText&&(o.headerText=o.headerText.slice(0,Math.max(0,a-2)),o.headerText&&(o.headerText=Ot(o.headerText,o.borderStyle),k(o.headerText)>i&&(o.width=k(o.headerText)))),o.width=o.width??i,!n){if(o.margin.left&&o.margin.right&&o.width>a){const s=(t-o.width-r)/(o.margin.left+o.margin.right);o.margin.left=Math.max(0,Math.floor(o.margin.left*s)),o.margin.right=Math.max(0,Math.floor(o.margin.right*s))}o.width=Math.min(o.width,t-r-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"),Nn=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=Mt(t.padding??0),o.margin=Mt(t.margin),o.transformTabToSpace&&(e=e.replaceAll(" "," ".repeat(o.transformTabToSpace)));const{columns:n}=fe();return o=Pn(e,n,o),_n(Mn(e,o),o.width,n,o)},"boxen");var qn=Object.defineProperty,Wn=m((e,t)=>qn(e,"name",{value:t,configurable:!0}),"r$5");const Hn=["cjs","mjs"],Un=["mdoc"],we=Wn(e=>{const t=(e.split("?")[0]??e).split(".").pop()?.toLowerCase();if(!t||Hn.includes(t))return"javascript";if(Un.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 Gn=Object.defineProperty,$o=m((e,t)=>Gn(e,"name",{value:t,configurable:!0}),"o$4");const de=new Map,be=$o(async e=>{if(/^(?:http|https|file|data):/.test(e)){if(de.has(e))return de.get(e);if(e.startsWith("file:"))try{const t=Xo(e),o=await Qo(t,"utf8");return de.set(e,o),o}catch{return}try{const t=await fetch(e);if(!t.ok)return;const o=await t.text();return de.set(e,o),o}catch{return}}},"getFileSource");$o(()=>{de.clear()},"clearFileSourceCache");var Zn=Object.defineProperty,Pe=m((e,t)=>Zn(e,"name",{value:t,configurable:!0}),"d$3");const Vn=Pe(e=>e.replace(/^\s*#+\s*/,"").trim(),"sanitizeTitle"),Kn=Pe(async(e,t,o=!1)=>{const n=[...t,to,oo],r=eo(e,{frameLimit:1})[0]??{};for await(const a of n.sort((i,s)=>i.priority-s.priority)){const{handle:i}=a;if(typeof i!="function")continue;const s=await i(e,{file:r.file??"",language:we(r.file??""),line:r.line??0,snippet:r.file?await be(r.file):""});if(s)return s}},"runSolutionFinders"),Eo=Pe(async(e,t)=>{const{solutionFinders:o=[],solutionTitle:n,color:r,debug:a=!1,...i}=t,s=Vo(e,{...i,...r?.codeFrame}),l=await Kn(e,o,a);if(!l)return{errorAnsi:s,solutionBox:void 0};const c=Vn(l.header??n??"A possible solution to this error"),d=Nn(l.body,{borderStyle:"round",padding:{top:1,right:2,bottom:1,left:2},margin:{top:0,right:0,bottom:0,left:0},headerText:`💡 ${c}`,headerAlignment:"left",textAlignment:"left",...r?.boxen});return{errorAnsi:s,solutionBox:d}},"buildOutput");Pe(async(e,t={})=>{const{logger:o=console,...n}=t,{errorAnsi:r,solutionBox:a}=await Eo(e,n);o.error(r),a&&(o.log(""),o.log(a))},"terminalOutput");const Pt="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",Nt="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 Qn=Object.defineProperty,Xn=m((e,t)=>Qn(e,"name",{value:t,configurable:!0}),"o$3");const Yn=`
|
|
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('${Nt}'); mask-image:url('${Nt}')"></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,10 +59,12 @@ var Oo=Object.defineProperty;var m=(e,t)=>Oo(e,"name",{value:t,configurable:!0})
|
|
|
59
59
|
</div>
|
|
60
60
|
</div>
|
|
61
61
|
</div>
|
|
62
|
-
`,
|
|
62
|
+
`,Jn=`
|
|
63
63
|
const bindShortcutsModal = () => {
|
|
64
64
|
const modal = document.getElementById('ono-shortcuts-modal');
|
|
65
|
-
if (!modal)
|
|
65
|
+
if (!modal) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
66
68
|
|
|
67
69
|
const openButtons = document.querySelectorAll('[data-ono-action="open-shortcuts-modal"]');
|
|
68
70
|
const closeButtons = document.querySelectorAll('[data-ono-action="close-shortcuts-modal"]');
|
|
@@ -104,22 +106,22 @@ const bindShortcutsModal = () => {
|
|
|
104
106
|
}
|
|
105
107
|
});
|
|
106
108
|
};
|
|
107
|
-
`,
|
|
109
|
+
`,So=Xn(()=>{const e=`
|
|
108
110
|
<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('${
|
|
111
|
+
<span class="dui shrink-0 size-4" style="-webkit-mask-image:url('${Pt}'); mask-image:url('${Pt}')"></span>
|
|
110
112
|
<span class="sr-only">Keyboard shortcuts</span>
|
|
111
113
|
</button>
|
|
112
|
-
`;return{html:
|
|
114
|
+
`;return{html:Yn+e,script:Jn.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||{}),ea=Object.defineProperty,ta=m((e,t)=>ea(e,"name",{value:t,configurable:!0}),"t$2");const oa=ta(e=>{let t='<option value="">Auto-detected Editor</option>';return Object.keys(Je).forEach(o=>{t+=`<option value="${o}" ${e!==void 0&&e===o?"selected":""}>${Je[o]}</option>`}),`<div class="relative inline-block">
|
|
113
115
|
<label for="editor-selector" class="sr-only">Editor</label>
|
|
114
116
|
<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
117
|
${t}
|
|
116
118
|
</select>
|
|
117
|
-
</div>`},"editorSelector"),
|
|
119
|
+
</div>`},"editorSelector"),qt="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",Wt="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 ra=Object.defineProperty,na=m((e,t)=>ra(e,"name",{value:t,configurable:!0}),"n$8");const aa=na((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
120
|
<div id="ono-theme-switch" class="flex items-center">
|
|
119
121
|
<div class="inline-block">
|
|
120
122
|
<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
123
|
<span class="inline-flex shrink-0 justify-center items-center size-4">
|
|
122
|
-
<span class="dui" style="-webkit-mask-image: url('${
|
|
124
|
+
<span class="dui" style="-webkit-mask-image: url('${qt}'); mask-image: url('${qt}')"></span>
|
|
123
125
|
</span>
|
|
124
126
|
</button>
|
|
125
127
|
</div>
|
|
@@ -127,7 +129,7 @@ const bindShortcutsModal = () => {
|
|
|
127
129
|
<div class="inline-block">
|
|
128
130
|
<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
131
|
<span class="inline-flex shrink-0 justify-center items-center size-4">
|
|
130
|
-
<span class="dui" style="-webkit-mask-image: url('${
|
|
132
|
+
<span class="dui" style="-webkit-mask-image: url('${Wt}'); mask-image: url('${Wt}')"></span>
|
|
131
133
|
</span>
|
|
132
134
|
</button>
|
|
133
135
|
</div>
|
|
@@ -220,13 +222,13 @@ ready(function() {
|
|
|
220
222
|
attributes: true,
|
|
221
223
|
attributeFilter: ['class']
|
|
222
224
|
});
|
|
223
|
-
});`}},"themeToggle");var
|
|
225
|
+
});`}},"themeToggle");var ia=Object.defineProperty,sa=m((e,t)=>ia(e,"name",{value:t,configurable:!0}),"a$2");const la=sa((e,t=!1)=>{const o=aa(e.theme),n=So();return{html:`<div class="w-full flex gap-3 items-center">
|
|
224
226
|
${t?`<nav class="flex gap-1">
|
|
225
227
|
<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
228
|
<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
229
|
</nav>`:""}
|
|
228
230
|
<div class="grow"></div>
|
|
229
|
-
${e.openInEditorUrl?
|
|
231
|
+
${e.openInEditorUrl?oa(e.editor):""}
|
|
230
232
|
${n.html}
|
|
231
233
|
${o.html}
|
|
232
234
|
</div>`,script:`${o.script}${n.script}${e.openInEditorUrl?`
|
|
@@ -255,7 +257,7 @@ bindShortcutsModal();
|
|
|
255
257
|
`:`
|
|
256
258
|
bindShortcutsModal();
|
|
257
259
|
`}
|
|
258
|
-
`}},"headerBar"),
|
|
260
|
+
`}},"headerBar"),ca=`<!-- @license lucide-static v1.7.0 - ISC -->
|
|
259
261
|
<svg
|
|
260
262
|
class="lucide lucide-blocks"
|
|
261
263
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -271,7 +273,7 @@ bindShortcutsModal();
|
|
|
271
273
|
<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
274
|
<rect x="14" y="2" width="8" height="8" rx="1" />
|
|
273
275
|
</svg>
|
|
274
|
-
`,
|
|
276
|
+
`,da=`<!-- @license lucide-static v1.7.0 - ISC -->
|
|
275
277
|
<svg
|
|
276
278
|
class="lucide lucide-layers"
|
|
277
279
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -288,7 +290,7 @@ bindShortcutsModal();
|
|
|
288
290
|
<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
291
|
<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
292
|
</svg>
|
|
291
|
-
`,
|
|
293
|
+
`,pa=`<!-- @license lucide-static v1.7.0 - ISC -->
|
|
292
294
|
<svg
|
|
293
295
|
class="lucide lucide-square-dashed"
|
|
294
296
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -314,8 +316,8 @@ bindShortcutsModal();
|
|
|
314
316
|
<path d="M3 14v1" />
|
|
315
317
|
<path d="M21 14v1" />
|
|
316
318
|
</svg>
|
|
317
|
-
`;var
|
|
318
|
-
${e.map(o=>{const n=
|
|
319
|
+
`;var ua=Object.defineProperty,ha=m((e,t)=>ua(e,"name",{value:t,configurable:!0}),"e$1");const Co=ha((...e)=>e.filter(t=>typeof t=="string"&&t.length>0).join(" "),"cn");var ga=Object.defineProperty,Ht=m((e,t)=>ga(e,"name",{value:t,configurable:!0}),"r$3");const ma=Ht(e=>{const t=Ht(o=>{if(o.icon)return S(o.icon);switch(o.id){case"context":return ca;case"stack":return da;default:return pa}},"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">
|
|
320
|
+
${e.map(o=>{const n=Co("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"),r=E(o.id),a=S(o.name);return`<button type="button" class="${n}" id="ono-tab-${r}" aria-selected="${o.selected?"true":"false"}" data-ono-tab="#ono-section-${r}" aria-controls="ono-section-${r}" role="tab" title="${a}">${t(o)}<span>${a}</span></button>`}).join("")}
|
|
319
321
|
</nav>`,script:`
|
|
320
322
|
// Tabs system initialization
|
|
321
323
|
(function() {
|
|
@@ -324,10 +326,14 @@ bindShortcutsModal();
|
|
|
324
326
|
|
|
325
327
|
function activateTab(tabTrigger) {
|
|
326
328
|
const targetId = tabTrigger.getAttribute('data-ono-tab') || tabTrigger.getAttribute('data-stack-tab');
|
|
327
|
-
if (!targetId)
|
|
329
|
+
if (!targetId) {
|
|
330
|
+
return;
|
|
331
|
+
}
|
|
328
332
|
|
|
329
333
|
const container = tabTrigger.closest('[role="tablist"]')?.parentElement;
|
|
330
|
-
if (!container)
|
|
334
|
+
if (!container) {
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
331
337
|
|
|
332
338
|
// Find all tabs and panels globally (not just within container)
|
|
333
339
|
const allTabs = $$('[role="tab"]');
|
|
@@ -367,10 +373,14 @@ bindShortcutsModal();
|
|
|
367
373
|
|
|
368
374
|
document.addEventListener('keydown', function(e) {
|
|
369
375
|
const tab = e.target.closest('[role="tab"]');
|
|
370
|
-
if (!tab)
|
|
376
|
+
if (!tab) {
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
371
379
|
|
|
372
380
|
const container = tab.closest('[role="tablist"]');
|
|
373
|
-
if (!container)
|
|
381
|
+
if (!container) {
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
374
384
|
|
|
375
385
|
// Find all tabs in the same tablist (not globally)
|
|
376
386
|
const tabs = $$('[role="tab"]:not([disabled])', container);
|
|
@@ -403,8 +413,8 @@ bindShortcutsModal();
|
|
|
403
413
|
}
|
|
404
414
|
});
|
|
405
415
|
})();
|
|
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{-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}`,aa=Object.defineProperty,Pe=m((e,t)=>aa(e,"name",{value:t,configurable:!0}),"n$6");const Ie=Pe(e=>e.replaceAll(/[&<>"']/g,t=>({'"':""","&":"&","'":"'","<":"<",">":">"})[t]||t),"escapeHtml"),ia=`
|
|
416
|
+
`}},"headerTabs");var fa=`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
|
417
|
+
@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}`,wa=Object.defineProperty,Ne=m((e,t)=>wa(e,"name",{value:t,configurable:!0}),"n$6");const Ae=Ne(e=>e.replaceAll(/[&<>"']/g,t=>({'"':""","&":"&","'":"'","<":"<",">":">"})[t]??t),"escapeHtml"),ba=`
|
|
408
418
|
// Ensures listeners run as soon as the DOM is interactive
|
|
409
419
|
function subscribeToDOMContentLoaded(listener) {
|
|
410
420
|
if (document.readyState !== 'loading') {
|
|
@@ -413,7 +423,7 @@ bindShortcutsModal();
|
|
|
413
423
|
}
|
|
414
424
|
try { document.addEventListener('DOMContentLoaded', listener); } catch (_) {}
|
|
415
425
|
}
|
|
416
|
-
`,
|
|
426
|
+
`,va=`
|
|
417
427
|
subscribeToDOMContentLoaded(() => {
|
|
418
428
|
// Global keyboard shortcut for ? and Shift+/ to open shortcuts
|
|
419
429
|
if (!window.__onoShortcutKeyBound) {
|
|
@@ -456,11 +466,11 @@ bindShortcutsModal();
|
|
|
456
466
|
});
|
|
457
467
|
}
|
|
458
468
|
});
|
|
459
|
-
`,Ve=
|
|
460
|
-
`)?
|
|
469
|
+
`,Ve=Ne((e,t)=>`<script${t?` nonce="${Ae(t)}"`:""}>${e}<\/script>`,"createScriptTag"),ka=Ne((e,t)=>`<style${t?` nonce="${Ae(t)}"`:""}>${e}</style>`,"createStyleTag"),xa=Ne(({content:e,cspNonce:t,css:o,description:n,error:r,scripts:a,theme:i,title:s})=>{const l=Yo(t),c=Ae(s),d=Ae(n),h=r.stack??r.toString(),p=Qe(h.includes(`
|
|
470
|
+
`)?h.replaceAll(`
|
|
461
471
|
`,`
|
|
462
|
-
`):
|
|
463
|
-
${
|
|
472
|
+
`):h);return`<!--
|
|
473
|
+
${p}
|
|
464
474
|
-->
|
|
465
475
|
<!DOCTYPE html>
|
|
466
476
|
<html lang="en" class="${i==="dark"?"dark":""}">
|
|
@@ -469,11 +479,11 @@ bindShortcutsModal();
|
|
|
469
479
|
<title>${c}</title>
|
|
470
480
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
471
481
|
<meta name="description" content="${d}">
|
|
472
|
-
${
|
|
473
|
-
${Ve(
|
|
474
|
-
${a.filter(Boolean).map(
|
|
482
|
+
${ka(o,l)}
|
|
483
|
+
${Ve(ba.trim(),l)}
|
|
484
|
+
${a.filter(Boolean).map(u=>Ve(u,l)).join(`
|
|
475
485
|
`)}
|
|
476
|
-
${Ve(
|
|
486
|
+
${Ve(va.trim(),l)}
|
|
477
487
|
</head>
|
|
478
488
|
<body>
|
|
479
489
|
<div id="visulima-ono-container" class="bg-[var(--ono-bg)] text-[var(--ono-text)]">
|
|
@@ -484,22 +494,22 @@ bindShortcutsModal();
|
|
|
484
494
|
</body>
|
|
485
495
|
</html>
|
|
486
496
|
<!--
|
|
487
|
-
${
|
|
497
|
+
${p}
|
|
488
498
|
-->
|
|
489
|
-
`},"layout");var
|
|
499
|
+
`},"layout");var ya=Object.defineProperty,$a=m((e,t)=>ya(e,"name",{value:t,configurable:!0}),"o$1");const j=globalThis,Ea=[[!!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"]],Sa=$a(()=>{const e=Ea.find(t=>t[0]);if(e)return e[1]},"detectRuntime"),Ca=Sa(),Ut="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",Gt="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",De="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 Ta=Object.defineProperty,Aa=m((e,t)=>Ta(e,"name",{value:t,configurable:!0}),"t$1");const Da=Aa(e=>{if(typeof e!="string")throw new TypeError("revisionHash: input must be a string");return nr("sha256").update(e,"utf8").digest("hex").slice(0,16)},"revisionHash");var Ia=Object.defineProperty,za=m((e,t)=>Ia(e,"name",{value:t,configurable:!0}),"n$3");const Ra=za(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 Ba=Object.defineProperty,La=m((e,t)=>Ba(e,"name",{value:t,configurable:!0}),"n$2");const ja=La(e=>{const t=[];let o=[];for(let n=0;n<e.length;n+=1){o.push(e[n]);const r=n===e.length-1,a=!r&&e[n].type!==e[n+1].type;(r||a)&&(o.length>1?t.push(o):t.push(o[0]),o=[])}return t},"groupSimilarTypes");var Fa=Object.defineProperty,Zt=m((e,t)=>Fa(e,"name",{value:t,configurable:!0}),"m$3");const Ma=/^file:\/\//,To=Zt(async(e,t={})=>{const o=Da(e.name+e.message+(e.stack??"")),n=lt(e),r=Zt(p=>p.replaceAll(/[&<>"']/g,u=>({'"':""","&":"&","'":"'","<":"<",">":">"})[u]??u),"escapeHtml"),a=[],i=[];for(const[p,u]of n.entries()){const w=`// Unable to load source code for ${u.file??""}:${String(u.line??"")}:${String(u.column??"")}`,g=u.file?await be(u.file):void 0,f=!!g,y=g?ct(g,{start:{column:u.column,line:u.line}},{linesAbove:9,linesBelow:10,showGutter:!1}):w,D=we(u.file??"");let R;if(D==="text")R=`<pre class="shiki"><code>${r(y)}</code></pre>`;else{const Wo=(await Jo([D])).codeToHtml(y,{lang:D,themes:{dark:"min-dark",light:"min-light"}});R=S(Wo)}const ae=`${u.file??""}:${String(u.line??"")}:${String(u.column??"")}`,X=(u.file??"").replace(Ma,""),M=ae.replace(or.cwd?.()??"","").replace("file:///",""),I=S(u.methodName??""),Y=S(M);a.push({html:`<button type="button" id="source-code-tabs-item-${o}-${String(p)}" data-stack-tab="#source-code-tabs-${o}-${String(p)}" aria-controls="source-code-tabs-${o}-${String(p)}" ${f?"":'disabled aria-disabled="true"'} class="${Co("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",f?"cursor-pointer":"cursor-not-allowed")}">
|
|
490
500
|
<div class="flex flex-col w-full text-left overflow-hidden min-w-0">
|
|
491
501
|
<span class="font-medium text-[var(--ono-text)] truncate">${I}</span>
|
|
492
|
-
<span class="text-sm text-[var(--ono-text-muted)] truncate">${
|
|
502
|
+
<span class="text-sm text-[var(--ono-text-muted)] truncate">${Y}</span>
|
|
493
503
|
</div>
|
|
494
|
-
</button>`,type:
|
|
504
|
+
</button>`,type:u.file?Ra(u.file):void 0});let Ue=Y;t.openInEditorUrl?Ue=`<button type="button" class="underline hover:text-[var(--ono-link)]" data-open-in-editor data-url="${er(t.openInEditorUrl)}" data-path="${E(X)}" data-line="${E(u.line??1)}" data-column="${E(u.column??1)}" title="Open ${Y} in external editor">${Y} — Open in editor</button>`:f&&(Ue=`<button type="button" class="underline hover:text-[var(--ono-link)]" data-editor-link data-path="${E(X)}" data-line="${E(u.line??1)}" data-column="${E(u.column??1)}" title="Open ${Y} in editor">${Y} — Open in editor</button>`),i.push(`<div id="source-code-tabs-${o}-${String(p)}" class="${p===0&&f?"block":"hidden"}" aria-labelledby="source-code-tabs-item-${o}-${String(p)}" tabindex="0">
|
|
495
505
|
<div class="pt-6 px-6 text-sm text-right text-[var(--ono-text)]">
|
|
496
|
-
${
|
|
506
|
+
${Ue}
|
|
497
507
|
</div>
|
|
498
|
-
<div class="p-6">${
|
|
499
|
-
</div>`)}const s
|
|
500
|
-
<label for="${
|
|
508
|
+
<div class="p-6">${R}</div>
|
|
509
|
+
</div>`)}const s=ja(a),l=s.map((p,u)=>{if(Array.isArray(p)){const w=p[0];let g;switch(w.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 f=`small-switch-${o}-${String(u)}`,y=`stack-trace-group-${o}-${String(u)}`;return`<div class="flex items-center gap-2">
|
|
510
|
+
<label for="${f}" class="relative text-sm text-[var(--ono-text)] flex gap-2 items-center">
|
|
501
511
|
<div class="relative inline-flex h-5 w-9 cursor-pointer items-center">
|
|
502
|
-
<input type="checkbox" id="${
|
|
512
|
+
<input type="checkbox" id="${f}" data-group-toggle="${o}" data-target-id="${y}" class="peer sr-only">
|
|
503
513
|
<span class="absolute inset-0 rounded-full bg-[var(--ono-chip-bg)] transition-colors peer-checked:bg-[var(--ono-red-orange)]"></span>
|
|
504
514
|
<span class="absolute left-0.5 top-0.5 h-4 w-4 rounded-full bg-white shadow transition-transform peer-checked:translate-x-4"></span>
|
|
505
515
|
</div>
|
|
@@ -513,21 +523,21 @@ bindShortcutsModal();
|
|
|
513
523
|
<div class="flex flex-row items-center gap-2">${l}</div>
|
|
514
524
|
</div>
|
|
515
525
|
<nav class="flex flex-col" aria-label="Frames">
|
|
516
|
-
${s.map((u
|
|
526
|
+
${s.map((p,u)=>{if(Array.isArray(p)){const w=p[0];let g;switch(w.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}-${String(u)}">
|
|
517
527
|
<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
528
|
<span class="flex items-center gap-2">
|
|
519
529
|
<span class="uppercase tracking-wide text-[10px] text-[var(--ono-text-muted)]">${g}</span>
|
|
520
|
-
<span class="inline-flex items-center justify-center px-2 py-0.5 rounded-full text-[10px] bg-[var(--ono-chip-bg)] text-[var(--ono-chip-text)]">${
|
|
530
|
+
<span class="inline-flex items-center justify-center px-2 py-0.5 rounded-full text-[10px] bg-[var(--ono-chip-bg)] text-[var(--ono-chip-text)]">${String(p.length)}</span>
|
|
521
531
|
</span>
|
|
522
|
-
<span data-chevron class="dui w-4 h-4 transition-transform duration-300" style="-webkit-mask-image:url('${
|
|
532
|
+
<span data-chevron class="dui w-4 h-4 transition-transform duration-300" style="-webkit-mask-image:url('${De}'); mask-image:url('${De}')"></span>
|
|
523
533
|
</summary>
|
|
524
|
-
<div class="flex flex-col">${
|
|
525
|
-
</details>`}return
|
|
534
|
+
<div class="flex flex-col">${p.map(f=>f.html).join("")}</div>
|
|
535
|
+
</details>`}return p.html}).join("")}
|
|
526
536
|
</nav>
|
|
527
537
|
</div>
|
|
528
538
|
<div class="w-8/12 rounded-tr-lg rounded-br-lg overflow-hidden bg-[var(--ono-surface)]">${i.join("")}</div>
|
|
529
539
|
</main>
|
|
530
|
-
</section>`,
|
|
540
|
+
</section>`,h=`
|
|
531
541
|
(function(){
|
|
532
542
|
(window.subscribeToDOMContentLoaded || function (fn) {
|
|
533
543
|
if (document.readyState !== 'loading') fn(); else document.addEventListener('DOMContentLoaded', fn);
|
|
@@ -603,7 +613,9 @@ bindShortcutsModal();
|
|
|
603
613
|
}
|
|
604
614
|
|
|
605
615
|
function __openEditorScheme__(file, line, column) {
|
|
606
|
-
if (!file)
|
|
616
|
+
if (!file) {
|
|
617
|
+
return;
|
|
618
|
+
}
|
|
607
619
|
var editor = __getSelectedEditor__();
|
|
608
620
|
var tpl = __EDITOR_SCHEMES__[editor] || __EDITOR_SCHEMES__['vscode'];
|
|
609
621
|
var url = __buildEditorUrl__(tpl, file, line, column);
|
|
@@ -623,7 +635,9 @@ bindShortcutsModal();
|
|
|
623
635
|
// Server-side open-in-editor
|
|
624
636
|
document.addEventListener('click', function(e){
|
|
625
637
|
var btn = (e.target && e.target.closest) ? e.target.closest('[data-open-in-editor]') : null;
|
|
626
|
-
if (!btn)
|
|
638
|
+
if (!btn) {
|
|
639
|
+
return;
|
|
640
|
+
}
|
|
627
641
|
var url = btn.getAttribute('data-url');
|
|
628
642
|
var file = btn.getAttribute('data-path');
|
|
629
643
|
var line = parseInt(btn.getAttribute('data-line') || '1', 10) || 1;
|
|
@@ -638,7 +652,9 @@ bindShortcutsModal();
|
|
|
638
652
|
try { localStorage.setItem('ono:editor', sel.value); } catch (_) {}
|
|
639
653
|
}
|
|
640
654
|
} catch (_) {}
|
|
641
|
-
if (!url || !file)
|
|
655
|
+
if (!url || !file) {
|
|
656
|
+
return;
|
|
657
|
+
}
|
|
642
658
|
var body = { file: file, line: line, column: column };
|
|
643
659
|
if (selectedEditor) body.editor = selectedEditor;
|
|
644
660
|
try { fetch(url, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify(body) }); } catch (_) {}
|
|
@@ -647,7 +663,9 @@ bindShortcutsModal();
|
|
|
647
663
|
// Client-side fallback: open via editor URL scheme
|
|
648
664
|
document.addEventListener('click', function(e){
|
|
649
665
|
var btn = (e.target && e.target.closest) ? e.target.closest('[data-editor-link]') : null;
|
|
650
|
-
if (!btn)
|
|
666
|
+
if (!btn) {
|
|
667
|
+
return;
|
|
668
|
+
}
|
|
651
669
|
e.preventDefault();
|
|
652
670
|
var file = btn.getAttribute('data-path');
|
|
653
671
|
var line = parseInt(btn.getAttribute('data-line') || '1', 10) || 1;
|
|
@@ -722,7 +740,9 @@ bindShortcutsModal();
|
|
|
722
740
|
groupToggles.forEach(function(t){
|
|
723
741
|
var targetId = t.getAttribute('data-target-id');
|
|
724
742
|
var details = targetId ? document.getElementById(targetId) : null;
|
|
725
|
-
if (!details)
|
|
743
|
+
if (!details) {
|
|
744
|
+
return;
|
|
745
|
+
}
|
|
726
746
|
|
|
727
747
|
// Initialize checkbox state from details
|
|
728
748
|
syncCheckboxWithDetails(t, details);
|
|
@@ -737,18 +757,18 @@ bindShortcutsModal();
|
|
|
737
757
|
});
|
|
738
758
|
});
|
|
739
759
|
})();
|
|
740
|
-
`;return{html:d,script:
|
|
741
|
-
<span class="dui" style="-webkit-mask-image: url('${
|
|
742
|
-
</span>`:"","tooltip");var
|
|
760
|
+
`;return{html:d,script:h}},"stackTraceViewer"),et="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 _a=Object.defineProperty,Oa=m((e,t)=>_a(e,"name",{value:t,configurable:!0}),"s$2");const Ao=Oa(({message:e}={})=>e?`<span class="inline-flex justify-center items-center text-[var(--ono-text)] cursor-help" title="${S(e)}">
|
|
761
|
+
<span class="dui" style="-webkit-mask-image: url('${et}'); mask-image: url('${et}')"></span>
|
|
762
|
+
</span>`:"","tooltip");var Pa=Object.defineProperty,Na=m((e,t)=>Pa(e,"name",{value:t,configurable:!0}),"r$1");const qa=Na(async(e,t={})=>{if(e.length===0)return{html:"",script:""};const o=[],n=[];for(const[r,a]of e.entries())if(a instanceof Error){const{html:i,script:s}=await To(a,{openInEditorUrl:t.openInEditorUrl});o.push(`<details aria-label="Cause ${String(r+1)}" class="relative rounded-[var(--ono-radius-lg)] mb-2 last:mb-0 group shadow-[var(--ono-elevation-1)] bg-[var(--ono-surface)]">
|
|
743
763
|
<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('${
|
|
764
|
+
${S(a.name)}: ${S(a.message)}
|
|
765
|
+
<span class="dui ono-expand-icon-closed size-4" style="-webkit-mask-image:url('${Gt}'); mask-image:url('${Gt}')"></span>
|
|
766
|
+
<span class="dui ono-expand-icon-open size-4" style="-webkit-mask-image:url('${Ut}'); mask-image:url('${Ut}')"></span>
|
|
747
767
|
</summary>
|
|
748
768
|
<section class="w-full overflow-hidden transition-[height] duration-300 p-5 pt-0">
|
|
749
769
|
${i}
|
|
750
770
|
</section>
|
|
751
|
-
</details>`),n.push(s)}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)]">${
|
|
771
|
+
</details>`),n.push(s)}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)]">${S(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)]">${S(JSON.stringify(a))}</div>`);return{html:`<style>
|
|
752
772
|
/* Toggle plus/minus icons inside <details> */
|
|
753
773
|
details summary .ono-expand-icon-open { display: none !important; }
|
|
754
774
|
details[open] summary .ono-expand-icon-open { display: inline-block !important; }
|
|
@@ -757,13 +777,13 @@ bindShortcutsModal();
|
|
|
757
777
|
<section class="w-full">
|
|
758
778
|
<div>
|
|
759
779
|
<h3 class="text-xl font-bold inline-flex justify-center items-center text-[var(--ono-text)]">Error causes</h3>
|
|
760
|
-
${
|
|
780
|
+
${Ao({message:`The "cause" property of an Error indicates the original reason the error occurred.
|
|
761
781
|
Causes are ordered in the sequence they occurred.`})}
|
|
762
782
|
</div>
|
|
763
783
|
<div class="mt-6">${o.join(`
|
|
764
784
|
`)}</div>
|
|
765
785
|
</section>`,script:n.join(`
|
|
766
|
-
`)}},"causes"),
|
|
786
|
+
`)}},"causes"),Vt="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 Wa=Object.defineProperty,Ha=m((e,t)=>Wa(e,"name",{value:t,configurable:!0}),"i$2");const Ua=/^#/,Do=Ha(({label:e="Copy",secondaryLabel:t="Copy fix prompt",secondaryText:o,successText:n="Copied!",targetId:r})=>{const a=S(t),i=E(o),s=E(r),l=E(e),c=S(e);return{html:`
|
|
767
787
|
<div class="ono-dropdown relative inline-block">
|
|
768
788
|
<button
|
|
769
789
|
type="button"
|
|
@@ -771,13 +791,13 @@ bindShortcutsModal();
|
|
|
771
791
|
title="${l}"
|
|
772
792
|
aria-haspopup="menu"
|
|
773
793
|
aria-expanded="false"
|
|
774
|
-
aria-controls="${
|
|
794
|
+
aria-controls="${E(`ono-copy-menu-${r.replace(Ua,"")}`)}"
|
|
775
795
|
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
796
|
>
|
|
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('${
|
|
797
|
+
<span class="ono-copy-default dui size-4 transition" style="-webkit-mask-image: url('${At}'); mask-image: url('${At}')"></span>
|
|
798
|
+
<span class="ono-copy-success dui hidden size-4 text-[var(--ono-red-orange)]" style="-webkit-mask-image: url('${Dt}'); mask-image: url('${Dt}')"></span>
|
|
779
799
|
<span class="sr-only">${c}</span>
|
|
780
|
-
<span class="dui size-4 transition-transform duration-200 [&.ono-dropdown-open]:rotate-180" style="-webkit-mask-image:url('${
|
|
800
|
+
<span class="dui size-4 transition-transform duration-200 [&.ono-dropdown-open]:rotate-180" style="-webkit-mask-image:url('${De}'); mask-image:url('${De}')"></span>
|
|
781
801
|
</button>
|
|
782
802
|
|
|
783
803
|
<div class="ono-dropdown-menu absolute z-20 top-full left-0 mt-1 min-w-52 p-1 bg-[var(--ono-surface)] border border-[var(--ono-border)] text-sm text-[var(--ono-text)] rounded-[var(--ono-radius-md)] shadow-[var(--ono-elevation-2)] [&.ono-dropdown-open]:block" role="menu">
|
|
@@ -786,7 +806,7 @@ bindShortcutsModal();
|
|
|
786
806
|
role="menuitem"
|
|
787
807
|
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
808
|
data-target="#${s}"
|
|
789
|
-
data-success-text="${
|
|
809
|
+
data-success-text="${E(n)}"
|
|
790
810
|
>
|
|
791
811
|
${c}
|
|
792
812
|
</button>
|
|
@@ -795,38 +815,43 @@ bindShortcutsModal();
|
|
|
795
815
|
role="menuitem"
|
|
796
816
|
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
817
|
data-text="${i}"
|
|
798
|
-
data-success-text="${
|
|
818
|
+
data-success-text="${E(n)}"
|
|
799
819
|
>
|
|
800
820
|
${a}
|
|
801
821
|
</button>
|
|
802
822
|
</div>
|
|
803
823
|
</div>
|
|
804
|
-
`}},"copyDropdown"),
|
|
805
|
-
]`).replace("lheading",
|
|
824
|
+
`}},"copyDropdown"),Ke="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 Ga=Object.defineProperty,v=m((e,t)=>Ga(e,"name",{value:t,configurable:!0}),"g");function qe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}m(qe,"E$1");v(qe,"z");var Q=qe();function vt(e){Q=e}m(vt,"ae");v(vt,"G");var q={exec:v(()=>null,"exec")};function b(e,t=""){let o=typeof e=="string"?e:e.source,n={replace:v((r,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(C.caret,"$1"),o=o.replace(r,i),n},"replace"),getRegex:v(()=>new RegExp(o,t),"getRegex")};return n}m(b,"p");v(b,"k");var Za=(()=>{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")},Va=/^(?:[ \t]*(?:\n|$))+/,Ka=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Qa=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ve=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Xa=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,kt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Io=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,zo=b(Io).replace(/bull/g,kt).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(),Ya=b(Io).replace(/bull/g,kt).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(),xt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ja=/^[^\n]+/,yt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ei=b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",yt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ti=b(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,kt).getRegex(),We="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",$t=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,oi=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",$t).replace("tag",We).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ro=b(xt).replace("hr",ve).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",We).getRegex(),ri=b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ro).getRegex(),Et={blockquote:ri,code:Ka,def:ei,fences:Qa,heading:Xa,hr:ve,html:oi,lheading:zo,list:ti,newline:Va,paragraph:Ro,table:q,text:Ja},Kt=b("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ve).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",We).getRegex(),ni={...Et,lheading:Ya,table:Kt,paragraph:b(xt).replace("hr",ve).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Kt).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",We).getRegex()},ai={...Et,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$t).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(xt).replace("hr",ve).replace("heading",` *#{1,6} *[^
|
|
825
|
+
]`).replace("lheading",zo).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ii=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,si=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bo=/^( {2,}|\\)\n(?!\s*$)/,li=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ne=/[\p{P}\p{S}]/u,He=/[\s\p{P}\p{S}]/u,St=/[^\s\p{P}\p{S}]/u,ci=b(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,He).getRegex(),Lo=/(?!~)[\p{P}\p{S}]/u,di=/(?!~)[\s\p{P}\p{S}]/u,pi=/(?:[^\s\p{P}\p{S}]|~)/u,ui=b(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Za?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),jo=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,hi=b(jo,"u").replace(/punct/g,ne).getRegex(),gi=b(jo,"u").replace(/punct/g,Lo).getRegex(),Fo="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",mi=b(Fo,"gu").replace(/notPunctSpace/g,St).replace(/punctSpace/g,He).replace(/punct/g,ne).getRegex(),fi=b(Fo,"gu").replace(/notPunctSpace/g,pi).replace(/punctSpace/g,di).replace(/punct/g,Lo).getRegex(),wi=b("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,St).replace(/punctSpace/g,He).replace(/punct/g,ne).getRegex(),bi=b(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ne).getRegex(),vi="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ki=b(vi,"gu").replace(/notPunctSpace/g,St).replace(/punctSpace/g,He).replace(/punct/g,ne).getRegex(),xi=b(/\\(punct)/,"gu").replace(/punct/g,ne).getRegex(),yi=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(),$i=b($t).replace("(?:-->|$)","-->").getRegex(),Ei=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",$i).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ie=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Si=b(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Ie).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Mo=b(/^!?\[(label)\]\[(ref)\]/).replace("label",Ie).replace("ref",yt).getRegex(),_o=b(/^!?\[(ref)\](?:\[\])?/).replace("ref",yt).getRegex(),Ci=b("reflink|nolink(?!\\()","g").replace("reflink",Mo).replace("nolink",_o).getRegex(),Qt=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ct={_backpedal:q,anyPunctuation:xi,autolink:yi,blockSkip:ui,br:Bo,code:si,del:q,delLDelim:q,delRDelim:q,emStrongLDelim:hi,emStrongRDelimAst:mi,emStrongRDelimUnd:wi,escape:ii,link:Si,nolink:_o,punctuation:ci,reflink:Mo,reflinkSearch:Ci,tag:Ei,text:li,url:q},Ti={...Ct,link:b(/^!?\[(label)\]\((.*?)\)/).replace("label",Ie).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ie).getRegex()},tt={...Ct,emStrongRDelimAst:fi,emStrongLDelim:gi,delLDelim:bi,delRDelim:ki,url:b(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Qt).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",Qt).getRegex()},Ai={...tt,br:b(Bo).replace("{2,}","*").getRegex(),text:b(tt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},$e={normal:Et,gfm:ni,pedantic:ai},le={normal:Ct,gfm:tt,breaks:Ai,pedantic:Ti},Di={"&":"&","<":"<",">":">",'"':""","'":"'"},Xt=v(e=>Di[e],"de");function z(e,t){if(t){if(C.escapeTest.test(e))return e.replace(C.escapeReplace,Xt)}else if(C.escapeTestNoEncode.test(e))return e.replace(C.escapeReplaceNoEncode,Xt);return e}m(z,"y$1");v(z,"O");function ot(e){try{e=encodeURI(e).replace(C.percentDecode,"%")}catch{return null}return e}m(ot,"ne");v(ot,"J");function rt(e,t){let o=e.replace(C.findPipe,(a,i,s)=>{let l=!1,c=i;for(;--c>=0&&s[c]==="\\";)l=!l;return l?"|":" |"}),n=o.split(C.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(C.slashPipe,"|");return n}m(rt,"se");v(rt,"V");function F(e,t,o){let n=e.length;if(n===0)return"";let r=0;for(;r<n;){let a=e.charAt(n-r-1);if(a===t&&!o)r++;else if(a!==t&&o)r++;else break}return e.slice(0,n-r)}m(F,"$$2");v(F,"$");function nt(e){let t=e.split(`
|
|
826
|
+
`),o=t.length-1;for(;o>=0&&!t[o].trim();)o--;return t.length-o<=2?e:t.slice(0,o+1).join(`
|
|
827
|
+
`)}m(nt,"le");v(nt,"Y");function Oo(e,t){if(e.indexOf(t[1])===-1)return-1;let o=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])o++;else if(e[n]===t[1]&&(o--,o<0))return n;return o>0?-2:-1}m(Oo,"st");v(Oo,"ge");function Po(e,t=0){let o=t,n="";for(let r of e)if(r===" "){let a=4-o%4;n+=" ".repeat(a),o+=a}else n+=r,o++;return n}m(Po,"lt");v(Po,"fe");function at(e,t,o,n,r){let a=t.href,i=t.title||null,s=e[1].replace(r.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:o,href:a,title:i,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}m(at,"ie");v(at,"me");function No(e,t,o){let n=e.match(o.other.indentCodeCompensation);if(n===null)return t;let r=n[1];return t.split(`
|
|
806
828
|
`).map(a=>{let i=a.match(o.other.beginningSpace);if(i===null)return a;let[s]=i;return s.length>=r.length?a.slice(r.length):a}).join(`
|
|
807
|
-
`)}m(
|
|
808
|
-
`)
|
|
809
|
-
`)}}blockquote(t){let o=this.rules.block.blockquote.exec(t);if(o){let n=
|
|
829
|
+
`)}m(No,"it");v(No,"rt");var ze=class{static{m(this,"L")}static{v(this,"w")}options;rules;lexer;constructor(t){this.options=t||Q}space(t){let o=this.rules.block.newline.exec(t);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(t){let o=this.rules.block.code.exec(t);if(o){let n=this.options.pedantic?o[0]:nt(o[0]),r=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:r}}}fences(t){let o=this.rules.block.fences.exec(t);if(o){let n=o[0],r=No(n,o[3]||"",this.rules);return{type:"code",raw:n,lang:o[2]?o[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):o[2],text:r}}}heading(t){let o=this.rules.block.heading.exec(t);if(o){let n=o[2].trim();if(this.rules.other.endingHash.test(n)){let r=F(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:F(o[0],`
|
|
830
|
+
`),depth:o[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let o=this.rules.block.hr.exec(t);if(o)return{type:"hr",raw:F(o[0],`
|
|
831
|
+
`)}}blockquote(t){let o=this.rules.block.blockquote.exec(t);if(o){let n=F(o[0],`
|
|
810
832
|
`).split(`
|
|
811
833
|
`),r="",a="",i=[];for(;n.length>0;){let s=!1,l=[],c;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))l.push(n[c]),s=!0;else if(!s)l.push(n[c]);else break;n=n.slice(c);let d=l.join(`
|
|
812
|
-
`),
|
|
834
|
+
`),h=d.replace(this.rules.other.blockquoteSetextReplace,`
|
|
813
835
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
814
836
|
${d}`:d,a=a?`${a}
|
|
815
|
-
${
|
|
837
|
+
${h}`:h;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,i,!0),this.lexer.state.top=p,n.length===0)break;let u=i.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let w=u,g=w.raw+`
|
|
816
838
|
`+n.join(`
|
|
817
|
-
`),
|
|
839
|
+
`),f=this.blockquote(g);i[i.length-1]=f,r=r.substring(0,r.length-w.raw.length)+f.raw,a=a.substring(0,a.length-w.text.length)+f.text;break}else if(u?.type==="list"){let w=u,g=w.raw+`
|
|
818
840
|
`+n.join(`
|
|
819
|
-
`),
|
|
820
|
-
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:a}}}list(t){let o=this.rules.block.list.exec(t);if(o){let n=o[1].trim(),r=n.length>1,a={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),s=!1;for(;t;){let c=!1,d="",
|
|
821
|
-
`,1)[0],o[1].length),
|
|
822
|
-
`,1)[0],
|
|
823
|
-
`,t=t.substring(
|
|
824
|
-
`,1)[0],I;if(
|
|
825
|
-
`+I.slice(g);else{if(
|
|
826
|
-
`+
|
|
827
|
-
`,t=t.substring(
|
|
828
|
-
`)
|
|
829
|
-
|
|
841
|
+
`),f=this.list(g);i[i.length-1]=f,r=r.substring(0,r.length-u.raw.length)+f.raw,a=a.substring(0,a.length-w.raw.length)+f.raw,n=g.substring(i.at(-1).raw.length).split(`
|
|
842
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:a}}}list(t){let o=this.rules.block.list.exec(t);if(o){let n=o[1].trim(),r=n.length>1,a={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),s=!1;for(;t;){let c=!1,d="",h="";if(!(o=i.exec(t))||this.rules.block.hr.test(t))break;d=o[0],t=t.substring(d.length);let p=Po(o[2].split(`
|
|
843
|
+
`,1)[0],o[1].length),u=t.split(`
|
|
844
|
+
`,1)[0],w=!p.trim(),g=0;if(this.options.pedantic?(g=2,h=p.trimStart()):w?g=o[1].length+1:(g=p.search(this.rules.other.nonSpaceChar),g=g>4?1:g,h=p.slice(g),g+=o[1].length),w&&this.rules.other.blankLine.test(u)&&(d+=u+`
|
|
845
|
+
`,t=t.substring(u.length+1),c=!0),!c){let f=this.rules.other.nextBulletRegex(g),y=this.rules.other.hrRegex(g),D=this.rules.other.fencesBeginRegex(g),R=this.rules.other.headingBeginRegex(g),ae=this.rules.other.htmlBeginRegex(g),X=this.rules.other.blockquoteBeginRegex(g);for(;t;){let M=t.split(`
|
|
846
|
+
`,1)[0],I;if(u=M,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),I=u):I=u.replace(this.rules.other.tabCharGlobal," "),D.test(u)||R.test(u)||ae.test(u)||X.test(u)||f.test(u)||y.test(u))break;if(I.search(this.rules.other.nonSpaceChar)>=g||!u.trim())h+=`
|
|
847
|
+
`+I.slice(g);else{if(w||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||D.test(p)||R.test(p)||y.test(p))break;h+=`
|
|
848
|
+
`+u}w=!u.trim(),d+=M+`
|
|
849
|
+
`,t=t.substring(M.length+1),p=I.slice(g)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(s=!0)),a.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(h),loose:!1,text:h,tokens:[]}),a.raw+=d}let l=a.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let c of a.items){if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),c.task){if(c.text=c.text.replace(this.rules.other.listReplaceTask,""),c.tokens[0]?.type==="text"||c.tokens[0]?.type==="paragraph"){c.tokens[0].raw=c.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),c.tokens[0].text=c.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}}let d=this.rules.other.listTaskCheckbox.exec(c.raw);if(d){let h={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};c.checked=h.checked,a.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=h.raw+c.tokens[0].raw,c.tokens[0].text=h.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(h)):c.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):c.tokens.unshift(h)}}if(!a.loose){let d=c.tokens.filter(p=>p.type==="space"),h=d.length>0&&d.some(p=>this.rules.other.anyLine.test(p.raw));a.loose=h}}if(a.loose)for(let c of a.items){c.loose=!0;for(let d of c.tokens)d.type==="text"&&(d.type="paragraph")}return a}}html(t){let o=this.rules.block.html.exec(t);if(o){let n=nt(o[0]);return{type:"html",block:!0,raw:n,pre:o[1]==="pre"||o[1]==="script"||o[1]==="style",text:n}}}def(t){let o=this.rules.block.def.exec(t);if(o){let n=o[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=o[2]?o[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=o[3]?o[3].substring(1,o[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):o[3];return{type:"def",tag:n,raw:F(o[0],`
|
|
850
|
+
`),href:r,title:a}}}table(t){let o=this.rules.block.table.exec(t);if(!o||!this.rules.other.tableDelimiter.test(o[2]))return;let n=rt(o[1]),r=o[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=o[3]?.trim()?o[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
851
|
+
`):[],i={type:"table",raw:F(o[0],`
|
|
852
|
+
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let s of r)this.rules.other.tableAlignRight.test(s)?i.align.push("right"):this.rules.other.tableAlignCenter.test(s)?i.align.push("center"):this.rules.other.tableAlignLeft.test(s)?i.align.push("left"):i.align.push(null);for(let s=0;s<n.length;s++)i.header.push({text:n[s],tokens:this.lexer.inline(n[s]),header:!0,align:i.align[s]});for(let s of a)i.rows.push(rt(s,i.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:i.align[c]})));return i}}lheading(t){let o=this.rules.block.lheading.exec(t);if(o){let n=o[1].trim();return{type:"heading",raw:F(o[0],`
|
|
853
|
+
`),depth:o[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(t){let o=this.rules.block.paragraph.exec(t);if(o){let n=o[1].charAt(o[1].length-1)===`
|
|
854
|
+
`?o[1].slice(0,-1):o[1];return{type:"paragraph",raw:o[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let o=this.rules.block.text.exec(t);if(o)return{type:"text",raw:o[0],text:o[0],tokens:this.lexer.inline(o[0])}}escape(t){let o=this.rules.inline.escape.exec(t);if(o)return{type:"escape",raw:o[0],text:o[1]}}tag(t){let o=this.rules.inline.tag.exec(t);if(o)return!this.lexer.state.inLink&&this.rules.other.startATag.test(o[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(t){let o=this.rules.inline.link.exec(t);if(o){let n=o[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=F(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=Oo(o[2],"()");if(i===-2)return;if(i>-1){let s=(o[0].indexOf("!")===0?5:4)+o[1].length+i;o[2]=o[2].substring(0,i),o[0]=o[0].substring(0,s).trim(),o[3]=""}}let r=o[2],a="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(r);i&&(r=i[1],a=i[3])}else a=o[3]?o[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),at(o,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},o[0],this.lexer,this.rules)}}reflink(t,o){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=o[r.toLowerCase()];if(!a){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return at(n,a,n[0],this.lexer,this.rules)}}emStrong(t,o,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let a=[...r[0]].length-1,i,s,l=a,c=0,d=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,o=o.slice(-1*t.length+a);(r=d.exec(o))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(s=[...i].length,r[3]||r[4]){l+=s;continue}else if((r[5]||r[6])&&a%3&&!((a+s)%3)){c+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l+c);let h=[...r[0]][0].length,p=t.slice(0,a+r.index+h+s);if(Math.min(a,s)%2){let w=p.slice(1,-1);return{type:"em",raw:p,text:w,tokens:this.lexer.inlineTokens(w)}}let u=p.slice(2,-2);return{type:"strong",raw:p,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(t){let o=this.rules.inline.code.exec(t);if(o){let n=o[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:o[0],text:n}}}br(t){let o=this.rules.inline.br.exec(t);if(o)return{type:"br",raw:o[0]}}del(t,o,n=""){let r=this.rules.inline.delLDelim.exec(t);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let a=[...r[0]].length-1,i,s,l=a,c=this.rules.inline.delRDelim;for(c.lastIndex=0,o=o.slice(-1*t.length+a);(r=c.exec(o))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(s=[...i].length,s!==a))continue;if(r[3]||r[4]){l+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l);let d=[...r[0]][0].length,h=t.slice(0,a+r.index+d+s),p=h.slice(a,-a);return{type:"del",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}}}autolink(t){let o=this.rules.inline.autolink.exec(t);if(o){let n,r;return o[2]==="@"?(n=o[1],r="mailto:"+n):(n=o[1],r=n),{type:"link",raw:o[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let o;if(o=this.rules.inline.url.exec(t)){let n,r;if(o[2]==="@")n=o[0],r="mailto:"+n;else{let a;do a=o[0],o[0]=this.rules.inline._backpedal.exec(o[0])?.[0]??"";while(a!==o[0]);n=o[0],o[1]==="www."?r="http://"+o[0]:r=o[0]}return{type:"link",raw:o[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let o=this.rules.inline.text.exec(t);if(o){let n=this.lexer.state.inRawBlock;return{type:"text",raw:o[0],text:o[0],escaped:n}}}},B=class it{static{m(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 ze,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:$e.normal,inline:le.normal};this.options.pedantic?(o.block=$e.pedantic,o.inline=le.pedantic):this.options.gfm&&(o.block=$e.gfm,this.options.breaks?o.inline=le.breaks:o.inline=le.gfm),this.tokenizer.rules=o}static get rules(){return{block:$e,inline:le}}static lex(t,o){return new it(o).lex(t)}static lexInline(t,o){return new it(o).inlineTokens(t)}lex(t){t=t.replace(C.carriageReturn,`
|
|
830
855
|
`),this.blockTokens(t,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let n=this.inlineQueue[o];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,o=[],n=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(C.tabCharGlobal," ").replace(C.spaceLine,""));t;){let r;if(this.options.extensions?.block?.some(i=>(r=i.call({lexer:this},t,o))?(t=t.substring(r.raw.length),o.push(r),!0):!1))continue;if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length);let i=o.at(-1);r.raw.length===1&&i!==void 0?i.raw+=`
|
|
831
856
|
`:o.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length);let i=o.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
832
857
|
`)?"":`
|
|
@@ -840,7 +865,7 @@ ${p}`:p;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
|
|
|
840
865
|
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):o.push(r),n=a.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length);let i=o.at(-1);i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
841
866
|
`)?"":`
|
|
842
867
|
`)+r.raw,i.text+=`
|
|
843
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):o.push(r);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=[]){this.tokenizer.lexer=this;let n=t,r=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))
|
|
868
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):o.push(r);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=[]){this.tokenizer.lexer=this;let n=t,r=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)l.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)a=r[2]?r[2].length:0,n=n.slice(0,r.index+a)+"["+"a".repeat(r[0].length-a-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let i=!1,s="";for(;t;){i||(s=""),i=!1;let l;if(this.options.extensions?.inline?.some(d=>(l=d.call({lexer:this},t,o))?(t=t.substring(l.raw.length),o.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let d=o.at(-1);l.type==="text"&&d?.type==="text"?(d.raw+=l.raw,d.text+=l.text):o.push(l);continue}if(l=this.tokenizer.emStrong(t,n,s)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.del(t,n,s)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),o.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),o.push(l);continue}let c=t;if(this.options.extensions?.startInline){let d=1/0,h=t.slice(1),p;this.options.extensions.startInline.forEach(u=>{p=u.call({lexer:this},h),typeof p=="number"&&p>=0&&(d=Math.min(d,p))}),d<1/0&&d>=0&&(c=t.substring(0,d+1))}if(l=this.tokenizer.inlineText(c)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(s=l.raw.slice(-1)),i=!0;let d=o.at(-1);d?.type==="text"?(d.raw+=l.raw,d.text+=l.text):o.push(l);continue}if(t){let d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return o}},Re=class{static{m(this,"B")}static{v(this,"y")}options;parser;constructor(t){this.options=t||Q}space(t){return""}code({text:t,lang:o,escaped:n}){let r=(o||"").match(C.notSpaceStart)?.[0],a=t.replace(C.endingNewline,"")+`
|
|
844
869
|
`;return r?'<pre><code class="language-'+z(r)+'">'+(n?a:z(a,!0))+`</code></pre>
|
|
845
870
|
`:"<pre><code>"+(n?a:z(a,!0))+`</code></pre>
|
|
846
871
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
@@ -858,15 +883,15 @@ ${this.parser.parse(t)}</blockquote>
|
|
|
858
883
|
`}tablerow({text:t}){return`<tr>
|
|
859
884
|
${t}</tr>
|
|
860
885
|
`}tablecell(t){let o=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+o+`</${n}>
|
|
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>${z(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:o,tokens:n}){let r=this.parser.parseInline(n),a=
|
|
862
|
-
Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+z(o.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(o);throw o}}},U=new
|
|
886
|
+
`}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>${z(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:o,tokens:n}){let r=this.parser.parseInline(n),a=ot(t);if(a===null)return r;t=a;let i='<a href="'+t+'"';return o&&(i+=' title="'+z(o)+'"'),i+=">"+r+"</a>",i}image({href:t,title:o,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let a=ot(t);if(a===null)return z(n);t=a;let i=`<img src="${t}" alt="${z(n)}"`;return o&&(i+=` title="${z(o)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:z(t.text)}},Tt=class{static{m(this,"M")}static{v(this,"L")}strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},L=class st{static{m(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 Tt}static parse(t,o){return new st(o).parse(t)}static parseInline(t,o){return new st(o).parseInline(t)}parse(t){this.renderer.parser=this;let o="";for(let n=0;n<t.length;n++){let r=t[n];if(this.options.extensions?.renderers?.[r.type]){let i=r,s=this.options.extensions.renderers[i.type].call({parser:this},i);if(s!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(i.type)){o+=s||"";continue}}let a=r;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){this.renderer.parser=this;let n="";for(let r=0;r<t.length;r++){let a=t[r];if(this.options.extensions?.renderers?.[a.type]){let s=this.options.extensions.renderers[a.type].call({parser:this},a);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=s||"";continue}}let i=a;switch(i.type){case"escape":{n+=o.text(i);break}case"html":{n+=o.html(i);break}case"link":{n+=o.link(i);break}case"image":{n+=o.image(i);break}case"checkbox":{n+=o.checkbox(i);break}case"strong":{n+=o.strong(i);break}case"em":{n+=o.em(i);break}case"codespan":{n+=o.codespan(i);break}case"br":{n+=o.br(i);break}case"del":{n+=o.del(i);break}case"text":{n+=o.text(i);break}default:{let s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}},pe=class{static{m(this,"A")}static{v(this,"P")}options;block;constructor(t){this.options=t||Q}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?B.lex:B.lexInline}provideParser(t=this.block){return t?L.parse:L.parseInline}},Ii=class{static{m(this,"xe")}static{v(this,"D")}defaults=qe();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=L;Renderer=Re;TextRenderer=Tt;Lexer=B;Tokenizer=ze;Hooks=pe;constructor(...e){this.use(...e)}walkTokens(e,t){let o=[];for(let n of e)switch(o=o.concat(t.call(this,n)),n.type){case"table":{let r=n;for(let a of r.header)o=o.concat(this.walkTokens(a.tokens,t));for(let a of r.rows)for(let i of a)o=o.concat(this.walkTokens(i.tokens,t));break}case"list":{let r=n;o=o.concat(this.walkTokens(r.items,t));break}default:{let r=n;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(a=>{let i=r[a].flat(1/0);o=o.concat(this.walkTokens(i,t))}):r.tokens&&(o=o.concat(this.walkTokens(r.tokens,t)))}}return o}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(o=>{let n={...o};if(n.async=this.defaults.async||n.async||!1,o.extensions&&(o.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let a=t.renderers[r.name];a?t.renderers[r.name]=function(...i){let s=r.renderer.apply(this,i);return s===!1&&(s=a.apply(this,i)),s}:t.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[r.level];a?a.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),n.extensions=t),o.renderer){let r=this.defaults.renderer||new Re(this.defaults);for(let a in o.renderer){if(!(a in r))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,s=o.renderer[i],l=r[i];r[i]=(...c)=>{let d=s.apply(r,c);return d===!1&&(d=l.apply(r,c)),d||""}}n.renderer=r}if(o.tokenizer){let r=this.defaults.tokenizer||new ze(this.defaults);for(let a in o.tokenizer){if(!(a in r))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,s=o.tokenizer[i],l=r[i];r[i]=(...c)=>{let d=s.apply(r,c);return d===!1&&(d=l.apply(r,c)),d}}n.tokenizer=r}if(o.hooks){let r=this.defaults.hooks||new pe;for(let a in o.hooks){if(!(a in r))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,s=o.hooks[i],l=r[i];pe.passThroughHooks.has(a)?r[i]=c=>{if(this.defaults.async&&pe.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await s.call(r,c);return l.call(r,h)})();let d=s.call(r,c);return l.call(r,d)}:r[i]=(...c)=>{if(this.defaults.async)return(async()=>{let h=await s.apply(r,c);return h===!1&&(h=await l.apply(r,c)),h})();let d=s.apply(r,c);return d===!1&&(d=l.apply(r,c)),d}}n.hooks=r}if(o.walkTokens){let r=this.defaults.walkTokens,a=o.walkTokens;n.walkTokens=function(i){let s=[];return s.push(a.call(this,i)),r&&(s=s.concat(r.call(this,i))),s}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return B.lex(e,t??this.defaults)}parser(e,t){return L.parse(e,t??this.defaults)}parseMarkdown(e){return(t,o)=>{let n={...o},r={...this.defaults,...n},a=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&n.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(r.hooks&&(r.hooks.options=r,r.hooks.block=e),r.async)return(async()=>{let i=r.hooks?await r.hooks.preprocess(t):t,s=await(r.hooks?await r.hooks.provideLexer(e):e?B.lex:B.lexInline)(i,r),l=r.hooks?await r.hooks.processAllTokens(s):s;r.walkTokens&&await Promise.all(this.walkTokens(l,r.walkTokens));let c=await(r.hooks?await r.hooks.provideParser(e):e?L.parse:L.parseInline)(l,r);return r.hooks?await r.hooks.postprocess(c):c})().catch(a);try{r.hooks&&(t=r.hooks.preprocess(t));let i=(r.hooks?r.hooks.provideLexer(e):e?B.lex:B.lexInline)(t,r);r.hooks&&(i=r.hooks.processAllTokens(i)),r.walkTokens&&this.walkTokens(i,r.walkTokens);let s=(r.hooks?r.hooks.provideParser(e):e?L.parse:L.parseInline)(i,r);return r.hooks&&(s=r.hooks.postprocess(s)),s}catch(i){return a(i)}}}onError(e,t){return o=>{if(o.message+=`
|
|
887
|
+
Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+z(o.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(o);throw o}}},U=new Ii;function x(e,t){return U.parse(e,t)}m(x,"d");v(x,"g");x.options=x.setOptions=function(e){return U.setOptions(e),x.defaults=U.defaults,vt(x.defaults),x};x.getDefaults=qe;x.defaults=Q;x.use=function(...e){return U.use(...e),x.defaults=U.defaults,vt(x.defaults),x};x.walkTokens=function(e,t){return U.walkTokens(e,t)};x.parseInline=U.parseInline;x.Parser=L;x.parser=L.parse;x.Renderer=Re;x.TextRenderer=Tt;x.Lexer=B;x.lexer=B.lex;x.Tokenizer=ze;x.Hooks=pe;x.parse=x;var Yt=x,zi=Object.defineProperty,Ri=m((e,t)=>zi(e,"name",{value:t,configurable:!0}),"l$2");const Bi=Ri(async(e,t=[])=>{let o;t.push(to,oo);const n=eo(e,{frameLimit:1})[0];for(const r of t.toSorted((a,i)=>i.priority-a.priority)){if(o)break;const{handle:a,name:i}=r;if(process.env.DEBUG&&console.debug(`Running solution finder: ${i}`),typeof a=="function")try{o=await a(e,{file:n?.file??"",language:we(n?.file??""),line:n?.line??0,snippet:n?.file?await be(n.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
888
|
<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
|
-
<span id="ono-solution-icon" class="dui" style="-webkit-mask-image: url('${
|
|
889
|
+
<span id="ono-solution-icon" class="dui" style="-webkit-mask-image: url('${Ke}'); mask-image: url('${Ke}')"></span>
|
|
865
890
|
</button>
|
|
866
891
|
<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
892
|
<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 r=await
|
|
869
|
-
${await(async()=>{const r=await
|
|
893
|
+
${await(async()=>{if(!o.header)return"<h2 class='text-[var(--ono-on-accent)]'>A possible solution to this error</h2>";const r=await Yt(o.header);return Qe(r)})()}
|
|
894
|
+
${await(async()=>{const r=await Yt(o.body);return Qe(r)})()}
|
|
870
895
|
</div>
|
|
871
896
|
</div>
|
|
872
897
|
</div>`,script:`(window.subscribeToDOMContentLoaded || function (fn) {
|
|
@@ -890,7 +915,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error
|
|
|
890
915
|
|
|
891
916
|
// Icon management
|
|
892
917
|
const setIcon = (isOpen) => {
|
|
893
|
-
const iconUrl = isOpen ? '${
|
|
918
|
+
const iconUrl = isOpen ? '${Ke}' : '${et}';
|
|
894
919
|
icon.style.webkitMaskImage = \`url(\${iconUrl})\`;
|
|
895
920
|
icon.style.maskImage = \`url(\${iconUrl})\`;
|
|
896
921
|
};
|
|
@@ -972,14 +997,14 @@ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error
|
|
|
972
997
|
// Add event listeners
|
|
973
998
|
button.addEventListener('click', handleClick);
|
|
974
999
|
button.addEventListener('keydown', handleKeydown);
|
|
975
|
-
});`}:{html:"",script:""}},"solutions");var
|
|
1000
|
+
});`}:{html:"",script:""}},"solutions");var Li=Object.defineProperty,ji=m((e,t)=>Li(e,"name",{value:t,configurable:!0}),"n");const Fi=ji(async e=>{const t=S(e.name),o=S(e.message),n=E(`${e.name}: ${e.message}`),r=lt(e,{frameLimit:1})[0],a=r?.file??"",i=r?.line??0,s=a?await be(a):"",l=s?ct(s,{start:{column:r?.column,line:i}},{linesAbove:9,linesBelow:10,showGutter:!0}):"",c=ro({applicationType:void 0,error:e,file:{file:a,language:we(a),line:i,snippet:l}}),d=So(),h=Do({label:"Copy error title",secondaryLabel:"Copy fix prompt",secondaryText:c,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
1001
|
<input type="hidden" id="clipboard-sticky-error-title" value="${n}">
|
|
977
1002
|
<div class="flex items-center gap-2">
|
|
978
1003
|
<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
1004
|
<span class="text-md font-semibold line-clamp-1 text-[var(--ono-text)]" aria-label="Error message">${o}</span>
|
|
980
1005
|
<div class="grow"></div>
|
|
981
1006
|
${d.html}
|
|
982
|
-
${
|
|
1007
|
+
${h.html}
|
|
983
1008
|
</div>
|
|
984
1009
|
</div>`,script:`${d.script}(function() {
|
|
985
1010
|
ready(function () {
|
|
@@ -1020,8 +1045,8 @@ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error
|
|
|
1020
1045
|
}
|
|
1021
1046
|
} catch (_) {}
|
|
1022
1047
|
});
|
|
1023
|
-
})();`}},"stickyHeader");var
|
|
1024
|
-
<input type="hidden" id="clipboard-error-title" value="${
|
|
1048
|
+
})();`}},"stickyHeader");var Mi=Object.defineProperty,_i=m((e,t)=>Mi(e,"name",{value:t,configurable:!0}),"l$1");const Oi=_i(async({error:e,runtimeName:t,solutionFinders:o,version:n})=>{let r=`${t?.toUpperCase()??""} ${n??""}`;r.includes("NODE")&&(r=`<a href="https://nodejs.org/dist/latest-${n?.split(".")[0]??""}.x/docs/api/" class="text-blue-500 hover:underline inline-flex items-center text-sm" target="_blank" rel="noopener noreferrer">${r.replace("NODE","Node.js")}<span class="dui ml-1" style="-webkit-mask-image: url('${Vt}'); mask-image: url('${Vt}')" title="Open Node.js documentation"></span></a>`);const{html:a,script:i}=await Bi(e,o),{html:s,script:l}=await Fi(e),c=S(e.name),d=S(e.message),h=E(`${e.name}: ${e.message}`),p=lt(e,{frameLimit:1})[0],u=p?.file??"",w=p?.line??0,g=u?await be(u):"",f=g?ct(g,{start:{column:p?.column,line:w}},{linesAbove:9,linesBelow:10,showGutter:!0}):"",y=ro({applicationType:void 0,error:e,file:{file:u,language:we(u),line:w,snippet:f}}),D=Do({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)]">
|
|
1049
|
+
<input type="hidden" id="clipboard-error-title" value="${h}">
|
|
1025
1050
|
<div class="flex flex-row">
|
|
1026
1051
|
<div class="flex flex-col gap-3 grow min-w-6/12 w-full p-6 pt-5">
|
|
1027
1052
|
<div class="flex flex-row items-center gap-2">
|
|
@@ -1041,14 +1066,14 @@ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error
|
|
|
1041
1066
|
${a}
|
|
1042
1067
|
</div>
|
|
1043
1068
|
</section>
|
|
1044
|
-
${s}`,scripts:[i,l]}},"errorCard");var
|
|
1069
|
+
${s}`,scripts:[i,l]}},"errorCard");var Pi=Object.defineProperty,Ni=m((e,t)=>Pi(e,"name",{value:t,configurable:!0}),"o");const qi=Ni(e=>{const t=Ao({message:"The orginal stack trace from the main error."}),o=S(e);return`<section>
|
|
1045
1070
|
<h3 class="text-xl font-bold inline-flex justify-center items-center text-[var(--ono-text)]">Stack Trace</h3>
|
|
1046
1071
|
${t}
|
|
1047
1072
|
<div class="container rounded-[var(--ono-radius-lg)] shadow-[var(--ono-elevation-1)] my-6 bg-[var(--ono-surface)]">
|
|
1048
1073
|
<main id="raw-stack-trace" class="p-6 prose prose-sm max-w-full text-[var(--ono-text)]">${o}</main>
|
|
1049
1074
|
</div>
|
|
1050
|
-
</section>`},"rawStackTrace");var
|
|
1051
|
-
`),"buildScriptContent"),
|
|
1075
|
+
</section>`},"rawStackTrace");var Wi=Object.defineProperty,ke=m((e,t)=>Wi(e,"name",{value:t,configurable:!0}),"s");const Hi=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"),Ui=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(Hi(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"),Gi=ke((e,t,o,n)=>['<div class="flex flex-col gap-6">',e,t,o,n,"</div>"].join(""),"buildHtmlContent"),Zi=ke((e,t,o)=>[e,t,...o].filter(Boolean).join(`
|
|
1076
|
+
`),"buildScriptContent"),Vi=ke(async(e,t=[],o={})=>{if(!Array.isArray(t))throw new TypeError("solutionFinders must be an array");const n=Ko(e),r=Ui(n),a=n.length>1?n.slice(1):[],[i,s,l]=await Promise.all([Oi({error:r,runtimeName:Ca,solutionFinders:t,version:rr()}),To(r,{openInEditorUrl:o.openInEditorUrl}),qa(a,o)]),{html:c,scripts:d}=i,{html:h,script:p}=s,{html:u,script:w}=l,g=Gi(c,h,u,qi(r.stack)),f=Zi(p,w,d);return{code:{html:g,script:f},defaultSelected:!0,id:"stack",name:"Stack"}},"stack");var Ki=Object.defineProperty,Qi=m((e,t)=>Ki(e,"name",{value:t,configurable:!0}),"f");const Xi=`
|
|
1052
1077
|
// DOM utility functions
|
|
1053
1078
|
function ready(fn) {
|
|
1054
1079
|
if (document.readyState !== 'loading') fn();
|
|
@@ -1078,12 +1103,14 @@ function removeClass(el, className) {
|
|
|
1078
1103
|
function toggleClass(el, className) {
|
|
1079
1104
|
el.classList.toggle(className);
|
|
1080
1105
|
}
|
|
1081
|
-
`,
|
|
1106
|
+
`,Yi=`
|
|
1082
1107
|
// Enhanced clipboard and dropdown functionality
|
|
1083
1108
|
|
|
1084
1109
|
// Clipboard functionality
|
|
1085
1110
|
function copyToClipboard(text, successCallback) {
|
|
1086
|
-
if (!text)
|
|
1111
|
+
if (!text) {
|
|
1112
|
+
return;
|
|
1113
|
+
}
|
|
1087
1114
|
|
|
1088
1115
|
navigator.clipboard.writeText(text).then(function() {
|
|
1089
1116
|
if (successCallback) successCallback();
|
|
@@ -1225,7 +1252,7 @@ ready(function() {
|
|
|
1225
1252
|
console.log('Copy dropdown: Script initialized and ready');
|
|
1226
1253
|
// Dropdown and clipboard initialization complete
|
|
1227
1254
|
});
|
|
1228
|
-
`,
|
|
1255
|
+
`,Ji=`
|
|
1229
1256
|
// Shortcuts modal functionality
|
|
1230
1257
|
|
|
1231
1258
|
// Make modal functions globally available immediately
|
|
@@ -1283,10 +1310,12 @@ document.addEventListener('click', function(e) {
|
|
|
1283
1310
|
ready(function() {
|
|
1284
1311
|
// Shortcuts modal initialization complete
|
|
1285
1312
|
});
|
|
1286
|
-
`,
|
|
1313
|
+
`,es=`
|
|
1287
1314
|
// Clipboard functionality for copy buttons
|
|
1288
1315
|
function copyToClipboard(text, successCallback) {
|
|
1289
|
-
if (!text)
|
|
1316
|
+
if (!text) {
|
|
1317
|
+
return;
|
|
1318
|
+
}
|
|
1290
1319
|
|
|
1291
1320
|
navigator.clipboard.writeText(text).then(function() {
|
|
1292
1321
|
if (successCallback) successCallback();
|
|
@@ -1323,4 +1352,4 @@ document.addEventListener('click', function(e) {
|
|
|
1323
1352
|
}
|
|
1324
1353
|
}
|
|
1325
1354
|
});
|
|
1326
|
-
`,
|
|
1355
|
+
`,ts=Qi(async(e,t=[],o={})=>{if(!Array.isArray(t))throw new TypeError("solutionFinders must be an array");const n=tr(o),{code:{html:r,script:a},id:i,name:s}=await Vi(e,t,n),l=Array.isArray(n.content)?n.content:[],c=l.some(g=>g.defaultSelected),d=[{id:i,name:s,selected:!c}];l.forEach(g=>{d.push({id:g.id,name:g.name,selected:!!g.defaultSelected})});const h=ma(d),p=la(n),u=['<div class="flex flex-row gap-6 w-full mb-6">',h.html,p.html,"</div>"],w=E(i);return u.push(`<div id="ono-section-${w}" class="${c?"hidden relative":"relative"}" role="tabpanel" aria-labelledby="ono-tab-${w}">${r}</div>`),l.forEach(g=>{const f=E(g.id),y=g.defaultSelected?"":" hidden";u.push(`<div id="ono-section-${f}" class="${y} relative" role="tabpanel" aria-labelledby="ono-tab-${f}">${g.code.html}</div>`)}),xa({content:u.join("").trim(),cspNonce:o.cspNonce,css:fa,description:"Error",error:e,scripts:[Xi,Yi,Ji,es,h.script,p.script,a,...l.map(g=>g.code.script??"")].filter(Boolean),theme:o.theme,title:"Error"})},"template");var os=Object.defineProperty,qo=m((e,t)=>os(e,"name",{value:t,configurable:!0}),"e");const Jt=qo(e=>e instanceof Error?e:new Error(String(e)),"ensureError");class fs{static{m(this,"Ono")}static{qo(this,"Ono")}async toHTML(t,o){const n=Jt(t),{solutionFinders:r=[],...a}=o??{};return await ts(n,r,a)}async toANSI(t,o={}){const n=Jt(t);return Eo(n,o)}}export{fs as Ono};
|