@anvia/studio 0.7.14 → 0.7.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/index.d.ts +13 -1
  2. package/dist/index.js +43 -7
  3. package/dist/index.js.map +1 -1
  4. package/dist/ui/assets/agents-page-nyn87qWN.js +2 -0
  5. package/dist/ui/assets/agents-page-nyn87qWN.js.map +1 -0
  6. package/dist/ui/assets/anvia.png +0 -0
  7. package/dist/ui/assets/evals-page-CGlZpEpK.js +2 -0
  8. package/dist/ui/assets/{evals-page-w-gdHmQ3.js.map → evals-page-CGlZpEpK.js.map} +1 -1
  9. package/dist/ui/assets/index-DMVhlBNM.js +55 -0
  10. package/dist/ui/assets/index-DMVhlBNM.js.map +1 -0
  11. package/dist/ui/assets/index-Dl647xDC.css +1 -0
  12. package/dist/ui/assets/knowledge-page-DFqZ3jWS.js +2 -0
  13. package/dist/ui/assets/knowledge-page-DFqZ3jWS.js.map +1 -0
  14. package/dist/ui/assets/logo.png +0 -0
  15. package/dist/ui/assets/mcps-page-BcygvPZJ.js +2 -0
  16. package/dist/ui/assets/mcps-page-BcygvPZJ.js.map +1 -0
  17. package/dist/ui/assets/memory-page-B3TXiZ88.js +2 -0
  18. package/dist/ui/assets/memory-page-B3TXiZ88.js.map +1 -0
  19. package/dist/ui/assets/pipelines-page-Cae5pcGt.js +8 -0
  20. package/dist/ui/assets/pipelines-page-Cae5pcGt.js.map +1 -0
  21. package/dist/ui/assets/{renderers-CIC1VVRv.js → renderers-m-gqGocU.js} +2 -2
  22. package/dist/ui/assets/{renderers-CIC1VVRv.js.map → renderers-m-gqGocU.js.map} +1 -1
  23. package/dist/ui/assets/sessions-page-DvFpN7Rn.js +2 -0
  24. package/dist/ui/assets/{sessions-page-CmDz8RxM.js.map → sessions-page-DvFpN7Rn.js.map} +1 -1
  25. package/dist/ui/assets/status-page-DNc8fCjw.js +2 -0
  26. package/dist/ui/assets/status-page-DNc8fCjw.js.map +1 -0
  27. package/dist/ui/assets/tool-runner-5wyqco4y.js +2 -0
  28. package/dist/ui/assets/tool-runner-5wyqco4y.js.map +1 -0
  29. package/dist/ui/assets/tools-page-DLc0kRBh.js +2 -0
  30. package/dist/ui/assets/tools-page-DLc0kRBh.js.map +1 -0
  31. package/dist/ui/assets/trace-browser-DiaDaAtl.js +10 -0
  32. package/dist/ui/assets/trace-browser-DiaDaAtl.js.map +1 -0
  33. package/dist/ui/assets/transcript-item-C8rSd3WK.js +3 -0
  34. package/dist/ui/assets/transcript-item-C8rSd3WK.js.map +1 -0
  35. package/dist/ui/index.html +12 -7
  36. package/package.json +11 -11
  37. package/dist/ui/assets/agents-page-B8Tw2e11.js +0 -2
  38. package/dist/ui/assets/agents-page-B8Tw2e11.js.map +0 -1
  39. package/dist/ui/assets/evals-page-w-gdHmQ3.js +0 -2
  40. package/dist/ui/assets/index-BImv2lI7.js +0 -154
  41. package/dist/ui/assets/index-BImv2lI7.js.map +0 -1
  42. package/dist/ui/assets/index-C3lio5tU.css +0 -1
  43. package/dist/ui/assets/knowledge-page-Diqg4sSt.js +0 -2
  44. package/dist/ui/assets/knowledge-page-Diqg4sSt.js.map +0 -1
  45. package/dist/ui/assets/mcps-page-XTpTg88A.js +0 -2
  46. package/dist/ui/assets/mcps-page-XTpTg88A.js.map +0 -1
  47. package/dist/ui/assets/memory-page-DXesSt0M.js +0 -2
  48. package/dist/ui/assets/memory-page-DXesSt0M.js.map +0 -1
  49. package/dist/ui/assets/pipelines-page-Bk0Qm7db.js +0 -8
  50. package/dist/ui/assets/pipelines-page-Bk0Qm7db.js.map +0 -1
  51. package/dist/ui/assets/sessions-page-CmDz8RxM.js +0 -2
  52. package/dist/ui/assets/status-page-oWsYfXZZ.js +0 -2
  53. package/dist/ui/assets/status-page-oWsYfXZZ.js.map +0 -1
  54. package/dist/ui/assets/tools-page-C-ht7C6S.js +0 -2
  55. package/dist/ui/assets/tools-page-C-ht7C6S.js.map +0 -1
  56. package/dist/ui/assets/trace-browser-DaE4vnXd.js +0 -10
  57. package/dist/ui/assets/trace-browser-DaE4vnXd.js.map +0 -1
  58. package/dist/ui/assets/transcript-item-BqGgawoe.js +0 -3
  59. package/dist/ui/assets/transcript-item-BqGgawoe.js.map +0 -1
@@ -26,5 +26,5 @@ import{a as e,i as t,o as n,r,s as i,t as a}from"./utils-BN2yP0LH.js";import{d a
26
26
  `))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
27
27
  `,...a.current()});return/^[\t ]/.test(l)&&(l=ss(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}ps.peek=ms;function ps(e){return e.value||``}function ms(){return`<`}hs.peek=gs;function hs(e,t,n,r){let i=is(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function gs(){return`!`}_s.peek=vs;function _s(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function vs(){return`!`}ys.peek=bs;function ys(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function bs(){return"`"}function xs(e,t){let n=st(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ss.peek=Cs;function Ss(e,t,n,r){let i=is(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(xs(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function Cs(e,t,n){return xs(e,n)?`<`:`[`}ws.peek=Ts;function ws(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Ts(){return`[`}function Es(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Ds(e){let t=Es(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Os(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ks(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function As(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?Os(n):Es(n),s=e.ordered?o===`.`?`)`:`.`:Ds(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),ks(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function js(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Ms(e,t,n,r){let i=js(n),a=n.bulletCurrent||Es(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function Ns(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var Ps=Hi([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function Fs(e,t,n,r){return(e.children.some(function(e){return Ps(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Is(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ls.peek=Rs;function Ls(e,t,n,r){let i=Is(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=cs(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=ss(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=cs(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+ss(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Rs(e,t,n){return n.options.strong||`*`}function zs(e,t,n,r){return n.safe(e.value,r)}function Bs(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Vs(e,t,n){let r=(ks(n)+(n.options.ruleSpaces?` `:``)).repeat(Bs(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Hs={blockquote:Jo,break:Qo,code:ns,definition:as,emphasis:ls,hardBreak:Qo,heading:fs,html:ps,image:hs,imageReference:_s,inlineCode:ys,link:Ss,linkReference:ws,list:As,listItem:Ms,paragraph:Ns,root:Fs,strong:Ls,text:zs,thematicBreak:Vs};function Us(){return{enter:{table:Ws,tableData:Js,tableHeader:Js,tableRow:Ks},exit:{codeText:Ys,table:Gs,tableData:qs,tableHeader:qs,tableRow:qs}}}function Ws(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function Gs(e){this.exit(e),this.data.inTable=void 0}function Ks(e){this.enter({type:`tableRow`,children:[]},e)}function qs(e){this.exit(e)}function Js(e){this.enter({type:`tableCell`,children:[]},e)}function Ys(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Xs));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Xs(e,t){return t===`|`?t:e}function Zs(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
28
28
  `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
29
- `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return Go(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=Hs.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function Qs(){return{exit:{taskListCheckValueChecked:ec,taskListCheckValueUnchecked:ec,paragraph:tc}}}function $s(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:nc}}}function ec(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function tc(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function nc(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=Hs.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function rc(){return[co(),No(),Ro(),Us(),Qs()]}function ic(e){return{extensions:[lo(),Po(e),zo(),Zs(e),$s()]}}var ac={tokenize:gc,partial:!0},oc={tokenize:_c,partial:!0},sc={tokenize:vc,partial:!0},cc={tokenize:yc,partial:!0},lc={tokenize:bc,partial:!0},uc={name:`wwwAutolink`,tokenize:mc,previous:xc},dc={name:`protocolAutolink`,tokenize:hc,previous:Sc},X={name:`emailAutolink`,tokenize:pc,previous:Cc},Z={};function fc(){return{text:Z}}for(var Q=48;Q<123;)Z[Q]=X,Q++,Q===58?Q=65:Q===91&&(Q=97);Z[43]=X,Z[45]=X,Z[46]=X,Z[95]=X,Z[72]=[X,dc],Z[104]=[X,dc],Z[87]=[X,uc],Z[119]=[X,uc];function pc(e,t,n){let r=this,i,a;return o;function o(t){return!wc(t)||!Cc.call(r,r.previous)||Tc(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return wc(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(lc,u,l)(t):t===45||t===95||z(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&R(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function mc(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!xc.call(r,r.previous)||Tc(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(ac,e.attempt(oc,e.attempt(sc,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function hc(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Sc.call(r,r.previous)&&!Tc(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(R(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||yt(t)||V(t)||U(t)||Ct(t)?n(t):e.attempt(oc,e.attempt(sc,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function gc(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function _c(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(cc,c,s)(t):t===null||V(t)||U(t)||t!==45&&Ct(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function vc(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(cc,t,a)(o):o===null||V(o)||U(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function yc(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||V(o)||U(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||V(e)||U(e)?t(e):r(e)}function a(e){return R(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):R(t)?(e.consume(t),o):n(t)}}function bc(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return z(e)?n(e):t(e)}}function xc(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||V(e)}function Sc(e){return!R(e)}function Cc(e){return!(e===47||wc(e))}function wc(e){return e===43||e===45||e===46||e===95||z(e)}function Tc(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Ec={tokenize:Pc,partial:!0};function Dc(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:jc,continuation:{tokenize:Mc},exit:Nc}},text:{91:{name:`gfmFootnoteCall`,tokenize:Ac},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Oc,resolveTo:kc}}}}function Oc(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=L(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function kc(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Ac(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||V(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(L(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return V(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function jc(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||V(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=L(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return V(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),G(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Mc(e,t,n){return e.check(zt,t,e.attempt(Ec,t,n))}function Nc(e){e.exit(`gfmFootnoteDefinition`)}function Pc(e,t,n){let r=this;return G(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Fc(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&F(o,o.length,0,Mt(s,e.slice(r+1,n),t)),F(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),F(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=jt(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=jt(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Ic=class{constructor(){this.map=[]}add(e,t,n){Lc(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function Lc(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Rc(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function zc(){return{flow:{null:{name:`table`,tokenize:Bc,resolveAll:Vc}}}}function Bc(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):B(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):H(t)?G(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||V(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,H(t)?G(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return H(t)?G(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||B(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return H(t)?G(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||B(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||B(n)?(e.exit(`tableRow`),t(n)):H(n)?G(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||V(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Vc(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Ic;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(Uc(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Hc(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=Hc(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=Hc(f,t,o,i,n,d)):(o[0]=o[1],d=Hc(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&Uc(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Rc(t.events,n))}return e}function Hc(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},$(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=$(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=$(t.events,n[2]),a=$(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},$(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Uc(e,t,n,r,i){let a=[],o=$(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function $(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Wc={name:`tasklistCheck`,tokenize:Kc};function Gc(){return{text:{91:Wc}}}function Kc(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return V(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return B(r)?t(r):H(r)?e.check({tokenize:qc},t,n)(r):n(r)}}function qc(e,t,n){return G(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Jc(e){return mt([fc(),Dc(),Fc(e),zc(),Gc()])}var Yc={};function Xc(e){let t=this,n=e||Yc,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Jc(n)),a.push(rc()),o.push(ic(n))}function Zc(e){return(0,Y.jsx)(`div`,{className:`prose prose-sm max-w-none text-current [overflow-wrap:anywhere] prose-headings:text-current prose-headings:font-semibold prose-p:text-current prose-p:leading-7 prose-a:text-current prose-a:decoration-muted-foreground prose-a:underline-offset-2 prose-strong:text-current prose-code:rounded-lg prose-code:border prose-code:border-border/80 prose-code:bg-muted/80 prose-code:px-1 prose-code:py-0.5 prose-code:text-sm prose-code:font-semibold prose-code:text-current prose-code:before:content-none prose-code:after:content-none prose-pre:overflow-auto prose-pre:rounded-lg prose-pre:border prose-pre:border-border/80 prose-pre:bg-card/90 prose-pre:text-current prose-blockquote:border-border prose-blockquote:text-muted-foreground prose-li:marker:text-muted-foreground prose-hr:border-border prose-table:m-0 prose-thead:border-0 prose-tr:border-0 prose-th:p-0 prose-td:p-0 dark:prose-invert dark:prose-headings:text-current dark:prose-p:text-current dark:prose-strong:text-current dark:prose-code:text-current dark:prose-pre:bg-card dark:prose-pre:text-current`,children:(0,Y.jsx)(Ya,{components:{table({children:e}){return(0,Y.jsx)(`div`,{className:`my-4 w-full min-w-0 overflow-hidden rounded-lg border border-border/80 bg-card/90 shadow-sm`,children:(0,Y.jsx)(`div`,{className:`min-w-0 overflow-x-auto`,children:(0,Y.jsx)(`table`,{className:`m-0 w-full min-w-full border-separate border-spacing-0 text-left text-sm`,children:e})})})},thead({children:e}){return(0,Y.jsx)(`thead`,{className:`bg-muted/45`,children:e})},tbody({children:e}){return(0,Y.jsx)(`tbody`,{children:e})},tr({children:e}){return(0,Y.jsx)(`tr`,{className:`group/row align-top`,children:e})},th({children:e}){return(0,Y.jsx)(`th`,{className:`border-b border-border px-4 text-xs font-semibold uppercase tracking-[0.2em] text-muted-foreground first:pl-5 last:pr-5`,style:{paddingBottom:`0.625rem`,paddingTop:`0.625rem`},children:e})},td({children:e}){return(0,Y.jsx)(`td`,{className:`border-b border-border/70 px-4 text-sm leading-6 text-foreground [overflow-wrap:anywhere] first:pl-5 last:pr-5 group-last/row:border-b-0`,style:{paddingBottom:`0.75rem`,paddingTop:`0.75rem`},children:e})}},remarkPlugins:[Xc],children:e.text})})}function Qc(e){let t=$c(e.value);return(0,Y.jsxs)(`section`,{className:`overflow-hidden rounded-lg border border-border/80 bg-background/70`,children:[(0,Y.jsx)(`div`,{className:`flex min-h-9 items-center gap-3 border-b border-border/80 bg-muted/20 px-3`,children:(0,Y.jsx)(`div`,{className:` text-xs font-semibold uppercase tracking-[0.18em] text-muted-foreground`,children:e.title})}),(0,Y.jsx)(`div`,{className:`min-w-0 overflow-x-auto`,children:(0,Y.jsx)(`pre`,{className:`m-0 min-w-max p-3 text-sm leading-6 text-foreground`,children:(0,Y.jsx)(`code`,{children:(0,Y.jsx)(el,{text:t})})})})]})}function $c(e){let t=o(e),n=t.kind===`json`?t.value:e;try{return JSON.stringify(n,null,2)}catch{return JSON.stringify(String(n),null,2)}}function el(e){let t=/"(?:\\.|[^"\\])*"|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?|\btrue\b|\bfalse\b|\bnull\b|[{}[\],:]/g,n=[],r=0,i=t.exec(e.text);for(;i!==null;){i.index>r&&n.push(e.text.slice(r,i.index));let a=i[0],o=e.text.slice(t.lastIndex).match(/\S/)?.[0],s=tl(a,o);n.push((0,Y.jsx)(`span`,{className:nl(s),children:a},`${i.index}:${a}`)),r=t.lastIndex,i=t.exec(e.text)}return r<e.text.length&&n.push(e.text.slice(r)),(0,Y.jsx)(Y.Fragment,{children:n})}function tl(e,t){return e.startsWith(`"`)?t===`:`?`key`:`string`:e===`true`||e===`false`?`boolean`:e===`null`?`null`:/^-?\d/.test(e)?`number`:`punctuation`}function nl(e){switch(e){case`key`:return`text-foreground`;case`string`:return`text-foreground dark:text-zinc-100`;case`number`:return`text-muted-foreground dark:text-muted-foreground`;case`boolean`:return`text-destructive dark:text-destructive`;case`null`:return`text-muted-foreground`;case`punctuation`:return`text-muted-foreground`}}function rl(e){if(Array.isArray(e.value))return e.value.length===0?(0,Y.jsx)(`span`,{className:`italic text-muted-foreground`,children:`Empty array`}):(0,Y.jsx)(`div`,{className:`grid gap-1.5`,children:Object.entries(e.value).map(([e,t])=>(0,Y.jsx)(il,{label:e,value:t},e))});if(s(e.value)){let t=Object.entries(e.value);return t.length===0?(0,Y.jsx)(`span`,{className:`italic text-muted-foreground`,children:`Empty object`}):(0,Y.jsx)(`div`,{className:`grid gap-1.5`,children:t.map(([e,t])=>(0,Y.jsx)(il,{label:e,value:t},e))})}return(0,Y.jsx)(al,{value:e.value})}function il(e){let t=Array.isArray(e.value)||s(e.value);return(0,Y.jsxs)(`div`,{className:a(`grid min-w-0 grid-cols-[minmax(92px,max-content)_minmax(0,1fr)] items-baseline gap-2.5`,t&&`items-start`),children:[(0,Y.jsx)(`div`,{className:`text-xs font-semibold text-muted-foreground [overflow-wrap:anywhere]`,children:e.label}),(0,Y.jsx)(`div`,{className:`min-w-0 text-sm leading-5 text-foreground [overflow-wrap:anywhere] [&_.grid]:mt-2 [&_.grid]:border-l [&_.grid]:border-border [&_.grid]:pl-3`,children:t?(0,Y.jsx)(rl,{value:e.value}):(0,Y.jsx)(al,{value:e.value})})]})}function al(e){return e.value===null?(0,Y.jsx)(`span`,{className:`italic text-muted-foreground`,children:`null`}):typeof e.value==`string`||typeof e.value==`number`?(0,Y.jsx)(`span`,{children:e.value}):(e.value,(0,Y.jsx)(`span`,{children:String(e.value)}))}export{Qc as i,rl as n,Zc as r,el as t};
30
- //# sourceMappingURL=renderers-CIC1VVRv.js.map
29
+ `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return Go(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=Hs.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function Qs(){return{exit:{taskListCheckValueChecked:ec,taskListCheckValueUnchecked:ec,paragraph:tc}}}function $s(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:nc}}}function ec(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function tc(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function nc(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=Hs.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function rc(){return[co(),No(),Ro(),Us(),Qs()]}function ic(e){return{extensions:[lo(),Po(e),zo(),Zs(e),$s()]}}var ac={tokenize:gc,partial:!0},oc={tokenize:_c,partial:!0},sc={tokenize:vc,partial:!0},cc={tokenize:yc,partial:!0},lc={tokenize:bc,partial:!0},uc={name:`wwwAutolink`,tokenize:mc,previous:xc},dc={name:`protocolAutolink`,tokenize:hc,previous:Sc},X={name:`emailAutolink`,tokenize:pc,previous:Cc},Z={};function fc(){return{text:Z}}for(var Q=48;Q<123;)Z[Q]=X,Q++,Q===58?Q=65:Q===91&&(Q=97);Z[43]=X,Z[45]=X,Z[46]=X,Z[95]=X,Z[72]=[X,dc],Z[104]=[X,dc],Z[87]=[X,uc],Z[119]=[X,uc];function pc(e,t,n){let r=this,i,a;return o;function o(t){return!wc(t)||!Cc.call(r,r.previous)||Tc(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return wc(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(lc,u,l)(t):t===45||t===95||z(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&R(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function mc(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!xc.call(r,r.previous)||Tc(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(ac,e.attempt(oc,e.attempt(sc,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function hc(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Sc.call(r,r.previous)&&!Tc(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(R(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||yt(t)||V(t)||U(t)||Ct(t)?n(t):e.attempt(oc,e.attempt(sc,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function gc(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function _c(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(cc,c,s)(t):t===null||V(t)||U(t)||t!==45&&Ct(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function vc(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(cc,t,a)(o):o===null||V(o)||U(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function yc(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||V(o)||U(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||V(e)||U(e)?t(e):r(e)}function a(e){return R(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):R(t)?(e.consume(t),o):n(t)}}function bc(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return z(e)?n(e):t(e)}}function xc(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||V(e)}function Sc(e){return!R(e)}function Cc(e){return!(e===47||wc(e))}function wc(e){return e===43||e===45||e===46||e===95||z(e)}function Tc(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Ec={tokenize:Pc,partial:!0};function Dc(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:jc,continuation:{tokenize:Mc},exit:Nc}},text:{91:{name:`gfmFootnoteCall`,tokenize:Ac},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Oc,resolveTo:kc}}}}function Oc(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=L(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function kc(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Ac(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||V(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(L(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return V(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function jc(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||V(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=L(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return V(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),G(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Mc(e,t,n){return e.check(zt,t,e.attempt(Ec,t,n))}function Nc(e){e.exit(`gfmFootnoteDefinition`)}function Pc(e,t,n){let r=this;return G(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Fc(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&F(o,o.length,0,Mt(s,e.slice(r+1,n),t)),F(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),F(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=jt(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=jt(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Ic=class{constructor(){this.map=[]}add(e,t,n){Lc(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function Lc(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Rc(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function zc(){return{flow:{null:{name:`table`,tokenize:Bc,resolveAll:Vc}}}}function Bc(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):B(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):H(t)?G(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||V(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,H(t)?G(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return H(t)?G(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||B(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return H(t)?G(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||B(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||B(n)?(e.exit(`tableRow`),t(n)):H(n)?G(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||V(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Vc(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Ic;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(Uc(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Hc(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=Hc(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=Hc(f,t,o,i,n,d)):(o[0]=o[1],d=Hc(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&Uc(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Rc(t.events,n))}return e}function Hc(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},$(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=$(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=$(t.events,n[2]),a=$(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},$(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Uc(e,t,n,r,i){let a=[],o=$(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function $(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Wc={name:`tasklistCheck`,tokenize:Kc};function Gc(){return{text:{91:Wc}}}function Kc(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return V(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return B(r)?t(r):H(r)?e.check({tokenize:qc},t,n)(r):n(r)}}function qc(e,t,n){return G(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Jc(e){return mt([fc(),Dc(),Fc(e),zc(),Gc()])}var Yc={};function Xc(e){let t=this,n=e||Yc,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Jc(n)),a.push(rc()),o.push(ic(n))}function Zc(e){return(0,Y.jsx)(`div`,{className:a(`prose max-w-none text-current [overflow-wrap:anywhere] prose-headings:text-current prose-headings:font-semibold prose-p:text-current prose-p:leading-7 prose-a:text-current prose-a:decoration-muted-foreground prose-a:underline-offset-2 prose-strong:text-current prose-code:rounded-lg prose-code:border prose-code:border-border/80 prose-code:bg-muted/80 prose-code:px-1 prose-code:py-0.5 prose-code:text-sm prose-code:font-semibold prose-code:text-current prose-code:before:content-none prose-code:after:content-none prose-pre:overflow-auto prose-pre:rounded-lg prose-pre:border prose-pre:border-border/80 prose-pre:bg-card/90 prose-pre:text-current prose-blockquote:border-border prose-blockquote:text-muted-foreground prose-li:marker:text-muted-foreground prose-hr:border-border prose-table:m-0 prose-thead:border-0 prose-tr:border-0 prose-th:p-0 prose-td:p-0 dark:prose-invert dark:prose-headings:text-current dark:prose-p:text-current dark:prose-strong:text-current dark:prose-code:text-current dark:prose-pre:bg-card dark:prose-pre:text-current`,e.size===`base`?`text-base`:`prose-sm`),children:(0,Y.jsx)(Ya,{components:{table({children:t}){return(0,Y.jsx)(`div`,{className:`my-4 w-full min-w-0 overflow-hidden rounded-lg border border-border/80 bg-card/90 shadow-sm`,children:(0,Y.jsx)(`div`,{className:`min-w-0 overflow-x-auto`,children:(0,Y.jsx)(`table`,{className:a(`m-0 w-full min-w-full border-separate border-spacing-0 text-left`,e.size===`base`?`text-base`:`text-sm`),children:t})})})},thead({children:e}){return(0,Y.jsx)(`thead`,{className:`bg-muted/45`,children:e})},tbody({children:e}){return(0,Y.jsx)(`tbody`,{children:e})},tr({children:e}){return(0,Y.jsx)(`tr`,{className:`group/row align-top`,children:e})},th({children:e}){return(0,Y.jsx)(`th`,{className:`border-b border-border px-4 text-xs font-semibold uppercase tracking-[0.2em] text-muted-foreground first:pl-5 last:pr-5`,style:{paddingBottom:`0.625rem`,paddingTop:`0.625rem`},children:e})},td({children:t}){return(0,Y.jsx)(`td`,{className:a(`border-b border-border/70 px-4 leading-6 text-foreground [overflow-wrap:anywhere] first:pl-5 last:pr-5 group-last/row:border-b-0`,e.size===`base`?`text-base`:`text-sm`),style:{paddingBottom:`0.75rem`,paddingTop:`0.75rem`},children:t})}},remarkPlugins:[Xc],children:e.text})})}function Qc(e){let t=$c(e.value);return(0,Y.jsxs)(`section`,{className:`overflow-hidden rounded-lg border border-border/80 bg-background/70`,children:[(0,Y.jsx)(`div`,{className:`flex min-h-9 items-center gap-3 border-b border-border/80 bg-muted/20 px-3`,children:(0,Y.jsx)(`div`,{className:` text-xs font-semibold uppercase tracking-[0.18em] text-muted-foreground`,children:e.title})}),(0,Y.jsx)(`div`,{className:`min-w-0 overflow-x-auto`,children:(0,Y.jsx)(`pre`,{className:`m-0 min-w-max p-3 text-sm leading-6 text-foreground`,children:(0,Y.jsx)(`code`,{children:(0,Y.jsx)(el,{text:t})})})})]})}function $c(e){let t=o(e),n=t.kind===`json`?t.value:e;try{return JSON.stringify(n,null,2)}catch{return JSON.stringify(String(n),null,2)}}function el(e){let t=/"(?:\\.|[^"\\])*"|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?|\btrue\b|\bfalse\b|\bnull\b|[{}[\],:]/g,n=[],r=0,i=t.exec(e.text);for(;i!==null;){i.index>r&&n.push(e.text.slice(r,i.index));let a=i[0],o=e.text.slice(t.lastIndex).match(/\S/)?.[0],s=tl(a,o);n.push((0,Y.jsx)(`span`,{className:nl(s),children:a},`${i.index}:${a}`)),r=t.lastIndex,i=t.exec(e.text)}return r<e.text.length&&n.push(e.text.slice(r)),(0,Y.jsx)(Y.Fragment,{children:n})}function tl(e,t){return e.startsWith(`"`)?t===`:`?`key`:`string`:e===`true`||e===`false`?`boolean`:e===`null`?`null`:/^-?\d/.test(e)?`number`:`punctuation`}function nl(e){switch(e){case`key`:return`text-foreground`;case`string`:return`text-foreground dark:text-zinc-100`;case`number`:return`text-muted-foreground dark:text-muted-foreground`;case`boolean`:return`text-destructive dark:text-destructive`;case`null`:return`text-muted-foreground`;case`punctuation`:return`text-muted-foreground`}}function rl(e){if(Array.isArray(e.value))return e.value.length===0?(0,Y.jsx)(`span`,{className:`italic text-muted-foreground`,children:`Empty array`}):(0,Y.jsx)(`div`,{className:`grid gap-1.5`,children:Object.entries(e.value).map(([e,t])=>(0,Y.jsx)(il,{label:e,value:t},e))});if(s(e.value)){let t=Object.entries(e.value);return t.length===0?(0,Y.jsx)(`span`,{className:`italic text-muted-foreground`,children:`Empty object`}):(0,Y.jsx)(`div`,{className:`grid gap-1.5`,children:t.map(([e,t])=>(0,Y.jsx)(il,{label:e,value:t},e))})}return(0,Y.jsx)(al,{value:e.value})}function il(e){let t=Array.isArray(e.value)||s(e.value);return(0,Y.jsxs)(`div`,{className:a(`grid min-w-0 grid-cols-[minmax(92px,max-content)_minmax(0,1fr)] items-baseline gap-2.5`,t&&`items-start`),children:[(0,Y.jsx)(`div`,{className:`text-xs font-semibold text-muted-foreground [overflow-wrap:anywhere]`,children:e.label}),(0,Y.jsx)(`div`,{className:`min-w-0 text-sm leading-5 text-foreground [overflow-wrap:anywhere] [&_.grid]:mt-2 [&_.grid]:border-l [&_.grid]:border-border [&_.grid]:pl-3`,children:t?(0,Y.jsx)(rl,{value:e.value}):(0,Y.jsx)(al,{value:e.value})})]})}function al(e){return e.value===null?(0,Y.jsx)(`span`,{className:`italic text-muted-foreground`,children:`null`}):typeof e.value==`string`||typeof e.value==`number`?(0,Y.jsx)(`span`,{children:e.value}):(e.value,(0,Y.jsx)(`span`,{children:String(e.value)}))}export{Qc as i,rl as n,Zc as r,el as t};
30
+ //# sourceMappingURL=renderers-m-gqGocU.js.map