performance.mark("js-parse-end:86849-5cc5e81ce5a91397.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["86849"],{78256(e,t,n){n.d(t,{D:()=>r});function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}},89027(e,t,n){n.d(t,{h:()=>f,s:()=>h});var r=n(63234),i=n(72282);let o=/[#.]/g;var l=n(91775),a=n(77457),u=n(72485);function s(e,t,n){let r=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,a,...s){let f;if(null==n)f={type:"root",children:[]},s.unshift(a);else{let h=(f=function(e,t){let n,r,i=e||"",l={},a=0;for(;ao});var r=n(82834),i=n(69143);function o(e,t,n){let o=(0,i.C)((n||{}).ignore||[]),l=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(o!==n&&c.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(a)?c.push(...a):a&&c.push(a),o=n+f[0].length,s=!0),!r.global)break;f=r.exec(e.value)}return s?(oQ,H:()=>J});var r=n(78256),i=n(97471),o=n(40574),l=n(28225);let a="phrasing",u=["autolink","link","image","label"];function s(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function c(e){this.config.enter.autolinkProtocol.call(this,e)}function f(e){this.config.exit.autolinkProtocol.call(this,e)}function h(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,i.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function p(e){this.config.exit.autolinkEmail.call(this,e)}function d(e){this.exit(e)}function m(e){(0,l.T)(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,g],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,k]],{ignore:["link","linkReference"]})}function g(e,t,n,i,o){let l,a="";if(!b(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",a="http://"),(l=n.split(".")).length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))return!1;let u=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")"),o=(0,r.D)(e,"("),l=(0,r.D)(e,")");for(;-1!==i&&o>l;)e+=n.slice(0,i+1),i=(n=n.slice(i+1)).indexOf(")"),l++;return[e,n]}(n+i);if(!u[0])return!1;let s={type:"link",title:null,url:a+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[s,{type:"text",value:u[1]}]:s}function k(e,t,n,r){return!(!b(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function b(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,o.Ny)(n)||(0,o.es)(n))&&(!t||47!==n)}var v=n(9638);function y(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function x(){this.buffer()}function C(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.label=t,n.identifier=(0,v.B)(this.sliceSerialize(e)).toLowerCase()}function w(e){this.exit(e)}function A(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function F(){this.buffer()}function D(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.label=t,n.identifier=(0,v.B)(this.sliceSerialize(e)).toLowerCase()}function S(e){this.exit(e)}function L(e,t,n,r){let i=n.createTracker(r),o=i.move("[^"),l=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),a(),l(),o+=i.move("]")}function O(e,t,n,r){let i=n.createTracker(r),o=i.move("[^"),l=n.enter("footnoteDefinition"),a=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),T)),l(),o}function T(e,t,n){return 0===t?e:(n?"":" ")+e}L.peek=function(){return"["};let E=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function M(e){this.enter({type:"delete",children:[]},e)}function I(e){this.exit(e)}function R(e,t,n,r){let i=n.createTracker(r),o=n.enter("strikethrough"),l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function j(e){return e.length}function z(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}R.peek=function(){return"~"};var N=n(16325);function P(e){let t=e._align;(0,i.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function _(e){this.exit(e),this.data.inTable=void 0}function B(e){this.enter({type:"tableRow",children:[]},e)}function q(e){this.exit(e)}function H(e){this.enter({type:"tableCell",children:[]},e)}function $(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,W));let n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function W(e,t){return"|"===t?t:e}function V(e){let t=this.stack[this.stack.length-2];(0,i.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function G(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,i.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,o=-1;for(;++os&&(s=e[c].length);++ou[o])&&(u[o]=e)}t.push(l)}l[c]=t,a[c]=r}let h=-1;if("object"==typeof r&&"length"in r)for(;++hu[h]&&(u[h]=i),d[h]=i),p[h]=l}l.splice(1,0,p),a.splice(1,0,d),c=-1;let m=[];for(;++c"+(n?"":" ")+e}n.d(t,{p:()=>D});var i=n(69384);function o(e,t,n,r){let o=-1;for(;++o",...s.current()})),c+=s.move(">")):(a=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),a()),c+=s.move(")"),l(),c}function g(e,t,n,r){let i=e.referenceType,o=n.enter("imageReference"),l=n.enter("label"),a=n.createTracker(r),u=a.move("!["),s=n.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();let c=n.stack;n.stack=[],l=n.enter("reference");let f=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return l(),n.stack=c,o(),"full"!==i&&s&&s===f?"shortcut"===i?u=u.slice(0,-1):u+=a.move("]"):u+=a.move(f+"]"),u}function k(e,t,n){let r=e.value||"",i="`",o=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(e.url))}function y(e,t,n,r){let i,o,l=u(n),a='"'===l?"Quote":"Apostrophe",s=n.createTracker(r);if(v(e,n)){let t=n.stack;n.stack=[],i=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),i(),n.stack=t,r}i=n.enter("link"),o=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=n.enter(`title${a}`),c+=s.move(" "+l),c+=s.move(n.safe(e.title,{before:c,after:l,...s.current()})),c+=s.move(l),o()),c+=s.move(")"),i(),c}function x(e,t,n,r){let i=e.referenceType,o=n.enter("linkReference"),l=n.enter("label"),a=n.createTracker(r),u=a.move("["),s=n.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();let c=n.stack;n.stack=[],l=n.enter("reference");let f=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return l(),n.stack=c,o(),"full"!==i&&s&&s===f?"shortcut"===i?u=u.slice(0,-1):u+=a.move("]"):u+=a.move(f+"]"),u}function C(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 w(e){let t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}y.peek=function(e,t,n){return v(e,n)?"<":"["},x.peek=function(){return"["};let A=(0,n(69143).C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function F(e,t,n,r){let i=function(e){let t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),l=n.createTracker(r),a=l.move(i+i),u=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()})),c=u.charCodeAt(0),h=f(r.before.charCodeAt(r.before.length-1),c,i);h.inside&&(u=(0,s.T)(c)+u.slice(1));let p=u.charCodeAt(u.length-1),d=f(r.after.charCodeAt(0),p,i);d.inside&&(u=u.slice(0,-1)+(0,s.T)(p));let m=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:h.outside},a+u+m}F.peek=function(e,t,n){return n.options.strong||"*"};let D={blockquote:function(e,t,n,i){let o=n.enter("blockquote"),l=n.createTracker(i);l.move("> "),l.shift(2);let a=n.indentLines(n.containerFlow(e,l.current()),r);return o(),a},break:o,code:function(e,t,n,r){let i=function(e){let t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",u="`"===i?"GraveAccent":"Tilde";if((0,l.m)(e,n)){let e=n.enter("codeIndented"),t=n.indentLines(o,a);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(function(e,t){let n=String(e),r=n.indexOf(t),i=r,o=0,l=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}(o,i)+1,3)),f=n.enter("codeFenced"),h=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${u}`);h+=s.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${u}`);h+=s.move(" "),h+=s.move(n.safe(e.meta,{before:h,after:"\n",encode:["`"],...s.current()})),t()}return h+=s.move("\n"),o&&(h+=s.move(o+"\n")),h+=s.move(c),f(),h},definition:function(e,t,n,r){let i=u(n),o='"'===i?"Quote":"Apostrophe",l=n.enter("definition"),a=n.enter("label"),s=n.createTracker(r),c=s.move("[");return c+=s.move(n.safe(n.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(a=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),a()),l(),c},emphasis:h,hardBreak:o,heading:function(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if((0,p.f)(e,n)){let t=n.enter("headingSetext"),r=n.enter("phrasing"),l=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),l+"\n"+(1===i?"=":"-").repeat(l.length-(Math.max(l.lastIndexOf("\r"),l.lastIndexOf("\n"))+1))}let l="#".repeat(i),a=n.enter("headingAtx"),u=n.enter("phrasing");o.move(l+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=(0,s.T)(c.charCodeAt(0))+c.slice(1)),c=c?l+" "+c:l,n.options.closeAtx&&(c+=" "+l),u(),a(),c},html:d,image:m,imageReference:g,inlineCode:k,link:y,linkReference:x,list:function(e,t,n,r){let i=n.enter("list"),o=n.bulletCurrent,l=e.ordered?function(e){let t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):C(n),a=e.ordered?"."===l?")":".":function(e){let t=C(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}(n),u=!!t&&!!n.bulletLastUsed&&l===n.bulletLastUsed;if(!e.ordered){let t=e.children?e.children[0]:void 0;if("*"!==l&&"-"!==l||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(u=!0),w(n)===l&&t){let t=-1;for(;++t-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let l=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(l=4*Math.ceil(l/4));let a=n.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);let u=n.enter("listItem"),s=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){return t?(n?"":" ".repeat(l))+e:(n?o:o+" ".repeat(l-o.length))+e});return u(),s},paragraph:function(e,t,n,r){let i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l},root:function(e,t,n,r){return(e.children.some(function(e){return A(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:F,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){let r=(w(n)+(n.options.ruleSpaces?" ":"")).repeat(function(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}(n));return n.options.ruleSpaces?r.slice(0,-1):r}}},23503(e,t,n){n.d(t,{T:()=>r});function r(e){return"&#x"+e.toString(16).toUpperCase()+";"}},35857(e,t,n){n.d(t,{m:()=>r});function r(e,t){return!!(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}},5594(e,t,n){n.d(t,{f:()=>l});var r=n(47970),i=n(82834),o=n(72534);function l(e,t){let n=!1;return(0,r.YR)(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,i.dc}),!!((!e.depth||e.depth<3)&&(0,o.d)(e)&&(t.options.setext||n))}},69384(e,t,n){function r(e,t){return i(e,t.inConstruct,!0)&&!i(e,t.notInConstruct,!1)}function i(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++rr})},725(e,t,n){n.d(t,{T:()=>q});var r=n(5389),i=n(40574);let o={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),i):n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},l={tokenize:function(e,t,n){let r,o,l;return a;function a(t){return 46===t||95===t?e.check(u,c,s)(t):null===t||(0,i.Ee)(t)||(0,i.Ny)(t)||45!==t&&(0,i.es)(t)?c(t):(l=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function c(e){return o||r||!l?n(e):t(e)}},partial:!0},a={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}p[43]=h,p[45]=h,p[46]=h,p[95]=h,p[72]=[h,f],p[104]=[h,f],p[87]=[h,c],p[119]=[h,c];var y=n(9283),x=n(40433),C=n(9638);let w={tokenize:function(e,t,n){let r=this;return(0,x.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function A(e,t,n){let r,i=this,o=i.events.length,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;o--;){let e=i.events[o][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!r||!r._balanced)return n(o);let a=(0,C.B)(i.sliceSerialize({start:r.end,end:i.now()}));return 94===a.codePointAt(0)&&l.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function F(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){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 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)},a=[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,...a),e}function D(e,t,n){let r,o=this,l=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),u};function u(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(u){if(a>999||93===u&&!r||null===u||91===u||(0,i.Ee)(u))return n(u);if(93===u){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes((0,C.B)(o.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return(0,i.Ee)(u)||(r=!0),a++,e.consume(u),92===u?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,s):s(t)}}function S(e,t,n){let r,o,l=this,a=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),u=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(u>999||93===t&&!o||null===t||91===t||(0,i.Ee)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,C.B)(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return(0,i.Ee)(t)||(o=!0),u++,e.consume(t),92===t?f:c}function f(t){return 91===t||92===t||93===t?(e.consume(t),u++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(r)||a.push(r),(0,x.N)(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function L(e,t,n){return e.check(y.B,t,e.attempt(w,t,n))}function O(e){e.exit("gfmFootnoteDefinition")}var T=n(82777),E=n(10691),M=n(45535);class I{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i0;)t-=1,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]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function R(e,t,n){let r,o=this,l=0,a=0;return function(e){let t=o.events.length-1;for(;t>-1;){let e=o.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?o.events[t][1].type:null,i="tableHead"===r||"tableRow"===r?v:u;return i===v&&o.parser.lazy[o.now().line]?n(e):i(e)};function u(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,a+=1),s(n)}function s(t){return null===t?n(t):(0,i.HP)(t)?a>1?(a=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):(0,i.On)(t)?(0,x.N)(e,s,"whitespace")(t):(a+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,s):(e.enter("data"),c(t))}function c(t){return null===t||124===t||(0,i.Ee)(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?f:c)}function f(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return(o.interrupt=!1,o.parser.lazy[o.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,i.On)(t))?(0,x.N)(e,p,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):n(t)}function d(t){return(0,i.On)(t)?(0,x.N)(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(a+=1,g(t)):null===t||(0,i.HP)(t)?b(t):n(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(n))}(t)):n(t)}function k(t){return(0,i.On)(t)?(0,x.N)(e,b,"whitespace")(t):b(t)}function b(o){if(124===o)return p(o);if(null===o||(0,i.HP)(o))return r&&l===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(o)):n(o);return n(o)}function v(t){return e.enter("tableRow"),y(t)}function y(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),y):null===n||(0,i.HP)(n)?(e.exit("tableRow"),t(n)):(0,i.On)(n)?(0,x.N)(e,y,"whitespace")(n):(e.enter("data"),C(n))}function C(t){return null===t||124===t||(0,i.Ee)(t)?(e.exit("data"),y(t)):(e.consume(t),92===t?w:C)}function w(t){return 92===t||124===t?(e.consume(t),C):C(t)}}function j(e,t){let n,r,i,o=-1,l=!0,a=0,u=[0,0,0,0],s=[0,0,0,0],c=!1,f=0,h=new I;for(;++on[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",l,t]])}return void 0!==i&&(o.end=Object.assign({},P(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function N(e,t,n,r,i){let o=[],l=P(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 P(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let _={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o):n(t)};function o(t){return(0,i.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return(0,i.HP)(r)?t(r):(0,i.On)(r)?e.check({tokenize:B},t,n)(r):n(r)}}};function B(e,t,n){return(0,x.N)(e,function(e){return null===e?n(e):t(e)},"whitespace")}function q(e){let t,n;return(0,r.y)([{text:p},{document:{91:{name:"gfmFootnoteDefinition",tokenize:S,continuation:{tokenize:L},exit:O}},text:{91:{name:"gfmFootnoteCall",tokenize:D},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:A,resolveTo:F}}},(t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,o=this.events,l=0;return function(a){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function o(a){let u=(0,E.S)(i);if(126===a)return l>1?r(a):(e.consume(a),l++,o);if(l<2&&!t)return r(a);let s=e.exit("strikethroughSequenceTemporary"),c=(0,E.S)(a);return s._open=!c||2===c&&!!u,s._close=!u||2===u&&!!c,n(a)}(a))}},resolveAll:function(e,t){let n=-1;for(;++n1?n[e.line-2]:0)+e.column-1;if(r-1&&e<=t.length){let r=0;for(;;){let o=n[r];if(void 0===o){let e=i(t,n[r-1]);o=-1===e?t.length+1:e+1,n[r]=o}if(o>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}function i(e,t){let n=e.indexOf("\r",t),r=e.indexOf("\n",t);return -1===r?n:-1===n||n+1===r?r:nr})}}]); //# sourceMappingURL=86849-5cc5e81ce5a91397-af7f317cb55de47d.js.map