@tencent-ai/codebuddy-code 2.70.1 → 2.71.0-next.db78c46.20260401

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.
@@ -42,4 +42,4 @@ function Vn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"d
42
42
  `))+1))}const l="#".repeat(i),u=n.enter("headingAtx"),a=n.enter("phrasing");o.move(l+" ");let s=n.containerPhrasing(e,{before:"# ",after:`
43
43
  `,...o.current()});return/^[\t ]/.test(s)&&(s=Xe(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,n.options.closeAtx&&(s+=" "+l),a(),u(),s}Qr.peek=Ns;function Qr(e){return e.value||""}function Ns(){return"<"}Gr.peek=Bs;function Gr(e,t,n,r){const i=ut(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let u=n.enter("label");const a=n.createTracker(r);let s=a.move("![");return s+=a.move(n.safe(e.alt,{before:s,after:"]",...a.current()})),s+=a.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(n.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=n.enter("destinationRaw"),s+=a.move(n.safe(e.url,{before:s,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=n.enter(`title${o}`),s+=a.move(" "+i),s+=a.move(n.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),s+=a.move(")"),l(),s}function Bs(){return"!"}Jr.peek=js;function Jr(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const u=n.createTracker(r);let a=u.move("![");const s=n.safe(e.alt,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:a,after:"]",...u.current()});return l(),n.stack=f,o(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function js(){return"!"}Kr.peek=$s;function Kr(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],u=n.compilePattern(l);let a;if(l.atBreak)for(;a=u.exec(r);){let s=a.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(a.index+1)}}return i+r+i}function $s(){return"`"}function Zr(e,t){const n=Kn(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))}ei.peek=Hs;function ei(e,t,n,r){const i=ut(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let u,a;if(Zr(e,n)){const f=n.stack;n.stack=[],u=n.enter("autolink");let c=l.move("<");return c+=l.move(n.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),u(),n.stack=f,c}u=n.enter("link"),a=n.enter("label");let s=l.move("[");return s+=l.move(n.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(n.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(a=n.enter("destinationRaw"),s+=l.move(n.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(n.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),a()),s+=l.move(")"),u(),s}function Hs(e,t,n){return Zr(e,n)?"<":"["}ni.peek=qs;function ni(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const u=n.createTracker(r);let a=u.move("[");const s=n.containerPhrasing(e,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:a,after:"]",...u.current()});return l(),n.stack=f,o(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function qs(){return"["}function at(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Us(e){const t=at(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Vs(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ti(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Ws(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?Vs(n):at(n);const u=e.ordered?l==="."?")":".":Us(n);let a=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.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&&(a=!0),ti(n)===l&&f){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(l=u),n.bulletCurrent=l;const s=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),s}function Ys(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Xs(e,t,n,r){const i=Ys(n);let o=n.bulletCurrent||at(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const u=n.createTracker(r);u.move(o+" ".repeat(l-o.length)),u.shift(l);const a=n.enter("listItem"),s=n.indentLines(n.containerFlow(e,u.current()),f);return a(),s;function f(c,h,p){return h?(p?"":" ".repeat(l))+c:(p?o:o+" ".repeat(l-o.length))+c}}function Qs(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}const Gs=pn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Js(e,t,n,r){return(e.children.some(function(l){return Gs(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Ks(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ri.peek=Zs;function ri(e,t,n,r){const i=Ks(n),o=n.enter("strong"),l=n.createTracker(r),u=l.move(i+i);let a=l.move(n.containerPhrasing(e,{after:i,before:u,...l.current()}));const s=a.charCodeAt(0),f=an(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(a=Xe(s)+a.slice(1));const c=a.charCodeAt(a.length-1),h=an(r.after.charCodeAt(0),c,i);h.inside&&(a=a.slice(0,-1)+Xe(c));const p=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},u+a+p}function Zs(e,t,n){return n.options.strong||"*"}function ec(e,t,n,r){return n.safe(e.value,r)}function nc(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function tc(e,t,n){const r=(ti(n)+(n.options.ruleSpaces?" ":"")).repeat(nc(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ii={blockquote:Is,break:ir,code:Ds,definition:zs,emphasis:Xr,hardBreak:ir,heading:Ms,html:Qr,image:Gr,imageReference:Jr,inlineCode:Kr,link:ei,linkReference:ni,list:Ws,listItem:Xs,paragraph:Qs,root:Js,strong:ri,text:ec,thematicBreak:tc};function rc(){return{enter:{table:ic,tableData:lr,tableHeader:lr,tableRow:oc},exit:{codeText:uc,table:lc,tableData:zn,tableHeader:zn,tableRow:zn}}}function ic(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function lc(e){this.exit(e),this.data.inTable=void 0}function oc(e){this.enter({type:"tableRow",children:[]},e)}function zn(e){this.exit(e)}function lr(e){this.enter({type:"tableCell",children:[]},e)}function uc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ac));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function ac(e,t){return t==="|"?t:e}function sc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
44
44
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:l,tableCell:a,tableRow:u}};function l(p,d,S,C){return s(f(p,S,C),p.align)}function u(p,d,S,C){const k=c(p,S,C),A=s([k]);return A.slice(0,A.indexOf(`
45
- `))}function a(p,d,S,C){const k=S.enter("tableCell"),A=S.enter("phrasing"),E=S.containerPhrasing(p,{...C,before:o,after:o});return A(),k(),E}function s(p,d){return Cs(p,{align:d,alignDelimiters:r,padding:n,stringLength:i})}function f(p,d,S){const C=p.children;let k=-1;const A=[],E=d.enter("table");for(;++k<C.length;)A[k]=c(C[k],d,S);return E(),A}function c(p,d,S){const C=p.children;let k=-1;const A=[],E=d.enter("tableRow");for(;++k<C.length;)A[k]=a(C[k],p,d,S);return E(),A}function h(p,d,S){let C=ii.inlineCode(p,d,S);return S.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function cc(){return{exit:{taskListCheckValueChecked:or,taskListCheckValueUnchecked:or,paragraph:pc}}}function fc(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:hc}}}function or(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function pc(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const u=i[o];if(u.type==="paragraph"){l=u;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function hc(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);o&&u.move(l);let a=ii.listItem(e,t,n,{...r,...u.current()});return o&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),a;function s(f){return f+l}}function mc(){return[Wa(),hs(),ys(),rc(),cc()]}function gc(e){return{extensions:[Ya(),ms(e),ks(),sc(e),fc()]}}const dc={tokenize:Sc,partial:!0},li={tokenize:Cc,partial:!0},oi={tokenize:Ec,partial:!0},ui={tokenize:Ic,partial:!0},yc={tokenize:vc,partial:!0},ai={name:"wwwAutolink",tokenize:bc,previous:ci},si={name:"protocolAutolink",tokenize:wc,previous:fi},Se={name:"emailAutolink",tokenize:xc,previous:pi},xe={};function kc(){return{text:xe}}let ve=48;for(;ve<123;)xe[ve]=Se,ve++,ve===58?ve=65:ve===91&&(ve=97);xe[43]=Se;xe[45]=Se;xe[46]=Se;xe[95]=Se;xe[72]=[Se,si];xe[104]=[Se,si];xe[87]=[Se,ai];xe[119]=[Se,ai];function xc(e,t,n){const r=this;let i,o;return l;function l(c){return!Un(c)||!pi.call(r,r.previous)||st(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(c))}function u(c){return Un(c)?(e.consume(c),u):c===64?(e.consume(c),a):n(c)}function a(c){return c===46?e.check(yc,f,s)(c):c===45||c===95||oe(c)?(o=!0,e.consume(c),a):f(c)}function s(c){return e.consume(c),i=!0,a}function f(c){return o&&i&&ae(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function bc(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!ci.call(r,r.previous)||st(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(dc,e.attempt(li,e.attempt(oi,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function wc(e,t,n){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&fi.call(r,r.previous)&&!st(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),u):n(c)}function u(c){if(ae(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),u;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),a}return n(c)}function a(c){return c===47?(e.consume(c),o?s:(o=!0,a)):n(c)}function s(c){return c===null||ln(c)||ee(c)||Ae(c)||sn(c)?n(c):e.attempt(li,e.attempt(oi,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function Sc(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function Cc(e,t,n){let r,i,o;return l;function l(s){return s===46||s===95?e.check(ui,a,u)(s):s===null||ee(s)||Ae(s)||s!==45&&sn(s)?a(s):(o=!0,e.consume(s),l)}function u(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function a(s){return i||r||!o?n(s):t(s)}}function Ec(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(ui,t,o)(l):l===null||ee(l)||Ae(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Ic(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),o):u===93?(e.consume(u),i):u===60||u===null||ee(u)||Ae(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||ee(u)||Ae(u)?t(u):r(u)}function o(u){return ae(u)?l(u):n(u)}function l(u){return u===59?(e.consume(u),r):ae(u)?(e.consume(u),l):n(u)}}function vc(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return oe(o)?n(o):t(o)}}function ci(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ee(e)}function fi(e){return!ae(e)}function pi(e){return!(e===47||Un(e))}function Un(e){return e===43||e===45||e===46||e===95||oe(e)}function st(e){let t=e.length,n=!1;for(;t--;){const 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}const Ac={tokenize:Fc,partial:!0};function Tc(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Lc,continuation:{tokenize:zc},exit:Rc}},text:{91:{name:"gfmFootnoteCall",tokenize:Dc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Pc,resolveTo:_c}}}}function Pc(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){l=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return u;function u(a){if(!l||!l._balanced)return n(a);const s=ye(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function _c(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";const 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++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function Dc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),a}function a(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(o>999||c===93&&!l||c===null||c===91||ee(c))return n(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(ye(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ee(c)||(l=!0),o++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function Lc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,u;return a;function a(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(d)}function f(d){if(l>999||d===93&&!u||d===null||d===91||ee(d))return n(d);if(d===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return o=ye(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return ee(d)||(u=!0),l++,e.consume(d),d===92?c:f}function c(d){return d===91||d===92||d===93?(e.consume(d),l++,f):f(d)}function h(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(o)||i.push(o),X(e,p,"gfmFootnoteDefinitionWhitespace")):n(d)}function p(d){return t(d)}}function zc(e,t,n){return e.check(Ge,t,e.attempt(Ac,t,n))}function Rc(e){e.exit("gfmFootnoteDefinition")}function Fc(e,t,n){const r=this;return X(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function Oc(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,u){let a=-1;for(;++a<l.length;)if(l[a][0]==="enter"&&l[a][1].type==="strikethroughSequenceTemporary"&&l[a][1]._close){let s=a;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[a][1].end.offset-l[a][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[a][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[a][1].end)},c={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[a][1].start)},h=[["enter",f,u],["enter",l[s][1],u],["exit",l[s][1],u],["enter",c,u]],p=u.parser.constructs.insideSpan.null;p&&he(h,h.length,0,cn(p,l.slice(s+1,a),u)),he(h,h.length,0,[["exit",c,u],["enter",l[a][1],u],["exit",l[a][1],u],["exit",f,u]]),he(l,s-1,a-s+3,h),a=s+h.length-2;break}}for(a=-1;++a<l.length;)l[a][1].type==="strikethroughSequenceTemporary"&&(l[a][1].type="data");return l}function o(l,u,a){const s=this.previous,f=this.events;let c=0;return h;function h(d){return s===126&&f[f.length-1][1].type!=="characterEscape"?a(d):(l.enter("strikethroughSequenceTemporary"),p(d))}function p(d){const S=Re(s);if(d===126)return c>1?a(d):(l.consume(d),c++,p);if(c<2&&!n)return a(d);const C=l.exit("strikethroughSequenceTemporary"),k=Re(d);return C._open=!k||k===2&&!!S,C._close=!S||S===2&&!!k,u(d)}}}class Mc{constructor(){this.map=[]}add(t,n,r){Nc(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function Nc(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 Bc(e,t){let n=!1;const r=[];for(;t<e.length;){const 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"){const o=r.length-1;r[o]=r[o]==="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 jc(){return{flow:{null:{name:"table",tokenize:$c,resolveAll:Hc}}}}function $c(e,t,n){const r=this;let i=0,o=0,l;return u;function u(x){let _=r.events.length-1;for(;_>-1;){const L=r.events[_][1].type;if(L==="lineEnding"||L==="linePrefix")_--;else break}const D=_>-1?r.events[_][1].type:null,Q=D==="tableHead"||D==="tableRow"?b:a;return Q===b&&r.parser.lazy[r.now().line]?n(x):Q(x)}function a(x){return e.enter("tableHead"),e.enter("tableRow"),s(x)}function s(x){return x===124||(l=!0,o+=1),f(x)}function f(x){return x===null?n(x):z(x)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):n(x):H(x)?X(e,f,"whitespace")(x):(o+=1,l&&(l=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(x)))}function c(x){return x===null||x===124||ee(x)?(e.exit("data"),f(x)):(e.consume(x),x===92?h:c)}function h(x){return x===92||x===124?(e.consume(x),c):c(x)}function p(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(x):(e.enter("tableDelimiterRow"),l=!1,H(x)?X(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):d(x))}function d(x){return x===45||x===58?C(x):x===124?(l=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),S):F(x)}function S(x){return H(x)?X(e,C,"whitespace")(x):C(x)}function C(x){return x===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),k):x===45?(o+=1,k(x)):x===null||z(x)?R(x):F(x)}function k(x){return x===45?(e.enter("tableDelimiterFiller"),A(x)):F(x)}function A(x){return x===45?(e.consume(x),A):x===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(x))}function E(x){return H(x)?X(e,R,"whitespace")(x):R(x)}function R(x){return x===124?d(x):x===null||z(x)?!l||i!==o?F(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):F(x)}function F(x){return n(x)}function b(x){return e.enter("tableRow"),N(x)}function N(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),N):x===null||z(x)?(e.exit("tableRow"),t(x)):H(x)?X(e,N,"whitespace")(x):(e.enter("data"),V(x))}function V(x){return x===null||x===124||ee(x)?(e.exit("data"),N(x)):(e.consume(x),x===92?W:V)}function W(x){return x===92||x===124?(e.consume(x),V):V(x)}}function Hc(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],u=!1,a=0,s,f,c;const h=new Mc;for(;++n<e.length;){const p=e[n],d=p[1];p[0]==="enter"?d.type==="tableHead"?(u=!1,a!==0&&(ur(h,t,a,s,f),f=void 0,a=0),s={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},h.add(n,0,[["enter",s,t]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,n+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},h.add(n,0,[["enter",f,t]])),i=d.type==="tableDelimiterRow"?2:f?3:1):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=tn(h,t,o,i,void 0,c),o=[0,0,0,0]),l[2]=n)):d.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=tn(h,t,o,i,void 0,c)),o=l,l=[o[1],n,0,0])):d.type==="tableHead"?(u=!0,a=n):d.type==="tableRow"||d.type==="tableDelimiterRow"?(a=n,o[1]!==0?(l[0]=l[1],c=tn(h,t,o,i,n,c)):l[1]!==0&&(c=tn(h,t,l,i,n,c)),i=0):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(l[3]=n)}for(a!==0&&ur(h,t,a,s,f),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=Bc(t.events,n))}return e}function tn(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(o.end=Object.assign({},Le(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=Le(t.events,n[1]);if(o={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const s=Le(t.events,n[2]),f=Le(t.events,n[3]),c={type:u,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const d=n[2]+1,S=n[3]-n[2]-1;e.add(d,S,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},Le(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function ur(e,t,n,r,i){const o=[],l=Le(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Le(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const qc={name:"tasklistCheck",tokenize:Vc};function Uc(){return{text:{91:qc}}}function Vc(e,t,n){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),o)}function o(a){return ee(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),l):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),l):n(a)}function l(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(a)}function u(a){return z(a)?t(a):H(a)?e.check({tokenize:Wc},t,n)(a):n(a)}}function Wc(e,t,n){return X(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Yc(e){return Cr([kc(),Tc(),Oc(e),jc(),Uc()])}const Xc={};function Zc(e){const t=this,n=e||Xc,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Yc(n)),o.push(mc()),l.push(gc(n))}export{Kc as M,Qc as R,Ii as a,Gc as b,Zc as c,Zn as d,Ni as f,$i as h,dn as j,Rn as n,Jc as p,ar as r,Yn as s};
45
+ `))}function a(p,d,S,C){const k=S.enter("tableCell"),A=S.enter("phrasing"),E=S.containerPhrasing(p,{...C,before:o,after:o});return A(),k(),E}function s(p,d){return Cs(p,{align:d,alignDelimiters:r,padding:n,stringLength:i})}function f(p,d,S){const C=p.children;let k=-1;const A=[],E=d.enter("table");for(;++k<C.length;)A[k]=c(C[k],d,S);return E(),A}function c(p,d,S){const C=p.children;let k=-1;const A=[],E=d.enter("tableRow");for(;++k<C.length;)A[k]=a(C[k],p,d,S);return E(),A}function h(p,d,S){let C=ii.inlineCode(p,d,S);return S.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function cc(){return{exit:{taskListCheckValueChecked:or,taskListCheckValueUnchecked:or,paragraph:pc}}}function fc(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:hc}}}function or(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function pc(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const u=i[o];if(u.type==="paragraph"){l=u;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function hc(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);o&&u.move(l);let a=ii.listItem(e,t,n,{...r,...u.current()});return o&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),a;function s(f){return f+l}}function mc(){return[Wa(),hs(),ys(),rc(),cc()]}function gc(e){return{extensions:[Ya(),ms(e),ks(),sc(e),fc()]}}const dc={tokenize:Sc,partial:!0},li={tokenize:Cc,partial:!0},oi={tokenize:Ec,partial:!0},ui={tokenize:Ic,partial:!0},yc={tokenize:vc,partial:!0},ai={name:"wwwAutolink",tokenize:bc,previous:ci},si={name:"protocolAutolink",tokenize:wc,previous:fi},Se={name:"emailAutolink",tokenize:xc,previous:pi},xe={};function kc(){return{text:xe}}let ve=48;for(;ve<123;)xe[ve]=Se,ve++,ve===58?ve=65:ve===91&&(ve=97);xe[43]=Se;xe[45]=Se;xe[46]=Se;xe[95]=Se;xe[72]=[Se,si];xe[104]=[Se,si];xe[87]=[Se,ai];xe[119]=[Se,ai];function xc(e,t,n){const r=this;let i,o;return l;function l(c){return!Un(c)||!pi.call(r,r.previous)||st(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(c))}function u(c){return Un(c)?(e.consume(c),u):c===64?(e.consume(c),a):n(c)}function a(c){return c===46?e.check(yc,f,s)(c):c===45||c===95||oe(c)?(o=!0,e.consume(c),a):f(c)}function s(c){return e.consume(c),i=!0,a}function f(c){return o&&i&&ae(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function bc(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!ci.call(r,r.previous)||st(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(dc,e.attempt(li,e.attempt(oi,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function wc(e,t,n){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&fi.call(r,r.previous)&&!st(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),u):n(c)}function u(c){if(ae(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),u;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),a}return n(c)}function a(c){return c===47?(e.consume(c),o?s:(o=!0,a)):n(c)}function s(c){return c===null||ln(c)||ee(c)||Ae(c)||sn(c)?n(c):e.attempt(li,e.attempt(oi,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function Sc(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function Cc(e,t,n){let r,i,o;return l;function l(s){return s===46||s===95?e.check(ui,a,u)(s):s===null||ee(s)||Ae(s)||s!==45&&sn(s)?a(s):(o=!0,e.consume(s),l)}function u(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function a(s){return i||r||!o?n(s):t(s)}}function Ec(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(ui,t,o)(l):l===null||ee(l)||Ae(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Ic(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),o):u===93?(e.consume(u),i):u===60||u===null||ee(u)||Ae(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||ee(u)||Ae(u)?t(u):r(u)}function o(u){return ae(u)?l(u):n(u)}function l(u){return u===59?(e.consume(u),r):ae(u)?(e.consume(u),l):n(u)}}function vc(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return oe(o)?n(o):t(o)}}function ci(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ee(e)}function fi(e){return!ae(e)}function pi(e){return!(e===47||Un(e))}function Un(e){return e===43||e===45||e===46||e===95||oe(e)}function st(e){let t=e.length,n=!1;for(;t--;){const 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}const Ac={tokenize:Fc,partial:!0};function Tc(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Lc,continuation:{tokenize:zc},exit:Rc}},text:{91:{name:"gfmFootnoteCall",tokenize:Dc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Pc,resolveTo:_c}}}}function Pc(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){l=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return u;function u(a){if(!l||!l._balanced)return n(a);const s=ye(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function _c(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";const 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++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function Dc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),a}function a(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(o>999||c===93&&!l||c===null||c===91||ee(c))return n(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(ye(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ee(c)||(l=!0),o++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function Lc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,u;return a;function a(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(d)}function f(d){if(l>999||d===93&&!u||d===null||d===91||ee(d))return n(d);if(d===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return o=ye(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return ee(d)||(u=!0),l++,e.consume(d),d===92?c:f}function c(d){return d===91||d===92||d===93?(e.consume(d),l++,f):f(d)}function h(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(o)||i.push(o),X(e,p,"gfmFootnoteDefinitionWhitespace")):n(d)}function p(d){return t(d)}}function zc(e,t,n){return e.check(Ge,t,e.attempt(Ac,t,n))}function Rc(e){e.exit("gfmFootnoteDefinition")}function Fc(e,t,n){const r=this;return X(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function Oc(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,u){let a=-1;for(;++a<l.length;)if(l[a][0]==="enter"&&l[a][1].type==="strikethroughSequenceTemporary"&&l[a][1]._close){let s=a;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[a][1].end.offset-l[a][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[a][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[a][1].end)},c={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[a][1].start)},h=[["enter",f,u],["enter",l[s][1],u],["exit",l[s][1],u],["enter",c,u]],p=u.parser.constructs.insideSpan.null;p&&he(h,h.length,0,cn(p,l.slice(s+1,a),u)),he(h,h.length,0,[["exit",c,u],["enter",l[a][1],u],["exit",l[a][1],u],["exit",f,u]]),he(l,s-1,a-s+3,h),a=s+h.length-2;break}}for(a=-1;++a<l.length;)l[a][1].type==="strikethroughSequenceTemporary"&&(l[a][1].type="data");return l}function o(l,u,a){const s=this.previous,f=this.events;let c=0;return h;function h(d){return s===126&&f[f.length-1][1].type!=="characterEscape"?a(d):(l.enter("strikethroughSequenceTemporary"),p(d))}function p(d){const S=Re(s);if(d===126)return c>1?a(d):(l.consume(d),c++,p);if(c<2&&!n)return a(d);const C=l.exit("strikethroughSequenceTemporary"),k=Re(d);return C._open=!k||k===2&&!!S,C._close=!S||S===2&&!!k,u(d)}}}class Mc{constructor(){this.map=[]}add(t,n,r){Nc(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function Nc(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 Bc(e,t){let n=!1;const r=[];for(;t<e.length;){const 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"){const o=r.length-1;r[o]=r[o]==="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 jc(){return{flow:{null:{name:"table",tokenize:$c,resolveAll:Hc}}}}function $c(e,t,n){const r=this;let i=0,o=0,l;return u;function u(x){let _=r.events.length-1;for(;_>-1;){const L=r.events[_][1].type;if(L==="lineEnding"||L==="linePrefix")_--;else break}const D=_>-1?r.events[_][1].type:null,Q=D==="tableHead"||D==="tableRow"?b:a;return Q===b&&r.parser.lazy[r.now().line]?n(x):Q(x)}function a(x){return e.enter("tableHead"),e.enter("tableRow"),s(x)}function s(x){return x===124||(l=!0,o+=1),f(x)}function f(x){return x===null?n(x):z(x)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):n(x):H(x)?X(e,f,"whitespace")(x):(o+=1,l&&(l=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(x)))}function c(x){return x===null||x===124||ee(x)?(e.exit("data"),f(x)):(e.consume(x),x===92?h:c)}function h(x){return x===92||x===124?(e.consume(x),c):c(x)}function p(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(x):(e.enter("tableDelimiterRow"),l=!1,H(x)?X(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):d(x))}function d(x){return x===45||x===58?C(x):x===124?(l=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),S):F(x)}function S(x){return H(x)?X(e,C,"whitespace")(x):C(x)}function C(x){return x===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),k):x===45?(o+=1,k(x)):x===null||z(x)?R(x):F(x)}function k(x){return x===45?(e.enter("tableDelimiterFiller"),A(x)):F(x)}function A(x){return x===45?(e.consume(x),A):x===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(x))}function E(x){return H(x)?X(e,R,"whitespace")(x):R(x)}function R(x){return x===124?d(x):x===null||z(x)?!l||i!==o?F(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):F(x)}function F(x){return n(x)}function b(x){return e.enter("tableRow"),N(x)}function N(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),N):x===null||z(x)?(e.exit("tableRow"),t(x)):H(x)?X(e,N,"whitespace")(x):(e.enter("data"),V(x))}function V(x){return x===null||x===124||ee(x)?(e.exit("data"),N(x)):(e.consume(x),x===92?W:V)}function W(x){return x===92||x===124?(e.consume(x),V):V(x)}}function Hc(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],u=!1,a=0,s,f,c;const h=new Mc;for(;++n<e.length;){const p=e[n],d=p[1];p[0]==="enter"?d.type==="tableHead"?(u=!1,a!==0&&(ur(h,t,a,s,f),f=void 0,a=0),s={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},h.add(n,0,[["enter",s,t]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,n+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},h.add(n,0,[["enter",f,t]])),i=d.type==="tableDelimiterRow"?2:f?3:1):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=tn(h,t,o,i,void 0,c),o=[0,0,0,0]),l[2]=n)):d.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=tn(h,t,o,i,void 0,c)),o=l,l=[o[1],n,0,0])):d.type==="tableHead"?(u=!0,a=n):d.type==="tableRow"||d.type==="tableDelimiterRow"?(a=n,o[1]!==0?(l[0]=l[1],c=tn(h,t,o,i,n,c)):l[1]!==0&&(c=tn(h,t,l,i,n,c)),i=0):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(l[3]=n)}for(a!==0&&ur(h,t,a,s,f),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=Bc(t.events,n))}return e}function tn(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(o.end=Object.assign({},Le(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=Le(t.events,n[1]);if(o={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const s=Le(t.events,n[2]),f=Le(t.events,n[3]),c={type:u,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const d=n[2]+1,S=n[3]-n[2]-1;e.add(d,S,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},Le(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function ur(e,t,n,r,i){const o=[],l=Le(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Le(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const qc={name:"tasklistCheck",tokenize:Vc};function Uc(){return{text:{91:qc}}}function Vc(e,t,n){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),o)}function o(a){return ee(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),l):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),l):n(a)}function l(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(a)}function u(a){return z(a)?t(a):H(a)?e.check({tokenize:Wc},t,n)(a):n(a)}}function Wc(e,t,n){return X(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Yc(e){return Cr([kc(),Tc(),Oc(e),jc(),Uc()])}const Xc={};function Zc(e){const t=this,n=e||Xc,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Yc(n)),o.push(mc()),l.push(gc(n))}export{Kc as M,Qc as W,Ii as a,Gc as b,Zc as c,Zn as d,Ni as f,$i as h,dn as j,Rn as n,Jc as p,ar as r,Yn as s};
@@ -1,4 +1,4 @@
1
- import{r as yc}from"./markdown-Ce2Umeb2.js";var hi={exports:{}},ve={},yi={exports:{}},gi={};/**
1
+ import{r as yc}from"./markdown-BCtMzQ91.js";var hi={exports:{}},ve={},yi={exports:{}},gi={};/**
2
2
  * @license React
3
3
  * scheduler.production.min.js
4
4
  *
@@ -14,10 +14,10 @@
14
14
  <link rel="preconnect" href="https://fonts.googleapis.com">
15
15
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
16
16
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
17
- <script type="module" crossorigin src="/assets/index-CIqmZV3y.js"></script>
18
- <link rel="modulepreload" crossorigin href="/assets/markdown-Ce2Umeb2.js">
19
- <link rel="modulepreload" crossorigin href="/assets/vendor-DpYitQz5.js">
20
- <link rel="stylesheet" crossorigin href="/assets/index-Dt1puyHn.css">
17
+ <script type="module" crossorigin src="/assets/index-Dhp52UPr.js"></script>
18
+ <link rel="modulepreload" crossorigin href="/assets/markdown-BCtMzQ91.js">
19
+ <link rel="modulepreload" crossorigin href="/assets/vendor-C4-dOWG8.js">
20
+ <link rel="stylesheet" crossorigin href="/assets/index-B_bIdgkW.css">
21
21
  </head>
22
22
  <body class="bg-bg-primary text-text-primary min-h-screen overscroll-none">
23
23
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencent-ai/codebuddy-code",
3
- "version": "2.70.1",
3
+ "version": "2.71.0-next.db78c46.20260401",
4
4
  "description": "Use CodeBuddy, Tencent's AI assistant, right from your terminal. CodeBuddy can understand your codebase, edit files, run terminal commands, and handle entire workflows for you.",
5
5
  "main": "lib/node/index.js",
6
6
  "typings": "lib/node/index.d.ts",
@@ -29,7 +29,8 @@
29
29
  "url": "https://cnb.cool/codebuddy/codebuddy-code/-/issues"
30
30
  },
31
31
  "publishConfig": {
32
- "access": "public"
32
+ "access": "public",
33
+ "tag": "next"
33
34
  },
34
35
  "scripts": {},
35
36
  "devDependencies": {},
@@ -404,6 +404,6 @@
404
404
  "ImageGen": true,
405
405
  "ScheduledTasks": true
406
406
  },
407
- "commit": "3ead3742ec2b096144131927ebc99e7a52c4a336",
408
- "date": "2026-03-31T11:32:01.510Z"
407
+ "commit": "db78c46c940f3cfc181563ef1ceb163c88a0d286",
408
+ "date": "2026-04-01T04:14:41.941Z"
409
409
  }
@@ -534,6 +534,6 @@
534
534
  }
535
535
  }
536
536
  },
537
- "commit": "3ead3742ec2b096144131927ebc99e7a52c4a336",
538
- "date": "2026-03-31T11:32:01.473Z"
537
+ "commit": "db78c46c940f3cfc181563ef1ceb163c88a0d286",
538
+ "date": "2026-04-01T04:14:41.961Z"
539
539
  }
package/product.ioa.json CHANGED
@@ -636,7 +636,7 @@
636
636
  "supportsToolCall": true,
637
637
  "supportsImages": true,
638
638
  "supportsReasoning": true,
639
- "reseaning": {
639
+ "reasoning": {
640
640
  "effort": "high",
641
641
  "summary": "auto"
642
642
  }
@@ -651,7 +651,7 @@
651
651
  "supportsToolCall": true,
652
652
  "supportsImages": true,
653
653
  "supportsReasoning": true,
654
- "reseaning": {
654
+ "reasoning": {
655
655
  "effort": "high",
656
656
  "summary": "auto"
657
657
  }
@@ -666,7 +666,7 @@
666
666
  "supportsToolCall": true,
667
667
  "supportsImages": true,
668
668
  "supportsReasoning": true,
669
- "reseaning": {
669
+ "reasoning": {
670
670
  "effort": "high",
671
671
  "summary": "auto"
672
672
  }
@@ -681,7 +681,7 @@
681
681
  "supportsToolCall": true,
682
682
  "supportsImages": true,
683
683
  "supportsReasoning": true,
684
- "reseaning": {
684
+ "reasoning": {
685
685
  "effort": "high",
686
686
  "summary": "auto"
687
687
  }
@@ -696,7 +696,7 @@
696
696
  "supportsToolCall": true,
697
697
  "supportsImages": true,
698
698
  "supportsReasoning": true,
699
- "reseaning": {
699
+ "reasoning": {
700
700
  "effort": "high",
701
701
  "summary": "auto"
702
702
  }
@@ -711,7 +711,7 @@
711
711
  "supportsToolCall": true,
712
712
  "supportsImages": true,
713
713
  "supportsReasoning": true,
714
- "reseaning": {
714
+ "reasoning": {
715
715
  "effort": "high",
716
716
  "summary": "auto"
717
717
  }
@@ -742,7 +742,7 @@
742
742
  "supportsToolCall": true,
743
743
  "supportsImages": true,
744
744
  "supportsReasoning": true,
745
- "reseaning": {
745
+ "reasoning": {
746
746
  "effort": "high",
747
747
  "summary": "auto"
748
748
  },
@@ -892,6 +892,6 @@
892
892
  }
893
893
  }
894
894
  },
895
- "commit": "3ead3742ec2b096144131927ebc99e7a52c4a336",
896
- "date": "2026-03-31T11:32:01.561Z"
895
+ "commit": "db78c46c940f3cfc181563ef1ceb163c88a0d286",
896
+ "date": "2026-04-01T04:14:41.904Z"
897
897
  }
package/product.json CHANGED
@@ -168,7 +168,7 @@
168
168
  "supportsToolCall": true,
169
169
  "supportsImages": true,
170
170
  "supportsReasoning": true,
171
- "reseaning": {
171
+ "reasoning": {
172
172
  "effort": "high",
173
173
  "summary": "auto"
174
174
  }
@@ -183,7 +183,7 @@
183
183
  "supportsToolCall": true,
184
184
  "supportsImages": true,
185
185
  "supportsReasoning": true,
186
- "reseaning": {
186
+ "reasoning": {
187
187
  "effort": "high",
188
188
  "summary": "auto"
189
189
  }
@@ -198,7 +198,7 @@
198
198
  "supportsToolCall": true,
199
199
  "supportsImages": true,
200
200
  "supportsReasoning": true,
201
- "reseaning": {
201
+ "reasoning": {
202
202
  "effort": "high",
203
203
  "summary": "auto"
204
204
  }
@@ -213,7 +213,7 @@
213
213
  "supportsToolCall": true,
214
214
  "supportsImages": true,
215
215
  "supportsReasoning": true,
216
- "reseaning": {
216
+ "reasoning": {
217
217
  "effort": "high",
218
218
  "summary": "auto"
219
219
  }
@@ -228,7 +228,7 @@
228
228
  "supportsToolCall": true,
229
229
  "supportsImages": true,
230
230
  "supportsReasoning": true,
231
- "reseaning": {
231
+ "reasoning": {
232
232
  "effort": "high",
233
233
  "summary": "auto"
234
234
  }
@@ -243,7 +243,7 @@
243
243
  "supportsToolCall": true,
244
244
  "supportsImages": true,
245
245
  "supportsReasoning": true,
246
- "reseaning": {
246
+ "reasoning": {
247
247
  "effort": "high",
248
248
  "summary": "auto"
249
249
  }
@@ -274,7 +274,7 @@
274
274
  "supportsToolCall": true,
275
275
  "supportsImages": true,
276
276
  "supportsReasoning": true,
277
- "reseaning": {
277
+ "reasoning": {
278
278
  "effort": "high",
279
279
  "summary": "auto"
280
280
  },
@@ -1480,6 +1480,6 @@
1480
1480
  "description": "Send a reply to a WeCom (企业微信) user. For text: pass text (markdown supported)."
1481
1481
  }
1482
1482
  ],
1483
- "commit": "3ead3742ec2b096144131927ebc99e7a52c4a336",
1484
- "date": "2026-03-31T11:32:01.497Z"
1483
+ "commit": "db78c46c940f3cfc181563ef1ceb163c88a0d286",
1484
+ "date": "2026-04-01T04:14:42.023Z"
1485
1485
  }
@@ -293,6 +293,6 @@
293
293
  "DeferToolLoading": true,
294
294
  "ScheduledTasks": true
295
295
  },
296
- "commit": "3ead3742ec2b096144131927ebc99e7a52c4a336",
297
- "date": "2026-03-31T11:32:01.532Z"
296
+ "commit": "db78c46c940f3cfc181563ef1ceb163c88a0d286",
297
+ "date": "2026-04-01T04:14:42.061Z"
298
298
  }