import{d as ue,b as Ot,p as Hn,e as jn,g as $n,v as ae,h as Vn,i as Un,j as $t,k as be,l as Xt,V as Wn,m as Ue,n as Qn,q as wt,r as we,u as Yn,E as Gn,w as Zn,x as Pt,y as Jn,z as Kn,A as Xn,B as tr,C as er,D as nr,F as rr,G as ir,H as lr,I as ur,J as ar,K as or,L as sr,M as cr,N as hr,O as fr,P as pr,Q as mr,R as gr,S as kr,T as xr,U as dr,W as yr,X as br,Y as wr,Z as Cr,_ as Sr,$ as Ir,a0 as zr,a1 as Ar,a2 as Tr,a3 as Er,a4 as Fr,a5 as Lr,a6 as Pr,a7 as Dr,a8 as _r,a9 as Br,aa as Mr,ab as Or,ac as Rr}from"./1-vendor-utils-Delnuc0l.js";import{aF as Nt}from"./0-vendor-react-DWOJpYrt.js";const Nr={};function oe(t,n){const e=Nr,r=typeof e.includeImageAlt=="boolean"?e.includeImageAlt:!0,l=typeof e.includeHtml=="boolean"?e.includeHtml:!0;return We(t,r,l)}function We(t,n,e){if(vr(t)){if("value"in t)return t.type==="html"&&!e?"":t.value;if(n&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Ce(t.children,n,e)}return Array.isArray(t)?Ce(t,n,e):""}function Ce(t,n,e){const r=[];let l=-1;for(;++ll?0:l+n:n=n>l?l:n,e=e>0?e:0,r.length<1e4)i=Array.from(r),i.unshift(n,e),t.splice(...i);else for(e&&t.splice(n,e);u0?(Z(t,t.length,0,n),t):n}const Se={}.hasOwnProperty;function Qe(t){const n={};let e=-1;for(;++e13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)===65535||(e&65535)===65534||e>1114111?"�":String.fromCodePoint(e)}function nt(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Q=ht(/[A-Za-z]/),W=ht(/[\dA-Za-z]/),jr=ht(/[#-'*+\--9=?A-Z^-~]/);function vt(t){return t!==null&&(t<32||t===127)}const te=ht(/\d/),$r=ht(/[\dA-Fa-f]/),Vr=ht(/[!-/:-@[-`{-~]/);function T(t){return t!==null&&t<-2}function H(t){return t!==null&&(t<0||t===32)}function P(t){return t===-2||t===-1||t===32}const Ht=ht(new RegExp("\\p{P}|\\p{S}","u")),gt=ht(/\s/);function ht(t){return n;function n(e){return e!==null&&e>-1&&t.test(String.fromCharCode(e))}}function Ct(t){const n=[];let e=-1,r=0,l=0;for(;++e55295&&u<57344){const a=t.charCodeAt(e+1);u<56320&&a>56319&&a<57344?(i=String.fromCharCode(u,a),l=1):i="�"}else i=String.fromCharCode(u);i&&(n.push(t.slice(r,e),encodeURIComponent(i)),r=e+l+1,i=""),l&&(e+=l,l=0)}return n.join("")+t.slice(r)}function M(t,n,e,r){const l=r?r-1:Number.POSITIVE_INFINITY;let u=0;return i;function i(s){return P(s)?(t.enter(e),a(s)):n(s)}function a(s){return P(s)&&u++i))return;const z=n.events.length;let N=z,R,x;for(;N--;)if(n.events[N][0]==="exit"&&n.events[N][1].type==="chunkFlow"){if(R){x=n.events[N][1].end;break}R=!0}for(y(r),b=z;bw;){const B=e[D];n.containerState=B[1],B[0].exit.call(n,t)}e.length=w}function A(){l.write([null]),u=void 0,l=void 0,n.containerState._closeFlow=void 0}}function Gr(t,n,e){return M(t,t.attempt(this.parser.constructs.document,n,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function bt(t){if(t===null||H(t)||gt(t))return 1;if(Ht(t))return 2}function jt(t,n,e){const r=[];let l=-1;for(;++l1&&t[e][1].end.offset-t[e][1].start.offset>1?2:1;const c={...t[r][1].end},p={...t[e][1].start};ze(c,-s),ze(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...t[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...t[e][1].start},end:p},u={type:s>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[e][1].start}},l={type:s>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},t[r][1].end={...i.start},t[e][1].start={...a.end},o=[],t[r][1].end.offset-t[r][1].start.offset&&(o=J(o,[["enter",t[r][1],n],["exit",t[r][1],n]])),o=J(o,[["enter",l,n],["enter",i,n],["exit",i,n],["enter",u,n]]),o=J(o,jt(n.parser.constructs.insideSpan.null,t.slice(r+1,e),n)),o=J(o,[["exit",u,n],["enter",a,n],["exit",a,n],["exit",l,n]]),t[e][1].end.offset-t[e][1].start.offset?(h=2,o=J(o,[["enter",t[e][1],n],["exit",t[e][1],n]])):h=0,Z(t,r-1,e-r+3,o),e=r+o.length-h-2;break}}for(e=-1;++e0&&P(b)?M(t,A,"linePrefix",u+1)(b):A(b)}function A(b){return b===null||T(b)?t.check(Ae,C,D)(b):(t.enter("codeFlowValue"),w(b))}function w(b){return b===null||T(b)?(t.exit("codeFlowValue"),A(b)):(t.consume(b),w)}function D(b){return t.exit("codeFenced"),n(b)}function B(b,z,N){let R=0;return x;function x(O){return b.enter("lineEnding"),b.consume(O),b.exit("lineEnding"),E}function E(O){return b.enter("codeFencedFence"),P(O)?M(b,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):F(O)}function F(O){return O===a?(b.enter("codeFencedFenceSequence"),v(O)):N(O)}function v(O){return O===a?(R++,b.consume(O),v):R>=i?(b.exit("codeFencedFenceSequence"),P(O)?M(b,j,"whitespace")(O):j(O)):N(O)}function j(O){return O===null||T(O)?(b.exit("codeFencedFence"),z(O)):N(O)}}}function ai(t,n,e){const r=this;return l;function l(i){return i===null?e(i):(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),u)}function u(i){return r.parser.lazy[r.now().line]?e(i):n(i)}}const Vt={name:"codeIndented",tokenize:si},oi={partial:!0,tokenize:ci};function si(t,n,e){const r=this;return l;function l(o){return t.enter("codeIndented"),M(t,u,"linePrefix",5)(o)}function u(o){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?i(o):e(o)}function i(o){return o===null?s(o):T(o)?t.attempt(oi,i,s)(o):(t.enter("codeFlowValue"),a(o))}function a(o){return o===null||T(o)?(t.exit("codeFlowValue"),i(o)):(t.consume(o),a)}function s(o){return t.exit("codeIndented"),n(o)}}function ci(t,n,e){const r=this;return l;function l(i){return r.parser.lazy[r.now().line]?e(i):T(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),l):M(t,u,"linePrefix",5)(i)}function u(i){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(i):T(i)?l(i):e(i)}}const hi={name:"codeText",previous:pi,resolve:fi,tokenize:mi};function fi(t){let n=t.length-4,e=3,r,l;if((t[e][1].type==="lineEnding"||t[e][1].type==="space")&&(t[n][1].type==="lineEnding"||t[n][1].type==="space")){for(r=e;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return nthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,e,r){const l=e||0;this.setCursor(Math.trunc(n));const u=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return r&&At(this.left,r),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),At(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),At(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n=4?n(i):t.interrupt(r.parser.constructs.flow,e,n)(i)}}function Xe(t,n,e,r,l,u,i,a,s){const o=s||Number.POSITIVE_INFINITY;let h=0;return c;function c(y){return y===60?(t.enter(r),t.enter(l),t.enter(u),t.consume(y),t.exit(u),p):y===null||y===32||y===41||vt(y)?e(y):(t.enter(r),t.enter(i),t.enter(a),t.enter("chunkString",{contentType:"string"}),C(y))}function p(y){return y===62?(t.enter(u),t.consume(y),t.exit(u),t.exit(l),t.exit(r),n):(t.enter(a),t.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===62?(t.exit("chunkString"),t.exit(a),p(y)):y===null||y===60||T(y)?e(y):(t.consume(y),y===92?k:f)}function k(y){return y===60||y===62||y===92?(t.consume(y),f):f(y)}function C(y){return!h&&(y===null||y===41||H(y))?(t.exit("chunkString"),t.exit(a),t.exit(i),t.exit(r),n(y)):h999||f===null||f===91||f===93&&!s||f===94&&!a&&"_hiddenFootnoteSupport"in i.parser.constructs?e(f):f===93?(t.exit(u),t.enter(l),t.consume(f),t.exit(l),t.exit(r),n):T(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),h):(t.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===null||f===91||f===93||T(f)||a++>999?(t.exit("chunkString"),h(f)):(t.consume(f),s||(s=!P(f)),f===92?p:c)}function p(f){return f===91||f===92||f===93?(t.consume(f),a++,c):c(f)}}function en(t,n,e,r,l,u){let i;return a;function a(p){return p===34||p===39||p===40?(t.enter(r),t.enter(l),t.consume(p),t.exit(l),i=p===40?41:p,s):e(p)}function s(p){return p===i?(t.enter(l),t.consume(p),t.exit(l),t.exit(r),n):(t.enter(u),o(p))}function o(p){return p===i?(t.exit(u),s(i)):p===null?e(p):T(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),M(t,o,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===i||p===null||T(p)?(t.exit("chunkString"),o(p)):(t.consume(p),p===92?c:h)}function c(p){return p===i||p===92?(t.consume(p),h):h(p)}}function Tt(t,n){let e;return r;function r(l){return T(l)?(t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),e=!0,r):P(l)?M(t,r,e?"linePrefix":"lineSuffix")(l):n(l)}}const Ci={name:"definition",tokenize:Ii},Si={partial:!0,tokenize:zi};function Ii(t,n,e){const r=this;let l;return u;function u(f){return t.enter("definition"),i(f)}function i(f){return tn.call(r,t,a,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return l=nt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(t.enter("definitionMarker"),t.consume(f),t.exit("definitionMarker"),s):e(f)}function s(f){return H(f)?Tt(t,o)(f):o(f)}function o(f){return Xe(t,h,e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function h(f){return t.attempt(Si,c,c)(f)}function c(f){return P(f)?M(t,p,"whitespace")(f):p(f)}function p(f){return f===null||T(f)?(t.exit("definition"),r.parser.defined.push(l),n(f)):e(f)}}function zi(t,n,e){return r;function r(a){return H(a)?Tt(t,l)(a):e(a)}function l(a){return en(t,u,e,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function u(a){return P(a)?M(t,i,"whitespace")(a):i(a)}function i(a){return a===null||T(a)?n(a):e(a)}}const Ai={name:"hardBreakEscape",tokenize:Ti};function Ti(t,n,e){return r;function r(u){return t.enter("hardBreakEscape"),t.consume(u),l}function l(u){return T(u)?(t.exit("hardBreakEscape"),n(u)):e(u)}}const Ei={name:"headingAtx",resolve:Fi,tokenize:Li};function Fi(t,n){let e=t.length-2,r=3,l,u;return t[r][1].type==="whitespace"&&(r+=2),e-2>r&&t[e][1].type==="whitespace"&&(e-=2),t[e][1].type==="atxHeadingSequence"&&(r===e-1||e-4>r&&t[e-2][1].type==="whitespace")&&(e-=r+1===e?2:4),e>r&&(l={type:"atxHeadingText",start:t[r][1].start,end:t[e][1].end},u={type:"chunkText",start:t[r][1].start,end:t[e][1].end,contentType:"text"},Z(t,r,e-r+1,[["enter",l,n],["enter",u,n],["exit",u,n],["exit",l,n]])),t}function Li(t,n,e){let r=0;return l;function l(h){return t.enter("atxHeading"),u(h)}function u(h){return t.enter("atxHeadingSequence"),i(h)}function i(h){return h===35&&r++<6?(t.consume(h),i):h===null||H(h)?(t.exit("atxHeadingSequence"),a(h)):e(h)}function a(h){return h===35?(t.enter("atxHeadingSequence"),s(h)):h===null||T(h)?(t.exit("atxHeading"),n(h)):P(h)?M(t,a,"whitespace")(h):(t.enter("atxHeadingText"),o(h))}function s(h){return h===35?(t.consume(h),s):(t.exit("atxHeadingSequence"),a(h))}function o(h){return h===null||h===35||H(h)?(t.exit("atxHeadingText"),a(h)):(t.consume(h),o)}}const Pi=["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"],Ee=["pre","script","style","textarea"],Di={concrete:!0,name:"htmlFlow",resolveTo:Mi,tokenize:Oi},_i={partial:!0,tokenize:Ni},Bi={partial:!0,tokenize:Ri};function Mi(t){let n=t.length;for(;n--&&!(t[n][0]==="enter"&&t[n][1].type==="htmlFlow"););return n>1&&t[n-2][1].type==="linePrefix"&&(t[n][1].start=t[n-2][1].start,t[n+1][1].start=t[n-2][1].start,t.splice(n-2,2)),t}function Oi(t,n,e){const r=this;let l,u,i,a,s;return o;function o(g){return h(g)}function h(g){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(g),c}function c(g){return g===33?(t.consume(g),p):g===47?(t.consume(g),u=!0,C):g===63?(t.consume(g),l=3,r.interrupt?n:m):Q(g)?(t.consume(g),i=String.fromCharCode(g),I):e(g)}function p(g){return g===45?(t.consume(g),l=2,f):g===91?(t.consume(g),l=5,a=0,k):Q(g)?(t.consume(g),l=4,r.interrupt?n:m):e(g)}function f(g){return g===45?(t.consume(g),r.interrupt?n:m):e(g)}function k(g){const tt="CDATA[";return g===tt.charCodeAt(a++)?(t.consume(g),a===tt.length?r.interrupt?n:F:k):e(g)}function C(g){return Q(g)?(t.consume(g),i=String.fromCharCode(g),I):e(g)}function I(g){if(g===null||g===47||g===62||H(g)){const tt=g===47,ft=i.toLowerCase();return!tt&&!u&&Ee.includes(ft)?(l=1,r.interrupt?n(g):F(g)):Pi.includes(i.toLowerCase())?(l=6,tt?(t.consume(g),y):r.interrupt?n(g):F(g)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?e(g):u?A(g):w(g))}return g===45||W(g)?(t.consume(g),i+=String.fromCharCode(g),I):e(g)}function y(g){return g===62?(t.consume(g),r.interrupt?n:F):e(g)}function A(g){return P(g)?(t.consume(g),A):x(g)}function w(g){return g===47?(t.consume(g),x):g===58||g===95||Q(g)?(t.consume(g),D):P(g)?(t.consume(g),w):x(g)}function D(g){return g===45||g===46||g===58||g===95||W(g)?(t.consume(g),D):B(g)}function B(g){return g===61?(t.consume(g),b):P(g)?(t.consume(g),B):w(g)}function b(g){return g===null||g===60||g===61||g===62||g===96?e(g):g===34||g===39?(t.consume(g),s=g,z):P(g)?(t.consume(g),b):N(g)}function z(g){return g===s?(t.consume(g),s=null,R):g===null||T(g)?e(g):(t.consume(g),z)}function N(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||H(g)?B(g):(t.consume(g),N)}function R(g){return g===47||g===62||P(g)?w(g):e(g)}function x(g){return g===62?(t.consume(g),E):e(g)}function E(g){return g===null||T(g)?F(g):P(g)?(t.consume(g),E):e(g)}function F(g){return g===45&&l===2?(t.consume(g),U):g===60&&l===1?(t.consume(g),$):g===62&&l===4?(t.consume(g),X):g===63&&l===3?(t.consume(g),m):g===93&&l===5?(t.consume(g),it):T(g)&&(l===6||l===7)?(t.exit("htmlFlowData"),t.check(_i,lt,v)(g)):g===null||T(g)?(t.exit("htmlFlowData"),v(g)):(t.consume(g),F)}function v(g){return t.check(Bi,j,lt)(g)}function j(g){return t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),O}function O(g){return g===null||T(g)?v(g):(t.enter("htmlFlowData"),F(g))}function U(g){return g===45?(t.consume(g),m):F(g)}function $(g){return g===47?(t.consume(g),i="",K):F(g)}function K(g){if(g===62){const tt=i.toLowerCase();return Ee.includes(tt)?(t.consume(g),X):F(g)}return Q(g)&&i.length<8?(t.consume(g),i+=String.fromCharCode(g),K):F(g)}function it(g){return g===93?(t.consume(g),m):F(g)}function m(g){return g===62?(t.consume(g),X):g===45&&l===2?(t.consume(g),m):F(g)}function X(g){return g===null||T(g)?(t.exit("htmlFlowData"),lt(g)):(t.consume(g),X)}function lt(g){return t.exit("htmlFlow"),n(g)}}function Ri(t,n,e){const r=this;return l;function l(i){return T(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),u):e(i)}function u(i){return r.parser.lazy[r.now().line]?e(i):n(i)}}function Ni(t,n,e){return r;function r(l){return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),t.attempt(Ft,n,e)}}const vi={name:"htmlText",tokenize:qi};function qi(t,n,e){const r=this;let l,u,i;return a;function a(m){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(m),s}function s(m){return m===33?(t.consume(m),o):m===47?(t.consume(m),B):m===63?(t.consume(m),w):Q(m)?(t.consume(m),N):e(m)}function o(m){return m===45?(t.consume(m),h):m===91?(t.consume(m),u=0,k):Q(m)?(t.consume(m),A):e(m)}function h(m){return m===45?(t.consume(m),f):e(m)}function c(m){return m===null?e(m):m===45?(t.consume(m),p):T(m)?(i=c,$(m)):(t.consume(m),c)}function p(m){return m===45?(t.consume(m),f):c(m)}function f(m){return m===62?U(m):m===45?p(m):c(m)}function k(m){const X="CDATA[";return m===X.charCodeAt(u++)?(t.consume(m),u===X.length?C:k):e(m)}function C(m){return m===null?e(m):m===93?(t.consume(m),I):T(m)?(i=C,$(m)):(t.consume(m),C)}function I(m){return m===93?(t.consume(m),y):C(m)}function y(m){return m===62?U(m):m===93?(t.consume(m),y):C(m)}function A(m){return m===null||m===62?U(m):T(m)?(i=A,$(m)):(t.consume(m),A)}function w(m){return m===null?e(m):m===63?(t.consume(m),D):T(m)?(i=w,$(m)):(t.consume(m),w)}function D(m){return m===62?U(m):w(m)}function B(m){return Q(m)?(t.consume(m),b):e(m)}function b(m){return m===45||W(m)?(t.consume(m),b):z(m)}function z(m){return T(m)?(i=z,$(m)):P(m)?(t.consume(m),z):U(m)}function N(m){return m===45||W(m)?(t.consume(m),N):m===47||m===62||H(m)?R(m):e(m)}function R(m){return m===47?(t.consume(m),U):m===58||m===95||Q(m)?(t.consume(m),x):T(m)?(i=R,$(m)):P(m)?(t.consume(m),R):U(m)}function x(m){return m===45||m===46||m===58||m===95||W(m)?(t.consume(m),x):E(m)}function E(m){return m===61?(t.consume(m),F):T(m)?(i=E,$(m)):P(m)?(t.consume(m),E):R(m)}function F(m){return m===null||m===60||m===61||m===62||m===96?e(m):m===34||m===39?(t.consume(m),l=m,v):T(m)?(i=F,$(m)):P(m)?(t.consume(m),F):(t.consume(m),j)}function v(m){return m===l?(t.consume(m),l=void 0,O):m===null?e(m):T(m)?(i=v,$(m)):(t.consume(m),v)}function j(m){return m===null||m===34||m===39||m===60||m===61||m===96?e(m):m===47||m===62||H(m)?R(m):(t.consume(m),j)}function O(m){return m===47||m===62||H(m)?R(m):e(m)}function U(m){return m===62?(t.consume(m),t.exit("htmlTextData"),t.exit("htmlText"),n):e(m)}function $(m){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),K}function K(m){return P(m)?M(t,it,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):it(m)}function it(m){return t.enter("htmlTextData"),i(m)}}const se={name:"labelEnd",resolveAll:Vi,resolveTo:Ui,tokenize:Wi},Hi={tokenize:Qi},ji={tokenize:Yi},$i={tokenize:Gi};function Vi(t){let n=-1;const e=[];for(;++n=3&&(o===null||T(o))?(t.exit("thematicBreak"),n(o)):e(o)}function s(o){return o===l?(t.consume(o),r++,s):(t.exit("thematicBreakSequence"),P(o)?M(t,a,"whitespace")(o):a(o))}}const Y={continuation:{tokenize:ll},exit:al,name:"list",tokenize:il},nl={partial:!0,tokenize:ol},rl={partial:!0,tokenize:ul};function il(t,n,e){const r=this,l=r.events[r.events.length-1];let u=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,i=0;return a;function a(f){const k=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:te(f)){if(r.containerState.type||(r.containerState.type=k,t.enter(k,{_container:!0})),k==="listUnordered")return t.enter("listItemPrefix"),f===42||f===45?t.check(Rt,e,o)(f):o(f);if(!r.interrupt||f===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),s(f)}return e(f)}function s(f){return te(f)&&++i<10?(t.consume(f),s):(!r.interrupt||i<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(t.exit("listItemValue"),o(f)):e(f)}function o(f){return t.enter("listItemMarker"),t.consume(f),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,t.check(Ft,r.interrupt?e:h,t.attempt(nl,p,c))}function h(f){return r.containerState.initialBlankLine=!0,u++,p(f)}function c(f){return P(f)?(t.enter("listItemPrefixWhitespace"),t.consume(f),t.exit("listItemPrefixWhitespace"),p):e(f)}function p(f){return r.containerState.size=u+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,n(f)}}function ll(t,n,e){const r=this;return r.containerState._closeFlow=void 0,t.check(Ft,l,u);function l(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,M(t,n,"listItemIndent",r.containerState.size+1)(a)}function u(a){return r.containerState.furtherBlankLines||!P(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(rl,n,i)(a))}function i(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,M(t,t.attempt(Y,n,e),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ul(t,n,e){const r=this;return M(t,l,"listItemIndent",r.containerState.size+1);function l(u){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?n(u):e(u)}}function al(t){t.exit(this.containerState.type)}function ol(t,n,e){const r=this;return M(t,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(u){const i=r.events[r.events.length-1];return!P(u)&&i&&i[1].type==="listItemPrefixWhitespace"?n(u):e(u)}}const Fe={name:"setextUnderline",resolveTo:sl,tokenize:cl};function sl(t,n){let e=t.length,r,l,u;for(;e--;)if(t[e][0]==="enter"){if(t[e][1].type==="content"){r=e;break}t[e][1].type==="paragraph"&&(l=e)}else t[e][1].type==="content"&&t.splice(e,1),!u&&t[e][1].type==="definition"&&(u=e);const i={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[l][1].type="setextHeadingText",u?(t.splice(l,0,["enter",i,n]),t.splice(u+1,0,["exit",t[r][1],n]),t[r][1].end={...t[u][1].end}):t[r][1]=i,t.push(["exit",i,n]),t}function cl(t,n,e){const r=this;let l;return u;function u(o){let h=r.events.length,c;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){c=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(t.enter("setextHeadingLine"),l=o,i(o)):e(o)}function i(o){return t.enter("setextHeadingLineSequence"),a(o)}function a(o){return o===l?(t.consume(o),a):(t.exit("setextHeadingLineSequence"),P(o)?M(t,s,"lineSuffix")(o):s(o))}function s(o){return o===null||T(o)?(t.exit("setextHeadingLine"),n(o)):e(o)}}const hl={tokenize:fl};function fl(t){const n=this,e=t.attempt(Ft,r,t.attempt(this.parser.constructs.flowInitial,l,M(t,t.attempt(this.parser.constructs.flow,l,t.attempt(xi,l)),"linePrefix")));return e;function r(u){if(u===null){t.consume(u);return}return t.enter("lineEndingBlank"),t.consume(u),t.exit("lineEndingBlank"),n.currentConstruct=void 0,e}function l(u){if(u===null){t.consume(u);return}return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),n.currentConstruct=void 0,e}}const pl={resolveAll:rn()},ml=nn("string"),gl=nn("text");function nn(t){return{resolveAll:rn(t==="text"?kl:void 0),tokenize:n};function n(e){const r=this,l=this.parser.constructs[t],u=e.attempt(l,i,a);return i;function i(h){return o(h)?u(h):a(h)}function a(h){if(h===null){e.consume(h);return}return e.enter("data"),e.consume(h),s}function s(h){return o(h)?(e.exit("data"),u(h)):(e.consume(h),s)}function o(h){if(h===null)return!0;const c=l[h];let p=-1;if(c)for(;++p-1){const a=i[0];typeof a=="string"?i[0]=a.slice(r):i.shift()}u>0&&i.push(t[l].slice(0,u))}return i}function Fl(t,n){let e=-1;const r=[];let l;for(;++e0){const et=L.tokenStack[L.tokenStack.length-1];(et[1]||Pe).call(L,void 0,et[0])}for(S.position={start:ct(d.length>0?d[0][1].start:{line:1,column:1,offset:0}),end:ct(d.length>0?d[d.length-2][1].end:{line:1,column:1,offset:0})},q=-1;++q0&&(r.className=["language-"+l[0]]);let u={type:"element",tagName:"code",properties:r,children:[{type:"text",value:e}]};return n.meta&&(u.data={meta:n.meta}),t.patch(n,u),u=t.applyData(n,u),u={type:"element",tagName:"pre",properties:{},children:[u]},t.patch(n,u),u}function jl(t,n){const e={type:"element",tagName:"del",properties:{},children:t.all(n)};return t.patch(n,e),t.applyData(n,e)}function $l(t,n){const e={type:"element",tagName:"em",properties:{},children:t.all(n)};return t.patch(n,e),t.applyData(n,e)}function Vl(t,n){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),l=Ct(r.toLowerCase()),u=t.footnoteOrder.indexOf(r);let i,a=t.footnoteCounts.get(r);a===void 0?(a=0,t.footnoteOrder.push(r),i=t.footnoteOrder.length):i=u+1,a+=1,t.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+e+"fn-"+l,id:e+"fnref-"+l+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};t.patch(n,s);const o={type:"element",tagName:"sup",properties:{},children:[s]};return t.patch(n,o),t.applyData(n,o)}function Ul(t,n){const e={type:"element",tagName:"h"+n.depth,properties:{},children:t.all(n)};return t.patch(n,e),t.applyData(n,e)}function Wl(t,n){if(t.options.allowDangerousHtml){const e={type:"raw",value:n.value};return t.patch(n,e),t.applyData(n,e)}}function an(t,n){const e=n.referenceType;let r="]";if(e==="collapsed"?r+="[]":e==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const l=t.all(n),u=l[0];u&&u.type==="text"?u.value="["+u.value:l.unshift({type:"text",value:"["});const i=l[l.length-1];return i&&i.type==="text"?i.value+=r:l.push({type:"text",value:r}),l}function Ql(t,n){const e=String(n.identifier).toUpperCase(),r=t.definitionById.get(e);if(!r)return an(t,n);const l={src:Ct(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const u={type:"element",tagName:"img",properties:l,children:[]};return t.patch(n,u),t.applyData(n,u)}function Yl(t,n){const e={src:Ct(n.url)};n.alt!==null&&n.alt!==void 0&&(e.alt=n.alt),n.title!==null&&n.title!==void 0&&(e.title=n.title);const r={type:"element",tagName:"img",properties:e,children:[]};return t.patch(n,r),t.applyData(n,r)}function Gl(t,n){const e={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};t.patch(n,e);const r={type:"element",tagName:"code",properties:{},children:[e]};return t.patch(n,r),t.applyData(n,r)}function Zl(t,n){const e=String(n.identifier).toUpperCase(),r=t.definitionById.get(e);if(!r)return an(t,n);const l={href:Ct(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const u={type:"element",tagName:"a",properties:l,children:t.all(n)};return t.patch(n,u),t.applyData(n,u)}function Jl(t,n){const e={href:Ct(n.url)};n.title!==null&&n.title!==void 0&&(e.title=n.title);const r={type:"element",tagName:"a",properties:e,children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function Kl(t,n,e){const r=t.all(n),l=e?Xl(e):on(n),u={},i=[];if(typeof n.checked=="boolean"){const h=r[0];let c;h&&h.type==="element"&&h.tagName==="p"?c=h:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let a=-1;for(;++a1}function tu(t,n){const e={},r=t.all(n);let l=-1;for(typeof n.start=="number"&&n.start!==1&&(e.start=n.start);++l0){const i={type:"element",tagName:"tbody",properties:{},children:t.wrap(e,!0)},a=Hn(n.children[1]),s=jn(n.children[n.children.length-1]);a&&s&&(i.position={start:a,end:s}),l.push(i)}const u={type:"element",tagName:"table",properties:{},children:t.wrap(l,!0)};return t.patch(n,u),t.applyData(n,u)}function lu(t,n,e){const r=e?e.children:void 0,u=(r?r.indexOf(n):1)===0?"th":"td",i=e&&e.type==="table"?e.align:void 0,a=i?i.length:n.children.length;let s=-1;const o=[];for(;++s1&&e.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),e}function hu(t,n){return"Back to reference "+(t+1)+(n>1?"-"+n:"")}function fu(t){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",e=t.options.footnoteBackContent||cu,r=t.options.footnoteBackLabel||hu,l=t.options.footnoteLabel||"Footnotes",u=t.options.footnoteLabelTagName||"h2",i=t.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s0&&k.push({type:"text",value:" "});let A=typeof e=="string"?e:e(s,f);typeof A=="string"&&(A={type:"text",value:A}),k.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,f),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const I=h[h.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const A=I.children[I.children.length-1];A&&A.type==="text"?A.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...k)}else h.push(...k);const y={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:t.wrap(h,!0)};t.patch(o,y),a.push(y)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Nt(i),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:t.wrap(a,!0)},{type:"text",value:` `}]}}const ne={}.hasOwnProperty,pu={};function mu(t,n){const e=n||pu,r=new Map,l=new Map,u=new Map,i={...su,...e.handlers},a={all:o,applyData:ku,definitionById:r,footnoteById:l,footnoteCounts:u,footnoteOrder:[],handlers:i,one:s,options:e,patch:gu,wrap:du};return ae(t,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const c=h.type==="definition"?r:l,p=String(h.identifier).toUpperCase();c.has(p)||c.set(p,h)}}),a;function s(h,c){const p=h.type,f=a.handlers[p];if(ne.call(a.handlers,p)&&f)return f(a,h,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in h){const{children:C,...I}=h,y=Nt(I);return y.children=a.all(h),y}return Nt(h)}return(a.options.unknownHandler||xu)(a,h,c)}function o(h){const c=[];if("children"in h){const p=h.children;let f=-1;for(;++f0&&e.push({type:"text",value:` `}),e}function De(t){let n=0,e=t.charCodeAt(n);for(;e===9||e===32;)n++,e=t.charCodeAt(n);return t.slice(n)}function _e(t,n){const e=mu(t,n),r=e.one(t,void 0),l=fu(e),u=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&u.children.push({type:"text",value:` `},l),u}function Go(t,n){return t&&"run"in t?async function(e,r){const l=_e(e,{file:r,...n});await t.run(l,r)}:function(e,r){return _e(e,{file:r,...t||n})}}const yu=(function(t){const r=this.constructor.prototype,l=r[t],u=function(){return l.apply(u,arguments)};return Object.setPrototypeOf(u,r),u}),bu={}.hasOwnProperty;class ce extends yu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Un()}copy(){const n=new ce;let e=-1;for(;++e0){let[f,...k]=h;const C=r[p][1];Xt(C)&&Xt(f)&&(f=$t(!0,C,f)),r[p]=[o,f,...k]}}}}const Zo=new ce().freeze();function Wt(t,n){if(typeof n!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Qt(t,n){if(typeof n!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Yt(t,n){if(n)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Be(t){if(!Xt(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Me(t,n,e){if(!e)throw new Error("`"+t+"` finished async. Use `"+n+"` instead")}function _t(t){return wu(t)?t:new Wn(t)}function wu(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function Cu(t){return typeof t=="string"||Su(t)}function Su(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}function Iu(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function zu(t,n,e){const l=Ue((e||{}).ignore||[]),u=Au(n);let i=-1;for(;++i0?{type:"text",value:b}:void 0),b===!1?p.lastIndex=D+1:(k!==D&&A.push({type:"text",value:o.value.slice(k,D)}),Array.isArray(b)?A.push(...b):b&&A.push(b),k=D+w[0].length,y=!0),!p.global)break;w=p.exec(o.value)}return y?(k?\]}]+$/.exec(t);if(!n)return[t,void 0];t=t.slice(0,n.index);let e=n[0],r=e.indexOf(")");const l=we(t,"(");let u=we(t,")");for(;r!==-1&&l>u;)t+=e.slice(0,r+1),e=e.slice(r+1),r=e.indexOf(")"),u++;return[t,e]}function sn(t,n){const e=t.input.charCodeAt(t.index-1);return(t.index===0||gt(e)||Ht(e))&&(!n||e!==47)}cn.peek=Gu;function Hu(){this.buffer()}function ju(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function $u(){this.buffer()}function Vu(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function Uu(t){const n=this.resume(),e=this.stack[this.stack.length-1];wt(e.type==="footnoteReference"),e.identifier=nt(this.sliceSerialize(t)).toLowerCase(),e.label=n}function Wu(t){this.exit(t)}function Qu(t){const n=this.resume(),e=this.stack[this.stack.length-1];wt(e.type==="footnoteDefinition"),e.identifier=nt(this.sliceSerialize(t)).toLowerCase(),e.label=n}function Yu(t){this.exit(t)}function Gu(){return"["}function cn(t,n,e,r){const l=e.createTracker(r);let u=l.move("[^");const i=e.enter("footnoteReference"),a=e.enter("reference");return u+=l.move(e.safe(e.associationId(t),{after:"]",before:u})),a(),i(),u+=l.move("]"),u}function Zu(){return{enter:{gfmFootnoteCallString:Hu,gfmFootnoteCall:ju,gfmFootnoteDefinitionLabelString:$u,gfmFootnoteDefinition:Vu},exit:{gfmFootnoteCallString:Uu,gfmFootnoteCall:Wu,gfmFootnoteDefinitionLabelString:Qu,gfmFootnoteDefinition:Yu}}}function Ju(t){let n=!1;return t&&t.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:e,footnoteReference:cn},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function e(r,l,u,i){const a=u.createTracker(i);let s=a.move("[^");const o=u.enter("footnoteDefinition"),h=u.enter("label");return s+=a.move(u.safe(u.associationId(r),{before:s,after:"]"})),h(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((n?` `:" ")+u.indentLines(u.containerFlow(r,a.current()),n?hn:Ku))),o(),s}}function Ku(t,n,e){return n===0?t:hn(t,n,e)}function hn(t,n,e){return(e?"":" ")+t}const Xu=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];fn.peek=ia;function ta(){return{canContainEols:["delete"],enter:{strikethrough:na},exit:{strikethrough:ra}}}function ea(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Xu}],handlers:{delete:fn}}}function na(t){this.enter({type:"delete",children:[]},t)}function ra(t){this.exit(t)}function fn(t,n,e,r){const l=e.createTracker(r),u=e.enter("strikethrough");let i=l.move("~~");return i+=e.containerPhrasing(t,{...l.current(),before:i,after:"~"}),i+=l.move("~~"),u(),i}function ia(){return"~"}function la(t,n,e,r){const l=e.enter("blockquote"),u=e.createTracker(r);u.move("> "),u.shift(2);const i=e.indentLines(e.containerFlow(t,u.current()),ua);return l(),i}function ua(t,n,e){return">"+(e?"":" ")+t}function aa(t,n){return Oe(t,n.inConstruct,!0)&&!Oe(t,n.notInConstruct,!1)}function Oe(t,n,e){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return e;let r=-1;for(;++r",...s.current()})),o+=s.move(">")):(a=e.enter("destinationRaw"),o+=s.move(e.safe(t.url,{before:o,after:t.title?" ":` `,...s.current()}))),a(),t.title&&(a=e.enter(`title${u}`),o+=s.move(" "+l),o+=s.move(e.safe(t.title,{before:o,after:l,...s.current()})),o+=s.move(l),a()),i(),o}function pa(t){const n=t.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Et(t){return"&#x"+t.toString(16).toUpperCase()+";"}function qt(t,n,e){const r=bt(t),l=bt(n);return r===void 0?l===void 0?e==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}pn.peek=ma;function pn(t,n,e,r){const l=pa(e),u=e.enter("emphasis"),i=e.createTracker(r),a=i.move(l);let s=i.move(e.containerPhrasing(t,{after:l,before:a,...i.current()}));const o=s.charCodeAt(0),h=qt(r.before.charCodeAt(r.before.length-1),o,l);h.inside&&(s=Et(o)+s.slice(1));const c=s.charCodeAt(s.length-1),p=qt(r.after.charCodeAt(0),c,l);p.inside&&(s=s.slice(0,-1)+Et(c));const f=i.move(l);return u(),e.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},a+s+f}function ma(t,n,e){return e.options.emphasis||"*"}function ga(t,n){let e=!1;return ae(t,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return e=!0,Gn}),!!((!t.depth||t.depth<3)&&oe(t)&&(n.options.setext||e))}function ka(t,n,e,r){const l=Math.max(Math.min(6,t.depth||1),1),u=e.createTracker(r);if(ga(t,e)){const h=e.enter("headingSetext"),c=e.enter("phrasing"),p=e.containerPhrasing(t,{...u.current(),before:` `,after:` `});return c(),h(),p+` `+(l===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` `))+1))}const i="#".repeat(l),a=e.enter("headingAtx"),s=e.enter("phrasing");u.move(i+" ");let o=e.containerPhrasing(t,{before:"# ",after:` `,...u.current()});return/^[\t ]/.test(o)&&(o=Et(o.charCodeAt(0))+o.slice(1)),o=o?i+" "+o:i,e.options.closeAtx&&(o+=" "+i),s(),a(),o}mn.peek=xa;function mn(t){return t.value||""}function xa(){return"<"}gn.peek=da;function gn(t,n,e,r){const l=he(e),u=l==='"'?"Quote":"Apostrophe",i=e.enter("image");let a=e.enter("label");const s=e.createTracker(r);let o=s.move("![");return o+=s.move(e.safe(t.alt,{before:o,after:"]",...s.current()})),o+=s.move("]("),a(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(a=e.enter("destinationLiteral"),o+=s.move("<"),o+=s.move(e.safe(t.url,{before:o,after:">",...s.current()})),o+=s.move(">")):(a=e.enter("destinationRaw"),o+=s.move(e.safe(t.url,{before:o,after:t.title?" ":")",...s.current()}))),a(),t.title&&(a=e.enter(`title${u}`),o+=s.move(" "+l),o+=s.move(e.safe(t.title,{before:o,after:l,...s.current()})),o+=s.move(l),a()),o+=s.move(")"),i(),o}function da(){return"!"}kn.peek=ya;function kn(t,n,e,r){const l=t.referenceType,u=e.enter("imageReference");let i=e.enter("label");const a=e.createTracker(r);let s=a.move("![");const o=e.safe(t.alt,{before:s,after:"]",...a.current()});s+=a.move(o+"]["),i();const h=e.stack;e.stack=[],i=e.enter("reference");const c=e.safe(e.associationId(t),{before:s,after:"]",...a.current()});return i(),e.stack=h,u(),l==="full"||!o||o!==c?s+=a.move(c+"]"):l==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function ya(){return"!"}xn.peek=ba;function xn(t,n,e){let r=t.value||"",l="`",u=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(r);)l+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++u\u007F]/.test(t.url))}yn.peek=wa;function yn(t,n,e,r){const l=he(e),u=l==='"'?"Quote":"Apostrophe",i=e.createTracker(r);let a,s;if(dn(t,e)){const h=e.stack;e.stack=[],a=e.enter("autolink");let c=i.move("<");return c+=i.move(e.containerPhrasing(t,{before:c,after:">",...i.current()})),c+=i.move(">"),a(),e.stack=h,c}a=e.enter("link"),s=e.enter("label");let o=i.move("[");return o+=i.move(e.containerPhrasing(t,{before:o,after:"](",...i.current()})),o+=i.move("]("),s(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(s=e.enter("destinationLiteral"),o+=i.move("<"),o+=i.move(e.safe(t.url,{before:o,after:">",...i.current()})),o+=i.move(">")):(s=e.enter("destinationRaw"),o+=i.move(e.safe(t.url,{before:o,after:t.title?" ":")",...i.current()}))),s(),t.title&&(s=e.enter(`title${u}`),o+=i.move(" "+l),o+=i.move(e.safe(t.title,{before:o,after:l,...i.current()})),o+=i.move(l),s()),o+=i.move(")"),a(),o}function wa(t,n,e){return dn(t,e)?"<":"["}bn.peek=Ca;function bn(t,n,e,r){const l=t.referenceType,u=e.enter("linkReference");let i=e.enter("label");const a=e.createTracker(r);let s=a.move("[");const o=e.containerPhrasing(t,{before:s,after:"]",...a.current()});s+=a.move(o+"]["),i();const h=e.stack;e.stack=[],i=e.enter("reference");const c=e.safe(e.associationId(t),{before:s,after:"]",...a.current()});return i(),e.stack=h,u(),l==="full"||!o||o!==c?s+=a.move(c+"]"):l==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function Ca(){return"["}function fe(t){const n=t.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function Sa(t){const n=fe(t),e=t.options.bulletOther;if(!e)return n==="*"?"-":"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(e===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+e+"`) to be different");return e}function Ia(t){const n=t.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function wn(t){const n=t.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function za(t,n,e,r){const l=e.enter("list"),u=e.bulletCurrent;let i=t.ordered?Ia(e):fe(e);const a=t.ordered?i==="."?")":".":Sa(e);let s=n&&e.bulletLastUsed?i===e.bulletLastUsed:!1;if(!t.ordered){const h=t.children?t.children[0]:void 0;if((i==="*"||i==="-")&&h&&(!h.children||!h.children[0])&&e.stack[e.stack.length-1]==="list"&&e.stack[e.stack.length-2]==="listItem"&&e.stack[e.stack.length-3]==="list"&&e.stack[e.stack.length-4]==="listItem"&&e.indexStack[e.indexStack.length-1]===0&&e.indexStack[e.indexStack.length-2]===0&&e.indexStack[e.indexStack.length-3]===0&&(s=!0),wn(e)===i&&h){let c=-1;for(;++c-1?n.start:1)+(e.options.incrementListMarker===!1?0:n.children.indexOf(t))+u);let i=u.length+1;(l==="tab"||l==="mixed"&&(n&&n.type==="list"&&n.spread||t.spread))&&(i=Math.ceil(i/4)*4);const a=e.createTracker(r);a.move(u+" ".repeat(i-u.length)),a.shift(i);const s=e.enter("listItem"),o=e.indentLines(e.containerFlow(t,a.current()),h);return s(),o;function h(c,p,f){return p?(f?"":" ".repeat(i))+c:(f?u:u+" ".repeat(i-u.length))+c}}function Ea(t,n,e,r){const l=e.enter("paragraph"),u=e.enter("phrasing"),i=e.containerPhrasing(t,r);return u(),l(),i}const Fa=Ue(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function La(t,n,e,r){return(t.children.some(function(i){return Fa(i)})?e.containerPhrasing:e.containerFlow).call(e,t,r)}function Pa(t){const n=t.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Cn.peek=Da;function Cn(t,n,e,r){const l=Pa(e),u=e.enter("strong"),i=e.createTracker(r),a=i.move(l+l);let s=i.move(e.containerPhrasing(t,{after:l,before:a,...i.current()}));const o=s.charCodeAt(0),h=qt(r.before.charCodeAt(r.before.length-1),o,l);h.inside&&(s=Et(o)+s.slice(1));const c=s.charCodeAt(s.length-1),p=qt(r.after.charCodeAt(0),c,l);p.inside&&(s=s.slice(0,-1)+Et(c));const f=i.move(l+l);return u(),e.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},a+s+f}function Da(t,n,e){return e.options.strong||"*"}function _a(t,n,e,r){return e.safe(t.value,r)}function Ba(t){const n=t.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function Ma(t,n,e){const r=(wn(e)+(e.options.ruleSpaces?" ":"")).repeat(Ba(e));return e.options.ruleSpaces?r.slice(0,-1):r}const Sn={blockquote:la,break:Re,code:ca,definition:fa,emphasis:pn,hardBreak:Re,heading:ka,html:mn,image:gn,imageReference:kn,inlineCode:xn,link:yn,linkReference:bn,list:za,listItem:Ta,paragraph:Ea,root:La,strong:Cn,text:_a,thematicBreak:Ma};function Oa(){return{enter:{table:Ra,tableData:Ne,tableHeader:Ne,tableRow:va},exit:{codeText:qa,table:Na,tableData:Kt,tableHeader:Kt,tableRow:Kt}}}function Ra(t){const n=t._align;this.enter({type:"table",align:n.map(function(e){return e==="none"?null:e}),children:[]},t),this.data.inTable=!0}function Na(t){this.exit(t),this.data.inTable=void 0}function va(t){this.enter({type:"tableRow",children:[]},t)}function Kt(t){this.exit(t)}function Ne(t){this.enter({type:"tableCell",children:[]},t)}function qa(t){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Ha));const e=this.stack[this.stack.length-1];wt(e.type==="inlineCode"),e.value=n,this.exit(t)}function Ha(t,n){return n==="|"?n:t}function ja(t){const n=t||{},e=n.tableCellPadding,r=n.tablePipeAlign,l=n.stringLength,u=e?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:i,tableCell:s,tableRow:a}};function i(f,k,C,I){return o(h(f,C,I),f.align)}function a(f,k,C,I){const y=c(f,C,I),A=o([y]);return A.slice(0,A.indexOf(` `))}function s(f,k,C,I){const y=C.enter("tableCell"),A=C.enter("phrasing"),w=C.containerPhrasing(f,{...I,before:u,after:u});return A(),y(),w}function o(f,k){return Zn(f,{align:k,alignDelimiters:r,padding:e,stringLength:l})}function h(f,k,C){const I=f.children;let y=-1;const A=[],w=k.enter("table");for(;++y0&&!e&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),e}const uo={tokenize:mo,partial:!0};function ao(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ho,continuation:{tokenize:fo},exit:po}},text:{91:{name:"gfmFootnoteCall",tokenize:co},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:oo,resolveTo:so}}}}function oo(t,n,e){const r=this;let l=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;l--;){const s=r.events[l][1];if(s.type==="labelImage"){i=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!i||!i._balanced)return e(s);const o=nt(r.sliceSerialize({start:i.end,end:r.now()}));return o.codePointAt(0)!==94||!u.includes(o.slice(1))?e(s):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(s),t.exit("gfmFootnoteCallLabelMarker"),n(s))}}function so(t,n){let e=t.length;for(;e--;)if(t[e][1].type==="labelImage"&&t[e][0]==="enter"){t[e][1];break}t[e+1][1].type="data",t[e+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[e+3][1].start),end:Object.assign({},t[t.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},t[e+3][1].end),end:Object.assign({},t[e+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},t[t.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},a=[t[e+1],t[e+2],["enter",r,n],t[e+3],t[e+4],["enter",l,n],["exit",l,n],["enter",u,n],["enter",i,n],["exit",i,n],["exit",u,n],t[t.length-2],t[t.length-1],["exit",r,n]];return t.splice(e,t.length-e+1,...a),t}function co(t,n,e){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,i;return a;function a(c){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(c),t.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?e(c):(t.enter("gfmFootnoteCallMarker"),t.consume(c),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",o)}function o(c){if(u>999||c===93&&!i||c===null||c===91||H(c))return e(c);if(c===93){t.exit("chunkString");const p=t.exit("gfmFootnoteCallString");return l.includes(nt(r.sliceSerialize(p)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(c),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),n):e(c)}return H(c)||(i=!0),u++,t.consume(c),c===92?h:o}function h(c){return c===91||c===92||c===93?(t.consume(c),u++,o):o(c)}}function ho(t,n,e){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,i=0,a;return s;function s(k){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionLabelMarker"),o}function o(k){return k===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",h):e(k)}function h(k){if(i>999||k===93&&!a||k===null||k===91||H(k))return e(k);if(k===93){t.exit("chunkString");const C=t.exit("gfmFootnoteDefinitionLabelString");return u=nt(r.sliceSerialize(C)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),p}return H(k)||(a=!0),i++,t.consume(k),k===92?c:h}function c(k){return k===91||k===92||k===93?(t.consume(k),i++,h):h(k)}function p(k){return k===58?(t.enter("definitionMarker"),t.consume(k),t.exit("definitionMarker"),l.includes(u)||l.push(u),M(t,f,"gfmFootnoteDefinitionWhitespace")):e(k)}function f(k){return n(k)}}function fo(t,n,e){return t.check(Ft,n,t.attempt(uo,n,e))}function po(t){t.exit("gfmFootnoteDefinition")}function mo(t,n,e){const r=this;return M(t,l,"gfmFootnoteDefinitionIndent",5);function l(u){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?n(u):e(u)}}function go(t){let e=(t||{}).singleTilde;const r={name:"strikethrough",tokenize:u,resolveAll:l};return e==null&&(e=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function l(i,a){let s=-1;for(;++s1?s(k):(i.consume(k),c++,f);if(c<2&&!e)return s(k);const I=i.exit("strikethroughSequenceTemporary"),y=bt(k);return I._open=!y||y===2&&!!C,I._close=!C||C===2&&!!y,a(k)}}}class ko{constructor(){this.map=[]}add(n,e,r){xo(this,n,e,r)}consume(n){if(this.map.sort(function(u,i){return u[0]-i[0]}),this.map.length===0)return;let e=this.map.length;const r=[];for(;e>0;)e-=1,r.push(n.slice(this.map[e][0]+this.map[e][1]),this.map[e][2]),n.length=this.map[e][0];r.push(n.slice()),n.length=0;let l=r.pop();for(;l;){for(const u of l)n.push(u);l=r.pop()}this.map.length=0}}function xo(t,n,e,r){let l=0;if(!(e===0&&r.length===0)){for(;l-1;){const j=r.events[E][1].type;if(j==="lineEnding"||j==="linePrefix")E--;else break}const F=E>-1?r.events[E][1].type:null,v=F==="tableHead"||F==="tableRow"?b:s;return v===b&&r.parser.lazy[r.now().line]?e(x):v(x)}function s(x){return t.enter("tableHead"),t.enter("tableRow"),o(x)}function o(x){return x===124||(i=!0,u+=1),h(x)}function h(x){return x===null?e(x):T(x)?u>1?(u=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),f):e(x):P(x)?M(t,h,"whitespace")(x):(u+=1,i&&(i=!1,l+=1),x===124?(t.enter("tableCellDivider"),t.consume(x),t.exit("tableCellDivider"),i=!0,h):(t.enter("data"),c(x)))}function c(x){return x===null||x===124||H(x)?(t.exit("data"),h(x)):(t.consume(x),x===92?p:c)}function p(x){return x===92||x===124?(t.consume(x),c):c(x)}function f(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?e(x):(t.enter("tableDelimiterRow"),i=!1,P(x)?M(t,k,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):k(x))}function k(x){return x===45||x===58?I(x):x===124?(i=!0,t.enter("tableCellDivider"),t.consume(x),t.exit("tableCellDivider"),C):B(x)}function C(x){return P(x)?M(t,I,"whitespace")(x):I(x)}function I(x){return x===58?(u+=1,i=!0,t.enter("tableDelimiterMarker"),t.consume(x),t.exit("tableDelimiterMarker"),y):x===45?(u+=1,y(x)):x===null||T(x)?D(x):B(x)}function y(x){return x===45?(t.enter("tableDelimiterFiller"),A(x)):B(x)}function A(x){return x===45?(t.consume(x),A):x===58?(i=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(x),t.exit("tableDelimiterMarker"),w):(t.exit("tableDelimiterFiller"),w(x))}function w(x){return P(x)?M(t,D,"whitespace")(x):D(x)}function D(x){return x===124?k(x):x===null||T(x)?!i||l!==u?B(x):(t.exit("tableDelimiterRow"),t.exit("tableHead"),n(x)):B(x)}function B(x){return e(x)}function b(x){return t.enter("tableRow"),z(x)}function z(x){return x===124?(t.enter("tableCellDivider"),t.consume(x),t.exit("tableCellDivider"),z):x===null||T(x)?(t.exit("tableRow"),n(x)):P(x)?M(t,z,"whitespace")(x):(t.enter("data"),N(x))}function N(x){return x===null||x===124||H(x)?(t.exit("data"),z(x)):(t.consume(x),x===92?R:N)}function R(x){return x===92||x===124?(t.consume(x),N):N(x)}}function Co(t,n){let e=-1,r=!0,l=0,u=[0,0,0,0],i=[0,0,0,0],a=!1,s=0,o,h,c;const p=new ko;for(;++ee[2]+1){const k=e[2]+1,C=e[3]-e[2]-1;t.add(k,C,[])}}t.add(e[3]+1,0,[["exit",c,n]])}return l!==void 0&&(u.end=Object.assign({},yt(n.events,l)),t.add(l,0,[["exit",u,n]]),u=void 0),u}function qe(t,n,e,r,l){const u=[],i=yt(n.events,e);l&&(l.end=Object.assign({},i),u.push(["exit",l,n])),r.end=Object.assign({},i),u.push(["exit",r,n]),t.add(e+1,0,u)}function yt(t,n){const e=t[n],r=e[0]==="enter"?"start":"end";return e[1][r]}const So={name:"tasklistCheck",tokenize:zo};function Io(){return{text:{91:So}}}function zo(t,n,e){const r=this;return l;function l(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?e(s):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(s),t.exit("taskListCheckMarker"),u)}function u(s){return H(s)?(t.enter("taskListCheckValueUnchecked"),t.consume(s),t.exit("taskListCheckValueUnchecked"),i):s===88||s===120?(t.enter("taskListCheckValueChecked"),t.consume(s),t.exit("taskListCheckValueChecked"),i):e(s)}function i(s){return s===93?(t.enter("taskListCheckMarker"),t.consume(s),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),a):e(s)}function a(s){return T(s)?n(s):P(s)?t.check({tokenize:Ao},n,e)(s):e(s)}}function Ao(t,n,e){return M(t,r,"whitespace");function r(l){return l===null?e(l):n(l)}}function To(t){return Qe([Ja(),ao(),go(t),bo(),Io()])}const Eo={};function Jo(t){const n=this,e=t||Eo,r=n.data(),l=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);l.push(To(e)),u.push(Qa()),i.push(Ya(e))}const Mt={}.hasOwnProperty,He={yaml:"-",toml:"+"};function me(t){const n=[];let e=-1;const r=Array.isArray(t)?t:t?[t]:["yaml"];for(;++ef&&(f=I.data.relevance,k=I)}return k||{type:"root",children:[],data:{language:void 0,relevance:f}}}function l(){return n.listLanguages()}function u(s,o){if(typeof s=="string")n.registerLanguage(s,o);else{let h;for(h in s)Object.hasOwn(s,h)&&n.registerLanguage(h,s[h])}}function i(s,o){if(typeof s=="string")n.registerAliases(typeof o=="string"?o:[...o],{languageName:s});else{let h;for(h in s)if(Object.hasOwn(s,h)){const c=s[h];n.registerAliases(typeof c=="string"?c:[...c],{languageName:h})}}}function a(s){return!!n.getLanguage(s)}}class $o{constructor(n){this.options=n,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(n){if(n==="")return;const e=this.stack[this.stack.length-1],r=e.children[e.children.length-1];r&&r.type==="text"?r.value+=n:e.children.push({type:"text",value:n})}startScope(n){this.openNode(String(n))}endScope(){this.closeNode()}__addSublanguage(n,e){const r=this.stack[this.stack.length-1],l=n.root.children;e?r.children.push({type:"element",tagName:"span",properties:{className:[e]},children:l}):r.children.push(...l)}openNode(n){const e=this,r=n.split(".").map(function(i,a){return a?i+"_".repeat(a):e.options.classPrefix+i}),l=this.stack[this.stack.length-1],u={type:"element",tagName:"span",properties:{className:r},children:[]};l.children.push(u),this.stack.push(u)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const Vo={};function es(t){const n=t||Vo,e=n.aliases,r=n.detect||!1,l=n.languages||qo,u=n.plainText,i=n.prefix,a=n.subset;let s="hljs";const o=jo(l);if(e&&o.registerAlias(e),i){const h=i.indexOf("-");s=h===-1?i:i.slice(0,h)}return function(h,c){ae(h,"element",function(p,f,k){if(p.tagName!=="code"||!k||k.type!=="element"||k.tagName!=="pre")return;const C=Uo(p);if(C===!1||!C&&!r||C&&u&&u.includes(C))return;Array.isArray(p.properties.className)||(p.properties.className=[]),p.properties.className.includes(s)||p.properties.className.unshift(s);const I=Rr(p,{whitespace:"pre"});let y;try{y=C?o.highlight(C,I,{prefix:i}):o.highlightAuto(I,{prefix:i,subset:a})}catch(A){const w=A;if(C&&/Unknown language/.test(w.message)){c.message("Cannot highlight as `"+C+"`, it’s not registered",{ancestors:[k,p],cause:w,place:p.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw w}!C&&y.data&&y.data.language&&p.properties.className.push("language-"+y.data.language),y.children.length>0&&(p.children=y.children)})}}function Uo(t){const n=t.properties.className;let e=-1;if(!Array.isArray(n))return;let r;for(;++e