"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8258],{78258:(e,t,n)=>{n.d(t,{a:()=>An,c:()=>wn});var r={};n.r(r);n.d(r,{attentionMarkers:()=>Vt,contentInitial:()=>Pt,disable:()=>Qt,document:()=>Mt,flow:()=>jt,flowInitial:()=>Ot,insideSpan:()=>qt,string:()=>Ht,text:()=>Rt});var i=n(76235);const u={};function c(e,t){const n=t||u;const r=typeof n.includeImageAlt==="boolean"?n.includeImageAlt:true;const i=typeof n.includeHtml==="boolean"?n.includeHtml:true;return o(e,r,i)}function o(e,t,n){if(l(e)){if("value"in e){return e.type==="html"&&!n?"":e.value}if(t&&"alt"in e&&e.alt){return e.alt}if("children"in e){return s(e.children,t,n)}}if(Array.isArray(e)){return s(e,t,n)}return""}function s(e,t,n){const r=[];let i=-1;while(++ii?0:i+t}else{t=t>i?i:t}n=n>0?n:0;if(r.length<1e4){c=Array.from(r);c.unshift(t,n);e.splice(...c)}else{if(n)e.splice(t,n);while(u0){f(e,e.length,0,t);return e}return t}const d={}.hasOwnProperty;function h(e){const t={};let n=-1;while(++nc)){return}}const n=t.events.length;let u=n;let o;let s;while(u--){if(t.events[u][0]==="exit"&&t.events[u][1].type==="chunkFlow"){if(o){s=t.events[u][1].end;break}o=true}}k(r);e=n;while(er){const r=n[i];t.containerState=r[1];r[0].exit.call(t,e)}n.length=r}function y(){i.write([null]);u=undefined;i=undefined;t.containerState._closeFlow=undefined}}function j(e,t,n){return D(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?undefined:4)}const H={tokenize:R,partial:true};function R(e,t,n){return r;function r(t){return C(t)?D(e,i,"linePrefix")(t):i(t)}function i(e){return e===null||A(e)?t(e):n(e)}}function q(e){const t={};let n=-1;let r;let i;let u;let c;let o;let s;let l;while(++n=4){return t(i)}return e.interrupt(r.parser.constructs.flow,n,t)(i)}}const Z={tokenize:Y};function Y(e){const t=this;const n=e.attempt(H,r,e.attempt(this.parser.constructs.flowInitial,i,D(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Q,i)),"linePrefix")));return n;function r(r){if(r===null){e.consume(r);return}e.enter("lineEndingBlank");e.consume(r);e.exit("lineEndingBlank");t.currentConstruct=undefined;return n}function i(r){if(r===null){e.consume(r);return}e.enter("lineEnding");e.consume(r);e.exit("lineEnding");t.currentConstruct=undefined;return n}}const J={resolveAll:ee()};const G=X("string");const K=X("text");function X(e){return{tokenize:t,resolveAll:ee(e==="text"?te:undefined)};function t(t){const n=this;const r=this.parser.constructs[e];const i=t.attempt(r,u,c);return u;function u(e){return s(e)?i(e):c(e)}function c(e){if(e===null){t.consume(e);return}t.enter("data");t.consume(e);return o}function o(e){if(s(e)){t.exit("data");return i(e)}t.consume(e);return o}function s(e){if(e===null){return true}const t=r[e];let i=-1;if(t){while(++i-1){const e=c[0];if(typeof e==="string"){c[0]=e.slice(r)}else{c.shift()}}if(u>0){c.push(e[i].slice(0,u))}}return c}function ue(e,t){let n=-1;const r=[];let i;while(++n=3&&(u===null||A(u))){e.exit("thematicBreak");return t(u)}return n(u)}function s(t){if(t===i){e.consume(t);r++;return s}e.exit("thematicBreakSequence");return C(t)?D(e,o,"whitespace")(t):o(t)}}const se={name:"list",tokenize:ae,continuation:{tokenize:de},exit:pe};const le={tokenize:me,partial:true};const fe={tokenize:he,partial:true};function ae(e,t,n){const r=this;const i=r.events[r.events.length-1];let u=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],true).length:0;let c=0;return o;function o(t){const i=r.containerState.type||(t===42||t===43||t===45?"listUnordered":"listOrdered");if(i==="listUnordered"?!r.containerState.marker||t===r.containerState.marker:w(t)){if(!r.containerState.type){r.containerState.type=i;e.enter(i,{_container:true})}if(i==="listUnordered"){e.enter("listItemPrefix");return t===42||t===45?e.check(ce,n,l)(t):l(t)}if(!r.interrupt||t===49){e.enter("listItemPrefix");e.enter("listItemValue");return s(t)}}return n(t)}function s(t){if(w(t)&&++c<10){e.consume(t);return s}if((!r.interrupt||c<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)){e.exit("listItemValue");return l(t)}return n(t)}function l(t){e.enter("listItemMarker");e.consume(t);e.exit("listItemMarker");r.containerState.marker=r.containerState.marker||t;return e.check(H,r.interrupt?n:f,e.attempt(le,d,a))}function f(e){r.containerState.initialBlankLine=true;u++;return d(e)}function a(t){if(C(t)){e.enter("listItemPrefixWhitespace");e.consume(t);e.exit("listItemPrefixWhitespace");return d}return n(t)}function d(n){r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),true).length;return t(n)}}function de(e,t,n){const r=this;r.containerState._closeFlow=undefined;return e.check(H,i,u);function i(n){r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine;return D(e,t,"listItemIndent",r.containerState.size+1)(n)}function u(n){if(r.containerState.furtherBlankLines||!C(n)){r.containerState.furtherBlankLines=undefined;r.containerState.initialBlankLine=undefined;return c(n)}r.containerState.furtherBlankLines=undefined;r.containerState.initialBlankLine=undefined;return e.attempt(fe,t,c)(n)}function c(i){r.containerState._closeFlow=true;r.interrupt=undefined;return D(e,e.attempt(se,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(i)}}function he(e,t,n){const r=this;return D(e,i,"listItemIndent",r.containerState.size+1);function i(e){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],true).length===r.containerState.size?t(e):n(e)}}function pe(e){e.exit(this.containerState.type)}function me(e,t,n){const r=this;return D(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?undefined:4+1);function i(e){const i=r.events[r.events.length-1];return!C(e)&&i&&i[1].type==="listItemPrefixWhitespace"?t(e):n(e)}}const ge={name:"blockQuote",tokenize:xe,continuation:{tokenize:ke},exit:ye};function xe(e,t,n){const r=this;return i;function i(t){if(t===62){const n=r.containerState;if(!n.open){e.enter("blockQuote",{_container:true});n.open=true}e.enter("blockQuotePrefix");e.enter("blockQuoteMarker");e.consume(t);e.exit("blockQuoteMarker");return u}return n(t)}function u(n){if(C(n)){e.enter("blockQuotePrefixWhitespace");e.consume(n);e.exit("blockQuotePrefixWhitespace");e.exit("blockQuotePrefix");return t}e.exit("blockQuotePrefix");return t(n)}}function ke(e,t,n){const r=this;return i;function i(t){if(C(t)){return D(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t)}return u(t)}function u(r){return e.attempt(ge,t,n)(r)}}function ye(e){e.exit("blockQuote")}function Fe(e,t,n,r,i,u,c,o,s){const l=s||Number.POSITIVE_INFINITY;let f=0;return a;function a(t){if(t===60){e.enter(r);e.enter(i);e.enter(u);e.consume(t);e.exit(u);return d}if(t===null||t===32||t===41||S(t)){return n(t)}e.enter(r);e.enter(c);e.enter(o);e.enter("chunkString",{contentType:"string"});return m(t)}function d(n){if(n===62){e.enter(u);e.consume(n);e.exit(u);e.exit(i);e.exit(r);return t}e.enter(o);e.enter("chunkString",{contentType:"string"});return h(n)}function h(t){if(t===62){e.exit("chunkString");e.exit(o);return d(t)}if(t===null||t===60||A(t)){return n(t)}e.consume(t);return t===92?p:h}function p(t){if(t===60||t===62||t===92){e.consume(t);return h}return h(t)}function m(i){if(!f&&(i===null||i===41||I(i))){e.exit("chunkString");e.exit(o);e.exit(c);e.exit(r);return t(i)}if(f999||l===null||l===91||l===93&&!s||l===94&&!o&&"_hiddenFootnoteSupport"in c.parser.constructs){return n(l)}if(l===93){e.exit(u);e.enter(i);e.consume(l);e.exit(i);e.exit(r);return t}if(A(l)){e.enter("lineEnding");e.consume(l);e.exit("lineEnding");return f}e.enter("chunkString",{contentType:"string"});return a(l)}function a(t){if(t===null||t===91||t===93||A(t)||o++>999){e.exit("chunkString");return f(t)}e.consume(t);if(!s)s=!C(t);return t===92?d:a}function d(t){if(t===91||t===92||t===93){e.consume(t);o++;return a}return a(t)}}function Se(e,t,n,r,i,u){let c;return o;function o(t){if(t===34||t===39||t===40){e.enter(r);e.enter(i);e.consume(t);e.exit(i);c=t===40?41:t;return s}return n(t)}function s(n){if(n===c){e.enter(i);e.consume(n);e.exit(i);e.exit(r);return t}e.enter(u);return l(n)}function l(t){if(t===c){e.exit(u);return s(c)}if(t===null){return n(t)}if(A(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return D(e,l,"linePrefix")}e.enter("chunkString",{contentType:"string"});return f(t)}function f(t){if(t===c||t===null||A(t)){e.exit("chunkString");return l(t)}e.consume(t);return t===92?a:f}function a(t){if(t===c||t===92){e.consume(t);return f}return f(t)}}function we(e,t){let n;return r;function r(i){if(A(i)){e.enter("lineEnding");e.consume(i);e.exit("lineEnding");n=true;return r}if(C(i)){return D(e,r,n?"linePrefix":"lineSuffix")(i)}return t(i)}}function Ee(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ve={name:"definition",tokenize:Ie};const Ae={tokenize:Ce,partial:true};function Ie(e,t,n){const r=this;let i;return u;function u(t){e.enter("definition");return c(t)}function c(t){return be.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}function o(t){i=Ee(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1));if(t===58){e.enter("definitionMarker");e.consume(t);e.exit("definitionMarker");return s}return n(t)}function s(t){return I(t)?we(e,l)(t):l(t)}function l(t){return Fe(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function f(t){return e.attempt(Ae,a,a)(t)}function a(t){return C(t)?D(e,d,"whitespace")(t):d(t)}function d(u){if(u===null||A(u)){e.exit("definition");r.parser.defined.push(i);return t(u)}return n(u)}}function Ce(e,t,n){return r;function r(t){return I(t)?we(e,i)(t):n(t)}function i(t){return Se(e,u,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function u(t){return C(t)?D(e,c,"whitespace")(t):c(t)}function c(e){return e===null||A(e)?t(e):n(e)}}const Te={name:"codeIndented",tokenize:_e};const ze={tokenize:De,partial:true};function _e(e,t,n){const r=this;return i;function i(t){e.enter("codeIndented");return D(e,u,"linePrefix",4+1)(t)}function u(e){const t=r.events[r.events.length-1];return t&&t[1].type==="linePrefix"&&t[2].sliceSerialize(t[1],true).length>=4?c(e):n(e)}function c(t){if(t===null){return s(t)}if(A(t)){return e.attempt(ze,c,s)(t)}e.enter("codeFlowValue");return o(t)}function o(t){if(t===null||A(t)){e.exit("codeFlowValue");return c(t)}e.consume(t);return o}function s(n){e.exit("codeIndented");return t(n)}}function De(e,t,n){const r=this;return i;function i(t){if(r.parser.lazy[r.now().line]){return n(t)}if(A(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return i}return D(e,u,"linePrefix",4+1)(t)}function u(e){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],true).length>=4?t(e):A(e)?i(e):n(e)}}const Be={name:"headingAtx",tokenize:Me,resolve:Le};function Le(e,t){let n=e.length-2;let r=3;let i;let u;if(e[r][1].type==="whitespace"){r+=2}if(n-2>r&&e[n][1].type==="whitespace"){n-=2}if(e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")){n-=r+1===n?2:4}if(n>r){i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end};u={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"};f(e,r,n-r+1,[["enter",i,t],["enter",u,t],["exit",u,t],["exit",i,t]])}return e}function Me(e,t,n){let r=0;return i;function i(t){e.enter("atxHeading");return u(t)}function u(t){e.enter("atxHeadingSequence");return c(t)}function c(t){if(t===35&&r++<6){e.consume(t);return c}if(t===null||I(t)){e.exit("atxHeadingSequence");return o(t)}return n(t)}function o(n){if(n===35){e.enter("atxHeadingSequence");return s(n)}if(n===null||A(n)){e.exit("atxHeading");return t(n)}if(C(n)){return D(e,o,"whitespace")(n)}e.enter("atxHeadingText");return l(n)}function s(t){if(t===35){e.consume(t);return s}e.exit("atxHeadingSequence");return o(t)}function l(t){if(t===null||t===35||I(t)){e.exit("atxHeadingText");return o(t)}e.consume(t);return l}}const Pe={name:"setextUnderline",tokenize:je,resolveTo:Oe};function Oe(e,t){let n=e.length;let r;let i;let u;while(n--){if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}if(e[n][1].type==="paragraph"){i=n}}else{if(e[n][1].type==="content"){e.splice(n,1)}if(!u&&e[n][1].type==="definition"){u=n}}}const c={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};e[i][1].type="setextHeadingText";if(u){e.splice(i,0,["enter",c,t]);e.splice(u+1,0,["exit",e[r][1],t]);e[r][1].end=Object.assign({},e[u][1].end)}else{e[r][1]=c}e.push(["exit",c,t]);return e}function je(e,t,n){const r=this;let i;return u;function u(t){let u=r.events.length;let o;while(u--){if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){o=r.events[u][1].type==="paragraph";break}}if(!r.parser.lazy[r.now().line]&&(r.interrupt||o)){e.enter("setextHeadingLine");i=t;return c(t)}return n(t)}function c(t){e.enter("setextHeadingLineSequence");return o(t)}function o(t){if(t===i){e.consume(t);return o}e.exit("setextHeadingLineSequence");return C(t)?D(e,s,"lineSuffix")(t):s(t)}function s(r){if(r===null||A(r)){e.exit("setextHeadingLine");return t(r)}return n(r)}}const He=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];const Re=["pre","script","style","textarea"];const qe={name:"htmlFlow",tokenize:Ue,resolveTo:Ne,concrete:true};const Ve={tokenize:We,partial:true};const Qe={tokenize:$e,partial:true};function Ne(e){let t=e.length;while(t--){if(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"){break}}if(t>1&&e[t-2][1].type==="linePrefix"){e[t][1].start=e[t-2][1].start;e[t+1][1].start=e[t-2][1].start;e.splice(t-2,2)}return e}function Ue(e,t,n){const r=this;let i;let u;let c;let o;let s;return l;function l(e){return f(e)}function f(t){e.enter("htmlFlow");e.enter("htmlFlowData");e.consume(t);return a}function a(o){if(o===33){e.consume(o);return d}if(o===47){e.consume(o);u=true;return m}if(o===63){e.consume(o);i=3;return r.interrupt?t:q}if(y(o)){e.consume(o);c=String.fromCharCode(o);return g}return n(o)}function d(u){if(u===45){e.consume(u);i=2;return h}if(u===91){e.consume(u);i=5;o=0;return p}if(y(u)){e.consume(u);i=4;return r.interrupt?t:q}return n(u)}function h(i){if(i===45){e.consume(i);return r.interrupt?t:q}return n(i)}function p(i){const u="CDATA[";if(i===u.charCodeAt(o++)){e.consume(i);if(o===u.length){return r.interrupt?t:B}return p}return n(i)}function m(t){if(y(t)){e.consume(t);c=String.fromCharCode(t);return g}return n(t)}function g(o){if(o===null||o===47||o===62||I(o)){const s=o===47;const l=c.toLowerCase();if(!s&&!u&&Re.includes(l)){i=1;return r.interrupt?t(o):B(o)}if(He.includes(c.toLowerCase())){i=6;if(s){e.consume(o);return x}return r.interrupt?t(o):B(o)}i=7;return r.interrupt&&!r.parser.lazy[r.now().line]?n(o):u?k(o):b(o)}if(o===45||F(o)){e.consume(o);c+=String.fromCharCode(o);return g}return n(o)}function x(i){if(i===62){e.consume(i);return r.interrupt?t:B}return n(i)}function k(t){if(C(t)){e.consume(t);return k}return _(t)}function b(t){if(t===47){e.consume(t);return _}if(t===58||t===95||y(t)){e.consume(t);return S}if(C(t)){e.consume(t);return b}return _(t)}function S(t){if(t===45||t===46||t===58||t===95||F(t)){e.consume(t);return S}return w(t)}function w(t){if(t===61){e.consume(t);return E}if(C(t)){e.consume(t);return w}return b(t)}function E(t){if(t===null||t===60||t===61||t===62||t===96){return n(t)}if(t===34||t===39){e.consume(t);s=t;return v}if(C(t)){e.consume(t);return E}return T(t)}function v(t){if(t===s){e.consume(t);s=null;return z}if(t===null||A(t)){return n(t)}e.consume(t);return v}function T(t){if(t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||I(t)){return w(t)}e.consume(t);return T}function z(e){if(e===47||e===62||C(e)){return b(e)}return n(e)}function _(t){if(t===62){e.consume(t);return D}return n(t)}function D(t){if(t===null||A(t)){return B(t)}if(C(t)){e.consume(t);return D}return n(t)}function B(t){if(t===45&&i===2){e.consume(t);return O}if(t===60&&i===1){e.consume(t);return j}if(t===62&&i===4){e.consume(t);return V}if(t===63&&i===3){e.consume(t);return q}if(t===93&&i===5){e.consume(t);return R}if(A(t)&&(i===6||i===7)){e.exit("htmlFlowData");return e.check(Ve,Q,L)(t)}if(t===null||A(t)){e.exit("htmlFlowData");return L(t)}e.consume(t);return B}function L(t){return e.check(Qe,M,Q)(t)}function M(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return P}function P(t){if(t===null||A(t)){return L(t)}e.enter("htmlFlowData");return B(t)}function O(t){if(t===45){e.consume(t);return q}return B(t)}function j(t){if(t===47){e.consume(t);c="";return H}return B(t)}function H(t){if(t===62){const n=c.toLowerCase();if(Re.includes(n)){e.consume(t);return V}return B(t)}if(y(t)&&c.length<8){e.consume(t);c+=String.fromCharCode(t);return H}return B(t)}function R(t){if(t===93){e.consume(t);return q}return B(t)}function q(t){if(t===62){e.consume(t);return V}if(t===45&&i===2){e.consume(t);return q}return B(t)}function V(t){if(t===null||A(t)){e.exit("htmlFlowData");return Q(t)}e.consume(t);return V}function Q(n){e.exit("htmlFlow");return t(n)}}function $e(e,t,n){const r=this;return i;function i(t){if(A(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return u}return n(t)}function u(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function We(e,t,n){return r;function r(r){e.enter("lineEnding");e.consume(r);e.exit("lineEnding");return e.attempt(H,t,n)}}const Ze={tokenize:Ge,partial:true};const Ye={name:"codeFenced",tokenize:Je,concrete:true};function Je(e,t,n){const r=this;const i={tokenize:b,partial:true};let u=0;let c=0;let o;return s;function s(e){return l(e)}function l(t){const n=r.events[r.events.length-1];u=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],true).length:0;o=t;e.enter("codeFenced");e.enter("codeFencedFence");e.enter("codeFencedFenceSequence");return f(t)}function f(t){if(t===o){c++;e.consume(t);return f}if(c<3){return n(t)}e.exit("codeFencedFenceSequence");return C(t)?D(e,a,"whitespace")(t):a(t)}function a(n){if(n===null||A(n)){e.exit("codeFencedFence");return r.interrupt?t(n):e.check(Ze,m,F)(n)}e.enter("codeFencedFenceInfo");e.enter("chunkString",{contentType:"string"});return d(n)}function d(t){if(t===null||A(t)){e.exit("chunkString");e.exit("codeFencedFenceInfo");return a(t)}if(C(t)){e.exit("chunkString");e.exit("codeFencedFenceInfo");return D(e,h,"whitespace")(t)}if(t===96&&t===o){return n(t)}e.consume(t);return d}function h(t){if(t===null||A(t)){return a(t)}e.enter("codeFencedFenceMeta");e.enter("chunkString",{contentType:"string"});return p(t)}function p(t){if(t===null||A(t)){e.exit("chunkString");e.exit("codeFencedFenceMeta");return a(t)}if(t===96&&t===o){return n(t)}e.consume(t);return p}function m(t){return e.attempt(i,F,g)(t)}function g(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return x}function x(t){return u>0&&C(t)?D(e,k,"linePrefix",u+1)(t):k(t)}function k(t){if(t===null||A(t)){return e.check(Ze,m,F)(t)}e.enter("codeFlowValue");return y(t)}function y(t){if(t===null||A(t)){e.exit("codeFlowValue");return k(t)}e.consume(t);return y}function F(n){e.exit("codeFenced");return t(n)}function b(e,t,n){let i=0;return u;function u(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return s}function s(t){e.enter("codeFencedFence");return C(t)?D(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t):l(t)}function l(t){if(t===o){e.enter("codeFencedFenceSequence");return f(t)}return n(t)}function f(t){if(t===o){i++;e.consume(t);return f}if(i>=c){e.exit("codeFencedFenceSequence");return C(t)?D(e,a,"whitespace")(t):a(t)}return n(t)}function a(r){if(r===null||A(r)){e.exit("codeFencedFence");return t(r)}return n(r)}}}function Ge(e,t,n){const r=this;return i;function i(t){if(t===null){return n(t)}e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return u}function u(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}const Ke=document.createElement("i");function Xe(e){const t="&"+e+";";Ke.innerHTML=t;const n=Ke.textContent;if(n.charCodeAt(n.length-1)===59&&e!=="semi"){return false}return n===t?false:n}const et={name:"characterReference",tokenize:tt};function tt(e,t,n){const r=this;let i=0;let u;let c;return o;function o(t){e.enter("characterReference");e.enter("characterReferenceMarker");e.consume(t);e.exit("characterReferenceMarker");return s}function s(t){if(t===35){e.enter("characterReferenceMarkerNumeric");e.consume(t);e.exit("characterReferenceMarkerNumeric");return l}e.enter("characterReferenceValue");u=31;c=F;return f(t)}function l(t){if(t===88||t===120){e.enter("characterReferenceMarkerHexadecimal");e.consume(t);e.exit("characterReferenceMarkerHexadecimal");e.enter("characterReferenceValue");u=6;c=E;return f}e.enter("characterReferenceValue");u=7;c=w;return f(t)}function f(o){if(o===59&&i){const i=e.exit("characterReferenceValue");if(c===F&&!Xe(r.sliceSerialize(i))){return n(o)}e.enter("characterReferenceMarker");e.consume(o);e.exit("characterReferenceMarker");e.exit("characterReference");return t}if(c(o)&&i++1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h=Object.assign({},e[r][1].end);const p=Object.assign({},e[n][1].start);St(h,-s);St(p,s);c={type:s>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)};o={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p};u={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)};i={type:s>1?"strong":"emphasis",start:Object.assign({},c.start),end:Object.assign({},o.end)};e[r][1].end=Object.assign({},c.start);e[n][1].start=Object.assign({},o.end);l=[];if(e[r][1].end.offset-e[r][1].start.offset){l=a(l,[["enter",e[r][1],t],["exit",e[r][1],t]])}l=a(l,[["enter",i,t],["enter",c,t],["exit",c,t],["enter",u,t]]);l=a(l,ne(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t));l=a(l,[["exit",u,t],["enter",o,t],["exit",o,t],["exit",i,t]]);if(e[n][1].end.offset-e[n][1].start.offset){d=2;l=a(l,[["enter",e[n][1],t],["exit",e[n][1],t]])}else{d=0}f(e,r-1,n-r+3,l);n=r+l.length-d-2;break}}}}n=-1;while(++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111){return"�"}return String.fromCharCode(n)}const Yt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Jt(e){return e.replace(Yt,Gt)}function Gt(e,t,n){if(t){return t}const r=n.charCodeAt(0);if(r===35){const e=n.charCodeAt(1);const t=e===120||e===88;return Zt(n.slice(t?2:1),t?16:10)}return Xe(n)||e}function Kt(e){if(!e||typeof e!=="object"){return""}if("position"in e||"type"in e){return en(e.position)}if("start"in e||"end"in e){return en(e)}if("line"in e||"column"in e){return Xt(e)}return""}function Xt(e){return tn(e&&e.line)+":"+tn(e&&e.column)}function en(e){return Xt(e&&e.start)+"-"+Xt(e&&e.end)}function tn(e){return e&&typeof e==="number"?e:1}const nn={}.hasOwnProperty;const rn=function(e,t,n){if(typeof t!=="string"){n=t;t=undefined}return un(n)(Wt(Nt(n).document().write($t()(e,t,true))))};function un(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(re),autolinkProtocol:C,autolinkEmail:C,atxHeading:s(X),blockQuote:s(Z),characterEscape:C,characterReference:C,codeFenced:s(Y),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Y,l),codeText:s(J,l),codeTextData:C,data:C,codeFlowValue:C,definition:s(G),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(K),hardBreakEscape:s(ee),hardBreakTrailing:s(ee),htmlFlow:s(te,l),htmlFlowData:C,htmlText:s(te,l),htmlTextData:C,image:s(ne),label:l,link:s(re),listItem:s(ue),listItemValue:m,listOrdered:s(ie,p),listUnordered:s(ie),paragraph:s(ce),reference:V,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(X),strong:s(oe),thematicBreak:s(le)},exit:{atxHeading:a(),atxHeadingSequence:E,autolink:a(),autolinkEmail:W,autolinkProtocol:$,blockQuote:a(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:N,characterReferenceMarkerNumeric:N,characterReferenceValue:U,codeFenced:a(y),codeFencedFence:k,codeFencedFenceInfo:g,codeFencedFenceMeta:x,codeFlowValue:T,codeIndented:a(F),codeText:a(L),codeTextData:T,data:T,definition:a(),definitionDestinationString:w,definitionLabelString:b,definitionTitleString:S,emphasis:a(),hardBreakEscape:a(_),hardBreakTrailing:a(_),htmlFlow:a(D),htmlFlowData:T,htmlText:a(B),htmlTextData:T,image:a(P),label:j,labelText:O,lineEnding:z,link:a(M),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:Q,resourceDestinationString:H,resourceTitleString:R,resource:q,setextHeading:a(I),setextHeadingLineSequence:A,setextHeadingText:v,strong:a(),thematicBreak:a()}};on(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let n={type:"root",children:[]};const r={stack:[n],tokenStack:[],config:t,enter:f,exit:d,buffer:l,resume:h,setData:u,getData:o};const c=[];let s=-1;while(++s0){const e=r.tokenStack[r.tokenStack.length-1];const t=e[1]||ln;t.call(r,undefined,e[0])}n.position={start:cn(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:cn(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})};s=-1;while(++s{if(n!==0){i++;r.push([])}e.split(" ").forEach((e=>{if(e){r[i].push({content:e,type:t})}}))}))}else if(e.type==="strong"||e.type==="emphasis"){e.children.forEach((t=>{u(t,e.type)}))}}n.forEach((e=>{if(e.type==="paragraph"){e.children.forEach((e=>{u(e)}))}}));return r}function hn(e){const{children:t}=rn(e);function n(e){if(e.type==="text"){return e.value.replace(/\n/g,"
")}else if(e.type==="strong"){return`${e.children.map(n).join("")}`}else if(e.type==="emphasis"){return`${e.children.map(n).join("")}`}else if(e.type==="paragraph"){return`

${e.children.map(n).join("")}

`}return`Unsupported markdown: ${e.type}`}return t.map(n).join("")}function pn(e){if(Intl.Segmenter){return[...(new Intl.Segmenter).segment(e)].map((e=>e.segment))}return[...e]}function mn(e,t){const n=pn(t.content);return gn(e,[],n,t.type)}function gn(e,t,n,r){if(n.length===0){return[{content:t.join(""),type:r},{content:"",type:r}]}const[i,...u]=n;const c=[...t,i];if(e([{content:c.join(""),type:r}])){return gn(e,c,u,r)}if(t.length===0&&i){t.push(i);n.shift()}return[{content:t.join(""),type:r},{content:n.join(""),type:r}]}function xn(e,t){if(e.some((({content:e})=>e.includes("\n")))){throw new Error("splitLineToFitWidth does not support newlines in the line")}return kn(e,t)}function kn(e,t,n=[],r=[]){if(e.length===0){if(r.length>0){n.push(r)}return n.length>0?n:[]}let i="";if(e[0].content===" "){i=" ";e.shift()}const u=e.shift()??{content:" ",type:"normal"};const c=[...r];if(i!==""){c.push({content:i,type:"normal"})}c.push(u);if(t(c)){return kn(e,t,n,c)}if(r.length>0){n.push(r);e.unshift(u)}else if(u.content){const[r,i]=mn(t,u);n.push([r]);if(i.content){e.unshift(i)}}return kn(e,t,n)}function yn(e,t){if(t){e.attr("style",t)}}function Fn(e,t,n,r,i=false){const u=e.append("foreignObject");const c=u.append("xhtml:div");const o=t.label;const s=t.isNode?"nodeLabel":"edgeLabel";c.html(`\n "+o+"");yn(c,t.labelStyle);c.style("display","table-cell");c.style("white-space","nowrap");c.style("max-width",n+"px");c.attr("xmlns","http://www.w3.org/1999/xhtml");if(i){c.attr("class","labelBkg")}let l=c.node().getBoundingClientRect();if(l.width===n){c.style("display","table");c.style("white-space","break-spaces");c.style("width",n+"px");l=c.node().getBoundingClientRect()}u.style("width",l.width);u.style("height",l.height);return u.node()}function bn(e,t,n){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*n-.1+"em").attr("dy",n+"em")}function Sn(e,t,n){const r=e.append("text");const i=bn(r,1,t);vn(i,n);const u=i.node().getComputedTextLength();r.remove();return u}function wn(e,t,n){var r;const i=e.append("text");const u=bn(i,1,t);vn(u,[{content:n,type:"normal"}]);const c=(r=u.node())==null?void 0:r.getBoundingClientRect();if(c){i.remove()}return c}function En(e,t,n,r=false){const i=1.1;const u=t.append("g");const c=u.insert("rect").attr("class","background");const o=u.append("text").attr("y","-10.1");let s=0;for(const l of n){const t=t=>Sn(u,i,t)<=e;const n=t(l)?[l]:xn(l,t);for(const e of n){const t=bn(o,s,i);vn(t,e);s++}}if(r){const e=o.node().getBBox();const t=2;c.attr("x",-t).attr("y",-t).attr("width",e.width+2*t).attr("height",e.height+2*t);return u.node()}else{return o.node()}}function vn(e,t){e.text("");t.forEach(((t,n)=>{const r=e.append("tspan").attr("font-style",t.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",t.type==="strong"?"bold":"normal");if(n===0){r.text(t.content)}else{r.text(" "+t.content)}}))}const An=(e,t="",{style:n="",isTitle:r=false,classes:u="",useHtmlLabels:c=true,isNode:o=true,width:s=200,addSvgBackground:l=false}={})=>{i.l.info("createText",t,n,r,u,c,o,l);if(c){const r=hn(t);const c={isNode:o,label:(0,i.J)(r).replace(/fa[blrs]?:fa-[\w-]+/g,(e=>``)),labelStyle:n.replace("fill:","color:")};const f=Fn(e,c,s,u,l);return f}else{const n=dn(t);const r=En(s,e,n,l);return r}}}}]);