markdown-design-doc-viewer 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var Mc=Object.create;var En=Object.defineProperty;var Ic=Object.getOwnPropertyDescriptor;var Oc=Object.getOwnPropertyNames;var Lc=Object.getPrototypeOf,Fc=Object.prototype.hasOwnProperty;var W=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},yr=(e,t)=>{for(var n in t)En(e,n,{get:t[n],enumerable:!0})},Bc=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Oc(t))!Fc.call(e,i)&&i!==n&&En(e,i,{get:()=>t[i],enumerable:!(r=Ic(t,i))||r.enumerable});return e};var wn=(e,t,n)=>(n=e!=null?Mc(Lc(e)):{},Bc(t||!e||!e.__esModule?En(n,"default",{value:e,enumerable:!0}):n,e));var li=W((Am,ci)=>{"use strict";var _l=/^xn--/,El=/[^\0-\x7F]/,wl=/[\x2E\u3002\uFF0E\uFF61]/g,kl={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},On=35,me=Math.floor,Ln=String.fromCharCode;function Ce(e){throw new RangeError(kl[e])}function xl(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function ri(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(wl,".");let i=e.split("."),o=xl(i,t).join(".");return r+o}function ii(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var yl=e=>String.fromCodePoint(...e),vl=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:36},ni=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},oi=function(e,t,n){let r=0;for(e=n?me(e/700):e>>1,e+=me(e/t);e>On*26>>1;r+=36)e=me(e/On);return me(r+(On+1)*e/(e+38))},si=function(e){let t=[],n=e.length,r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Ce("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){let c=r;for(let u=1,d=36;;d+=36){s>=n&&Ce("invalid-input");let p=vl(e.charCodeAt(s++));p>=36&&Ce("invalid-input"),p>me((2147483647-r)/u)&&Ce("overflow"),r+=p*u;let f=d<=o?1:d>=o+26?26:d-o;if(p<f)break;let g=36-f;u>me(2147483647/g)&&Ce("overflow"),u*=g}let l=t.length+1;o=oi(r-c,l,c==0),me(r/l)>2147483647-i&&Ce("overflow"),i+=me(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)},ai=function(e){let t=[];e=ii(e);let n=e.length,r=128,i=0,o=72;for(let c of e)c<128&&t.push(Ln(c));let a=t.length,s=a;for(a&&t.push("-");s<n;){let c=2147483647;for(let u of e)u>=r&&u<c&&(c=u);let l=s+1;c-r>me((2147483647-i)/l)&&Ce("overflow"),i+=(c-r)*l,r=c;for(let u of e)if(u<r&&++i>2147483647&&Ce("overflow"),u===r){let d=i;for(let p=36;;p+=36){let f=p<=o?1:p>=o+26?26:p-o;if(d<f)break;let g=d-f,h=36-f;t.push(Ln(ni(f+g%h,0))),d=me(g/h)}t.push(Ln(ni(d,0))),o=oi(i,l,s===a),i=0,++s}++i,++r}return t.join("")},Rl=function(e){return ri(e,function(t){return _l.test(t)?si(t.slice(4).toLowerCase()):t})},Al=function(e){return ri(e,function(t){return El.test(t)?"xn--"+ai(t):t})},Cl={version:"2.3.1",ucs2:{decode:ii,encode:yl},decode:si,encode:ai,toASCII:Al,toUnicode:Rl};ci.exports=Cl});var Wo=W((Eb,qo)=>{function So(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&So(n)}),e}var Jt=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Do(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Se(e,...t){let n=Object.create(null);for(let r in e)n[r]=e[r];return t.forEach(function(r){for(let i in r)n[i]=r[i]}),n}var Nf="</span>",vo=e=>!!e.scope,Sf=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){let n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`},er=class{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=Do(t)}openNode(t){if(!vo(t))return;let n=Sf(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){vo(t)&&(this.buffer+=Nf)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}},Ro=(e={})=>{let t={children:[]};return Object.assign(t,e),t},tr=class e{constructor(){this.rootNode=Ro(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){let n=Ro({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{e._collapse(n)}))}},nr=class extends tr{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){let r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new er(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function bt(e){return e?typeof e=="string"?e:e.source:null}function Mo(e){return Le("(?=",e,")")}function Df(e){return Le("(?:",e,")*")}function Mf(e){return Le("(?:",e,")?")}function Le(...e){return e.map(n=>bt(n)).join("")}function If(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function jt(...e){return"("+(If(e).capture?"":"?:")+e.map(r=>bt(r)).join("|")+")"}function Io(e){return new RegExp(e.toString()+"|").exec("").length-1}function Of(e,t){let n=e&&e.exec(t);return n&&n.index===0}var Lf=new RegExp(jt(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function ir(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;let i=n,o=bt(r),a="";for(;o.length>0;){let s=Lf.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],(s[0]==="("||/^\(\?[<']/.test(s[0]))&&n++)}return a}).map(r=>`(${r})`).join(t)}var Ff=/\b\B/,Oo="[a-zA-Z]\\w*",or="[a-zA-Z_]\\w*",Lo="\\b\\d+(\\.\\d+)?",Fo="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Bo="\\b(0b[01]+)",Bf="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Pf=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=Le(t,/.*\b/,e.binary,/\b.*/)),Se({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},_t={begin:"\\\\[\\s\\S]",relevance:0},$f={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[_t]},Uf={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[_t]},zf={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Xt=function(e,t,n={}){let r=Se({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=jt("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Le(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},qf=Xt("//","$"),Wf=Xt("/\\*","\\*/"),Hf=Xt("#","$"),Gf={scope:"number",begin:Lo,relevance:0},Kf={scope:"number",begin:Fo,relevance:0},Zf={scope:"number",begin:Bo,relevance:0},Jf={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[_t,{begin:/\[/,end:/\]/,relevance:0,contains:[_t]}]},Yf={scope:"title",begin:Oo,relevance:0},jf={scope:"title",begin:or,relevance:0},Xf={begin:"\\.\\s*"+or,relevance:0},Vf=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})},Zt=Object.freeze({__proto__:null,APOS_STRING_MODE:$f,BACKSLASH_ESCAPE:_t,BINARY_NUMBER_MODE:Zf,BINARY_NUMBER_RE:Bo,COMMENT:Xt,C_BLOCK_COMMENT_MODE:Wf,C_LINE_COMMENT_MODE:qf,C_NUMBER_MODE:Kf,C_NUMBER_RE:Fo,END_SAME_AS_BEGIN:Vf,HASH_COMMENT_MODE:Hf,IDENT_RE:Oo,MATCH_NOTHING_RE:Ff,METHOD_GUARD:Xf,NUMBER_MODE:Gf,NUMBER_RE:Lo,PHRASAL_WORDS_MODE:zf,QUOTE_STRING_MODE:Uf,REGEXP_MODE:Jf,RE_STARTERS_RE:Bf,SHEBANG:Pf,TITLE_MODE:Yf,UNDERSCORE_IDENT_RE:or,UNDERSCORE_TITLE_MODE:jf});function Qf(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function eg(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function tg(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Qf,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function ng(e,t){Array.isArray(e.illegal)&&(e.illegal=jt(...e.illegal))}function rg(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function ig(e,t){e.relevance===void 0&&(e.relevance=1)}var og=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");let n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Le(n.beforeMatch,Mo(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},sg=["of","and","for","in","not","or","if","then","parent","list","value"],ag="keyword";function Po(e,t,n=ag){let r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,Po(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){let c=s.split("|");r[c[0]]=[o,cg(c[0],c[1])]})}}function cg(e,t){return t?Number(t):lg(e)?0:1}function lg(e){return sg.includes(e.toLowerCase())}var Ao={},Oe=e=>{console.error(e)},Co=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Ge=(e,t)=>{Ao[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Ao[`${e}/${t}`]=!0)},Yt=new Error;function $o(e,t,{key:n}){let r=0,i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=Io(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function ug(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Oe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Yt;if(typeof e.beginScope!="object"||e.beginScope===null)throw Oe("beginScope must be object"),Yt;$o(e,e.begin,{key:"beginScope"}),e.begin=ir(e.begin,{joinWith:""})}}function dg(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Oe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Yt;if(typeof e.endScope!="object"||e.endScope===null)throw Oe("endScope must be object"),Yt;$o(e,e.end,{key:"endScope"}),e.end=ir(e.end,{joinWith:""})}}function fg(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function gg(e){fg(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),ug(e),dg(e)}function pg(e){function t(a,s){return new RegExp(bt(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,s]),this.matchAt+=Io(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let s=this.regexes.map(c=>c[1]);this.matcherRe=t(ir(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;let c=this.matcherRe.exec(s);if(!c)return null;let l=c.findIndex((d,p)=>p>0&&d!==void 0),u=this.matchIndexes[l];return c.splice(0,l),Object.assign(c,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];let c=new n;return this.rules.slice(s).forEach(([l,u])=>c.addRule(l,u)),c.compile(),this.multiRegexes[s]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,c){this.rules.push([s,c]),c.type==="begin"&&this.count++}exec(s){let c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let l=c.exec(s);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){let u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,l=u.exec(s)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function i(a){let s=new r;return a.contains.forEach(c=>s.addRule(c.begin,{rule:c,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){let c=a;if(a.isCompiled)return c;[eg,rg,gg,og].forEach(u=>u(a,s)),e.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[tg,ng,ig].forEach(u=>u(a,s)),a.isCompiled=!0;let l=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),l=a.keywords.$pattern,delete a.keywords.$pattern),l=l||/\w+/,a.keywords&&(a.keywords=Po(a.keywords,e.case_insensitive)),c.keywordPatternRe=t(l,!0),s&&(a.begin||(a.begin=/\B|\b/),c.beginRe=t(c.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(c.endRe=t(c.end)),c.terminatorEnd=bt(c.end)||"",a.endsWithParent&&s.terminatorEnd&&(c.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(c.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return hg(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,c)}),a.starts&&o(a.starts,s),c.matcher=i(c),c}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Se(e.classNameAliases||{}),o(e)}function Uo(e){return e?e.endsWithParent||Uo(e.starts):!1}function hg(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Se(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Uo(e)?Se(e,{starts:e.starts?Se(e.starts):null}):Object.isFrozen(e)?Se(e):e}var mg="11.12.0",rr=class extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}},Qn=Do,To=Se,No=Symbol("nomatch"),bg=7,zo=function(e){let t=Object.create(null),n=Object.create(null),r=[],i=!0,o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]},s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:nr};function c(y){return s.noHighlightRe.test(y)}function l(y){let D=y.className+" ";D+=y.parentNode?y.parentNode.className:"";let M=s.languageDetectRe.exec(D);if(M){let P=A(M[1]);return P||(Co(o.replace("{}",M[1])),Co("Falling back to no-highlight mode for this block.",y)),P?M[1]:"no-highlight"}return D.split(/\s+/).find(P=>c(P)||A(P))}function u(y,D,M){let P="",U="";typeof D=="object"?(P=y,M=D.ignoreIllegals,U=D.language):(Ge("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ge("10.7.0",`Please use highlight(code, options) instead.
3
- https://github.com/highlightjs/highlight.js/issues/2277`),U=y,P=D),M===void 0&&(M=!0);let H={code:P,language:U};O("before:highlight",H);let X=H.result?H.result:d(H.language,H.code,M);return X.code=H.code,O("after:highlight",X),X}function d(y,D,M,P){let U=Object.create(null);function H(L,B){return L.keywords[B]}function X(){if(!$.keywords){ie.addText(V);return}let L=0;$.keywordPatternRe.lastIndex=0;let B=$.keywordPatternRe.exec(V),q="";for(;B;){q+=V.substring(L,B.index);let Z=fe.case_insensitive?B[0].toLowerCase():B[0],se=H($,Z);if(se){let[we,Sc]=se;if(ie.addText(q),q="",U[Z]=(U[Z]||0)+1,U[Z]<=bg&&(Ct+=Sc),we.startsWith("_"))q+=B[0];else{let Dc=fe.classNameAliases[we]||we;ue(B[0],Dc)}}else q+=B[0];L=$.keywordPatternRe.lastIndex,B=$.keywordPatternRe.exec(V)}q+=V.substring(L),ie.addText(q)}function de(){if(V==="")return;let L=null;if(typeof $.subLanguage=="string"){if(!t[$.subLanguage]){ie.addText(V);return}L=d($.subLanguage,V,!0,At[$.subLanguage]),At[$.subLanguage]=L._top}else L=f(V,$.subLanguage.length?$.subLanguage:null);$.relevance>0&&(Ct+=L.relevance),ie.__addSublanguage(L._emitter,L.language)}function ce(){$.subLanguage!=null?de():X(),V=""}function ue(L,B){L!==""&&(ie.startScope(B),ie.addText(L),ie.endScope())}function Pe(L,B){let q=1,Z=B.length-1;for(;q<=Z;){if(!L._emit[q]){q++;continue}let se=fe.classNameAliases[L[q]]||L[q],we=B[q];se?ue(we,se):(V=we,X(),V=""),q++}}function vt(L,B){return L.scope&&typeof L.scope=="string"&&ie.openNode(fe.classNameAliases[L.scope]||L.scope),L.beginScope&&(L.beginScope._wrap?(ue(V,fe.classNameAliases[L.beginScope._wrap]||L.beginScope._wrap),V=""):L.beginScope._multi&&(Pe(L.beginScope,B),V="")),$=Object.create(L,{parent:{value:$}}),$}function Xe(L,B,q){let Z=Of(L.endRe,q);if(Z){if(L["on:end"]){let se=new Jt(L);L["on:end"](B,se),se.isMatchIgnored&&(Z=!1)}if(Z){for(;L.endsParent&&L.parent;)L=L.parent;return L}}if(L.endsWithParent)return Xe(L.parent,B,q)}function gn(L){return $.matcher.regexIndex===0?(V+=L[0],1):(_n=!0,0)}function pn(L){let B=L[0],q=L.rule,Z=new Jt(q),se=[q.__beforeBegin,q["on:begin"]];for(let we of se)if(we&&(we(L,Z),Z.isMatchIgnored))return gn(B);return q.skip?V+=B:(q.excludeBegin&&(V+=B),ce(),!q.returnBegin&&!q.excludeBegin&&(V=B)),vt(q,L),q.returnBegin?0:B.length}function hn(L){let B=L[0],q=D.substring(L.index),Z=Xe($,L,q);if(!Z)return No;let se=$;$.endScope&&$.endScope._wrap?(ce(),ue(B,$.endScope._wrap)):$.endScope&&$.endScope._multi?(ce(),Pe($.endScope,L)):se.skip?V+=B:(se.returnEnd||se.excludeEnd||(V+=B),ce(),se.excludeEnd&&(V=B));do $.scope&&ie.closeNode(),!$.skip&&!$.subLanguage&&(Ct+=$.relevance),$=$.parent;while($!==Z.parent);return Z.starts&&vt(Z.starts,L),se.returnEnd?0:B.length}function mn(){let L=[];for(let B=$;B!==fe;B=B.parent)B.scope&&L.unshift(B.scope);L.forEach(B=>ie.openNode(B))}let $e={};function Rt(L,B){let q=B&&B[0];if(V+=L,q==null)return ce(),0;if($e.type==="begin"&&B.type==="end"&&$e.index===B.index&&q===""){if(V+=D.slice(B.index,B.index+1),!i){let Z=new Error(`0 width match regex (${y})`);throw Z.languageName=y,Z.badRule=$e.rule,Z}return 1}if($e=B,B.type==="begin")return pn(B);if(B.type==="illegal"&&!M){let Z=new Error('Illegal lexeme "'+q+'" for mode "'+($.scope||"<unnamed>")+'"');throw Z.mode=$,Z}else if(B.type==="end"){let Z=hn(B);if(Z!==No)return Z}if(B.type==="illegal"&&q==="")return B.index===D.length||(V+=`
4
- `),1;if(bn>1e5&&bn>B.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=q,q.length}let fe=A(y);if(!fe)throw Oe(o.replace("{}",y)),new Error('Unknown language: "'+y+'"');let J=pg(fe),Re="",$=P||J,At={},ie=new s.__emitter(s);mn();let V="",Ct=0,De=0,bn=0,_n=!1;try{if(fe.__emitTokens)fe.__emitTokens(D,ie);else{for($.matcher.considerAll();;){bn++,_n?_n=!1:$.matcher.considerAll(),$.matcher.lastIndex=De;let L=$.matcher.exec(D);if(!L)break;let B=D.substring(De,L.index),q=Rt(B,L);De=L.index+q}Rt(D.substring(De))}return ie.finalize(),Re=ie.toHTML(),{language:y,value:Re,relevance:Ct,illegal:!1,_emitter:ie,_top:$}}catch(L){if(L.message&&L.message.includes("Illegal"))return{language:y,value:Qn(D),illegal:!0,relevance:0,_illegalBy:{message:L.message,index:De,context:D.slice(De-100,De+100),mode:L.mode,resultSoFar:Re},_emitter:ie};if(i)return{language:y,value:Qn(D),illegal:!1,relevance:0,errorRaised:L,_emitter:ie,_top:$};throw L}}function p(y){let D={value:Qn(y),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return D._emitter.addText(y),D}function f(y,D){D=D||s.languages||Object.keys(t);let M=p(y),P=D.filter(A).filter(N).map(ce=>d(ce,y,!1));P.unshift(M);let U=P.sort((ce,ue)=>{if(ce.relevance!==ue.relevance)return ue.relevance-ce.relevance;if(ce.language&&ue.language){if(A(ce.language).supersetOf===ue.language)return 1;if(A(ue.language).supersetOf===ce.language)return-1}return 0}),[H,X]=U,de=H;return de.secondBest=X,de}function g(y,D,M){let P=D&&n[D]||M;y.classList.add("hljs"),y.classList.add(`language-${P}`)}function h(y){let D=null,M=l(y);if(c(M))return;if(O("before:highlightElement",{el:y,language:M}),y.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",y);return}if(y.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(y)),s.throwUnescapedHTML))throw new rr("One of your code blocks includes unescaped HTML.",y.innerHTML);D=y;let P=D.textContent,U=M?u(P,{language:M,ignoreIllegals:!0}):f(P);y.innerHTML=U.value,y.dataset.highlighted="yes",g(y,M,U.language),y.result={language:U.language,re:U.relevance,relevance:U.relevance},U.secondBest&&(y.secondBest={language:U.secondBest.language,relevance:U.secondBest.relevance}),O("after:highlightElement",{el:y,result:U,text:P})}function m(y){s=To(s,y)}let b=()=>{k(),Ge("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function _(){k(),Ge("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let x=!1;function k(){function y(){k()}if(document.readyState==="loading"){x||window.addEventListener("DOMContentLoaded",y,!1),x=!0;return}document.querySelectorAll(s.cssSelector).forEach(h)}function R(y,D){let M=null;try{M=D(e)}catch(P){if(Oe("Language definition for '{}' could not be registered.".replace("{}",y)),i)Oe(P);else throw P;M=a}M.name||(M.name=y),t[y]=M,M.rawDefinition=D.bind(null,e),M.aliases&&w(M.aliases,{languageName:y})}function E(y){delete t[y];for(let D of Object.keys(n))n[D]===y&&delete n[D]}function v(){return Object.keys(t)}function A(y){return y=(y||"").toLowerCase(),t[y]||t[n[y]]}function w(y,{languageName:D}){typeof y=="string"&&(y=[y]),y.forEach(M=>{n[M.toLowerCase()]=D})}function N(y){let D=A(y);return D&&!D.disableAutodetect}function C(y){y["before:highlightBlock"]&&!y["before:highlightElement"]&&(y["before:highlightElement"]=D=>{y["before:highlightBlock"](Object.assign({block:D.el},D))}),y["after:highlightBlock"]&&!y["after:highlightElement"]&&(y["after:highlightElement"]=D=>{y["after:highlightBlock"](Object.assign({block:D.el},D))})}function S(y){C(y),r.push(y)}function I(y){let D=r.indexOf(y);D!==-1&&r.splice(D,1)}function O(y,D){let M=y;r.forEach(function(P){P[M]&&P[M](D)})}function T(y){return Ge("10.7.0","highlightBlock will be removed entirely in v12.0"),Ge("10.7.0","Please use highlightElement now."),h(y)}Object.assign(e,{highlight:u,highlightAuto:f,highlightAll:k,highlightElement:h,highlightBlock:T,configure:m,initHighlighting:b,initHighlightingOnLoad:_,registerLanguage:R,unregisterLanguage:E,listLanguages:v,getLanguage:A,registerAliases:w,autoDetection:N,inherit:To,addPlugin:S,removePlugin:I}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=mg,e.regex={concat:Le,lookahead:Mo,either:jt,optional:Mf,anyNumberOfTimes:Df};for(let y in Zt)typeof Zt[y]=="object"&&So(Zt[y]);return Object.assign(e,Zt),e},Ke=zo({});Ke.newInstance=()=>zo({});qo.exports=Ke;Ke.HighlightJS=Ke;Ke.default=Ke});var Go=W((wb,Ho)=>{function _g(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,c,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}Ho.exports=_g});var Zo=W((kb,Ko)=>{function Eg(e){let t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});let i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);let c={match:/\\"/},l={className:"string",begin:/'/,end:/'/},u={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=e.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},h=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],m=["true","false"],b={match:/(\/[a-z._-]+)+/},_=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],x=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],k=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],R=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:m,built_in:[..._,...x,"set","shopt",...k,...R]},contains:[f,e.SHEBANG(),g,d,o,a,b,s,c,l,u,n]}}Ko.exports=Eg});var Yo=W((xb,Jo)=>{function wg(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s=t.concat(/\batomic_/,t.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:s}]},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},p={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},u,{scope:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),n,e.C_BLOCK_COMMENT_MODE]},g=[p,f],h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},m=t.optional(i)+e.IDENT_RE+"\\s*\\(",b=12,k={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},R=[...g,c,n,e.C_BLOCK_COMMENT_MODE,d,u],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:R.concat([{begin:/\(/,end:/\)/,keywords:k,contains:R.concat(["self"]),relevance:0}]),relevance:0},v={begin:"("+a+"[\\*&\\s]+){1,"+b+"}"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:k,relevance:0},{begin:m,returnBegin:!0,contains:[e.inherit(h,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,d,c,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,d,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,...g]};return{name:"C",aliases:["h"],keywords:k,disableAutodetect:!0,illegal:"</",contains:[].concat(E,v,R,[...g,{begin:e.IDENT_RE+"::",keywords:k},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:f,strings:u,keywords:k}}}Jo.exports=wg});var Xo=W((yb,jo)=>{function kg(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},u={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},d={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},l,{scope:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),n,e.C_BLOCK_COMMENT_MODE]},f=[d,p],g={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},h=t.optional(i)+e.IDENT_RE+"\\s*\\(",m=12,b=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],_=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],x=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],k=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],v={type:_,keyword:b,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:x},A={className:"function.dispatch",relevance:0,keywords:{_hint:k},begin:t.concat(/\b/,`(?!${b.join("|")})`,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},w=[A,...f,s,n,e.C_BLOCK_COMMENT_MODE,u,l],N={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:v,contains:w.concat([{begin:/\(/,end:/\)/,keywords:v,contains:w.concat(["self"]),relevance:0}]),relevance:0},C={className:"function",begin:"("+a+"[\\*&\\s]+){1,"+m+"}"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:v,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:v,relevance:0},{begin:h,returnBegin:!0,contains:[g],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,u,s,{begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,...f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:v,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(N,C,A,w,[...f,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:v,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:v},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}jo.exports=kg});var Qo=W((vb,Vo)=>{function xg(e){let t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:i.concat(o),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),c="\\d(_*\\d)*",l="([uU][lL]?|[lL][uU]?)?",d={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+l},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+l},{begin:"(-?)(\\b"+c+"(\\.("+c+")?)?|\\."+c+")([eE][-+]?"+c+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},p={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},f={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},g=e.inherit(f,{illegal:/\n/}),h={className:"subst",begin:/\{/,end:/\}/,keywords:a},m=e.inherit(h,{illegal:/\n/}),b={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,m]},_={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]},x=e.inherit(_,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},m]});h.contains=[_,b,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_BLOCK_COMMENT_MODE],m.contains=[x,b,g,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let k={variants:[p,_,b,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},R={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},E=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",v={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},k,d,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,R,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,R,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+E+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,R],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[k,d,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},v]}}Vo.exports=xg});var ts=W((Rb,es)=>{var yg=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),vg=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Rg=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Ag=[...vg,...Rg],Cg=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Tg=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Ng=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Sg=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Dg(e){let t=e.regex,n=yg(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Tg.join("|")+")"},{begin:":(:)?("+Ng.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Sg.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,n.UNICODE_RANGE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Cg.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ag.join("|")+")\\b"}]}}es.exports=Dg});var rs=W((Ab,ns)=>{function Mg(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,c={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},l={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(l,{contains:[]}),p=e.inherit(u,{contains:[]});l.contains.push(p),u.contains.push(d);let f=[n,c];return[l,u,d,p].forEach(b=>{b.contains=b.contains.concat(f)}),f=f.concat(l,u),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:f},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:f}]}]},n,o,r,l,u,{className:"quote",begin:"^>\\s+",contains:f,end:"$"},i,c,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}ns.exports=Mg});var os=W((Cb,is)=>{function Ig(e){let t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}is.exports=Ig});var as=W((Tb,ss)=>{function Og(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},c={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],u={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"string",contains:[e.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,u]})]}]},p="[1-9](_?[0-9])*|0",f="[0-9](_?[0-9])*",g={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${f}))?([eE][+-]?(${f})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},h={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},E=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[h]},{begin:"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},g,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,u],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(c,l),relevance:0}].concat(c,l);u.contains=E,h.contains=E;let N=[{begin:/^\s*=>/,starts:{end:"$",contains:E}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:E}}];return l.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(N).concat(l).concat(E)}}ss.exports=Og});var ls=W((Nb,cs)=>{function Lg(e){let o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}cs.exports=Lg});var ds=W((Sb,us)=>{function Fg(e){let t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}us.exports=Fg});var gs=W((Db,fs)=>{function Bg(e){let t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,o,i,a,n,"self"],relevance:0},c=/[A-Za-z0-9_-]+/,l=/"(\\"|[^"])*"/,u=/'[^']*'/,d=t.either(c,l,u),p=t.concat(d,"(\\s*\\.\\s*",d,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[r,s,o,i,a,n]}}]}}fs.exports=Bg});var bs=W((Mb,ms)=>{var Ze="[0-9](_*[0-9])*",Vt=`\\.(${Ze})`,Qt="[0-9a-fA-F](_*[0-9a-fA-F])*",ps={className:"number",variants:[{begin:`(\\b(${Ze})((${Vt})|\\.)?|(${Vt}))[eE][+-]?(${Ze})[fFdD]?\\b`},{begin:`\\b(${Ze})((${Vt})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Vt})[fFdD]?\\b`},{begin:`\\b(${Ze})[fFdD]\\b`},{begin:`\\b0[xX]((${Qt})\\.?|(${Qt})?\\.(${Qt}))[pP][+-]?(${Ze})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Qt})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function hs(e,t,n){return n===-1?"":e.replace(t,r=>hs(e,t,n-1))}function Pg(e){let t=e.regex,n="[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*",r="(?:(?:\\s*\\[\\s*])+)?",i=n+"<@@@>"+r,a="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+i+")?")+"|"+i+")",s=hs("(?:\\s*<\\s*"+a+"(?:\\s*,\\s*"+a+")*\\s*>)?",/<@@@>/g,2),p={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},f={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},g={className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:p,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[n,t.concat(s,r,/\s+/),n,r,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{begin:[n,t.concat(s,r,/\s+/),n,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:p,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,ps,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},ps,f]}}ms.exports=Pg});var ys=W((Ib,xs)=>{var _s="[A-Za-z$_][0-9A-Za-z$_]*",$g=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Ug=["true","false","null","undefined","NaN","Infinity"],Es=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ws=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ks=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],zg=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],qg=[].concat(ks,Es,ws);function Wg(e){let t=e.regex,n=(M,{after:P})=>{let U="</"+M[0].slice(1);return M.input.indexOf(U,P)!==-1},r=_s,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(M,P)=>{let U=M[0].length+M.index,H=M.input[U];if(H==="<"||H===","){P.ignoreMatch();return}H===">"&&(n(M,{after:U})||P.ignoreMatch());let X,de=M.input.substring(U);if(X=de.match(/^\s*=/)){P.ignoreMatch();return}if((X=de.match(/^\s+extends\s+/))&&X.index===0){P.ignoreMatch();return}}},s={$pattern:_s,keyword:$g,literal:Ug,built_in:qg,"variable.language":zg},c="[0-9](_?[0-9])*",l=`\\.(${c})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},h={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},_={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},x=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,h,m,{match:/\$\d+/},d];p.contains=x.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(x)});let k=[].concat(_,p.contains),R=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(k)}]),E={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R},v={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},A={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Es,...ws]}},w={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},N={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[E],illegal:/%/},C={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function S(M){return t.concat("(?!",M.join("|"),")")}let I={match:t.concat(/\b/,S([...ks,"super","import","await"].map(M=>`${M}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},O={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},T={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},E]},y="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",D={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(y)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[E]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:A},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),w,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,h,m,_,{match:/\$\d+/},d,A,{scope:"attr",match:r+t.lookahead(":"),relevance:0},D,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,e.REGEXP_MODE,{className:"function",begin:y,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},N,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[E,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},O,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[E]},I,C,v,T,{match:/\$[(.]/}]}}xs.exports=Wg});var Rs=W((Ob,vs)=>{var Hg="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",Gg={scope:"number",match:Hg,relevance:0};function Kg(e){let t={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:r},contains:[t,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,Gg,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}vs.exports=Kg});var Cs=W((Lb,As)=>{var Je="[0-9](_*[0-9])*",en=`\\.(${Je})`,tn="[0-9a-fA-F](_*[0-9a-fA-F])*",Zg={className:"number",variants:[{begin:`(\\b(${Je})((${en})|\\.)?|(${en}))[eE][+-]?(${Je})[fFdD]?\\b`},{begin:`\\b(${Je})((${en})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${en})[fFdD]?\\b`},{begin:`\\b(${Je})[fFdD]\\b`},{begin:`\\b0[xX]((${tn})\\.?|(${tn})?\\.(${tn}))[pP][+-]?(${Je})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${tn})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Jg(e){let t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(a);let s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"string"}),"self"]}]},l=Zg,u=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=d;return p.variants[1].contains=[d],d.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,u,n,r,s,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,u],relevance:0},e.C_LINE_COMMENT_MODE,u,s,c,a,e.C_NUMBER_MODE]},u]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,c]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
5
- `},l]}}As.exports=Jg});var Ds=W((Fb,Ss)=>{var Yg=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),jg=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Xg=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Vg=[...jg,...Xg],Qg=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Ts=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Ns=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),ep=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),tp=Ts.concat(Ns).sort().reverse();function np(e){let t=Yg(e),n=tp,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",a=[],s=[],c=function(x){return{className:"string",begin:"~?"+x+".*?"+x}},l=function(x,k,R){return{className:x,begin:k,relevance:R}},u={$pattern:/[a-z-]+/,keyword:r,attribute:Qg.join(" ")},d={begin:"\\(",end:"\\)",contains:s,keywords:u,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c("'"),c('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.UNICODE_RANGE,t.HEXCOLOR,d,l("variable","@@?"+i,10),l("variable","@\\{"+i+"\\}"),l("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);let p=s.concat({begin:/\{/,end:/\}/,contains:a}),f={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},g={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ep.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},h={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:s,relevance:0}},m={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:p}},b={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,f,l("keyword","all\\b"),l("variable","@\\{"+i+"\\}"),{begin:"\\b("+Vg.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,l("selector-tag",o,0),l("selector-id","#"+o),l("selector-class","\\."+o,0),l("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Ts.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Ns.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:p},{begin:"!important"},t.FUNCTION_DISPATCH]},_={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[b]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,m,_,g,b,f,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}Ss.exports=np});var Is=W((Bb,Ms)=>{function rp(e){let t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}Ms.exports=rp});var Ls=W((Pb,Os)=>{function ip(e){let t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,o,a]}}Os.exports=ip});var Bs=W(($b,Fs)=>{function op(e){let t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},a={begin:/->\{/,end:/\}/},s={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},c={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},l={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},u=[e.BACKSLASH_ESCAPE,o,c],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(h,m,b="\\1")=>{let _=b==="\\1"?b:t.concat(b,m);return t.concat(t.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,_,/(?:\\.|[^\\\/])*?/,b,r)},f=(h,m,b)=>t.concat(t.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,b,r),g=[c,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:u,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},l,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:p("s|tr|y",t.either(...d,{capture:!0}))},{begin:p("s|tr|y","\\(","\\)")},{begin:p("s|tr|y","\\[","\\]")},{begin:p("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:f("(?:m|qr)?",/\//,/\//)},{begin:f("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:f("m|qr",/\(/,/\)/)},{begin:f("m|qr",/\[/,/\]/)},{begin:f("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,l]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=g,a.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:g}}Fs.exports=op});var $s=W((Ub,Ps)=>{function sp(e){let t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},c={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+c.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:c,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}Ps.exports=sp});var zs=W((zb,Us)=>{function ap(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o=t.concat(/[A-Z]+/,n),a={scope:"variable",match:"\\$+"+r},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(O,T)=>{T.data._beginMatch=O[1]||O[2]},"on:end":(O,T)=>{T.data._beginMatch!==O[1]&&T.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[
6
- ]`,g={scope:"string",variants:[u,l,d,p]},h={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},m=["false","null","true"],b=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],_=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],k={keyword:b,literal:(O=>{let T=[];return O.forEach(y=>{T.push(y),y.toLowerCase()===y?T.push(y.toUpperCase()):T.push(y.toLowerCase())}),T})(m),built_in:_},R=O=>O.map(T=>T.replace(/\|\d+$/,"")),E={variants:[{match:[/new/,t.concat(f,"+"),t.concat("(?!",R(_).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},v=t.concat(r,"\\b(?!\\()"),A={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),v],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),v],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},w={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},N={relevance:0,begin:/\(/,end:/\)/,keywords:k,contains:[w,a,A,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,g,h,E]},C={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",R(b).join("\\b|"),"|",R(_).join("\\b|"),"\\b)"),r,t.concat(f,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[N]};N.contains.push(C);let S=[w,A,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,g,h,E],I={begin:t.concat(/#\[\s*\\?/,t.either(i,o)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:m,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:m,keyword:["new","array"]},contains:["self",...S]},...S,{scope:"meta",variants:[{match:i},{match:o}]}]};return{case_insensitive:!1,keywords:k,contains:[I,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},a,C,A,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},E,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:k,contains:["self",I,a,A,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,g,h]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},g,h]}}Us.exports=ap});var Ws=W((qb,qs)=>{function cp(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}qs.exports=cp});var Gs=W((Wb,Hs)=>{function lp(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}Hs.exports=lp});var Zs=W((Hb,Ks)=>{function up(e){let t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},u={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c,u,l]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c,u,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,u,l]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,u,l]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",f=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,g=`\\b|${r.join("|")}`,h={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${f}))[eE][+-]?(${p})[jJ]?(?=${g})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${p})[jJ](?=${g})`}]},m={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},b={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",c,h,d,e.HASH_COMMENT_MODE]}]};return l.contains=[d,h,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[c,h,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},d,m,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[b]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[h,b,d]}]}}Ks.exports=up});var Ys=W((Gb,Js)=>{function dp(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}Js.exports=dp});var Xs=W((Kb,js)=>{function fp(e){let t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}js.exports=fp});var Qs=W((Zb,Vs)=>{function gp(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),o={scope:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,i,t.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",s=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],c=["true","false","Some","None","Ok","Err"],l=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],u=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:u,keyword:s,literal:c,built_in:l},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,r],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],scope:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:l,type:u}},{scope:"punctuation",begin:"->"},o]}}Vs.exports=gp});var ta=W((Jb,ea)=>{var pp=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),hp=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],mp=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],bp=[...hp,...mp],_p=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Ep=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),wp=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),kp=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function xp(e){let t=pp(e),n=wp,r=Ep,i="@[a-z-]+",o="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+bp.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+kp.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,t.UNICODE_RANGE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:_p.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}ea.exports=xp});var ra=W((Yb,na)=>{function yp(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}na.exports=yp});var oa=W((jb,ia)=>{function vp(e){let t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],p=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],f=u,g=[...l,...c].filter(R=>!u.includes(R)),h={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},m={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},b={match:t.concat(/\b/,t.either(...f),/\s*\(/),relevance:0,keywords:{built_in:f}};function _(R){return t.concat(/\b/,t.either(...R.map(E=>E.replace(/\s+/,"\\s+"))),/\b/)}let x={scope:"keyword",match:_(p),relevance:0};function k(R,{exceptions:E,when:v}={}){let A=v;return E=E||[],R.map(w=>w.match(/\|\d+$/)||E.includes(w)?w:A(w)?`${w}|0`:w)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:k(g,{when:R=>R.length<3}),literal:o,type:s,built_in:d},contains:[{scope:"type",match:_(a)},x,b,h,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,m]}}ia.exports=vp});var pa=W((Xb,ga)=>{function la(e){return e?typeof e=="string"?e:e.source:null}function Et(e){return Y("(?=",e,")")}function Y(...e){return e.map(n=>la(n)).join("")}function Rp(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ae(...e){return"("+(Rp(e).capture?"":"?:")+e.map(r=>la(r)).join("|")+")"}new RegExp(ae(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));var cr=e=>Y(/\b/,e,/\w$/.test(e)?/\b/:/\B/),Ap=["Protocol","Type"].map(cr),sa=["init","self"].map(cr),Cp=["Any","Self"],sr=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],aa=["false","nil","true"],Tp=["assignment","associativity","higherThan","left","lowerThan","none","right"],Np=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],ca=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],ua=ae(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),da=ae(ua,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),ar=Y(ua,da,"*"),fa=ae(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),rn=ae(fa,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Ee=Y(fa,rn,"*"),nn=Y(/[A-Z]/,rn,"*"),Sp=["attached","autoclosure",Y(/convention\(/,ae("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Y(/objc\(/,Ee,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Dp=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Mp(e){let t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,ae(...Ap,...sa)],className:{2:"keyword"}},o={match:Y(/\./,ae(...sr)),relevance:0},a=sr.filter(J=>typeof J=="string").concat(["_|0"]),s=sr.filter(J=>typeof J!="string").concat(Cp).map(cr),c={variants:[{className:"keyword",match:ae(...s,...sa)}]},l={$pattern:ae(/\b\w+/,/#\w+/),keyword:a.concat(Np),literal:aa},u=[i,o,c],d={match:Y(/\./,ae(...ca)),relevance:0},p={className:"built_in",match:Y(/\b/,ae(...ca),/(?=\()/)},f=[d,p],g={match:/->/,relevance:0},h={className:"operator",relevance:0,variants:[{match:ar},{match:`\\.(\\.|${da})+`}]},m=[g,h],b="([0-9]_*)+",_="([0-9a-fA-F]_*)+",x={className:"number",relevance:0,variants:[{match:`\\b(${b})(\\.(${b}))?([eE][+-]?(${b}))?\\b`},{match:`\\b0x(${_})(\\.(${_}))?([pP][+-]?(${b}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},k=(J="")=>({className:"subst",variants:[{match:Y(/\\/,J,/[0\\tnr"']/)},{match:Y(/\\/,J,/u\{[0-9a-fA-F]{1,8}\}/)}]}),R=(J="")=>({className:"subst",match:Y(/\\/,J,/[\t ]*(?:[\r\n]|\r\n)/)}),E=(J="")=>({className:"subst",label:"interpol",begin:Y(/\\/,J,/\(/),end:/\)/}),v=(J="")=>({begin:Y(J,/"""/),end:Y(/"""/,J),contains:[k(J),R(J),E(J)]}),A=(J="")=>({begin:Y(J,/"/),end:Y(/"/,J),contains:[k(J),E(J)]}),w={className:"string",variants:[v(),v("#"),v("##"),v("###"),A(),A("#"),A("##"),A("###")]},N=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],C={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:N},S=J=>{let Re=Y(J,/\//),$=Y(/\//,J);return{begin:Re,end:$,contains:[...N,{scope:"comment",begin:`#(?!.*${$})`,end:/$/}]}},I={scope:"regexp",variants:[S("###"),S("##"),S("#"),C]},O={match:Y(/`/,Ee,/`/)},T={className:"variable",match:/\$\d+/},y={className:"variable",match:`\\$${rn}+`},D=[O,T,y],M={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Dp,contains:[...m,x,w]}]}},P={scope:"keyword",match:Y(/@/,ae(...Sp),Et(ae(/\(/,/\s+/)))},U={scope:"meta",match:Y(/@/,Ee)},H=[M,P,U],X={match:Et(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Y(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,rn,"+")},{className:"type",match:nn,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Y(/\s+&\s+/,Et(nn)),relevance:0}]},de={begin:/</,end:/>/,keywords:l,contains:[...r,...u,...H,g,X]};X.contains.push(de);let ce={match:Y(Ee,/\s*:/),keywords:"_|0",relevance:0},ue={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",ce,...r,I,...u,...f,...m,x,w,...D,...H,X]},Pe={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,X]},vt={begin:ae(Et(Y(Ee,/\s*:/)),Et(Y(Ee,/\s+/,Ee,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Ee}]},Xe={begin:/\(/,end:/\)/,keywords:l,contains:[vt,...r,...u,...m,x,w,...H,X,ue],endsParent:!0,illegal:/["']/},gn={match:[/(func|macro)/,/\s+/,ae(O.match,Ee,ar)],className:{1:"keyword",3:"title.function"},contains:[Pe,Xe,t],illegal:[/\[/,/%/]},pn={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Pe,Xe,t],illegal:/\[|%/},hn={match:[/operator/,/\s+/,ar],className:{1:"keyword",3:"title"}},mn={begin:[/precedencegroup/,/\s+/,nn],className:{1:"keyword",3:"title"},contains:[X],keywords:[...Tp,...aa],end:/}/},$e={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Rt={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},fe={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Ee,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:l,contains:[Pe,...u,{begin:/:/,end:/\{/,keywords:l,contains:[{scope:"title.class.inherited",match:nn},...u],relevance:0}]};for(let J of w.variants){let Re=J.contains.find(At=>At.label==="interpol");Re.keywords=l;let $=[...u,...f,...m,x,w,...D];Re.contains=[...$,{begin:/\(/,end:/\)/,contains:["self",...$]}]}return{name:"Swift",keywords:l,contains:[...r,gn,pn,$e,Rt,fe,hn,mn,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},I,...u,...f,...m,x,w,...D,...H,X,ue]}}ga.exports=Mp});var ma=W((Vb,ha)=>{function Ip(e){let t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},a={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),p={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},g={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},h={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},m=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},p,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,h,o,a],b=[...m];return b.pop(),b.push(s),f.contains=b,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:m}}ha.exports=Ip});var Ra=W((Qb,va)=>{var on="[A-Za-z$_][0-9A-Za-z$_]*",ba=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],_a=["true","false","null","undefined","NaN","Infinity"],Ea=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],wa=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ka=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],xa=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],ya=[].concat(ka,Ea,wa);function Op(e){let t=e.regex,n=(M,{after:P})=>{let U="</"+M[0].slice(1);return M.input.indexOf(U,P)!==-1},r=on,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(M,P)=>{let U=M[0].length+M.index,H=M.input[U];if(H==="<"||H===","){P.ignoreMatch();return}H===">"&&(n(M,{after:U})||P.ignoreMatch());let X,de=M.input.substring(U);if(X=de.match(/^\s*=/)){P.ignoreMatch();return}if((X=de.match(/^\s+extends\s+/))&&X.index===0){P.ignoreMatch();return}}},s={$pattern:on,keyword:ba,literal:_a,built_in:ya,"variable.language":xa},c="[0-9](_?[0-9])*",l=`\\.(${c})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},h={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},_={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},x=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,h,m,{match:/\$\d+/},d];p.contains=x.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(x)});let k=[].concat(_,p.contains),R=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(k)}]),E={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R},v={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},A={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ea,...wa]}},w={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},N={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[E],illegal:/%/},C={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function S(M){return t.concat("(?!",M.join("|"),")")}let I={match:t.concat(/\b/,S([...ka,"super","import","await"].map(M=>`${M}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},O={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},T={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},E]},y="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",D={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(y)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[E]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:A},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),w,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,h,m,_,{match:/\$\d+/},d,A,{scope:"attr",match:r+t.lookahead(":"),relevance:0},D,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,e.REGEXP_MODE,{className:"function",begin:y,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},N,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[E,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},O,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[E]},I,C,v,T,{match:/\$[(.]/}]}}function Lp(e){let t=e.regex,n=Op(e),r=on,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},c=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:on,keyword:ba.concat(c),literal:_a,built_in:ya.concat(i),"variable.language":xa},u={className:"meta",begin:"@"+r},d=(h,m,b)=>{let _=h.contains.findIndex(x=>x.label===m);if(_===-1)throw new Error("can not find mode to replace");h.contains.splice(_,1,b)};Object.assign(n.keywords,l),n.exports.PARAMS_CONTAINS.push(u);let p=n.contains.find(h=>h.scope==="attr"),f=Object.assign({},p,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,p,f]),n.contains=n.contains.concat([u,o,a,f]),d(n,"shebang",e.SHEBANG()),d(n,"use_strict",s);let g=n.contains.find(h=>h.label==="func.def");return g.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}va.exports=Lp});var Ca=W((e_,Aa)=>{function Fp(e){let t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,c={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(o,i),/ +/,t.either(a,s),/ *#/)}]},l={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},u={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),p=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,c,l,u,d,p,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[p]}]}}Aa.exports=Fp});var Na=W((t_,Ta)=>{function Bp(e){e.regex;let t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");let n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},c={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},l={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,i,e.QUOTE_STRING_MODE,c,l,s]}}Ta.exports=Bp});var Da=W((n_,Sa)=>{var z=Wo();z.registerLanguage("xml",Go());z.registerLanguage("bash",Zo());z.registerLanguage("c",Yo());z.registerLanguage("cpp",Xo());z.registerLanguage("csharp",Qo());z.registerLanguage("css",ts());z.registerLanguage("markdown",rs());z.registerLanguage("diff",os());z.registerLanguage("ruby",as());z.registerLanguage("go",ls());z.registerLanguage("graphql",ds());z.registerLanguage("ini",gs());z.registerLanguage("java",bs());z.registerLanguage("javascript",ys());z.registerLanguage("json",Rs());z.registerLanguage("kotlin",Cs());z.registerLanguage("less",Ds());z.registerLanguage("lua",Is());z.registerLanguage("makefile",Ls());z.registerLanguage("perl",Bs());z.registerLanguage("objectivec",$s());z.registerLanguage("php",zs());z.registerLanguage("php-template",Ws());z.registerLanguage("plaintext",Gs());z.registerLanguage("python",Zs());z.registerLanguage("python-repl",Ys());z.registerLanguage("r",Xs());z.registerLanguage("rust",Qs());z.registerLanguage("scss",ta());z.registerLanguage("shell",ra());z.registerLanguage("sql",oa());z.registerLanguage("swift",pa());z.registerLanguage("yaml",ma());z.registerLanguage("typescript",Ra());z.registerLanguage("vbnet",Ca());z.registerLanguage("wasm",Na());z.HighlightJS=z;z.default=z;Sa.exports=z});var re=require("node:fs"),K=require("node:path"),Tc=require("node:url");var xe=require("node:fs"),wr=require("node:path"),yt=require("node:url");var Rr=require("node:path"),Ar=require("node:url");function Cr(e,t,n){return e.replace(/(?<![\w\\.\-/?=&#])(-?(?:\d*\.)?\d+(?:e[+-]?\d+)?)([dsl]?v(?:w|h|i|b|min|max))(?![\w-])/gi,(r,i,o)=>{let a=o.toLowerCase().replace(/^[dsl]/,""),s=a==="vw"||a==="vi"?t:a==="vh"||a==="vb"?n:a==="vmin"?Math.min(t,n):Math.max(t,n);return`${Math.round(Number(i)*s/100*1e3)/1e3}px`})}function Tr(e){let t=[],n=0,r="",i=0;for(let o=0;o<e.length;o++){let a=e[o];r?a==="\\"?o++:a===r&&(r=""):a==='"'||a==="'"?r=a:a==="("?n++:a===")"?n--:a===","&&n===0&&(t.push(e.slice(i,o).trim()),i=o+1)}return t.push(e.slice(i).trim()),t.filter(o=>o!=="")}var Nr=e=>`seqnotes-asset:${e}`,Pc=/seqnotes-asset:(\d+)/g;function Sr(e,t){return e.replace(Pc,(n,r)=>t[Number(r)]??n)}var $c={avif:"image/avif",bmp:"image/bmp",gif:"image/gif",ico:"image/x-icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",otf:"font/otf",ttf:"font/ttf",woff:"font/woff",woff2:"font/woff2"};function xn(e,t){let n=t?.split(";")[0].trim().toLowerCase();if(n&&n!=="application/octet-stream")return n;let r=/\.([a-z0-9]+)$/i.exec(new URL(e).pathname)?.[1].toLowerCase()??"";return $c[r]??"application/octet-stream"}var Dr=e=>e.replace(/<(?=[\w/!?])/g,"\\3c ");function Uc(e){let t="",n="";for(let r=0;r<e.length;r++){let i=e[r];if(n){if(i==="\\"){t+=i+(e[++r]??"");continue}i===n&&(n="")}else if(i==='"'||i==="'")n=i;else if(i==="/"&&e[r+1]==="*"){let o=e.indexOf("*/",r+2);r=o<0?e.length:o+1;continue}t+=i}return t}var kn=`"((?:[^"\\\\]|\\\\.)*)"|'((?:[^'\\\\]|\\\\.)*)'`,zc=new RegExp(`url\\(\\s*(?:${kn}|([^)\\s'"]*))\\s*\\)`,"gi"),vr=new RegExp(`@import\\s*(?:url\\(\\s*(?:${kn}|([^)\\s'"]*))\\s*\\)|${kn})((?:[^;"']|"(?:[^"\\\\]|\\\\.)*"|'(?:[^'\\\\]|\\\\.)*')*);`,"gi"),Mr=e=>e.replace(/\\(.)/g,"$1");function qc(e,t){return e.replace(zc,(n,r,i,o)=>{let a=Mr(r??i??o??"");if(a===""||a.startsWith("#")||/^data:/i.test(a))return n;try{return`url("${new URL(a,t).href.replace(/["\\]/g,"\\$&")}")`}catch{return n}})}function Wc(e){let t=e.trim(),n,r,i=/^layer(?:\(([^)]*)\))?(?=\s|$)/i.exec(t);if(i&&(n=i[1]?.trim()??"",t=t.slice(i[0].length).trim()),/^supports\(/i.test(t)){let o=0,a=8;for(;a<t.length&&(o+=t[a]==="("?1:t[a]===")"?-1:0,o!==0);a++);r=t.slice(9,a).trim(),t=t.slice(a+1).trim()}return{...n===void 0?{}:{layer:n},...r===void 0?{}:{supports:r},media:t}}async function yn(e,t,n,r,i=new Set([t])){let o=Uc(e).replace(/@charset\s*"[^"]*"\s*;/gi,""),a=Array.from(o.matchAll(vr),async l=>{let u;try{u=new URL(Mr(l[1]??l[2]??l[3]??l[4]??l[5]??""),t).href}catch{return""}if(i.has(u))return"";let d=await n(u);if(d===void 0)return r.push(u),"";let p=await yn(d,u,n,r,new Set([...i,u])),{layer:f,supports:g,media:h}=Wc(l[6]);return f!==void 0&&(p=`@layer ${f}${f?" ":""}{
2
+ "use strict";var $c=Object.create;var xn=Object.defineProperty;var Uc=Object.getOwnPropertyDescriptor;var zc=Object.getOwnPropertyNames;var qc=Object.getPrototypeOf,Wc=Object.prototype.hasOwnProperty;var W=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},Tr=(e,t)=>{for(var n in t)xn(e,n,{get:t[n],enumerable:!0})},Hc=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zc(t))!Wc.call(e,i)&&i!==n&&xn(e,i,{get:()=>t[i],enumerable:!(r=Uc(t,i))||r.enumerable});return e};var yn=(e,t,n)=>(n=e!=null?$c(qc(e)):{},Hc(t||!e||!e.__esModule?xn(n,"default",{value:e,enumerable:!0}):n,e));var pi=W((qm,gi)=>{"use strict";var Rl=/^xn--/,Al=/[^\0-\x7F]/,Cl=/[\x2E\u3002\uFF0E\uFF61]/g,Tl={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Bn=35,me=Math.floor,Pn=String.fromCharCode;function Ce(e){throw new RangeError(Tl[e])}function Nl(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function ci(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(Cl,".");let i=e.split("."),o=Nl(i,t).join(".");return r+o}function li(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var Sl=e=>String.fromCodePoint(...e),Dl=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:36},ai=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},ui=function(e,t,n){let r=0;for(e=n?me(e/700):e>>1,e+=me(e/t);e>Bn*26>>1;r+=36)e=me(e/Bn);return me(r+(Bn+1)*e/(e+38))},di=function(e){let t=[],n=e.length,r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Ce("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){let c=r;for(let u=1,d=36;;d+=36){s>=n&&Ce("invalid-input");let p=Dl(e.charCodeAt(s++));p>=36&&Ce("invalid-input"),p>me((2147483647-r)/u)&&Ce("overflow"),r+=p*u;let f=d<=o?1:d>=o+26?26:d-o;if(p<f)break;let g=36-f;u>me(2147483647/g)&&Ce("overflow"),u*=g}let l=t.length+1;o=ui(r-c,l,c==0),me(r/l)>2147483647-i&&Ce("overflow"),i+=me(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)},fi=function(e){let t=[];e=li(e);let n=e.length,r=128,i=0,o=72;for(let c of e)c<128&&t.push(Pn(c));let a=t.length,s=a;for(a&&t.push("-");s<n;){let c=2147483647;for(let u of e)u>=r&&u<c&&(c=u);let l=s+1;c-r>me((2147483647-i)/l)&&Ce("overflow"),i+=(c-r)*l,r=c;for(let u of e)if(u<r&&++i>2147483647&&Ce("overflow"),u===r){let d=i;for(let p=36;;p+=36){let f=p<=o?1:p>=o+26?26:p-o;if(d<f)break;let g=d-f,h=36-f;t.push(Pn(ai(f+g%h,0))),d=me(g/h)}t.push(Pn(ai(d,0))),o=ui(i,l,s===a),i=0,++s}++i,++r}return t.join("")},Ml=function(e){return ci(e,function(t){return Rl.test(t)?di(t.slice(4).toLowerCase()):t})},Il=function(e){return ci(e,function(t){return Al.test(t)?"xn--"+fi(t):t})},Ol={version:"2.3.1",ucs2:{decode:li,encode:Sl},decode:di,encode:fi,toASCII:Il,toUnicode:Ml};gi.exports=Ol});var jo=W((Bb,Yo)=>{function Bo(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Bo(n)}),e}var Xt=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Po(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Se(e,...t){let n=Object.create(null);for(let r in e)n[r]=e[r];return t.forEach(function(r){for(let i in r)n[i]=r[i]}),n}var Hf="</span>",Do=e=>!!e.scope,Gf=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){let n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`},or=class{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=Po(t)}openNode(t){if(!Do(t))return;let n=Gf(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){Do(t)&&(this.buffer+=Hf)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}},Mo=(e={})=>{let t={children:[]};return Object.assign(t,e),t},sr=class e{constructor(){this.rootNode=Mo(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){let n=Mo({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{e._collapse(n)}))}},ar=class extends sr{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){let r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new or(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function _t(e){return e?typeof e=="string"?e:e.source:null}function $o(e){return Le("(?=",e,")")}function Kf(e){return Le("(?:",e,")*")}function Zf(e){return Le("(?:",e,")?")}function Le(...e){return e.map(n=>_t(n)).join("")}function Jf(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Qt(...e){return"("+(Jf(e).capture?"":"?:")+e.map(r=>_t(r)).join("|")+")"}function Uo(e){return new RegExp(e.toString()+"|").exec("").length-1}function Yf(e,t){let n=e&&e.exec(t);return n&&n.index===0}var jf=new RegExp(Qt(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function lr(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;let i=n,o=_t(r),a="";for(;o.length>0;){let s=jf.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],(s[0]==="("||/^\(\?[<']/.test(s[0]))&&n++)}return a}).map(r=>`(${r})`).join(t)}var Xf=/\b\B/,zo="[a-zA-Z]\\w*",ur="[a-zA-Z_]\\w*",qo="\\b\\d+(\\.\\d+)?",Wo="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ho="\\b(0b[01]+)",Vf="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Qf=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=Le(t,/.*\b/,e.binary,/\b.*/)),Se({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},Et={begin:"\\\\[\\s\\S]",relevance:0},eg={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Et]},tg={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Et]},ng={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},en=function(e,t,n={}){let r=Se({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=Qt("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Le(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},rg=en("//","$"),ig=en("/\\*","\\*/"),og=en("#","$"),sg={scope:"number",begin:qo,relevance:0},ag={scope:"number",begin:Wo,relevance:0},cg={scope:"number",begin:Ho,relevance:0},lg={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Et,{begin:/\[/,end:/\]/,relevance:0,contains:[Et]}]},ug={scope:"title",begin:zo,relevance:0},dg={scope:"title",begin:ur,relevance:0},fg={begin:"\\.\\s*"+ur,relevance:0},gg=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})},jt=Object.freeze({__proto__:null,APOS_STRING_MODE:eg,BACKSLASH_ESCAPE:Et,BINARY_NUMBER_MODE:cg,BINARY_NUMBER_RE:Ho,COMMENT:en,C_BLOCK_COMMENT_MODE:ig,C_LINE_COMMENT_MODE:rg,C_NUMBER_MODE:ag,C_NUMBER_RE:Wo,END_SAME_AS_BEGIN:gg,HASH_COMMENT_MODE:og,IDENT_RE:zo,MATCH_NOTHING_RE:Xf,METHOD_GUARD:fg,NUMBER_MODE:sg,NUMBER_RE:qo,PHRASAL_WORDS_MODE:ng,QUOTE_STRING_MODE:tg,REGEXP_MODE:lg,RE_STARTERS_RE:Vf,SHEBANG:Qf,TITLE_MODE:ug,UNDERSCORE_IDENT_RE:ur,UNDERSCORE_TITLE_MODE:dg});function pg(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function hg(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function mg(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=pg,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function bg(e,t){Array.isArray(e.illegal)&&(e.illegal=Qt(...e.illegal))}function _g(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Eg(e,t){e.relevance===void 0&&(e.relevance=1)}var wg=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");let n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Le(n.beforeMatch,$o(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},kg=["of","and","for","in","not","or","if","then","parent","list","value"],xg="keyword";function Go(e,t,n=xg){let r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,Go(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){let c=s.split("|");r[c[0]]=[o,yg(c[0],c[1])]})}}function yg(e,t){return t?Number(t):vg(e)?0:1}function vg(e){return kg.includes(e.toLowerCase())}var Io={},Oe=e=>{console.error(e)},Oo=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Ke=(e,t)=>{Io[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Io[`${e}/${t}`]=!0)},Vt=new Error;function Ko(e,t,{key:n}){let r=0,i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=Uo(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function Rg(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Oe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Vt;if(typeof e.beginScope!="object"||e.beginScope===null)throw Oe("beginScope must be object"),Vt;Ko(e,e.begin,{key:"beginScope"}),e.begin=lr(e.begin,{joinWith:""})}}function Ag(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Oe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Vt;if(typeof e.endScope!="object"||e.endScope===null)throw Oe("endScope must be object"),Vt;Ko(e,e.end,{key:"endScope"}),e.end=lr(e.end,{joinWith:""})}}function Cg(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Tg(e){Cg(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Rg(e),Ag(e)}function Ng(e){function t(a,s){return new RegExp(_t(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,s]),this.matchAt+=Uo(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let s=this.regexes.map(c=>c[1]);this.matcherRe=t(lr(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;let c=this.matcherRe.exec(s);if(!c)return null;let l=c.findIndex((d,p)=>p>0&&d!==void 0),u=this.matchIndexes[l];return c.splice(0,l),Object.assign(c,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];let c=new n;return this.rules.slice(s).forEach(([l,u])=>c.addRule(l,u)),c.compile(),this.multiRegexes[s]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,c){this.rules.push([s,c]),c.type==="begin"&&this.count++}exec(s){let c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let l=c.exec(s);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){let u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,l=u.exec(s)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function i(a){let s=new r;return a.contains.forEach(c=>s.addRule(c.begin,{rule:c,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){let c=a;if(a.isCompiled)return c;[hg,_g,Tg,wg].forEach(u=>u(a,s)),e.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[mg,bg,Eg].forEach(u=>u(a,s)),a.isCompiled=!0;let l=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),l=a.keywords.$pattern,delete a.keywords.$pattern),l=l||/\w+/,a.keywords&&(a.keywords=Go(a.keywords,e.case_insensitive)),c.keywordPatternRe=t(l,!0),s&&(a.begin||(a.begin=/\B|\b/),c.beginRe=t(c.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(c.endRe=t(c.end)),c.terminatorEnd=_t(c.end)||"",a.endsWithParent&&s.terminatorEnd&&(c.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(c.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return Sg(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,c)}),a.starts&&o(a.starts,s),c.matcher=i(c),c}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Se(e.classNameAliases||{}),o(e)}function Zo(e){return e?e.endsWithParent||Zo(e.starts):!1}function Sg(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Se(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Zo(e)?Se(e,{starts:e.starts?Se(e.starts):null}):Object.isFrozen(e)?Se(e):e}var Dg="11.12.0",cr=class extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}},ir=Po,Lo=Se,Fo=Symbol("nomatch"),Mg=7,Jo=function(e){let t=Object.create(null),n=Object.create(null),r=[],i=!0,o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]},s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ar};function c(y){return s.noHighlightRe.test(y)}function l(y){let N=y.className+" ";N+=y.parentNode?y.parentNode.className:"";let D=s.languageDetectRe.exec(N);if(D){let P=A(D[1]);return P||(Oo(o.replace("{}",D[1])),Oo("Falling back to no-highlight mode for this block.",y)),P?D[1]:"no-highlight"}return N.split(/\s+/).find(P=>c(P)||A(P))}function u(y,N,D){let P="",U="";typeof N=="object"?(P=y,D=N.ignoreIllegals,U=N.language):(Ke("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ke("10.7.0",`Please use highlight(code, options) instead.
3
+ https://github.com/highlightjs/highlight.js/issues/2277`),U=y,P=N),D===void 0&&(D=!0);let H={code:P,language:U};L("before:highlight",H);let V=H.result?H.result:d(H.language,H.code,D);return V.code=H.code,L("after:highlight",V),V}function d(y,N,D,P){let U=Object.create(null);function H(O,B){return O.keywords[B]}function V(){if(!$.keywords){ie.addText(Q);return}let O=0;$.keywordPatternRe.lastIndex=0;let B=$.keywordPatternRe.exec(Q),q="";for(;B;){q+=Q.substring(O,B.index);let Z=fe.case_insensitive?B[0].toLowerCase():B[0],se=H($,Z);if(se){let[we,Bc]=se;if(ie.addText(q),q="",U[Z]=(U[Z]||0)+1,U[Z]<=Mg&&(Tt+=Bc),we.startsWith("_"))q+=B[0];else{let Pc=fe.classNameAliases[we]||we;ue(B[0],Pc)}}else q+=B[0];O=$.keywordPatternRe.lastIndex,B=$.keywordPatternRe.exec(Q)}q+=Q.substring(O),ie.addText(q)}function de(){if(Q==="")return;let O=null;if(typeof $.subLanguage=="string"){if(!t[$.subLanguage]){ie.addText(Q);return}O=d($.subLanguage,Q,!0,Ct[$.subLanguage]),Ct[$.subLanguage]=O._top}else O=f(Q,$.subLanguage.length?$.subLanguage:null);$.relevance>0&&(Tt+=O.relevance),ie.__addSublanguage(O._emitter,O.language)}function ce(){$.subLanguage!=null?de():V(),Q=""}function ue(O,B){O!==""&&(ie.startScope(B),ie.addText(O),ie.endScope())}function $e(O,B){let q=1,Z=B.length-1;for(;q<=Z;){if(!O._emit[q]){q++;continue}let se=fe.classNameAliases[O[q]]||O[q],we=B[q];se?ue(we,se):(Q=we,V(),Q=""),q++}}function Rt(O,B){return O.scope&&typeof O.scope=="string"&&ie.openNode(fe.classNameAliases[O.scope]||O.scope),O.beginScope&&(O.beginScope._wrap?(ue(Q,fe.classNameAliases[O.beginScope._wrap]||O.beginScope._wrap),Q=""):O.beginScope._multi&&($e(O.beginScope,B),Q="")),$=Object.create(O,{parent:{value:$}}),$}function Xe(O,B,q){let Z=Yf(O.endRe,q);if(Z){if(O["on:end"]){let se=new Xt(O);O["on:end"](B,se),se.isMatchIgnored&&(Z=!1)}if(Z){for(;O.endsParent&&O.parent;)O=O.parent;return O}}if(O.endsWithParent)return Xe(O.parent,B,q)}function mn(O){return $.matcher.regexIndex===0?(Q+=O[0],1):(kn=!0,0)}function bn(O){let B=O[0],q=O.rule,Z=new Xt(q),se=[q.__beforeBegin,q["on:begin"]];for(let we of se)if(we&&(we(O,Z),Z.isMatchIgnored))return mn(B);return q.skip?Q+=B:(q.excludeBegin&&(Q+=B),ce(),!q.returnBegin&&!q.excludeBegin&&(Q=B)),Rt(q,O),q.returnBegin?0:B.length}function _n(O){let B=O[0],q=N.substring(O.index),Z=Xe($,O,q);if(!Z)return Fo;let se=$;$.endScope&&$.endScope._wrap?(ce(),ue(B,$.endScope._wrap)):$.endScope&&$.endScope._multi?(ce(),$e($.endScope,O)):se.skip?Q+=B:(se.returnEnd||se.excludeEnd||(Q+=B),ce(),se.excludeEnd&&(Q=B));do $.scope&&ie.closeNode(),!$.skip&&!$.subLanguage&&(Tt+=$.relevance),$=$.parent;while($!==Z.parent);return Z.starts&&Rt(Z.starts,O),se.returnEnd?0:B.length}function En(){let O=[];for(let B=$;B!==fe;B=B.parent)B.scope&&O.unshift(B.scope);O.forEach(B=>ie.openNode(B))}let Ue={};function At(O,B){let q=B&&B[0];if(Q+=O,q==null)return ce(),0;if(Ue.type==="begin"&&B.type==="end"&&Ue.index===B.index&&q===""){if(Q+=N.slice(B.index,B.index+1),!i){let Z=new Error(`0 width match regex (${y})`);throw Z.languageName=y,Z.badRule=Ue.rule,Z}return 1}if(Ue=B,B.type==="begin")return bn(B);if(B.type==="illegal"&&!D){let Z=new Error('Illegal lexeme "'+q+'" for mode "'+($.scope||"<unnamed>")+'"');throw Z.mode=$,Z}else if(B.type==="end"){let Z=_n(B);if(Z!==Fo)return Z}if(B.type==="illegal"&&q==="")return B.index===N.length||(Q+=`
4
+ `),1;if(wn>1e5&&wn>B.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Q+=q,q.length}let fe=A(y);if(!fe)throw Oe(o.replace("{}",y)),new Error('Unknown language: "'+y+'"');let J=Ng(fe),Re="",$=P||J,Ct={},ie=new s.__emitter(s);En();let Q="",Tt=0,De=0,wn=0,kn=!1;try{if(fe.__emitTokens)fe.__emitTokens(N,ie);else{for($.matcher.considerAll();;){wn++,kn?kn=!1:$.matcher.considerAll(),$.matcher.lastIndex=De;let O=$.matcher.exec(N);if(!O)break;let B=N.substring(De,O.index),q=At(B,O);De=O.index+q}At(N.substring(De))}return ie.finalize(),Re=ie.toHTML(),{language:y,value:Re,relevance:Tt,illegal:!1,_emitter:ie,_top:$}}catch(O){if(O.message&&O.message.includes("Illegal"))return{language:y,value:ir(N),illegal:!0,relevance:0,_illegalBy:{message:O.message,index:De,context:N.slice(De-100,De+100),mode:O.mode,resultSoFar:Re},_emitter:ie};if(i)return{language:y,value:ir(N),illegal:!1,relevance:0,errorRaised:O,_emitter:ie,_top:$};throw O}}function p(y){let N={value:ir(y),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return N._emitter.addText(y),N}function f(y,N){N=N||s.languages||Object.keys(t);let D=p(y),P=N.filter(A).filter(S).map(ce=>d(ce,y,!1));P.unshift(D);let U=P.sort((ce,ue)=>{if(ce.relevance!==ue.relevance)return ue.relevance-ce.relevance;if(ce.language&&ue.language){if(A(ce.language).supersetOf===ue.language)return 1;if(A(ue.language).supersetOf===ce.language)return-1}return 0}),[H,V]=U,de=H;return de.secondBest=V,de}function g(y,N,D){let P=N&&n[N]||D;y.classList.add("hljs"),y.classList.add(`language-${P}`)}function h(y){let N=null,D=l(y);if(c(D))return;if(L("before:highlightElement",{el:y,language:D}),y.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",y);return}if(y.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(y)),s.throwUnescapedHTML))throw new cr("One of your code blocks includes unescaped HTML.",y.innerHTML);N=y;let P=N.textContent,U=D?u(P,{language:D,ignoreIllegals:!0}):f(P);y.innerHTML=U.value,y.dataset.highlighted="yes",g(y,D,U.language),y.result={language:U.language,re:U.relevance,relevance:U.relevance},U.secondBest&&(y.secondBest={language:U.secondBest.language,relevance:U.secondBest.relevance}),L("after:highlightElement",{el:y,result:U,text:P})}function m(y){s=Lo(s,y)}let E=()=>{x(),Ke("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function _(){x(),Ke("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let k=!1;function x(){function y(){x()}if(document.readyState==="loading"){k||window.addEventListener("DOMContentLoaded",y,!1),k=!0;return}document.querySelectorAll(s.cssSelector).forEach(h)}function v(y,N){let D=null;try{D=N(e)}catch(P){if(Oe("Language definition for '{}' could not be registered.".replace("{}",y)),i)Oe(P);else throw P;D=a}D.name||(D.name=y),t[y]=D,D.rawDefinition=N.bind(null,e),D.aliases&&b(D.aliases,{languageName:y})}function w(y){delete t[y];for(let N of Object.keys(n))n[N]===y&&delete n[N]}function R(){return Object.keys(t)}function A(y){return y=(y||"").toLowerCase(),t[y]||t[n[y]]}function b(y,{languageName:N}){typeof y=="string"&&(y=[y]),y.forEach(D=>{n[D.toLowerCase()]=N})}function S(y){let N=A(y);return N&&!N.disableAutodetect}function T(y){y["before:highlightBlock"]&&!y["before:highlightElement"]&&(y["before:highlightElement"]=N=>{y["before:highlightBlock"](Object.assign({block:N.el},N))}),y["after:highlightBlock"]&&!y["after:highlightElement"]&&(y["after:highlightElement"]=N=>{y["after:highlightBlock"](Object.assign({block:N.el},N))})}function M(y){T(y),r.push(y)}function I(y){let N=r.indexOf(y);N!==-1&&r.splice(N,1)}function L(y,N){let D=y;r.forEach(function(P){P[D]&&P[D](N)})}function C(y){return Ke("10.7.0","highlightBlock will be removed entirely in v12.0"),Ke("10.7.0","Please use highlightElement now."),h(y)}Object.assign(e,{highlight:u,highlightAuto:f,highlightAll:x,highlightElement:h,highlightBlock:C,configure:m,initHighlighting:E,initHighlightingOnLoad:_,registerLanguage:v,unregisterLanguage:w,listLanguages:R,getLanguage:A,registerAliases:b,autoDetection:S,inherit:Lo,addPlugin:M,removePlugin:I}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=Dg,e.regex={concat:Le,lookahead:$o,either:Qt,optional:Zf,anyNumberOfTimes:Kf};for(let y in jt)typeof jt[y]=="object"&&Bo(jt[y]);return Object.assign(e,jt),e},Ze=Jo({});Ze.newInstance=()=>Jo({});Yo.exports=Ze;Ze.HighlightJS=Ze;Ze.default=Ze});var Vo=W((Pb,Xo)=>{function Ig(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,c,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}Xo.exports=Ig});var es=W(($b,Qo)=>{function Og(e){let t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});let i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);let c={match:/\\"/},l={className:"string",begin:/'/,end:/'/},u={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=e.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},h=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],m=["true","false"],E={match:/(\/[a-z._-]+)+/},_=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],k=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],x=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],v=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:m,built_in:[..._,...k,"set","shopt",...x,...v]},contains:[f,e.SHEBANG(),g,d,o,a,E,s,c,l,u,n]}}Qo.exports=Og});var ns=W((Ub,ts)=>{function Lg(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s=t.concat(/\batomic_/,t.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:s}]},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},p={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},u,{scope:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),n,e.C_BLOCK_COMMENT_MODE]},g=[p,f],h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},m=t.optional(i)+e.IDENT_RE+"\\s*\\(",E=12,x={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},v=[...g,c,n,e.C_BLOCK_COMMENT_MODE,d,u],w={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:x,contains:v.concat([{begin:/\(/,end:/\)/,keywords:x,contains:v.concat(["self"]),relevance:0}]),relevance:0},R={begin:"("+a+"[\\*&\\s]+){1,"+E+"}"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:x,relevance:0},{begin:m,returnBegin:!0,contains:[e.inherit(h,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,d,c,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,d,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,...g]};return{name:"C",aliases:["h"],keywords:x,disableAutodetect:!0,illegal:"</",contains:[].concat(w,R,v,[...g,{begin:e.IDENT_RE+"::",keywords:x},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:f,strings:u,keywords:x}}}ts.exports=Lg});var is=W((zb,rs)=>{function Fg(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},u={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},d={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},l,{scope:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),n,e.C_BLOCK_COMMENT_MODE]},f=[d,p],g={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},h=t.optional(i)+e.IDENT_RE+"\\s*\\(",m=12,E=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],_=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],k=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],x=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],R={type:_,keyword:E,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:k},A={className:"function.dispatch",relevance:0,keywords:{_hint:x},begin:t.concat(/\b/,`(?!${E.join("|")})`,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},b=[A,...f,s,n,e.C_BLOCK_COMMENT_MODE,u,l],S={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:R,contains:b.concat([{begin:/\(/,end:/\)/,keywords:R,contains:b.concat(["self"]),relevance:0}]),relevance:0},T={className:"function",begin:"("+a+"[\\*&\\s]+){1,"+m+"}"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:R,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:R,relevance:0},{begin:h,returnBegin:!0,contains:[g],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,u,s,{begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,...f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:R,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(S,T,A,b,[...f,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:R,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:R},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}rs.exports=Fg});var ss=W((qb,os)=>{function Bg(e){let t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:i.concat(o),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),c="\\d(_*\\d)*",l="([uU][lL]?|[lL][uU]?)?",d={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+l},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+l},{begin:"(-?)(\\b"+c+"(\\.("+c+")?)?|\\."+c+")([eE][-+]?"+c+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},p={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},f={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},g=e.inherit(f,{illegal:/\n/}),h={className:"subst",begin:/\{/,end:/\}/,keywords:a},m=e.inherit(h,{illegal:/\n/}),E={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,m]},_={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]},k=e.inherit(_,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},m]});h.contains=[_,E,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_BLOCK_COMMENT_MODE],m.contains=[k,E,g,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let x={variants:[p,_,E,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},v={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},w=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",R={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},x,d,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+w+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,v],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[x,d,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},R]}}os.exports=Bg});var cs=W((Wb,as)=>{var Pg=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),$g=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Ug=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],zg=[...$g,...Ug],qg=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Wg=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Hg=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Gg=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Kg(e){let t=e.regex,n=Pg(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Wg.join("|")+")"},{begin:":(:)?("+Hg.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Gg.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,n.UNICODE_RANGE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:qg.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+zg.join("|")+")\\b"}]}}as.exports=Kg});var us=W((Hb,ls)=>{function Zg(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,c={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},l={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(l,{contains:[]}),p=e.inherit(u,{contains:[]});l.contains.push(p),u.contains.push(d);let f=[n,c];return[l,u,d,p].forEach(E=>{E.contains=E.contains.concat(f)}),f=f.concat(l,u),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:f},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:f}]}]},n,o,r,l,u,{className:"quote",begin:"^>\\s+",contains:f,end:"$"},i,c,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}ls.exports=Zg});var fs=W((Gb,ds)=>{function Jg(e){let t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}ds.exports=Jg});var ps=W((Kb,gs)=>{function Yg(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},c={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],u={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"string",contains:[e.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,u]})]}]},p="[1-9](_?[0-9])*|0",f="[0-9](_?[0-9])*",g={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${f}))?([eE][+-]?(${f})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},h={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},w=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[h]},{begin:"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},g,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,u],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(c,l),relevance:0}].concat(c,l);u.contains=w,h.contains=w;let S=[{begin:/^\s*=>/,starts:{end:"$",contains:w}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:w}}];return l.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(S).concat(l).concat(w)}}gs.exports=Yg});var ms=W((Zb,hs)=>{function jg(e){let o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}hs.exports=jg});var _s=W((Jb,bs)=>{function Xg(e){let t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}bs.exports=Xg});var ws=W((Yb,Es)=>{function Vg(e){let t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,o,i,a,n,"self"],relevance:0},c=/[A-Za-z0-9_-]+/,l=/"(\\"|[^"])*"/,u=/'[^']*'/,d=t.either(c,l,u),p=t.concat(d,"(\\s*\\.\\s*",d,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[r,s,o,i,a,n]}}]}}Es.exports=Vg});var vs=W((jb,ys)=>{var Je="[0-9](_*[0-9])*",tn=`\\.(${Je})`,nn="[0-9a-fA-F](_*[0-9a-fA-F])*",ks={className:"number",variants:[{begin:`(\\b(${Je})((${tn})|\\.)?|(${tn}))[eE][+-]?(${Je})[fFdD]?\\b`},{begin:`\\b(${Je})((${tn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${tn})[fFdD]?\\b`},{begin:`\\b(${Je})[fFdD]\\b`},{begin:`\\b0[xX]((${nn})\\.?|(${nn})?\\.(${nn}))[pP][+-]?(${Je})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${nn})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function xs(e,t,n){return n===-1?"":e.replace(t,r=>xs(e,t,n-1))}function Qg(e){let t=e.regex,n="[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*",r="(?:(?:\\s*\\[\\s*])+)?",i=n+"<@@@>"+r,a="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+i+")?")+"|"+i+")",s=xs("(?:\\s*<\\s*"+a+"(?:\\s*,\\s*"+a+")*\\s*>)?",/<@@@>/g,2),p={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},f={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},g={className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:p,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[n,t.concat(s,r,/\s+/),n,r,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{begin:[n,t.concat(s,r,/\s+/),n,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:p,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,ks,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},ks,f]}}ys.exports=Qg});var Ss=W((Xb,Ns)=>{var Rs="[A-Za-z$_][0-9A-Za-z$_]*",ep=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],tp=["true","false","null","undefined","NaN","Infinity"],As=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Cs=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ts=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],np=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],rp=[].concat(Ts,As,Cs);function ip(e){let t=e.regex,n=(D,{after:P})=>{let U="</"+D[0].slice(1);return D.input.indexOf(U,P)!==-1},r=Rs,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(D,P)=>{let U=D[0].length+D.index,H=D.input[U];if(H==="<"||H===","){P.ignoreMatch();return}H===">"&&(n(D,{after:U})||P.ignoreMatch());let V,de=D.input.substring(U);if(V=de.match(/^\s*=/)){P.ignoreMatch();return}if((V=de.match(/^\s+extends\s+/))&&V.index===0){P.ignoreMatch();return}}},s={$pattern:Rs,keyword:ep,literal:tp,built_in:rp,"variable.language":np},c="[0-9](_?[0-9])*",l=`\\.(${c})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},h={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},_={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},k=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,h,m,{match:/\$\d+/},d];p.contains=k.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(k)});let x=[].concat(_,p.contains),v=x.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(x)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:v},R={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},A={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...As,...Cs]}},b={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},S={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function M(D){return t.concat("(?!",D.join("|"),")")}let I={match:t.concat(/\b/,M([...Ts,"super","import","await"].map(D=>`${D}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},L={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},C={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},y="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",N={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(y)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:A},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),b,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,h,m,_,{match:/\$\d+/},d,A,{scope:"attr",match:r+t.lookahead(":"),relevance:0},N,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,e.REGEXP_MODE,{className:"function",begin:y,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},S,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},L,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},I,T,R,C,{match:/\$[(.]/}]}}Ns.exports=ip});var Ms=W((Vb,Ds)=>{var op="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",sp={scope:"number",match:op,relevance:0};function ap(e){let t={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:r},contains:[t,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,sp,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}Ds.exports=ap});var Os=W((Qb,Is)=>{var Ye="[0-9](_*[0-9])*",rn=`\\.(${Ye})`,on="[0-9a-fA-F](_*[0-9a-fA-F])*",cp={className:"number",variants:[{begin:`(\\b(${Ye})((${rn})|\\.)?|(${rn}))[eE][+-]?(${Ye})[fFdD]?\\b`},{begin:`\\b(${Ye})((${rn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${rn})[fFdD]?\\b`},{begin:`\\b(${Ye})[fFdD]\\b`},{begin:`\\b0[xX]((${on})\\.?|(${on})?\\.(${on}))[pP][+-]?(${Ye})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${on})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function lp(e){let t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(a);let s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"string"}),"self"]}]},l=cp,u=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=d;return p.variants[1].contains=[d],d.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,u,n,r,s,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,u],relevance:0},e.C_LINE_COMMENT_MODE,u,s,c,a,e.C_NUMBER_MODE]},u]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,c]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
5
+ `},l]}}Is.exports=lp});var Ps=W((e_,Bs)=>{var up=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),dp=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],fp=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],gp=[...dp,...fp],pp=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Ls=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Fs=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),hp=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),mp=Ls.concat(Fs).sort().reverse();function bp(e){let t=up(e),n=mp,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",a=[],s=[],c=function(k){return{className:"string",begin:"~?"+k+".*?"+k}},l=function(k,x,v){return{className:k,begin:x,relevance:v}},u={$pattern:/[a-z-]+/,keyword:r,attribute:pp.join(" ")},d={begin:"\\(",end:"\\)",contains:s,keywords:u,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c("'"),c('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.UNICODE_RANGE,t.HEXCOLOR,d,l("variable","@@?"+i,10),l("variable","@\\{"+i+"\\}"),l("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);let p=s.concat({begin:/\{/,end:/\}/,contains:a}),f={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},g={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+hp.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},h={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:s,relevance:0}},m={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:p}},E={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,f,l("keyword","all\\b"),l("variable","@\\{"+i+"\\}"),{begin:"\\b("+gp.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,l("selector-tag",o,0),l("selector-id","#"+o),l("selector-class","\\."+o,0),l("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Ls.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Fs.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:p},{begin:"!important"},t.FUNCTION_DISPATCH]},_={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[E]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,m,_,g,E,f,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}Bs.exports=bp});var Us=W((t_,$s)=>{function _p(e){let t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}$s.exports=_p});var qs=W((n_,zs)=>{function Ep(e){let t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,o,a]}}zs.exports=Ep});var Hs=W((r_,Ws)=>{function wp(e){let t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},a={begin:/->\{/,end:/\}/},s={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},c={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},l={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},u=[e.BACKSLASH_ESCAPE,o,c],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(h,m,E="\\1")=>{let _=E==="\\1"?E:t.concat(E,m);return t.concat(t.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,_,/(?:\\.|[^\\\/])*?/,E,r)},f=(h,m,E)=>t.concat(t.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,E,r),g=[c,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:u,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},l,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:p("s|tr|y",t.either(...d,{capture:!0}))},{begin:p("s|tr|y","\\(","\\)")},{begin:p("s|tr|y","\\[","\\]")},{begin:p("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:f("(?:m|qr)?",/\//,/\//)},{begin:f("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:f("m|qr",/\(/,/\)/)},{begin:f("m|qr",/\[/,/\]/)},{begin:f("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,l]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=g,a.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:g}}Ws.exports=wp});var Ks=W((i_,Gs)=>{function kp(e){let t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},c={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+c.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:c,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}Gs.exports=kp});var Js=W((o_,Zs)=>{function xp(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o=t.concat(/[A-Z]+/,n),a={scope:"variable",match:"\\$+"+r},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(L,C)=>{C.data._beginMatch=L[1]||L[2]},"on:end":(L,C)=>{C.data._beginMatch!==L[1]&&C.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[
6
+ ]`,g={scope:"string",variants:[u,l,d,p]},h={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},m=["false","null","true"],E=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],_=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],x={keyword:E,literal:(L=>{let C=[];return L.forEach(y=>{C.push(y),y.toLowerCase()===y?C.push(y.toUpperCase()):C.push(y.toLowerCase())}),C})(m),built_in:_},v=L=>L.map(C=>C.replace(/\|\d+$/,"")),w={variants:[{match:[/new/,t.concat(f,"+"),t.concat("(?!",v(_).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},R=t.concat(r,"\\b(?!\\()"),A={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),R],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),R],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},b={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},S={relevance:0,begin:/\(/,end:/\)/,keywords:x,contains:[b,a,A,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,g,h,w]},T={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",v(E).join("\\b|"),"|",v(_).join("\\b|"),"\\b)"),r,t.concat(f,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[S]};S.contains.push(T);let M=[b,A,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,g,h,w],I={begin:t.concat(/#\[\s*\\?/,t.either(i,o)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:m,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:m,keyword:["new","array"]},contains:["self",...M]},...M,{scope:"meta",variants:[{match:i},{match:o}]}]};return{case_insensitive:!1,keywords:x,contains:[I,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},a,T,A,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},w,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:x,contains:["self",I,a,A,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,g,h]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},g,h]}}Zs.exports=xp});var js=W((s_,Ys)=>{function yp(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}Ys.exports=yp});var Vs=W((a_,Xs)=>{function vp(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}Xs.exports=vp});var ea=W((c_,Qs)=>{function Rp(e){let t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},u={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c,u,l]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c,u,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,u,l]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,u,l]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",f=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,g=`\\b|${r.join("|")}`,h={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${f}))[eE][+-]?(${p})[jJ]?(?=${g})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${p})[jJ](?=${g})`}]},m={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},E={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",c,h,d,e.HASH_COMMENT_MODE]}]};return l.contains=[d,h,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[c,h,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},d,m,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[E]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[h,E,d]}]}}Qs.exports=Rp});var na=W((l_,ta)=>{function Ap(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}ta.exports=Ap});var ia=W((u_,ra)=>{function Cp(e){let t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}ra.exports=Cp});var sa=W((d_,oa)=>{function Tp(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),o={scope:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,i,t.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",s=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],c=["true","false","Some","None","Ok","Err"],l=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],u=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:u,keyword:s,literal:c,built_in:l},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,r],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],scope:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:l,type:u}},{scope:"punctuation",begin:"->"},o]}}oa.exports=Tp});var ca=W((f_,aa)=>{var Np=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Sp=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Dp=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Mp=[...Sp,...Dp],Ip=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Op=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Lp=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Fp=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Bp(e){let t=Np(e),n=Lp,r=Op,i="@[a-z-]+",o="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+Mp.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Fp.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,t.UNICODE_RANGE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:Ip.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}aa.exports=Bp});var ua=W((g_,la)=>{function Pp(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}la.exports=Pp});var fa=W((p_,da)=>{function $p(e){let t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],p=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],f=u,g=[...l,...c].filter(v=>!u.includes(v)),h={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},m={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},E={match:t.concat(/\b/,t.either(...f),/\s*\(/),relevance:0,keywords:{built_in:f}};function _(v){return t.concat(/\b/,t.either(...v.map(w=>w.replace(/\s+/,"\\s+"))),/\b/)}let k={scope:"keyword",match:_(p),relevance:0};function x(v,{exceptions:w,when:R}={}){let A=R;return w=w||[],v.map(b=>b.match(/\|\d+$/)||w.includes(b)?b:A(b)?`${b}|0`:b)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(g,{when:v=>v.length<3}),literal:o,type:s,built_in:d},contains:[{scope:"type",match:_(a)},k,E,h,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,m]}}da.exports=$p});var ka=W((h_,wa)=>{function ma(e){return e?typeof e=="string"?e:e.source:null}function wt(e){return Y("(?=",e,")")}function Y(...e){return e.map(n=>ma(n)).join("")}function Up(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ae(...e){return"("+(Up(e).capture?"":"?:")+e.map(r=>ma(r)).join("|")+")"}new RegExp(ae(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));var gr=e=>Y(/\b/,e,/\w$/.test(e)?/\b/:/\B/),zp=["Protocol","Type"].map(gr),ga=["init","self"].map(gr),qp=["Any","Self"],dr=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],pa=["false","nil","true"],Wp=["assignment","associativity","higherThan","left","lowerThan","none","right"],Hp=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],ha=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],ba=ae(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),_a=ae(ba,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),fr=Y(ba,_a,"*"),Ea=ae(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),an=ae(Ea,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Ee=Y(Ea,an,"*"),sn=Y(/[A-Z]/,an,"*"),Gp=["attached","autoclosure",Y(/convention\(/,ae("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Y(/objc\(/,Ee,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Kp=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Zp(e){let t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,ae(...zp,...ga)],className:{2:"keyword"}},o={match:Y(/\./,ae(...dr)),relevance:0},a=dr.filter(J=>typeof J=="string").concat(["_|0"]),s=dr.filter(J=>typeof J!="string").concat(qp).map(gr),c={variants:[{className:"keyword",match:ae(...s,...ga)}]},l={$pattern:ae(/\b\w+/,/#\w+/),keyword:a.concat(Hp),literal:pa},u=[i,o,c],d={match:Y(/\./,ae(...ha)),relevance:0},p={className:"built_in",match:Y(/\b/,ae(...ha),/(?=\()/)},f=[d,p],g={match:/->/,relevance:0},h={className:"operator",relevance:0,variants:[{match:fr},{match:`\\.(\\.|${_a})+`}]},m=[g,h],E="([0-9]_*)+",_="([0-9a-fA-F]_*)+",k={className:"number",relevance:0,variants:[{match:`\\b(${E})(\\.(${E}))?([eE][+-]?(${E}))?\\b`},{match:`\\b0x(${_})(\\.(${_}))?([pP][+-]?(${E}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},x=(J="")=>({className:"subst",variants:[{match:Y(/\\/,J,/[0\\tnr"']/)},{match:Y(/\\/,J,/u\{[0-9a-fA-F]{1,8}\}/)}]}),v=(J="")=>({className:"subst",match:Y(/\\/,J,/[\t ]*(?:[\r\n]|\r\n)/)}),w=(J="")=>({className:"subst",label:"interpol",begin:Y(/\\/,J,/\(/),end:/\)/}),R=(J="")=>({begin:Y(J,/"""/),end:Y(/"""/,J),contains:[x(J),v(J),w(J)]}),A=(J="")=>({begin:Y(J,/"/),end:Y(/"/,J),contains:[x(J),w(J)]}),b={className:"string",variants:[R(),R("#"),R("##"),R("###"),A(),A("#"),A("##"),A("###")]},S=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],T={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:S},M=J=>{let Re=Y(J,/\//),$=Y(/\//,J);return{begin:Re,end:$,contains:[...S,{scope:"comment",begin:`#(?!.*${$})`,end:/$/}]}},I={scope:"regexp",variants:[M("###"),M("##"),M("#"),T]},L={match:Y(/`/,Ee,/`/)},C={className:"variable",match:/\$\d+/},y={className:"variable",match:`\\$${an}+`},N=[L,C,y],D={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Kp,contains:[...m,k,b]}]}},P={scope:"keyword",match:Y(/@/,ae(...Gp),wt(ae(/\(/,/\s+/)))},U={scope:"meta",match:Y(/@/,Ee)},H=[D,P,U],V={match:wt(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Y(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,an,"+")},{className:"type",match:sn,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Y(/\s+&\s+/,wt(sn)),relevance:0}]},de={begin:/</,end:/>/,keywords:l,contains:[...r,...u,...H,g,V]};V.contains.push(de);let ce={match:Y(Ee,/\s*:/),keywords:"_|0",relevance:0},ue={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",ce,...r,I,...u,...f,...m,k,b,...N,...H,V]},$e={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,V]},Rt={begin:ae(wt(Y(Ee,/\s*:/)),wt(Y(Ee,/\s+/,Ee,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Ee}]},Xe={begin:/\(/,end:/\)/,keywords:l,contains:[Rt,...r,...u,...m,k,b,...H,V,ue],endsParent:!0,illegal:/["']/},mn={match:[/(func|macro)/,/\s+/,ae(L.match,Ee,fr)],className:{1:"keyword",3:"title.function"},contains:[$e,Xe,t],illegal:[/\[/,/%/]},bn={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[$e,Xe,t],illegal:/\[|%/},_n={match:[/operator/,/\s+/,fr],className:{1:"keyword",3:"title"}},En={begin:[/precedencegroup/,/\s+/,sn],className:{1:"keyword",3:"title"},contains:[V],keywords:[...Wp,...pa],end:/}/},Ue={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},At={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},fe={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Ee,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:l,contains:[$e,...u,{begin:/:/,end:/\{/,keywords:l,contains:[{scope:"title.class.inherited",match:sn},...u],relevance:0}]};for(let J of b.variants){let Re=J.contains.find(Ct=>Ct.label==="interpol");Re.keywords=l;let $=[...u,...f,...m,k,b,...N];Re.contains=[...$,{begin:/\(/,end:/\)/,contains:["self",...$]}]}return{name:"Swift",keywords:l,contains:[...r,mn,bn,Ue,At,fe,_n,En,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},I,...u,...f,...m,k,b,...N,...H,V,ue]}}wa.exports=Zp});var ya=W((m_,xa)=>{function Jp(e){let t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},a={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),p={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},g={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},h={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},m=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},p,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,h,o,a],E=[...m];return E.pop(),E.push(s),f.contains=E,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:m}}xa.exports=Jp});var Ma=W((b_,Da)=>{var cn="[A-Za-z$_][0-9A-Za-z$_]*",va=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Ra=["true","false","null","undefined","NaN","Infinity"],Aa=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ca=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ta=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Na=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],Sa=[].concat(Ta,Aa,Ca);function Yp(e){let t=e.regex,n=(D,{after:P})=>{let U="</"+D[0].slice(1);return D.input.indexOf(U,P)!==-1},r=cn,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(D,P)=>{let U=D[0].length+D.index,H=D.input[U];if(H==="<"||H===","){P.ignoreMatch();return}H===">"&&(n(D,{after:U})||P.ignoreMatch());let V,de=D.input.substring(U);if(V=de.match(/^\s*=/)){P.ignoreMatch();return}if((V=de.match(/^\s+extends\s+/))&&V.index===0){P.ignoreMatch();return}}},s={$pattern:cn,keyword:va,literal:Ra,built_in:Sa,"variable.language":Na},c="[0-9](_?[0-9])*",l=`\\.(${c})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},h={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},_={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},k=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,h,m,{match:/\$\d+/},d];p.contains=k.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(k)});let x=[].concat(_,p.contains),v=x.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(x)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:v},R={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},A={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Aa,...Ca]}},b={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},S={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function M(D){return t.concat("(?!",D.join("|"),")")}let I={match:t.concat(/\b/,M([...Ta,"super","import","await"].map(D=>`${D}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},L={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},C={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},y="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",N={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(y)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:A},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),b,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,h,m,_,{match:/\$\d+/},d,A,{scope:"attr",match:r+t.lookahead(":"),relevance:0},N,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,e.REGEXP_MODE,{className:"function",begin:y,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},S,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},L,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},I,T,R,C,{match:/\$[(.]/}]}}function jp(e){let t=e.regex,n=Yp(e),r=cn,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},c=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:cn,keyword:va.concat(c),literal:Ra,built_in:Sa.concat(i),"variable.language":Na},u={className:"meta",begin:"@"+r},d=(h,m,E)=>{let _=h.contains.findIndex(k=>k.label===m);if(_===-1)throw new Error("can not find mode to replace");h.contains.splice(_,1,E)};Object.assign(n.keywords,l),n.exports.PARAMS_CONTAINS.push(u);let p=n.contains.find(h=>h.scope==="attr"),f=Object.assign({},p,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,p,f]),n.contains=n.contains.concat([u,o,a,f]),d(n,"shebang",e.SHEBANG()),d(n,"use_strict",s);let g=n.contains.find(h=>h.label==="func.def");return g.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}Da.exports=jp});var Oa=W((__,Ia)=>{function Xp(e){let t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,c={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(o,i),/ +/,t.either(a,s),/ *#/)}]},l={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},u={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),p=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,c,l,u,d,p,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[p]}]}}Ia.exports=Xp});var Fa=W((E_,La)=>{function Vp(e){e.regex;let t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");let n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},c={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},l={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,i,e.QUOTE_STRING_MODE,c,l,s]}}La.exports=Vp});var Pa=W((w_,Ba)=>{var z=jo();z.registerLanguage("xml",Vo());z.registerLanguage("bash",es());z.registerLanguage("c",ns());z.registerLanguage("cpp",is());z.registerLanguage("csharp",ss());z.registerLanguage("css",cs());z.registerLanguage("markdown",us());z.registerLanguage("diff",fs());z.registerLanguage("ruby",ps());z.registerLanguage("go",ms());z.registerLanguage("graphql",_s());z.registerLanguage("ini",ws());z.registerLanguage("java",vs());z.registerLanguage("javascript",Ss());z.registerLanguage("json",Ms());z.registerLanguage("kotlin",Os());z.registerLanguage("less",Ps());z.registerLanguage("lua",Us());z.registerLanguage("makefile",qs());z.registerLanguage("perl",Hs());z.registerLanguage("objectivec",Ks());z.registerLanguage("php",Js());z.registerLanguage("php-template",js());z.registerLanguage("plaintext",Vs());z.registerLanguage("python",ea());z.registerLanguage("python-repl",na());z.registerLanguage("r",ia());z.registerLanguage("rust",sa());z.registerLanguage("scss",ca());z.registerLanguage("shell",ua());z.registerLanguage("sql",fa());z.registerLanguage("swift",ka());z.registerLanguage("yaml",ya());z.registerLanguage("typescript",Ma());z.registerLanguage("vbnet",Oa());z.registerLanguage("wasm",Fa());z.HighlightJS=z;z.default=z;Ba.exports=z});var re=require("node:fs"),K=require("node:path"),Lc=require("node:url");var xe=require("node:fs"),Rr=require("node:path"),vt=require("node:url");var Sr=require("node:path"),Dr=require("node:url");function Mr(e,t,n){return e.replace(/(?<![\w\\.\-/?=&#])(-?(?:\d*\.)?\d+(?:e[+-]?\d+)?)([dsl]?v(?:w|h|i|b|min|max))(?![\w-])/gi,(r,i,o)=>{let a=o.toLowerCase().replace(/^[dsl]/,""),s=a==="vw"||a==="vi"?t:a==="vh"||a==="vb"?n:a==="vmin"?Math.min(t,n):Math.max(t,n);return`${Math.round(Number(i)*s/100*1e3)/1e3}px`})}function Ir(e){let t=[],n=0,r="",i=0;for(let o=0;o<e.length;o++){let a=e[o];r?a==="\\"?o++:a===r&&(r=""):a==='"'||a==="'"?r=a:a==="("?n++:a===")"?n--:a===","&&n===0&&(t.push(e.slice(i,o).trim()),i=o+1)}return t.push(e.slice(i).trim()),t.filter(o=>o!=="")}var Or=e=>`seqnotes-asset:${e}`,Gc=/seqnotes-asset:(\d+)/g;function Lr(e,t){return e.replace(Gc,(n,r)=>t[Number(r)]??n)}var Kc={avif:"image/avif",bmp:"image/bmp",gif:"image/gif",ico:"image/x-icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",otf:"font/otf",ttf:"font/ttf",woff:"font/woff",woff2:"font/woff2"};function Rn(e,t){let n=t?.split(";")[0].trim().toLowerCase();if(n&&n!=="application/octet-stream")return n;let r=/\.([a-z0-9]+)$/i.exec(new URL(e).pathname)?.[1].toLowerCase()??"";return Kc[r]??"application/octet-stream"}var Fr=e=>e.replace(/<(?=[\w/!?])/g,"\\3c ");function Zc(e){let t="",n="";for(let r=0;r<e.length;r++){let i=e[r];if(n){if(i==="\\"){t+=i+(e[++r]??"");continue}i===n&&(n="")}else if(i==='"'||i==="'")n=i;else if(i==="/"&&e[r+1]==="*"){let o=e.indexOf("*/",r+2);r=o<0?e.length:o+1;continue}t+=i}return t}var vn=`"((?:[^"\\\\]|\\\\.)*)"|'((?:[^'\\\\]|\\\\.)*)'`,Jc=new RegExp(`url\\(\\s*(?:${vn}|([^)\\s'"]*))\\s*\\)`,"gi"),Nr=new RegExp(`@import\\s*(?:url\\(\\s*(?:${vn}|([^)\\s'"]*))\\s*\\)|${vn})((?:[^;"']|"(?:[^"\\\\]|\\\\.)*"|'(?:[^'\\\\]|\\\\.)*')*);`,"gi"),Br=e=>e.replace(/\\(.)/g,"$1");function Yc(e,t){return e.replace(Jc,(n,r,i,o)=>{let a=Br(r??i??o??"");if(a===""||a.startsWith("#")||/^data:/i.test(a))return n;try{return`url("${new URL(a,t).href.replace(/["\\]/g,"\\$&")}")`}catch{return n}})}function jc(e){let t=e.trim(),n,r,i=/^layer(?:\(([^)]*)\))?(?=\s|$)/i.exec(t);if(i&&(n=i[1]?.trim()??"",t=t.slice(i[0].length).trim()),/^supports\(/i.test(t)){let o=0,a=8;for(;a<t.length&&(o+=t[a]==="("?1:t[a]===")"?-1:0,o!==0);a++);r=t.slice(9,a).trim(),t=t.slice(a+1).trim()}return{...n===void 0?{}:{layer:n},...r===void 0?{}:{supports:r},media:t}}async function An(e,t,n,r,i=new Set([t])){let o=Zc(e).replace(/@charset\s*"[^"]*"\s*;/gi,""),a=Array.from(o.matchAll(Nr),async l=>{let u;try{u=new URL(Br(l[1]??l[2]??l[3]??l[4]??l[5]??""),t).href}catch{return""}if(i.has(u))return"";let d=await n(u);if(d===void 0)return r.push(u),"";let p=await An(d,u,n,r,new Set([...i,u])),{layer:f,supports:g,media:h}=jc(l[6]);return f!==void 0&&(p=`@layer ${f}${f?" ":""}{
7
7
  ${p}
8
8
  }`),g!==void 0&&(p=`@supports (${g}) {
9
9
  ${p}
10
10
  }`),h?`@media ${h} {
11
11
  ${p}
12
- }`:p}),s=await Promise.all(a),c=0;return qc(o.replace(vr,()=>s[c++]),t)}function Ir(e){let t=new URL(e);return t.protocol==="file:"?(0,Rr.basename)((0,Ar.fileURLToPath)(t)):(t.username="",t.password="",t.search="",t.hash="",t.href)}var Fe=require("node:fs"),j=require("node:path"),br=require("node:util");var Ve=class{diff(t,n,r={}){let i;typeof r=="function"?(i=r,r={}):"callback"in r&&(i=r.callback);let o=this.castInput(t,r),a=this.castInput(n,r),s=this.removeEmpty(this.tokenize(o,r)),c=this.removeEmpty(this.tokenize(a,r));return this.diffWithOptionsObj(s,c,r,i)}diffWithOptionsObj(t,n,r,i){var o;let a=_=>{if(_=this.postProcess(_,r),i){setTimeout(function(){i(_)},0);return}else return _},s=n.length,c=t.length,l=1,u=s+c;r.maxEditLength!=null&&(u=Math.min(u,r.maxEditLength));let d=(o=r.timeout)!==null&&o!==void 0?o:1/0,p=Date.now()+d,f=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(f[0],n,t,0,r);if(f[0].oldPos+1>=c&&g+1>=s)return a(this.buildValues(f[0].lastComponent,n,t));let h=-1/0,m=1/0,b=()=>{for(let _=Math.max(h,-l);_<=Math.min(m,l);_+=2){let x,k=f[_-1],R=f[_+1];k&&(f[_-1]=void 0);let E=!1;if(R){let A=R.oldPos-_;E=R&&0<=A&&A<s}let v=k&&k.oldPos+1<c;if(!E&&!v){f[_]=void 0;continue}if(!v||E&&k.oldPos<R.oldPos?x=this.addToPath(R,!0,!1,0,r):x=this.addToPath(k,!1,!0,1,r),g=this.extractCommon(x,n,t,_,r),x.oldPos+1>=c&&g+1>=s)return a(this.buildValues(x.lastComponent,n,t))||!0;f[_]=x,x.oldPos+1>=c&&(m=Math.min(m,_-1)),g+1>=s&&(h=Math.max(h,_+1))}l++};if(i)(function _(){setTimeout(function(){if(l>u||Date.now()>p)return i(void 0);b()||_()},0)})();else for(;l<=u&&Date.now()<=p;){let _=b();if(_)return _}}addToPath(t,n,r,i,o){let a=t.lastComponent;return a&&!o.oneChangePerToken&&a.added===n&&a.removed===r?{oldPos:t.oldPos+i,lastComponent:{count:a.count+1,added:n,removed:r,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:n,removed:r,previousComponent:a}}}extractCommon(t,n,r,i,o){let a=n.length,s=r.length,c=t.oldPos,l=c-i,u=0;for(;l+1<a&&c+1<s&&this.equals(r[c+1],n[l+1],o);)l++,c++,u++,o.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return u&&!o.oneChangePerToken&&(t.lastComponent={count:u,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=c,l}equals(t,n,r){return r.comparator?r.comparator(t,n):t===n||!!r.ignoreCase&&t.toLowerCase()===n.toLowerCase()}removeEmpty(t){let n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n}castInput(t,n){return t}tokenize(t,n){return Array.from(t)}join(t){return t.join("")}postProcess(t,n){return t}get useLongestToken(){return!1}buildValues(t,n,r){let i=[],o;for(;t;)i.push(t),o=t.previousComponent,delete t.previousComponent,t=o;i.reverse();let a=i.length,s=0,c=0,l=0;for(;s<a;s++){let u=i[s];if(u.removed)u.value=this.join(r.slice(l,l+u.count)),l+=u.count;else{if(!u.added&&this.useLongestToken){let d=n.slice(c,c+u.count);d=d.map(function(p,f){let g=r[l+f];return g.length>p.length?g:p}),u.value=this.join(d)}else u.value=this.join(n.slice(c,c+u.count));c+=u.count,u.added||(l+=u.count)}}return i}};var vn=class extends Ve{tokenize(t){return t.slice()}join(t){return t}removeEmpty(t){return t}},Or=new vn;function Qe(e,t,n){return Or.diff(e,t,n)}var Rn={};yr(Rn,{decode:()=>et,encode:()=>Ae,format:()=>Ue,parse:()=>tt});var Lr={};function Hc(e){let t=Lr[e];if(t)return t;t=Lr[e]=[];for(let n=0;n<128;n++){let r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function Tt(e,t){typeof t!="string"&&(t=Tt.defaultChars);let n=Hc(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let i="";for(let o=0,a=r.length;o<a;o+=3){let s=parseInt(r.slice(o+1,o+3),16);if(s<128){i+=n[s];continue}if((s&224)===192&&o+3<a){let c=parseInt(r.slice(o+4,o+6),16);if((c&192)===128){let l=s<<6&1984|c&63;l<128?i+="\uFFFD\uFFFD":i+=String.fromCharCode(l),o+=3;continue}}if((s&240)===224&&o+6<a){let c=parseInt(r.slice(o+4,o+6),16),l=parseInt(r.slice(o+7,o+9),16);if((c&192)===128&&(l&192)===128){let u=s<<12&61440|c<<6&4032|l&63;u<2048||u>=55296&&u<=57343?i+="\uFFFD\uFFFD\uFFFD":i+=String.fromCharCode(u),o+=6;continue}}if((s&248)===240&&o+9<a){let c=parseInt(r.slice(o+4,o+6),16),l=parseInt(r.slice(o+7,o+9),16),u=parseInt(r.slice(o+10,o+12),16);if((c&192)===128&&(l&192)===128&&(u&192)===128){let d=s<<18&1835008|c<<12&258048|l<<6&4032|u&63;d<65536||d>1114111?i+="\uFFFD\uFFFD\uFFFD\uFFFD":(d-=65536,i+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}i+="\uFFFD"}return i})}Tt.defaultChars=";/?:@&=+$,#";Tt.componentChars="";var et=Tt;var Fr={};function Gc(e){let t=Fr[e];if(t)return t;t=Fr[e]=[];for(let n=0;n<128;n++){let r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Nt(e,t,n){typeof t!="string"&&(n=t,t=Nt.defaultChars),typeof n>"u"&&(n=!0);let r=Gc(t),i="";for(let o=0,a=e.length;o<a;o++){let s=e.charCodeAt(o);if(n&&s===37&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){i+=e.slice(o,o+3),o+=2;continue}if(s<128){i+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){let c=e.charCodeAt(o+1);if(c>=56320&&c<=57343){i+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[o])}return i}Nt.defaultChars=";/?:@&=+$,-_.!~*'()#";Nt.componentChars="-_.!~*'()";var Ae=Nt;function Ue(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function St(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Kc=/^([a-z0-9.+-]+:)/i,Zc=/:[0-9]*$/,Jc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Yc=["<",">",'"',"`"," ","\r",`
13
- `," "],jc=["{","}","|","\\","^","`"].concat(Yc),Xc=["'"].concat(jc),Br=["%","/","?",";","#"].concat(Xc),Pr=["/","?","#"],Vc=255,$r=/^[+a-z0-9A-Z_-]{0,63}$/,Qc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ur={javascript:!0,"javascript:":!0},zr={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function el(e,t){if(e&&e instanceof St)return e;let n=new St;return n.parse(e,t),n}St.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&e.split("#").length===1){let l=Jc.exec(o);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let a=Kc.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=o.substr(0,2)==="//",i&&!(a&&Ur[a])&&(o=o.substr(2),this.slashes=!0)),!Ur[a]&&(i||a&&!zr[a])){let l=-1;for(let g=0;g<Pr.length;g++)r=o.indexOf(Pr[g]),r!==-1&&(l===-1||r<l)&&(l=r);let u,d;l===-1?d=o.lastIndexOf("@"):d=o.lastIndexOf("@",l),d!==-1&&(u=o.slice(0,d),o=o.slice(d+1),this.auth=u),l=-1;for(let g=0;g<Br.length;g++)r=o.indexOf(Br[g]),r!==-1&&(l===-1||r<l)&&(l=r);l===-1&&(l=o.length),o[l-1]===":"&&l--;let p=o.slice(0,l);o=o.slice(l),this.parseHost(p),this.hostname=this.hostname||"";let f=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!f){let g=this.hostname.split(/\./);for(let h=0,m=g.length;h<m;h++){let b=g[h];if(b&&!b.match($r)){let _="";for(let x=0,k=b.length;x<k;x++)b.charCodeAt(x)>127?_+="x":_+=b[x];if(!_.match($r)){let x=g.slice(0,h),k=g.slice(h+1),R=b.match(Qc);R&&(x.push(R[1]),k.unshift(R[2])),k.length&&(o=k.join(".")+o),this.hostname=x.join(".");break}}}}this.hostname.length>Vc&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));let c=o.indexOf("?");return c!==-1&&(this.search=o.substr(c),o=o.slice(0,c)),o&&(this.pathname=o),zr[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};St.prototype.parseHost=function(e){let t=Zc.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var tt=el;var Sn={};yr(Sn,{Any:()=>An,Cc:()=>Cn,Cf:()=>tl,P:()=>nt,S:()=>Tn,Z:()=>Nn});var An=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Cn=/[\0-\x1F\x7F-\x9F]/,tl=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,nt=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,Tn=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,Nn=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var nl=[8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0,0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376];function rl(e){return e===0||e>=55296&&e<=57343||e>1114111}function qr(e){return rl(e)?65533:e>=128&&e<=159&&nl[e-128]||e}function Wr(e){return e-1>>>0<127||e-160>>>0<55136?String.fromCharCode(e):String.fromCodePoint(qr(e))}var pe=(()=>{let e=new Uint8Array(127),t=0;for(let n=33;n<=126;n++)n!==34&&n!==36&&n!==92&&(e[n]=t++);return e})();function Hr(e,t,n,r,i,o){let s=e.length,c=o*90,l=0,u=()=>{let w=pe[e.charCodeAt(l++)];return w<o?w:w*91-c+pe[e.charCodeAt(l++)]},d=n-r,p=n+i,f=new Int32Array(p);f.fill(-1,r,o),f.fill(-1,o+d,p);let g=new Int32Array(p),h=new Int32Array(p);function m(w,N){let C=0,S=N,I=N+w;for(;S<I;){let O=pe[e.charCodeAt(l++)];if(O<89)C+=O,f[S++]=C;else if(O===89){let T=pe[e.charCodeAt(l++)]+2;for(;T--;)f[S++]=++C}else{let T=pe[e.charCodeAt(l++)];C+=89+(T<90?T*91+pe[e.charCodeAt(l++)]:pe[e.charCodeAt(l++)]*8281+pe[e.charCodeAt(l++)]*91+pe[e.charCodeAt(l++)]),f[S++]=C}}}m(r,0),m(d,o);let b=new Int32Array(i*2),_=0,x=0;function k(w,N){for(let C=0;C<w;C++){let S=N+C,I=u(),O=u();b[x*2]=I,b[x*2+1]=O,x+=1,g[S]=_;let T=(f[I]<0?h[I]:1)+(f[O]<0?h[O]:1);h[S]=T,_+=T}}k(i-o+r,o+d),k(o-r,r);let R=new Uint16Array(_),E=0;for(let w=0;w<x;w++)for(let N=0;N<2;N++){let C=b[w*2+N],S=f[C];if(S<0){let I=g[C],O=I+h[C];for(;I<O;)R[E++]=R[I++]}else R[E++]=S}let v=new Uint16Array(t),A=0;for(;l<s;){let w=pe[e.charCodeAt(l++)];w>=o&&(w=w*91-c+pe[e.charCodeAt(l++)]);let N=f[w];if(N<0){let C=g[w],S=C+h[w];for(;C<S;)v[A++]=R[C++]}else v[A++]=N}return v}var Gr=Hr("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%%%#%#&(23#%%#&-%0%('1#(##%#'##+%'*.:1}#%#6-+(%'%%#%%%}#L'2351&('%}&/N'(0(/*-%(%%}#'+&T%7.2}#&%&#%#36/5##%&%%#&#%%#))2%%##%&&'0~!#*+&'%1~!%).'3q?&%'1~!.##%6(~!+%%%(Gw'rT~!E#<nA%#jZ~!H%(~!42##~!*31&~!G%U~#)5~#`3~!J~!Z~%]~%Y~%C~!q~!u~#kz~%#~!6'~!D~!U~!?~#T~!c%~!G#'~%7|~!G~!J~!G&~#pb~(Df}#%}*&}#%##%##%##&#-}&'#'&%#.++}%mI,#,@&(}*%}*'%&##&#%##%}&0}#.},U},%}+%}&%}#%##&}B%(}(%}+%)})%##%#&}&%##%&}<%}>%#%&}*%}(%}9%}/%})%}*%}*%}?&}&%}3%}&*#%})%#%#)}#&#-#+*%E%%'%'#%}#*V##&##I}#&&##%&%#&&Qf%%))w/0+&%#(#.%-''''++++7}>%4'',##1,#%#&%##&#'##&#*#9)%&%}#*}%,#+P(%A&%#'&##wSD',9E00#y#@}(+}&%&>~!#~!X}#*}(&&}(&}(,%}%&#+&}#&}I%#%}%)#(},'%#*}4%%#%}(''}#/##(##),%-##%%)#&}(.}&%#&}%%}*&#%},&&}&%}#%*'#%})%}D&}&%}-&}6&#&}-,%}#%})-(~+`~,=?~I9'9%~!,#%})%})%}@%}?%}(~!?~#<~#pP~#BG~#=1#%K+~#?#~%;)~#A~#mF1~#A'~'X%'~#lR~#N~'N~#r~#m#-~#i'?%#'%~#B%##%,%#~#_%#0%~#]732~,w~2+#:&#%&'0%&>%}#>##F+)#%&&#(+_}4&}-%}(&}@&}O7Fdf0@+/v4}&WU##&/0#&'('B#%}.%}'+#%}#%%&#&%#%##+#&#)#6#'#.},%}c%},%#%##%&#&%#&~#>'*-.%##%##%}#%%}%'~#)D1}#%*&~#_%%'(~#S2%'.}#~#=##*'*-%}&'%'##&&~'E%.#&~#M4}%%##&'%#~#O1##%&#'+~#<B%##%%'%+~#;#@%}#&%#&&%#(~#H1}'%'##&&~#?A}&'~#D#%32}'&&&&~#[}'(#%}'~#;C})&}%%#%~#=&%,3}%'(#%%~#^'#&&)#%'~#Y%-~#d-%'~#^%%&#&&&}#~#b~2t*&'~&(~&@~0%~e~3}%*''0})&}+~!9##-}#%-hD*)1fC#%/&/fB#40~!+#)*4~!+~!K'&:~!/*7~!.#~!H~!L':~%x&~!H#~!*~%1~!I#~!+A~#p'~!F~~#-#~,,(~.Z~!V~%;'B'mq-W~!N~%I%#&&#&}#%},%%}'%}+X#%}#&}(%}'%}<%}#%}%%'}'%}:~![)9@~%>~#UA%-%##&~!C%~!-.9:~!1~!-^2/:a~!y,D*J#-5)/4~%23,~#G~!L1~!0X3`~!2+~!!0-~&E~!W~!o,>Y&]~%cZx_&~#O*9#A#'#+I'%#)~!0B*-5A+-((F&*M#)(-7-5+'-3a5Vi~!Y~!?+[)%3),ERHm~!+:D,VG.+)?fB%%*(%)'(#&80%1'8`K8?`+'Z#&O&'H5#*9)A%%5&3))0%39+.*7#()&&*=4@**L)<'_&*+..;(#*+)./&0#3)%')-8(4ixD(&.}%,('aI:,)%,k2231T)I'#/-W7,/'Q#.'Y24+h')37</31&83##&0#),H(?'&?/1##%#&&#%''-%&&&#(&''&#.-'%#%%(,')*'&#&#'##%(%(#%('#&##%%%%('%#%#%%#%#&%##h>w+v<ayvyvcg.uuhKr}g/v|g>u9i[~>g5uI~=RvdwEg;v/g;uk!!TTSx]@RT!U!#!@VBRUU!'UTe-d0c`e&gSdicedFcrdTaqb.kYcAohdYd@a3e+d}dMdtd.aJ#bqcK`dle/e.e'dwdPdodddjbEb}ogd^ofdpduc6j?l%d{drdqc)d7bacOdQ%T#Y)X.sR[yH>6Vyv3[xwLu>vo'!*.[yBacahoj>6Rew3[xqdZa#!a&#^(X-[yG>6Vyu3[xvg3sEr|g.u/Ri9db0T#^(Xa)!-[y;>6Vylg4wKs{JwNZt3@3r=c4Z([xlg;wKt!cpq's@v7A'*a(a+!-a#[y<3Dt?3Dt'>6Vym3[xmg9rxsNJwLZt4~?r?db1T#`-!(Xa,!0[yS>6Vz%NuQs.g4wKtnJwNZtS@3r>c4Z([y%g;wKtrdga8!a(!#&T*Y-Xa#!a0<or[yc3Dtq>6Vz43[y3JwNZtf@3s!Ju}!%Dti:pm3c_%X#tjB5pkd6q!r]u?voC'*-a.a2!0a&a+[yI3DtI3Ds~3DtH>6Vyw3[xx;:s#~<5pKJwNZtE@3r~d`a)!a2T#a.(!+U.X1[yT3Dt`3Dtv>6Vz&3[y&g9rxwzcxstPu.<rAJwLZtT~?r@dZa%!a.&^*Za(/Reu[ya>6Vz23[y1g3sEr}wkg{NuQRg{ci(U#5@b`~,cg#U(2WnH5wugcRh7dX#T(Y,a'Ta!!a,[yZ<]mj>6Vz,3[y+Pv#5ReZKu+=,%!H}7ABwkaS?Rh:BcW(X#<]mrj:ubv/ARekdg%!(!a.*Ta(Y.X1!#sP>Rl*Dt6[y>>6Vyo3Wf*jOvuumvuRgRJuq*!:9<B@bX~3jVv&v@s@5Re[d/rQt{uAvo&a&a*)a2!,0Wf!3Dt0=Bs'>6Re}3[xy~<5s%JwJZt1~Gs)c;&!#2sJkNuXvzq7rxu,Re8dka4!a8(aEZ+a@Y.X1Xa)[yd=Bs(3DtP>6Vz53[y4cX#X&Re:avRe9~<5s&JwJZtQ~Gs*i^rzvdRg+Jv{%!2sbB@bX}kdga,!Za?&^*T1/!a'Dt+[y6>6Vyf3Wf%g/u;s4hGu6?Rh-JvZ,!c%#&RoX54Rivj7uyvf8RgTKvZB%*!2sGh<vu5Rgq<=C::9bb~#dZ#T&Ta6Y.X*Dt>[y93Wf)coZ(T,6VyifluvRgC@95@B@bX~/hFu34cC#T,k/unq8w8Q5RkUklwQuzunq8w8Q5Rk8d/rJu?v8w9)-&!a0a;a&aIWejg3sEr/h1s<DtDJvyZqY5aws3Jvy!&Wei~Hr1:au5@Bag>23E~5c:Z&bX};kKv?w&unuVu5Rjc;>bs)#~@:Rh.=ay<a]C;b`}Vd6s/t{uAvoaxa()!a,a7%-a#a2Dt,[yF2Wo[>6Vyt3[xuNuPRi&NuPwpi#RoWh?vf8Ri%Jv]!%Ri:KvxD!.'2WeAjZu`q9rxu,Re7woeAg-unLq(qA_/*2Wg_g3u5q^9:4E}/jTrxrzv=Wkkd~0UX#^^Xa-a1a5T&a=U1a'*aEa]!a*aPaA-adok[y54Rn>;:p3~Dp5g9rpsFNvZqjg3uJp4~<5p0Pw;5qlJwNZt*@3p1Pw:5p/Ou!5p2JvG'!6Vye=<qnJvh_[xhg3v,Rh3kOwOw-sDuev/Re^dha[a%!%!a+#Ta7)-5TaCaO!aka!a)sf[yb2>Rl!9ARiq5E}Qg=ucRkBE|oJrJ_@Wk~@Wk{JrJ_@Wk|@WkyJrJ_@Wk}@WkzJvO_[y2g-vMRmiKuYC!)&>Ri;>Ri<@3RkNc](X#@9Rk=g5vuRmhKvDB!+'=]meg3u4Rmgd)#Y'Vz3CARmfd`a+!%T'!+#Ta1Ta6TaM-sTDt9[yA9sYd'%Y#s[[xpj:ueunaXRgEjRq,v-vuqdd2'`#6Rev<32@5>:2<E}5xIo9a*X#Y(;5RePJvD_g>vyRgNj8w)v8<wggs:RgXiZt|vjx,hSq3ah!-(~@:Ro/Ou!5RhWj^v(pyw8unRhUdx-UY#^Ua.a3a70!)%UX1TaDa)'omRiRRhE[y:3Dsz=Br,>6Vyj3[xkg6ruwjcqsrPw;5r*Ku]D'Zt-@3r(~?r.i[vwv]dU1a--U#`a4(g/vsRhPOu!5RhLj:rmu9Wo!~@:wdh@g/vsRiTjXuvvNr}:RhBj^v(pyw8unRn]dz1UYa'a+^Y(!aETZalaRY.Ta?a4[yDJw1!#qLsW>6Vyrfzq-pLflpwRe|Js>%!Dt@3Dt&Jvy_[xs~HrnjMuwpsw'RecKu+D#'!t<~Grl~?rjg5u-x,gwp{ah!-(~@:Rg~Ou!5Rh'jXuvvNr}:Rh#cW#X/c;&!#2sLi[v7u7RgpJv)(!iLrxu,Re6j7v@s@5Se[e7d`aW!Za(a`T.a#!a3!&aDa-!9)Dt_=6s+3[x~~DR|h~DS6avhGun5RkZj3w)v-]mkKunB!&*]kb97R|i<ARk<c:Z(6Vy}Juh'!wziMRoS:F|vkLuauJv5vtvQRh1d='T+Y#VyO~DR|jcF#T'7R|g97R|kJv3'!ay<Rj,Jvh&!:ReXcsa6*a+#a#_aIRf9aLRf?c,Z&Rf5Rf7c.Z&Rf;Rf>cQ#%T'p-Rf8Rf=ct#%'(*!,p,Rf4p+Rf6Rf:Rf<d~'Ua%U*^UYa(!a,-!#a4YaTalaEX0a8a<Weo3Dt/3Dsx=Br93Wen~Dr;~<5p<JwNZt2@3p=Pw:5p;Ou!5r3c7&!#:p>3Ds}KvGB)_6Vyk2sM=<r7x'eovA(!hFu1ARf}cV#X&@r5j6rvwQa^Rf3c=Za'wkghJv__g;unRggA53B9=b^}%j6uduo5Jq;!(hIv%2Re`Ou4ARe_e%a#^^^Xa&!a*a2!&a6YaP!*ad!#a:aE/5Rn?[y@>6Vyp;:pE~DrY~<5pBJwNZt8@3pCh=rt3rWPw:5pAJup_[xoNuPpF9c!#'45pD5ARn)d8#X'X*3@rU72s]h>v<<sSjJpqvewOJq/(!hNw'5ReBk0s2u3w/w'5ReE5@Jq.!a+JQ!&WeU23d(#Y&RjG5]jBk!u7w&u0udARjEe#+^^^Ub#!a2/a`Z(agT1!a-a;|@TaG!aS[yV=Re~fow'RguNuPRe?bz#'>RoUWeL>:Cbb|?JwPZtVg6ruRmzJvD'!6Vz(g/vmRh~Jvy_[y(g9voRgyx*cy(#2>Ri2B9b]~9kIw9u7rluJu3Rg]dI#a%UY'@=p%CAx.gQZ&RhwwygtRm{x5g_Z'+ABqR9Woa=Bp&dV#^*Xa'!&@o{g4v]Rk;Jv{!%Rk[wkkiA5RkiwwfUB=x,fUuqC&*!>RfTg8v0RfV~ARfSd;rJsAuAv9wR'ae+/aO!a@aza/a#[yQ@Wg!2Wemg3sEr0JvB_g>uvReWg2v+Re=KupB_+[y!2AbY~-~Hr2AJwD!(h<~El>h<~El?Kun@+_:9b`}Kg-v/Ri3g;vtwyk_9]k_d=&T#*U.6qh@Ab`|K9:H|CJv[!&3Dtex'fDwC%!Rf[9WlMd[(^X,!a%Z06Vz!@WgBg=v~Rgvg,QRe@awd,#Y+jTv|Q~EfWj]uNr|~FRfXdy#Y&^Ua%!aO.!(a)Ua;=!a@aKap!a-,a!Ta]a[rSa]p?[y82sK=Bq~;:p:~<5p8Pw:5p7d'#Y'Wf(;RnRi[u4w&RgJJvG'!6Vyh=<r#ijuuv/sIKuYD'ZtG@3p9~Gr&d2#`(g<vtRgFj`u5w&rqpxRf2CJuY!+:wfnTOu!5Rg}jNs1ucv&RfwJvA!&3@q|BDcC#T,k/unq8w8Q5RkTklwQuzunq8w8Q5Rk9dga#!a'!a=#a0!:+Tb*b@aO.a4!aba8aFJv^}?!VyR~Dr<g;u%Rn.~<5p[x'e`wNZtR@3p]Pw:5pZhNvjBp.woe_g5u-r4JwF!%DtO3:ooc7&!#:p^3DtpLuGw(!+%)Dtk6Vz#2sd=<r8d'#Y([y#<x3gJt`w@!)%}MRiowzikRij=]ilxAf3,U(#B2Rf#g0v-Rm[ck{`U#]giKv3>)!&6Ri154s,KuGB_%@r68r:dJ|t`#X(9<E|u2@H|rx3gJu?w'!+'1Nu7Reg4=H~+9<wxgY95Rm]xLggZ-`(X}U2:Ri4h<uOawRmsJv__5@bb{jbV~3dka#a'a]!,#a+U=a>b6a3b%!/aKa/)!arwve^VyJ;:pR~DpTg3uJpS~<5pOPw;5qmPw:5pNOu!5pQJvG'!6Vyx=<qoJvA!{~Jup!%@qk7Rn/KvyD!}''[xz;>wkh'?Rh,x8gyt`w5D!&),(SgyccRgztJ@3pPB5p#d'(Y#<]mmifubw&RgoJvE&!82s^JvF&!8Rf,ADb]~;x=h'rNu]vK!,%'*0RnORh)4Rh*AqQg-vaRnNg;wHwkh'ba~4cE#Ta*x3gctyw@'!+%RnFRnD<4Rn@hFvK5RnCxWg[#`&a0Ua()`1Rm75Rg[c]%X#qi8Rg^NvdRj>BwzgZauwji7Rm6A4wgg]d1#&(*,.0a#Rm;Rm<Rm=Rm>Rm?Rm@RmARmBe%#^^^Xaea?aC/b+(,!a+a#!a/!>a&Ta<aKbD!2wphBRnk[yPw}hE|.=Br-3Dtm>6Vy~g6urRf.x,hPrNav!%'RnqRo%Ro#Nu;q[Pw;5r+JwNZtM@3r)d'#Y'Weh;xChL#`&RnmRnoKu}>%(!Rne~Bs-;2wjcussJv+'!aYSO}6@B<5?ba~8LrNvj!.%*ROwungw~ng~:9;Ri^>wtnig;wHRnixDh@|(UZ.x1h@|)!#:2<H|*xHn]#-UX'3Ro)z=iT}6ARns=Bwsn_wpnaRncw]aR(#UXa&Ua*a/=]iPd'#Y&Ro'WnXf{QRm2hNvj]nZd`'T~&1`{|`#9b]{}c:'!#Wl{>@=be}]?cl{{U#:5Abb}Jds#^YaF!a*b4a#a3aPa>&Tb!bH!*a_!Eau?/a&RjY<]gj>6Vz*;:pe~DrZg,QRj1JwNZtX@wihspcJvZ&!VyX9WmOJu|!|N2WmHJvh&!]ht~Bpbcn&T(!#RmQ<s7Nu;padH#X'`+WmJ@>RmKCARhnKup=!)&Wf+:RhqNuPpf9c!#'45pd5AwghpARn(Ls@w!%,)!RmP@Wfe<E|IJva!&WmNg8vsRmLd`*.`#Y'Xa!axRn*]hrA8Rhug5s@rXg8u!RmMd8#X'X*3@rV72smdI*#UY&RmICARho~GsgxVgd)Ta'U-Y&Xa!T#RnEWnA@Wffg1uDRi0hFvK5RnBxGnG&#`%owp)@wsf+bX}Ze-*1!a*^^^Ua|!#a.aq&Ya2!a>.a6!a:aO`aJDtL[y`@Wg#>6Vz12@wzoYRoZNuPRi!NuPRhzg=ucRi,@=b`{Yg=ucRi-ACJvB!&Sh[ebSh]ebi`wUuFRm4Jw2_[y0JvB!.<Ju(!&SoG}6Shd}6<Ju(!&SoH}6She}6Kur@._g5vHRieJvx!{L2G{Kx6gd'T#?Rh82Wi5cZ#X(g1w)Rm5dW-Y(Ta#!a)!#aYa=wnfE=su2>>bU{0j9udv:<svj8uQv-7RgHdE%#^'sq9sp=>Bb_{TJv`!&g/r|snj6v(us5d,#Y(56H}[978H}]Jw5!&g1rushJvB!+j;v{u5?zDhd}6}bj;v{u5?zDhe}6}ce*#`(^^^a[aea!=!a6a*aoXb1a.!aAbL!b>,b'aL!aV@Wf|2Wlg3[y/JwNZt^@3piPw:5pgJunZou3@rsJva&!Vy_g<v~Rm#JvG'!6Vz0=<r{Ju{%!:pj@WfsiXuJu3Rm:JvZ&!WfA~Bph@c4Z&Dtwax5rubx(#:awRk1@d,#Y&RfjRfid1#,Y(@Wfp2Wlrg5s@ryKu[@!,'=]ig9wlk?Rk>g5u-rqJvy'!@9RkQcH(T#=>Ri~@<wkj(Wj(KuZB*!&<7rw@9RkRcH(T#=>Ri}@<wkj)Wj)dg(Ta2Xa9X#`-!a*CARhg@@=I}d9x;c~#X%so=<sj>2@@=aybb}XjWv0Q~EfEj3vLv;<d,#Y(56H}`978H}_dgaPaFa'a/!#a3Y0a_a;a|!1(a7-[yE3[xt;:pJNvZrrg3uJrvJwNZt=@3pIh=rt3rxPw:5pGOu!5rpJvG'!6Vys=<rz@c4Z&Dt(ax5rtJvZ!&~BpH@wsfNg-vaRlNci*U#=<wei<F}a5@Jq.!a*JQ!%@qZ23d(#Y&RjH5]jCk!u7w&u0udARjFd/prq=tyvpaEa(a:.!a1aZ(@@=I}:9wpd%=<sX55w_h}@@=I{t=ay<aU@@=I}T=ay<2@@=I})?C9:9au@9Cb]}DP~=x-fAZ(2Wl1=ay<aU@@=I}>5@d##Y+jTv|vV~EfFj]uNpn~FRfGdgaK!Z2&!a8a-Tb({E!acTbM*!a(DtY[yYd'%Y#sl[y*hHvh>Re5x2c{Z}.j4uCvcawRiMd+#X+_x&d!},<5RkX;2Hzw@x,gavfB-!{CcF&T#Roe;RodwWbBg5urRgaKvHC*_6Vz+<4opieuew&Rmq@d]&Y)X,T#X0Rh}<BqP=4qS9:ReMg/ujReNJw0!/<Jui%!bd{kawwnemRelAxUa?a3#*.&UX(Ya+a/RhvRnQ<o}9Wmtd-#Y&RgSRmw9;Rmxay=Rmyg-vaRmuxEhSrNu,v-voC!%(aR.a(a7+1Ro1>Ro5CE{A9b]{@;5x#eO{:g;urRi+KrNA!%(Ro3>Ro79;Ri_Ku@>{;&!x%gX|{KunA_+g5QRj/g3u5Rj#g>uERj%wio/xRhS&!,!#^1U}wba{8>>@=be}qC@:D5ba{7Ku+A&!}x?ba}t>>@=be}se(aA^^^Uat!b0#{pa+awUazbGa#aLb9bgaWac'a5TbS=Br!d1#`%scp_Jvl!#rT>Re0JvX&!VyN=H{Fcm#U&:pY=ReaJv2&!]h0=]nUJvG'!6Vy|=<r%JrM_=]h2@Wlud'#)U'Wf'b]{i=]h/Jvh!&~BpWg=v]RnMx+ny#'Nu;pVwjnu=]nwxJnx,T#`&Reqwjnt=]nvieu9vrRjLLuYwP(#+!th@wih5pX~Gr'g5v/Rh4KunA'!-CARnP@wwiN:Rm_9x'cvw>!|l=<saKvAA!0&3@q}>w^e1bp#&Re2Re3BDx7gH#T|f5H|eKuZ>!%(:qNAH{]Jv6!+3B2B9=b^{X<5<B92:E{ZLvhwA(a;a%!igQuyRmad+#Y}m@3Rh5d8#X'X*:AqUAHzmaxwbh<aXRnVcF}RT#Nw&cj#U(BWnug/vsRntdka)(a3+.Zb7aYYan1!bVa@Xa}[y^@b[{G=H{+hFu73Rj&Pv#5ReQcK%T#sig1v{Rj'Ku+D#'!t]~Grm~?rkKuMB!01d5#`'Vy.ta3Dtu~Hroc8#'{^45s85AwZbP&!#Rn!wghxWn#KvEA!)&2RlA2RlBx:h|#(T,=]j09Wobz>x]z/@awRoTd+#Y(az]hFhCrm4d,#Y+jTv|Q~EfMj]uNr|~FRfOdCa!Xa9_X#@<plJvf!%b`{(9;Rgwc;.!#2x7cw#T|UDb]|T5Ju={(!=@E{&Jv)&!Ab`{'awJvf!~*>>@=be{#KuY>!+&4Ezyi[ugv&RjIdea+T)#UXa&T-T&a!Rh9auRmW=]kLg5vuRn+g3u4Rn-Ow6ARn,hHus5xNk?#UX(U~)/g8v0RkD~AwkkF?Ri.OuNBwkkA?Ri/d|a2`a*^UYa.!aBTZaTa'Xa;!(!2!-a#b2[yC>6Vyq3[xr2Wi?g1rusVh%s?DtF~<5rbJs;%!DtBfswKtCj[uvuSsEu3RgVx3o:u+wN'*Zt;@3rd~Grh~?rfg8w)Lq)qE&-a%!>bI|`jWv0vV~EfCjTv|vV~Ef@j]uNpn~FRfBcK#T']gWNu7x,k7q4ai(0!hHv8<RhmkMu9vrsBuev/RhlCJvB!,g<v{wchh~@:Rhji[vrv{wchi~@:RhkdS&a5UY#Ta!RgPwwiI5BwciI~@:Rh`x'iJvj'!5]iJPu8Bwch]~@:Rhach)U#h3rp]gLh@t|Ax,hTq3ah!-(~@:Ro0Ou!5RhXj^v(pyw8unRhVd|)`,^UYas!a?/a2Z'a^Ta{Tb7Ta(a#!a,Wf&9sZ3DtAadamov=Bqt3[xig8vsRm~>waiL2b`{QJv*_Ouv2qgj<v]v2BqfdR'X*X#Y-@3qr~Gqv~?p6hHv-]glPup5Lq+q?_%*b_{qF{n9b^{rOu4ARhpKvCD!+&~Bqp:5Dbb}nwoiKl&unuTuBv]v+ueunaXRf0=Jvh!0nKufu8v1w&w7q%w&uHrz:Rgnj5w,uxDJq/(!hNw'5ReCk0s2u3w/w'5ReFd>Za&!*UaA=<wkgsRnSJv^!%Refifw3vyRgOKu_B'!,<]gkiiu:w&Rh<=C@a^<B57@2F{[<B5@aW:=3away9A5aW=<B=C@a^<B57@2F{Ie-#`(^^^bCara.b8aza6!/bZ,!adTbnTbOb+aFaS!aAT9@Wf~2Wli3Dtl2@d,#Y&RfnRfmJwJZtN~GqyJva&!VyMg<v~Rm%iXuJu3Rm9Jv[_=]ih9wlkDRkCd1#`(@Wg>2Wls3cH#T(@<Rj*=>Ri|b~'#23s9h<~El.d'#Y&Dtxi^rzvdRl#d*#U%(o|B2s`hJwSaxRmDKv4B&!1:Rmdd5#`'Vx}to~Hq{x'f1v3(!BA5ba|bJv_&!Wfug1v]ReIdO+U/Y#&G}-8wze=Rh{g1v]ReHg/uQRf/by#)ibQwERl/cH#T(@<Rj+=>Ri{cNu+vlax-!(#a0qa9<Rii2;;bU{H;x<i=&X#Rk`<4wwi=C9H~8xAI(Y#<azRi@45wXI<B9;5bb~7dL(X#Xa(+!aL6Vy{g5QqOau:5au2@ay547EzbxOcU(UX-T#Ta#:Cbb|A?wjh/b_|SOw6ARgtihr}u7Rhy<d1#T)X1@@=I|~=ay<2@@=aybb}Sj3vLv;<d,#Y(56H}A978H}@dGpvs@uAu`vcw9*!aFa+ai%(b!aXa8.a?a[ozWey=sU2@G}Nch&U#Rf_WexKu+D#'!t:~Gr`~?r^j]uNr|~FRg*j^psurwJt|RmcKv)@&!)7Rkv~Br[@wxfO:Rl3co#U'6Rezj_q#vIuavjRltwzeyh@vr5JqD0!>aY?C9:9au@9Cb]}9cl#U*5;5<H||jbuus1ucv&Rfvg1v~d/pppzqFr^a--a~!aMat1(hFv;Wiz@@=Izoj5uuv-7Rix~Cw`fk2WlVcZ#X,k)u3vWs@u2]ktg;wEx'fBq(_2Wg/jTv|vV~EfoJv]!15x'hzqG!(P~EfU~CRl_j6v(us5x4i-#T(2WmZ?C2F|d>Kq<aj1!*jTqIsBv=Wl`~Cw`fi2WlWj`v0u*~>RlR=c>Z,k#u3vWs@u2]kr<c1Z+jTqIsBv=Wla~Cw`fm2WlXdmb3!a{(arZa`bkTa%TbQTa-a9+c'!aM!/[yL=Bqug.w'RifhFvyDRj.g>vgwyk^9]k^Jv3_@WfbAARkhJw2_[x|JvB_wkoIRoKwkoJRoLd'(Y#<]gm=<9<H|yd'%_X#skDtb3awwqkgNulRkgdB#^',9:p'hJwSaxRmEBwVb8@4=H|qLu+w50&!)@3qs~?pU>Awwn;;Rn=c:Z'ARn<=<qwKvC@!/&~BqqJv6!&]eVb^z^xRge'/a%+^`#Sge}6<4Rn3=]n0Pw2>Rn8Jw0!&>Rn:>Rn6cY#a7+!a&=<wkaNw~h3z_c5Z{=wjh#=]nLKv^D!&)Vyz=bW|swYb<WetcG#T(2wxa@qVx@gD#Y&b^|V5JwG&!5bb|pg/w&RgD@x=kHs=uAvn!a%%/'+RmSRh694Ro`g-vaRmRhHv-]mlxCcS#`&ba~.5cD#Ta)P~=d,#Y(56H{>978H{Dd_#{2^Y%_+qbbb{6g3sERhsbU{?dfa.,`a(Xa<!aiX#(55RiG54RiHcI#T'WiU3RiVNvdwtfcRlKNvdd,#Y&RlHRlExQgf.1*^T'X#Sgf}6Wn4=]hfPrk>Rn7Jw0!&>Rn5>Rn9Lunw?&a2!,5<oq@@wqfdRlJj5Q~=d,#Y(~ARfcOuN]fdDKw;ay(}i!547E}j?cI#T(@5bV}iCbV}hdv(^^Tb?a40,b##Tbo!a*bR!a<b|a/!aKai!aU[yK=]o^g:v>ReGJwPZtK<7Rh+h<~El,Pv#5ReR@awwxjCg,ulRjDJv6&!]j!z?aQeeg>w=Sh<eeJw;!&axEzOg,Qosc!#*:wkeJ]eJ>x'h-u(!%Ro.w~h.zPdNZ(X,Ya![x{;9ReY;wkgxRiF:x?ap#Y&RmUg<s2Rkod]+UY0TZ'!a&A9sw<=bczLNvuw{gqzNhJwSaxRmCKuLay!#&s_Rf-55b^{uJvZa!!c%#(55Ri654wmiu5RiuawLu,vp!+}^%b_}Y9;wkgxba}o>A9:=b^}zKuh=a''!3awRk3c*'!#aHRk6c+Z&Rk5Rk4Jv)&!awRjSawd9*`#0?C2@EzMj8u<uJ5RmbjQrquJu3x,k>uq@_+=ayb^|W~ARkEOuN]k@7dhzV^X/X&a-#zRzSb`zXcJzTT#2WkVKvDBzW!%FzY9;5bbzWjQrquJu3Jw3%!b`zU=ayb^zQd:#X(T-a!6Vyywxh}=b]{Jg=u1RiAdGp~qHtzv!w(wA+a+a;<!aJaYai'anasb(=azRmV:Cbb{MLq2vb!%')RjuRjrRjtRjqx3jnqCw3!%')Rk(Rk+Rk&Rk)Lq2vb!%')Rj{RjxRjzRjwLq2vb!%')RjsRjpRjfRjex3jcqCw3!%')Rk'Rk*RjkRjl9<CbbzfOu4ARhxLq2vb!%')RjyRjvRjhRjgx=joq*uKvb!%')+-Rk.Rk%Rj~Rk-Rk#Rj}x=jdq*uKvb!%')+-Rk,Rk!Rj|RjmRjjRjidAq&qKs@uAv8Aa.'*-a@a&0!aM@a5[y73Dsy3Ds|3Dt):wxgI2sHJwJZt.~Gqxwsf0ikrzt}Rl0Jvy_[xj~HqzKv_A|D!&WfP8axRoVcf,U#k(v]v+ueunaXRf1Ju}'!g8u#Ri=jQw!sCunLprq>!,')~<5qeGzq9F{W=c##%s5au:5aU3CBE|;d4#X(D!a&6Vygx(b;#(=]ed?C2F{N<capoq2r[a&!aPa9,'Pw;5s:@@=I|,55w_h|@@=IzcP~=x'fCqB_2Wl2>aU@@=I|1OuNBc1Z+jTqIsBv=Wlc~Cw`fl2WlZ~AcTa%!Z+jTqIsBv=Wlb~Cw`fh2WlYk+uNqJsBv=WlSg,u3dca3#UXaMYa)TaB-=cM|7T#<bI}l5@B932:aV2G{BOuNBJq:|M!5Ezt=<B=C@a^<B57@2F{v>cB{/T#=ay<bI{3Jv6!a.6BKq0ah&+!5E}HP~Ef{978BaU@@=Iza<7d#.Y#978BaU@@=IzH~AJq0!(@@=IzG978BaU@@=IzFe,aU*Y&^^^bvJb,b:bFad!a,c2Ta>aL.bo6!a#CbTa'T#Re{2Wlh2@G{yg6t~Ro_NvdRfticuRQRllJv3&!x&c|zs@Jw3!%RflwpfkRlpKuL;%(!Re<@G|C2GzdhIvuBwgjAg-u0RjAKQB%!(GzZ@G|5NuuRl7d='T+Y#Vy[g<v~Rm!==G|>JvA!)@wma=]m1ifuaw&RmnLs@vT'!|/+[y,g:v>ReTJw1!#qX=x!eC{bLu+wT&)ZtZauq_~Graci&U#F|89:r_Lupvq!.)&2RlG8RfaC=x!eF{_h?rpWlmd&'!#X|&]k::xJey#`'T|+<E|&2@H|%dE#(^,g;u.RiEg6vjRiC9xCkA{O|zY#g=ucRmXKs0@!&*@G|m@awRknJuh!,3d(}gY}eJvj!%Rm):Jw3!%Rm+Rm-Ls0w(&!a(a#@b[|6cZ#X'7RkxWgAOu4ARn'dH'U#Y*Vz-Wm'CARm}d]*#a%^a*T'aK!a<9bV{PC=p*Jw4!&SgxcbB5r]idw(wBRmF7xFkt#&`(Rm/Rm8E|!JuY_9:Rl5=wrgr2:bbxd@xXfB(a*#T+!.X0X1Ta/a'T&RlDRfL>RlyARl9b[z[>RfZ:RlL:RfRwlg/ARl;9;RlxKv,A/!%7s69<74=BA5ba{-8Bde#`a<XaKYa1,a'P~=wxfB2bZ}}?C972@@=I}r8@55B9;5bb}G978B2@@=aybb}3j3vLv;<Jw3&!>Rfk=ayb^}4~Ad1#`*@@=aybb{w2@>==<bbz]dx+UY#^UaF!a9!bB'Ya1.!ajXa#%olRhD[y=3Dt#Ov5BrHKuMB%!(Rf^Wep~HrJwkiQjKr|~FRg)Ku+D#'!t5~GrF~?rDdV)UY,Z/_7RkuG{<~BrBg,rlsO:235B@bX}|d?a1!#`(6Vyn5@d##Y+jTv|vV~EfIj]uNpn~FRfH7Lq2vb1!a9-978BaU@@=Iz9978BbU}#~AJq0!(@@=Iz8978BaU@@=Iz7~AJQ|}!978BbU}!JvkaK!AdUa21-U#`a+(g/vsRn~Ou!5RPj:rmu9WhOjXuvvNr}:RhAj^v(pyw8unRn[kPr}p|u7vwv]RiSBd;pppzq@qHQa?(b.!a.a`@.|xa(hFv;Wiyj5uuv-7Riw~Cw`fg2WlU978BbU|wOuNBJqG!(P~EfD~CRlQcZ#X,k)u3vWs@u2]ksg;wEx'f@q1_2Wg.j]uNpn~FRfqJv]!15x'h{qG!(@@=IzK~CRl^j6v(us5x4i,#T(2WmY?C2F{1>Kq<aj1!*jTqIsBv=Wld~Cw`fj2Wl[j`v0u*~>RlT=c>Z,k#u3vWs@u2]kq<c1Z+jTqIsBv=Wle~Cw`fn2Wl]dn1#c(a(b^a2!b/bAT(bj!aDa7bu,a_a{c0!2T0g:v>ReD2@G{42@G{5~DpM~<5rc=Bx6i>{RT#RnI@zCx]y]z:2Jv[!zr5Awyk]9]k]dD(Y+X#6Vz.g=wKtgwhaCwgmTWj2Lu,w%_+/[y-B;b^xeg3u3Rj-2@bX{*KrJ<!+'@Wg(g?QRlC@Jv`!%b[zIwsfII}8JQ_@w|kW|=Jv(%!AqcOuNBJvEzh!bYzjLs@wP#(0!oy@>RkdJwMZtc3Dtd@BcG#T'9bWxg2@2Fznd*#Y+;2x'c}w<zizixNgwa#Z'U+!/!a'!a+w~g~z6wcn{Rn}wcnzRn|5Rh%=]nJg5vuRmvNvdRlvcprJu}w*az*a#!%.a.'Bot9qT]kj@Wg'ay2Gzv@Jv`!%b[zEwsfHI}1;ck#Ux`<Cbbx_Lu+w!a&0*!wko*wwo,So,}6Juqxf!E}PigQuyRm`d3(`#8>Rn%:A5B;bZ~%KvhCa!a2!x>k7#Uxb@b{#xaRk7Jw0!)>wwhlShl}6>wwhmShm}6CJvB!.x'hhvj{!!5Bwkhhbaz}x'hivjz~!5Bwkhibaz|xEhTrNu,v-vpD!a%&/)a3a.,%Ro2t[CE{)@3re9b]{%wjo09:rgc:Z&Ro6=<riifuaw&RmoKrNA!%(Ro4>Ro89;Ri`dSaL'UYzxZb)7Rka3xRhT&!,!#^1U}vbaz{>>@=be}yC@:D5bazzKu+A&!}{?ba}y>>@=be}wxBh[t`u~vJvr!%a!a()a,a0a4RoC=]o;Ju(!%RoGRhdwjh`=]oAg>w#Ro?g5vuRo=NvdRl|Ku]C.!&;RoEJvB!%RoORoMBx'h[v+_?w~h`}~5?w~hd~!xKh]oiptu-utv.vp!#%&a30a@a'a+(a/aOp(o~p!RoDJu(!%RoHRhewjha=]oBNvdRl}g>w#Ro@g5vuRo>c[#X']o<CauRoRAd-#Y':RkpauRoQKu]C.!&;RoFJvB!%RoNRoPBx'h]v+_?w~ha}t5?w~he}ue!/UbhYacXaW^Tc&a;b:a-c/#b&aja1(!cL+!bKbt!bmcRc9aIc?8[yW3Dtt94Rg`Jv}!&SiRMzBhEebShEMNuPRe>x7gL#TzuwjirRipc<Z&>on;>z=h-MSh.Mwqczx'a7vj&!>Re4@=ResJt__NuPRi*NuPRi)j]uNr|~FRfzKrJ>_+@Wfy@Wf]2WocKrJ<!+'@Wg%g/QRl@@Jv`!&awRl<wsfFIzgLu(w*!.*&ShBMwvhIRhI9;RhNx1hK'!#Sn]Mx1hK~0!#:2<H~7cNu+w7D*'1ZtW>Rn1~?rOc:Z&Rn2=<rQ<7wjh&=BSnLMc]#X(6Vz)w[b=a!U#9wzgMc3#&(RgMRitRis<x,gKt`ax!&+SioM=BSilMc3#&(RgKRinRimKurB,!&SiQMzBhDebShDM6BJQ!(P~Efx978B2@@=I}WLrJw!!,a*&@G}O@9wkibRid@@x'fKwC!&SlDMSfLMjUv~Q~EfKKv3@a+!(hFv-]mpx/hYZ(C5RiWz<o/MwkhY?So/M@x,gbvfB*&!SgEM:SoeeehFu3:Rgbda(,^TZa)X/7Sg[eb:2RgI~BrMC@wgkc:wwkcRerx3h(uUvK!&*,SnOM4Sh*MArRg;wHRh(x=h;rJvPwI!a4',a'0@Wg&=BSh/Mg>w=Rh=g3w*wwgGRgGcW(X#;Sg}M2Gzk@Jv`!&awRl=wsfGIz`dKZ*T'Y-:RhR7RhQg5u-p`j6v(us5d,#Y+~Awkia?RicOuNBwkibba}Ld6p~tyu_vbAa'a+!a/'a3aEa8a!>Sh,ebJv{!&Sh@ebSaReb9;SgwebNuPRi(NvdRl)NuPRi'hHu^<Rm^Jvv_@Wl(g;u1Si/ebKu'B&!*Sh?eb@Wl'z@aPeb95Si.ebcpputyvjB)!,&a+0a%ShAMWeK@G}C@WfJ9;RhMwvhH9w{ia}ix,hJvRA1(!zAn[MRhHx1hJ~*!#hFv(BSn[MBJQ!(@@=I~'978B2@@=I}2db.Ua<'X}+T#a0XaG2G}E;wkg|wuh!Rh!x,hZu,@)!&So0MVy)C5RiXACJvB!&5RiY5RiZg8w)cG}*T#2@bU}=KsA>(!a.3wkhZba~(x,h^u(A!&(SoCMRhb5Bz=h[eb?w~hb~6x,h_u(A!&(SoDMRhc5Bz=h]eb?w~hc~6e)aA1T#T,^^^c-bMb&blcPaP(a/!0!bA=b5c@a(!bfbrc#2afwmhARnjwchORnp2Wlf3DtsNvdRl-2@wpa<]m0bx(#:awRk2@Jw3!%RfhwpfgRlnKQB%!(G{V@G|'NuuRl6d='T+Y#VyUg<v~Rl~==G|<Jv+'!aYShC}6@B<5?ba~8@Jw3'!g2QRljhLrpWlOd+#Y'g.w'rIg>w*wgj@g-u0Rj@Lu+wT&)ZtUauq]~GrGci&U#F|39:rELrNvj!.%*RhCwunfw~nf~:9;Ri]>wtnhg;wHRnhx3hDs@v~!/+'@Wfr@9RkSNu&Rlo=@<5GzoKs0@_+@Wl+@awRkmJuh!-3d(}pY#qWJvj!%Rm(:Jw3!%Rm,Rm*de&!1U-U#`)Re;@G|.@9Ri82@wjfvRlq=@<5GzpLvOvr!).&2RlF8Rf`C=x!eE{.Jw3_g2QRlkhLrpWlPde(!#U{s,UXa*Ta'[y'g:v>ReS;x0PZ&RnlRnn~HrKJw1}f!=x!eB|2w]aP(#Xa&a*Ta.Ua2a7=]iOd'#Y&Ro&WnWg;u.RiDg6vjRiBNvdRlzhNvj]nYJuW_2Wm3x)kFze{9d])!a.!,Y01!#&aC!a3RndC=ox~BrC@2b^{pg,rlse7x'ksuq!%Rm.E{xidw(wBRmGx9o+)X#wwo-So-}69:Rl4@xSf@a#XZ'X)X,Ta(/ARl8b[xc>RfY:RlI:RfQwlg.ARl:9;Rlwdn'#^XafaQa1X1TaHTa)@b[{zcZ#X'7RkwWg@Ou4ARn&x)kG#{,g7u/RkGdH'U#Y*Vz'Wm&CARm|bx#(A]gUbUzJj9Q~=d,#Y(56H}l978H{U7d,0#U*2>ABb_xZ978BbU{e~AJQ{g!978BbU{hxMh?ad{oUYZ.x1h?{l!#:2<H{mx3n[t{vl!,&a%3Ro(z=iS}6ARnr=Bwsn^wvn`Rnbd`*T}B0!#^X'BG{c9b]{a>>@=be}F?JvS!&BG{d7BG}(Bde#`a1X,Ya@!a'P~=wxf@2bZ}I56B2@@=aybb}08@55B9;5bb}<j3vLv;<Jw3&!>Rfg=ayb^}&OuNBKuLA!)a!P~=x#fD{f2@>==<bbzl?C972@@=Ix^d6rSu,v7w*C(0a)a6#B+a%!sQ[y?3Dt%3[xn~<5rLOu!5p@Ku+D#'!t7~GrP~?rNKvlaya7'!h+v-5qMg=t|cd,U#5AAaa5Abb{S@52B5@a[@52B5Gx[iXueu;d<#`a(!/549C;ag>23ExY5@Dah89b^~689Jv)!~2b[~1Lv'w(%*!a#bX|aPrmawRe]keu7uhv-q6rxu,q`xTo]/a5aU!bNaDXbi!b-!ao!b<bwA!#5@B932:aV2G|:d-)Y#hJrL>RhG<7@C5<H|_=Cau:5aj5@B932:bJ|ng>vIbs)#?C2F|9jPv0w.vISh-MKvUaz(.!9ABbb|[5;5<H|Eg>unwfh;9:4E|YjQsBt|vjx'hYq3!(?C2F|J:2<BaY?C2F|GOu!5x,g|p{ah!-(?C2F|c9:4E|OjXuvvNr}:Rh&i[w*t|cd+U#jJvsu)vsSn~Mkfrmu9p}u7vwv]So!McW#Xa!ax5@A5aY:5;5<H|>kJv~vYrquJu3x4ib#T)2@SmZM?C2F|Bj:rmu9@xPhI(a*a#U#`a3-5Abb|L~@:RhK9:4E|0@52B5G|#C::aY?C2F|-:2<BaY?C2F|.5Jvk!a)javYrquJu3x4ia#T)2@SmYM?C2F|HAxPhH(!a#U#`a*-5Abb|4~@:RhJ9:4E|R@52B5G|F:2<BaY?C2F|Sc^#Xa2j=Qq5CJvB!-g<v{z;hhM?C2F|Zi[vrv{z;hiM?C2F|XKsA>!a)-g<v{z;h[eb?C2F|]i[vrv{z;h]eb?C2F|^iZu.vix,hZq3ah!.(?C2F|QOu!5ShXM:2<BaY?C2F|P",13494,2713,49,25,61);var te;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.FLAG13=8192]="FLAG13",e[e.BRANCH_LENGTH=8064]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE",e[e.VALUE_MASK=8191]="VALUE_MASK"})(te||(te={}));var oe;(function(e){e[e.AMP=38]="AMP",e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_X=120]="LOWER_X"})(oe||(oe={}));var Dt=32,Jr=21,il=2097151,Dn=2047,Yr=0;function ol(e){let t=e>>>Jr;return t===Dn?Yr:t}function jr(e){return e-oe.ZERO>>>0<=9}function sl(e){return(e|Dt)-oe.LOWER_A>>>0<=5}function Xr(e){return(e|Dt)-oe.LOWER_A>>>0<=25}function al(e){return e===oe.EQUALS||Xr(e)||jr(e)}var Kr;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Kr||(Kr={}));var Mn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Mn||(Mn={}));function cl(e,t,n,r){let i=(t&te.BRANCH_LENGTH)>>7,o=t&te.JUMP_TABLE;if(o){if(i===0)return r===o?n:-1;let c=r-o;if(c>>>0>=i)return-1;let l=e[n+c];return l===0?-1:n+i+l-1&65535}if(i===0)return-1;let a=i+1>>1,s=n+a+i;for(let c=0;c<i;c++){let u=e[n+(c>>1)]>>((c&1)<<3)&255;if(u===r){let d=n+a+c;return s+e[d]&65535}if(u>r)return-1}return-1}function Zr(e,t,n){return n===1?String.fromCharCode(e[t]&te.VALUE_MASK):n===2?String.fromCharCode(e[t+1]):String.fromCharCode(e[t+1],e[t+2])}function ll(e,t,n){let r=t+1,i=0,o=r;if(r<n&&(e.charCodeAt(r)|Dt)===oe.LOWER_X)for(r+=1,o=r;r<n;){let s=e.charCodeAt(r);if(jr(s))i=i*16+(s-oe.ZERO);else if(sl(s))i=i*16+((s|Dt)-oe.LOWER_A+10);else break;r+=1}else for(;r<n;){let s=e.charCodeAt(r)-oe.ZERO;if(s>>>0>9)break;i=i*10+s,r+=1}if(r===o)return 0;r<n&&e.charCodeAt(r)===oe.SEMI&&(r+=1),i>1114111&&(i=1114112);let a=r-t;return a>=Dn&&(Yr=a,a=Dn),a<<Jr|i}function ul(e,t,n){let r=Gr,i=e.indexOf("&");if(i<0)return e;let o=e.length,a=0,s="",c=r[0],l=c&te.JUMP_TABLE,u=(c&te.BRANCH_LENGTH)>>7;do{let d=i+1,p=e.charCodeAt(d),f,g;if(p===oe.NUM){let h=ll(e,d,o);f=ol(h),t&&f>0&&e.charCodeAt(d+f-1)!==oe.SEMI&&(f=0),g=f===0?"":Wr(h&il)}else if(Xr(p)){f=0,g="";let h=p-l,m;if(h>>>0<u){let R=r[1+h];m=R===0?-1:u+R&65535}else m=-1;let b=0,_=0,x=m<0?0:r[m],k=d+1;e:for(;k<o;){for(;(x&(te.VALUE_LENGTH|te.FLAG13))===0&&(x&te.JUMP_TABLE)!==0;){let A=x&te.JUMP_TABLE,w=(x&te.BRANCH_LENGTH)>>7;if(w===0){if(e.charCodeAt(k)!==A)break e;m+=1}else{let N=e.charCodeAt(k)-A;if(N>>>0>=w)break e;let C=r[m+1+N];if(C===0)break e;m=m+w+C&65535}if(x=r[m],k+=1,k>=o)break e}if((x&(te.VALUE_LENGTH|te.FLAG13))===te.FLAG13){let A=(x&te.BRANCH_LENGTH)>>7;if(e.charCodeAt(k)!==(x&te.JUMP_TABLE))break;k+=1;let w=A-1,N=m+1,C=0;for(;C+1<w;C+=2){let S=r[N];if(e.charCodeAt(k)!==(S&255)||(k+=1,e.charCodeAt(k)!==(S>>8&255)))break e;k+=1,N+=1}if(C<w){if(e.charCodeAt(k)!==(r[N]&255))break;k+=1}m+=1+(A>>1),x=r[m];continue}let R=x>>>14,E=e.charCodeAt(k);if(R!==0){if(E===oe.SEMI){f=k-d+1,g=R===1?String.fromCharCode(x&te.VALUE_MASK):Zr(r,m,R);break}if(!t&&(x&te.FLAG13)===0&&(f=k-d,b=m,_=R),R===1)break}let v=cl(r,x,m+(R||1),E);if(v<0)break;m=v,x=r[m],k+=1}if(g===""){let R=x>>>14;R!==0&&!t&&(x&te.FLAG13)===0&&(f=k-d,b=m,_=R),f>0&&(g=Zr(r,b,_))}}else f=0,g="";f===0||n&&p!==oe.NUM&&e.charCodeAt(d+f-1)!==oe.SEMI&&d+f<o&&al(e.charCodeAt(d+f))?i=d:(a<i&&(s+=e.slice(a,i)),s+=g,i=a=d+f),e.charCodeAt(i)!==oe.AMP&&(i=e.indexOf("&",i))}while(i>=0);return s+e.slice(a)}function Mt(e){return ul(e,!0,!1)}var Vr;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(Vr||(Vr={}));var Qr;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(Qr||(Qr={}));var fl=class{src_Any=An.source;src_Cc=Cn.source;src_Z=Nn.source;src_P=nt.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join("|");src_ZCc=[this.src_Z,this.src_Cc].join("|");cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(e={}){this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,t,n=4){let r=this.escapeRE(e),i=this.escapeRE(t),o=`(?:(?!${this.src_ZCc}|${r}|${i}).)`,a=`${r}${o}{0,1000}${i}`;for(let s=2;s<=n;s++)a=`${r}(?:${o}|${a}){0,1000}${i}`;return a}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])")}get_ipv6_addr(){let e="[0-9A-Fa-f]{1,4}",t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=new RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?")}get_host_terminator(){return this.cache.src_host_terminator??=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=new RegExp("xn--[a-z0-9\\-]{1,59}")}get_tld(){if(this.cache.tld)return this.cache.tld;let e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=new RegExp("")}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig")}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uFF5C]|${this.src_ZPCc}))(?:(?![$+<=>^\`|\uFF5C])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig")}get_http_validator(){return this.cache.http_validator??=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy")}get_relative_proto_validator(){return this.cache.relative_proto_validator??=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy")}get_mail_name_validator(){return this.cache.mail_name_validator??=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy")}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(e=>this.escapeRE(e)).join("|"))}get_schema_search(){return this.cache.schema_search??=new RegExp(`(^|(?!_)(?:[><\uFF5C]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig")}get_schema_at_start(){return this.cache.schema_at_start??=new RegExp(`^${this.get_schema_search().source}`,"i")}},In={validate:(e,t,n)=>{let r=n.re.get_http_validator();r.lastIndex=t;let i=r.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)},gl={"http:":In,"https:":In,"ftp:":In,"//":{validate:function(e,t,n){let r=n.re.get_relative_proto_validator();r.lastIndex=t;let i=r.exec(e);return i?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:i[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){let r=n.re.get_mailto_validator();r.lastIndex=t;let i=r.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)}},pl="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",hl="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444";function ml(){let e=hl.split("|");return pl.split("|").forEach(t=>{let n=t.indexOf(":"),r=t.slice(0,n);for(let i of t.slice(n+1))e.push(r+i)}),e}var bl={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:ml(),urlAuth:!1,maxLength:1e4},ei=class{schema;index;lastIndex;raw;text;url;constructor(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}},ti=class{__opts__;__schemas__;re;constructor(e={}){let{rebuilder:t,...n}=e;this.__opts__={...bl,...n},this.__schemas__={...gl},this.re=t||new fl,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{let n={normalize:(r,i)=>i.normalize(r),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){let r=this.re.get_fuzzy_mail_host_search(),i=this.re.get_mail_name_validator();for(r.lastIndex=0;(t=r.exec(e))!==null;){let o=e.slice(Math.max(0,t.index-65),t.index);if(i.test(o))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){let t=[],n=this.re.get_schema_search(),r,i,o,a,s,c,l=!1,u=!1,d=!1,p=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(r=this.re.get_fuzzy_link_search(),r.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(i=this.re.get_fuzzy_mail_host_search(),i.lastIndex=0,o=this.re.get_mail_name_validator());;){let f=Math.max(p-1,0);if(i&&o&&!d&&(!s||s.index<p))for(i.lastIndex<f&&(i.lastIndex=f);;){let _=i.exec(e);if(!_){d=!0,s=void 0;break}let x=o.exec(e.slice(Math.max(0,_.index-65),_.index));if(x){if(s={schema:"mailto:",index:_.index-x[1].length,lastIndex:_.index+_[0].length},s.index>=p)break;i.lastIndex<f&&(i.lastIndex=f)}}if(r&&!u&&(!a||a.index<p))for(r.lastIndex<f&&(r.lastIndex=f);;){let _=r.exec(e);if(!_){u=!0,a=void 0;break}if(a={schema:"",index:_.index+_[1].length,lastIndex:_.index+_[0].length},a.index>=p)break;r.lastIndex<f&&(r.lastIndex=f)}let g=s;(!g||a&&(a.index<g.index||a.index===g.index&&a.lastIndex>g.lastIndex))&&(g=a);let h;if(!l)for(;;){if(!c){n.lastIndex<f&&(n.lastIndex=f);let k=n.exec(e);if(!k){l=!0;break}c={schema:k[2],index:k.index+k[1].length,lastIndex:k.index+k[0].length}}if(c.index<p){c=void 0;continue}if(g&&c.index>g.index)break;let _=c;c=void 0;let x=this.testSchemaAt(e,_.schema,_.lastIndex);if(x){h={schema:_.schema,index:_.index,lastIndex:_.lastIndex+x};break}}let m=h;if((!m||s&&(s.index<m.index||s.index===m.index&&s.lastIndex>m.lastIndex))&&(m=s),(!m||a&&(a.index<m.index||a.index===m.index&&a.lastIndex>m.lastIndex))&&(m=a),!m)break;m===s?s=void 0:m===a&&(a=void 0);let b=new ei(e,m.schema,m.index,m.lastIndex);b.schema?this.__schemas__[b.schema].normalize(b,this):this.normalize(b),t.push(b),p=m.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;let t=this.re.get_schema_at_start().exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new ei(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[r.schema].normalize(r,this),r}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}};var zn=wn(li(),1);var ui=Object.defineProperty,xi=(e,t)=>{let n={};for(var r in e)ui(n,r,{get:e[r],enumerable:!0});return t||ui(n,Symbol.toStringTag,{value:"Module"}),n},Tl=xi({arrayReplaceAt:()=>Nl,asciiTrim:()=>Bt,callable:()=>yi,escapeHtml:()=>Te,escapeRE:()=>$l,fromCodePoint:()=>it,isMdAsciiPunct:()=>at,isPunctChar:()=>Ri,isPunctCharCode:()=>st,isSpace:()=>Q,isValidEntityCode:()=>qn,isWhiteSpace:()=>ot,lib:()=>Ul,normalizeReference:()=>Ft,unescapeAll:()=>ze,unescapeMd:()=>Il});function yi(e){let t=function(...n){return Reflect.construct(e,n,new.target&&new.target!==t?new.target:e)};return Object.defineProperty(t,"name",{value:e.name}),Object.setPrototypeOf(t,e),t.prototype=e.prototype,t}function Nl(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function qn(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function it(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var vi=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Sl=new RegExp(`${vi.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),Dl=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Ml(e,t){if(t.charCodeAt(0)===35&&Dl.test(t)){let r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return qn(r)?it(r):e}let n=Mt(e);return n!==e?n:e}function Il(e){return e.indexOf("\\")<0?e:e.replace(vi,"$1")}function ze(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Sl,function(t,n,r){return n||Ml(t,r)})}var Ol=/[&<>"]/,Ll=/[&<>"]/g,Fl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Bl(e){return Fl[e]}function Te(e){return Ol.test(e)?e.replace(Ll,Bl):e}var Pl=/[.?*+^$[\]\\(){}|-]/g;function $l(e){return e.replace(Pl,"\\$&")}function Q(e){switch(e){case 9:case 32:return!0}return!1}function ot(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Ri(e){return nt.test(e)||Tn.test(e)}function st(e){return Ri(it(e))}function at(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Ft(e){return e=e.trim().replace(/\s+/g," "),e.toLowerCase().toUpperCase()}function di(e){return e===32||e===9||e===10||e===13}function Bt(e){let t=0;for(;t<e.length&&di(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&di(e.charCodeAt(n));n--);return e.slice(t,n+1)}var Ul={mdurl:Rn,ucmicro:Sn};function zl(e,t,n){let r,i,o,a,s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)r++;else if(n)return e.pos=c,-1}}let l=-1;return i&&(l=e.pos),e.pos=c,l}function ql(e,t,n){let r,i=t,o={ok:!1,pos:0,str:""};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return o;if(r===62)return o.pos=i+1,o.str=ze(e.slice(t+1,i)),o.ok=!0,o;if(r===92&&i+1<n){i+=2;continue}i++}return o}let a=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32){i++;continue}i+=2;continue}if(r===40&&(a++,a>32))return o;if(r===41){if(a===0)break;a--}i++}return t===i||a!==0||(o.str=ze(e.slice(t,i)),o.pos=i,o.ok=!0),o}function Wl(e,t,n,r){let i,o=t,a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(o>=n)return a;let s=e.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;t++,o++,s===40&&(s=41),a.marker=s}for(;o<n;){if(i=e.charCodeAt(o),i===a.marker)return a.pos=o+1,a.str+=ze(e.slice(t,o)),a.ok=!0,a;if(i===40&&a.marker===41)return a;i===92&&o+1<n&&o++,o++}return a.can_continue=!0,a.str+=ze(e.slice(t,o)),a}var Hl=xi({parseLinkDestination:()=>ql,parseLinkLabel:()=>zl,parseLinkTitle:()=>Wl});function ct(e){"@babel/helpers - typeof";return ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ct(e)}function Gl(e,t){if(ct(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ct(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kl(e){var t=Gl(e,"string");return ct(t)=="symbol"?t:t+""}function F(e,t,n){return(t=Kl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ie=class{constructor(e,t,n){F(this,"map",null),F(this,"level",0),F(this,"children",null),F(this,"content",""),F(this,"markup",""),F(this,"info",""),F(this,"block",!1),F(this,"hidden",!1),this.type=e,this.tag=t,this.attrs=null,this.nesting=n,this.meta=null}attrIndex(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1}attrPush(e){this.attrs?this.attrs.push(e):this.attrs=[e]}attrSet(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r}attrGet(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},lt=class{constructor(){F(this,"__rules__",[]),F(this,"__cache__",null)}__find__(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1}__compile__(){let e=new Set;this.__rules__.forEach(t=>{t.enabled&&t.alt.forEach(n=>{n&&e.add(n)})}),this.__cache__=Object.create(null),this.__cache__[""]=[],this.__rules__.forEach(t=>{t.enabled&&this.__cache__[""].push(t.fn)}),e.forEach(t=>{this.__cache__[t]=[],this.__rules__.forEach(n=>{n.enabled&&n.alt.indexOf(t)>=0&&this.__cache__[t].push(n.fn)})})}at(e,t,n={}){let r=this.__find__(e);if(r===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__[r].fn=t,this.__rules__[r].alt=n.alt||[],this.__cache__=null}before(e,t,n,r={}){let i=this.__find__(e);if(i===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null}after(e,t,n,r={}){let i=this.__find__(e);if(i===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null}push(e,t,n={}){this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null}enable(e,t=!1){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(r=>{let i=this.__find__(r);if(i<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${r}`)}this.__rules__[i].enabled=!0,n.push(r)}),this.__cache__=null,n}enableOnly(e,t=!1){Array.isArray(e)||(e=[e]),this.__rules__.forEach(n=>{n.enabled=!1}),this.enable(e,t)}disable(e,t=!1){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(r=>{let i=this.__find__(r);if(i<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${r}`)}this.__rules__[i].enabled=!1,n.push(r)}),this.__cache__=null,n}getRules(e){return this.__cache__||this.__compile__(),this.__cache__[e]||[]}},be={};be.code_inline=function(e,t,n,r,i){let o=e[t];return`<code${i.renderAttrs(o)}>${Te(o.content)}</code>`};be.code_block=function(e,t,n,r,i){let o=e[t];return`<pre${i.renderAttrs(o)}><code>${Te(e[t].content)}</code></pre>
14
- `};be.fence=function(e,t,n,r,i){let o=e[t],a=o.info?ze(o.info).trim():"",s="",c="";if(a){let u=a.split(/(\s+)/g);s=u[0],c=u.slice(2).join("")}let l;if(n.highlight?l=n.highlight(o.content,s,c)||Te(o.content):l=Te(o.content),l.indexOf("<pre")===0)return l+`
12
+ }`:p}),s=await Promise.all(a),c=0;return Yc(o.replace(Nr,()=>s[c++]),t)}function Pr(e){let t=new URL(e);return t.protocol==="file:"?(0,Sr.basename)((0,Dr.fileURLToPath)(t)):(t.username="",t.password="",t.search="",t.hash="",t.href)}var Be=require("node:fs"),j=require("node:path"),xr=require("node:util");var Ve=class{diff(t,n,r={}){let i;typeof r=="function"?(i=r,r={}):"callback"in r&&(i=r.callback);let o=this.castInput(t,r),a=this.castInput(n,r),s=this.removeEmpty(this.tokenize(o,r)),c=this.removeEmpty(this.tokenize(a,r));return this.diffWithOptionsObj(s,c,r,i)}diffWithOptionsObj(t,n,r,i){var o;let a=_=>{if(_=this.postProcess(_,r),i){setTimeout(function(){i(_)},0);return}else return _},s=n.length,c=t.length,l=1,u=s+c;r.maxEditLength!=null&&(u=Math.min(u,r.maxEditLength));let d=(o=r.timeout)!==null&&o!==void 0?o:1/0,p=Date.now()+d,f=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(f[0],n,t,0,r);if(f[0].oldPos+1>=c&&g+1>=s)return a(this.buildValues(f[0].lastComponent,n,t));let h=-1/0,m=1/0,E=()=>{for(let _=Math.max(h,-l);_<=Math.min(m,l);_+=2){let k,x=f[_-1],v=f[_+1];x&&(f[_-1]=void 0);let w=!1;if(v){let A=v.oldPos-_;w=v&&0<=A&&A<s}let R=x&&x.oldPos+1<c;if(!w&&!R){f[_]=void 0;continue}if(!R||w&&x.oldPos<v.oldPos?k=this.addToPath(v,!0,!1,0,r):k=this.addToPath(x,!1,!0,1,r),g=this.extractCommon(k,n,t,_,r),k.oldPos+1>=c&&g+1>=s)return a(this.buildValues(k.lastComponent,n,t))||!0;f[_]=k,k.oldPos+1>=c&&(m=Math.min(m,_-1)),g+1>=s&&(h=Math.max(h,_+1))}l++};if(i)(function _(){setTimeout(function(){if(l>u||Date.now()>p)return i(void 0);E()||_()},0)})();else for(;l<=u&&Date.now()<=p;){let _=E();if(_)return _}}addToPath(t,n,r,i,o){let a=t.lastComponent;return a&&!o.oneChangePerToken&&a.added===n&&a.removed===r?{oldPos:t.oldPos+i,lastComponent:{count:a.count+1,added:n,removed:r,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:n,removed:r,previousComponent:a}}}extractCommon(t,n,r,i,o){let a=n.length,s=r.length,c=t.oldPos,l=c-i,u=0;for(;l+1<a&&c+1<s&&this.equals(r[c+1],n[l+1],o);)l++,c++,u++,o.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return u&&!o.oneChangePerToken&&(t.lastComponent={count:u,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=c,l}equals(t,n,r){return r.comparator?r.comparator(t,n):t===n||!!r.ignoreCase&&t.toLowerCase()===n.toLowerCase()}removeEmpty(t){let n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n}castInput(t,n){return t}tokenize(t,n){return Array.from(t)}join(t){return t.join("")}postProcess(t,n){return t}get useLongestToken(){return!1}buildValues(t,n,r){let i=[],o;for(;t;)i.push(t),o=t.previousComponent,delete t.previousComponent,t=o;i.reverse();let a=i.length,s=0,c=0,l=0;for(;s<a;s++){let u=i[s];if(u.removed)u.value=this.join(r.slice(l,l+u.count)),l+=u.count;else{if(!u.added&&this.useLongestToken){let d=n.slice(c,c+u.count);d=d.map(function(p,f){let g=r[l+f];return g.length>p.length?g:p}),u.value=this.join(d)}else u.value=this.join(n.slice(c,c+u.count));c+=u.count,u.added||(l+=u.count)}}return i}};var Cn=class extends Ve{tokenize(t){return t.slice()}join(t){return t}removeEmpty(t){return t}},$r=new Cn;function Qe(e,t,n){return $r.diff(e,t,n)}var Tn={};Tr(Tn,{decode:()=>et,encode:()=>Ae,format:()=>ze,parse:()=>tt});var Ur={};function Xc(e){let t=Ur[e];if(t)return t;t=Ur[e]=[];for(let n=0;n<128;n++){let r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function Nt(e,t){typeof t!="string"&&(t=Nt.defaultChars);let n=Xc(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let i="";for(let o=0,a=r.length;o<a;o+=3){let s=parseInt(r.slice(o+1,o+3),16);if(s<128){i+=n[s];continue}if((s&224)===192&&o+3<a){let c=parseInt(r.slice(o+4,o+6),16);if((c&192)===128){let l=s<<6&1984|c&63;l<128?i+="\uFFFD\uFFFD":i+=String.fromCharCode(l),o+=3;continue}}if((s&240)===224&&o+6<a){let c=parseInt(r.slice(o+4,o+6),16),l=parseInt(r.slice(o+7,o+9),16);if((c&192)===128&&(l&192)===128){let u=s<<12&61440|c<<6&4032|l&63;u<2048||u>=55296&&u<=57343?i+="\uFFFD\uFFFD\uFFFD":i+=String.fromCharCode(u),o+=6;continue}}if((s&248)===240&&o+9<a){let c=parseInt(r.slice(o+4,o+6),16),l=parseInt(r.slice(o+7,o+9),16),u=parseInt(r.slice(o+10,o+12),16);if((c&192)===128&&(l&192)===128&&(u&192)===128){let d=s<<18&1835008|c<<12&258048|l<<6&4032|u&63;d<65536||d>1114111?i+="\uFFFD\uFFFD\uFFFD\uFFFD":(d-=65536,i+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}i+="\uFFFD"}return i})}Nt.defaultChars=";/?:@&=+$,#";Nt.componentChars="";var et=Nt;var zr={};function Vc(e){let t=zr[e];if(t)return t;t=zr[e]=[];for(let n=0;n<128;n++){let r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function St(e,t,n){typeof t!="string"&&(n=t,t=St.defaultChars),typeof n>"u"&&(n=!0);let r=Vc(t),i="";for(let o=0,a=e.length;o<a;o++){let s=e.charCodeAt(o);if(n&&s===37&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){i+=e.slice(o,o+3),o+=2;continue}if(s<128){i+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){let c=e.charCodeAt(o+1);if(c>=56320&&c<=57343){i+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[o])}return i}St.defaultChars=";/?:@&=+$,-_.!~*'()#";St.componentChars="-_.!~*'()";var Ae=St;function ze(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Dt(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Qc=/^([a-z0-9.+-]+:)/i,el=/:[0-9]*$/,tl=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,nl=["<",">",'"',"`"," ","\r",`
13
+ `," "],rl=["{","}","|","\\","^","`"].concat(nl),il=["'"].concat(rl),qr=["%","/","?",";","#"].concat(il),Wr=["/","?","#"],ol=255,Hr=/^[+a-z0-9A-Z_-]{0,63}$/,sl=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Gr={javascript:!0,"javascript:":!0},Kr={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function al(e,t){if(e&&e instanceof Dt)return e;let n=new Dt;return n.parse(e,t),n}Dt.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&e.split("#").length===1){let l=tl.exec(o);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let a=Qc.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=o.substr(0,2)==="//",i&&!(a&&Gr[a])&&(o=o.substr(2),this.slashes=!0)),!Gr[a]&&(i||a&&!Kr[a])){let l=-1;for(let g=0;g<Wr.length;g++)r=o.indexOf(Wr[g]),r!==-1&&(l===-1||r<l)&&(l=r);let u,d;l===-1?d=o.lastIndexOf("@"):d=o.lastIndexOf("@",l),d!==-1&&(u=o.slice(0,d),o=o.slice(d+1),this.auth=u),l=-1;for(let g=0;g<qr.length;g++)r=o.indexOf(qr[g]),r!==-1&&(l===-1||r<l)&&(l=r);l===-1&&(l=o.length),o[l-1]===":"&&l--;let p=o.slice(0,l);o=o.slice(l),this.parseHost(p),this.hostname=this.hostname||"";let f=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!f){let g=this.hostname.split(/\./);for(let h=0,m=g.length;h<m;h++){let E=g[h];if(E&&!E.match(Hr)){let _="";for(let k=0,x=E.length;k<x;k++)E.charCodeAt(k)>127?_+="x":_+=E[k];if(!_.match(Hr)){let k=g.slice(0,h),x=g.slice(h+1),v=E.match(sl);v&&(k.push(v[1]),x.unshift(v[2])),x.length&&(o=x.join(".")+o),this.hostname=k.join(".");break}}}}this.hostname.length>ol&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));let c=o.indexOf("?");return c!==-1&&(this.search=o.substr(c),o=o.slice(0,c)),o&&(this.pathname=o),Kr[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Dt.prototype.parseHost=function(e){let t=el.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var tt=al;var In={};Tr(In,{Any:()=>Nn,Cc:()=>Sn,Cf:()=>cl,P:()=>nt,S:()=>Dn,Z:()=>Mn});var Nn=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Sn=/[\0-\x1F\x7F-\x9F]/,cl=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,nt=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,Dn=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,Mn=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var ll=[8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0,0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376];function ul(e){return e===0||e>=55296&&e<=57343||e>1114111}function Zr(e){return ul(e)?65533:e>=128&&e<=159&&ll[e-128]||e}function Jr(e){return e-1>>>0<127||e-160>>>0<55136?String.fromCharCode(e):String.fromCodePoint(Zr(e))}var pe=(()=>{let e=new Uint8Array(127),t=0;for(let n=33;n<=126;n++)n!==34&&n!==36&&n!==92&&(e[n]=t++);return e})();function Yr(e,t,n,r,i,o){let s=e.length,c=o*90,l=0,u=()=>{let b=pe[e.charCodeAt(l++)];return b<o?b:b*91-c+pe[e.charCodeAt(l++)]},d=n-r,p=n+i,f=new Int32Array(p);f.fill(-1,r,o),f.fill(-1,o+d,p);let g=new Int32Array(p),h=new Int32Array(p);function m(b,S){let T=0,M=S,I=S+b;for(;M<I;){let L=pe[e.charCodeAt(l++)];if(L<89)T+=L,f[M++]=T;else if(L===89){let C=pe[e.charCodeAt(l++)]+2;for(;C--;)f[M++]=++T}else{let C=pe[e.charCodeAt(l++)];T+=89+(C<90?C*91+pe[e.charCodeAt(l++)]:pe[e.charCodeAt(l++)]*8281+pe[e.charCodeAt(l++)]*91+pe[e.charCodeAt(l++)]),f[M++]=T}}}m(r,0),m(d,o);let E=new Int32Array(i*2),_=0,k=0;function x(b,S){for(let T=0;T<b;T++){let M=S+T,I=u(),L=u();E[k*2]=I,E[k*2+1]=L,k+=1,g[M]=_;let C=(f[I]<0?h[I]:1)+(f[L]<0?h[L]:1);h[M]=C,_+=C}}x(i-o+r,o+d),x(o-r,r);let v=new Uint16Array(_),w=0;for(let b=0;b<k;b++)for(let S=0;S<2;S++){let T=E[b*2+S],M=f[T];if(M<0){let I=g[T],L=I+h[T];for(;I<L;)v[w++]=v[I++]}else v[w++]=M}let R=new Uint16Array(t),A=0;for(;l<s;){let b=pe[e.charCodeAt(l++)];b>=o&&(b=b*91-c+pe[e.charCodeAt(l++)]);let S=f[b];if(S<0){let T=g[b],M=T+h[b];for(;T<M;)R[A++]=v[T++]}else R[A++]=S}return R}var jr=Yr("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%%%#%#&(23#%%#&-%0%('1#(##%#'##+%'*.:1}#%#6-+(%'%%#%%%}#L'2351&('%}&/N'(0(/*-%(%%}#'+&T%7.2}#&%&#%#36/5##%&%%#&#%%#))2%%##%&&'0~!#*+&'%1~!%).'3q?&%'1~!.##%6(~!+%%%(Gw'rT~!E#<nA%#jZ~!H%(~!42##~!*31&~!G%U~#)5~#`3~!J~!Z~%]~%Y~%C~!q~!u~#kz~%#~!6'~!D~!U~!?~#T~!c%~!G#'~%7|~!G~!J~!G&~#pb~(Df}#%}*&}#%##%##%##&#-}&'#'&%#.++}%mI,#,@&(}*%}*'%&##&#%##%}&0}#.},U},%}+%}&%}#%##&}B%(}(%}+%)})%##%#&}&%##%&}<%}>%#%&}*%}(%}9%}/%})%}*%}*%}?&}&%}3%}&*#%})%#%#)}#&#-#+*%E%%'%'#%}#*V##&##I}#&&##%&%#&&Qf%%))w/0+&%#(#.%-''''++++7}>%4'',##1,#%#&%##&#'##&#*#9)%&%}#*}%,#+P(%A&%#'&##wSD',9E00#y#@}(+}&%&>~!#~!X}#*}(&&}(&}(,%}%&#+&}#&}I%#%}%)#(},'%#*}4%%#%}(''}#/##(##),%-##%%)#&}(.}&%#&}%%}*&#%},&&}&%}#%*'#%})%}D&}&%}-&}6&#&}-,%}#%})-(~+`~,=?~I9'9%~!,#%})%})%}@%}?%}(~!?~#<~#pP~#BG~#=1#%K+~#?#~%;)~#A~#mF1~#A'~'X%'~#lR~#N~'N~#r~#m#-~#i'?%#'%~#B%##%,%#~#_%#0%~#]732~,w~2+#:&#%&'0%&>%}#>##F+)#%&&#(+_}4&}-%}(&}@&}O7Fdf0@+/v4}&WU##&/0#&'('B#%}.%}'+#%}#%%&#&%#%##+#&#)#6#'#.},%}c%},%#%##%&#&%#&~#>'*-.%##%##%}#%%}%'~#)D1}#%*&~#_%%'(~#S2%'.}#~#=##*'*-%}&'%'##&&~'E%.#&~#M4}%%##&'%#~#O1##%&#'+~#<B%##%%'%+~#;#@%}#&%#&&%#(~#H1}'%'##&&~#?A}&'~#D#%32}'&&&&~#[}'(#%}'~#;C})&}%%#%~#=&%,3}%'(#%%~#^'#&&)#%'~#Y%-~#d-%'~#^%%&#&&&}#~#b~2t*&'~&(~&@~0%~e~3}%*''0})&}+~!9##-}#%-hD*)1fC#%/&/fB#40~!+#)*4~!+~!K'&:~!/*7~!.#~!H~!L':~%x&~!H#~!*~%1~!I#~!+A~#p'~!F~~#-#~,,(~.Z~!V~%;'B'mq-W~!N~%I%#&&#&}#%},%%}'%}+X#%}#&}(%}'%}<%}#%}%%'}'%}:~![)9@~%>~#UA%-%##&~!C%~!-.9:~!1~!-^2/:a~!y,D*J#-5)/4~%23,~#G~!L1~!0X3`~!2+~!!0-~&E~!W~!o,>Y&]~%cZx_&~#O*9#A#'#+I'%#)~!0B*-5A+-((F&*M#)(-7-5+'-3a5Vi~!Y~!?+[)%3),ERHm~!+:D,VG.+)?fB%%*(%)'(#&80%1'8`K8?`+'Z#&O&'H5#*9)A%%5&3))0%39+.*7#()&&*=4@**L)<'_&*+..;(#*+)./&0#3)%')-8(4ixD(&.}%,('aI:,)%,k2231T)I'#/-W7,/'Q#.'Y24+h')37</31&83##&0#),H(?'&?/1##%#&&#%''-%&&&#(&''&#.-'%#%%(,')*'&#&#'##%(%(#%('#&##%%%%('%#%#%%#%#&%##h>w+v<ayvyvcg.uuhKr}g/v|g>u9i[~>g5uI~=RvdwEg;v/g;uk!!TTSx]@RT!U!#!@VBRUU!'UTe-d0c`e&gSdicedFcrdTaqb.kYcAohdYd@a3e+d}dMdtd.aJ#bqcK`dle/e.e'dwdPdodddjbEb}ogd^ofdpduc6j?l%d{drdqc)d7bacOdQ%T#Y)X.sR[yH>6Vyv3[xwLu>vo'!*.[yBacahoj>6Rew3[xqdZa#!a&#^(X-[yG>6Vyu3[xvg3sEr|g.u/Ri9db0T#^(Xa)!-[y;>6Vylg4wKs{JwNZt3@3r=c4Z([xlg;wKt!cpq's@v7A'*a(a+!-a#[y<3Dt?3Dt'>6Vym3[xmg9rxsNJwLZt4~?r?db1T#`-!(Xa,!0[yS>6Vz%NuQs.g4wKtnJwNZtS@3r>c4Z([y%g;wKtrdga8!a(!#&T*Y-Xa#!a0<or[yc3Dtq>6Vz43[y3JwNZtf@3s!Ju}!%Dti:pm3c_%X#tjB5pkd6q!r]u?voC'*-a.a2!0a&a+[yI3DtI3Ds~3DtH>6Vyw3[xx;:s#~<5pKJwNZtE@3r~d`a)!a2T#a.(!+U.X1[yT3Dt`3Dtv>6Vz&3[y&g9rxwzcxstPu.<rAJwLZtT~?r@dZa%!a.&^*Za(/Reu[ya>6Vz23[y1g3sEr}wkg{NuQRg{ci(U#5@b`~,cg#U(2WnH5wugcRh7dX#T(Y,a'Ta!!a,[yZ<]mj>6Vz,3[y+Pv#5ReZKu+=,%!H}7ABwkaS?Rh:BcW(X#<]mrj:ubv/ARekdg%!(!a.*Ta(Y.X1!#sP>Rl*Dt6[y>>6Vyo3Wf*jOvuumvuRgRJuq*!:9<B@bX~3jVv&v@s@5Re[d/rQt{uAvo&a&a*)a2!,0Wf!3Dt0=Bs'>6Re}3[xy~<5s%JwJZt1~Gs)c;&!#2sJkNuXvzq7rxu,Re8dka4!a8(aEZ+a@Y.X1Xa)[yd=Bs(3DtP>6Vz53[y4cX#X&Re:avRe9~<5s&JwJZtQ~Gs*i^rzvdRg+Jv{%!2sbB@bX}kdga,!Za?&^*T1/!a'Dt+[y6>6Vyf3Wf%g/u;s4hGu6?Rh-JvZ,!c%#&RoX54Rivj7uyvf8RgTKvZB%*!2sGh<vu5Rgq<=C::9bb~#dZ#T&Ta6Y.X*Dt>[y93Wf)coZ(T,6VyifluvRgC@95@B@bX~/hFu34cC#T,k/unq8w8Q5RkUklwQuzunq8w8Q5Rk8d/rJu?v8w9)-&!a0a;a&aIWejg3sEr/h1s<DtDJvyZqY5aws3Jvy!&Wei~Hr1:au5@Bag>23E~5c:Z&bX};kKv?w&unuVu5Rjc;>bs)#~@:Rh.=ay<a]C;b`}Vd6s/t{uAvoaxa()!a,a7%-a#a2Dt,[yF2Wo[>6Vyt3[xuNuPRi&NuPwpi#RoWh?vf8Ri%Jv]!%Ri:KvxD!.'2WeAjZu`q9rxu,Re7woeAg-unLq(qA_/*2Wg_g3u5q^9:4E}/jTrxrzv=Wkkd~0UX#^^Xa-a1a5T&a=U1a'*aEa]!a*aPaA-adok[y54Rn>;:p3~Dp5g9rpsFNvZqjg3uJp4~<5p0Pw;5qlJwNZt*@3p1Pw:5p/Ou!5p2JvG'!6Vye=<qnJvh_[xhg3v,Rh3kOwOw-sDuev/Re^dha[a%!%!a+#Ta7)-5TaCaO!aka!a)sf[yb2>Rl!9ARiq5E}Qg=ucRkBE|oJrJ_@Wk~@Wk{JrJ_@Wk|@WkyJrJ_@Wk}@WkzJvO_[y2g-vMRmiKuYC!)&>Ri;>Ri<@3RkNc](X#@9Rk=g5vuRmhKvDB!+'=]meg3u4Rmgd)#Y'Vz3CARmfd`a+!%T'!+#Ta1Ta6TaM-sTDt9[yA9sYd'%Y#s[[xpj:ueunaXRgEjRq,v-vuqdd2'`#6Rev<32@5>:2<E}5xIo9a*X#Y(;5RePJvD_g>vyRgNj8w)v8<wggs:RgXiZt|vjx,hSq3ah!-(~@:Ro/Ou!5RhWj^v(pyw8unRhUdx-UY#^Ua.a3a70!)%UX1TaDa)'omRiRRhE[y:3Dsz=Br,>6Vyj3[xkg6ruwjcqsrPw;5r*Ku]D'Zt-@3r(~?r.i[vwv]dU1a--U#`a4(g/vsRhPOu!5RhLj:rmu9Wo!~@:wdh@g/vsRiTjXuvvNr}:RhBj^v(pyw8unRn]dz1UYa'a+^Y(!aETZalaRY.Ta?a4[yDJw1!#qLsW>6Vyrfzq-pLflpwRe|Js>%!Dt@3Dt&Jvy_[xs~HrnjMuwpsw'RecKu+D#'!t<~Grl~?rjg5u-x,gwp{ah!-(~@:Rg~Ou!5Rh'jXuvvNr}:Rh#cW#X/c;&!#2sLi[v7u7RgpJv)(!iLrxu,Re6j7v@s@5Se[e7d`aW!Za(a`T.a#!a3!&aDa-!9)Dt_=6s+3[x~~DR|h~DS6avhGun5RkZj3w)v-]mkKunB!&*]kb97R|i<ARk<c:Z(6Vy}Juh'!wziMRoS:F|vkLuauJv5vtvQRh1d='T+Y#VyO~DR|jcF#T'7R|g97R|kJv3'!ay<Rj,Jvh&!:ReXcsa6*a+#a#_aIRf9aLRf?c,Z&Rf5Rf7c.Z&Rf;Rf>cQ#%T'p-Rf8Rf=ct#%'(*!,p,Rf4p+Rf6Rf:Rf<d~'Ua%U*^UYa(!a,-!#a4YaTalaEX0a8a<Weo3Dt/3Dsx=Br93Wen~Dr;~<5p<JwNZt2@3p=Pw:5p;Ou!5r3c7&!#:p>3Ds}KvGB)_6Vyk2sM=<r7x'eovA(!hFu1ARf}cV#X&@r5j6rvwQa^Rf3c=Za'wkghJv__g;unRggA53B9=b^}%j6uduo5Jq;!(hIv%2Re`Ou4ARe_e%a#^^^Xa&!a*a2!&a6YaP!*ad!#a:aE/5Rn?[y@>6Vyp;:pE~DrY~<5pBJwNZt8@3pCh=rt3rWPw:5pAJup_[xoNuPpF9c!#'45pD5ARn)d8#X'X*3@rU72s]h>v<<sSjJpqvewOJq/(!hNw'5ReBk0s2u3w/w'5ReE5@Jq.!a+JQ!&WeU23d(#Y&RjG5]jBk!u7w&u0udARjEe#+^^^Ub#!a2/a`Z(agT1!a-a;|@TaG!aS[yV=Re~fow'RguNuPRe?bz#'>RoUWeL>:Cbb|?JwPZtVg6ruRmzJvD'!6Vz(g/vmRh~Jvy_[y(g9voRgyx*cy(#2>Ri2B9b]~9kIw9u7rluJu3Rg]dI#a%UY'@=p%CAx.gQZ&RhwwygtRm{x5g_Z'+ABqR9Woa=Bp&dV#^*Xa'!&@o{g4v]Rk;Jv{!%Rk[wkkiA5RkiwwfUB=x,fUuqC&*!>RfTg8v0RfV~ARfSd;rJsAuAv9wR'ae+/aO!a@aza/a#[yQ@Wg!2Wemg3sEr0JvB_g>uvReWg2v+Re=KupB_+[y!2AbY~-~Hr2AJwD!(h<~El>h<~El?Kun@+_:9b`}Kg-v/Ri3g;vtwyk_9]k_d=&T#*U.6qh@Ab`|K9:H|CJv[!&3Dtex'fDwC%!Rf[9WlMd[(^X,!a%Z06Vz!@WgBg=v~Rgvg,QRe@awd,#Y+jTv|Q~EfWj]uNr|~FRfXdy#Y&^Ua%!aO.!(a)Ua;=!a@aKap!a-,a!Ta]a[rSa]p?[y82sK=Bq~;:p:~<5p8Pw:5p7d'#Y'Wf(;RnRi[u4w&RgJJvG'!6Vyh=<r#ijuuv/sIKuYD'ZtG@3p9~Gr&d2#`(g<vtRgFj`u5w&rqpxRf2CJuY!+:wfnTOu!5Rg}jNs1ucv&RfwJvA!&3@q|BDcC#T,k/unq8w8Q5RkTklwQuzunq8w8Q5Rk9dga#!a'!a=#a0!:+Tb*b@aO.a4!aba8aFJv^}?!VyR~Dr<g;u%Rn.~<5p[x'e`wNZtR@3p]Pw:5pZhNvjBp.woe_g5u-r4JwF!%DtO3:ooc7&!#:p^3DtpLuGw(!+%)Dtk6Vz#2sd=<r8d'#Y([y#<x3gJt`w@!)%}MRiowzikRij=]ilxAf3,U(#B2Rf#g0v-Rm[ck{`U#]giKv3>)!&6Ri154s,KuGB_%@r68r:dJ|t`#X(9<E|u2@H|rx3gJu?w'!+'1Nu7Reg4=H~+9<wxgY95Rm]xLggZ-`(X}U2:Ri4h<uOawRmsJv__5@bb{jbV~3dka#a'a]!,#a+U=a>b6a3b%!/aKa/)!arwve^VyJ;:pR~DpTg3uJpS~<5pOPw;5qmPw:5pNOu!5pQJvG'!6Vyx=<qoJvA!{~Jup!%@qk7Rn/KvyD!}''[xz;>wkh'?Rh,x8gyt`w5D!&),(SgyccRgztJ@3pPB5p#d'(Y#<]mmifubw&RgoJvE&!82s^JvF&!8Rf,ADb]~;x=h'rNu]vK!,%'*0RnORh)4Rh*AqQg-vaRnNg;wHwkh'ba~4cE#Ta*x3gctyw@'!+%RnFRnD<4Rn@hFvK5RnCxWg[#`&a0Ua()`1Rm75Rg[c]%X#qi8Rg^NvdRj>BwzgZauwji7Rm6A4wgg]d1#&(*,.0a#Rm;Rm<Rm=Rm>Rm?Rm@RmARmBe%#^^^Xaea?aC/b+(,!a+a#!a/!>a&Ta<aKbD!2wphBRnk[yPw}hE|.=Br-3Dtm>6Vy~g6urRf.x,hPrNav!%'RnqRo%Ro#Nu;q[Pw;5r+JwNZtM@3r)d'#Y'Weh;xChL#`&RnmRnoKu}>%(!Rne~Bs-;2wjcussJv+'!aYSO}6@B<5?ba~8LrNvj!.%*ROwungw~ng~:9;Ri^>wtnig;wHRnixDh@|(UZ.x1h@|)!#:2<H|*xHn]#-UX'3Ro)z=iT}6ARns=Bwsn_wpnaRncw]aR(#UXa&Ua*a/=]iPd'#Y&Ro'WnXf{QRm2hNvj]nZd`'T~&1`{|`#9b]{}c:'!#Wl{>@=be}]?cl{{U#:5Abb}Jds#^YaF!a*b4a#a3aPa>&Tb!bH!*a_!Eau?/a&RjY<]gj>6Vz*;:pe~DrZg,QRj1JwNZtX@wihspcJvZ&!VyX9WmOJu|!|N2WmHJvh&!]ht~Bpbcn&T(!#RmQ<s7Nu;padH#X'`+WmJ@>RmKCARhnKup=!)&Wf+:RhqNuPpf9c!#'45pd5AwghpARn(Ls@w!%,)!RmP@Wfe<E|IJva!&WmNg8vsRmLd`*.`#Y'Xa!axRn*]hrA8Rhug5s@rXg8u!RmMd8#X'X*3@rV72smdI*#UY&RmICARho~GsgxVgd)Ta'U-Y&Xa!T#RnEWnA@Wffg1uDRi0hFvK5RnBxGnG&#`%owp)@wsf+bX}Ze-*1!a*^^^Ua|!#a.aq&Ya2!a>.a6!a:aO`aJDtL[y`@Wg#>6Vz12@wzoYRoZNuPRi!NuPRhzg=ucRi,@=b`{Yg=ucRi-ACJvB!&Sh[ebSh]ebi`wUuFRm4Jw2_[y0JvB!.<Ju(!&SoG}6Shd}6<Ju(!&SoH}6She}6Kur@._g5vHRieJvx!{L2G{Kx6gd'T#?Rh82Wi5cZ#X(g1w)Rm5dW-Y(Ta#!a)!#aYa=wnfE=su2>>bU{0j9udv:<svj8uQv-7RgHdE%#^'sq9sp=>Bb_{TJv`!&g/r|snj6v(us5d,#Y(56H}[978H}]Jw5!&g1rushJvB!+j;v{u5?zDhd}6}bj;v{u5?zDhe}6}ce*#`(^^^a[aea!=!a6a*aoXb1a.!aAbL!b>,b'aL!aV@Wf|2Wlg3[y/JwNZt^@3piPw:5pgJunZou3@rsJva&!Vy_g<v~Rm#JvG'!6Vz0=<r{Ju{%!:pj@WfsiXuJu3Rm:JvZ&!WfA~Bph@c4Z&Dtwax5rubx(#:awRk1@d,#Y&RfjRfid1#,Y(@Wfp2Wlrg5s@ryKu[@!,'=]ig9wlk?Rk>g5u-rqJvy'!@9RkQcH(T#=>Ri~@<wkj(Wj(KuZB*!&<7rw@9RkRcH(T#=>Ri}@<wkj)Wj)dg(Ta2Xa9X#`-!a*CARhg@@=I}d9x;c~#X%so=<sj>2@@=aybb}XjWv0Q~EfEj3vLv;<d,#Y(56H}`978H}_dgaPaFa'a/!#a3Y0a_a;a|!1(a7-[yE3[xt;:pJNvZrrg3uJrvJwNZt=@3pIh=rt3rxPw:5pGOu!5rpJvG'!6Vys=<rz@c4Z&Dt(ax5rtJvZ!&~BpH@wsfNg-vaRlNci*U#=<wei<F}a5@Jq.!a*JQ!%@qZ23d(#Y&RjH5]jCk!u7w&u0udARjFd/prq=tyvpaEa(a:.!a1aZ(@@=I}:9wpd%=<sX55w_h}@@=I{t=ay<aU@@=I}T=ay<2@@=I})?C9:9au@9Cb]}DP~=x-fAZ(2Wl1=ay<aU@@=I}>5@d##Y+jTv|vV~EfFj]uNpn~FRfGdgaK!Z2&!a8a-Tb({E!acTbM*!a(DtY[yYd'%Y#sl[y*hHvh>Re5x2c{Z}.j4uCvcawRiMd+#X+_x&d!},<5RkX;2Hzw@x,gavfB-!{CcF&T#Roe;RodwWbBg5urRgaKvHC*_6Vz+<4opieuew&Rmq@d]&Y)X,T#X0Rh}<BqP=4qS9:ReMg/ujReNJw0!/<Jui%!bd{kawwnemRelAxUa?a3#*.&UX(Ya+a/RhvRnQ<o}9Wmtd-#Y&RgSRmw9;Rmxay=Rmyg-vaRmuxEhSrNu,v-voC!%(aR.a(a7+1Ro1>Ro5CE{A9b]{@;5x#eO{:g;urRi+KrNA!%(Ro3>Ro79;Ri_Ku@>{;&!x%gX|{KunA_+g5QRj/g3u5Rj#g>uERj%wio/xRhS&!,!#^1U}wba{8>>@=be}qC@:D5ba{7Ku+A&!}x?ba}t>>@=be}se(aA^^^Uat!b0#{pa+awUazbGa#aLb9bgaWac'a5TbS=Br!d1#`%scp_Jvl!#rT>Re0JvX&!VyN=H{Fcm#U&:pY=ReaJv2&!]h0=]nUJvG'!6Vy|=<r%JrM_=]h2@Wlud'#)U'Wf'b]{i=]h/Jvh!&~BpWg=v]RnMx+ny#'Nu;pVwjnu=]nwxJnx,T#`&Reqwjnt=]nvieu9vrRjLLuYwP(#+!th@wih5pX~Gr'g5v/Rh4KunA'!-CARnP@wwiN:Rm_9x'cvw>!|l=<saKvAA!0&3@q}>w^e1bp#&Re2Re3BDx7gH#T|f5H|eKuZ>!%(:qNAH{]Jv6!+3B2B9=b^{X<5<B92:E{ZLvhwA(a;a%!igQuyRmad+#Y}m@3Rh5d8#X'X*:AqUAHzmaxwbh<aXRnVcF}RT#Nw&cj#U(BWnug/vsRntdka)(a3+.Zb7aYYan1!bVa@Xa}[y^@b[{G=H{+hFu73Rj&Pv#5ReQcK%T#sig1v{Rj'Ku+D#'!t]~Grm~?rkKuMB!01d5#`'Vy.ta3Dtu~Hroc8#'{^45s85AwZbP&!#Rn!wghxWn#KvEA!)&2RlA2RlBx:h|#(T,=]j09Wobz>x]z/@awRoTd+#Y(az]hFhCrm4d,#Y+jTv|Q~EfMj]uNr|~FRfOdCa!Xa9_X#@<plJvf!%b`{(9;Rgwc;.!#2x7cw#T|UDb]|T5Ju={(!=@E{&Jv)&!Ab`{'awJvf!~*>>@=be{#KuY>!+&4Ezyi[ugv&RjIdea+T)#UXa&T-T&a!Rh9auRmW=]kLg5vuRn+g3u4Rn-Ow6ARn,hHus5xNk?#UX(U~)/g8v0RkD~AwkkF?Ri.OuNBwkkA?Ri/d|a2`a*^UYa.!aBTZaTa'Xa;!(!2!-a#b2[yC>6Vyq3[xr2Wi?g1rusVh%s?DtF~<5rbJs;%!DtBfswKtCj[uvuSsEu3RgVx3o:u+wN'*Zt;@3rd~Grh~?rfg8w)Lq)qE&-a%!>bI|`jWv0vV~EfCjTv|vV~Ef@j]uNpn~FRfBcK#T']gWNu7x,k7q4ai(0!hHv8<RhmkMu9vrsBuev/RhlCJvB!,g<v{wchh~@:Rhji[vrv{wchi~@:RhkdS&a5UY#Ta!RgPwwiI5BwciI~@:Rh`x'iJvj'!5]iJPu8Bwch]~@:Rhach)U#h3rp]gLh@t|Ax,hTq3ah!-(~@:Ro0Ou!5RhXj^v(pyw8unRhVd|)`,^UYas!a?/a2Z'a^Ta{Tb7Ta(a#!a,Wf&9sZ3DtAadamov=Bqt3[xig8vsRm~>waiL2b`{QJv*_Ouv2qgj<v]v2BqfdR'X*X#Y-@3qr~Gqv~?p6hHv-]glPup5Lq+q?_%*b_{qF{n9b^{rOu4ARhpKvCD!+&~Bqp:5Dbb}nwoiKl&unuTuBv]v+ueunaXRf0=Jvh!0nKufu8v1w&w7q%w&uHrz:Rgnj5w,uxDJq/(!hNw'5ReCk0s2u3w/w'5ReFd>Za&!*UaA=<wkgsRnSJv^!%Refifw3vyRgOKu_B'!,<]gkiiu:w&Rh<=C@a^<B57@2F{[<B5@aW:=3away9A5aW=<B=C@a^<B57@2F{Ie-#`(^^^bCara.b8aza6!/bZ,!adTbnTbOb+aFaS!aAT9@Wf~2Wli3Dtl2@d,#Y&RfnRfmJwJZtN~GqyJva&!VyMg<v~Rm%iXuJu3Rm9Jv[_=]ih9wlkDRkCd1#`(@Wg>2Wls3cH#T(@<Rj*=>Ri|b~'#23s9h<~El.d'#Y&Dtxi^rzvdRl#d*#U%(o|B2s`hJwSaxRmDKv4B&!1:Rmdd5#`'Vx}to~Hq{x'f1v3(!BA5ba|bJv_&!Wfug1v]ReIdO+U/Y#&G}-8wze=Rh{g1v]ReHg/uQRf/by#)ibQwERl/cH#T(@<Rj+=>Ri{cNu+vlax-!(#a0qa9<Rii2;;bU{H;x<i=&X#Rk`<4wwi=C9H~8xAI(Y#<azRi@45wXI<B9;5bb~7dL(X#Xa(+!aL6Vy{g5QqOau:5au2@ay547EzbxOcU(UX-T#Ta#:Cbb|A?wjh/b_|SOw6ARgtihr}u7Rhy<d1#T)X1@@=I|~=ay<2@@=aybb}Sj3vLv;<d,#Y(56H}A978H}@dGpvs@uAu`vcw9*!aFa+ai%(b!aXa8.a?a[ozWey=sU2@G}Nch&U#Rf_WexKu+D#'!t:~Gr`~?r^j]uNr|~FRg*j^psurwJt|RmcKv)@&!)7Rkv~Br[@wxfO:Rl3co#U'6Rezj_q#vIuavjRltwzeyh@vr5JqD0!>aY?C9:9au@9Cb]}9cl#U*5;5<H||jbuus1ucv&Rfvg1v~d/pppzqFr^a--a~!aMat1(hFv;Wiz@@=Izoj5uuv-7Rix~Cw`fk2WlVcZ#X,k)u3vWs@u2]ktg;wEx'fBq(_2Wg/jTv|vV~EfoJv]!15x'hzqG!(P~EfU~CRl_j6v(us5x4i-#T(2WmZ?C2F|d>Kq<aj1!*jTqIsBv=Wl`~Cw`fi2WlWj`v0u*~>RlR=c>Z,k#u3vWs@u2]kr<c1Z+jTqIsBv=Wla~Cw`fm2WlXdmb3!a{(arZa`bkTa%TbQTa-a9+c'!aM!/[yL=Bqug.w'RifhFvyDRj.g>vgwyk^9]k^Jv3_@WfbAARkhJw2_[x|JvB_wkoIRoKwkoJRoLd'(Y#<]gm=<9<H|yd'%_X#skDtb3awwqkgNulRkgdB#^',9:p'hJwSaxRmEBwVb8@4=H|qLu+w50&!)@3qs~?pU>Awwn;;Rn=c:Z'ARn<=<qwKvC@!/&~BqqJv6!&]eVb^z^xRge'/a%+^`#Sge}6<4Rn3=]n0Pw2>Rn8Jw0!&>Rn:>Rn6cY#a7+!a&=<wkaNw~h3z_c5Z{=wjh#=]nLKv^D!&)Vyz=bW|swYb<WetcG#T(2wxa@qVx@gD#Y&b^|V5JwG&!5bb|pg/w&RgD@x=kHs=uAvn!a%%/'+RmSRh694Ro`g-vaRmRhHv-]mlxCcS#`&ba~.5cD#Ta)P~=d,#Y(56H{>978H{Dd_#{2^Y%_+qbbb{6g3sERhsbU{?dfa.,`a(Xa<!aiX#(55RiG54RiHcI#T'WiU3RiVNvdwtfcRlKNvdd,#Y&RlHRlExQgf.1*^T'X#Sgf}6Wn4=]hfPrk>Rn7Jw0!&>Rn5>Rn9Lunw?&a2!,5<oq@@wqfdRlJj5Q~=d,#Y(~ARfcOuN]fdDKw;ay(}i!547E}j?cI#T(@5bV}iCbV}hdv(^^Tb?a40,b##Tbo!a*bR!a<b|a/!aKai!aU[yK=]o^g:v>ReGJwPZtK<7Rh+h<~El,Pv#5ReR@awwxjCg,ulRjDJv6&!]j!z?aQeeg>w=Sh<eeJw;!&axEzOg,Qosc!#*:wkeJ]eJ>x'h-u(!%Ro.w~h.zPdNZ(X,Ya![x{;9ReY;wkgxRiF:x?ap#Y&RmUg<s2Rkod]+UY0TZ'!a&A9sw<=bczLNvuw{gqzNhJwSaxRmCKuLay!#&s_Rf-55b^{uJvZa!!c%#(55Ri654wmiu5RiuawLu,vp!+}^%b_}Y9;wkgxba}o>A9:=b^}zKuh=a''!3awRk3c*'!#aHRk6c+Z&Rk5Rk4Jv)&!awRjSawd9*`#0?C2@EzMj8u<uJ5RmbjQrquJu3x,k>uq@_+=ayb^|W~ARkEOuN]k@7dhzV^X/X&a-#zRzSb`zXcJzTT#2WkVKvDBzW!%FzY9;5bbzWjQrquJu3Jw3%!b`zU=ayb^zQd:#X(T-a!6Vyywxh}=b]{Jg=u1RiAdGp~qHtzv!w(wA+a+a;<!aJaYai'anasb(=azRmV:Cbb{MLq2vb!%')RjuRjrRjtRjqx3jnqCw3!%')Rk(Rk+Rk&Rk)Lq2vb!%')Rj{RjxRjzRjwLq2vb!%')RjsRjpRjfRjex3jcqCw3!%')Rk'Rk*RjkRjl9<CbbzfOu4ARhxLq2vb!%')RjyRjvRjhRjgx=joq*uKvb!%')+-Rk.Rk%Rj~Rk-Rk#Rj}x=jdq*uKvb!%')+-Rk,Rk!Rj|RjmRjjRjidAq&qKs@uAv8Aa.'*-a@a&0!aM@a5[y73Dsy3Ds|3Dt):wxgI2sHJwJZt.~Gqxwsf0ikrzt}Rl0Jvy_[xj~HqzKv_A|D!&WfP8axRoVcf,U#k(v]v+ueunaXRf1Ju}'!g8u#Ri=jQw!sCunLprq>!,')~<5qeGzq9F{W=c##%s5au:5aU3CBE|;d4#X(D!a&6Vygx(b;#(=]ed?C2F{N<capoq2r[a&!aPa9,'Pw;5s:@@=I|,55w_h|@@=IzcP~=x'fCqB_2Wl2>aU@@=I|1OuNBc1Z+jTqIsBv=Wlc~Cw`fl2WlZ~AcTa%!Z+jTqIsBv=Wlb~Cw`fh2WlYk+uNqJsBv=WlSg,u3dca3#UXaMYa)TaB-=cM|7T#<bI}l5@B932:aV2G{BOuNBJq:|M!5Ezt=<B=C@a^<B57@2F{v>cB{/T#=ay<bI{3Jv6!a.6BKq0ah&+!5E}HP~Ef{978BaU@@=Iza<7d#.Y#978BaU@@=IzH~AJq0!(@@=IzG978BaU@@=IzFe,aU*Y&^^^bvJb,b:bFad!a,c2Ta>aL.bo6!a#CbTa'T#Re{2Wlh2@G{yg6t~Ro_NvdRfticuRQRllJv3&!x&c|zs@Jw3!%RflwpfkRlpKuL;%(!Re<@G|C2GzdhIvuBwgjAg-u0RjAKQB%!(GzZ@G|5NuuRl7d='T+Y#Vy[g<v~Rm!==G|>JvA!)@wma=]m1ifuaw&RmnLs@vT'!|/+[y,g:v>ReTJw1!#qX=x!eC{bLu+wT&)ZtZauq_~Graci&U#F|89:r_Lupvq!.)&2RlG8RfaC=x!eF{_h?rpWlmd&'!#X|&]k::xJey#`'T|+<E|&2@H|%dE#(^,g;u.RiEg6vjRiC9xCkA{O|zY#g=ucRmXKs0@!&*@G|m@awRknJuh!,3d(}gY}eJvj!%Rm):Jw3!%Rm+Rm-Ls0w(&!a(a#@b[|6cZ#X'7RkxWgAOu4ARn'dH'U#Y*Vz-Wm'CARm}d]*#a%^a*T'aK!a<9bV{PC=p*Jw4!&SgxcbB5r]idw(wBRmF7xFkt#&`(Rm/Rm8E|!JuY_9:Rl5=wrgr2:bbxd@xXfB(a*#T+!.X0X1Ta/a'T&RlDRfL>RlyARl9b[z[>RfZ:RlL:RfRwlg/ARl;9;RlxKv,A/!%7s69<74=BA5ba{-8Bde#`a<XaKYa1,a'P~=wxfB2bZ}}?C972@@=I}r8@55B9;5bb}G978B2@@=aybb}3j3vLv;<Jw3&!>Rfk=ayb^}4~Ad1#`*@@=aybb{w2@>==<bbz]dx+UY#^UaF!a9!bB'Ya1.!ajXa#%olRhD[y=3Dt#Ov5BrHKuMB%!(Rf^Wep~HrJwkiQjKr|~FRg)Ku+D#'!t5~GrF~?rDdV)UY,Z/_7RkuG{<~BrBg,rlsO:235B@bX}|d?a1!#`(6Vyn5@d##Y+jTv|vV~EfIj]uNpn~FRfH7Lq2vb1!a9-978BaU@@=Iz9978BbU}#~AJq0!(@@=Iz8978BaU@@=Iz7~AJQ|}!978BbU}!JvkaK!AdUa21-U#`a+(g/vsRn~Ou!5RPj:rmu9WhOjXuvvNr}:RhAj^v(pyw8unRn[kPr}p|u7vwv]RiSBd;pppzq@qHQa?(b.!a.a`@.|xa(hFv;Wiyj5uuv-7Riw~Cw`fg2WlU978BbU|wOuNBJqG!(P~EfD~CRlQcZ#X,k)u3vWs@u2]ksg;wEx'f@q1_2Wg.j]uNpn~FRfqJv]!15x'h{qG!(@@=IzK~CRl^j6v(us5x4i,#T(2WmY?C2F{1>Kq<aj1!*jTqIsBv=Wld~Cw`fj2Wl[j`v0u*~>RlT=c>Z,k#u3vWs@u2]kq<c1Z+jTqIsBv=Wle~Cw`fn2Wl]dn1#c(a(b^a2!b/bAT(bj!aDa7bu,a_a{c0!2T0g:v>ReD2@G{42@G{5~DpM~<5rc=Bx6i>{RT#RnI@zCx]y]z:2Jv[!zr5Awyk]9]k]dD(Y+X#6Vz.g=wKtgwhaCwgmTWj2Lu,w%_+/[y-B;b^xeg3u3Rj-2@bX{*KrJ<!+'@Wg(g?QRlC@Jv`!%b[zIwsfII}8JQ_@w|kW|=Jv(%!AqcOuNBJvEzh!bYzjLs@wP#(0!oy@>RkdJwMZtc3Dtd@BcG#T'9bWxg2@2Fznd*#Y+;2x'c}w<zizixNgwa#Z'U+!/!a'!a+w~g~z6wcn{Rn}wcnzRn|5Rh%=]nJg5vuRmvNvdRlvcprJu}w*az*a#!%.a.'Bot9qT]kj@Wg'ay2Gzv@Jv`!%b[zEwsfHI}1;ck#Ux`<Cbbx_Lu+w!a&0*!wko*wwo,So,}6Juqxf!E}PigQuyRm`d3(`#8>Rn%:A5B;bZ~%KvhCa!a2!x>k7#Uxb@b{#xaRk7Jw0!)>wwhlShl}6>wwhmShm}6CJvB!.x'hhvj{!!5Bwkhhbaz}x'hivjz~!5Bwkhibaz|xEhTrNu,v-vpD!a%&/)a3a.,%Ro2t[CE{)@3re9b]{%wjo09:rgc:Z&Ro6=<riifuaw&RmoKrNA!%(Ro4>Ro89;Ri`dSaL'UYzxZb)7Rka3xRhT&!,!#^1U}vbaz{>>@=be}yC@:D5bazzKu+A&!}{?ba}y>>@=be}wxBh[t`u~vJvr!%a!a()a,a0a4RoC=]o;Ju(!%RoGRhdwjh`=]oAg>w#Ro?g5vuRo=NvdRl|Ku]C.!&;RoEJvB!%RoORoMBx'h[v+_?w~h`}~5?w~hd~!xKh]oiptu-utv.vp!#%&a30a@a'a+(a/aOp(o~p!RoDJu(!%RoHRhewjha=]oBNvdRl}g>w#Ro@g5vuRo>c[#X']o<CauRoRAd-#Y':RkpauRoQKu]C.!&;RoFJvB!%RoNRoPBx'h]v+_?w~ha}t5?w~he}ue!/UbhYacXaW^Tc&a;b:a-c/#b&aja1(!cL+!bKbt!bmcRc9aIc?8[yW3Dtt94Rg`Jv}!&SiRMzBhEebShEMNuPRe>x7gL#TzuwjirRipc<Z&>on;>z=h-MSh.Mwqczx'a7vj&!>Re4@=ResJt__NuPRi*NuPRi)j]uNr|~FRfzKrJ>_+@Wfy@Wf]2WocKrJ<!+'@Wg%g/QRl@@Jv`!&awRl<wsfFIzgLu(w*!.*&ShBMwvhIRhI9;RhNx1hK'!#Sn]Mx1hK~0!#:2<H~7cNu+w7D*'1ZtW>Rn1~?rOc:Z&Rn2=<rQ<7wjh&=BSnLMc]#X(6Vz)w[b=a!U#9wzgMc3#&(RgMRitRis<x,gKt`ax!&+SioM=BSilMc3#&(RgKRinRimKurB,!&SiQMzBhDebShDM6BJQ!(P~Efx978B2@@=I}WLrJw!!,a*&@G}O@9wkibRid@@x'fKwC!&SlDMSfLMjUv~Q~EfKKv3@a+!(hFv-]mpx/hYZ(C5RiWz<o/MwkhY?So/M@x,gbvfB*&!SgEM:SoeeehFu3:Rgbda(,^TZa)X/7Sg[eb:2RgI~BrMC@wgkc:wwkcRerx3h(uUvK!&*,SnOM4Sh*MArRg;wHRh(x=h;rJvPwI!a4',a'0@Wg&=BSh/Mg>w=Rh=g3w*wwgGRgGcW(X#;Sg}M2Gzk@Jv`!&awRl=wsfGIz`dKZ*T'Y-:RhR7RhQg5u-p`j6v(us5d,#Y+~Awkia?RicOuNBwkibba}Ld6p~tyu_vbAa'a+!a/'a3aEa8a!>Sh,ebJv{!&Sh@ebSaReb9;SgwebNuPRi(NvdRl)NuPRi'hHu^<Rm^Jvv_@Wl(g;u1Si/ebKu'B&!*Sh?eb@Wl'z@aPeb95Si.ebcpputyvjB)!,&a+0a%ShAMWeK@G}C@WfJ9;RhMwvhH9w{ia}ix,hJvRA1(!zAn[MRhHx1hJ~*!#hFv(BSn[MBJQ!(@@=I~'978B2@@=I}2db.Ua<'X}+T#a0XaG2G}E;wkg|wuh!Rh!x,hZu,@)!&So0MVy)C5RiXACJvB!&5RiY5RiZg8w)cG}*T#2@bU}=KsA>(!a.3wkhZba~(x,h^u(A!&(SoCMRhb5Bz=h[eb?w~hb~6x,h_u(A!&(SoDMRhc5Bz=h]eb?w~hc~6e)aA1T#T,^^^c-bMb&blcPaP(a/!0!bA=b5c@a(!bfbrc#2afwmhARnjwchORnp2Wlf3DtsNvdRl-2@wpa<]m0bx(#:awRk2@Jw3!%RfhwpfgRlnKQB%!(G{V@G|'NuuRl6d='T+Y#VyUg<v~Rl~==G|<Jv+'!aYShC}6@B<5?ba~8@Jw3'!g2QRljhLrpWlOd+#Y'g.w'rIg>w*wgj@g-u0Rj@Lu+wT&)ZtUauq]~GrGci&U#F|39:rELrNvj!.%*RhCwunfw~nf~:9;Ri]>wtnhg;wHRnhx3hDs@v~!/+'@Wfr@9RkSNu&Rlo=@<5GzoKs0@_+@Wl+@awRkmJuh!-3d(}pY#qWJvj!%Rm(:Jw3!%Rm,Rm*de&!1U-U#`)Re;@G|.@9Ri82@wjfvRlq=@<5GzpLvOvr!).&2RlF8Rf`C=x!eE{.Jw3_g2QRlkhLrpWlPde(!#U{s,UXa*Ta'[y'g:v>ReS;x0PZ&RnlRnn~HrKJw1}f!=x!eB|2w]aP(#Xa&a*Ta.Ua2a7=]iOd'#Y&Ro&WnWg;u.RiDg6vjRiBNvdRlzhNvj]nYJuW_2Wm3x)kFze{9d])!a.!,Y01!#&aC!a3RndC=ox~BrC@2b^{pg,rlse7x'ksuq!%Rm.E{xidw(wBRmGx9o+)X#wwo-So-}69:Rl4@xSf@a#XZ'X)X,Ta(/ARl8b[xc>RfY:RlI:RfQwlg.ARl:9;Rlwdn'#^XafaQa1X1TaHTa)@b[{zcZ#X'7RkwWg@Ou4ARn&x)kG#{,g7u/RkGdH'U#Y*Vz'Wm&CARm|bx#(A]gUbUzJj9Q~=d,#Y(56H}l978H{U7d,0#U*2>ABb_xZ978BbU{e~AJQ{g!978BbU{hxMh?ad{oUYZ.x1h?{l!#:2<H{mx3n[t{vl!,&a%3Ro(z=iS}6ARnr=Bwsn^wvn`Rnbd`*T}B0!#^X'BG{c9b]{a>>@=be}F?JvS!&BG{d7BG}(Bde#`a1X,Ya@!a'P~=wxf@2bZ}I56B2@@=aybb}08@55B9;5bb}<j3vLv;<Jw3&!>Rfg=ayb^}&OuNBKuLA!)a!P~=x#fD{f2@>==<bbzl?C972@@=Ix^d6rSu,v7w*C(0a)a6#B+a%!sQ[y?3Dt%3[xn~<5rLOu!5p@Ku+D#'!t7~GrP~?rNKvlaya7'!h+v-5qMg=t|cd,U#5AAaa5Abb{S@52B5@a[@52B5Gx[iXueu;d<#`a(!/549C;ag>23ExY5@Dah89b^~689Jv)!~2b[~1Lv'w(%*!a#bX|aPrmawRe]keu7uhv-q6rxu,q`xTo]/a5aU!bNaDXbi!b-!ao!b<bwA!#5@B932:aV2G|:d-)Y#hJrL>RhG<7@C5<H|_=Cau:5aj5@B932:bJ|ng>vIbs)#?C2F|9jPv0w.vISh-MKvUaz(.!9ABbb|[5;5<H|Eg>unwfh;9:4E|YjQsBt|vjx'hYq3!(?C2F|J:2<BaY?C2F|GOu!5x,g|p{ah!-(?C2F|c9:4E|OjXuvvNr}:Rh&i[w*t|cd+U#jJvsu)vsSn~Mkfrmu9p}u7vwv]So!McW#Xa!ax5@A5aY:5;5<H|>kJv~vYrquJu3x4ib#T)2@SmZM?C2F|Bj:rmu9@xPhI(a*a#U#`a3-5Abb|L~@:RhK9:4E|0@52B5G|#C::aY?C2F|-:2<BaY?C2F|.5Jvk!a)javYrquJu3x4ia#T)2@SmYM?C2F|HAxPhH(!a#U#`a*-5Abb|4~@:RhJ9:4E|R@52B5G|F:2<BaY?C2F|Sc^#Xa2j=Qq5CJvB!-g<v{z;hhM?C2F|Zi[vrv{z;hiM?C2F|XKsA>!a)-g<v{z;h[eb?C2F|]i[vrv{z;h]eb?C2F|^iZu.vix,hZq3ah!.(?C2F|QOu!5ShXM:2<BaY?C2F|P",13494,2713,49,25,61);var te;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.FLAG13=8192]="FLAG13",e[e.BRANCH_LENGTH=8064]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE",e[e.VALUE_MASK=8191]="VALUE_MASK"})(te||(te={}));var oe;(function(e){e[e.AMP=38]="AMP",e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_X=120]="LOWER_X"})(oe||(oe={}));var Mt=32,Qr=21,dl=2097151,On=2047,ei=0;function fl(e){let t=e>>>Qr;return t===On?ei:t}function ti(e){return e-oe.ZERO>>>0<=9}function gl(e){return(e|Mt)-oe.LOWER_A>>>0<=5}function ni(e){return(e|Mt)-oe.LOWER_A>>>0<=25}function pl(e){return e===oe.EQUALS||ni(e)||ti(e)}var Xr;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Xr||(Xr={}));var Ln;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ln||(Ln={}));function hl(e,t,n,r){let i=(t&te.BRANCH_LENGTH)>>7,o=t&te.JUMP_TABLE;if(o){if(i===0)return r===o?n:-1;let c=r-o;if(c>>>0>=i)return-1;let l=e[n+c];return l===0?-1:n+i+l-1&65535}if(i===0)return-1;let a=i+1>>1,s=n+a+i;for(let c=0;c<i;c++){let u=e[n+(c>>1)]>>((c&1)<<3)&255;if(u===r){let d=n+a+c;return s+e[d]&65535}if(u>r)return-1}return-1}function Vr(e,t,n){return n===1?String.fromCharCode(e[t]&te.VALUE_MASK):n===2?String.fromCharCode(e[t+1]):String.fromCharCode(e[t+1],e[t+2])}function ml(e,t,n){let r=t+1,i=0,o=r;if(r<n&&(e.charCodeAt(r)|Mt)===oe.LOWER_X)for(r+=1,o=r;r<n;){let s=e.charCodeAt(r);if(ti(s))i=i*16+(s-oe.ZERO);else if(gl(s))i=i*16+((s|Mt)-oe.LOWER_A+10);else break;r+=1}else for(;r<n;){let s=e.charCodeAt(r)-oe.ZERO;if(s>>>0>9)break;i=i*10+s,r+=1}if(r===o)return 0;r<n&&e.charCodeAt(r)===oe.SEMI&&(r+=1),i>1114111&&(i=1114112);let a=r-t;return a>=On&&(ei=a,a=On),a<<Qr|i}function bl(e,t,n){let r=jr,i=e.indexOf("&");if(i<0)return e;let o=e.length,a=0,s="",c=r[0],l=c&te.JUMP_TABLE,u=(c&te.BRANCH_LENGTH)>>7;do{let d=i+1,p=e.charCodeAt(d),f,g;if(p===oe.NUM){let h=ml(e,d,o);f=fl(h),t&&f>0&&e.charCodeAt(d+f-1)!==oe.SEMI&&(f=0),g=f===0?"":Jr(h&dl)}else if(ni(p)){f=0,g="";let h=p-l,m;if(h>>>0<u){let v=r[1+h];m=v===0?-1:u+v&65535}else m=-1;let E=0,_=0,k=m<0?0:r[m],x=d+1;e:for(;x<o;){for(;(k&(te.VALUE_LENGTH|te.FLAG13))===0&&(k&te.JUMP_TABLE)!==0;){let A=k&te.JUMP_TABLE,b=(k&te.BRANCH_LENGTH)>>7;if(b===0){if(e.charCodeAt(x)!==A)break e;m+=1}else{let S=e.charCodeAt(x)-A;if(S>>>0>=b)break e;let T=r[m+1+S];if(T===0)break e;m=m+b+T&65535}if(k=r[m],x+=1,x>=o)break e}if((k&(te.VALUE_LENGTH|te.FLAG13))===te.FLAG13){let A=(k&te.BRANCH_LENGTH)>>7;if(e.charCodeAt(x)!==(k&te.JUMP_TABLE))break;x+=1;let b=A-1,S=m+1,T=0;for(;T+1<b;T+=2){let M=r[S];if(e.charCodeAt(x)!==(M&255)||(x+=1,e.charCodeAt(x)!==(M>>8&255)))break e;x+=1,S+=1}if(T<b){if(e.charCodeAt(x)!==(r[S]&255))break;x+=1}m+=1+(A>>1),k=r[m];continue}let v=k>>>14,w=e.charCodeAt(x);if(v!==0){if(w===oe.SEMI){f=x-d+1,g=v===1?String.fromCharCode(k&te.VALUE_MASK):Vr(r,m,v);break}if(!t&&(k&te.FLAG13)===0&&(f=x-d,E=m,_=v),v===1)break}let R=hl(r,k,m+(v||1),w);if(R<0)break;m=R,k=r[m],x+=1}if(g===""){let v=k>>>14;v!==0&&!t&&(k&te.FLAG13)===0&&(f=x-d,E=m,_=v),f>0&&(g=Vr(r,E,_))}}else f=0,g="";f===0||n&&p!==oe.NUM&&e.charCodeAt(d+f-1)!==oe.SEMI&&d+f<o&&pl(e.charCodeAt(d+f))?i=d:(a<i&&(s+=e.slice(a,i)),s+=g,i=a=d+f),e.charCodeAt(i)!==oe.AMP&&(i=e.indexOf("&",i))}while(i>=0);return s+e.slice(a)}function It(e){return bl(e,!0,!1)}var ri;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(ri||(ri={}));var ii;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(ii||(ii={}));var El=class{src_Any=Nn.source;src_Cc=Sn.source;src_Z=Mn.source;src_P=nt.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join("|");src_ZCc=[this.src_Z,this.src_Cc].join("|");cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(e={}){this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,t,n=4){let r=this.escapeRE(e),i=this.escapeRE(t),o=`(?:(?!${this.src_ZCc}|${r}|${i}).)`,a=`${r}${o}{0,1000}${i}`;for(let s=2;s<=n;s++)a=`${r}(?:${o}|${a}){0,1000}${i}`;return a}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])")}get_ipv6_addr(){let e="[0-9A-Fa-f]{1,4}",t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=new RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?")}get_host_terminator(){return this.cache.src_host_terminator??=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=new RegExp("xn--[a-z0-9\\-]{1,59}")}get_tld(){if(this.cache.tld)return this.cache.tld;let e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=new RegExp("")}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig")}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uFF5C]|${this.src_ZPCc}))(?:(?![$+<=>^\`|\uFF5C])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig")}get_http_validator(){return this.cache.http_validator??=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy")}get_relative_proto_validator(){return this.cache.relative_proto_validator??=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy")}get_mail_name_validator(){return this.cache.mail_name_validator??=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy")}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(e=>this.escapeRE(e)).join("|"))}get_schema_search(){return this.cache.schema_search??=new RegExp(`(^|(?!_)(?:[><\uFF5C]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig")}get_schema_at_start(){return this.cache.schema_at_start??=new RegExp(`^${this.get_schema_search().source}`,"i")}},Fn={validate:(e,t,n)=>{let r=n.re.get_http_validator();r.lastIndex=t;let i=r.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)},wl={"http:":Fn,"https:":Fn,"ftp:":Fn,"//":{validate:function(e,t,n){let r=n.re.get_relative_proto_validator();r.lastIndex=t;let i=r.exec(e);return i?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:i[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){let r=n.re.get_mailto_validator();r.lastIndex=t;let i=r.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)}},kl="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",xl="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444";function yl(){let e=xl.split("|");return kl.split("|").forEach(t=>{let n=t.indexOf(":"),r=t.slice(0,n);for(let i of t.slice(n+1))e.push(r+i)}),e}var vl={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:yl(),urlAuth:!1,maxLength:1e4},oi=class{schema;index;lastIndex;raw;text;url;constructor(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}},si=class{__opts__;__schemas__;re;constructor(e={}){let{rebuilder:t,...n}=e;this.__opts__={...vl,...n},this.__schemas__={...wl},this.re=t||new El,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{let n={normalize:(r,i)=>i.normalize(r),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){let r=this.re.get_fuzzy_mail_host_search(),i=this.re.get_mail_name_validator();for(r.lastIndex=0;(t=r.exec(e))!==null;){let o=e.slice(Math.max(0,t.index-65),t.index);if(i.test(o))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){let t=[],n=this.re.get_schema_search(),r,i,o,a,s,c,l=!1,u=!1,d=!1,p=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(r=this.re.get_fuzzy_link_search(),r.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(i=this.re.get_fuzzy_mail_host_search(),i.lastIndex=0,o=this.re.get_mail_name_validator());;){let f=Math.max(p-1,0);if(i&&o&&!d&&(!s||s.index<p))for(i.lastIndex<f&&(i.lastIndex=f);;){let _=i.exec(e);if(!_){d=!0,s=void 0;break}let k=o.exec(e.slice(Math.max(0,_.index-65),_.index));if(k){if(s={schema:"mailto:",index:_.index-k[1].length,lastIndex:_.index+_[0].length},s.index>=p)break;i.lastIndex<f&&(i.lastIndex=f)}}if(r&&!u&&(!a||a.index<p))for(r.lastIndex<f&&(r.lastIndex=f);;){let _=r.exec(e);if(!_){u=!0,a=void 0;break}if(a={schema:"",index:_.index+_[1].length,lastIndex:_.index+_[0].length},a.index>=p)break;r.lastIndex<f&&(r.lastIndex=f)}let g=s;(!g||a&&(a.index<g.index||a.index===g.index&&a.lastIndex>g.lastIndex))&&(g=a);let h;if(!l)for(;;){if(!c){n.lastIndex<f&&(n.lastIndex=f);let x=n.exec(e);if(!x){l=!0;break}c={schema:x[2],index:x.index+x[1].length,lastIndex:x.index+x[0].length}}if(c.index<p){c=void 0;continue}if(g&&c.index>g.index)break;let _=c;c=void 0;let k=this.testSchemaAt(e,_.schema,_.lastIndex);if(k){h={schema:_.schema,index:_.index,lastIndex:_.lastIndex+k};break}}let m=h;if((!m||s&&(s.index<m.index||s.index===m.index&&s.lastIndex>m.lastIndex))&&(m=s),(!m||a&&(a.index<m.index||a.index===m.index&&a.lastIndex>m.lastIndex))&&(m=a),!m)break;m===s?s=void 0:m===a&&(a=void 0);let E=new oi(e,m.schema,m.index,m.lastIndex);E.schema?this.__schemas__[E.schema].normalize(E,this):this.normalize(E),t.push(E),p=m.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;let t=this.re.get_schema_at_start().exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new oi(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[r.schema].normalize(r,this),r}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}};var Hn=yn(pi(),1);var hi=Object.defineProperty,Ci=(e,t)=>{let n={};for(var r in e)hi(n,r,{get:e[r],enumerable:!0});return t||hi(n,Symbol.toStringTag,{value:"Module"}),n},Ll=Ci({arrayReplaceAt:()=>Fl,asciiTrim:()=>Pt,callable:()=>Ti,escapeHtml:()=>Te,escapeRE:()=>Kl,fromCodePoint:()=>it,isMdAsciiPunct:()=>at,isPunctChar:()=>Si,isPunctCharCode:()=>st,isSpace:()=>ee,isValidEntityCode:()=>Gn,isWhiteSpace:()=>ot,lib:()=>Zl,normalizeReference:()=>Bt,unescapeAll:()=>qe,unescapeMd:()=>Ul});function Ti(e){let t=function(...n){return Reflect.construct(e,n,new.target&&new.target!==t?new.target:e)};return Object.defineProperty(t,"name",{value:e.name}),Object.setPrototypeOf(t,e),t.prototype=e.prototype,t}function Fl(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Gn(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function it(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var Ni=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Bl=new RegExp(`${Ni.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),Pl=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function $l(e,t){if(t.charCodeAt(0)===35&&Pl.test(t)){let r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Gn(r)?it(r):e}let n=It(e);return n!==e?n:e}function Ul(e){return e.indexOf("\\")<0?e:e.replace(Ni,"$1")}function qe(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Bl,function(t,n,r){return n||$l(t,r)})}var zl=/[&<>"]/,ql=/[&<>"]/g,Wl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Hl(e){return Wl[e]}function Te(e){return zl.test(e)?e.replace(ql,Hl):e}var Gl=/[.?*+^$[\]\\(){}|-]/g;function Kl(e){return e.replace(Gl,"\\$&")}function ee(e){switch(e){case 9:case 32:return!0}return!1}function ot(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Si(e){return nt.test(e)||Dn.test(e)}function st(e){return Si(it(e))}function at(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Bt(e){return e=e.trim().replace(/\s+/g," "),e.toLowerCase().toUpperCase()}function mi(e){return e===32||e===9||e===10||e===13}function Pt(e){let t=0;for(;t<e.length&&mi(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&mi(e.charCodeAt(n));n--);return e.slice(t,n+1)}var Zl={mdurl:Tn,ucmicro:In};function Jl(e,t,n){let r,i,o,a,s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)r++;else if(n)return e.pos=c,-1}}let l=-1;return i&&(l=e.pos),e.pos=c,l}function Yl(e,t,n){let r,i=t,o={ok:!1,pos:0,str:""};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return o;if(r===62)return o.pos=i+1,o.str=qe(e.slice(t+1,i)),o.ok=!0,o;if(r===92&&i+1<n){i+=2;continue}i++}return o}let a=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32){i++;continue}i+=2;continue}if(r===40&&(a++,a>32))return o;if(r===41){if(a===0)break;a--}i++}return t===i||a!==0||(o.str=qe(e.slice(t,i)),o.pos=i,o.ok=!0),o}function jl(e,t,n,r){let i,o=t,a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(o>=n)return a;let s=e.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;t++,o++,s===40&&(s=41),a.marker=s}for(;o<n;){if(i=e.charCodeAt(o),i===a.marker)return a.pos=o+1,a.str+=qe(e.slice(t,o)),a.ok=!0,a;if(i===40&&a.marker===41)return a;i===92&&o+1<n&&o++,o++}return a.can_continue=!0,a.str+=qe(e.slice(t,o)),a}var Xl=Ci({parseLinkDestination:()=>Yl,parseLinkLabel:()=>Jl,parseLinkTitle:()=>jl});function ct(e){"@babel/helpers - typeof";return ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ct(e)}function Vl(e,t){if(ct(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ct(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ql(e){var t=Vl(e,"string");return ct(t)=="symbol"?t:t+""}function F(e,t,n){return(t=Ql(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ie=class{constructor(e,t,n){F(this,"map",null),F(this,"level",0),F(this,"children",null),F(this,"content",""),F(this,"markup",""),F(this,"info",""),F(this,"block",!1),F(this,"hidden",!1),this.type=e,this.tag=t,this.attrs=null,this.nesting=n,this.meta=null}attrIndex(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1}attrPush(e){this.attrs?this.attrs.push(e):this.attrs=[e]}attrSet(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r}attrGet(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},lt=class{constructor(){F(this,"__rules__",[]),F(this,"__cache__",null)}__find__(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1}__compile__(){let e=new Set;this.__rules__.forEach(t=>{t.enabled&&t.alt.forEach(n=>{n&&e.add(n)})}),this.__cache__=Object.create(null),this.__cache__[""]=[],this.__rules__.forEach(t=>{t.enabled&&this.__cache__[""].push(t.fn)}),e.forEach(t=>{this.__cache__[t]=[],this.__rules__.forEach(n=>{n.enabled&&n.alt.indexOf(t)>=0&&this.__cache__[t].push(n.fn)})})}at(e,t,n={}){let r=this.__find__(e);if(r===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__[r].fn=t,this.__rules__[r].alt=n.alt||[],this.__cache__=null}before(e,t,n,r={}){let i=this.__find__(e);if(i===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null}after(e,t,n,r={}){let i=this.__find__(e);if(i===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null}push(e,t,n={}){this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null}enable(e,t=!1){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(r=>{let i=this.__find__(r);if(i<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${r}`)}this.__rules__[i].enabled=!0,n.push(r)}),this.__cache__=null,n}enableOnly(e,t=!1){Array.isArray(e)||(e=[e]),this.__rules__.forEach(n=>{n.enabled=!1}),this.enable(e,t)}disable(e,t=!1){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(r=>{let i=this.__find__(r);if(i<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${r}`)}this.__rules__[i].enabled=!1,n.push(r)}),this.__cache__=null,n}getRules(e){return this.__cache__||this.__compile__(),this.__cache__[e]||[]}},be={};be.code_inline=function(e,t,n,r,i){let o=e[t];return`<code${i.renderAttrs(o)}>${Te(o.content)}</code>`};be.code_block=function(e,t,n,r,i){let o=e[t];return`<pre${i.renderAttrs(o)}><code>${Te(e[t].content)}</code></pre>
14
+ `};be.fence=function(e,t,n,r,i){let o=e[t],a=o.info?qe(o.info).trim():"",s="",c="";if(a){let u=a.split(/(\s+)/g);s=u[0],c=u.slice(2).join("")}let l;if(n.highlight?l=n.highlight(o.content,s,c)||Te(o.content):l=Te(o.content),l.indexOf("<pre")===0)return l+`
15
15
  `;if(a){let u=o.attrIndex("class"),d=o.attrs?o.attrs.slice():[];u<0?d.push(["class",`${n.langPrefix}${s}`]):(d[u]=[d[u][0],d[u][1]],d[u][1]+=` ${n.langPrefix}${s}`);let p={attrs:d};return`<pre><code${i.renderAttrs(p)}>${l}</code></pre>
16
16
  `}return`<pre><code${i.renderAttrs(o)}>${l}</code></pre>
17
17
  `};be.image=function(e,t,n,r,i){let o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)};be.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
@@ -19,27 +19,29 @@ ${p}
19
19
  `};be.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
20
20
  `:`<br>
21
21
  `:`
22
- `};be.text=function(e,t){return Te(e[t].content)};be.html_block=function(e,t){return e[t].content};be.html_inline=function(e,t){return e[t].content};var Ai=class{constructor(){F(this,"rules",Object.assign({},be))}renderAttrs(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=` ${Te(e.attrs[t][0])}="${Te(String(e.attrs[t][1]))}"`;return r}renderToken(e,t,n){let r=e[t],i="";if(r.hidden)return"";let o=t-1;for(;o>=0&&e[o].hidden&&e[o].nesting===0;)o--;r.block&&r.nesting!==-1&&o>=0&&e[o].hidden&&e[o].nesting===-1&&(i+=`
22
+ `};be.text=function(e,t){return Te(e[t].content)};be.html_block=function(e,t){return e[t].content};be.html_inline=function(e,t){return e[t].content};var Di=class{constructor(){F(this,"rules",Object.assign({},be))}renderAttrs(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=` ${Te(e.attrs[t][0])}="${Te(String(e.attrs[t][1]))}"`;return r}renderToken(e,t,n){let r=e[t],i="";if(r.hidden)return"";let o=t-1;for(;o>=0&&e[o].hidden&&e[o].nesting===0;)o--;r.block&&r.nesting!==-1&&o>=0&&e[o].hidden&&e[o].nesting===-1&&(i+=`
23
23
  `),i+=(r.nesting===-1?"</":"<")+r.tag,i+=this.renderAttrs(r),r.nesting===0&&n.xhtmlOut&&(i+=" /");let a=!1;if(r.block&&(a=!0,r.nesting===1)){let s=t+1;for(;s<e.length&&e[s].hidden&&e[s].nesting===0;)s++;if(s<e.length){let c=e[s];(c.type==="inline"||c.hidden||c.nesting===-1&&c.tag===r.tag)&&(a=!1)}}return i+=a?`>
24
24
  `:">",i}renderInline(e,t,n){let r="",i=this.rules;for(let o=0,a=e.length;o<a;o++){let s=e[o].type;typeof i[s]<"u"?r+=i[s](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r}renderInlineAsText(e,t,n){let r="";for(let i=0,o=e.length;i<o;i++)switch(e[i].type){case"text":case"code_inline":r+=e[i].content;break;case"image":r+=this.renderInlineAsText(e[i].children,t,n);break;case"html_inline":case"html_block":r+=e[i].content;break;case"softbreak":case"hardbreak":r+=`
25
- `}return r}render(e,t,n){let r="",i=this.rules;for(let o=0,a=e.length;o<a;o++){let s=e[o].type;s==="inline"?r+=this.renderInline(e[o].children,t,n):typeof i[s]<"u"?r+=i[s](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r}},Ci=class{constructor(e,t,n){F(this,"tokens",[]),F(this,"inlineMode",!1),F(this,"Token",Ie),this.src=e,this.env=n,this.md=t}},Zl=/\r\n?/g,Jl=/\0/g;function Yl(e){let t;t=e.src.replace(Zl,`
26
- `),t=t.replace(Jl,"\uFFFD"),e.src=t}function jl(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Xl(e){let t=e.tokens,n=0;for(let r=0;r<t.length;r++)t[r].type!=="reference_definition"&&(r!==n&&(t[n]=t[r]),n++);t.length!==n&&(t.length=n)}function Vl(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let i=t[n];i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}function Ql(e){return/^<a[>\s]/i.test(e)}function eu(e){return/^<\/a\s*>/i.test(e)}function tu(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.test(t[n].content))continue;let i=t[n].children,o=[],a=0;for(let s=i.length-1;s>=0;s--){let c=i[s];if(c.type==="link_close"){for(s--;i[s].level!==c.level&&i[s].type!=="link_open";)s--;continue}if(c.type==="html_inline"&&(Ql(c.content)&&a>0&&a--,eu(c.content)&&a++),!(a>0)&&c.type==="text"&&e.md.linkify.test(c.content)){let l=c.content,u=e.md.linkify.match(l),d=[],p=c.level,f=0;u.length>0&&u[0].index===0&&s>0&&i[s-1].type==="text_special"&&(u=u.slice(1));for(let g=0;g<u.length;g++){let h=u[g].url,m=e.md.normalizeLink(h);if(!e.md.validateLink(m))continue;let b=u[g].text;u[g].schema?u[g].schema==="mailto:"&&!/^mailto:/i.test(b)?b=e.md.normalizeLinkText(`mailto:${b}`).replace(/^mailto:/,""):b=e.md.normalizeLinkText(b):b=e.md.normalizeLinkText(`http://${b}`).replace(/^http:\/\//,"");let _=u[g].index;if(_>f){let E=new e.Token("text","",0);E.content=l.slice(f,_),E.level=p,d.push(E)}let x=new e.Token("link_open","a",1);x.attrs=[["href",m]],x.level=p++,x.markup="linkify",x.info="auto",d.push(x);let k=new e.Token("text","",0);k.content=b,k.level=p,d.push(k);let R=new e.Token("link_close","a",-1);R.level=--p,R.markup="linkify",R.info="auto",d.push(R),f=u[g].lastIndex}if(f<l.length){let g=new e.Token("text","",0);g.content=l.slice(f),g.level=p,d.push(g)}o.push({index:s,nodes:d})}}if(o.length>0){let s=i.length;for(let d of o)s+=d.nodes.length-1;let c=new Array(s),l=0,u=0;o.reverse();for(let d=0;d<i.length;d++){let p=o[l];if(p?.index===d){for(let f of p.nodes)c[u++]=f;l++}else c[u++]=i[d]}t[n].children=c}}}var Ti=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,nu=/\((c|tm|r)\)/i,ru=/\((c|tm|r)\)/gi,iu={c:"\xA9",r:"\xAE",tm:"\u2122"};function ou(e,t){return iu[t.toLowerCase()]}function su(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(ru,ou)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function au(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type==="text"&&!t&&Ti.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function cu(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(nu.test(e.tokens[t].content)&&su(e.tokens[t].children),Ti.test(e.tokens[t].content)&&au(e.tokens[t].children))}var lu=/['"]/,fi=/['"]/g,gi="\u2019",uu=1e3;function pi(e,t,n){for(;e.length>n;){let r=e.pop();r.isSingleQuote?t.single=r.prevSameQuoteIdx:t.double=r.prevSameQuoteIdx}}function It(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function du(e,t){let n="",r=0;t.sort((i,o)=>i.pos-o.pos);for(let i=0;i<t.length;i++){let o=t[i];n+=e.slice(r,o.pos)+o.ch,r=o.pos+1}return n+e.slice(r)}function fu(e,t){let n,r=[],i={single:-1,double:-1},o={};for(let a=0;a<e.length;a++){let s=e[a],c=e[a].level;for(n=r.length-1;n>=0&&!(r[n].level<=c);n--);if(pi(r,i,n+1),s.type!=="text")continue;let l=s.content,u=0,d=l.length;e:for(;u<d;){fi.lastIndex=u;let p=fi.exec(l);if(!p)break;let f=!0,g=!0;u=p.index+1;let h=p[0]==="'",m=32;if(p.index-1>=0)m=l.charCodeAt(p.index-1);else for(n=a-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let b=32;if(u<d)b=l.charCodeAt(u);else for(n=a+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){b=e[n].content.charCodeAt(0);break}let _=at(m)||st(m),x=at(b)||st(b),k=ot(m),R=ot(b);if(R?f=!1:x&&(k||_||(f=!1)),k?g=!1:_&&(R||x||(g=!1)),b===34&&p[0]==='"'&&m>=48&&m<=57&&(g=f=!1),f&&g&&(f=_,g=x),!f&&!g){h&&It(o,a,p.index,gi);continue}if(g&&(n=h?i.single:i.double,n>=0&&r[n].level===c)){let E=r[n],v,A;h?(v=t.md.options.quotes[2],A=t.md.options.quotes[3]):(v=t.md.options.quotes[0],A=t.md.options.quotes[1]),It(o,a,p.index,A),It(o,E.tokenIdx,E.contentPos,v),pi(r,i,n);continue e}if(f){if(r.length>=uu)return;r.push({tokenIdx:a,contentPos:p.index,isSingleQuote:h,level:c,prevSameQuoteIdx:h?i.single:i.double}),h?i.single=r.length-1:i.double=r.length-1}else g&&h&&It(o,a,p.index,gi)}}Object.keys(o).forEach(function(a){let s=Number(a);e[s].content=du(e[s].content,o[a])})}function gu(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!lu.test(e.tokens[t].content)||fu(e.tokens[t].children,e)}function pu(e){let t,n,r=e.length;for(t=0;t<r;t++)e[t].type==="text_special"&&(e[t].type="text");for(t=n=0;t<r;t++)e[t].type==="text"&&t+1<r&&e[t+1].type==="text"?e[t+1].content=e[t].content+e[t+1].content:(t!==n&&(e[n]=e[t]),n++);t!==n&&(e.length=n)}function hu(e){let t,n,r=e.tokens,i=r.length;for(let o=0;o<i;o++){if(r[o].type!=="inline")continue;let a=r[o].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text"),a[t].children&&pu(a[t].children);for(t=n=0;t<s;t++)a[t].type==="text"&&t+1<s&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}var Fn=[["normalize",Yl],["block",jl],["strip_references",Xl],["inline",Vl],["linkify",tu],["replacements",cu],["smartquotes",gu],["text_join",hu]],Ni=class{constructor(){F(this,"ruler",new lt),F(this,"State",Ci);for(let e=0;e<Fn.length;e++)this.ruler.push(Fn[e][0],Fn[e][1])}process(e){let t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)}},Si=class{constructor(e,t,n,r){F(this,"bMarks",[]),F(this,"eMarks",[]),F(this,"tShift",[]),F(this,"sCount",[]),F(this,"bsCount",[]),F(this,"blkIndent",0),F(this,"line",0),F(this,"lineMax",0),F(this,"tight",!1),F(this,"listIndent",-1),F(this,"parentType","root"),F(this,"level",0),F(this,"Token",Ie),this.src=e,this.md=t,this.env=n,this.tokens=r;let i=this.src;for(let o=0,a=0,s=0,c=0,l=i.length,u=!1;a<l;a++){let d=i.charCodeAt(a);if(!u)if(Q(d)){s++,d===9?c+=4-c%4:c++;continue}else u=!0;(d===10||a===l-1)&&(d!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(c),this.bsCount.push(0),u=!1,s=0,c=0,o=a+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}push(e,t,n){let r=new Ie(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}skipSpaces(e){for(let t=this.src.length;e<t&&Q(this.src.charCodeAt(e));e++);return e}skipSpacesBack(e,t){if(e<=t)return e;for(;e>t;)if(!Q(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e}skipCharsBack(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,r){if(e>=t)return"";let i=new Array(t-e);for(let o=0,a=e;a<t;a++,o++){let s=0,c=this.bMarks[a],l=c,u;for(a+1<t||r?u=this.eMarks[a]+1:u=this.eMarks[a];l<u&&s<n;){let d=this.src.charCodeAt(l);if(Q(d))d===9?s+=4-(s+this.bsCount[a])%4:s++;else if(l-c<this.tShift[a])s++;else break;l++}s>n?i[o]=new Array(s-n+1).join(" ")+this.src.slice(l,u):i[o]=this.src.slice(l,u)}return i.join("")}},mu=65536;function Bn(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function hi(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),o=!1,a=0,s="";for(;r<n;)i===124&&(o?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),o=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function bu(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;let a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=e.eMarks[i])return!1;let s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!Q(s)||a===45&&Q(s))return!1;for(;o<e.eMarks[i];){let k=e.src.charCodeAt(o);if(k!==124&&k!==45&&k!==58&&!Q(k))return!1;o++}let c=Bn(e,t+1),l=c.split("|"),u=[];for(let k=0;k<l.length;k++){let R=l[k].trim();if(!R){if(k===0||k===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(R))return!1;R.charCodeAt(R.length-1)===58?u.push(R.charCodeAt(0)===58?"center":"right"):R.charCodeAt(0)===58?u.push("left"):u.push("")}if(c=Bn(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=hi(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let p=e.parentType;e.parentType="table";let f=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),h=[t,0];g.map=h;let m=e.push("thead_open","thead",1);m.map=[t,t+1];let b=e.push("tr_open","tr",1);b.map=[t,t+1];for(let k=0;k<l.length;k++){let R=e.push("th_open","th",1);u[k]&&(R.attrs=[["style",`text-align:${u[k]}`]]);let E=e.push("inline","",0);E.content=l[k].trim(),E.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let _,x=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let k=!1;for(let E=0,v=f.length;E<v;E++)if(f[E](e,i,n,!0)){k=!0;break}if(k||(c=Bn(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=hi(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),x+=d-l.length,x>mu))break;if(i===t+2){let E=e.push("tbody_open","tbody",1);E.map=_=[t+2,0]}let R=e.push("tr_open","tr",1);R.map=[i,i+1];for(let E=0;E<d;E++){let v=e.push("td_open","td",1);u[E]&&(v.attrs=[["style",`text-align:${u[E]}`]]);let A=e.push("inline","",0);A.content=l[E]?l[E].trim():"",A.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return _&&(e.push("tbody_close","tbody",-1),_[1]=i),e.push("table_close","table",-1),h[1]=i,e.parentType=p,e.line=i,!0}function _u(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;let o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+`
27
- `,o.map=[t,e.line],!0}function Eu(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>o)return!1;let a=e.src.charCodeAt(i);if(a!==126&&a!==96)return!1;let s=i;i=e.skipChars(i,a);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,o);if(a===96&&u.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let d=t,p=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],i<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,a),!(i-s<c)&&(i=e.skipSpaces(i),!(i<o)))){p=!0;break}c=e.sCount[t],e.line=d+(p?1:0);let f=e.push("fence","code",0);return f.info=u,f.content=e.getLines(t+1,d,c,!0),f.markup=l,f.map=[t,e.line],!0}function wu(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let f=!1,g;for(g=t;g<n;g++){let x=e.sCount[g]<e.blkIndent;if(i=e.bMarks[g]+e.tShift[g],o=e.eMarks[g],i>=o)break;if(e.src.charCodeAt(i++)===62&&!x){let R=e.sCount[g]+1,E,v;e.src.charCodeAt(i)===32?(i++,R++,v=!1,E=!0):e.src.charCodeAt(i)===9?(E=!0,(e.bsCount[g]+R)%4===3?(i++,R++,v=!1):v=!0):E=!1;let A=R;for(s.push(e.bMarks[g]),e.bMarks[g]=i;i<o;){let w=e.src.charCodeAt(i);if(Q(w))w===9?A+=4-(A+e.bsCount[g]+(v?1:0))%4:A++;else break;i++}f=i>=o,c.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(E?1:0),l.push(e.sCount[g]),e.sCount[g]=A-R,u.push(e.tShift[g]),e.tShift[g]=i-e.bMarks[g];continue}if(f)break;let k=!1;for(let R=0,E=d.length;R<E;R++)if(d[R](e,g,n,!0)){k=!0;break}if(k){e.lineMax=g,e.blkIndent!==0&&(s.push(e.bMarks[g]),c.push(e.bsCount[g]),u.push(e.tShift[g]),l.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}s.push(e.bMarks[g]),c.push(e.bsCount[g]),u.push(e.tShift[g]),l.push(e.sCount[g]),e.sCount[g]=-1}let h=e.blkIndent;e.blkIndent=0;let m=e.push("blockquote_open","blockquote",1);m.markup=">";let b=[t,0];m.map=b,e.md.block.tokenize(e,t,g);let _=e.push("blockquote_close","blockquote",-1);_.markup=">",e.lineMax=a,e.parentType=p,b[1]=e.line;for(let x=0;x<u.length;x++)e.bMarks[x+t]=s[x],e.tShift[x+t]=u[x],e.sCount[x+t]=l[x],e.bsCount[x+t]=c[x];return e.blkIndent=h,!0}function ku(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t],a=e.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o<i;){let l=e.src.charCodeAt(o++);if(l!==a&&!Q(l))return!1;l===a&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(a)),!0}function mi(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!Q(e.src.charCodeAt(r))?-1:r}function bi(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=e.src.charCodeAt(i++),o>=48&&o<=57){if(i-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return i<r&&(o=e.src.charCodeAt(i),!Q(o))?-1:i}function xu(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function yu(e,t,n,r){let i,o,a,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,p,f;if((f=bi(e,c))>=0){if(d=!0,a=e.bMarks[c]+e.tShift[c],p=Number(e.src.slice(a,f-1)),u&&p!==1)return!1}else if((f=mi(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(f)>=e.eMarks[c])return!1;if(r)return!0;let g=e.src.charCodeAt(f-1),h=e.tokens.length;d?(s=e.push("ordered_list_open","ol",1),p!==1&&(s.attrs=[["start",p]])):s=e.push("bullet_list_open","ul",1);let m=[c,0];s.map=m,s.markup=String.fromCharCode(g);let b=!1,_=e.md.block.ruler.getRules("list"),x=e.parentType;for(e.parentType="list";c<n;){o=f,i=e.eMarks[c];let k=e.sCount[c]+f-(e.bMarks[c]+e.tShift[c]),R=k;for(;o<i;){let T=e.src.charCodeAt(o);if(T===9)R+=4-(R+e.bsCount[c])%4;else if(T===32)R++;else break;o++}let E=o,v;E>=i?v=1:v=R-k,v>4&&(v=1);let A=k+v;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(g);let w=[c,0];s.map=w,d&&(s.info=e.src.slice(a,f-1));let N=e.tight,C=e.tShift[c],S=e.sCount[c],I=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=A,e.tight=!0,e.tShift[c]=E-e.bMarks[c],e.sCount[c]=R,E>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n),(!e.tight||b)&&(l=!1),b=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=I,e.tShift[c]=C,e.sCount[c]=S,e.tight=N,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(g),c=e.line,w[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let O=!1;for(let T=0,y=_.length;T<y;T++)if(_[T](e,c,n,!0)){O=!0;break}if(O)break;if(d){if(f=bi(e,c),f<0)break;a=e.bMarks[c]+e.tShift[c]}else if(f=mi(e,c),f<0)break;if(g!==e.src.charCodeAt(f-1))break}return d?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(g),m[1]=c,e.line=c,e.parentType=x,l&&xu(e,h),!0}var Pn=999;function vu(e){let t=e.length;for(let n=0;n<e.length-1;n++){let r=e.charCodeAt(n);if(r<55296||r>56319)continue;let i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(t--,n++)}return t}function rt(e,t){return Math.min(e.eMarks[t]+1,e.src.length)}function Ot(e,t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return-1;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let i=e.md.block.ruler.getRules("reference"),o=e.parentType;e.parentType="reference";let a=!1;for(let s=0,c=i.length;s<c;s++)if(i[s](e,t,n,!0)){a=!0;break}if(e.parentType=o,a)return-1}return e.bMarks[t]+e.tShift[t]}function Ru(e,t,n,r){let i=e.src,o=e.bMarks[t]+e.tShift[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||i.charCodeAt(o)!==91)return!1;let s=rt(e,t),c="",l=-1,u=++o;for(;o<s;){if(c.length+o-u>Pn*2)return!1;let E=i.charCodeAt(o);if(E===91)return!1;if(E===93){l=o;break}if(E===92&&(E=i.charCodeAt(++o)),E===10&&o<s){let v=Ot(e,a);if(v<0)return!1;c+=i.slice(u,s),o=u=v,s=rt(e,a++);continue}o++}if(l<0||i.charCodeAt(l+1)!==58||(c+=i.slice(u,l),c.length>Pn&&vu(c)>Pn))return!1;for(o=l+2;o<s;){let E=i.charCodeAt(o);if(E===10){let v=Ot(e,a);if(v<0)break;o=v,s=rt(e,a++)}else if(Q(E))o++;else break}let d=e.md.helpers.parseLinkDestination(i,o,s);if(!d.ok)return!1;let p=e.md.normalizeLink(d.str);if(!e.md.validateLink(p))return!1;o=d.pos;let f=o,g=s,h=a;for(;o<s;){let E=i.charCodeAt(o);if(E===10){let v=Ot(e,a);if(v<0)break;o=v,s=rt(e,a++)}else if(Q(E))o++;else break}let m=o,b=e.md.helpers.parseLinkTitle(i,o,s);for(;b.can_continue;){let E=Ot(e,a);if(E<0)break;o=E,s=rt(e,a++),b=e.md.helpers.parseLinkTitle(i,o,s,b)}let _;for(m!==f&&b.ok?(_=b.str,o=b.pos):(_="",o=f,s=g,a=h);o<s&&Q(i.charCodeAt(o));)o++;if(o<s&&i.charCodeAt(o)!==10&&_)for(_="",o=f,s=g,a=h;o<s&&Q(i.charCodeAt(o));)o++;if(o<s&&i.charCodeAt(o)!==10)return!1;let x=Ft(c);if(!x)return!1;if(r)return!0;typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[x]>"u"&&(e.env.references[x]={title:_,href:p});let k=e.push("reference_definition","",0);k.map=[t,a],k.hidden=!0;let R=Object.create(null);return R.label=x,k.meta=R,e.line=a,!0}var Au=["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"],Di=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Mi="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";new RegExp(`^(?:${Di}|${Mi}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`);var Ii=new RegExp(`^(?:${Di}|${Mi})`),Me=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp(`^</?(${Au.join("|")})(?=(\\s|/?>|$))`,"i"),/^$/,!0],[new RegExp(`${Ii.source}\\s*$`),/^$/,!1]];function Cu(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let a=e.src.slice(i,o),s=0;for(;s<Me.length&&!Me[s][0].test(a);s++);if(s===Me.length)return!1;if(r)return Me[s][2];let c=t+1,l=Me[s][1].test("");if(!Me[s][1].test(a)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],o=e.eMarks[c],a=e.src.slice(i,o),Me[s][1].test(a)){a.length!==0&&c++;break}}e.line=c;let u=e.push("html_block","",0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function Tu(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(i);if(a!==35||i>=o)return!1;let s=1;for(a=e.src.charCodeAt(++i);a===35&&i<o&&s<=6;)s++,a=e.src.charCodeAt(++i);if(s>6||i<o&&!Q(a))return!1;if(r)return!0;o=e.skipSpacesBack(o,i);let c=e.skipCharsBack(o,35,i);c>i&&Q(e.src.charCodeAt(c-1))&&(o=c),e.line=t+1;let l=e.push("heading_open",`h${s}`,1);l.markup="########".slice(0,s),l.map=[t,e.line];let u=e.push("inline","",0);u.content=Bt(e.src.slice(i,o)),u.map=[t,e.line],u.children=[];let d=e.push("heading_close",`h${s}`,-1);return d.markup="########".slice(0,s),!0}function Nu(e,t,n){let r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType="paragraph";let o=0,a,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let f=e.bMarks[s]+e.tShift[s],g=e.eMarks[s];if(f<g&&(a=e.src.charCodeAt(f),(a===45||a===61)&&(f=e.skipChars(f,a),f=e.skipSpaces(f),f>=g))){o=a===61?1:2;break}}if(e.sCount[s]<0)continue;let p=!1;for(let f=0,g=r.length;f<g;f++)if(r[f](e,s,n,!0)){p=!0;break}if(p)break}if(!o)return e.parentType=i,!1;let c=Bt(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push("heading_open",`h${o}`,1);l.markup=String.fromCharCode(a),l.map=[t,e.line];let u=e.push("inline","",0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push("heading_close",`h${o}`,-1);return d.markup=String.fromCharCode(a),e.parentType=i,!0}function Su(e,t,n){let r=e.md.block.ruler.getRules("paragraph"),i=e.parentType,o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let l=!1;for(let u=0,d=r.length;u<d;u++)if(r[u](e,o,n,!0)){l=!0;break}if(l)break}let a=Bt(e.getLines(t,o,e.blkIndent,!1));e.line=o;let s=e.push("paragraph_open","p",1);s.map=[t,e.line];let c=e.push("inline","",0);return c.content=a,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}var Lt=[["table",bu,["paragraph","reference"]],["code",_u],["fence",Eu,["paragraph","reference","blockquote","list"]],["blockquote",wu,["paragraph","reference","blockquote","list"]],["hr",ku,["paragraph","reference","blockquote","list"]],["list",yu,["paragraph","reference","blockquote"]],["reference",Ru],["html_block",Cu,["paragraph","reference","blockquote"]],["heading",Tu,["paragraph","reference","blockquote"]],["lheading",Nu],["paragraph",Su]],Oi=class{constructor(){F(this,"ruler",new lt),F(this,"State",Si);for(let e=0;e<Lt.length;e++)this.ruler.push(Lt[e][0],Lt[e][1],{alt:(Lt[e][2]||[]).slice()})}tokenize(e,t,n){let r=this.ruler.getRules(""),i=r.length,o=e.md.options.maxNesting,a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=o){e.line=n;break}let c=e.line,l=!1;for(let u=0;u<i;u++)if(l=r[u](e,a,n,!1),l){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}}parse(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)}},Li=class{constructor(e,t,n,r){F(this,"pos",0),F(this,"level",0),F(this,"pending",""),F(this,"pendingLevel",0),F(this,"cache",{}),F(this,"backticks",{}),F(this,"backticksScanned",!1),F(this,"skipHtmlSpecial",!1),F(this,"linkLevel",0),F(this,"delimiters",[]),F(this,"_prev_delimiters",[]),F(this,"Token",Ie),this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.posMax=this.src.length}pushPending(){let e=new Ie("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e}push(e,t,n){this.pending&&this.pushPending();let r=new Ie(e,t,n),i;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r}scanDelims(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)===55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)===56320){let g=this.src.charCodeAt(e-2);i=(g&64512)===55296?65536+(g-55296<<10)+(i-56320):65533}else(i&64512)===55296&&(i=65533);let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;let a=o-e,s=o<n?this.src.charCodeAt(o):32;if((s&64512)===55296){let g=this.src.charCodeAt(o+1);s=(g&64512)===56320?65536+(s-55296<<10)+(g-56320):65533}else(s&64512)===56320&&(s=65533);let c=at(i)||st(i),l=at(s)||st(s),u=ot(i),d=ot(s),p=!d&&(!l||u||c),f=!u&&(!c||d||l);return{can_open:p&&(t||!f||c),can_close:f&&(t||!p||l),length:a}}};function Du(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Mu(e,t){let n=e.pos;for(;n<e.posMax&&!Du(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function Iu(e){return e>=65&&e<=90||e>=97&&e<=122}function Ou(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function Lu(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=n-Math.min(10,e.pending.length,n),o=n;for(;o>i&&Ou(e.src.charCodeAt(o-1));)o--;if(o===n||!Iu(e.src.charCodeAt(o)))return!1;let a=n-o,s=e.md.linkify.matchAtStart(e.src.slice(o));if(!s)return!1;let c=s.url;if(c.length<=a)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));let u=e.md.normalizeLink(c);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-a);let d=e.push("link_open","a",1);d.attrs=[["href",u]],d.markup="linkify",d.info="auto";let p=e.push("text","",0);p.content=e.md.normalizeLinkText(c);let f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=c.length-a,!0}function Fu(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<i&&Q(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var Wn=[];for(let e=0;e<256;e++)Wn.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Wn[e.charCodeAt(0)]=1});function Bu(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(i=e.src.charCodeAt(n),!!Q(i));)n++;return e.pos=n,!0}if(i===32){if(!t){let s=e.push("text_special","",0);s.content="\\",s.markup="\\",s.info="escape"}return e.pos=n,!0}let o=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(o+=e.src[n+1],n++)}let a="\\"+o;if(!t){let s=e.push("text_special","",0);i<256&&Wn[i]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function Pu(e){let t={},n=0;for(;(n=e.indexOf("`",n))!==-1;){let r=n;for(;e.charCodeAt(++n)===96;);t[n-r]=r}return t}function $u(e,t){var n;let r=e.pos;if(e.src.charCodeAt(r)!==96)return!1;let i=e.posMax,o=r+1;for(;o<i&&e.src.charCodeAt(o)===96;)o++;let a=e.src.slice(r,o),s=a.length;if(e.backticksScanned||(e.backticks=Pu(e.src),e.backticksScanned=!0),((n=e.backticks[s])!==null&&n!==void 0?n:-1)>=o){let c=o,l;for(;(l=e.src.indexOf("`",c))!==-1&&l<i;){for(c=l+1;e.src.charCodeAt(c)===96;)c++;if(c>i)break;if(c-l===s){if(!t){let u=e.push("code_inline","code",0);u.markup=a;let d=e.src.slice(o,l).replace(/\n/g," ");d.startsWith(" ")&&d.endsWith(" ")&&/[^ ]/.test(d)&&(d=d.slice(1,-1)),u.content=d}return e.pos=c,!0}}}return t||(e.pending+=a),e.pos=o,!0}function Uu(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),o=i.length,a=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let c=0;c<o;c+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function _i(e,t){let n,r=[],i=t.length;for(let o=0;o<i;o++){let a=t[o];if(a.marker!==126||a.end===-1)continue;let s=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&r.push(s.token-1)}for(;r.length;){let o=r.pop(),a=o+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,o!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[o],e.tokens[o]=n)}}function zu(e){let t=e.tokens_meta,n=e.tokens_meta.length;_i(e,e.delimiters);for(let i=0;i<n;i++){var r;let o=(r=t[i])===null||r===void 0?void 0:r.delimiters;o&&_i(e,o)}}var Fi={tokenize:Uu,postProcess:zu};function qu(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let o=0;o<i.length;o++){let a=e.push("text","",0);a.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function Ei(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let i=t[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;let o=t[i.end],a=r>0&&t[r-1].end===i.end+1&&t[r-1].marker===i.marker&&t[r-1].token===i.token-1&&t[i.end+1].token===o.token+1,s=String.fromCharCode(i.marker),c=e.tokens[i.token];c.type=a?"strong_open":"em_open",c.tag=a?"strong":"em",c.nesting=1,c.markup=a?s+s:s,c.content="";let l=e.tokens[o.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?s+s:s,l.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[i.end+1].token].content="",r--)}}function Wu(e){let t=e.tokens_meta,n=e.tokens_meta.length;Ei(e,e.delimiters);for(let i=0;i<n;i++){var r;let o=(r=t[i])===null||r===void 0?void 0:r.delimiters;o&&Ei(e,o)}}var Bi={tokenize:qu,postProcess:Wu};function Hu(e,t){let n,r,i,o,a="",s="",c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,p=e.pos+1,f=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(f<0)return!1;let g=f+1;if(g<d&&e.src.charCodeAt(g)===40){for(l=!1,g++;g<d&&(n=e.src.charCodeAt(g),!(!Q(n)&&n!==10));g++);if(g>=d)return!1;if(c=g,i=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),i.ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?g=i.pos:a="",c=g;g<d&&(n=e.src.charCodeAt(g),!(!Q(n)&&n!==10));g++);if(i=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<d&&c!==g&&i.ok)for(s=i.str,g=i.pos;g<d&&(n=e.src.charCodeAt(g),!(!Q(n)&&n!==10));g++);}(g>=d||e.src.charCodeAt(g)!==41)&&(l=!0),g++}if(l){if(typeof e.env.references>"u")return!1;if(g<d&&e.src.charCodeAt(g)===91?(c=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?r=e.src.slice(c,g++):g=f+1):g=f+1,r||(r=e.src.slice(p,f)),r=Ft(r),o=e.env.references[r],!o)return e.pos=u,!1;a=o.href,s=o.title}if(!t){e.pos=p,e.posMax=f;let h=e.push("link_open","a",1),m=[["href",a]];if(h.attrs=m,s&&m.push(["title",s]),r){let b=Object.create(null);b.label=r,h.meta=b}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=g,e.posMax=d,!0}function Gu(e,t){let n,r,i,o,a,s,c,l,u="",d=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let f=e.pos+2,g=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(g<0)return!1;if(o=g+1,o<p&&e.src.charCodeAt(o)===40){for(o++;o<p&&(n=e.src.charCodeAt(o),!(!Q(n)&&n!==10));o++);if(o>=p)return!1;for(l=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?o=s.pos:u=""),l=o;o<p&&(n=e.src.charCodeAt(o),!(!Q(n)&&n!==10));o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<p&&l!==o&&s.ok)for(c=s.str,o=s.pos;o<p&&(n=e.src.charCodeAt(o),!(!Q(n)&&n!==10));o++);else c="";if(o>=p||e.src.charCodeAt(o)!==41)return e.pos=d,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<p&&e.src.charCodeAt(o)===91?(l=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?i=e.src.slice(l,o++):o=g+1):o=g+1,i||(i=e.src.slice(f,g)),i=Ft(i),a=e.env.references[i],!a)return e.pos=d,!1;u=a.href,c=a.title}if(!t){r=e.src.slice(f,g);let h=[];e.md.inline.parse(r,e.md,e.env,h);let m=e.push("image","img",0),b=[["src",u],["alt",""]];if(m.attrs=b,m.children=h,m.content=r,c&&b.push(["title",c]),i){let _=Object.create(null);_.label=i,m.meta=_}}return e.pos=o,e.posMax=p,!0}var Ku=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Zu=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Ju(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}let o=e.src.slice(r+1,n);if(Zu.test(o)){let a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){let s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";let c=e.push("text","",0);c.content=e.md.normalizeLinkText(o);let l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}if(Ku.test(o)){let a=e.md.normalizeLink(`mailto:${o}`);if(!e.md.validateLink(a))return!1;if(!t){let s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";let c=e.push("text","",0);c.content=e.md.normalizeLinkText(o);let l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}return!1}function Yu(e){return/^<a[>\s]/i.test(e)}function ju(e){return/^<\/a\s*>/i.test(e)}function Pi(e){let t=e|32;return t>=97&&t<=122}function Xu(e,t){let n=e.src,r,i;if(n.startsWith("<!--",t)){if(n.startsWith(">",t+4))return t+5;if(n.startsWith("->",t+4))return t+6;r=t+4,i="-->"}else if(n.startsWith("<![CDATA[",t))r=t+9,i="]]>";else if(n.charCodeAt(t+1)===63)r=t+2,i="?>";else if(Pi(n.charCodeAt(t+2)))r=t+3,i=">";else return-1;if(e.skipHtmlSpecial)return-1;let o=n.indexOf(i,r);return o<0?(e.skipHtmlSpecial=!0,-1):o+i.length}function Vu(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i,o=e.src.charCodeAt(r+1);if(o===33||o===63)i=Xu(e,r);else if(o===47||Pi(o)){let a=e.src.slice(r).match(Ii);i=a?r+a[0].length:-1}else return!1;if(i<0)return!1;if(!t){let a=e.push("html_inline","",0);a.content=e.src.slice(r,i),Yu(a.content)&&e.linkLevel++,ju(a.content)&&e.linkLevel--}return e.pos=i,!0}var Qu=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ed=/^&([a-z][a-z0-9]{1,31});/i;function td(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let i=e.src.slice(n).match(Qu);if(i){if(!t){let o=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),a=e.push("text_special","",0);a.content=qn(o)?it(o):it(65533),a.markup=i[0],a.info="entity"}return e.pos+=i[0].length,!0}}else{let i=e.src.slice(n).match(ed);if(i){let o=Mt(i[0]);if(o!==i[0]){if(!t){let a=e.push("text_special","",0);a.content=o,a.markup=i[0],a.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function wi(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,o=[];for(let a=0;a<n;a++){let s=e[a];if(o.push(0),(e[r].marker!==s.marker||i!==s.token-1)&&(r=a),i=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);let c=t[s.marker][(s.open?3:0)+s.length%3],l=r-o[r]-1,u=l;for(;l>c;l-=o[l]+1){let d=e[l];if(d.marker===s.marker&&d.open&&d.end<0){let p=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3!==0||s.length%3!==0)&&(p=!0),!p){let f=l>0&&!e[l-1].open?o[l-1]+1:0;o[a]=a-l+f,o[l]=f,s.open=!1,d.end=a,d.close=!1,u=-1,i=-2;break}}}u!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=u)}}function nd(e){let t=e.tokens_meta,n=e.tokens_meta.length;wi(e.delimiters);for(let i=0;i<n;i++){var r;let o=(r=t[i])===null||r===void 0?void 0:r.delimiters;o&&wi(o)}}function rd(e){let t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type==="text"&&t+1<o&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var $n=[["text",Mu],["linkify",Lu],["newline",Fu],["escape",Bu],["backticks",$u],["strikethrough",Fi.tokenize],["emphasis",Bi.tokenize],["link",Hu],["image",Gu],["autolink",Ju],["html_inline",Vu],["entity",td]],Un=[["balance_pairs",nd],["strikethrough",Fi.postProcess],["emphasis",Bi.postProcess],["fragments_join",rd]],$i=class{constructor(){F(this,"ruler",new lt),F(this,"ruler2",new lt),F(this,"State",Li);for(let e=0;e<$n.length;e++)this.ruler.push($n[e][0],$n[e][1]);for(let e=0;e<Un.length;e++)this.ruler2.push(Un[e][0],Un[e][1])}skipToken(e){let t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let a=!1;if(e.level<i){for(let s=0;s<r;s++)if(e.level++,a=n[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos}tokenize(e){let t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let o=e.pos,a=!1;if(e.level<i){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](i)}},id={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","strip_references","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","strip_references","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},od=/^(vbscript|javascript|file|data):/,sd=/^data:image\/(gif|png|jpeg|webp);/,ki=["http:","https:","mailto:"],_e=class{validateLink(e){let t=e.trim().toLowerCase();return od.test(t)?sd.test(t):!0}normalizeLink(e){let t=tt(e,!0);if(t.hostname&&(!t.protocol||ki.indexOf(t.protocol)>=0))try{t.hostname=zn.default.toASCII(t.hostname)}catch{}return t.auth&&(t.auth=Ae(t.auth)),t.hostname&&(t.hostname=Ae(t.hostname)),t.pathname&&(t.pathname=Ae(t.pathname)),t.search&&(t.search=Ae(t.search)),t.hash&&(t.hash=Ae(t.hash)),Ue(t)}normalizeLinkText(e){let t=tt(e,!0);if(t.hostname&&(!t.protocol||ki.indexOf(t.protocol)>=0))try{t.hostname=zn.default.toUnicode(t.hostname)}catch{}return et(Ue(t),et.defaultChars+"%")}constructor(...e){F(this,"inline",new $i),F(this,"block",new Oi),F(this,"core",new Ni),F(this,"renderer",new Ai),F(this,"linkify",new ti),F(this,"utils",Tl),F(this,"helpers",Object.assign({},Hl));let[t,n]=e;typeof t=="string"?(this.configure(t),n&&this.set(n)):(this.configure("default"),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if(typeof e=="string"){let i=e;if(t=id[i],!t)throw new Error(`Wrong 'markdown-it' preset "${i}", check name`)}else t=e;if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});let n=t.components;if(n){var r;["core","block","inline"].forEach(o=>{var a;let s=(a=n[o])===null||a===void 0?void 0:a.rules;s&&this[o].ruler.enableOnly(s)});let i=(r=n.inline)===null||r===void 0?void 0:r.rules2;i&&this.inline.ruler2.enableOnly(i)}return this}enable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(i=>{n=n.concat(this[i].ruler.enable(e,!0))}),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(i=>n.indexOf(i)<0);if(r.length&&!t)throw new Error(`MarkdownIt. Failed to enable unknown rule(s): ${r}`);return this}disable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(i=>{n=n.concat(this[i].ruler.disable(e,!0))}),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(i=>n.indexOf(i)<0);if(r.length&&!t)throw new Error(`MarkdownIt. Failed to disable unknown rule(s): ${r}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if(typeof e!="string")throw new Error("Input data should be a String");let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}};F(_e,"Token",Ie);F(_e,"Ruler",lt);F(_e,"Renderer",Ai);F(_e,"ParserCore",Ni);F(_e,"StateCore",Ci);F(_e,"ParserBlock",Oi);F(_e,"StateBlock",Si);F(_e,"ParserInline",$i);F(_e,"StateInline",Li);var Pt=yi(_e);var ne=(e,...t)=>e.replace(/\{(\d+)\}/g,(n,r)=>Number(r)<t.length?String(t[Number(r)]):n);function Ui(e){return(t,...n)=>ne(e[t]??t,...n)}function Ne(e,t){switch(e){case"wireframe":return{markerNotTopLevel:t("link-headings is ignored for a wireframe inside a list or blockquote."),refNotFound:n=>t('data-ref target heading "{0}" was not found after the wireframe.',n),unlinkedHeadingTitle:t("No part of the wireframe is linked to this heading."),unlinkedHeadingMark:t("no part"),nothingLinked:t('No part of the wireframe is linked to a heading or a row. Number the headings after it like its parts (data-item), or give the item table their numbers with "item=<column>".'),unlinkedItem:n=>t('Part {0} of the wireframe is not linked to any heading or row. Add a heading numbered {0} after the wireframe, or a row with {0} in the column of "item=".',n),unlinkedHeading:n=>t('No part of the wireframe is linked to heading "{0}".',n)};case"sequence":return{refWithoutMarker:t('@ref is ignored because the sequence diagram has no "%% @link-headings" marker.'),markerNotTopLevel:t("@link-headings is ignored for a sequence diagram inside a list or blockquote."),refNotFound:n=>t('@ref target heading "{0}" was not found after the sequence diagram.',n),unlinkedHeadingTitle:t("No arrow in the sequence diagram is linked to this heading."),unlinkedHeadingMark:t("no arrow"),nothingLinked:t("No arrow in the sequence diagram is linked to a heading. Write the steps as headings after the diagram, with the same text as the arrows."),unlinkedItem:n=>t('Arrow "{0}" is not linked to any heading. Add a heading with the same text after the diagram, or write "%% @ref <heading>" above the arrow.',n),unlinkedHeading:n=>t('No arrow in the sequence diagram is linked to heading "{0}".',n),linkItemFix:n=>t('Link arrow "{0}" to this heading with @ref',n),linkedCandidate:t("Already linked to an arrow"),unlinkedCandidate:t("No arrow linked yet"),markerDoc:t("Show this sequence diagram side by side with the step headings after it."),refDoc:t("Link the next arrow to a heading.")};case"flowchart":return{refWithoutMarker:t('@ref is ignored because the flowchart has no "%% @link-headings" marker.'),markerNotTopLevel:t("@link-headings is ignored for a flowchart inside a list or blockquote."),refNotFound:n=>t('@ref target heading "{0}" was not found after the flowchart.',n),unlinkedHeadingTitle:t("No node in the flowchart is linked to this heading."),unlinkedHeadingMark:t("no node"),nothingLinked:t("No node in the flowchart is linked to a heading. Write the steps as headings after the diagram, with the same text as the nodes."),unlinkedItem:n=>t('Node "{0}" is not linked to any heading. Add a heading with the same text after the diagram, or write "%% @ref <heading>" above the node.',n),unlinkedHeading:n=>t('No node in the flowchart is linked to heading "{0}".',n),linkItemFix:n=>t('Link node "{0}" to this heading with @ref',n),linkedCandidate:t("Already linked to a node"),unlinkedCandidate:t("No node linked yet"),markerDoc:t("Show this flowchart with the step headings after it and link its nodes to them (side by side, or below a horizontal flowchart)."),refDoc:t("Link the node defined on the next line to a heading.")};case"er":return{refWithoutMarker:t('@ref is ignored because the ER diagram has no "%% @link-headings" marker.'),markerNotTopLevel:t("@link-headings is ignored for an ER diagram inside a list or blockquote."),refNotFound:n=>t('@ref target heading "{0}" was not found after the ER diagram.',n),unlinkedHeadingTitle:t("No entity in the ER diagram is linked to this heading."),unlinkedHeadingMark:t("no entity"),nothingLinked:t("No entity in the ER diagram is linked to a heading. Write a heading for each entity after the diagram, with the same text as the entity."),unlinkedItem:n=>t('Entity "{0}" is not linked to any heading. Add a heading with the same text after the diagram, or write "%% @ref <heading>" above the entity.',n),unlinkedHeading:n=>t('No entity in the ER diagram is linked to heading "{0}".',n),linkItemFix:n=>t('Link entity "{0}" to this heading with @ref',n),linkedCandidate:t("Already linked to an entity"),unlinkedCandidate:t("No entity linked yet"),markerDoc:t("Show this ER diagram with the headings after it and link its entities to them (side by side, or below a horizontal diagram)."),refDoc:t("Link the entity defined on the next line to a heading.")};case"state":return{refWithoutMarker:t('@ref is ignored because the state diagram has no "%% @link-headings" marker.'),markerNotTopLevel:t("@link-headings is ignored for a state diagram inside a list or blockquote."),refNotFound:n=>t('@ref target heading "{0}" was not found after the state diagram.',n),unlinkedHeadingTitle:t("No state in the state diagram is linked to this heading."),unlinkedHeadingMark:t("no state"),nothingLinked:t("No state in the state diagram is linked to a heading. Write a heading for each state after the diagram, with the same text as the state."),unlinkedItem:n=>t('State "{0}" is not linked to any heading. Add a heading with the same text after the diagram, or write "%% @ref <heading>" above the state.',n),unlinkedHeading:n=>t('No state in the state diagram is linked to heading "{0}".',n),linkItemFix:n=>t('Link state "{0}" to this heading with @ref',n),linkedCandidate:t("Already linked to a state"),unlinkedCandidate:t("No state linked yet"),markerDoc:t("Show this state diagram with the headings after it and link its states to them (side by side, or below a horizontal diagram)."),refDoc:t("Link the state defined on the next line to a heading.")}}}function $t(e){return{title:e("No part of the wireframe has the number of this row."),mark:e("no part"),unlinked:t=>e("No part of the wireframe has the number {0} of this row.",t)}}function Ut(e){return{withoutMarker:e('@anchor and @goto are ignored because the sequence diagram has no "%% @link-headings" marker.'),strayAnchor:e("@anchor is ignored because the next line is not a note or a section of a block with a condition (alt, else, \u2026)."),strayGoto:e("@goto is ignored because the next line is not a note."),gotoOnLabel:e("@goto is ignored because @anchor makes the note a label. A note is a label or a jump, not both."),duplicateAnchor:t=>e('Label "{0}" is already defined in the sequence diagram.',t),gotoNotFound:t=>e('@goto target label "{0}" was not found in the sequence diagram.',t),anchorDoc:e("Make the next note (or section of a block) a label that notes can jump to."),gotoDoc:e("Make the next note jump to a label."),gotoTitle:e("Go to {0}"),backTitle:e("Back to the note you jumped from")}}var ad=["<<-->>","<<->>","-->>","->>","-->","->","--x","-x","--)","-)","--|\\","--|/","--\\\\","--//","/|--","\\|--","//--","\\\\--","-|\\","-|/","-\\\\","-//","/|-","\\|-","//-","\\\\-"],cd=e=>e.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&"),ld=new RegExp("^\\s*([^:]+?)\\s*(?:\\(\\))?("+ad.map(cd).join("|")+")(?:\\(\\))?\\s*[+-]?\\s*([^:]+?)\\s*:(.*)$"),Hn=/^\s*%%\s*@ref\s+(.+?)\s*$/,Gn=/^\s*%%\s*@link-headings\s*$/,ud=/^\s*%%\s*@anchor\s+(.+?)\s*$/,dd=/^\s*%%\s*@goto\s+(.+?)\s*$/,fd=/^\s*note\s+(?:left\s+of|right\s+of|over)\s+[^:]+:(.*)$/i,gd=/^\s*(alt|opt|loop|par|par_over|critical|break|rect|box)(?:\s+(.*?))?\s*$/i,pd=/^\s*(else|and|option)(?:\s+(.*?))?\s*$/i,hd=/^\s*end\s*$/i,md=new Set(["rect","box"]),zt="\u24B6-\u24E9",bd=new RegExp(`^[${zt}]$`),_d=new RegExp(`^([${zt}])(?![${zt}])`),Ed=new RegExp(`[${zt}]`,"g"),wd=e=>{let t=le(e);return bd.test(t)?t:void 0},kd=e=>_d.exec(le(e))?.[1],xd=e=>e.match(Ed)??[],Kn=/^\s*%%\s*@seq-notes\s*$/,zi="(\\d+(?:\\.\\d{1,2})?|\\.\\d{1,2})",yd=new RegExp(`^\\s*autonumber(?:\\s+(off)|\\s+${zi}(?:\\s+${zi})?)?\\s*(?:(?:%%|#).*)?$`,"i"),vd=/^\s*(note|participant|actor|create|destroy|alt|else|opt|loop|par|and|critical|option|break|rect|box|end|activate|deactivate|autonumber|link|links|properties|details|title|accTitle|accDescr)(?=\s|$)/i;function he(e){let t=e.findIndex(r=>r.trim()!=="");if(t<0||e[t].trim()!=="---")return 0;let n=e.findIndex((r,i)=>i>t&&r.trim()==="---");return n<0?e.length:n+1}function qi(e){let t=e.split(/\r?\n/);for(let n of t.slice(he(t))){let r=n.trim();if(!(r===""||r.startsWith("%%")))return/^sequenceDiagram\b/.test(r)}return!1}function Wi(e,t){let n=[],r,i,o,a=[],s=[],c=[],l,u,d=[[]],p=()=>{for(let E of d[d.length-1])E.endMessage=n.length;d[d.length-1]=[]},f=(E,v)=>{l&&!E&&(c.push({line:l.line,directive:"anchor"}),l=void 0),u&&!v&&(c.push({line:u.line,directive:"goto"}),u=void 0)},g=[],h=(E,v,A)=>{let w=!md.has(E.toLowerCase())&&v!==void 0&&v!=="";if(f(w,!1),!w)return;let N=Rd(v),C=g.filter(I=>I===N).length;g.push(N);let S=l?.name??kd(v);if(S!==void 0){let I={name:S,line:A,title:v,occurrence:C,firstMessage:n.length,endMessage:n.length};l&&(I.markerLine=l.line),s.push(I),d[d.length-1].push(I)}l=void 0},m=1,b=1,_=!1,x=e.split(/\r?\n/),k=he(x);for(x.forEach((E,v)=>{if(v<k)return;if(Gn.test(E)){r??=t+v;return}if(Kn.test(E)){i??=t+v;return}let A=Hn.exec(E);if(A){o={text:A[1],line:t+v};return}let w=ud.exec(E);if(w){f(!1,!0),l={name:le(w[1]),line:t+v};return}let N=dd.exec(E);if(N){f(!0,!1),u={name:le(N[1]),line:t+v};return}if(E.trim()===""||E.trim().startsWith("%%"))return;let C=fd.exec(E);if(C){let D=C[1].trim(),M={index:a.length,line:t+v,text:D},P=l?.name??(u?void 0:wd(D));if(P!==void 0){M.anchor=P;let U={name:P,line:M.line,note:M.index,firstMessage:n.length,endMessage:n.length};l&&(U.markerLine=l.line),s.push(U),d[d.length-1].push(U)}u&&M.anchor!==void 0?c.push({line:u.line,directive:"gotoOnLabel"}):u&&(M.goto=u.name,M.gotoLine=u.line),l=void 0,u=void 0,a.push(M);return}let S=gd.exec(E);if(S){d.push([]),h(S[1],S[2],t+v);return}let I=pd.exec(E);if(I){p(),h(I[1],I[2],t+v);return}if(f(!1,!1),hd.test(E)){p(),d.length>1&&d.pop();return}let O=yd.exec(E);if(O){m=Number(O[2]??0)||m,b=Number(O[3]??0)||b,_=O[1]===void 0;return}if(E.trim().startsWith("%%")||vd.test(E))return;let T=ld.exec(E);if(!T)return;let y={index:n.length,line:t+v,text:T[4].trim()};_&&(y.number=m),m=Math.round((m+b)*100)/100,o&&(y.ref=o.text,y.refLine=o.line,o=void 0),n.push(y)}),f(!1,!1);d.length>0;)p(),d.pop();let R=new Set(s.map(E=>E.name));for(let E of a)if(E.goto===void 0&&E.anchor===void 0){let v=xd(E.text).find(A=>R.has(A));v!==void 0&&(E.goto=v)}return{messages:n,notes:a,anchors:s,strayDirectives:c,markerLine:r,legacyMarkerLine:i}}var Rd=e=>le(e).replace(/\s+/g,"");function le(e){return e.replace(/<br\s*\/?>/gi," ").replace(/#(\d+);/g,(t,n)=>String.fromCharCode(Number(n))).replace(/\s+/g," ").trim()}var Ad=[/^(\d+(?:\.\d+)*)[.).)](?!\d)\s*(.+)$/,/^(\d+(?:\.\d+)+)\s+(.+)$/,/^[((](\d+)[))]\s*(.+)$/],ut=e=>e.replace(/[0-9]/g,t=>String.fromCharCode(t.charCodeAt(0)-65248));function Hi(e){let t=e.trim(),n=ut(t);for(let i of Ad){let o=i.exec(n);if(o)return{text:t.slice(n.length-o[2].length),value:o[1]}}let r=/^([\u2460-\u2473])\s*(.+)$/.exec(t);if(r)return{text:r[2],value:String(r[1].charCodeAt(0)-9312+1)}}function qe(e,t,n,r,i){let o=i.excluded??new Set,a=new Map,s=new Set,c=new Set,l,u,d,p=new Map,f=!1;return e.forEach((h,m)=>{if(m<t)return;if(f){f=!h.includes("}");return}if(/^\s*accDescr\s*\{/.test(h)&&!h.includes("}")){f=!0;return}if(i.skip?.(h))return;if(Gn.test(h)){l??=n+m;return}if(Kn.test(h)){u??=n+m;return}let b=Hn.exec(h);if(b){d={text:b[1],line:n+m};return}if(h.trim().startsWith("%%"))return;let _=n+m,x=i.statement(h,m),k=[];for(let{id:A,label:w,defines:N}of x){let C=a.get(A);C||(C={index:a.size,line:_,text:A,nodeId:A,labeled:r.idIsLabel,refable:!1},a.set(A,C),k.push(A)),w!==void 0&&!(r.firstWins&&c.has(A))&&(C.text=w,C.labeled=!0,c.add(A)),(N||w!==void 0)&&!(r.firstWins&&s.has(A))&&(C.line=_,s.add(A))}let R=x.filter(A=>!o.has(A.id)),E=R.find(A=>A.defines||A.label!==void 0)?.id??k.find(A=>!o.has(A))??R[0]?.id;if(E===void 0)return;let v=a.get(E);p.set(_,v.nodeId),d&&(v.ref=d.text,v.refLine=d.line,d=void 0)}),{nodes:[...a.values()].filter(h=>!o.has(h.nodeId)).map((h,m)=>({...h,index:m,refable:p.get(h.line)===h.nodeId})),markerLine:l,legacyMarkerLine:u}}var Cd=/^\s*direction\s+(TB|BT|RL|LR)\b/i;function qt(e){let t=Cd.exec(e)?.[1].toUpperCase();return t===void 0?void 0:t==="LR"||t==="RL"}function ke(e,t,n){for(let r=t;r<e.length;r++){let i=e[r].trim();if(i===""||i.startsWith("%%"))continue;let o=n.exec(e[r]);return o?{index:r,match:o}:void 0}}var Ki=/^\s*erDiagram\b/,Td=/^\s*(style|classDef|class|subgraph|end|direction|accTitle|accDescr)(?=[\s:{]|$)/,Nd=/^(?:"([^"]*)"|((?:[^\x00-\x7F]|[\w*-])+))/u,Sd=/^\s*\[\s*(?:"([^"]*)"|([^\]]*?))\s*\]/,Dd=/^:::[\w-]+/,Md=/(?:"([^"]*)"|((?:[^\x00-\x7F]|[\w*-])+))(?::::[\w-]+)?\s*$/u;function Id(e){let t=Nd.exec(e);if(!t)return;let n=t[0].length,r;for(;;){let i=Dd.exec(e.slice(n)),o=r===void 0?Sd.exec(e.slice(n)):null,a=i??o;if(!a)break;o&&!i&&(r=o[1]??o[2]),n+=a[0].length}return{id:t[1]??t[2],label:r,length:n}}function Od(e){let t=!1;for(let n=0;n<e.length;n++)if(e[n]==='"')t=!t;else if(!t&&e[n]===":"&&e[n-1]!==":"&&e[n+1]!==":")return n;return-1}var Gi=e=>e.replace(/"[^"]*"/g,'""');function Zi(e){let t=e.split(/\r?\n/);return ke(t,he(t),Ki)!==void 0}function Ji(e,t){let n=e.split(/\r?\n/),r=he(n),i=ke(n,r,Ki),o=!1,a=0,s=!1;return{...qe(n,r,t,{firstWins:!0,idIsLabel:!0},{statement:(d,p)=>{if(o=(a===0?qt(d):void 0)??o,/^\s*subgraph(?=\s|$)/.test(d)?a++:/^\s*end\s*$/.test(d)&&(a=Math.max(0,a-1)),Td.test(d))return[];let f=(p===i?.index?d.slice(i.match[0].length):d).trim(),g=Id(f);if(!g)return[];let h=f.slice(g.length).trim();if(h===""||h.startsWith("{"))return s=h.startsWith("{")&&!Gi(h).includes("}"),[{id:g.id,label:g.label,defines:!0}];let m=Od(h),b=m<0?null:Md.exec(h.slice(0,m)),_={id:g.id,label:g.label};return b?[_,{id:b[1]??b[2]}]:[_]},skip:d=>s?(s=!Gi(d).includes("}"),!0):!1}),horizontal:o}}var ji=/^\s*(?:flowchart-elk|graph|flowchart)\b(?:\s*(TB|TD|BT|RL|LR)\b|\s*([<>^]|v\b))?\s*;?/,Ld=/^\s*(style|linkStyle|classDef|class|click|subgraph|end|direction|accTitle|accDescr)(?=[\s:{]|$)/,Fd=/^\s*subgraph\s+([^\s[]+)/,Bd=/^(?:[^\s[\](){}<>|&;:"@,~=-]|-(?![->.]))+/u,Pd=[["(((",[")))"]],["((",["))"]],["([",["])"]],["[[",["]]"]],["[(",[")]"]],["{{",["}}"]],["[/",["/]","\\]"]],["[\\",["\\]","/]"]],["(-",["-)"]],["[",["]"]],["(",[")"]],["{",["}"]],[">",["]"]]],$d=/^\s*(?:[^\s"]+@)?(?:[xo<]?--+[-xo>]|[xo<]?==+[=xo>]|[xo<]?-?\.+-[xo>]?|~~~+)\s*(?:\|(?:"[^"]*"|[^|"])*\|\s*)?/,Ud=[/^\s*[xo<]?--(?![-xo>])(.*?)--+[-xo>]\s*/,/^\s*[xo<]?==(?![=xo>])(.*?)==+[=xo>]\s*/,/^\s*[xo<]?-\.(.*?)\.+-[xo>]?\s*/],zd=/\blabel\s*:\s*(?:"([^"]*)"|'([^']*)'|([^,}\n]*))/;function Yi(e){let t=e.trim();return t.length>=2&&t.startsWith('"')&&t.endsWith('"')&&(t=t.slice(1,-1)),t.length>=2&&t.startsWith("`")&&t.endsWith("`")&&(t=t.slice(1,-1).replace(/(\*\*|__)(.+?)\1/g,"$2").replace(/(\*|_)(.+?)\1/g,"$2")),t.trim()}function qd(e){let t=Bd.exec(e);if(!t)return;let n=t[0].length,r;if(e.startsWith("@{",n)){let o=e.indexOf("}",n);if(o<0)return;let a=zd.exec(e.slice(n+2,o));a&&(r=Yi(a[1]??a[2]??a[3]??"")),n=o+1}else{let o=Pd.find(([a])=>e.startsWith(a,n));if(o){let[a,s]=o,c=n+a.length,l=/^\s*"/.exec(e.slice(c));if(l){let p=e.indexOf('"',c+l[0].length);if(p<0)return;c=p+1}let u=s.map(p=>e.indexOf(p,c)).filter(p=>p>=0);if(u.length===0)return;let d=Math.min(...u);r=Yi(e.slice(n+a.length,d)),n=d+s.find(p=>e.startsWith(p,d)).length}}let i=/^:::[^\s&;]+/.exec(e.slice(n));return i&&(n+=i[0].length),{node:{id:t[0],label:r},length:n}}function Wd(e){let t=$d.exec(e);if(t)return t[0].length;for(let n of Ud){let r=n.exec(e);if(r)return r[0].length}}function Hd(e){let t=[],n=e,r=!0;for(;n=n.replace(/^\s+/,""),n!=="";){if(n.startsWith(";")){n=n.slice(1),r=!0;continue}if(r){let i=qd(n);if(!i)break;t.push(i.node),n=n.slice(i.length);let o=/^\s*&/.exec(n);o?n=n.slice(o[0].length):r=!1}else{let i=Wd(n);if(i===void 0)break;n=n.slice(i),r=!0}}return t}function Xi(e){let t=e.split(/\r?\n/);return ke(t,he(t),ji)!==void 0}function Vi(e,t){let n=e.split(/\r?\n/),r=he(n),i=ke(n,r,ji),o=i?.match[1]??i?.match[2],a=o==="LR"||o==="RL"||o==="<"||o===">",s=new Set;return{...qe(n,r,t,{firstWins:!1,idIsLabel:!1},{statement:(l,u)=>{let d=Fd.exec(l);return d&&s.add(d[1]),Ld.test(l)?[]:Hd(u===i?.index?l.slice(i.match[0].length):l)},excluded:s}),horizontal:a}}var Qi=/^\s*stateDiagram(?:-v2)?(?=\s|$)/,Gd=/^\s*(classDef|class|style|click|direction|accTitle|accDescr|hide empty description|scale)(?=[\s:{]|$)/i,Wt='(\\[\\*\\]|[^:\\s{"-]+)',Jn="(?::::[\\w-]+)?",Kd=new RegExp(`^${Wt}${Jn}\\s*-->\\s*${Wt}${Jn}`),Zd=new RegExp(`^${Wt}\\s*:(?!::)(.*)$`),Jd=new RegExp(`^${Wt}${Jn}\\s*$`),Yd=/^state\s+"([^"]*)"\s*as\s+([^:\s{"]+)/,jd=/^state\s+([^:\s{"]+)/,Xd=/<<(?:fork|join|choice)>>|\[\[(?:fork|join|choice)\]\]/i,Vd=/^note\s/i,Zn=e=>e!=="[*]";function eo(e){let t=e.split(/\r?\n/);return ke(t,he(t),Qi)!==void 0}function to(e,t){let n=e.split(/\r?\n/),r=he(n),i=ke(n,r,Qi),o=!1,a=0,s=!1,c=new Set;return{...qe(n,r,t,{firstWins:!0,idIsLabel:!0},{statement:(p,f)=>{let g=(f===i?.index?p.slice(i.match[0].length):p).trim();if(Vd.test(g))return s=!g.includes(":")&&!/^note\s+"/i.test(g),[];if(o=(a===0?qt(g):void 0)??o,g.startsWith("}"))return a=Math.max(0,a-1),[];if(Gd.test(g)||g==="--")return[];if(/^state\s/.test(g)){let _=Yd.exec(g),x=_?.[2]??jd.exec(g)?.[1];return x?Xd.test(g)?(c.add(x),[]):(g.endsWith("{")&&a++,[{id:x,label:_?.[1],defines:!0}]):[]}let h=Kd.exec(g);if(h)return[h[1],h[2]].filter(Zn).map(_=>({id:_}));let m=Zd.exec(g);if(m)return Zn(m[1])?[{id:m[1],label:m[2].trim(),defines:!0}]:[];let b=Jd.exec(g);return b&&Zn(b[1])?[{id:b[1],defines:!0}]:[]},skip:p=>s?(s=!/^\s*end\s+note\b/i.test(p),!0):!1,excluded:c}),horizontal:o}}var Qd=/^<!--\s*table:([^]*?)-->\s*$/,Ht="seqNotesItemColumn";function Yn(e){let t=[],n=0,r=()=>{for(;n<e.length&&/\s/.test(e[n]);)n++},i=o=>{o.lastIndex=n;let a=o.exec(e),s=a&&a.index===n?a[0]:"";return n+=s.length,s};for(r();n<e.length;r()){let o=i(/[^\s=]+/g);if(e[n]!=="="){t.push({key:o||e[n++],values:[]});continue}n++;let a=[];for(;;){let s;if(e[n]==='"'){let l=e.indexOf('"',n+1);s=e.slice(n+1,l<0?e.length:l),n=l<0?e.length:l+1}else s=i(/[^\s,"]+/g);a.push(s.trim());let c=n;if(r(),e[n]!==","){n=c;break}n++,r()}t.push({key:o,values:a.filter(s=>s!=="")})}return t}function ef(e){let t=e.filter(i=>i!==void 0),n=t.length===0?0:Math.min(...t),r=[];return e.map(i=>{let o=i??n;for(;r.length>0&&r[r.length-1]>=o;)r.pop();return r.push(o),r.length-1})}function tf(e){let t=new Array(e.length),n=[];for(let o=e.length-1;o>=0;o--){let a=e[o];t[o]=n[a]===!0,n[a]=!0,n.length=a+1}let r=[];return{guides:e.map((o,a)=>{let s=[];for(let c=0;c<o-1;c++)s.push(r[c+1]?"pipe":"blank");return o>0&&s.push(t[a]?"tee":"elbow"),r[o]=t[a],s}),parent:e.map((o,a)=>a+1<e.length&&e[a+1]>o)}}function ro(e,t){let n=[],r=!1;for(let i=t+1;i<e.length&&e[i].type!=="table_close";i++){let o=e[i];o.type==="thead_open"||o.type==="thead_close"?r=o.type==="thead_open":o.type==="tr_open"?n.push({open:i,head:r,cells:[]}):(o.type==="th_open"||o.type==="td_open")&&e[i+1]?.type==="inline"&&n[n.length-1]?.cells.push({open:i,inline:e[i+1]})}return n}var no=e=>(e.children??[]).filter(t=>t.type==="text"||t.type==="code_inline"||t.type==="text_special").map(t=>t.content).join("").trim();function io(e,t,n){let r=[];for(let i=t;i<n;i++){let o=e[i].meta?.[Ht];if(!(e[i].type!=="table_open"||o===void 0))for(let a of ro(e,i)){let s=e[a.open].meta?.[Ht];s!==void 0&&r.push({index:a.open,cell:a.cells[o].open,line:e[a.open].map?.[0]??0,item:s})}}return r}function nf(e,t,n,r,i){let o=e.tokens,a=[],s=(T,y=r)=>{a.push({line:y,message:T})},c=ro(o,t),l=c.find(T=>T.head);if(!l)return a;let u=l.cells.map(T=>[T.inline.content.trim(),no(T.inline)]),d=new Set,p=T=>{let y=u.findIndex(D=>D.includes(T));if(y<0){s(i('No column "{0}" in the table.',T));return}return y},f=T=>{let y=p(T);if(y!==void 0){if(d.has(y)){s(i('Column "{0}" is given twice in the table options.',T));return}return d.add(y),y}},g,h=!1,m=!1,b=[];for(let T of n)if(T.key==="item"){if(m)s(i('Write "item=" only once in the table options.'));else if(T.values.length!==1)s(i('Write one column for the part numbers: "item=<column>".'));else{let y=p(T.values[0]);if(y!==void 0){o[t].meta={...o[t].meta,[Ht]:y};for(let D of c.filter(M=>!M.head&&M.cells[y]))o[D.open].meta={...o[D.open].meta,[Ht]:no(D.cells[y].inline)}}}m=!0}else if(T.key==="level")h?s(i('Write "level=" only once in the table options.')):T.values.length!==1?s(i('Write one column for the level: "level=<column>".')):g=f(T.values[0]),h=!0;else if(T.key==="merge"&&T.values.length>=2){let y=T.values.map(f).filter(D=>D!==void 0);y.length>=2&&b.push(y)}else T.key==="merge"?s(i('Write two or more columns to merge: "merge=<column>,<column>".')):s(i('Unknown table option "{0}". Write "level=<column>", "merge=<column>,<column>" or "item=<column>".',T.key));let _=T=>{let y=new e.Token("html_inline","",0);return y.content=T,y},x=T=>!T||T.inline.content.trim()==="",k=new Set,R=T=>{T&&!k.has(T.open)&&(k.add(T.open),o[T.open].attrJoin("class","seqnotes-cell-hidden"))},E=()=>{if(b.length===0&&g===void 0)return;o[t].attrJoin("class","seqnotes-item-table");let T=l.cells.filter(M=>!k.has(M.open)).pop();if(!T)return;o[T.open].attrJoin("class","seqnotes-table-plain-cell");let y=e.md.utils.escapeHtml(i("Show as a plain table")),D='<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M2.5 2.5h11v11h-11zM2.5 6h11M2.5 9.75h11M6.5 6v7.5M10 6v7.5" fill="none" stroke="currentColor" stroke-width="1.2"/></svg>';T.inline.children=[...T.inline.children??[],_(`<button type="button" class="seqnotes-table-plain-toggle" aria-pressed="false" aria-label="${y}" title="${y}">${D}</button>`)]};for(let T of c)for(let[y,...D]of b){let M=T.cells[y];if(!M)continue;let P=[_('<span class="seqnotes-cell-main">'),...M.inline.children??[],_("</span>")];for(let U of D){let H=T.cells[U];x(H)||P.push(_('<span class="seqnotes-cell-sub">'),...H.inline.children??[],_("</span>")),R(H)}M.inline.children=P}if(g===void 0)return E(),a;let v=g,A=v+1<u.length?v+1:v-1;A=b.find(T=>T.includes(A))?.[0]??A;let w=c.filter(T=>!T.head),N=ef(w.map(T=>{let y=ut(T.cells[v]?.inline.content.trim()??"");if(/^\d+$/.test(y))return Number(y);s(i('The level "{0}" is not an integer.',y),o[T.open].map?.[0]??r)})),{guides:C,parent:S}=tf(N);o[t].attrJoin("class","seqnotes-tree-table");for(let T of c)R(T.cells[v]);let I=A>=0?l.cells[A]:void 0;if(E(),!I)return a;o[I.open].attrJoin("class","seqnotes-tree-head");let O=e.md.utils.escapeHtml(i("Child rows"));return w.forEach((T,y)=>{let D=o[T.open];D.attrSet("data-seqnotes-depth",String(N[y]));let M=T.cells[A];if(!M)return;let P=o[M.open];P.attrJoin("class","seqnotes-tree-cell");let U=P.attrGet("style");P.attrSet("style",`${U?`${U};`:""}--seqnotes-depth:${N[y]}`);let H='<span class="seqnotes-tree-guides" aria-hidden="true">';H+=C[y].map(X=>`<span class="seqnotes-tree-${X}"></span>`).join(""),S[y]&&(D.attrJoin("class","seqnotes-tree-parent"),H+='<span class="seqnotes-tree-stem"></span>'),H+="</span>",S[y]&&(H+=`<button type="button" class="seqnotes-tree-toggle" aria-expanded="true" aria-label="${O}" title="${O}"></button>`),M.inline.children=[_(H),...M.inline.children??[]]}),a}var oo="seqNotesTableWarnings";function so(e){e.core.ruler.after("inline","seqnotes_table_options",t=>{let n=t.env?.t??ne,r=t.tokens;for(let i=0;i<r.length;i++){let o=r[i],a=o.type==="html_block"?Qd.exec(o.content.trim()):null;if(!a)continue;let s=o.map?.[0]??0,c=r[i+1]?.type==="table_open"?nf(t,i+1,Yn(a[1]),s,n):[{line:s,message:n("The table options are not followed by a table.")}];c.length>0&&(o.meta={...o.meta,[oo]:c})}})}function Gt(e){return e.flatMap(t=>t.meta?.[oo]??[])}var dt="script|style|textarea|title",ft=/([^\s"'>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g,gt=(e,t)=>e.utils.unescapeAll(t.replace(/\\/g,"\\\\"));var pt="wireframe",rf=/^[a-z][a-z0-9+.-]*:/i,Xn=e=>rf.test(e)||e.startsWith("//")||e.startsWith("#");function ge(e){let[t]=e.split(/[?#]/,1);try{return decodeURIComponent(t)}catch{return t}}var ao=e=>!Xn(e)&&/\.html?$/i.test(ge(e));function ht(e){let t=ut(e.trim());return/^\d+$/.test(t)?Number(t):void 0}function jn(e,t){return e.startsWith("/")?co(e):co(t.slice(0,t.lastIndexOf("/")+1)+e)}function co(e){let t=e.startsWith("/")?"/":"",n=[];for(let r of e.split("/"))r===""||r==="."||(r===".."&&n.length>0&&n[n.length-1]!==".."?n.pop():(r!==".."||t==="")&&n.push(r));return t+n.join("/")}var fo=new RegExp(`<!--[\\s\\S]*?(?:-->|$)|<(${dt})(?=[\\s/>])((?:[^>"']|"[^"]*"|'[^']*')*)>([\\s\\S]*?)(?:</\\1\\s*>|$)|<([a-zA-Z][\\w:-]*)((?:[^>"']|"[^"]*"|'[^']*')*)>`,"gi");function go(e,t){let n=new Map;for(let[,r,i,o,a]of t.matchAll(ft)){let s=r.toLowerCase();n.has(s)||n.set(s,gt(e,i??o??a??""))}return n}function lo(e,t,n,r){let i=!1;return t.replace(ft,(o,a,s,c,l)=>{if(i||a.toLowerCase()!==n)return o;i=!0;let u=r(gt(e,s??c??l??""));return u===void 0?o:`${a}="${e.utils.escapeHtml(u)}"`})}var po=e=>(e.get("rel")??"").toLowerCase().split(/\s+/).includes("stylesheet");function*ho(e,t){for(let n of t.matchAll(fo))n[4]!==void 0&&(yield{name:n[4].toLowerCase(),attributes:go(e,n[5])})}function of(e,t){let n=[];for(let{attributes:r}of ho(e,t)){let i=r.get("data-item");i!==void 0&&n.push({item:i,...r.has("data-ref")?{ref:r.get("data-ref")}:{}})}return n}function sf(e,t){let n=[];for(let{name:r,attributes:i}of ho(e,t)){let o=i.get("href");r==="link"&&o&&po(i)&&!Xn(o)&&!n.includes(o)&&n.push(o)}return n}var af=/url\(\s*(['"]?)([^'")]*)\1\s*\)/gi,cf=new Set(["img","input"]);function mo(e,t,n,r){let i=ge(n),o=s=>c=>{if(c===""||Xn(c))return;let l=/[?#].*$/s.exec(c)?.[0]??"";return r(encodeURI(jn(ge(c),s))+l)},a=(s,c)=>s.replace(af,(l,u,d)=>{let p=o(c)(d);return p===void 0?l:`url("${p.replace(/["\\]/g,"\\$&")}")`});return t.html.replace(fo,(s,c,l,u,d,p)=>{if(c?.toLowerCase()==="style")return`<style${l}>${a(u??"",i)}</style>`;if(d===void 0||p===void 0)return s;let f=d.toLowerCase();if(f==="link"){let h=go(e,p),m=h.get("href"),b=m===void 0?void 0:t.stylesheets[m];if(b!==void 0&&po(h))return`<style>${a(b,jn(ge(m),i)).replace(/<\/style/gi,"<\\/style")}</style>`}let g=lo(e,p,"style",h=>/url\(/i.test(h)?a(h,i):void 0);return cf.has(f)&&(g=lo(e,g,"src",o(i))),g===p?s:`<${d}${g}>`})}async function bo(e,t,n){let r={};return await Promise.all(t.map(async i=>{let o=ge(i),a=await n(o);if(a===void 0){r[i]=null;return}let s={};await Promise.all(sf(e,a).map(async c=>{let l=jn(ge(c),o),u=/\.css$/i.test(l)?await n(l):void 0;u!==void 0&&(s[c]=u)})),r[i]={html:a,stylesheets:s}})),r}function lf(e,t){let n=(t?.children??[]).filter(o=>o.type!=="softbreak"&&!(o.type==="text"&&o.content.trim()==="")),[r]=n;if(n.length===1&&r.type==="image"){let o=String(r.attrGet("src")??"");return ao(o)?o:void 0}let i=n[n.length-1];if(e.level===0&&n.length>=2&&r.type==="link_open"&&i.type==="link_close"&&n.filter(o=>o.type==="link_open").length===1){let o=String(r.attrGet("href")??"");return ao(o)?o:void 0}}function uf(e){return(e.children??[]).map(t=>t.type==="image"||t.type==="text"||t.type==="code_inline"?t.content:"").join("").trim()}var df=/^<!--\s*wireframe:([^]*?)-->\s*$/,uo=/^item\.(.+)$/,_o="seqNotesWireframeWarnings";function ff(e,t,n,r){let i={linkHeadings:!1,stacked:!1,line:t};for(let o of Yn(e))if(o.key==="link-headings"&&o.values.length===0)i.linkHeadings=!0;else if(o.key==="stacked"&&o.values.length===0)i.stacked=!0;else if(uo.test(o.key)){let a=ht(uo.exec(o.key)[1]),s=o.values.join(", ").trim();a===void 0||s===""?r.push({line:t,message:n(`Write the selector of a part of the wireframe: 'item.<number>="<selector>"'.`)}):(i.items??=[]).push({number:a,selector:s})}else if(o.key==="width"){let a=o.values.length===1?ht(o.values[0].replace(/px$/i,"")):void 0;a?i.width=a:r.push({line:t,message:n('Write the width of the wireframe in pixels: "width=<number>".')})}else r.push({line:t,message:n(`Unknown wireframe option "{0}". Write "link-headings", "width=<pixels>", "stacked" or 'item.<number>="<selector>"'.`,o.key)});return i}function Eo(e){e.core.ruler.after("inline","seqnotes_wireframes",t=>{let n=t.env,r=n?.t??ne,i=t.tokens;for(let o=0;o<i.length;o++){let a=i[o].type==="paragraph_open"&&i[o+2]?.type==="paragraph_close"?lf(i[o],i[o+1]):void 0;if(a===void 0)continue;let s=i[o],c=new t.Token(pt,"div",0);c.block=!0,c.level=s.level,c.map=s.map;let l=n?.wireframes?.[a],u={src:a,alt:uf(i[o+1]),options:{linkHeadings:!1,stacked:!1},file:l,...l?{parts:of(t.md,l.html)}:{}};c.meta={wireframe:u},i.splice(o,3,c)}for(let o=0;o<i.length;o++){let a=i[o],s=a.type==="html_block"?df.exec(a.content.trim()):null;if(!s)continue;let c=a.map?.[0]??0,l=[],u=i[o+1];u?.type===pt?u.meta.wireframe.options=ff(s[1],c,r,l):l.push({line:c,message:r("The wireframe options are not followed by a wireframe.")}),l.length>0&&(a.meta={...a.meta,[_o]:l})}})}function We(e){return e.type===pt?e.meta.wireframe:void 0}function wo(e){return[...new Set(e.map(We).filter(t=>t!==void 0).map(t=>t.src))]}function ko(e){return e.flatMap(t=>t.meta?.[_o]??[])}var gf=/^\s*<!--\s*link-headings:end\s*-->\s*$/,pf=/^\s*<!--\s*seq-notes:end\s*-->\s*$/,xo=[{kind:"flowchart",is:Xi,parse:Vi},{kind:"er",is:Zi,parse:Ji},{kind:"state",is:eo,parse:to}];function He(e){return e.type==="fence"&&e.info.trim().split(/\s+/)[0]==="mermaid"}function hf(e){if(He(e))return qi(e.content)?"sequence":xo.find(t=>t.is(e.content))?.kind}function mt(e){return e?e.children?e.children.map(t=>{switch(t.type){case"text":case"code_inline":return t.content;case"softbreak":case"hardbreak":return" ";default:return""}}).join(""):e.content:""}function mf(e){let t=new Map;for(let r of e)t.set(r,(t.get(r)??0)+1);let n;for(let[r,i]of t){let o=n===void 0?0:t.get(n);(i>o||i===o&&r<n)&&(n=r)}return n}function bf(e,t,n,r,i,o){let a=(e.map?.[0]??0)+1,s=Ne(n,i),c=xo.find(b=>b.kind===n)?.parse(e.content,a),l,u;c?u={messages:c.nodes,markerLine:c.markerLine,legacyMarkerLine:c.legacyMarkerLine}:u=l=Wi(e.content,a);let{messages:d,markerLine:p,legacyMarkerLine:f}=u;if(f!==void 0&&o.push({line:f,message:i('"%% @seq-notes" is no longer supported. Write "%% @link-headings" instead.')}),p===void 0)for(let b of d.filter(_=>_.ref!==void 0))o.push({line:b.refLine??b.line,message:s.refWithoutMarker});else e.level!==0&&o.push({line:p,message:s.markerNotTopLevel});let g=p!==void 0&&e.level===0,h=c?.horizontal??!1,m={id:r,kind:n,fenceIndex:t,rangeEnd:t+1,messages:d,unlinkedHeadings:[],headings:[],paired:g,stacked:h,rows:[]};return l&&(p===void 0||g)&&Object.assign(m,_f(l,p!==void 0,i,o)),m}function _f(e,t,n,r){let i=Ut(n),{notes:o,anchors:a,strayDirectives:s}=e;if(!t){let l=[...a.map(u=>u.markerLine),...o.map(u=>u.gotoLine),...s.map(u=>u.line)];for(let u of l.filter(d=>d!==void 0).sort((d,p)=>d-p))r.push({line:u,message:i.withoutMarker});return{}}for(let l of s){let u={anchor:i.strayAnchor,goto:i.strayGoto,gotoOnLabel:i.gotoOnLabel};r.push({line:l.line,message:u[l.directive]})}let c=new Map;for(let l of a)if(c.has(l.name)){r.push({line:l.markerLine??l.line,message:i.duplicateAnchor(l.name)});let u=l.note===void 0?void 0:o[l.note];u&&delete u.anchor}else c.set(l.name,{...l});for(let l of o)l.goto!==void 0&&!c.has(l.goto)&&(r.push({line:l.gotoLine??l.line,message:i.gotoNotFound(l.goto)}),delete l.goto);return{notes:o,anchors:[...c.values()]}}function Ef(e,t,n,r,i){let{src:o,options:a,file:s,parts:c}=We(e),l=e.map?.[0]??0,u=[];s===null&&i.push({line:l,message:r('The wireframe "{0}" could not be read.',ge(o))});for(let p of c??[]){let f=ht(p.item);f===void 0?i.push({line:l,message:r('data-item "{0}" of the wireframe "{1}" is not a number.',p.item,ge(o))}):u.some(g=>g.nodeId===String(f))||u.push({index:u.length,line:l,text:String(f),nodeId:String(f),...p.ref!==void 0?{ref:p.ref}:{}})}for(let{number:p}of s?a.items??[]:[])u.some(f=>f.nodeId===String(p))||u.push({index:u.length,line:a.line??l,text:String(p),nodeId:String(p)});a.linkHeadings&&e.level!==0&&i.push({line:a.line??l,message:Ne("wireframe",r).markerNotTopLevel});let d=a.linkHeadings&&e.level===0;return{id:n,kind:"wireframe",fenceIndex:t,rangeEnd:t+1,messages:u,unlinkedHeadings:[],headings:[],paired:d,stacked:a.stacked,rows:[]}}function Kt(e,t=ne){let n=[...ko(e)],r=[];e.forEach((o,a)=>{let s=hf(o);s?r.push(bf(o,a,s,r.length,t,n)):We(o)&&r.push(Ef(o,a,r.length,t,n))});let i=new Set(r.filter(o=>o.paired).map(o=>o.fenceIndex));for(let o of e)o.level===0&&o.type==="html_block"&&pf.test(o.content)&&n.push({line:o.map?.[0]??0,message:t('"<!-- seq-notes:end -->" is no longer supported. Write "<!-- link-headings:end -->" instead.')});for(let o of r.filter(a=>a.paired)){let a=o.fenceIndex,s=a+1;for(;s<e.length;){let h=e[s];if(i.has(s)||h.level===0&&h.type==="html_block"&&gf.test(h.content)||h.type==="footnote_block_open")break;s++}o.rangeEnd=s;let c=new Map,l=new Map,u=new Map,d=o.headings;for(let h=a+1;h<s;h++){let m=e[h],b=m.type==="heading_open"?m.attrGet("id"):null;if(b){let _=le(mt(e[h+1]));m.level===0&&d.push({index:h,id:String(b),level:Number(m.tag.slice(1)),line:m.map?.[0]??0,text:_,refTarget:!c.has(_)}),c.has(_)||c.set(_,String(b));let x=Hi(_);x&&(u.set(String(b),x),l.set(x.text,[...l.get(x.text)??[],String(b)]))}}let p=Ne(o.kind,t);if(o.kind==="wireframe")wf(o,e,c,l,u,p,n);else for(let h of o.messages){let m=le(h.ref??h.text),b=h.number,_=l.get(m)??[],x=c.get(m)??_.find(k=>Number(u.get(k).value)===b)??_[0];if(x){h.target=x;let k=u.get(x);k&&b!==void 0&&(h.numberInHeading=Number(k.value)===b)}else h.ref!==void 0&&n.push({line:h.refLine??h.line,message:p.refNotFound(h.ref)})}for(let h of o.anchors??[])h.firstTarget=o.messages.slice(h.firstMessage,h.endMessage).find(m=>m.target)?.target;let f=new Set(o.messages.map(h=>h.target).filter(h=>h!==void 0));if(f.size===0)continue;for(let h of o.messages.filter(m=>!m.target&&m.labeled!==!1))h.unlinked=!0;for(let h of o.rows.filter(m=>!m.target))h.unlinked=!0;let g=mf(d.filter(h=>f.has(h.id)).map(h=>h.level));o.stepLevel=g,o.unlinkedHeadings=d.filter(h=>h.level===g&&!f.has(h.id)).map(h=>h.index)}return n.sort((o,a)=>o.line-a.line),{diagrams:r,warnings:n}}function yo(e){let t=new Map(e.headings.map(r=>[r.id,r.text])),n=new Set(e.messages.filter(r=>r.numberInHeading===!1&&le(r.ref??r.text)!==t.get(r.target)).map(r=>r.target));return e.headings.filter(r=>n.has(r.id)).map(r=>({heading:r,numbers:e.messages.filter(i=>i.target===r.id&&i.number!==void 0).map(i=>i.number).sort((i,o)=>i-o)}))}function wf(e,t,n,r,i,o,a){let s=new Map;for(let[l,u]of i){let d=Number(u.value);s.has(d)||s.set(d,l)}let c=new Map(e.messages.map(l=>[Number(l.nodeId),l]));for(let[l,u]of c){if(u.ref===void 0){u.target=s.get(l);continue}let d=le(u.ref);u.target=n.get(d)??r.get(d)?.[0],u.target===void 0&&a.push({line:u.line,message:o.refNotFound(u.ref)})}e.rows=io(t,e.fenceIndex+1,e.rangeEnd);for(let l of e.rows){let u=ht(l.item),d=u===void 0?void 0:c.get(u);d&&(d.target??=`seqnotes-part-${e.id}-${u}`,l.target=d.target)}}function kf(e,t,n,r){let i=Number(e[t].meta.id+1).toString(),o="";return typeof r.docId=="string"&&(o=`-${r.docId}-`),o+i}function xf(e,t){let n=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(n+=`:${e[t].meta.subId}`),`[${n}]`}function yf(e,t,n,r,i){let o=i.rules.footnote_anchor_name(e,t,n,r,i),a=i.rules.footnote_caption(e,t,n,r,i),s=o;return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`<sup class="footnote-ref"><a href="#fn${o}" id="fnref${s}">${a}</a></sup>`}function vf(e,t,n){return(n.xhtmlOut?`<hr class="footnotes-sep" />
25
+ `}return r}render(e,t,n){let r="",i=this.rules;for(let o=0,a=e.length;o<a;o++){let s=e[o].type;s==="inline"?r+=this.renderInline(e[o].children,t,n):typeof i[s]<"u"?r+=i[s](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r}},Mi=class{constructor(e,t,n){F(this,"tokens",[]),F(this,"inlineMode",!1),F(this,"Token",Ie),this.src=e,this.env=n,this.md=t}},eu=/\r\n?/g,tu=/\0/g;function nu(e){let t;t=e.src.replace(eu,`
26
+ `),t=t.replace(tu,"\uFFFD"),e.src=t}function ru(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function iu(e){let t=e.tokens,n=0;for(let r=0;r<t.length;r++)t[r].type!=="reference_definition"&&(r!==n&&(t[n]=t[r]),n++);t.length!==n&&(t.length=n)}function ou(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let i=t[n];i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}function su(e){return/^<a[>\s]/i.test(e)}function au(e){return/^<\/a\s*>/i.test(e)}function cu(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.test(t[n].content))continue;let i=t[n].children,o=[],a=0;for(let s=i.length-1;s>=0;s--){let c=i[s];if(c.type==="link_close"){for(s--;i[s].level!==c.level&&i[s].type!=="link_open";)s--;continue}if(c.type==="html_inline"&&(su(c.content)&&a>0&&a--,au(c.content)&&a++),!(a>0)&&c.type==="text"&&e.md.linkify.test(c.content)){let l=c.content,u=e.md.linkify.match(l),d=[],p=c.level,f=0;u.length>0&&u[0].index===0&&s>0&&i[s-1].type==="text_special"&&(u=u.slice(1));for(let g=0;g<u.length;g++){let h=u[g].url,m=e.md.normalizeLink(h);if(!e.md.validateLink(m))continue;let E=u[g].text;u[g].schema?u[g].schema==="mailto:"&&!/^mailto:/i.test(E)?E=e.md.normalizeLinkText(`mailto:${E}`).replace(/^mailto:/,""):E=e.md.normalizeLinkText(E):E=e.md.normalizeLinkText(`http://${E}`).replace(/^http:\/\//,"");let _=u[g].index;if(_>f){let w=new e.Token("text","",0);w.content=l.slice(f,_),w.level=p,d.push(w)}let k=new e.Token("link_open","a",1);k.attrs=[["href",m]],k.level=p++,k.markup="linkify",k.info="auto",d.push(k);let x=new e.Token("text","",0);x.content=E,x.level=p,d.push(x);let v=new e.Token("link_close","a",-1);v.level=--p,v.markup="linkify",v.info="auto",d.push(v),f=u[g].lastIndex}if(f<l.length){let g=new e.Token("text","",0);g.content=l.slice(f),g.level=p,d.push(g)}o.push({index:s,nodes:d})}}if(o.length>0){let s=i.length;for(let d of o)s+=d.nodes.length-1;let c=new Array(s),l=0,u=0;o.reverse();for(let d=0;d<i.length;d++){let p=o[l];if(p?.index===d){for(let f of p.nodes)c[u++]=f;l++}else c[u++]=i[d]}t[n].children=c}}}var Ii=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,lu=/\((c|tm|r)\)/i,uu=/\((c|tm|r)\)/gi,du={c:"\xA9",r:"\xAE",tm:"\u2122"};function fu(e,t){return du[t.toLowerCase()]}function gu(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(uu,fu)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function pu(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type==="text"&&!t&&Ii.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function hu(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(lu.test(e.tokens[t].content)&&gu(e.tokens[t].children),Ii.test(e.tokens[t].content)&&pu(e.tokens[t].children))}var mu=/['"]/,bi=/['"]/g,_i="\u2019",bu=1e3;function Ei(e,t,n){for(;e.length>n;){let r=e.pop();r.isSingleQuote?t.single=r.prevSameQuoteIdx:t.double=r.prevSameQuoteIdx}}function Ot(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function _u(e,t){let n="",r=0;t.sort((i,o)=>i.pos-o.pos);for(let i=0;i<t.length;i++){let o=t[i];n+=e.slice(r,o.pos)+o.ch,r=o.pos+1}return n+e.slice(r)}function Eu(e,t){let n,r=[],i={single:-1,double:-1},o={};for(let a=0;a<e.length;a++){let s=e[a],c=e[a].level;for(n=r.length-1;n>=0&&!(r[n].level<=c);n--);if(Ei(r,i,n+1),s.type!=="text")continue;let l=s.content,u=0,d=l.length;e:for(;u<d;){bi.lastIndex=u;let p=bi.exec(l);if(!p)break;let f=!0,g=!0;u=p.index+1;let h=p[0]==="'",m=32;if(p.index-1>=0)m=l.charCodeAt(p.index-1);else for(n=a-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let E=32;if(u<d)E=l.charCodeAt(u);else for(n=a+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){E=e[n].content.charCodeAt(0);break}let _=at(m)||st(m),k=at(E)||st(E),x=ot(m),v=ot(E);if(v?f=!1:k&&(x||_||(f=!1)),x?g=!1:_&&(v||k||(g=!1)),E===34&&p[0]==='"'&&m>=48&&m<=57&&(g=f=!1),f&&g&&(f=_,g=k),!f&&!g){h&&Ot(o,a,p.index,_i);continue}if(g&&(n=h?i.single:i.double,n>=0&&r[n].level===c)){let w=r[n],R,A;h?(R=t.md.options.quotes[2],A=t.md.options.quotes[3]):(R=t.md.options.quotes[0],A=t.md.options.quotes[1]),Ot(o,a,p.index,A),Ot(o,w.tokenIdx,w.contentPos,R),Ei(r,i,n);continue e}if(f){if(r.length>=bu)return;r.push({tokenIdx:a,contentPos:p.index,isSingleQuote:h,level:c,prevSameQuoteIdx:h?i.single:i.double}),h?i.single=r.length-1:i.double=r.length-1}else g&&h&&Ot(o,a,p.index,_i)}}Object.keys(o).forEach(function(a){let s=Number(a);e[s].content=_u(e[s].content,o[a])})}function wu(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!mu.test(e.tokens[t].content)||Eu(e.tokens[t].children,e)}function ku(e){let t,n,r=e.length;for(t=0;t<r;t++)e[t].type==="text_special"&&(e[t].type="text");for(t=n=0;t<r;t++)e[t].type==="text"&&t+1<r&&e[t+1].type==="text"?e[t+1].content=e[t].content+e[t+1].content:(t!==n&&(e[n]=e[t]),n++);t!==n&&(e.length=n)}function xu(e){let t,n,r=e.tokens,i=r.length;for(let o=0;o<i;o++){if(r[o].type!=="inline")continue;let a=r[o].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text"),a[t].children&&ku(a[t].children);for(t=n=0;t<s;t++)a[t].type==="text"&&t+1<s&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}var $n=[["normalize",nu],["block",ru],["strip_references",iu],["inline",ou],["linkify",cu],["replacements",hu],["smartquotes",wu],["text_join",xu]],Oi=class{constructor(){F(this,"ruler",new lt),F(this,"State",Mi);for(let e=0;e<$n.length;e++)this.ruler.push($n[e][0],$n[e][1])}process(e){let t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)}},Li=class{constructor(e,t,n,r){F(this,"bMarks",[]),F(this,"eMarks",[]),F(this,"tShift",[]),F(this,"sCount",[]),F(this,"bsCount",[]),F(this,"blkIndent",0),F(this,"line",0),F(this,"lineMax",0),F(this,"tight",!1),F(this,"listIndent",-1),F(this,"parentType","root"),F(this,"level",0),F(this,"Token",Ie),this.src=e,this.md=t,this.env=n,this.tokens=r;let i=this.src;for(let o=0,a=0,s=0,c=0,l=i.length,u=!1;a<l;a++){let d=i.charCodeAt(a);if(!u)if(ee(d)){s++,d===9?c+=4-c%4:c++;continue}else u=!0;(d===10||a===l-1)&&(d!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(c),this.bsCount.push(0),u=!1,s=0,c=0,o=a+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}push(e,t,n){let r=new Ie(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}skipSpaces(e){for(let t=this.src.length;e<t&&ee(this.src.charCodeAt(e));e++);return e}skipSpacesBack(e,t){if(e<=t)return e;for(;e>t;)if(!ee(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e}skipCharsBack(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,r){if(e>=t)return"";let i=new Array(t-e);for(let o=0,a=e;a<t;a++,o++){let s=0,c=this.bMarks[a],l=c,u;for(a+1<t||r?u=this.eMarks[a]+1:u=this.eMarks[a];l<u&&s<n;){let d=this.src.charCodeAt(l);if(ee(d))d===9?s+=4-(s+this.bsCount[a])%4:s++;else if(l-c<this.tShift[a])s++;else break;l++}s>n?i[o]=new Array(s-n+1).join(" ")+this.src.slice(l,u):i[o]=this.src.slice(l,u)}return i.join("")}},yu=65536;function Un(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function wi(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),o=!1,a=0,s="";for(;r<n;)i===124&&(o?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),o=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function vu(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;let a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=e.eMarks[i])return!1;let s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!ee(s)||a===45&&ee(s))return!1;for(;o<e.eMarks[i];){let x=e.src.charCodeAt(o);if(x!==124&&x!==45&&x!==58&&!ee(x))return!1;o++}let c=Un(e,t+1),l=c.split("|"),u=[];for(let x=0;x<l.length;x++){let v=l[x].trim();if(!v){if(x===0||x===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;v.charCodeAt(v.length-1)===58?u.push(v.charCodeAt(0)===58?"center":"right"):v.charCodeAt(0)===58?u.push("left"):u.push("")}if(c=Un(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=wi(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let p=e.parentType;e.parentType="table";let f=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),h=[t,0];g.map=h;let m=e.push("thead_open","thead",1);m.map=[t,t+1];let E=e.push("tr_open","tr",1);E.map=[t,t+1];for(let x=0;x<l.length;x++){let v=e.push("th_open","th",1);u[x]&&(v.attrs=[["style",`text-align:${u[x]}`]]);let w=e.push("inline","",0);w.content=l[x].trim(),w.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let _,k=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let x=!1;for(let w=0,R=f.length;w<R;w++)if(f[w](e,i,n,!0)){x=!0;break}if(x||(c=Un(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=wi(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),k+=d-l.length,k>yu))break;if(i===t+2){let w=e.push("tbody_open","tbody",1);w.map=_=[t+2,0]}let v=e.push("tr_open","tr",1);v.map=[i,i+1];for(let w=0;w<d;w++){let R=e.push("td_open","td",1);u[w]&&(R.attrs=[["style",`text-align:${u[w]}`]]);let A=e.push("inline","",0);A.content=l[w]?l[w].trim():"",A.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return _&&(e.push("tbody_close","tbody",-1),_[1]=i),e.push("table_close","table",-1),h[1]=i,e.parentType=p,e.line=i,!0}function Ru(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;let o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+`
27
+ `,o.map=[t,e.line],!0}function Au(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>o)return!1;let a=e.src.charCodeAt(i);if(a!==126&&a!==96)return!1;let s=i;i=e.skipChars(i,a);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,o);if(a===96&&u.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let d=t,p=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],i<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,a),!(i-s<c)&&(i=e.skipSpaces(i),!(i<o)))){p=!0;break}c=e.sCount[t],e.line=d+(p?1:0);let f=e.push("fence","code",0);return f.info=u,f.content=e.getLines(t+1,d,c,!0),f.markup=l,f.map=[t,e.line],!0}function Cu(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let f=!1,g;for(g=t;g<n;g++){let k=e.sCount[g]<e.blkIndent;if(i=e.bMarks[g]+e.tShift[g],o=e.eMarks[g],i>=o)break;if(e.src.charCodeAt(i++)===62&&!k){let v=e.sCount[g]+1,w,R;e.src.charCodeAt(i)===32?(i++,v++,R=!1,w=!0):e.src.charCodeAt(i)===9?(w=!0,(e.bsCount[g]+v)%4===3?(i++,v++,R=!1):R=!0):w=!1;let A=v;for(s.push(e.bMarks[g]),e.bMarks[g]=i;i<o;){let b=e.src.charCodeAt(i);if(ee(b))b===9?A+=4-(A+e.bsCount[g]+(R?1:0))%4:A++;else break;i++}f=i>=o,c.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(w?1:0),l.push(e.sCount[g]),e.sCount[g]=A-v,u.push(e.tShift[g]),e.tShift[g]=i-e.bMarks[g];continue}if(f)break;let x=!1;for(let v=0,w=d.length;v<w;v++)if(d[v](e,g,n,!0)){x=!0;break}if(x){e.lineMax=g,e.blkIndent!==0&&(s.push(e.bMarks[g]),c.push(e.bsCount[g]),u.push(e.tShift[g]),l.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}s.push(e.bMarks[g]),c.push(e.bsCount[g]),u.push(e.tShift[g]),l.push(e.sCount[g]),e.sCount[g]=-1}let h=e.blkIndent;e.blkIndent=0;let m=e.push("blockquote_open","blockquote",1);m.markup=">";let E=[t,0];m.map=E,e.md.block.tokenize(e,t,g);let _=e.push("blockquote_close","blockquote",-1);_.markup=">",e.lineMax=a,e.parentType=p,E[1]=e.line;for(let k=0;k<u.length;k++)e.bMarks[k+t]=s[k],e.tShift[k+t]=u[k],e.sCount[k+t]=l[k],e.bsCount[k+t]=c[k];return e.blkIndent=h,!0}function Tu(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t],a=e.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o<i;){let l=e.src.charCodeAt(o++);if(l!==a&&!ee(l))return!1;l===a&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(a)),!0}function ki(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!ee(e.src.charCodeAt(r))?-1:r}function xi(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=e.src.charCodeAt(i++),o>=48&&o<=57){if(i-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return i<r&&(o=e.src.charCodeAt(i),!ee(o))?-1:i}function Nu(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Su(e,t,n,r){let i,o,a,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,p,f;if((f=xi(e,c))>=0){if(d=!0,a=e.bMarks[c]+e.tShift[c],p=Number(e.src.slice(a,f-1)),u&&p!==1)return!1}else if((f=ki(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(f)>=e.eMarks[c])return!1;if(r)return!0;let g=e.src.charCodeAt(f-1),h=e.tokens.length;d?(s=e.push("ordered_list_open","ol",1),p!==1&&(s.attrs=[["start",p]])):s=e.push("bullet_list_open","ul",1);let m=[c,0];s.map=m,s.markup=String.fromCharCode(g);let E=!1,_=e.md.block.ruler.getRules("list"),k=e.parentType;for(e.parentType="list";c<n;){o=f,i=e.eMarks[c];let x=e.sCount[c]+f-(e.bMarks[c]+e.tShift[c]),v=x;for(;o<i;){let C=e.src.charCodeAt(o);if(C===9)v+=4-(v+e.bsCount[c])%4;else if(C===32)v++;else break;o++}let w=o,R;w>=i?R=1:R=v-x,R>4&&(R=1);let A=x+R;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(g);let b=[c,0];s.map=b,d&&(s.info=e.src.slice(a,f-1));let S=e.tight,T=e.tShift[c],M=e.sCount[c],I=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=A,e.tight=!0,e.tShift[c]=w-e.bMarks[c],e.sCount[c]=v,w>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n),(!e.tight||E)&&(l=!1),E=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=I,e.tShift[c]=T,e.sCount[c]=M,e.tight=S,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(g),c=e.line,b[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let L=!1;for(let C=0,y=_.length;C<y;C++)if(_[C](e,c,n,!0)){L=!0;break}if(L)break;if(d){if(f=xi(e,c),f<0)break;a=e.bMarks[c]+e.tShift[c]}else if(f=ki(e,c),f<0)break;if(g!==e.src.charCodeAt(f-1))break}return d?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(g),m[1]=c,e.line=c,e.parentType=k,l&&Nu(e,h),!0}var zn=999;function Du(e){let t=e.length;for(let n=0;n<e.length-1;n++){let r=e.charCodeAt(n);if(r<55296||r>56319)continue;let i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(t--,n++)}return t}function rt(e,t){return Math.min(e.eMarks[t]+1,e.src.length)}function Lt(e,t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return-1;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let i=e.md.block.ruler.getRules("reference"),o=e.parentType;e.parentType="reference";let a=!1;for(let s=0,c=i.length;s<c;s++)if(i[s](e,t,n,!0)){a=!0;break}if(e.parentType=o,a)return-1}return e.bMarks[t]+e.tShift[t]}function Mu(e,t,n,r){let i=e.src,o=e.bMarks[t]+e.tShift[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||i.charCodeAt(o)!==91)return!1;let s=rt(e,t),c="",l=-1,u=++o;for(;o<s;){if(c.length+o-u>zn*2)return!1;let w=i.charCodeAt(o);if(w===91)return!1;if(w===93){l=o;break}if(w===92&&(w=i.charCodeAt(++o)),w===10&&o<s){let R=Lt(e,a);if(R<0)return!1;c+=i.slice(u,s),o=u=R,s=rt(e,a++);continue}o++}if(l<0||i.charCodeAt(l+1)!==58||(c+=i.slice(u,l),c.length>zn&&Du(c)>zn))return!1;for(o=l+2;o<s;){let w=i.charCodeAt(o);if(w===10){let R=Lt(e,a);if(R<0)break;o=R,s=rt(e,a++)}else if(ee(w))o++;else break}let d=e.md.helpers.parseLinkDestination(i,o,s);if(!d.ok)return!1;let p=e.md.normalizeLink(d.str);if(!e.md.validateLink(p))return!1;o=d.pos;let f=o,g=s,h=a;for(;o<s;){let w=i.charCodeAt(o);if(w===10){let R=Lt(e,a);if(R<0)break;o=R,s=rt(e,a++)}else if(ee(w))o++;else break}let m=o,E=e.md.helpers.parseLinkTitle(i,o,s);for(;E.can_continue;){let w=Lt(e,a);if(w<0)break;o=w,s=rt(e,a++),E=e.md.helpers.parseLinkTitle(i,o,s,E)}let _;for(m!==f&&E.ok?(_=E.str,o=E.pos):(_="",o=f,s=g,a=h);o<s&&ee(i.charCodeAt(o));)o++;if(o<s&&i.charCodeAt(o)!==10&&_)for(_="",o=f,s=g,a=h;o<s&&ee(i.charCodeAt(o));)o++;if(o<s&&i.charCodeAt(o)!==10)return!1;let k=Bt(c);if(!k)return!1;if(r)return!0;typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[k]>"u"&&(e.env.references[k]={title:_,href:p});let x=e.push("reference_definition","",0);x.map=[t,a],x.hidden=!0;let v=Object.create(null);return v.label=k,x.meta=v,e.line=a,!0}var Iu=["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"],Fi=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Bi="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";new RegExp(`^(?:${Fi}|${Bi}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`);var Pi=new RegExp(`^(?:${Fi}|${Bi})`),Me=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp(`^</?(${Iu.join("|")})(?=(\\s|/?>|$))`,"i"),/^$/,!0],[new RegExp(`${Pi.source}\\s*$`),/^$/,!1]];function Ou(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let a=e.src.slice(i,o),s=0;for(;s<Me.length&&!Me[s][0].test(a);s++);if(s===Me.length)return!1;if(r)return Me[s][2];let c=t+1,l=Me[s][1].test("");if(!Me[s][1].test(a)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],o=e.eMarks[c],a=e.src.slice(i,o),Me[s][1].test(a)){a.length!==0&&c++;break}}e.line=c;let u=e.push("html_block","",0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function Lu(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(i);if(a!==35||i>=o)return!1;let s=1;for(a=e.src.charCodeAt(++i);a===35&&i<o&&s<=6;)s++,a=e.src.charCodeAt(++i);if(s>6||i<o&&!ee(a))return!1;if(r)return!0;o=e.skipSpacesBack(o,i);let c=e.skipCharsBack(o,35,i);c>i&&ee(e.src.charCodeAt(c-1))&&(o=c),e.line=t+1;let l=e.push("heading_open",`h${s}`,1);l.markup="########".slice(0,s),l.map=[t,e.line];let u=e.push("inline","",0);u.content=Pt(e.src.slice(i,o)),u.map=[t,e.line],u.children=[];let d=e.push("heading_close",`h${s}`,-1);return d.markup="########".slice(0,s),!0}function Fu(e,t,n){let r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType="paragraph";let o=0,a,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let f=e.bMarks[s]+e.tShift[s],g=e.eMarks[s];if(f<g&&(a=e.src.charCodeAt(f),(a===45||a===61)&&(f=e.skipChars(f,a),f=e.skipSpaces(f),f>=g))){o=a===61?1:2;break}}if(e.sCount[s]<0)continue;let p=!1;for(let f=0,g=r.length;f<g;f++)if(r[f](e,s,n,!0)){p=!0;break}if(p)break}if(!o)return e.parentType=i,!1;let c=Pt(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push("heading_open",`h${o}`,1);l.markup=String.fromCharCode(a),l.map=[t,e.line];let u=e.push("inline","",0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push("heading_close",`h${o}`,-1);return d.markup=String.fromCharCode(a),e.parentType=i,!0}function Bu(e,t,n){let r=e.md.block.ruler.getRules("paragraph"),i=e.parentType,o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let l=!1;for(let u=0,d=r.length;u<d;u++)if(r[u](e,o,n,!0)){l=!0;break}if(l)break}let a=Pt(e.getLines(t,o,e.blkIndent,!1));e.line=o;let s=e.push("paragraph_open","p",1);s.map=[t,e.line];let c=e.push("inline","",0);return c.content=a,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}var Ft=[["table",vu,["paragraph","reference"]],["code",Ru],["fence",Au,["paragraph","reference","blockquote","list"]],["blockquote",Cu,["paragraph","reference","blockquote","list"]],["hr",Tu,["paragraph","reference","blockquote","list"]],["list",Su,["paragraph","reference","blockquote"]],["reference",Mu],["html_block",Ou,["paragraph","reference","blockquote"]],["heading",Lu,["paragraph","reference","blockquote"]],["lheading",Fu],["paragraph",Bu]],$i=class{constructor(){F(this,"ruler",new lt),F(this,"State",Li);for(let e=0;e<Ft.length;e++)this.ruler.push(Ft[e][0],Ft[e][1],{alt:(Ft[e][2]||[]).slice()})}tokenize(e,t,n){let r=this.ruler.getRules(""),i=r.length,o=e.md.options.maxNesting,a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=o){e.line=n;break}let c=e.line,l=!1;for(let u=0;u<i;u++)if(l=r[u](e,a,n,!1),l){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}}parse(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)}},Ui=class{constructor(e,t,n,r){F(this,"pos",0),F(this,"level",0),F(this,"pending",""),F(this,"pendingLevel",0),F(this,"cache",{}),F(this,"backticks",{}),F(this,"backticksScanned",!1),F(this,"skipHtmlSpecial",!1),F(this,"linkLevel",0),F(this,"delimiters",[]),F(this,"_prev_delimiters",[]),F(this,"Token",Ie),this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.posMax=this.src.length}pushPending(){let e=new Ie("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e}push(e,t,n){this.pending&&this.pushPending();let r=new Ie(e,t,n),i;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r}scanDelims(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)===55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)===56320){let g=this.src.charCodeAt(e-2);i=(g&64512)===55296?65536+(g-55296<<10)+(i-56320):65533}else(i&64512)===55296&&(i=65533);let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;let a=o-e,s=o<n?this.src.charCodeAt(o):32;if((s&64512)===55296){let g=this.src.charCodeAt(o+1);s=(g&64512)===56320?65536+(s-55296<<10)+(g-56320):65533}else(s&64512)===56320&&(s=65533);let c=at(i)||st(i),l=at(s)||st(s),u=ot(i),d=ot(s),p=!d&&(!l||u||c),f=!u&&(!c||d||l);return{can_open:p&&(t||!f||c),can_close:f&&(t||!p||l),length:a}}};function Pu(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function $u(e,t){let n=e.pos;for(;n<e.posMax&&!Pu(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function Uu(e){return e>=65&&e<=90||e>=97&&e<=122}function zu(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function qu(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=n-Math.min(10,e.pending.length,n),o=n;for(;o>i&&zu(e.src.charCodeAt(o-1));)o--;if(o===n||!Uu(e.src.charCodeAt(o)))return!1;let a=n-o,s=e.md.linkify.matchAtStart(e.src.slice(o));if(!s)return!1;let c=s.url;if(c.length<=a)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));let u=e.md.normalizeLink(c);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-a);let d=e.push("link_open","a",1);d.attrs=[["href",u]],d.markup="linkify",d.info="auto";let p=e.push("text","",0);p.content=e.md.normalizeLinkText(c);let f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=c.length-a,!0}function Wu(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<i&&ee(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var Kn=[];for(let e=0;e<256;e++)Kn.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Kn[e.charCodeAt(0)]=1});function Hu(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(i=e.src.charCodeAt(n),!!ee(i));)n++;return e.pos=n,!0}if(i===32){if(!t){let s=e.push("text_special","",0);s.content="\\",s.markup="\\",s.info="escape"}return e.pos=n,!0}let o=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(o+=e.src[n+1],n++)}let a="\\"+o;if(!t){let s=e.push("text_special","",0);i<256&&Kn[i]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function Gu(e){let t={},n=0;for(;(n=e.indexOf("`",n))!==-1;){let r=n;for(;e.charCodeAt(++n)===96;);t[n-r]=r}return t}function Ku(e,t){var n;let r=e.pos;if(e.src.charCodeAt(r)!==96)return!1;let i=e.posMax,o=r+1;for(;o<i&&e.src.charCodeAt(o)===96;)o++;let a=e.src.slice(r,o),s=a.length;if(e.backticksScanned||(e.backticks=Gu(e.src),e.backticksScanned=!0),((n=e.backticks[s])!==null&&n!==void 0?n:-1)>=o){let c=o,l;for(;(l=e.src.indexOf("`",c))!==-1&&l<i;){for(c=l+1;e.src.charCodeAt(c)===96;)c++;if(c>i)break;if(c-l===s){if(!t){let u=e.push("code_inline","code",0);u.markup=a;let d=e.src.slice(o,l).replace(/\n/g," ");d.startsWith(" ")&&d.endsWith(" ")&&/[^ ]/.test(d)&&(d=d.slice(1,-1)),u.content=d}return e.pos=c,!0}}}return t||(e.pending+=a),e.pos=o,!0}function Zu(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),o=i.length,a=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let c=0;c<o;c+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function yi(e,t){let n,r=[],i=t.length;for(let o=0;o<i;o++){let a=t[o];if(a.marker!==126||a.end===-1)continue;let s=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&r.push(s.token-1)}for(;r.length;){let o=r.pop(),a=o+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,o!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[o],e.tokens[o]=n)}}function Ju(e){let t=e.tokens_meta,n=e.tokens_meta.length;yi(e,e.delimiters);for(let i=0;i<n;i++){var r;let o=(r=t[i])===null||r===void 0?void 0:r.delimiters;o&&yi(e,o)}}var zi={tokenize:Zu,postProcess:Ju};function Yu(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let o=0;o<i.length;o++){let a=e.push("text","",0);a.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function vi(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let i=t[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;let o=t[i.end],a=r>0&&t[r-1].end===i.end+1&&t[r-1].marker===i.marker&&t[r-1].token===i.token-1&&t[i.end+1].token===o.token+1,s=String.fromCharCode(i.marker),c=e.tokens[i.token];c.type=a?"strong_open":"em_open",c.tag=a?"strong":"em",c.nesting=1,c.markup=a?s+s:s,c.content="";let l=e.tokens[o.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?s+s:s,l.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[i.end+1].token].content="",r--)}}function ju(e){let t=e.tokens_meta,n=e.tokens_meta.length;vi(e,e.delimiters);for(let i=0;i<n;i++){var r;let o=(r=t[i])===null||r===void 0?void 0:r.delimiters;o&&vi(e,o)}}var qi={tokenize:Yu,postProcess:ju};function Xu(e,t){let n,r,i,o,a="",s="",c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,p=e.pos+1,f=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(f<0)return!1;let g=f+1;if(g<d&&e.src.charCodeAt(g)===40){for(l=!1,g++;g<d&&(n=e.src.charCodeAt(g),!(!ee(n)&&n!==10));g++);if(g>=d)return!1;if(c=g,i=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),i.ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?g=i.pos:a="",c=g;g<d&&(n=e.src.charCodeAt(g),!(!ee(n)&&n!==10));g++);if(i=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<d&&c!==g&&i.ok)for(s=i.str,g=i.pos;g<d&&(n=e.src.charCodeAt(g),!(!ee(n)&&n!==10));g++);}(g>=d||e.src.charCodeAt(g)!==41)&&(l=!0),g++}if(l){if(typeof e.env.references>"u")return!1;if(g<d&&e.src.charCodeAt(g)===91?(c=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?r=e.src.slice(c,g++):g=f+1):g=f+1,r||(r=e.src.slice(p,f)),r=Bt(r),o=e.env.references[r],!o)return e.pos=u,!1;a=o.href,s=o.title}if(!t){e.pos=p,e.posMax=f;let h=e.push("link_open","a",1),m=[["href",a]];if(h.attrs=m,s&&m.push(["title",s]),r){let E=Object.create(null);E.label=r,h.meta=E}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=g,e.posMax=d,!0}function Vu(e,t){let n,r,i,o,a,s,c,l,u="",d=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let f=e.pos+2,g=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(g<0)return!1;if(o=g+1,o<p&&e.src.charCodeAt(o)===40){for(o++;o<p&&(n=e.src.charCodeAt(o),!(!ee(n)&&n!==10));o++);if(o>=p)return!1;for(l=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?o=s.pos:u=""),l=o;o<p&&(n=e.src.charCodeAt(o),!(!ee(n)&&n!==10));o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<p&&l!==o&&s.ok)for(c=s.str,o=s.pos;o<p&&(n=e.src.charCodeAt(o),!(!ee(n)&&n!==10));o++);else c="";if(o>=p||e.src.charCodeAt(o)!==41)return e.pos=d,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<p&&e.src.charCodeAt(o)===91?(l=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?i=e.src.slice(l,o++):o=g+1):o=g+1,i||(i=e.src.slice(f,g)),i=Bt(i),a=e.env.references[i],!a)return e.pos=d,!1;u=a.href,c=a.title}if(!t){r=e.src.slice(f,g);let h=[];e.md.inline.parse(r,e.md,e.env,h);let m=e.push("image","img",0),E=[["src",u],["alt",""]];if(m.attrs=E,m.children=h,m.content=r,c&&E.push(["title",c]),i){let _=Object.create(null);_.label=i,m.meta=_}}return e.pos=o,e.posMax=p,!0}var Qu=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,ed=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function td(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}let o=e.src.slice(r+1,n);if(ed.test(o)){let a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){let s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";let c=e.push("text","",0);c.content=e.md.normalizeLinkText(o);let l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}if(Qu.test(o)){let a=e.md.normalizeLink(`mailto:${o}`);if(!e.md.validateLink(a))return!1;if(!t){let s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";let c=e.push("text","",0);c.content=e.md.normalizeLinkText(o);let l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}return!1}function nd(e){return/^<a[>\s]/i.test(e)}function rd(e){return/^<\/a\s*>/i.test(e)}function Wi(e){let t=e|32;return t>=97&&t<=122}function id(e,t){let n=e.src,r,i;if(n.startsWith("<!--",t)){if(n.startsWith(">",t+4))return t+5;if(n.startsWith("->",t+4))return t+6;r=t+4,i="-->"}else if(n.startsWith("<![CDATA[",t))r=t+9,i="]]>";else if(n.charCodeAt(t+1)===63)r=t+2,i="?>";else if(Wi(n.charCodeAt(t+2)))r=t+3,i=">";else return-1;if(e.skipHtmlSpecial)return-1;let o=n.indexOf(i,r);return o<0?(e.skipHtmlSpecial=!0,-1):o+i.length}function od(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i,o=e.src.charCodeAt(r+1);if(o===33||o===63)i=id(e,r);else if(o===47||Wi(o)){let a=e.src.slice(r).match(Pi);i=a?r+a[0].length:-1}else return!1;if(i<0)return!1;if(!t){let a=e.push("html_inline","",0);a.content=e.src.slice(r,i),nd(a.content)&&e.linkLevel++,rd(a.content)&&e.linkLevel--}return e.pos=i,!0}var sd=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ad=/^&([a-z][a-z0-9]{1,31});/i;function cd(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let i=e.src.slice(n).match(sd);if(i){if(!t){let o=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),a=e.push("text_special","",0);a.content=Gn(o)?it(o):it(65533),a.markup=i[0],a.info="entity"}return e.pos+=i[0].length,!0}}else{let i=e.src.slice(n).match(ad);if(i){let o=It(i[0]);if(o!==i[0]){if(!t){let a=e.push("text_special","",0);a.content=o,a.markup=i[0],a.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function Ri(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,o=[];for(let a=0;a<n;a++){let s=e[a];if(o.push(0),(e[r].marker!==s.marker||i!==s.token-1)&&(r=a),i=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);let c=t[s.marker][(s.open?3:0)+s.length%3],l=r-o[r]-1,u=l;for(;l>c;l-=o[l]+1){let d=e[l];if(d.marker===s.marker&&d.open&&d.end<0){let p=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3!==0||s.length%3!==0)&&(p=!0),!p){let f=l>0&&!e[l-1].open?o[l-1]+1:0;o[a]=a-l+f,o[l]=f,s.open=!1,d.end=a,d.close=!1,u=-1,i=-2;break}}}u!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=u)}}function ld(e){let t=e.tokens_meta,n=e.tokens_meta.length;Ri(e.delimiters);for(let i=0;i<n;i++){var r;let o=(r=t[i])===null||r===void 0?void 0:r.delimiters;o&&Ri(o)}}function ud(e){let t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type==="text"&&t+1<o&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var qn=[["text",$u],["linkify",qu],["newline",Wu],["escape",Hu],["backticks",Ku],["strikethrough",zi.tokenize],["emphasis",qi.tokenize],["link",Xu],["image",Vu],["autolink",td],["html_inline",od],["entity",cd]],Wn=[["balance_pairs",ld],["strikethrough",zi.postProcess],["emphasis",qi.postProcess],["fragments_join",ud]],Hi=class{constructor(){F(this,"ruler",new lt),F(this,"ruler2",new lt),F(this,"State",Ui);for(let e=0;e<qn.length;e++)this.ruler.push(qn[e][0],qn[e][1]);for(let e=0;e<Wn.length;e++)this.ruler2.push(Wn[e][0],Wn[e][1])}skipToken(e){let t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let a=!1;if(e.level<i){for(let s=0;s<r;s++)if(e.level++,a=n[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos}tokenize(e){let t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let o=e.pos,a=!1;if(e.level<i){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](i)}},dd={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","strip_references","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","strip_references","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},fd=/^(vbscript|javascript|file|data):/,gd=/^data:image\/(gif|png|jpeg|webp);/,Ai=["http:","https:","mailto:"],_e=class{validateLink(e){let t=e.trim().toLowerCase();return fd.test(t)?gd.test(t):!0}normalizeLink(e){let t=tt(e,!0);if(t.hostname&&(!t.protocol||Ai.indexOf(t.protocol)>=0))try{t.hostname=Hn.default.toASCII(t.hostname)}catch{}return t.auth&&(t.auth=Ae(t.auth)),t.hostname&&(t.hostname=Ae(t.hostname)),t.pathname&&(t.pathname=Ae(t.pathname)),t.search&&(t.search=Ae(t.search)),t.hash&&(t.hash=Ae(t.hash)),ze(t)}normalizeLinkText(e){let t=tt(e,!0);if(t.hostname&&(!t.protocol||Ai.indexOf(t.protocol)>=0))try{t.hostname=Hn.default.toUnicode(t.hostname)}catch{}return et(ze(t),et.defaultChars+"%")}constructor(...e){F(this,"inline",new Hi),F(this,"block",new $i),F(this,"core",new Oi),F(this,"renderer",new Di),F(this,"linkify",new si),F(this,"utils",Ll),F(this,"helpers",Object.assign({},Xl));let[t,n]=e;typeof t=="string"?(this.configure(t),n&&this.set(n)):(this.configure("default"),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if(typeof e=="string"){let i=e;if(t=dd[i],!t)throw new Error(`Wrong 'markdown-it' preset "${i}", check name`)}else t=e;if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});let n=t.components;if(n){var r;["core","block","inline"].forEach(o=>{var a;let s=(a=n[o])===null||a===void 0?void 0:a.rules;s&&this[o].ruler.enableOnly(s)});let i=(r=n.inline)===null||r===void 0?void 0:r.rules2;i&&this.inline.ruler2.enableOnly(i)}return this}enable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(i=>{n=n.concat(this[i].ruler.enable(e,!0))}),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(i=>n.indexOf(i)<0);if(r.length&&!t)throw new Error(`MarkdownIt. Failed to enable unknown rule(s): ${r}`);return this}disable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(i=>{n=n.concat(this[i].ruler.disable(e,!0))}),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(i=>n.indexOf(i)<0);if(r.length&&!t)throw new Error(`MarkdownIt. Failed to disable unknown rule(s): ${r}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if(typeof e!="string")throw new Error("Input data should be a String");let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}};F(_e,"Token",Ie);F(_e,"Ruler",lt);F(_e,"Renderer",Di);F(_e,"ParserCore",Oi);F(_e,"StateCore",Mi);F(_e,"ParserBlock",$i);F(_e,"StateBlock",Li);F(_e,"ParserInline",Hi);F(_e,"StateInline",Ui);var $t=Ti(_e);var ne=(e,...t)=>e.replace(/\{(\d+)\}/g,(n,r)=>Number(r)<t.length?String(t[Number(r)]):n);function Gi(e){return(t,...n)=>ne(e[t]??t,...n)}function Ne(e,t){switch(e){case"wireframe":return{markerNotTopLevel:t("link-headings is ignored for a wireframe inside a list or blockquote."),refNotFound:n=>t('data-ref target heading "{0}" was not found after the wireframe.',n),unlinkedHeadingTitle:t("No part of the wireframe is linked to this heading."),unlinkedHeadingMark:t("no part"),nothingLinked:t('No part of the wireframe is linked to a heading or a row. Number the headings after it like its parts (data-item), or give the item table their numbers with "item=<column>".'),unlinkedItem:n=>t('Part {0} of the wireframe is not linked to any heading or row. Add a heading numbered {0} after the wireframe, or a row with {0} in the column of "item=".',n),unlinkedHeading:n=>t('No part of the wireframe is linked to heading "{0}".',n)};case"sequence":return{refWithoutMarker:t('@ref is ignored because the sequence diagram has no "%% @link-headings" marker.'),markerNotTopLevel:t("@link-headings is ignored for a sequence diagram inside a list or blockquote."),refNotFound:n=>t('@ref target heading "{0}" was not found after the sequence diagram.',n),unlinkedHeadingTitle:t("No arrow in the sequence diagram is linked to this heading."),unlinkedHeadingMark:t("no arrow"),nothingLinked:t("No arrow in the sequence diagram is linked to a heading. Write the steps as headings after the diagram, with the same text as the arrows."),unlinkedItem:n=>t('Arrow "{0}" is not linked to any heading. Add a heading with the same text after the diagram, or write "%% @ref <heading>" above the arrow.',n),unlinkedHeading:n=>t('No arrow in the sequence diagram is linked to heading "{0}".',n),linkItemFix:n=>t('Link arrow "{0}" to this heading with @ref',n),linkedCandidate:t("Already linked to an arrow"),unlinkedCandidate:t("No arrow linked yet"),markerDoc:t("Show this sequence diagram side by side with the step headings after it."),refDoc:t("Link the next arrow to a heading.")};case"flowchart":return{refWithoutMarker:t('@ref is ignored because the flowchart has no "%% @link-headings" marker.'),markerNotTopLevel:t("@link-headings is ignored for a flowchart inside a list or blockquote."),refNotFound:n=>t('@ref target heading "{0}" was not found after the flowchart.',n),unlinkedHeadingTitle:t("No node in the flowchart is linked to this heading."),unlinkedHeadingMark:t("no node"),nothingLinked:t("No node in the flowchart is linked to a heading. Write the steps as headings after the diagram, with the same text as the nodes."),unlinkedItem:n=>t('Node "{0}" is not linked to any heading. Add a heading with the same text after the diagram, or write "%% @ref <heading>" above the node.',n),unlinkedHeading:n=>t('No node in the flowchart is linked to heading "{0}".',n),linkItemFix:n=>t('Link node "{0}" to this heading with @ref',n),linkedCandidate:t("Already linked to a node"),unlinkedCandidate:t("No node linked yet"),markerDoc:t("Show this flowchart with the step headings after it and link its nodes to them (side by side, or below a horizontal flowchart)."),refDoc:t("Link the node defined on the next line to a heading.")};case"er":return{refWithoutMarker:t('@ref is ignored because the ER diagram has no "%% @link-headings" marker.'),markerNotTopLevel:t("@link-headings is ignored for an ER diagram inside a list or blockquote."),refNotFound:n=>t('@ref target heading "{0}" was not found after the ER diagram.',n),unlinkedHeadingTitle:t("No entity in the ER diagram is linked to this heading."),unlinkedHeadingMark:t("no entity"),nothingLinked:t("No entity in the ER diagram is linked to a heading. Write a heading for each entity after the diagram, with the same text as the entity."),unlinkedItem:n=>t('Entity "{0}" is not linked to any heading. Add a heading with the same text after the diagram, or write "%% @ref <heading>" above the entity.',n),unlinkedHeading:n=>t('No entity in the ER diagram is linked to heading "{0}".',n),linkItemFix:n=>t('Link entity "{0}" to this heading with @ref',n),linkedCandidate:t("Already linked to an entity"),unlinkedCandidate:t("No entity linked yet"),markerDoc:t("Show this ER diagram with the headings after it and link its entities to them (side by side, or below a horizontal diagram)."),refDoc:t("Link the entity defined on the next line to a heading.")};case"state":return{refWithoutMarker:t('@ref is ignored because the state diagram has no "%% @link-headings" marker.'),markerNotTopLevel:t("@link-headings is ignored for a state diagram inside a list or blockquote."),refNotFound:n=>t('@ref target heading "{0}" was not found after the state diagram.',n),unlinkedHeadingTitle:t("No state in the state diagram is linked to this heading."),unlinkedHeadingMark:t("no state"),nothingLinked:t("No state in the state diagram is linked to a heading. Write a heading for each state after the diagram, with the same text as the state."),unlinkedItem:n=>t('State "{0}" is not linked to any heading. Add a heading with the same text after the diagram, or write "%% @ref <heading>" above the state.',n),unlinkedHeading:n=>t('No state in the state diagram is linked to heading "{0}".',n),linkItemFix:n=>t('Link state "{0}" to this heading with @ref',n),linkedCandidate:t("Already linked to a state"),unlinkedCandidate:t("No state linked yet"),markerDoc:t("Show this state diagram with the headings after it and link its states to them (side by side, or below a horizontal diagram)."),refDoc:t("Link the state defined on the next line to a heading.")}}}function Ut(e){return{title:e("No part of the wireframe has the number of this row."),mark:e("no part"),unlinked:t=>e("No part of the wireframe has the number {0} of this row.",t)}}function ut(e){return{withoutMarker:e('@anchor and @goto are ignored because the sequence diagram has no "%% @link-headings" marker.'),strayAnchor:e("@anchor is ignored because the next line is not a note or a section of a block with a condition (alt, else, \u2026)."),strayGoto:e("@goto is ignored because the next line is not a note."),gotoOnLabel:e("@goto is ignored because @anchor makes the note a label. A note is a label or a jump, not both."),duplicateAnchor:t=>e('Label "{0}" is already defined in the sequence diagram.',t),gotoNotFound:t=>e('@goto target label "{0}" was not found in the sequence diagrams of the document.',t),gotoAmbiguous:t=>e('@goto target label "{0}" is defined in more than one other sequence diagram. Name the label to jump to uniquely with @anchor.',t),anchorDoc:e("Make the next note (or section of a block) a label that notes can jump to."),gotoDoc:e("Make the next note jump to a label of this or another sequence diagram of the document."),gotoTitle:e("Go to {0}"),backTitle:e("Back to the note you jumped from")}}var pd=["<<-->>","<<->>","-->>","->>","-->","->","--x","-x","--)","-)","--|\\","--|/","--\\\\","--//","/|--","\\|--","//--","\\\\--","-|\\","-|/","-\\\\","-//","/|-","\\|-","//-","\\\\-"],hd=e=>e.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&"),md=new RegExp("^\\s*([^:]+?)\\s*(?:\\(\\))?("+pd.map(hd).join("|")+")(?:\\(\\))?\\s*[+-]?\\s*([^:]+?)\\s*:(.*)$"),Zn=/^\s*%%\s*@ref\s+(.+?)\s*$/,Jn=/^\s*%%\s*@link-headings\s*$/,bd=/^\s*%%\s*@anchor\s+(.+?)\s*$/,_d=/^\s*%%\s*@goto\s+(.+?)\s*$/,Ed=/^\s*note\s+(?:left\s+of|right\s+of|over)\s+[^:]+:(.*)$/i,wd=/^\s*(alt|opt|loop|par|par_over|critical|break|rect|box)(?:\s+(.*?))?\s*$/i,kd=/^\s*(else|and|option)(?:\s+(.*?))?\s*$/i,xd=/^\s*end\s*$/i,yd=new Set(["rect","box"]),zt="\u24B6-\u24E9",vd=new RegExp(`^[${zt}]$`),Rd=new RegExp(`^([${zt}])(?![${zt}])`),Ad=new RegExp(`[${zt}]`,"g"),Cd=e=>{let t=le(e);return vd.test(t)?t:void 0},Td=e=>Rd.exec(le(e))?.[1],Nd=e=>e.match(Ad)??[],Yn=/^\s*%%\s*@seq-notes\s*$/,Ki="(\\d+(?:\\.\\d{1,2})?|\\.\\d{1,2})",Sd=new RegExp(`^\\s*autonumber(?:\\s+(off)|\\s+${Ki}(?:\\s+${Ki})?)?\\s*(?:(?:%%|#).*)?$`,"i"),Dd=/^\s*(note|participant|actor|create|destroy|alt|else|opt|loop|par|and|critical|option|break|rect|box|end|activate|deactivate|autonumber|link|links|properties|details|title|accTitle|accDescr)(?=\s|$)/i;function he(e){let t=e.findIndex(r=>r.trim()!=="");if(t<0||e[t].trim()!=="---")return 0;let n=e.findIndex((r,i)=>i>t&&r.trim()==="---");return n<0?e.length:n+1}function qt(e){let t=e.split(/\r?\n/);for(let n of t.slice(he(t))){let r=n.trim();if(!(r===""||r.startsWith("%%")))return/^sequenceDiagram\b/.test(r)}return!1}function Wt(e,t){let n=[],r,i,o,a=[],s=[],c=[],l,u,d=[[]],p=()=>{for(let w of d[d.length-1])w.endMessage=n.length;d[d.length-1]=[]},f=(w,R)=>{l&&!w&&(c.push({line:l.line,directive:"anchor"}),l=void 0),u&&!R&&(c.push({line:u.line,directive:"goto"}),u=void 0)},g=[],h=(w,R,A)=>{let b=!yd.has(w.toLowerCase())&&R!==void 0&&R!=="";if(f(b,!1),!b)return;let S=Md(R),T=g.filter(I=>I===S).length;g.push(S);let M=l?.name??Td(R);if(M!==void 0){let I={name:M,line:A,title:R,occurrence:T,firstMessage:n.length,endMessage:n.length};l&&(I.markerLine=l.line),s.push(I),d[d.length-1].push(I)}l=void 0},m=1,E=1,_=!1,k=e.split(/\r?\n/),x=he(k);for(k.forEach((w,R)=>{if(R<x)return;if(Jn.test(w)){r??=t+R;return}if(Yn.test(w)){i??=t+R;return}let A=Zn.exec(w);if(A){o={text:A[1],line:t+R};return}let b=bd.exec(w);if(b){f(!1,!0),l={name:le(b[1]),line:t+R};return}let S=_d.exec(w);if(S){f(!0,!1),u={name:le(S[1]),line:t+R};return}if(w.trim()===""||w.trim().startsWith("%%"))return;let T=Ed.exec(w);if(T){let N=T[1].trim(),D={index:a.length,line:t+R,text:N},P=l?.name??(u?void 0:Cd(N));if(P!==void 0){D.anchor=P;let U={name:P,line:D.line,note:D.index,firstMessage:n.length,endMessage:n.length};l&&(U.markerLine=l.line),s.push(U),d[d.length-1].push(U)}u&&D.anchor!==void 0?c.push({line:u.line,directive:"gotoOnLabel"}):u&&(D.goto=u.name,D.gotoLine=u.line),l=void 0,u=void 0,a.push(D);return}let M=wd.exec(w);if(M){d.push([]),h(M[1],M[2],t+R);return}let I=kd.exec(w);if(I){p(),h(I[1],I[2],t+R);return}if(f(!1,!1),xd.test(w)){p(),d.length>1&&d.pop();return}let L=Sd.exec(w);if(L){m=Number(L[2]??0)||m,E=Number(L[3]??0)||E,_=L[1]===void 0;return}if(w.trim().startsWith("%%")||Dd.test(w))return;let C=md.exec(w);if(!C)return;let y={index:n.length,line:t+R,text:C[4].trim()};_&&(y.number=m),m=Math.round((m+E)*100)/100,o&&(y.ref=o.text,y.refLine=o.line,o=void 0),n.push(y)}),f(!1,!1);d.length>0;)p(),d.pop();let v=new Set(s.map(w=>w.name));for(let w of a)if(w.goto===void 0&&w.anchor===void 0){let R=Nd(w.text).find(A=>v.has(A));R!==void 0&&(w.goto=R)}return{messages:n,notes:a,anchors:s,strayDirectives:c,markerLine:r,legacyMarkerLine:i}}var Md=e=>le(e).replace(/\s+/g,"");function le(e){return e.replace(/<br\s*\/?>/gi," ").replace(/#(\d+);/g,(t,n)=>String.fromCharCode(Number(n))).replace(/\s+/g," ").trim()}var Id=[/^(\d+(?:\.\d+)*)[.).)](?!\d)\s*(.+)$/,/^(\d+(?:\.\d+)+)\s+(.+)$/,/^[((](\d+)[))]\s*(.+)$/],dt=e=>e.replace(/[0-9]/g,t=>String.fromCharCode(t.charCodeAt(0)-65248));function Zi(e){let t=e.trim(),n=dt(t);for(let i of Id){let o=i.exec(n);if(o)return{text:t.slice(n.length-o[2].length),value:o[1]}}let r=/^([\u2460-\u2473])\s*(.+)$/.exec(t);if(r)return{text:r[2],value:String(r[1].charCodeAt(0)-9312+1)}}function We(e,t,n,r,i){let o=i.excluded??new Set,a=new Map,s=new Set,c=new Set,l,u,d,p=new Map,f=!1;return e.forEach((h,m)=>{if(m<t)return;if(f){f=!h.includes("}");return}if(/^\s*accDescr\s*\{/.test(h)&&!h.includes("}")){f=!0;return}if(i.skip?.(h))return;if(Jn.test(h)){l??=n+m;return}if(Yn.test(h)){u??=n+m;return}let E=Zn.exec(h);if(E){d={text:E[1],line:n+m};return}if(h.trim().startsWith("%%"))return;let _=n+m,k=i.statement(h,m),x=[];for(let{id:A,label:b,defines:S}of k){let T=a.get(A);T||(T={index:a.size,line:_,text:A,nodeId:A,labeled:r.idIsLabel,refable:!1},a.set(A,T),x.push(A)),b!==void 0&&!(r.firstWins&&c.has(A))&&(T.text=b,T.labeled=!0,c.add(A)),(S||b!==void 0)&&!(r.firstWins&&s.has(A))&&(T.line=_,s.add(A))}let v=k.filter(A=>!o.has(A.id)),w=v.find(A=>A.defines||A.label!==void 0)?.id??x.find(A=>!o.has(A))??v[0]?.id;if(w===void 0)return;let R=a.get(w);p.set(_,R.nodeId),d&&(R.ref=d.text,R.refLine=d.line,d=void 0)}),{nodes:[...a.values()].filter(h=>!o.has(h.nodeId)).map((h,m)=>({...h,index:m,refable:p.get(h.line)===h.nodeId})),markerLine:l,legacyMarkerLine:u}}var Od=/^\s*direction\s+(TB|BT|RL|LR)\b/i;function Ht(e){let t=Od.exec(e)?.[1].toUpperCase();return t===void 0?void 0:t==="LR"||t==="RL"}function ke(e,t,n){for(let r=t;r<e.length;r++){let i=e[r].trim();if(i===""||i.startsWith("%%"))continue;let o=n.exec(e[r]);return o?{index:r,match:o}:void 0}}var Yi=/^\s*erDiagram\b/,Ld=/^\s*(style|classDef|class|subgraph|end|direction|accTitle|accDescr)(?=[\s:{]|$)/,Fd=/^(?:"([^"]*)"|((?:[^\x00-\x7F]|[\w*-])+))/u,Bd=/^\s*\[\s*(?:"([^"]*)"|([^\]]*?))\s*\]/,Pd=/^:::[\w-]+/,$d=/(?:"([^"]*)"|((?:[^\x00-\x7F]|[\w*-])+))(?::::[\w-]+)?\s*$/u;function Ud(e){let t=Fd.exec(e);if(!t)return;let n=t[0].length,r;for(;;){let i=Pd.exec(e.slice(n)),o=r===void 0?Bd.exec(e.slice(n)):null,a=i??o;if(!a)break;o&&!i&&(r=o[1]??o[2]),n+=a[0].length}return{id:t[1]??t[2],label:r,length:n}}function zd(e){let t=!1;for(let n=0;n<e.length;n++)if(e[n]==='"')t=!t;else if(!t&&e[n]===":"&&e[n-1]!==":"&&e[n+1]!==":")return n;return-1}var Ji=e=>e.replace(/"[^"]*"/g,'""');function ji(e){let t=e.split(/\r?\n/);return ke(t,he(t),Yi)!==void 0}function Xi(e,t){let n=e.split(/\r?\n/),r=he(n),i=ke(n,r,Yi),o=!1,a=0,s=!1;return{...We(n,r,t,{firstWins:!0,idIsLabel:!0},{statement:(d,p)=>{if(o=(a===0?Ht(d):void 0)??o,/^\s*subgraph(?=\s|$)/.test(d)?a++:/^\s*end\s*$/.test(d)&&(a=Math.max(0,a-1)),Ld.test(d))return[];let f=(p===i?.index?d.slice(i.match[0].length):d).trim(),g=Ud(f);if(!g)return[];let h=f.slice(g.length).trim();if(h===""||h.startsWith("{"))return s=h.startsWith("{")&&!Ji(h).includes("}"),[{id:g.id,label:g.label,defines:!0}];let m=zd(h),E=m<0?null:$d.exec(h.slice(0,m)),_={id:g.id,label:g.label};return E?[_,{id:E[1]??E[2]}]:[_]},skip:d=>s?(s=!Ji(d).includes("}"),!0):!1}),horizontal:o}}var Qi=/^\s*(?:flowchart-elk|graph|flowchart)\b(?:\s*(TB|TD|BT|RL|LR)\b|\s*([<>^]|v\b))?\s*;?/,qd=/^\s*(style|linkStyle|classDef|class|click|subgraph|end|direction|accTitle|accDescr)(?=[\s:{]|$)/,Wd=/^\s*subgraph\s+([^\s[]+)/,Hd=/^(?:[^\s[\](){}<>|&;:"@,~=-]|-(?![->.]))+/u,Gd=[["(((",[")))"]],["((",["))"]],["([",["])"]],["[[",["]]"]],["[(",[")]"]],["{{",["}}"]],["[/",["/]","\\]"]],["[\\",["\\]","/]"]],["(-",["-)"]],["[",["]"]],["(",[")"]],["{",["}"]],[">",["]"]]],Kd=/^\s*(?:[^\s"]+@)?(?:[xo<]?--+[-xo>]|[xo<]?==+[=xo>]|[xo<]?-?\.+-[xo>]?|~~~+)\s*(?:\|(?:"[^"]*"|[^|"])*\|\s*)?/,Zd=[/^\s*[xo<]?--(?![-xo>])(.*?)--+[-xo>]\s*/,/^\s*[xo<]?==(?![=xo>])(.*?)==+[=xo>]\s*/,/^\s*[xo<]?-\.(.*?)\.+-[xo>]?\s*/],Jd=/\blabel\s*:\s*(?:"([^"]*)"|'([^']*)'|([^,}\n]*))/;function Vi(e){let t=e.trim();return t.length>=2&&t.startsWith('"')&&t.endsWith('"')&&(t=t.slice(1,-1)),t.length>=2&&t.startsWith("`")&&t.endsWith("`")&&(t=t.slice(1,-1).replace(/(\*\*|__)(.+?)\1/g,"$2").replace(/(\*|_)(.+?)\1/g,"$2")),t.trim()}function Yd(e){let t=Hd.exec(e);if(!t)return;let n=t[0].length,r;if(e.startsWith("@{",n)){let o=e.indexOf("}",n);if(o<0)return;let a=Jd.exec(e.slice(n+2,o));a&&(r=Vi(a[1]??a[2]??a[3]??"")),n=o+1}else{let o=Gd.find(([a])=>e.startsWith(a,n));if(o){let[a,s]=o,c=n+a.length,l=/^\s*"/.exec(e.slice(c));if(l){let p=e.indexOf('"',c+l[0].length);if(p<0)return;c=p+1}let u=s.map(p=>e.indexOf(p,c)).filter(p=>p>=0);if(u.length===0)return;let d=Math.min(...u);r=Vi(e.slice(n+a.length,d)),n=d+s.find(p=>e.startsWith(p,d)).length}}let i=/^:::[^\s&;]+/.exec(e.slice(n));return i&&(n+=i[0].length),{node:{id:t[0],label:r},length:n}}function jd(e){let t=Kd.exec(e);if(t)return t[0].length;for(let n of Zd){let r=n.exec(e);if(r)return r[0].length}}function Xd(e){let t=[],n=e,r=!0;for(;n=n.replace(/^\s+/,""),n!=="";){if(n.startsWith(";")){n=n.slice(1),r=!0;continue}if(r){let i=Yd(n);if(!i)break;t.push(i.node),n=n.slice(i.length);let o=/^\s*&/.exec(n);o?n=n.slice(o[0].length):r=!1}else{let i=jd(n);if(i===void 0)break;n=n.slice(i),r=!0}}return t}function eo(e){let t=e.split(/\r?\n/);return ke(t,he(t),Qi)!==void 0}function to(e,t){let n=e.split(/\r?\n/),r=he(n),i=ke(n,r,Qi),o=i?.match[1]??i?.match[2],a=o==="LR"||o==="RL"||o==="<"||o===">",s=new Set;return{...We(n,r,t,{firstWins:!1,idIsLabel:!1},{statement:(l,u)=>{let d=Wd.exec(l);return d&&s.add(d[1]),qd.test(l)?[]:Xd(u===i?.index?l.slice(i.match[0].length):l)},excluded:s}),horizontal:a}}var no=/^\s*stateDiagram(?:-v2)?(?=\s|$)/,Vd=/^\s*(classDef|class|style|click|direction|accTitle|accDescr|hide empty description|scale)(?=[\s:{]|$)/i,Gt='(\\[\\*\\]|[^:\\s{"-]+)',Xn="(?::::[\\w-]+)?",Qd=new RegExp(`^${Gt}${Xn}\\s*-->\\s*${Gt}${Xn}`),ef=new RegExp(`^${Gt}\\s*:(?!::)(.*)$`),tf=new RegExp(`^${Gt}${Xn}\\s*$`),nf=/^state\s+"([^"]*)"\s*as\s+([^:\s{"]+)/,rf=/^state\s+([^:\s{"]+)/,of=/<<(?:fork|join|choice)>>|\[\[(?:fork|join|choice)\]\]/i,sf=/^note\s/i,jn=e=>e!=="[*]";function ro(e){let t=e.split(/\r?\n/);return ke(t,he(t),no)!==void 0}function io(e,t){let n=e.split(/\r?\n/),r=he(n),i=ke(n,r,no),o=!1,a=0,s=!1,c=new Set;return{...We(n,r,t,{firstWins:!0,idIsLabel:!0},{statement:(p,f)=>{let g=(f===i?.index?p.slice(i.match[0].length):p).trim();if(sf.test(g))return s=!g.includes(":")&&!/^note\s+"/i.test(g),[];if(o=(a===0?Ht(g):void 0)??o,g.startsWith("}"))return a=Math.max(0,a-1),[];if(Vd.test(g)||g==="--")return[];if(/^state\s/.test(g)){let _=nf.exec(g),k=_?.[2]??rf.exec(g)?.[1];return k?of.test(g)?(c.add(k),[]):(g.endsWith("{")&&a++,[{id:k,label:_?.[1],defines:!0}]):[]}let h=Qd.exec(g);if(h)return[h[1],h[2]].filter(jn).map(_=>({id:_}));let m=ef.exec(g);if(m)return jn(m[1])?[{id:m[1],label:m[2].trim(),defines:!0}]:[];let E=tf.exec(g);return E&&jn(E[1])?[{id:E[1],defines:!0}]:[]},skip:p=>s?(s=!/^\s*end\s+note\b/i.test(p),!0):!1,excluded:c}),horizontal:o}}var af=/^<!--\s*table:([^]*?)-->\s*$/,Kt="seqNotesItemColumn";function Vn(e){let t=[],n=0,r=()=>{for(;n<e.length&&/\s/.test(e[n]);)n++},i=o=>{o.lastIndex=n;let a=o.exec(e),s=a&&a.index===n?a[0]:"";return n+=s.length,s};for(r();n<e.length;r()){let o=i(/[^\s=]+/g);if(e[n]!=="="){t.push({key:o||e[n++],values:[]});continue}n++;let a=[];for(;;){let s;if(e[n]==='"'){let l=e.indexOf('"',n+1);s=e.slice(n+1,l<0?e.length:l),n=l<0?e.length:l+1}else s=i(/[^\s,"]+/g);a.push(s.trim());let c=n;if(r(),e[n]!==","){n=c;break}n++,r()}t.push({key:o,values:a.filter(s=>s!=="")})}return t}function cf(e){let t=e.filter(i=>i!==void 0),n=t.length===0?0:Math.min(...t),r=[];return e.map(i=>{let o=i??n;for(;r.length>0&&r[r.length-1]>=o;)r.pop();return r.push(o),r.length-1})}function lf(e){let t=new Array(e.length),n=[];for(let o=e.length-1;o>=0;o--){let a=e[o];t[o]=n[a]===!0,n[a]=!0,n.length=a+1}let r=[];return{guides:e.map((o,a)=>{let s=[];for(let c=0;c<o-1;c++)s.push(r[c+1]?"pipe":"blank");return o>0&&s.push(t[a]?"tee":"elbow"),r[o]=t[a],s}),parent:e.map((o,a)=>a+1<e.length&&e[a+1]>o)}}function so(e,t){let n=[],r=!1;for(let i=t+1;i<e.length&&e[i].type!=="table_close";i++){let o=e[i];o.type==="thead_open"||o.type==="thead_close"?r=o.type==="thead_open":o.type==="tr_open"?n.push({open:i,head:r,cells:[]}):(o.type==="th_open"||o.type==="td_open")&&e[i+1]?.type==="inline"&&n[n.length-1]?.cells.push({open:i,inline:e[i+1]})}return n}var oo=e=>(e.children??[]).filter(t=>t.type==="text"||t.type==="code_inline"||t.type==="text_special").map(t=>t.content).join("").trim();function ao(e,t,n){let r=[];for(let i=t;i<n;i++){let o=e[i].meta?.[Kt];if(!(e[i].type!=="table_open"||o===void 0))for(let a of so(e,i)){let s=e[a.open].meta?.[Kt];s!==void 0&&r.push({index:a.open,cell:a.cells[o].open,line:e[a.open].map?.[0]??0,item:s})}}return r}function uf(e,t,n,r,i){let o=e.tokens,a=[],s=(C,y=r)=>{a.push({line:y,message:C})},c=so(o,t),l=c.find(C=>C.head);if(!l)return a;let u=l.cells.map(C=>[C.inline.content.trim(),oo(C.inline)]),d=new Set,p=C=>{let y=u.findIndex(N=>N.includes(C));if(y<0){s(i('No column "{0}" in the table.',C));return}return y},f=C=>{let y=p(C);if(y!==void 0){if(d.has(y)){s(i('Column "{0}" is given twice in the table options.',C));return}return d.add(y),y}},g,h=!1,m=!1,E=[];for(let C of n)if(C.key==="item"){if(m)s(i('Write "item=" only once in the table options.'));else if(C.values.length!==1)s(i('Write one column for the part numbers: "item=<column>".'));else{let y=p(C.values[0]);if(y!==void 0){o[t].meta={...o[t].meta,[Kt]:y};for(let N of c.filter(D=>!D.head&&D.cells[y]))o[N.open].meta={...o[N.open].meta,[Kt]:oo(N.cells[y].inline)}}}m=!0}else if(C.key==="level")h?s(i('Write "level=" only once in the table options.')):C.values.length!==1?s(i('Write one column for the level: "level=<column>".')):g=f(C.values[0]),h=!0;else if(C.key==="merge"&&C.values.length>=2){let y=C.values.map(f).filter(N=>N!==void 0);y.length>=2&&E.push(y)}else C.key==="merge"?s(i('Write two or more columns to merge: "merge=<column>,<column>".')):s(i('Unknown table option "{0}". Write "level=<column>", "merge=<column>,<column>" or "item=<column>".',C.key));let _=C=>{let y=new e.Token("html_inline","",0);return y.content=C,y},k=C=>!C||C.inline.content.trim()==="",x=new Set,v=C=>{C&&!x.has(C.open)&&(x.add(C.open),o[C.open].attrJoin("class","seqnotes-cell-hidden"))},w=()=>{if(E.length===0&&g===void 0)return;o[t].attrJoin("class","seqnotes-item-table");let C=l.cells.filter(D=>!x.has(D.open)).pop();if(!C)return;o[C.open].attrJoin("class","seqnotes-table-plain-cell");let y=e.md.utils.escapeHtml(i("Show as a plain table")),N='<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M2.5 2.5h11v11h-11zM2.5 6h11M2.5 9.75h11M6.5 6v7.5M10 6v7.5" fill="none" stroke="currentColor" stroke-width="1.2"/></svg>';C.inline.children=[...C.inline.children??[],_(`<button type="button" class="seqnotes-table-plain-toggle" aria-pressed="false" aria-label="${y}" title="${y}">${N}</button>`)]};for(let C of c)for(let[y,...N]of E){let D=C.cells[y];if(!D)continue;let P=[_('<span class="seqnotes-cell-main">'),...D.inline.children??[],_("</span>")];for(let U of N){let H=C.cells[U];k(H)||P.push(_('<span class="seqnotes-cell-sub">'),...H.inline.children??[],_("</span>")),v(H)}D.inline.children=P}if(g===void 0)return w(),a;let R=g,A=R+1<u.length?R+1:R-1;A=E.find(C=>C.includes(A))?.[0]??A;let b=c.filter(C=>!C.head),S=cf(b.map(C=>{let y=dt(C.cells[R]?.inline.content.trim()??"");if(/^\d+$/.test(y))return Number(y);s(i('The level "{0}" is not an integer.',y),o[C.open].map?.[0]??r)})),{guides:T,parent:M}=lf(S);o[t].attrJoin("class","seqnotes-tree-table");for(let C of c)v(C.cells[R]);let I=A>=0?l.cells[A]:void 0;if(w(),!I)return a;o[I.open].attrJoin("class","seqnotes-tree-head");let L=e.md.utils.escapeHtml(i("Child rows"));return b.forEach((C,y)=>{let N=o[C.open];N.attrSet("data-seqnotes-depth",String(S[y]));let D=C.cells[A];if(!D)return;let P=o[D.open];P.attrJoin("class","seqnotes-tree-cell");let U=P.attrGet("style");P.attrSet("style",`${U?`${U};`:""}--seqnotes-depth:${S[y]}`);let H='<span class="seqnotes-tree-guides" aria-hidden="true">';H+=T[y].map(V=>`<span class="seqnotes-tree-${V}"></span>`).join(""),M[y]&&(N.attrJoin("class","seqnotes-tree-parent"),H+='<span class="seqnotes-tree-stem"></span>'),H+="</span>",M[y]&&(H+=`<button type="button" class="seqnotes-tree-toggle" aria-expanded="true" aria-label="${L}" title="${L}"></button>`),D.inline.children=[_(H),...D.inline.children??[]]}),a}var co="seqNotesTableWarnings";function lo(e){e.core.ruler.after("inline","seqnotes_table_options",t=>{let n=t.env?.t??ne,r=t.tokens;for(let i=0;i<r.length;i++){let o=r[i],a=o.type==="html_block"?af.exec(o.content.trim()):null;if(!a)continue;let s=o.map?.[0]??0,c=r[i+1]?.type==="table_open"?uf(t,i+1,Vn(a[1]),s,n):[{line:s,message:n("The table options are not followed by a table.")}];c.length>0&&(o.meta={...o.meta,[co]:c})}})}function Zt(e){return e.flatMap(t=>t.meta?.[co]??[])}var ft="script|style|textarea|title",gt=/([^\s"'>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g,pt=(e,t)=>e.utils.unescapeAll(t.replace(/\\/g,"\\\\"));var ht="wireframe",df=/^[a-z][a-z0-9+.-]*:/i,er=e=>df.test(e)||e.startsWith("//")||e.startsWith("#");function ge(e){let[t]=e.split(/[?#]/,1);try{return decodeURIComponent(t)}catch{return t}}var uo=e=>!er(e)&&/\.html?$/i.test(ge(e));function mt(e){let t=dt(e.trim());return/^\d+$/.test(t)?Number(t):void 0}function Qn(e,t){return e.startsWith("/")?fo(e):fo(t.slice(0,t.lastIndexOf("/")+1)+e)}function fo(e){let t=e.startsWith("/")?"/":"",n=[];for(let r of e.split("/"))r===""||r==="."||(r===".."&&n.length>0&&n[n.length-1]!==".."?n.pop():(r!==".."||t==="")&&n.push(r));return t+n.join("/")}var ho=new RegExp(`<!--[\\s\\S]*?(?:-->|$)|<(${ft})(?=[\\s/>])((?:[^>"']|"[^"]*"|'[^']*')*)>([\\s\\S]*?)(?:</\\1\\s*>|$)|<([a-zA-Z][\\w:-]*)((?:[^>"']|"[^"]*"|'[^']*')*)>`,"gi");function mo(e,t){let n=new Map;for(let[,r,i,o,a]of t.matchAll(gt)){let s=r.toLowerCase();n.has(s)||n.set(s,pt(e,i??o??a??""))}return n}function go(e,t,n,r){let i=!1;return t.replace(gt,(o,a,s,c,l)=>{if(i||a.toLowerCase()!==n)return o;i=!0;let u=r(pt(e,s??c??l??""));return u===void 0?o:`${a}="${e.utils.escapeHtml(u)}"`})}var bo=e=>(e.get("rel")??"").toLowerCase().split(/\s+/).includes("stylesheet");function*_o(e,t){for(let n of t.matchAll(ho))n[4]!==void 0&&(yield{name:n[4].toLowerCase(),attributes:mo(e,n[5])})}function ff(e,t){let n=[];for(let{attributes:r}of _o(e,t)){let i=r.get("data-item");i!==void 0&&n.push({item:i,...r.has("data-ref")?{ref:r.get("data-ref")}:{}})}return n}function gf(e,t){let n=[];for(let{name:r,attributes:i}of _o(e,t)){let o=i.get("href");r==="link"&&o&&bo(i)&&!er(o)&&!n.includes(o)&&n.push(o)}return n}var pf=/url\(\s*(['"]?)([^'")]*)\1\s*\)/gi,hf=new Set(["img","input"]);function Eo(e,t,n,r){let i=ge(n),o=s=>c=>{if(c===""||er(c))return;let l=/[?#].*$/s.exec(c)?.[0]??"";return r(encodeURI(Qn(ge(c),s))+l)},a=(s,c)=>s.replace(pf,(l,u,d)=>{let p=o(c)(d);return p===void 0?l:`url("${p.replace(/["\\]/g,"\\$&")}")`});return t.html.replace(ho,(s,c,l,u,d,p)=>{if(c?.toLowerCase()==="style")return`<style${l}>${a(u??"",i)}</style>`;if(d===void 0||p===void 0)return s;let f=d.toLowerCase();if(f==="link"){let h=mo(e,p),m=h.get("href"),E=m===void 0?void 0:t.stylesheets[m];if(E!==void 0&&bo(h))return`<style>${a(E,Qn(ge(m),i)).replace(/<\/style/gi,"<\\/style")}</style>`}let g=go(e,p,"style",h=>/url\(/i.test(h)?a(h,i):void 0);return hf.has(f)&&(g=go(e,g,"src",o(i))),g===p?s:`<${d}${g}>`})}async function wo(e,t,n){let r={};return await Promise.all(t.map(async i=>{let o=ge(i),a=await n(o);if(a===void 0){r[i]=null;return}let s={};await Promise.all(gf(e,a).map(async c=>{let l=Qn(ge(c),o),u=/\.css$/i.test(l)?await n(l):void 0;u!==void 0&&(s[c]=u)})),r[i]={html:a,stylesheets:s}})),r}function mf(e,t){let n=(t?.children??[]).filter(o=>o.type!=="softbreak"&&!(o.type==="text"&&o.content.trim()==="")),[r]=n;if(n.length===1&&r.type==="image"){let o=String(r.attrGet("src")??"");return uo(o)?o:void 0}let i=n[n.length-1];if(e.level===0&&n.length>=2&&r.type==="link_open"&&i.type==="link_close"&&n.filter(o=>o.type==="link_open").length===1){let o=String(r.attrGet("href")??"");return uo(o)?o:void 0}}function bf(e){return(e.children??[]).map(t=>t.type==="image"||t.type==="text"||t.type==="code_inline"?t.content:"").join("").trim()}var _f=/^<!--\s*wireframe:([^]*?)-->\s*$/,po=/^item\.(.+)$/,ko="seqNotesWireframeWarnings";function Ef(e,t,n,r){let i={linkHeadings:!1,stacked:!1,line:t};for(let o of Vn(e))if(o.key==="link-headings"&&o.values.length===0)i.linkHeadings=!0;else if(o.key==="stacked"&&o.values.length===0)i.stacked=!0;else if(po.test(o.key)){let a=mt(po.exec(o.key)[1]),s=o.values.join(", ").trim();a===void 0||s===""?r.push({line:t,message:n(`Write the selector of a part of the wireframe: 'item.<number>="<selector>"'.`)}):(i.items??=[]).push({number:a,selector:s})}else if(o.key==="width"){let a=o.values.length===1?mt(o.values[0].replace(/px$/i,"")):void 0;a?i.width=a:r.push({line:t,message:n('Write the width of the wireframe in pixels: "width=<number>".')})}else r.push({line:t,message:n(`Unknown wireframe option "{0}". Write "link-headings", "width=<pixels>", "stacked" or 'item.<number>="<selector>"'.`,o.key)});return i}function xo(e){e.core.ruler.after("inline","seqnotes_wireframes",t=>{let n=t.env,r=n?.t??ne,i=t.tokens;for(let o=0;o<i.length;o++){let a=i[o].type==="paragraph_open"&&i[o+2]?.type==="paragraph_close"?mf(i[o],i[o+1]):void 0;if(a===void 0)continue;let s=i[o],c=new t.Token(ht,"div",0);c.block=!0,c.level=s.level,c.map=s.map;let l=n?.wireframes?.[a],u={src:a,alt:bf(i[o+1]),options:{linkHeadings:!1,stacked:!1},file:l,...l?{parts:ff(t.md,l.html)}:{}};c.meta={wireframe:u},i.splice(o,3,c)}for(let o=0;o<i.length;o++){let a=i[o],s=a.type==="html_block"?_f.exec(a.content.trim()):null;if(!s)continue;let c=a.map?.[0]??0,l=[],u=i[o+1];u?.type===ht?u.meta.wireframe.options=Ef(s[1],c,r,l):l.push({line:c,message:r("The wireframe options are not followed by a wireframe.")}),l.length>0&&(a.meta={...a.meta,[ko]:l})}})}function He(e){return e.type===ht?e.meta.wireframe:void 0}function yo(e){return[...new Set(e.map(He).filter(t=>t!==void 0).map(t=>t.src))]}function vo(e){return e.flatMap(t=>t.meta?.[ko]??[])}var wf=/^\s*<!--\s*link-headings:end\s*-->\s*$/,kf=/^\s*<!--\s*seq-notes:end\s*-->\s*$/,Ro=[{kind:"flowchart",is:eo,parse:to},{kind:"er",is:ji,parse:Xi},{kind:"state",is:ro,parse:io}];function Ge(e){return e.type==="fence"&&e.info.trim().split(/\s+/)[0]==="mermaid"}function xf(e){if(Ge(e))return qt(e.content)?"sequence":Ro.find(t=>t.is(e.content))?.kind}function bt(e){return e?e.children?e.children.map(t=>{switch(t.type){case"text":case"code_inline":return t.content;case"softbreak":case"hardbreak":return" ";default:return""}}).join(""):e.content:""}function yf(e){let t=new Map;for(let r of e)t.set(r,(t.get(r)??0)+1);let n;for(let[r,i]of t){let o=n===void 0?0:t.get(n);(i>o||i===o&&r<n)&&(n=r)}return n}function vf(e,t,n,r,i,o){let a=(e.map?.[0]??0)+1,s=Ne(n,i),c=Ro.find(E=>E.kind===n)?.parse(e.content,a),l,u;c?u={messages:c.nodes,markerLine:c.markerLine,legacyMarkerLine:c.legacyMarkerLine}:u=l=Wt(e.content,a);let{messages:d,markerLine:p,legacyMarkerLine:f}=u;if(f!==void 0&&o.push({line:f,message:i('"%% @seq-notes" is no longer supported. Write "%% @link-headings" instead.')}),p===void 0)for(let E of d.filter(_=>_.ref!==void 0))o.push({line:E.refLine??E.line,message:s.refWithoutMarker});else e.level!==0&&o.push({line:p,message:s.markerNotTopLevel});let g=p!==void 0&&e.level===0,h=c?.horizontal??!1,m={id:r,kind:n,fenceIndex:t,rangeEnd:t+1,messages:d,unlinkedHeadings:[],headings:[],paired:g,stacked:h,rows:[]};return l&&(p===void 0||g)&&Object.assign(m,Rf(l,p!==void 0,i,o)),m}function Rf(e,t,n,r){let i=ut(n),{notes:o,anchors:a,strayDirectives:s}=e;if(!t){let l=[...a.map(u=>u.markerLine),...o.map(u=>u.gotoLine),...s.map(u=>u.line)];for(let u of l.filter(d=>d!==void 0).sort((d,p)=>d-p))r.push({line:u,message:i.withoutMarker});return{}}for(let l of s){let u={anchor:i.strayAnchor,goto:i.strayGoto,gotoOnLabel:i.gotoOnLabel};r.push({line:l.line,message:u[l.directive]})}let c=new Map;for(let l of a)if(c.has(l.name)){r.push({line:l.markerLine??l.line,message:i.duplicateAnchor(l.name)});let u=l.note===void 0?void 0:o[l.note];u&&delete u.anchor}else c.set(l.name,{...l});return{notes:o,anchors:[...c.values()]}}function Af(e,t,n){let r=ut(t),i=new Map;for(let o of e)for(let a of o.anchors??[]){let s=i.get(a.name)??[];s.push({diagram:o,anchor:a}),i.set(a.name,s)}for(let o of e){let a=new Set(o.anchors?.map(s=>s.name));for(let s of o.notes??[]){if(s.goto===void 0||a.has(s.goto))continue;let c=i.get(s.goto)??[];if(c.length===1){s.gotoDiagram=c[0].diagram.id,c[0].anchor.jumpedFrom=!0;continue}let l=s.gotoLine??s.line;n.push({line:l,message:c.length===0?r.gotoNotFound(s.goto):r.gotoAmbiguous(s.goto)}),delete s.goto}}}function Cf(e,t,n,r,i){let{src:o,options:a,file:s,parts:c}=He(e),l=e.map?.[0]??0,u=[];s===null&&i.push({line:l,message:r('The wireframe "{0}" could not be read.',ge(o))});for(let p of c??[]){let f=mt(p.item);f===void 0?i.push({line:l,message:r('data-item "{0}" of the wireframe "{1}" is not a number.',p.item,ge(o))}):u.some(g=>g.nodeId===String(f))||u.push({index:u.length,line:l,text:String(f),nodeId:String(f),...p.ref!==void 0?{ref:p.ref}:{}})}for(let{number:p}of s?a.items??[]:[])u.some(f=>f.nodeId===String(p))||u.push({index:u.length,line:a.line??l,text:String(p),nodeId:String(p)});a.linkHeadings&&e.level!==0&&i.push({line:a.line??l,message:Ne("wireframe",r).markerNotTopLevel});let d=a.linkHeadings&&e.level===0;return{id:n,kind:"wireframe",fenceIndex:t,rangeEnd:t+1,messages:u,unlinkedHeadings:[],headings:[],paired:d,stacked:a.stacked,rows:[]}}function Jt(e,t=ne){let n=[...vo(e)],r=[];e.forEach((o,a)=>{let s=xf(o);s?r.push(vf(o,a,s,r.length,t,n)):He(o)&&r.push(Cf(o,a,r.length,t,n))}),Af(r,t,n);let i=new Set(r.filter(o=>o.paired).map(o=>o.fenceIndex));for(let o of e)o.level===0&&o.type==="html_block"&&kf.test(o.content)&&n.push({line:o.map?.[0]??0,message:t('"<!-- seq-notes:end -->" is no longer supported. Write "<!-- link-headings:end -->" instead.')});for(let o of r.filter(a=>a.paired)){let a=o.fenceIndex,s=a+1;for(;s<e.length;){let h=e[s];if(i.has(s)||h.level===0&&h.type==="html_block"&&wf.test(h.content)||h.type==="footnote_block_open")break;s++}o.rangeEnd=s;let c=new Map,l=new Map,u=new Map,d=o.headings;for(let h=a+1;h<s;h++){let m=e[h],E=m.type==="heading_open"?m.attrGet("id"):null;if(E){let _=le(bt(e[h+1]));m.level===0&&d.push({index:h,id:String(E),level:Number(m.tag.slice(1)),line:m.map?.[0]??0,text:_,refTarget:!c.has(_)}),c.has(_)||c.set(_,String(E));let k=Zi(_);k&&(u.set(String(E),k),l.set(k.text,[...l.get(k.text)??[],String(E)]))}}let p=Ne(o.kind,t);if(o.kind==="wireframe")Tf(o,e,c,l,u,p,n);else for(let h of o.messages){let m=le(h.ref??h.text),E=h.number,_=l.get(m)??[],k=c.get(m)??_.find(x=>Number(u.get(x).value)===E)??_[0];if(k){h.target=k;let x=u.get(k);x&&E!==void 0&&(h.numberInHeading=Number(x.value)===E)}else h.ref!==void 0&&n.push({line:h.refLine??h.line,message:p.refNotFound(h.ref)})}for(let h of o.anchors??[])h.firstTarget=o.messages.slice(h.firstMessage,h.endMessage).find(m=>m.target)?.target;let f=new Set(o.messages.map(h=>h.target).filter(h=>h!==void 0));if(f.size===0)continue;for(let h of o.messages.filter(m=>!m.target&&m.labeled!==!1))h.unlinked=!0;for(let h of o.rows.filter(m=>!m.target))h.unlinked=!0;let g=yf(d.filter(h=>f.has(h.id)).map(h=>h.level));o.stepLevel=g,o.unlinkedHeadings=d.filter(h=>h.level===g&&!f.has(h.id)).map(h=>h.index)}return n.sort((o,a)=>o.line-a.line),{diagrams:r,warnings:n}}function Ao(e){let t=new Map(e.headings.map(r=>[r.id,r.text])),n=new Set(e.messages.filter(r=>r.numberInHeading===!1&&le(r.ref??r.text)!==t.get(r.target)).map(r=>r.target));return e.headings.filter(r=>n.has(r.id)).map(r=>({heading:r,numbers:e.messages.filter(i=>i.target===r.id&&i.number!==void 0).map(i=>i.number).sort((i,o)=>i-o)}))}function Tf(e,t,n,r,i,o,a){let s=new Map;for(let[l,u]of i){let d=Number(u.value);s.has(d)||s.set(d,l)}let c=new Map(e.messages.map(l=>[Number(l.nodeId),l]));for(let[l,u]of c){if(u.ref===void 0){u.target=s.get(l);continue}let d=le(u.ref);u.target=n.get(d)??r.get(d)?.[0],u.target===void 0&&a.push({line:u.line,message:o.refNotFound(u.ref)})}e.rows=ao(t,e.fenceIndex+1,e.rangeEnd);for(let l of e.rows){let u=mt(l.item),d=u===void 0?void 0:c.get(u);d&&(d.target??=`seqnotes-part-${e.id}-${u}`,l.target=d.target)}}function Nf(e,t,n,r){let i=Number(e[t].meta.id+1).toString(),o="";return typeof r.docId=="string"&&(o=`-${r.docId}-`),o+i}function Sf(e,t){let n=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(n+=`:${e[t].meta.subId}`),`[${n}]`}function Df(e,t,n,r,i){let o=i.rules.footnote_anchor_name(e,t,n,r,i),a=i.rules.footnote_caption(e,t,n,r,i),s=o;return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`<sup class="footnote-ref"><a href="#fn${o}" id="fnref${s}">${a}</a></sup>`}function Mf(e,t,n){return(n.xhtmlOut?`<hr class="footnotes-sep" />
28
28
  `:`<hr class="footnotes-sep">
29
29
  `)+`<section class="footnotes">
30
30
  <ol class="footnotes-list">
31
- `}function Rf(){return`</ol>
31
+ `}function If(){return`</ol>
32
32
  </section>
33
- `}function Af(e,t,n,r,i){let o=i.rules.footnote_anchor_name(e,t,n,r,i);return e[t].meta.subId>0&&(o+=`:${e[t].meta.subId}`),`<li id="fn${o}" class="footnote-item">`}function Cf(){return`</li>
34
- `}function Tf(e,t,n,r,i){let o=i.rules.footnote_anchor_name(e,t,n,r,i);return e[t].meta.subId>0&&(o+=`:${e[t].meta.subId}`),` <a href="#fnref${o}" class="footnote-backref">\u21A9\uFE0E</a>`}function Vn(e){let t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=yf,e.renderer.rules.footnote_block_open=vf,e.renderer.rules.footnote_block_close=Rf,e.renderer.rules.footnote_open=Af,e.renderer.rules.footnote_close=Cf,e.renderer.rules.footnote_anchor=Tf,e.renderer.rules.footnote_caption=xf,e.renderer.rules.footnote_anchor_name=kf;function r(s,c,l,u){let d=s.bMarks[c]+s.tShift[c],p=s.eMarks[c];if(d+4>p||s.src.charCodeAt(d)!==91||s.src.charCodeAt(d+1)!==94)return!1;let f;for(f=d+2;f<p;f++){if(s.src.charCodeAt(f)===32)return!1;if(s.src.charCodeAt(f)===93)break}if(f===d+2||f+1>=p||s.src.charCodeAt(++f)!==58)return!1;if(u)return!0;f++,s.env.footnotes||(s.env.footnotes={}),s.env.footnotes.refs||(s.env.footnotes.refs={});let g=s.src.slice(d+2,f-2);s.env.footnotes.refs[`:${g}`]=-1;let h=new s.Token("footnote_reference_open","",1);h.meta={label:g},h.level=s.level++,s.tokens.push(h);let m=s.bMarks[c],b=s.tShift[c],_=s.sCount[c],x=s.parentType,k=f,R=s.sCount[c]+f-(s.bMarks[c]+s.tShift[c]),E=R;for(;f<p;){let A=s.src.charCodeAt(f);if(n(A))A===9?E+=4-E%4:E++;else break;f++}s.tShift[c]=f-k,s.sCount[c]=E-R,s.bMarks[c]=k,s.blkIndent+=4,s.parentType="footnote",s.sCount[c]<s.blkIndent&&(s.sCount[c]+=s.blkIndent),s.md.block.tokenize(s,c,l,!0),s.parentType=x,s.blkIndent-=4,s.tShift[c]=b,s.sCount[c]=_,s.bMarks[c]=m;let v=new s.Token("footnote_reference_close","",-1);return v.level=--s.level,s.tokens.push(v),!0}function i(s,c){let l=s.posMax,u=s.pos;if(u+2>=l||s.src.charCodeAt(u)!==94||s.src.charCodeAt(u+1)!==91)return!1;let d=u+2,p=t(s,u+1);if(p<0)return!1;if(!c){s.env.footnotes||(s.env.footnotes={}),s.env.footnotes.list||(s.env.footnotes.list=[]);let f=s.env.footnotes.list.length,g=[];s.md.inline.parse(s.src.slice(d,p),s.md,s.env,g);let h=s.push("footnote_ref","",0);h.meta={id:f},s.env.footnotes.list[f]={content:s.src.slice(d,p),tokens:g}}return s.pos=p+1,s.posMax=l,!0}function o(s,c){let l=s.posMax,u=s.pos;if(u+3>l||!s.env.footnotes||!s.env.footnotes.refs||s.src.charCodeAt(u)!==91||s.src.charCodeAt(u+1)!==94)return!1;let d;for(d=u+2;d<l;d++){if(s.src.charCodeAt(d)===32||s.src.charCodeAt(d)===10)return!1;if(s.src.charCodeAt(d)===93)break}if(d===u+2||d>=l)return!1;d++;let p=s.src.slice(u+2,d-1);if(typeof s.env.footnotes.refs[`:${p}`]>"u")return!1;if(!c){s.env.footnotes.list||(s.env.footnotes.list=[]);let f;s.env.footnotes.refs[`:${p}`]<0?(f=s.env.footnotes.list.length,s.env.footnotes.list[f]={label:p,count:0},s.env.footnotes.refs[`:${p}`]=f):f=s.env.footnotes.refs[`:${p}`];let g=s.env.footnotes.list[f].count;s.env.footnotes.list[f].count++;let h=s.push("footnote_ref","",0);h.meta={id:f,subId:g,label:p}}return s.pos=d,s.posMax=l,!0}function a(s){let c,l,u,d=!1,p={};if(!s.env.footnotes||(s.tokens=s.tokens.filter(function(g){return g.type==="footnote_reference_open"?(d=!0,l=[],u=g.meta.label,!1):g.type==="footnote_reference_close"?(d=!1,p[":"+u]=l,!1):(d&&l.push(g),!d)}),!s.env.footnotes.list))return;let f=s.env.footnotes.list;s.tokens.push(new s.Token("footnote_block_open","",1));for(let g=0,h=f.length;g<h;g++){let m=new s.Token("footnote_open","",1);if(m.meta={id:g,label:f[g].label},s.tokens.push(m),f[g].tokens){c=[];let x=new s.Token("paragraph_open","p",1);x.block=!0,c.push(x);let k=new s.Token("inline","",0);k.children=f[g].tokens,k.content=f[g].content,c.push(k);let R=new s.Token("paragraph_close","p",-1);R.block=!0,c.push(R)}else f[g].label&&(c=p[`:${f[g].label}`]);c&&(s.tokens=s.tokens.concat(c));let b;s.tokens[s.tokens.length-1].type==="paragraph_close"?b=s.tokens.pop():b=null;let _=f[g].count>0?f[g].count:1;for(let x=0;x<_;x++){let k=new s.Token("footnote_anchor","",0);k.meta={id:g,subId:x,label:f[g].label},s.tokens.push(k)}b&&s.tokens.push(b),s.tokens.push(new s.Token("footnote_close","",-1))}s.tokens.push(new s.Token("footnote_block_close","",-1))}e.block.ruler.before("reference","footnote_def",r,{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnote_inline",i),e.inline.ruler.after("footnote_inline","footnote_ref",o),e.core.ruler.after("inline","footnote_tail",a)}var Ma=wn(Da(),1);var lr=Ma.default;function Pp(e,t){if(!t||!lr.getLanguage(t))return"";try{return lr.highlight(e,{language:t,ignoreIllegals:!0}).value}catch{return""}}var Oa=/^(?:"[^"]*"|'[^']*'|[^\s#:"'-][^:]*?)\s*:(?:\s|$)/,sn=e=>/^(["']).*\1$/.test(e)?e.slice(1,-1):e;function Ia(e){let t=/^(["'])(?:(?!\1).)*\1/.exec(e);if(t)return/^\s*(?:#.*)?$/.test(e.slice(t[0].length))?t[0]:e;let n=/(?:^|\s)#/.exec(e);return n?e.slice(0,n.index).trimEnd():e}function ur(e){let t=[];for(let n of e.split(/\r?\n/)){let r=/^\S/.test(n)?Oa.exec(n):null;r?t.push({key:sn(r[0].replace(/\s*:\s*$/,"")),rest:Ia(n.slice(r[0].length).trim()),lines:[]}):t.length>0&&!/^#/.test(n)&&t[t.length-1].lines.push(n)}return t.map(({key:n,rest:r,lines:i})=>{for(;i.length>0&&i[i.length-1].trim()==="";)i.pop();let o=Math.min(...i.filter(c=>c.trim()!=="").map(c=>/^\s*/.exec(c)[0].length)),a=i.map(c=>c.slice(o)),s;return/^[|>][+-]?\d*$/.test(r)?s=a.join(r.startsWith(">")?" ":`
35
- `):r===""&&a.length>0&&a.every(c=>/^-(\s|$)/.test(c))?s=a.map(c=>sn(Ia(c.slice(1).trim()))).join(", "):a.length===0&&/^\[.*\]$/.test(r)?s=r.slice(1,-1).split(",").map(c=>sn(c.trim())).filter(c=>c!=="").join(", "):s=[sn(r),...a].filter((c,l)=>l>0||c!=="").join(`
36
- `),{key:n,value:s}})}function kt(e,t){let n=e.find(r=>r.key===t)?.value;return n?.trim()?n:void 0}var $p="design_doc";function dr(e){return e.find(t=>t.key==="type")?.value.trim()===$p}var wt=[{key:"version",label:"Version"},{key:"product",label:"Product"},{key:"status",label:"Status"},{key:"updated",label:"Updated"}];function Up(e){e.block.ruler.before("table","seqnotes_front_matter",(t,n,r,i)=>{let o=a=>t.src.slice(t.bMarks[a],t.eMarks[a]).trimEnd();if(n!==0||t.parentType!=="root"||o(0)!=="---"||r<2||!Oa.test(o(1)))return!1;for(let a=1;a<r;a++)if(o(a)==="---"||o(a)==="..."){if(!i){let s=t.push("front_matter","",0);s.block=!0,s.map=[0,a+1],s.content=a>1?t.src.slice(t.bMarks[1],t.eMarks[a-1]):""}return t.line=a+1,!0}return!1}),e.renderer.rules.front_matter=(t,n,r,i,o)=>{let a=i?.frontMatter===!1?[]:ur(t[n].content),s=e.utils.escapeHtml,c=t[n],l=(b,_="")=>`<table${_} class="seqnotes-front-matter">
33
+ `}function Of(e,t,n,r,i){let o=i.rules.footnote_anchor_name(e,t,n,r,i);return e[t].meta.subId>0&&(o+=`:${e[t].meta.subId}`),`<li id="fn${o}" class="footnote-item">`}function Lf(){return`</li>
34
+ `}function Ff(e,t,n,r,i){let o=i.rules.footnote_anchor_name(e,t,n,r,i);return e[t].meta.subId>0&&(o+=`:${e[t].meta.subId}`),` <a href="#fnref${o}" class="footnote-backref">\u21A9\uFE0E</a>`}function tr(e){let t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=Df,e.renderer.rules.footnote_block_open=Mf,e.renderer.rules.footnote_block_close=If,e.renderer.rules.footnote_open=Of,e.renderer.rules.footnote_close=Lf,e.renderer.rules.footnote_anchor=Ff,e.renderer.rules.footnote_caption=Sf,e.renderer.rules.footnote_anchor_name=Nf;function r(s,c,l,u){let d=s.bMarks[c]+s.tShift[c],p=s.eMarks[c];if(d+4>p||s.src.charCodeAt(d)!==91||s.src.charCodeAt(d+1)!==94)return!1;let f;for(f=d+2;f<p;f++){if(s.src.charCodeAt(f)===32)return!1;if(s.src.charCodeAt(f)===93)break}if(f===d+2||f+1>=p||s.src.charCodeAt(++f)!==58)return!1;if(u)return!0;f++,s.env.footnotes||(s.env.footnotes={}),s.env.footnotes.refs||(s.env.footnotes.refs={});let g=s.src.slice(d+2,f-2);s.env.footnotes.refs[`:${g}`]=-1;let h=new s.Token("footnote_reference_open","",1);h.meta={label:g},h.level=s.level++,s.tokens.push(h);let m=s.bMarks[c],E=s.tShift[c],_=s.sCount[c],k=s.parentType,x=f,v=s.sCount[c]+f-(s.bMarks[c]+s.tShift[c]),w=v;for(;f<p;){let A=s.src.charCodeAt(f);if(n(A))A===9?w+=4-w%4:w++;else break;f++}s.tShift[c]=f-x,s.sCount[c]=w-v,s.bMarks[c]=x,s.blkIndent+=4,s.parentType="footnote",s.sCount[c]<s.blkIndent&&(s.sCount[c]+=s.blkIndent),s.md.block.tokenize(s,c,l,!0),s.parentType=k,s.blkIndent-=4,s.tShift[c]=E,s.sCount[c]=_,s.bMarks[c]=m;let R=new s.Token("footnote_reference_close","",-1);return R.level=--s.level,s.tokens.push(R),!0}function i(s,c){let l=s.posMax,u=s.pos;if(u+2>=l||s.src.charCodeAt(u)!==94||s.src.charCodeAt(u+1)!==91)return!1;let d=u+2,p=t(s,u+1);if(p<0)return!1;if(!c){s.env.footnotes||(s.env.footnotes={}),s.env.footnotes.list||(s.env.footnotes.list=[]);let f=s.env.footnotes.list.length,g=[];s.md.inline.parse(s.src.slice(d,p),s.md,s.env,g);let h=s.push("footnote_ref","",0);h.meta={id:f},s.env.footnotes.list[f]={content:s.src.slice(d,p),tokens:g}}return s.pos=p+1,s.posMax=l,!0}function o(s,c){let l=s.posMax,u=s.pos;if(u+3>l||!s.env.footnotes||!s.env.footnotes.refs||s.src.charCodeAt(u)!==91||s.src.charCodeAt(u+1)!==94)return!1;let d;for(d=u+2;d<l;d++){if(s.src.charCodeAt(d)===32||s.src.charCodeAt(d)===10)return!1;if(s.src.charCodeAt(d)===93)break}if(d===u+2||d>=l)return!1;d++;let p=s.src.slice(u+2,d-1);if(typeof s.env.footnotes.refs[`:${p}`]>"u")return!1;if(!c){s.env.footnotes.list||(s.env.footnotes.list=[]);let f;s.env.footnotes.refs[`:${p}`]<0?(f=s.env.footnotes.list.length,s.env.footnotes.list[f]={label:p,count:0},s.env.footnotes.refs[`:${p}`]=f):f=s.env.footnotes.refs[`:${p}`];let g=s.env.footnotes.list[f].count;s.env.footnotes.list[f].count++;let h=s.push("footnote_ref","",0);h.meta={id:f,subId:g,label:p}}return s.pos=d,s.posMax=l,!0}function a(s){let c,l,u,d=!1,p={};if(!s.env.footnotes||(s.tokens=s.tokens.filter(function(g){return g.type==="footnote_reference_open"?(d=!0,l=[],u=g.meta.label,!1):g.type==="footnote_reference_close"?(d=!1,p[":"+u]=l,!1):(d&&l.push(g),!d)}),!s.env.footnotes.list))return;let f=s.env.footnotes.list;s.tokens.push(new s.Token("footnote_block_open","",1));for(let g=0,h=f.length;g<h;g++){let m=new s.Token("footnote_open","",1);if(m.meta={id:g,label:f[g].label},s.tokens.push(m),f[g].tokens){c=[];let k=new s.Token("paragraph_open","p",1);k.block=!0,c.push(k);let x=new s.Token("inline","",0);x.children=f[g].tokens,x.content=f[g].content,c.push(x);let v=new s.Token("paragraph_close","p",-1);v.block=!0,c.push(v)}else f[g].label&&(c=p[`:${f[g].label}`]);c&&(s.tokens=s.tokens.concat(c));let E;s.tokens[s.tokens.length-1].type==="paragraph_close"?E=s.tokens.pop():E=null;let _=f[g].count>0?f[g].count:1;for(let k=0;k<_;k++){let x=new s.Token("footnote_anchor","",0);x.meta={id:g,subId:k,label:f[g].label},s.tokens.push(x)}E&&s.tokens.push(E),s.tokens.push(new s.Token("footnote_close","",-1))}s.tokens.push(new s.Token("footnote_block_close","",-1))}e.block.ruler.before("reference","footnote_def",r,{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnote_inline",i),e.inline.ruler.after("footnote_inline","footnote_ref",o),e.core.ruler.after("inline","footnote_tail",a)}var Yt=30,Co=e=>typeof e=="number"&&Number.isInteger(e)&&e>=0,rr=/[ᄀ-ᅟ⺀-〾ぁ-㏿㐀-䶿一-鿿ꀀ-꓏가-힣豈-﫿︰-﹏＀-⦆¢-₩\u{1F300}-\u{1F64F}\u{1F680}-\u{1F6FF}\u{1F900}-\u{1FAFF}\u{20000}-\u{3FFFD}]/u,Bf=new Set(Array.from("\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u309D\u309E\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\uFF09\u3015\uFF3D\uFF5D\u3009\u300B\u300D\u300F\u3011\u3019\u3017\u301F\u2019\u201D\uFF60\xBB,.:;!?)]}")),Pf=new Set(Array.from("\uFF08\u3014\uFF3B\uFF5B\u3008\u300A\u300C\u300E\u3010\u3018\u3016\u301D\u2018\u201C\uFF5F\xAB([{")),$f=/<br\s*\/?>|#|;|%%|\$\$|^:?(?:no)?wrap:/i,Uf=/<\/?[a-z][a-z0-9]*(?:\s[^>]*)?\/?>/,zf=e=>$f.test(e)||Uf.test(e),To=e=>rr.test(e)?2:1,No=e=>Array.from(e).reduce((t,n)=>t+To(n),0);function qf(e,t){let n=e[t-1],r=e[t];return n===" "||r===" "?!0:Bf.has(r)||Pf.has(n)?!1:n==="/"&&r!=="/"?!0:rr.test(n)||rr.test(r)}function nr(e,t){let n=[],r=0;for(;r<e.length;){for(;e[r]===" ";)r++;if(r>=e.length)break;let i=0,o=r,a=-1;for(;o<e.length;){o>r&&qf(e,o)&&(a=o);let c=To(e[o]);if(o>r&&i+c>t)break;i+=c,o++}let s=o<e.length&&a>r?a:o;n.push(e.slice(r,s).join("").trimEnd()),r=s}return n}function Wf(e,t){let n=e.replace(/\s+/g," ").trim(),r=No(n);if(t<=0||r<=t)return[n];let i=Array.from(n),o=nr(i,t).length;for(let a=Math.ceil(r/o);a<t;a++){let s=nr(i,a);if(s.length<=o)return s}return nr(i,t)}function So(e,t){if(!(t>0)||!qt(e))return e;let{messages:n}=Wt(e,0),r=e.split(`
35
+ `),i=!1;for(let{line:o}of n){let a=r[o],s=a.indexOf(":"),c=a.slice(s+1),l=c.trim();if(zf(l)||No(l)<=t)continue;let u=/^\s*/.exec(c)[0],d=/\s*$/.exec(c)[0];r[o]=`${a.slice(0,s+1)}${u}${Wf(l,t).join("<br>")}${d}`,i=!0}return i?r.join(`
36
+ `):e}var $a=yn(Pa(),1);var pr=$a.default;function Qp(e,t){if(!t||!pr.getLanguage(t))return"";try{return pr.highlight(e,{language:t,ignoreIllegals:!0}).value}catch{return""}}var za=/^(?:"[^"]*"|'[^']*'|[^\s#:"'-][^:]*?)\s*:(?:\s|$)/,ln=e=>/^(["']).*\1$/.test(e)?e.slice(1,-1):e;function Ua(e){let t=/^(["'])(?:(?!\1).)*\1/.exec(e);if(t)return/^\s*(?:#.*)?$/.test(e.slice(t[0].length))?t[0]:e;let n=/(?:^|\s)#/.exec(e);return n?e.slice(0,n.index).trimEnd():e}function hr(e){let t=[];for(let n of e.split(/\r?\n/)){let r=/^\S/.test(n)?za.exec(n):null;r?t.push({key:ln(r[0].replace(/\s*:\s*$/,"")),rest:Ua(n.slice(r[0].length).trim()),lines:[]}):t.length>0&&!/^#/.test(n)&&t[t.length-1].lines.push(n)}return t.map(({key:n,rest:r,lines:i})=>{for(;i.length>0&&i[i.length-1].trim()==="";)i.pop();let o=Math.min(...i.filter(c=>c.trim()!=="").map(c=>/^\s*/.exec(c)[0].length)),a=i.map(c=>c.slice(o)),s;return/^[|>][+-]?\d*$/.test(r)?s=a.join(r.startsWith(">")?" ":`
37
+ `):r===""&&a.length>0&&a.every(c=>/^-(\s|$)/.test(c))?s=a.map(c=>ln(Ua(c.slice(1).trim()))).join(", "):a.length===0&&/^\[.*\]$/.test(r)?s=r.slice(1,-1).split(",").map(c=>ln(c.trim())).filter(c=>c!=="").join(", "):s=[ln(r),...a].filter((c,l)=>l>0||c!=="").join(`
38
+ `),{key:n,value:s}})}function xt(e,t){let n=e.find(r=>r.key===t)?.value;return n?.trim()?n:void 0}var eh="design_doc";function mr(e){return e.find(t=>t.key==="type")?.value.trim()===eh}var kt=[{key:"version",label:"Version"},{key:"product",label:"Product"},{key:"status",label:"Status"},{key:"updated",label:"Updated"}];function th(e){e.block.ruler.before("table","seqnotes_front_matter",(t,n,r,i)=>{let o=a=>t.src.slice(t.bMarks[a],t.eMarks[a]).trimEnd();if(n!==0||t.parentType!=="root"||o(0)!=="---"||r<2||!za.test(o(1)))return!1;for(let a=1;a<r;a++)if(o(a)==="---"||o(a)==="..."){if(!i){let s=t.push("front_matter","",0);s.block=!0,s.map=[0,a+1],s.content=a>1?t.src.slice(t.bMarks[1],t.eMarks[a-1]):""}return t.line=a+1,!0}return!1}),e.renderer.rules.front_matter=(t,n,r,i,o)=>{let a=i?.frontMatter===!1?[]:hr(t[n].content),s=e.utils.escapeHtml,c=t[n],l=(E,_="")=>`<table${_} class="seqnotes-front-matter">
37
39
  <tbody>
38
- `+b.map(({key:x,value:k})=>`<tr><th>${s(x)}</th><td>${s(k)}</td></tr>
40
+ `+E.map(({key:k,value:x})=>`<tr><th>${s(k)}</th><td>${s(x)}</td></tr>
39
41
  `).join("")+`</tbody>
40
42
  </table>
41
- `;if(!dr(a))return a.length===0?"":l(a,o.renderAttrs(c));let u=i?.t??ne,d=b=>kt(a,b),p=d("title"),f=wt.flatMap(({key:b,label:_})=>{let x=d(b);return x===void 0?[]:[`<div class="seqnotes-doc-${b}"><dt>${s(u(_))}</dt><dd>${s(x)}</dd></div>
42
- `]}),g=a.filter(({key:b})=>b!=="type"&&b!=="title"&&!wt.some(_=>_.key===b)),h=p===void 0&&f.length===0?"":`<div class="seqnotes-doc-headline">
43
+ `;if(!mr(a))return a.length===0?"":l(a,o.renderAttrs(c));let u=i?.t??ne,d=E=>xt(a,E),p=d("title"),f=kt.flatMap(({key:E,label:_})=>{let k=d(E);return k===void 0?[]:[`<div class="seqnotes-doc-${E}"><dt>${s(u(_))}</dt><dd>${s(k)}</dd></div>
44
+ `]}),g=a.filter(({key:E})=>E!=="type"&&E!=="title"&&!kt.some(_=>_.key===E)),h=p===void 0&&f.length===0?"":`<div class="seqnotes-doc-headline">
43
45
  `+(p===void 0?"":`<div class="seqnotes-doc-title">${s(p)}</div>
44
46
  `)+(f.length===0?"":`<dl class="seqnotes-doc-meta">
45
47
  ${f.join("")}</dl>
@@ -49,18 +51,18 @@ ${f.join("")}</dl>
49
51
  ${l(g)}</details>
50
52
  `;return`<div${o.renderAttrs(c)}>
51
53
  ${h}${m}</div>
52
- `}}var zp=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\][ \t]*(?:\n|$)/i,qp={note:["info","M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],tip:["light-bulb","M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"],important:["report","M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],warning:["alert","M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],caution:["stop","M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"]};function Wp(e){let[t,n]=qp[e];return`<svg class="octicon octicon-${t}" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="${n}"></path></svg>`}function Hp(e){e.core.ruler.after("block","seqnotes_alerts",t=>{let n=t.tokens;for(let r=0;r<n.length;r++){let i=n[r],o=n[r+2];if(i.type!=="blockquote_open"||i.level!==0||n[r+1]?.type!=="paragraph_open"||o?.type!=="inline")continue;let a=zp.exec(o.content);if(!a)continue;let s=a[1].toLowerCase(),c=r+1;for(;n[c].type!=="blockquote_close"||n[c].level!==i.level;)c++;if(a[0].length===o.content.length&&c===r+4)continue;i.tag="div",i.attrJoin("class",`markdown-alert markdown-alert-${s}`),n[c].tag="div",o.content=o.content.slice(a[0].length);let l=n[r+1];l.map&&o.content!==""&&(l.map=[l.map[0]+1,l.map[1]]);let u=[new t.Token("paragraph_open","p",1),new t.Token("inline","",0),new t.Token("paragraph_close","p",-1)];u[0].attrSet("class","markdown-alert-title"),u[0].map=i.map,u[1].content=s[0].toUpperCase()+s.slice(1);let d=new t.Token("html_inline","",0);d.content=Wp(s),u[1].children=[d],u.forEach((p,f)=>p.level=i.level+(f===1?2:1)),u[0].block=u[2].block=!0,n.splice(r+1,o.content===""?3:0,...u)}})}var Gp=/^\[([ xX])\](?=\s|$)\s*/;function Kp(e){e.core.ruler.after("inline","seqnotes_task_lists",t=>{let n=t.tokens;for(let r=0;r<n.length;r++){let i=n[r+2],o=i?.children?.[0];if(n[r].type!=="list_item_open"||n[r+1].type!=="paragraph_open"||i.type!=="inline"||o?.type!=="text")continue;let a=Gp.exec(o.content);if(!a)continue;o.content=o.content.slice(a[0].length);let s=new t.Token("html_inline","",0);s.content=`<input class="task-list-item-checkbox" type="checkbox" disabled${a[1]===" "?"":" checked"}> `,i.children.unshift(s),n[r].attrJoin("class","task-list-item")}})}function La(e){e.set({highlight:Pp}),e.use(Up).use(Hp).use(Kp)}function Fa(e){return e.trim().toLowerCase().replace(/[^\p{L}\p{N}\s_-]/gu,"").replace(/\s+/g,"-")||"section"}var G=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;");function Jp(e,t){let n=e?.content??"";for(let r of e?.children??[]){if(r.type!=="footnote_ref")continue;let i=r.meta?.id,o=i===void 0?void 0:t.footnotes?.list?.[i],a=o?.label!==void 0?`[^${o.label}]`:o?.content!==void 0?`^[${o.content}]`:void 0;a&&(n=n.split(a).join(""))}return n}function Yp(e){e.core.ruler.push("seqnotes_heading_ids",t=>{let n=new Set,r=t.tokens;for(let i=0;i<r.length;i++){if(r[i].type!=="heading_open")continue;let o="sn-"+Fa(Jp(r[i+1],t.env)),a=o;for(let s=1;n.has(a);s++)a=`${o}-${s}`;n.add(a),r[i].attrSet("id",a)}})}function jp(e){e.core.ruler.push("seqnotes_source_lines",t=>{if(t.env?.forExport)return;let n=!1;for(let r of t.tokens)r.type==="footnote_block_open"||r.type==="footnote_block_close"?n=r.nesting===1:r.map&&r.nesting!==-1&&!n&&r.attrSet("data-line",String(r.map[0]))})}function Ba(e,t){let n=e.meta?.seqNotes,r=t?.forExport===!0,i=t?.headingNumbers!==!1,o=e.attrGet("data-line"),a=o===null?"":` data-line="${o}"`;for(let s of["data-seqnotes-diff","data-seqnotes-diff-old"]){let c=e.attrGet(s);c!==null&&(a+=` ${s}="${G(String(c))}"`)}if(n){let s={id:n.id,kind:n.kind,paired:n.paired,messages:n.messages.map(({index:l,line:u,text:d,nodeId:p,number:f,numberInHeading:g,target:h,unlinked:m})=>({index:l,line:u,text:d,nodeId:p,number:i?f:void 0,numberInHeading:g,target:h,unlinked:r?void 0:m}))},c=n.notes??[];if(c.some(l=>l.anchor!==void 0||l.goto!==void 0)){let l=Ut(t?.t??ne);s.notes=c.map(({index:u,line:d,text:p,anchor:f,goto:g})=>({index:u,line:d,text:p,anchor:f,goto:g})),s.anchors=n.anchors?.map(({name:u,title:d,occurrence:p,firstTarget:f})=>({name:u,title:d,occurrence:p,firstTarget:f})),s.jumpTitles={goto:l.gotoTitle,back:l.backTitle}}a+=` data-seqnotes-meta="${G(JSON.stringify(s))}"`}return a}function Xp(e){let t=e.renderer.rules.fence;e.renderer.rules.fence=(n,r,i,o,a)=>{let s=n[r];return He(s)?`<div class="seqnotes-mermaid"${Ba(s,o)}><pre class="seqnotes-mermaid-src">${G(s.content)}</pre></div>
53
- `:t(n,r,i,o,a)}}function Vp(e){e.renderer.rules[pt]=(t,n,r,i)=>{let o=t[n],{src:a,alt:s,options:c,file:l}=We(o),u=Ba(o,i);if(c.width!==void 0&&(u+=` data-seqnotes-width="${c.width}"`),l&&c.items){let p=i?.t??ne,f=JSON.stringify(c.items.map(({number:g,selector:h})=>[g,h]));u+=` data-seqnotes-items="${G(f)}"`,u+=` data-seqnotes-item-unmatched="${G(p('No element of the wireframe matches item.{0}="{1}".'))}"`,u+=` data-seqnotes-item-invalid="${G(p('item.{0}="{1}" of the wireframe is not a valid CSS selector.'))}"`,i?.forExport&&c.line!==void 0&&(u+=` data-seqnotes-item-line="${c.line}"`)}if(s&&(u+=` role="figure" aria-label="${G(s)}"`),!l){let p=i?.t??ne,f=l===null?p('The wireframe "{0}" could not be read.',ge(a)):s||ge(a);return`<div class="seqnotes-wireframe seqnotes-wireframe-missing"${u}><p>${G(f)}</p></div>
54
- `}let d=i?.resolveResource??(p=>p);return`<div class="seqnotes-wireframe"${u}><pre class="seqnotes-wireframe-src">${G(mo(e,l,a,d))}</pre></div>
55
- `}}var fr="seqnotesRendered",Qp=new RegExp(`<!--[\\s\\S]*?-->|<(${dt})(?=[\\s/>])[\\s\\S]*?(?:</\\1\\s*>|$)|<img(?=[\\s/>])((?:[^>"']|"[^"]*"|'[^']*')*)>`,"gi"),eh=new RegExp(`<(/?)(${dt})(?=[\\s/>])`,"gi");function th(e,t,n){return t.replace(Qp,(r,i,o)=>{if(o===void 0)return r;let a=!1,s=o.replace(ft,(c,l,u,d,p)=>{if(a||l.toLowerCase()!=="src")return c;a=!0;let f=gt(e,u??d??p??"");return f?`${l}="${G(n(f))}"`:c});return`${r.slice(0,4)}${s}>`})}function nh(e,t){let n;for(let r of e.slice(0,t))if(r.type==="html_inline")for(let[,i,o]of r.content.matchAll(eh)){let a=o.toLowerCase();n===void 0&&!i?n=a:i&&a===n&&(n=void 0)}return n!==void 0}function rh(e){let t=e.renderer.rules.image;e.renderer.rules.image=(n,r,i,o,a)=>{let s=n[r],c=s.attrGet("src");return c&&o?.resolveResource&&s.attrSet("src",o.resolveResource(String(c))),t(n,r,i,o,a)};for(let n of["html_block","html_inline"]){let r=e.renderer.rules[n];e.renderer.rules[n]=(i,o,a,s,c)=>{let l=r(i,o,a,s,c),u=s?.resolveResource,d=i[o].meta?.[fr]===!0;return!u||d||n==="html_inline"&&nh(i,o)?l:th(e,l,u)}}}function Pa(){let e=Pt({html:!0,linkify:!0});return e.use(Vn).use(La).use(so).use(Eo).use(Yp).use(jp).use(Xp).use(Vp).use(rh),e}function $a(e,t,n={}){return gr(e,e.parse(t,n),n)}function gr(e,t,n){let r=n.t??ne,{diagrams:i,warnings:o}=Kt(t,r),a=[...o,...Gt(t)].sort((u,d)=>u.line-d.line);for(let u of i){let d=t[u.fenceIndex];d.meta={...d.meta,seqNotes:u};let p=Ne(u.kind,r);for(let f of n.forExport?[]:u.unlinkedHeadings)t[f].attrJoin("class","seqnotes-unlinked"),t[f].attrSet("title",p.unlinkedHeadingTitle),t[f].attrSet("data-seqnotes-mark",p.unlinkedHeadingMark);for(let f of u.rows)if(f.target)t[f.index].attrSet("data-seqnotes-section",f.target),t[f.index].attrJoin("class","seqnotes-row");else if(f.unlinked&&!n.forExport){let g=$t(r);t[f.index].attrJoin("class","seqnotes-unlinked"),t[f.cell].attrSet("title",g.title),t[f.cell].attrSet("data-seqnotes-mark",g.mark)}}let s=u=>e.renderer.render(u,e.options,n),c="";if(a.length>0&&!n.forExport){let u=a.map(d=>d.message).join(`
54
+ `}}var nh=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\][ \t]*(?:\n|$)/i,rh={note:["info","M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"],tip:["light-bulb","M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"],important:["report","M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],warning:["alert","M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"],caution:["stop","M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"]};function ih(e){let[t,n]=rh[e];return`<svg class="octicon octicon-${t}" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="${n}"></path></svg>`}function oh(e){e.core.ruler.after("block","seqnotes_alerts",t=>{let n=t.tokens;for(let r=0;r<n.length;r++){let i=n[r],o=n[r+2];if(i.type!=="blockquote_open"||i.level!==0||n[r+1]?.type!=="paragraph_open"||o?.type!=="inline")continue;let a=nh.exec(o.content);if(!a)continue;let s=a[1].toLowerCase(),c=r+1;for(;n[c].type!=="blockquote_close"||n[c].level!==i.level;)c++;if(a[0].length===o.content.length&&c===r+4)continue;i.tag="div",i.attrJoin("class",`markdown-alert markdown-alert-${s}`),n[c].tag="div",o.content=o.content.slice(a[0].length);let l=n[r+1];l.map&&o.content!==""&&(l.map=[l.map[0]+1,l.map[1]]);let u=[new t.Token("paragraph_open","p",1),new t.Token("inline","",0),new t.Token("paragraph_close","p",-1)];u[0].attrSet("class","markdown-alert-title"),u[0].map=i.map,u[1].content=s[0].toUpperCase()+s.slice(1);let d=new t.Token("html_inline","",0);d.content=ih(s),u[1].children=[d],u.forEach((p,f)=>p.level=i.level+(f===1?2:1)),u[0].block=u[2].block=!0,n.splice(r+1,o.content===""?3:0,...u)}})}var sh=/^\[([ xX])\](?=\s|$)\s*/;function ah(e){e.core.ruler.after("inline","seqnotes_task_lists",t=>{let n=t.tokens;for(let r=0;r<n.length;r++){let i=n[r+2],o=i?.children?.[0];if(n[r].type!=="list_item_open"||n[r+1].type!=="paragraph_open"||i.type!=="inline"||o?.type!=="text")continue;let a=sh.exec(o.content);if(!a)continue;o.content=o.content.slice(a[0].length);let s=new t.Token("html_inline","",0);s.content=`<input class="task-list-item-checkbox" type="checkbox" disabled${a[1]===" "?"":" checked"}> `,i.children.unshift(s),n[r].attrJoin("class","task-list-item")}})}function qa(e){e.set({highlight:Qp}),e.use(th).use(oh).use(ah)}function Wa(e){return e.trim().toLowerCase().replace(/[^\p{L}\p{N}\s_-]/gu,"").replace(/\s+/g,"-")||"section"}var G=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;");function lh(e,t){let n=e?.content??"";for(let r of e?.children??[]){if(r.type!=="footnote_ref")continue;let i=r.meta?.id,o=i===void 0?void 0:t.footnotes?.list?.[i],a=o?.label!==void 0?`[^${o.label}]`:o?.content!==void 0?`^[${o.content}]`:void 0;a&&(n=n.split(a).join(""))}return n}function uh(e){e.core.ruler.push("seqnotes_heading_ids",t=>{let n=new Set,r=t.tokens;for(let i=0;i<r.length;i++){if(r[i].type!=="heading_open")continue;let o="sn-"+Wa(lh(r[i+1],t.env)),a=o;for(let s=1;n.has(a);s++)a=`${o}-${s}`;n.add(a),r[i].attrSet("id",a)}})}function dh(e){e.core.ruler.push("seqnotes_source_lines",t=>{if(t.env?.forExport)return;let n=!1;for(let r of t.tokens)r.type==="footnote_block_open"||r.type==="footnote_block_close"?n=r.nesting===1:r.map&&r.nesting!==-1&&!n&&r.attrSet("data-line",String(r.map[0]))})}function Ha(e,t){let n=e.meta?.seqNotes,r=t?.forExport===!0,i=t?.headingNumbers!==!1,o=e.attrGet("data-line"),a=o===null?"":` data-line="${o}"`;for(let s of["data-seqnotes-diff","data-seqnotes-diff-old"]){let c=e.attrGet(s);c!==null&&(a+=` ${s}="${G(String(c))}"`)}if(n){let s={id:n.id,kind:n.kind,paired:n.paired,messages:n.messages.map(({index:l,line:u,text:d,nodeId:p,number:f,numberInHeading:g,target:h,unlinked:m})=>({index:l,line:u,text:d,nodeId:p,number:i?f:void 0,numberInHeading:g,target:h,unlinked:r?void 0:m}))},c=n.notes??[];if(c.some(l=>l.anchor!==void 0||l.goto!==void 0)||n.anchors?.some(l=>l.jumpedFrom)){let l=ut(t?.t??ne);s.notes=c.map(({index:u,line:d,text:p,anchor:f,goto:g,gotoDiagram:h})=>({index:u,line:d,text:p,anchor:f,goto:g,gotoDiagram:h})),s.anchors=n.anchors?.map(({name:u,title:d,occurrence:p,firstTarget:f,jumpedFrom:g})=>({name:u,title:d,occurrence:p,firstTarget:f,jumpedFrom:g})),s.jumpTitles={goto:l.gotoTitle,back:l.backTitle}}a+=` data-seqnotes-meta="${G(JSON.stringify(s))}"`}return a}var fh=(e,t)=>So(e,t?.messageWrapWidth??Yt);function gh(e){let t=e.renderer.rules.fence;e.renderer.rules.fence=(n,r,i,o,a)=>{let s=n[r];return Ge(s)?`<div class="seqnotes-mermaid"${Ha(s,o)}><pre class="seqnotes-mermaid-src">${G(fh(s.content,o))}</pre></div>
55
+ `:t(n,r,i,o,a)}}function ph(e){e.renderer.rules[ht]=(t,n,r,i)=>{let o=t[n],{src:a,alt:s,options:c,file:l}=He(o),u=Ha(o,i);if(c.width!==void 0&&(u+=` data-seqnotes-width="${c.width}"`),l&&c.items){let p=i?.t??ne,f=JSON.stringify(c.items.map(({number:g,selector:h})=>[g,h]));u+=` data-seqnotes-items="${G(f)}"`,u+=` data-seqnotes-item-unmatched="${G(p('No element of the wireframe matches item.{0}="{1}".'))}"`,u+=` data-seqnotes-item-invalid="${G(p('item.{0}="{1}" of the wireframe is not a valid CSS selector.'))}"`,i?.forExport&&c.line!==void 0&&(u+=` data-seqnotes-item-line="${c.line}"`)}if(s&&(u+=` role="figure" aria-label="${G(s)}"`),!l){let p=i?.t??ne,f=l===null?p('The wireframe "{0}" could not be read.',ge(a)):s||ge(a);return`<div class="seqnotes-wireframe seqnotes-wireframe-missing"${u}><p>${G(f)}</p></div>
56
+ `}let d=i?.resolveResource??(p=>p);return`<div class="seqnotes-wireframe"${u}><pre class="seqnotes-wireframe-src">${G(Eo(e,l,a,d))}</pre></div>
57
+ `}}var br="seqnotesRendered",hh=new RegExp(`<!--[\\s\\S]*?-->|<(${ft})(?=[\\s/>])[\\s\\S]*?(?:</\\1\\s*>|$)|<img(?=[\\s/>])((?:[^>"']|"[^"]*"|'[^']*')*)>`,"gi"),mh=new RegExp(`<(/?)(${ft})(?=[\\s/>])`,"gi");function bh(e,t,n){return t.replace(hh,(r,i,o)=>{if(o===void 0)return r;let a=!1,s=o.replace(gt,(c,l,u,d,p)=>{if(a||l.toLowerCase()!=="src")return c;a=!0;let f=pt(e,u??d??p??"");return f?`${l}="${G(n(f))}"`:c});return`${r.slice(0,4)}${s}>`})}function _h(e,t){let n;for(let r of e.slice(0,t))if(r.type==="html_inline")for(let[,i,o]of r.content.matchAll(mh)){let a=o.toLowerCase();n===void 0&&!i?n=a:i&&a===n&&(n=void 0)}return n!==void 0}function Eh(e){let t=e.renderer.rules.image;e.renderer.rules.image=(n,r,i,o,a)=>{let s=n[r],c=s.attrGet("src");return c&&o?.resolveResource&&s.attrSet("src",o.resolveResource(String(c))),t(n,r,i,o,a)};for(let n of["html_block","html_inline"]){let r=e.renderer.rules[n];e.renderer.rules[n]=(i,o,a,s,c)=>{let l=r(i,o,a,s,c),u=s?.resolveResource,d=i[o].meta?.[br]===!0;return!u||d||n==="html_inline"&&_h(i,o)?l:bh(e,l,u)}}}function Ga(){let e=$t({html:!0,linkify:!0});return e.use(tr).use(qa).use(lo).use(xo).use(uh).use(dh).use(gh).use(ph).use(Eh),e}function Ka(e,t,n={}){return _r(e,e.parse(t,n),n)}function _r(e,t,n){let r=n.t??ne,{diagrams:i,warnings:o}=Jt(t,r),a=[...o,...Zt(t)].sort((u,d)=>u.line-d.line);for(let u of i){let d=t[u.fenceIndex];d.meta={...d.meta,seqNotes:u};let p=Ne(u.kind,r);for(let f of n.forExport?[]:u.unlinkedHeadings)t[f].attrJoin("class","seqnotes-unlinked"),t[f].attrSet("title",p.unlinkedHeadingTitle),t[f].attrSet("data-seqnotes-mark",p.unlinkedHeadingMark);for(let f of u.rows)if(f.target)t[f.index].attrSet("data-seqnotes-section",f.target),t[f.index].attrJoin("class","seqnotes-row");else if(f.unlinked&&!n.forExport){let g=Ut(r);t[f.index].attrJoin("class","seqnotes-unlinked"),t[f.cell].attrSet("title",g.title),t[f.cell].attrSet("data-seqnotes-mark",g.mark)}}let s=u=>e.renderer.render(u,e.options,n),c="";if(a.length>0&&!n.forExport){let u=a.map(d=>d.message).join(`
56
58
  `);c+=`<div class="seqnotes-warnings" data-seqnotes-key="${G(u)}">`;for(let d of a)c+=`<p data-seqnotes-jump="${d.line}">${G(r("\u26A0 Line {0}: {1}",d.line+1,d.message))}</p>`;c+=`</div>
57
59
  `}let l=0;for(let u of i)u.paired&&(c+=s(t.slice(l,u.fenceIndex)),c+=`<div class="seqnotes-pair${u.stacked?" seqnotes-pair-stacked":""}" data-diagram="${u.id}">`,c+=`<div class="seqnotes-seq-col">${s(t.slice(u.fenceIndex,u.fenceIndex+1))}</div>`,c+=`<div class="seqnotes-overview-col">${s(t.slice(u.fenceIndex+1,u.rangeEnd))}</div>`,c+=`</div>
58
- `,l=u.rangeEnd);return c+=s(t.slice(l)),c}var ih=/[\p{L}\p{N}_]+|\s+|[^]/gu,oh=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Thai}]/u;function za(e){try{return typeof Intl.Segmenter=="function"?new Intl.Segmenter(e,{granularity:"word"}):void 0}catch{return}}function Ua(e,t){let n=[];for(let[r]of e.matchAll(ih))if(r.length>1&&oh.test(r))if(t)for(let{segment:i}of t.segment(r))n.push(i);else n.push(...r);else n.push(r);return n}var sh=2e3;function ah(e,t){return Qe(e,t,{maxEditLength:sh})?.map(n=>({type:n.added?"added":n.removed?"removed":"equal",tokens:n.value}))}function qa(e,t,n){if(e===t)return 1;let r=e.length+t.length;if(r===0)return 1;let i=0;for(let o of ah(Ua(e,n),Ua(t,n))??[])o.type==="equal"&&(i+=o.tokens.join("").length);return 2*i/r}var ch=.4,Wa=new Set(["bullet_list_open","ordered_list_open","table_open"]),lh=new Set(["fence","html_block","front_matter"]),Ha=e=>lh.has(e.type)&&!He(e);function uh(e){let t=e.trim();if(!t.startsWith("<!--"))return!1;for(;t.startsWith("<!--");){let n=t.indexOf("-->",4);if(n<0)return!1;t=t.slice(n+3).trimStart()}return t===""}var dh=/^[ \t]*(?:[-*+]|\d{1,9}[.)])[ \t]?/,fh=new Set(["fence","mermaid","code_block","html_block"]),gh=2500;function ph(e){return e.type==="heading_open"?e.tag:e.type==="fence"?He(e)?"mermaid":"fence":e.type}function an(e,t,n,r,i,o){let a=[];for(let s=n;s<r;){let c=e[s];if(c.level!==i||c.nesting===-1||!c.block){s++;continue}let l=s;if(c.nesting===1)for(;l<r&&!(e[l].level===i&&e[l].nesting===-1);)l++;if(c.map){let u=ph(c),d=t.slice(c.map[0],c.map[1]).join(`
59
- `);c.type==="list_item_open"&&(d=d.replace(dh,"")),d=fh.has(u)?d.trimEnd():d.replace(/\s+/g," ").trim();let p=c.type==="html_block"&&uh(c.content)||c.type==="front_matter"&&o.frontMatter===!1;a.push({start:s,end:l+1,key:d,kind:u,hidden:p})}s=l+1}return a}function hh(e,t,n){let r=[],i=[],o=[],a=()=>{let l=[],u=i.length*o.length<=gh,d=0;o.forEach((g,h)=>{let m=i.findIndex((b,_)=>_>=d&&n(b,g,u));m>=0&&(l.push([m,h]),d=m+1)});let p=0,f=0;for(let[g,h]of[...l,[i.length,o.length]]){for(;p<g;)r.push({type:"deleted",before:i[p++]});for(;f<h;)r.push({type:"added",after:o[f++]});g<i.length&&(r.push({type:"changed",before:i[g],after:o[h]}),p=g+1,f=h+1)}i=[],o=[]},s=0,c=0;for(let l of Qe(e.map(u=>u.key),t.map(u=>u.key)))if(l.removed)i.push(...e.slice(s,s+=l.count));else if(l.added)o.push(...t.slice(c,c+=l.count));else{a();for(let u=0;u<l.count;u++)r.push({type:"equal",before:e[s++],after:t[c++]})}return a(),r}function Ga(e,t,n,r={}){let i=za(),o={resolveResource:r.resolveResource,t:r.t,frontMatter:r.frontMatter,headingNumbers:r.headingNumbers,wireframes:r.wireframes,forExport:!0,docId:"seqnotes-old"},a=e.parse(t,o),s=e.parse(n,r);for(let E of a)E.type==="heading_open"&&E.attrs&&(E.attrs=E.attrs.filter(([v])=>v!=="id"));let c=t.split(/\r\n?|\n/),l=n.split(/\r\n?|\n/),u=[],d={added:0,changed:0,deleted:0},p=new Map,f=(E,v)=>{p.set(E,[...p.get(E)??[],v])},g=(E,v)=>{let A=new Pt.Token("html_block","",0);return A.content=E,A.block=!0,A.level=v,A.meta={[fr]:!0},A},h=(E,v)=>`<div class="seqnotes-diff-block" data-seqnotes-diff="${E}">
60
- ${v}</div>
61
- `,m=E=>e.renderer.render(a.slice(E.start,E.end),e.options,o),b=(E,v,A)=>{let w=s[E.start];if(Ha(w)){let N=A===void 0?"":` data-seqnotes-diff-old="${A}"`;f(E.start,g(`<div class="seqnotes-diff-block" data-seqnotes-diff="${v}"${N}>
62
- `,w.level)),f(E.end,g(`</div>
63
- `,w.level));return}w.attrSet("data-seqnotes-diff",v),A!==void 0&&w.attrSet("data-seqnotes-diff-old",String(A))},_=(E,v,A)=>E.kind===v.kind&&(Wa.has(E.kind)||E.kind==="mermaid"||A&&qa(E.key,v.key,i)>=ch),x=(E,v,A)=>{let w=Number(E[v.start].attrGet("start")??1);A.forEach((N,C)=>E[N.start].attrSet("value",String(w+C)))},k=(E,v,A)=>{let w=hh(E,v,_),N=[],C=S=>{for(let I of N){let O=a[I.start],T;Ha(O)?T=h("deleted",m(I)):(O.attrSet("data-seqnotes-diff","deleted"),T=m(I)),f(S,g(T,A)),d.deleted++}N=[]};for(let S of w){if(S.type==="deleted"){S.before.hidden||N.push(S.before);continue}if(C(S.after.start),!S.after.hidden){if(S.type==="added")b(S.after,"added"),d.added++;else if(S.type==="changed"){let I=S.after.kind;if(Wa.has(I)){let O=I==="table_open"?2:1,T=an(a,c,S.before.start+1,S.before.end-1,A+O,o),y=an(s,l,S.after.start+1,S.after.end-1,A+O,r);I==="ordered_list_open"&&(x(a,S.before,T),x(s,S.after,y)),k(T,y,A+O)}else u.push(m(S.before)),b(S.after,"changed",u.length-1),d.changed++}}}C(v.length>0?v[v.length-1].end:0)};k(an(a,c,0,a.length,0,o),an(s,l,0,s.length,0,r),0);let R=[];for(let E=0;E<=s.length;E++)R.push(...p.get(E)??[]),E<s.length&&R.push(s[E]);return{html:gr(e,R,r),old:u,stats:d}}var Ye={"splitter-title":"Drag to resize, double-click to reset","hide-warnings-title":"Hide warnings","toc-title":"Contents","zoom-title":"Zoom diagram","zoom-image-title":"Zoom image","zoom-in-title":"Zoom in","zoom-out-title":"Zoom out","zoom-fit-title":"Fit to window","zoom-close-title":"Close","diff-added":"{0} added","diff-changed":"{0} changed","diff-deleted":"{0} deleted","diff-no-changes":"No changes","diff-previous-title":"Previous change","diff-next-title":"Next change","diff-close-title":"Stop comparing","diff-hide-title":"Hide changes","diff-show-title":"Show changes","diff-old-diagram":"Diagram before the change"};var mh={apng:"image/apng",avif:"image/avif",bmp:"image/bmp",gif:"image/gif",ico:"image/x-icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp"};function Ka(e){return mh[e.split(".").pop()?.toLowerCase()??""]}var bh=/^[a-z][a-z0-9+.-]*:/i;function _h(e){try{return decodeURIComponent(e)}catch{return e}}var Eh=e=>bh.test(e)||e.startsWith("//")||e.startsWith("#");function Za(e){let[t]=e.split(/[?#]/,1);return _h(t)}function pr(e){return e[0]?.type==="front_matter"?ur(e[0].content):[]}function Ja(e,t){let n=kt(pr(e),"title")?.trim();if(n)return n;let r=e.findIndex(i=>i.type==="heading_open"&&i.tag==="h1");return r>=0&&mt(e[r+1]).trim()||t}function Ya(e){return`${e.replace(/\.(md|markdown)$/i,"")}.html`}var ja="seqnotes-export-resource:",wh=new RegExp(`${ja}(\\d+)`,"g");async function Xa(e,t){let n=[],r=e(o=>Eh(o)?o:(n.push(o),`${ja}${n.length-1}`)),i=await Promise.all(n.map(async o=>{let a=await t(o),s=/[?#].*$/s.exec(o)?.[0]??"";return a.startsWith("data:")?a:a+s}));return{result:r,resolve:o=>o.replace(wh,(a,s)=>G(i[Number(s)]))}}async function Va(e,t,n,r){let{result:i,resolve:o}=await Xa(a=>$a(e,t,{...n,forExport:!0,resolveResource:a}),r);return o(i)}async function Qa(e,t,n,r,i){let{result:o,resolve:a}=await Xa(s=>Ga(e,t,n,{...r,forExport:!0,resolveResource:s}),i);return{html:a(o.html),old:o.old.map(a),stats:o.stats}}function ec(e){return e.replace(/\n?(?:\/\/# sourceMappingURL=.*|\/\*# sourceMappingURL=.*\*\/)\s*$/,"")}var kh=["diff-added","diff-changed","diff-deleted","diff-no-changes","diff-previous-title","diff-next-title","diff-hide-title","diff-show-title"];function tc({label:e,stats:t},n){return{label:e,stats:t,titles:Object.fromEntries(kh.map(r=>[`data-seqnotes-${r}`,n(Ye[r])]))}}function hr({lang:e,title:t,body:n,styles:r,script:i,settings:o,tocTitle:a,diff:s}){let c=["seqnotes-viewer","seqnotes-export",...o.limitContentWidth?["seqnotes-limit-width"]:[],...o.stickyTableHeader?["seqnotes-sticky-table-header"]:[],...o.tableTreeHighlight?["seqnotes-table-tree-highlight"]:[]],l=Number.isFinite(Number(o.splitMinWidth))?Number(o.splitMinWidth):1e3,u=o.toc?` data-seqnotes-toc data-seqnotes-toc-title="${G(a??"")}"`:"",d=s?Object.entries({"data-seqnotes-diff-label":s.label,"data-seqnotes-diff-stats":`${s.stats.added},${s.stats.changed},${s.stats.deleted}`,...s.titles}).map(([p,f])=>` ${p}="${G(f)}"`).join(""):"";return`<!DOCTYPE html>
60
+ `,l=u.rangeEnd);return c+=s(t.slice(l)),c}var wh=/[\p{L}\p{N}_]+|\s+|[^]/gu,kh=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Thai}]/u;function Ja(e){try{return typeof Intl.Segmenter=="function"?new Intl.Segmenter(e,{granularity:"word"}):void 0}catch{return}}function Za(e,t){let n=[];for(let[r]of e.matchAll(wh))if(r.length>1&&kh.test(r))if(t)for(let{segment:i}of t.segment(r))n.push(i);else n.push(...r);else n.push(r);return n}var xh=2e3;function yh(e,t){return Qe(e,t,{maxEditLength:xh})?.map(n=>({type:n.added?"added":n.removed?"removed":"equal",tokens:n.value}))}function Ya(e,t,n){if(e===t)return 1;let r=e.length+t.length;if(r===0)return 1;let i=0;for(let o of yh(Za(e,n),Za(t,n))??[])o.type==="equal"&&(i+=o.tokens.join("").length);return 2*i/r}var vh=.4,ja=new Set(["bullet_list_open","ordered_list_open","table_open"]),Rh=new Set(["fence","html_block","front_matter"]),Xa=e=>Rh.has(e.type)&&!Ge(e);function Ah(e){let t=e.trim();if(!t.startsWith("<!--"))return!1;for(;t.startsWith("<!--");){let n=t.indexOf("-->",4);if(n<0)return!1;t=t.slice(n+3).trimStart()}return t===""}var Ch=/^[ \t]*(?:[-*+]|\d{1,9}[.)])[ \t]?/,Th=new Set(["fence","mermaid","code_block","html_block"]),Nh=2500;function Sh(e){return e.type==="heading_open"?e.tag:e.type==="fence"?Ge(e)?"mermaid":"fence":e.type}function un(e,t,n,r,i,o){let a=[];for(let s=n;s<r;){let c=e[s];if(c.level!==i||c.nesting===-1||!c.block){s++;continue}let l=s;if(c.nesting===1)for(;l<r&&!(e[l].level===i&&e[l].nesting===-1);)l++;if(c.map){let u=Sh(c),d=t.slice(c.map[0],c.map[1]).join(`
61
+ `);c.type==="list_item_open"&&(d=d.replace(Ch,"")),d=Th.has(u)?d.trimEnd():d.replace(/\s+/g," ").trim();let p=c.type==="html_block"&&Ah(c.content)||c.type==="front_matter"&&o.frontMatter===!1;a.push({start:s,end:l+1,key:d,kind:u,hidden:p})}s=l+1}return a}function Dh(e,t,n){let r=[],i=[],o=[],a=()=>{let l=[],u=i.length*o.length<=Nh,d=0;o.forEach((g,h)=>{let m=i.findIndex((E,_)=>_>=d&&n(E,g,u));m>=0&&(l.push([m,h]),d=m+1)});let p=0,f=0;for(let[g,h]of[...l,[i.length,o.length]]){for(;p<g;)r.push({type:"deleted",before:i[p++]});for(;f<h;)r.push({type:"added",after:o[f++]});g<i.length&&(r.push({type:"changed",before:i[g],after:o[h]}),p=g+1,f=h+1)}i=[],o=[]},s=0,c=0;for(let l of Qe(e.map(u=>u.key),t.map(u=>u.key)))if(l.removed)i.push(...e.slice(s,s+=l.count));else if(l.added)o.push(...t.slice(c,c+=l.count));else{a();for(let u=0;u<l.count;u++)r.push({type:"equal",before:e[s++],after:t[c++]})}return a(),r}function Va(e,t,n,r={}){let i=Ja(),o={resolveResource:r.resolveResource,t:r.t,frontMatter:r.frontMatter,headingNumbers:r.headingNumbers,messageWrapWidth:r.messageWrapWidth,wireframes:r.wireframes,forExport:!0,docId:"seqnotes-old"},a=e.parse(t,o),s=e.parse(n,r);for(let w of a)w.type==="heading_open"&&w.attrs&&(w.attrs=w.attrs.filter(([R])=>R!=="id"));let c=t.split(/\r\n?|\n/),l=n.split(/\r\n?|\n/),u=[],d={added:0,changed:0,deleted:0},p=new Map,f=(w,R)=>{p.set(w,[...p.get(w)??[],R])},g=(w,R)=>{let A=new $t.Token("html_block","",0);return A.content=w,A.block=!0,A.level=R,A.meta={[br]:!0},A},h=(w,R)=>`<div class="seqnotes-diff-block" data-seqnotes-diff="${w}">
62
+ ${R}</div>
63
+ `,m=w=>e.renderer.render(a.slice(w.start,w.end),e.options,o),E=(w,R,A)=>{let b=s[w.start];if(Xa(b)){let S=A===void 0?"":` data-seqnotes-diff-old="${A}"`;f(w.start,g(`<div class="seqnotes-diff-block" data-seqnotes-diff="${R}"${S}>
64
+ `,b.level)),f(w.end,g(`</div>
65
+ `,b.level));return}b.attrSet("data-seqnotes-diff",R),A!==void 0&&b.attrSet("data-seqnotes-diff-old",String(A))},_=(w,R,A)=>w.kind===R.kind&&(ja.has(w.kind)||w.kind==="mermaid"||A&&Ya(w.key,R.key,i)>=vh),k=(w,R,A)=>{let b=Number(w[R.start].attrGet("start")??1);A.forEach((S,T)=>w[S.start].attrSet("value",String(b+T)))},x=(w,R,A)=>{let b=Dh(w,R,_),S=[],T=M=>{for(let I of S){let L=a[I.start],C;Xa(L)?C=h("deleted",m(I)):(L.attrSet("data-seqnotes-diff","deleted"),C=m(I)),f(M,g(C,A)),d.deleted++}S=[]};for(let M of b){if(M.type==="deleted"){M.before.hidden||S.push(M.before);continue}if(T(M.after.start),!M.after.hidden){if(M.type==="added")E(M.after,"added"),d.added++;else if(M.type==="changed"){let I=M.after.kind;if(ja.has(I)){let L=I==="table_open"?2:1,C=un(a,c,M.before.start+1,M.before.end-1,A+L,o),y=un(s,l,M.after.start+1,M.after.end-1,A+L,r);I==="ordered_list_open"&&(k(a,M.before,C),k(s,M.after,y)),x(C,y,A+L)}else u.push(m(M.before)),E(M.after,"changed",u.length-1),d.changed++}}}T(R.length>0?R[R.length-1].end:0)};x(un(a,c,0,a.length,0,o),un(s,l,0,s.length,0,r),0);let v=[];for(let w=0;w<=s.length;w++)v.push(...p.get(w)??[]),w<s.length&&v.push(s[w]);return{html:_r(e,v,r),old:u,stats:d}}var Fe={"splitter-title":"Drag to resize, double-click to reset","hide-warnings-title":"Hide warnings","toc-title":"Contents","zoom-title":"Zoom diagram","zoom-image-title":"Zoom image","zoom-in-title":"Zoom in","zoom-out-title":"Zoom out","zoom-fit-title":"Fit to window","zoom-close-title":"Close","diff-added":"{0} added","diff-changed":"{0} changed","diff-deleted":"{0} deleted","diff-no-changes":"No changes","diff-previous-title":"Previous change","diff-next-title":"Next change","diff-close-title":"Stop comparing","diff-hide-title":"Hide changes","diff-show-title":"Show changes","diff-old-diagram":"Diagram before the change"};var Mh={apng:"image/apng",avif:"image/avif",bmp:"image/bmp",gif:"image/gif",ico:"image/x-icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp"};function Qa(e){return Mh[e.split(".").pop()?.toLowerCase()??""]}var Ih=/^[a-z][a-z0-9+.-]*:/i;function Oh(e){try{return decodeURIComponent(e)}catch{return e}}var Lh=e=>Ih.test(e)||e.startsWith("//")||e.startsWith("#");function ec(e){let[t]=e.split(/[?#]/,1);return Oh(t)}function Er(e){return e[0]?.type==="front_matter"?hr(e[0].content):[]}function tc(e,t){let n=xt(Er(e),"title")?.trim();if(n)return n;let r=e.findIndex(i=>i.type==="heading_open"&&i.tag==="h1");return r>=0&&bt(e[r+1]).trim()||t}function nc(e){return`${e.replace(/\.(md|markdown)$/i,"")}.html`}var rc="seqnotes-export-resource:",Fh=new RegExp(`${rc}(\\d+)`,"g");async function ic(e,t){let n=[],r=e(o=>Lh(o)?o:(n.push(o),`${rc}${n.length-1}`)),i=await Promise.all(n.map(async o=>{let a=await t(o),s=/[?#].*$/s.exec(o)?.[0]??"";return a.startsWith("data:")?a:a+s}));return{result:r,resolve:o=>o.replace(Fh,(a,s)=>G(i[Number(s)]))}}async function oc(e,t,n,r){let{result:i,resolve:o}=await ic(a=>Ka(e,t,{...n,forExport:!0,resolveResource:a}),r);return o(i)}async function sc(e,t,n,r,i){let{result:o,resolve:a}=await ic(s=>Va(e,t,n,{...r,forExport:!0,resolveResource:s}),i);return{html:a(o.html),old:o.old.map(a),stats:o.stats}}function ac(e){return e.replace(/\n?(?:\/\/# sourceMappingURL=.*|\/\*# sourceMappingURL=.*\*\/)\s*$/,"")}var Bh=["diff-added","diff-changed","diff-deleted","diff-no-changes","diff-previous-title","diff-next-title","diff-hide-title","diff-show-title"];function cc({label:e,stats:t},n){return{label:e,stats:t,titles:Object.fromEntries(Bh.map(r=>[`data-seqnotes-${r}`,n(Fe[r])]))}}function wr({lang:e,title:t,body:n,styles:r,script:i,settings:o,tocTitle:a,splitterTitle:s,diff:c}){let l=["seqnotes-viewer","seqnotes-export",...o.limitContentWidth?["seqnotes-limit-width"]:[],...o.stickyTableHeader?["seqnotes-sticky-table-header"]:[],...o.tableTreeHighlight?["seqnotes-table-tree-highlight"]:[]],u=Number.isFinite(Number(o.splitMinWidth))?Number(o.splitMinWidth):1e3,d=o.toc?` data-seqnotes-toc data-seqnotes-toc-title="${G(a??"")}"`:"",p=s?` data-seqnotes-splitter-title="${G(s)}"`:"",f=c?Object.entries({"data-seqnotes-diff-label":c.label,"data-seqnotes-diff-stats":`${c.stats.added},${c.stats.changed},${c.stats.deleted}`,...c.titles}).map(([g,h])=>` ${g}="${G(h)}"`).join(""):"";return`<!DOCTYPE html>
64
66
  <html lang="${G(e)}">
65
67
  <head>
66
68
  <meta charset="UTF-8">
@@ -71,14 +73,14 @@ ${r.join(`
71
73
  `).replace(/<\/style/gi,"<\\/style")}
72
74
  </style>
73
75
  </head>
74
- <body data-seqnotes-theme="light" class="${c.join(" ")}" data-seqnotes-split-min-width="${l}"${u}${d}>
76
+ <body data-seqnotes-theme="light" class="${l.join(" ")}" data-seqnotes-split-min-width="${u}"${p}${d}${f}>
75
77
  <div id="seqnotes-root" class="seqnotes-viewer-root">${n}</div>
76
78
  <script>
77
79
  ${i.replace(/<\/script/gi,"<\\/script")}
78
80
  </script>
79
81
  </body>
80
82
  </html>
81
- `}var _r=`Usage: md-design-doc export <file|folder>... [options]
83
+ `}var yr=`Usage: md-design-doc export <file|folder>... [options]
82
84
  md-design-doc capture <url> -o <file.html> [options]
83
85
 
84
86
  Exports Markdown design docs to single HTML files, like the "Export Design Doc as HTML" command.
@@ -94,6 +96,8 @@ Options:
94
96
  --split-min-width <px> Minimum window width for diagrams beside their steps. Default: 1000.
95
97
  --full-width Do not keep the text in a centered column.
96
98
  --no-heading-numbers Do not show the arrow numbers (autonumber) on the linked headings.
99
+ --message-wrap-width <n> Break the labels of the arrows of the sequence diagrams into lines at <n> characters
100
+ (a full-width one counts as 2). 0: do not break them. Default: 30.
97
101
  --no-front-matter Hide the YAML front matter.
98
102
  --no-sticky-table-header Do not keep the header row of long tables at the top.
99
103
  --no-table-tree-highlight
@@ -141,37 +145,37 @@ Options:
141
145
  --chrome <path> Chrome or Chromium to open the page with.
142
146
 
143
147
  Exit status: 0 when the file was written, 1 when the page could not be captured (e.g. a selector not found),
144
- 2 for a wrong command line.`,ee=class extends Error{},nc=(e,t)=>e===void 0||!/[\\/]/.test(e)?e:(0,j.resolve)(t,e);function rc(e,t){if(e[0]==="capture")return yh(e.slice(1),t);let n;try{n=(0,br.parseArgs)({args:e,allowPositionals:!0,options:{"out-dir":{type:"string",short:"o"},root:{type:"string"},lang:{type:"string"},"diagram-look":{type:"string"},"split-min-width":{type:"string"},"full-width":{type:"boolean"},"no-heading-numbers":{type:"boolean"},"no-front-matter":{type:"boolean"},"no-sticky-table-header":{type:"boolean"},"no-table-tree-highlight":{type:"boolean"},"no-toc":{type:"boolean"},chrome:{type:"string"},strict:{type:"boolean"},"diff-base":{type:"string"},index:{type:"boolean"},"index-title":{type:"string"},"index-design-docs":{type:"boolean"},help:{type:"boolean",short:"h"},version:{type:"boolean",short:"v"}}})}catch(l){throw new ee(l instanceof Error?l.message:String(l))}let{values:r,positionals:i}=n;if(r.help)return{command:"help"};if(r.version)return{command:"version"};let[o,...a]=i;if(o===void 0)throw new ee("No command given.");if(o!=="export")throw new ee(`Unknown command: ${o}`);if(a.length===0)throw new ee("No file or folder to export.");let s=r["diagram-look"]??"neo";if(s!=="neo"&&s!=="classic")throw new ee(`--diagram-look must be neo or classic: ${s}`);let c=Number(r["split-min-width"]??1e3);if(!Number.isFinite(c)||c<0)throw new ee(`--split-min-width must be a number of pixels: ${r["split-min-width"]}`);if(r["diff-base"]!==void 0&&r["diff-base"].trim()==="")throw new ee("--diff-base must be a git revision.");if(r.index&&r["out-dir"]===void 0)throw new ee("--index requires --out-dir.");if(r["index-title"]!==void 0&&!r.index)throw new ee("--index-title requires --index.");if(r["index-design-docs"]&&!r.index)throw new ee("--index-design-docs requires --index.");return{command:"export",inputs:a.map(l=>(0,j.resolve)(t,l)),outDir:r["out-dir"]===void 0?void 0:(0,j.resolve)(t,r["out-dir"]),root:(0,j.resolve)(t,r.root??"."),lang:r.lang??"en",diagramLook:s,headingNumbers:!r["no-heading-numbers"],frontMatter:!r["no-front-matter"],settings:{limitContentWidth:!r["full-width"],stickyTableHeader:!r["no-sticky-table-header"],tableTreeHighlight:!r["no-table-tree-highlight"],splitMinWidth:c,toc:!r["no-toc"]},chrome:nc(r.chrome,t),strict:r.strict??!1,diffBase:r["diff-base"],index:r.index??!1,indexTitle:r["index-title"],indexDesignDocs:r["index-design-docs"]??!1}}function xh(e){let t=0,n;for(let r=0;r<e.length;r++){let i=e[r];if(n)i==="\\"?r++:i===n&&(n=void 0);else if(i==='"'||i==="'")n=i;else if(i==="["||i==="(")t++;else if(i==="]"||i===")")t=Math.max(0,t-1);else if(i==="="&&t===0&&r>0)return{selector:e.slice(0,r),text:e.slice(r+1)}}}function mr(e,t,n,r=1){let i=t===void 0?n:Number(t);if(!Number.isInteger(i)||i<r)throw new ee(`--${e} must be a whole number of ${e==="wait"?"milliseconds":"pixels"}: ${t}`);return i}function yh(e,t){let n;try{n=(0,br.parseArgs)({args:e,allowPositionals:!0,tokens:!0,options:{out:{type:"string",short:"o"},width:{type:"string"},height:{type:"string"},"color-scheme":{type:"string"},"storage-state":{type:"string"},script:{type:"string"},fill:{type:"string",multiple:!0},click:{type:"string",multiple:!0},hover:{type:"string",multiple:!0},press:{type:"string",multiple:!0},"wait-for":{type:"string"},wait:{type:"string"},chrome:{type:"string"},help:{type:"boolean",short:"h"},version:{type:"boolean",short:"v"}}})}catch(l){throw new ee(l instanceof Error?l.message:String(l))}let{values:r,positionals:i,tokens:o}=n;if(r.help)return{command:"help"};if(r.version)return{command:"version"};if(i.length!==1)throw new ee(i.length===0?"No URL to capture.":"Give one URL to capture.");let[a]=i;if(!/^(?:https?|file):/i.test(a))throw new ee(`The URL must start with http:, https: or file: ${a}`);if(r.out===void 0)throw new ee("--out is required.");let s=r["color-scheme"]??"light";if(s!=="light"&&s!=="dark")throw new ee(`--color-scheme must be light or dark: ${s}`);let c=[];for(let l of o)if(!(l.kind!=="option"||l.value===void 0))if(l.name==="fill"){let u=xh(l.value);if(!u)throw new ee(`--fill must be <selector>=<text>: ${l.value}`);c.push({action:"fill",...u})}else l.name==="click"||l.name==="hover"?c.push({action:l.name,selector:l.value}):l.name==="press"&&c.push({action:"press",key:l.value});return{command:"capture",url:a,out:(0,j.resolve)(t,r.out),width:mr("width",r.width,1280),height:mr("height",r.height,800),colorScheme:s,storageState:r["storage-state"]===void 0?void 0:(0,j.resolve)(t,r["storage-state"]),script:r.script===void 0?void 0:(0,j.resolve)(t,r.script),actions:c,waitFor:r["wait-for"],wait:r.wait===void 0?void 0:mr("wait",r.wait,0,0),chrome:nc(r.chrome,t)}}var vh=new Set([".md",".markdown"]);function Rh(e){return vh.has((0,j.extname)(e).toLowerCase())}function ic(e,t=new Set){let n=(0,Fe.realpathSync)(e);if(t.has(n))return[];t.add(n);let r=[];for(let i of(0,Fe.readdirSync)(e,{withFileTypes:!0}).sort((o,a)=>o.name.localeCompare(a.name))){let o=(0,j.join)(e,i.name),a=i;if(i.isSymbolicLink())try{a=(0,Fe.statSync)(o)}catch{continue}a.isDirectory()?i.name!=="node_modules"&&!i.name.startsWith(".")&&r.push(...ic(o,t)):a.isFile()&&Rh(i.name)&&r.push(o)}return r}function oc(e){let t=new Set;for(let n of e){let r;try{r=(0,Fe.statSync)(n)}catch{throw new ee(`No such file or folder: ${n}`)}for(let i of r.isDirectory()?ic(n):[n])t.add(i)}return[...t]}function Be(e,t){let n=(0,j.relative)(t,e);return n===""||n!==".."&&!n.startsWith(`..${j.sep}`)&&!(0,j.isAbsolute)(n)}function sc(e,t,n){let r=Ya((0,j.basename)(e));return t===void 0?(0,j.join)((0,j.dirname)(e),r):Be(e,n)?(0,j.join)(t,(0,j.dirname)((0,j.relative)(n,e)),r):(0,j.join)(t,r)}function ac(e){return(0,j.join)(e,"index.html")}function cc(){let e=[],t=n=>{if(!n)return;let r;try{r=n.cssRules}catch{n.href&&!e.includes(n.href)&&e.push(n.href);return}for(let i of Array.from(r))i instanceof CSSImportRule&&t(i.styleSheet)};return Array.from(document.styleSheets).forEach(t),e}function lc(e,t,n){let r=window.innerWidth,i=window.innerHeight,o=new Set(t),a=[],s=(w,N)=>{try{return new URL(w,N).href}catch{return}},c=w=>{let N=a.indexOf(w);return N<0&&(N=a.push(w)-1),n.assetPlaceholder(N)},l=(w,N,C=!1)=>{let S=s(w,N);return S===void 0||/^(?:data|blob|about):/i.test(S)||w.startsWith("#")?w:C||o.has(S)?c(S):S},u=/url\(\s*(?:"((?:[^"\\]|\\.)*)"|'((?:[^'\\]|\\.)*)'|([^)\s'"]*))\s*\)/gi,d=w=>w.replace(/\\(.)/g,"$1"),p=(w,N,C=!1)=>w.replace(u,(S,I,O,T)=>{let y=d(I??O??T??"");return y===""?S:`url("${l(y,N,C).replace(/["\\]/g,"\\$&")}")`}),f=(w,N)=>n.viewportUnitsToPx(p(w.cssText,N),r,i),g=w=>w.mediaText===""||window.matchMedia(w.mediaText).matches,h=(w,N)=>Array.from(w??[]).map(C=>m(C,N)).filter(C=>C!=="").join(`
145
- `),m=(w,N)=>{if(w instanceof CSSImportRule){let C=null;try{C=w.styleSheet}catch{}if(!C||!g(w.media))return"";let S=b(C);return w.layerName!==null&&(S=`@layer ${w.layerName} {
146
- ${S}
147
- }`),w.supportsText?`@supports ${w.supportsText} {
148
- ${S}
149
- }`:S}if(w instanceof CSSMediaRule)return g(w.media)?h(w.cssRules,N):"";if(w instanceof CSSFontFaceRule){let C=n.splitTopLevel(w.style.getPropertyValue("src")).filter(I=>{let O=/url\(\s*(?:"((?:[^"\\]|\\.)*)"|'((?:[^'\\]|\\.)*)'|([^)\s'"]*))\s*\)/i.exec(I),T=O?s(d(O[1]??O[2]??O[3]??""),N):void 0;return!O||T!==void 0&&(T.startsWith("data:")||o.has(T))});return C.length===0?"":`@font-face { ${Array.from(w.style).map(I=>`${I}: ${I==="src"?p(C.join(", "),N):w.style.getPropertyValue(I)};`).join(" ")} }`}if(w instanceof CSSStyleRule){let C=h(w.cssRules,N);return`${w.selectorText} { ${f(w.style,N)}${C?`
150
- ${C}
151
- `:" "}}`}if(w instanceof CSSKeyframesRule){let C=Array.from(w.cssRules).map(S=>`${S.keyText} { ${f(S.style,N)} }`);return`@keyframes ${w.name} {
152
- ${C.join(`
148
+ 2 for a wrong command line.`,X=class extends Error{},lc=(e,t)=>e===void 0||!/[\\/]/.test(e)?e:(0,j.resolve)(t,e);function uc(e,t){if(e[0]==="capture")return $h(e.slice(1),t);let n;try{n=(0,xr.parseArgs)({args:e,allowPositionals:!0,options:{"out-dir":{type:"string",short:"o"},root:{type:"string"},lang:{type:"string"},"diagram-look":{type:"string"},"split-min-width":{type:"string"},"full-width":{type:"boolean"},"no-heading-numbers":{type:"boolean"},"message-wrap-width":{type:"string"},"no-front-matter":{type:"boolean"},"no-sticky-table-header":{type:"boolean"},"no-table-tree-highlight":{type:"boolean"},"no-toc":{type:"boolean"},chrome:{type:"string"},strict:{type:"boolean"},"diff-base":{type:"string"},index:{type:"boolean"},"index-title":{type:"string"},"index-design-docs":{type:"boolean"},help:{type:"boolean",short:"h"},version:{type:"boolean",short:"v"}}})}catch(d){throw new X(d instanceof Error?d.message:String(d))}let{values:r,positionals:i}=n;if(r.help)return{command:"help"};if(r.version)return{command:"version"};let[o,...a]=i;if(o===void 0)throw new X("No command given.");if(o!=="export")throw new X(`Unknown command: ${o}`);if(a.length===0)throw new X("No file or folder to export.");let s=r["diagram-look"]??"neo";if(s!=="neo"&&s!=="classic")throw new X(`--diagram-look must be neo or classic: ${s}`);let c=Number(r["split-min-width"]??1e3);if(!Number.isFinite(c)||c<0)throw new X(`--split-min-width must be a number of pixels: ${r["split-min-width"]}`);let l=r["message-wrap-width"],u=l===void 0?Yt:/^\d+$/.test(l)?Number(l):NaN;if(!Co(u))throw new X(`--message-wrap-width must be a whole number of characters: ${r["message-wrap-width"]}`);if(r["diff-base"]!==void 0&&r["diff-base"].trim()==="")throw new X("--diff-base must be a git revision.");if(r.index&&r["out-dir"]===void 0)throw new X("--index requires --out-dir.");if(r["index-title"]!==void 0&&!r.index)throw new X("--index-title requires --index.");if(r["index-design-docs"]&&!r.index)throw new X("--index-design-docs requires --index.");return{command:"export",inputs:a.map(d=>(0,j.resolve)(t,d)),outDir:r["out-dir"]===void 0?void 0:(0,j.resolve)(t,r["out-dir"]),root:(0,j.resolve)(t,r.root??"."),lang:r.lang??"en",diagramLook:s,headingNumbers:!r["no-heading-numbers"],messageWrapWidth:u,frontMatter:!r["no-front-matter"],settings:{limitContentWidth:!r["full-width"],stickyTableHeader:!r["no-sticky-table-header"],tableTreeHighlight:!r["no-table-tree-highlight"],splitMinWidth:c,toc:!r["no-toc"]},chrome:lc(r.chrome,t),strict:r.strict??!1,diffBase:r["diff-base"],index:r.index??!1,indexTitle:r["index-title"],indexDesignDocs:r["index-design-docs"]??!1}}function Ph(e){let t=0,n;for(let r=0;r<e.length;r++){let i=e[r];if(n)i==="\\"?r++:i===n&&(n=void 0);else if(i==='"'||i==="'")n=i;else if(i==="["||i==="(")t++;else if(i==="]"||i===")")t=Math.max(0,t-1);else if(i==="="&&t===0&&r>0)return{selector:e.slice(0,r),text:e.slice(r+1)}}}function kr(e,t,n,r=1){let i=t===void 0?n:Number(t);if(!Number.isInteger(i)||i<r)throw new X(`--${e} must be a whole number of ${e==="wait"?"milliseconds":"pixels"}: ${t}`);return i}function $h(e,t){let n;try{n=(0,xr.parseArgs)({args:e,allowPositionals:!0,tokens:!0,options:{out:{type:"string",short:"o"},width:{type:"string"},height:{type:"string"},"color-scheme":{type:"string"},"storage-state":{type:"string"},script:{type:"string"},fill:{type:"string",multiple:!0},click:{type:"string",multiple:!0},hover:{type:"string",multiple:!0},press:{type:"string",multiple:!0},"wait-for":{type:"string"},wait:{type:"string"},chrome:{type:"string"},help:{type:"boolean",short:"h"},version:{type:"boolean",short:"v"}}})}catch(l){throw new X(l instanceof Error?l.message:String(l))}let{values:r,positionals:i,tokens:o}=n;if(r.help)return{command:"help"};if(r.version)return{command:"version"};if(i.length!==1)throw new X(i.length===0?"No URL to capture.":"Give one URL to capture.");let[a]=i;if(!/^(?:https?|file):/i.test(a))throw new X(`The URL must start with http:, https: or file: ${a}`);if(r.out===void 0)throw new X("--out is required.");let s=r["color-scheme"]??"light";if(s!=="light"&&s!=="dark")throw new X(`--color-scheme must be light or dark: ${s}`);let c=[];for(let l of o)if(!(l.kind!=="option"||l.value===void 0))if(l.name==="fill"){let u=Ph(l.value);if(!u)throw new X(`--fill must be <selector>=<text>: ${l.value}`);c.push({action:"fill",...u})}else l.name==="click"||l.name==="hover"?c.push({action:l.name,selector:l.value}):l.name==="press"&&c.push({action:"press",key:l.value});return{command:"capture",url:a,out:(0,j.resolve)(t,r.out),width:kr("width",r.width,1280),height:kr("height",r.height,800),colorScheme:s,storageState:r["storage-state"]===void 0?void 0:(0,j.resolve)(t,r["storage-state"]),script:r.script===void 0?void 0:(0,j.resolve)(t,r.script),actions:c,waitFor:r["wait-for"],wait:r.wait===void 0?void 0:kr("wait",r.wait,0,0),chrome:lc(r.chrome,t)}}var Uh=new Set([".md",".markdown"]);function zh(e){return Uh.has((0,j.extname)(e).toLowerCase())}function dc(e,t=new Set){let n=(0,Be.realpathSync)(e);if(t.has(n))return[];t.add(n);let r=[];for(let i of(0,Be.readdirSync)(e,{withFileTypes:!0}).sort((o,a)=>o.name.localeCompare(a.name))){let o=(0,j.join)(e,i.name),a=i;if(i.isSymbolicLink())try{a=(0,Be.statSync)(o)}catch{continue}a.isDirectory()?i.name!=="node_modules"&&!i.name.startsWith(".")&&r.push(...dc(o,t)):a.isFile()&&zh(i.name)&&r.push(o)}return r}function fc(e){let t=new Set;for(let n of e){let r;try{r=(0,Be.statSync)(n)}catch{throw new X(`No such file or folder: ${n}`)}for(let i of r.isDirectory()?dc(n):[n])t.add(i)}return[...t]}function Pe(e,t){let n=(0,j.relative)(t,e);return n===""||n!==".."&&!n.startsWith(`..${j.sep}`)&&!(0,j.isAbsolute)(n)}function gc(e,t,n){let r=nc((0,j.basename)(e));return t===void 0?(0,j.join)((0,j.dirname)(e),r):Pe(e,n)?(0,j.join)(t,(0,j.dirname)((0,j.relative)(n,e)),r):(0,j.join)(t,r)}function pc(e){return(0,j.join)(e,"index.html")}function hc(){let e=[],t=n=>{if(!n)return;let r;try{r=n.cssRules}catch{n.href&&!e.includes(n.href)&&e.push(n.href);return}for(let i of Array.from(r))i instanceof CSSImportRule&&t(i.styleSheet)};return Array.from(document.styleSheets).forEach(t),e}function mc(e,t,n){let r=window.innerWidth,i=window.innerHeight,o=new Set(t),a=[],s=(b,S)=>{try{return new URL(b,S).href}catch{return}},c=b=>{let S=a.indexOf(b);return S<0&&(S=a.push(b)-1),n.assetPlaceholder(S)},l=(b,S,T=!1)=>{let M=s(b,S);return M===void 0||/^(?:data|blob|about):/i.test(M)||b.startsWith("#")?b:T||o.has(M)?c(M):M},u=/url\(\s*(?:"((?:[^"\\]|\\.)*)"|'((?:[^'\\]|\\.)*)'|([^)\s'"]*))\s*\)/gi,d=b=>b.replace(/\\(.)/g,"$1"),p=(b,S,T=!1)=>b.replace(u,(M,I,L,C)=>{let y=d(I??L??C??"");return y===""?M:`url("${l(y,S,T).replace(/["\\]/g,"\\$&")}")`}),f=(b,S)=>n.viewportUnitsToPx(p(b.cssText,S),r,i),g=b=>b.mediaText===""||window.matchMedia(b.mediaText).matches,h=(b,S)=>Array.from(b??[]).map(T=>m(T,S)).filter(T=>T!=="").join(`
149
+ `),m=(b,S)=>{if(b instanceof CSSImportRule){let T=null;try{T=b.styleSheet}catch{}if(!T||!g(b.media))return"";let M=E(T);return b.layerName!==null&&(M=`@layer ${b.layerName} {
150
+ ${M}
151
+ }`),b.supportsText?`@supports ${b.supportsText} {
152
+ ${M}
153
+ }`:M}if(b instanceof CSSMediaRule)return g(b.media)?h(b.cssRules,S):"";if(b instanceof CSSFontFaceRule){let T=n.splitTopLevel(b.style.getPropertyValue("src")).filter(I=>{let L=/url\(\s*(?:"((?:[^"\\]|\\.)*)"|'((?:[^'\\]|\\.)*)'|([^)\s'"]*))\s*\)/i.exec(I),C=L?s(d(L[1]??L[2]??L[3]??""),S):void 0;return!L||C!==void 0&&(C.startsWith("data:")||o.has(C))});return T.length===0?"":`@font-face { ${Array.from(b.style).map(I=>`${I}: ${I==="src"?p(T.join(", "),S):b.style.getPropertyValue(I)};`).join(" ")} }`}if(b instanceof CSSStyleRule){let T=h(b.cssRules,S);return`${b.selectorText} { ${f(b.style,S)}${T?`
154
+ ${T}
155
+ `:" "}}`}if(b instanceof CSSKeyframesRule){let T=Array.from(b.cssRules).map(M=>`${M.keyText} { ${f(M.style,S)} }`);return`@keyframes ${b.name} {
156
+ ${T.join(`
153
157
  `)}
154
- }`}return w instanceof CSSGroupingRule?`${w.cssText.slice(0,w.cssText.indexOf("{")).trim()} {
155
- ${h(w.cssRules,N)}
156
- }`:w.constructor.name==="CSSNestedDeclarations"?f(w.style,N):p(w.cssText,N)},b=w=>{let N=w.href??document.baseURI,C;try{C=w.cssRules}catch{let S=w.href?e[w.href]:void 0;if(S===void 0)return"";let I=new CSSStyleSheet({baseURL:w.href});I.replaceSync(S),C=I.cssRules}return h(C,N)},x=[...Array.from(document.styleSheets),...document.adoptedStyleSheets].filter(w=>!w.disabled&&g(w.media)).map(b).filter(w=>w!=="").join(`
157
- `),k=document.documentElement.cloneNode(!0),R=Array.from(document.documentElement.querySelectorAll("*")),E=Array.from(k.querySelectorAll("*"));R.forEach((w,N)=>{let C=E[N];for(let I of C.getAttributeNames())/^on/i.test(I)&&C.removeAttribute(I);let S=C.getAttribute("style");if(S&&C.setAttribute("style",n.viewportUnitsToPx(p(S,document.baseURI,!0),r,i)),w instanceof HTMLInputElement)w.type==="checkbox"||w.type==="radio"?C.toggleAttribute("checked",w.checked):w.type==="password"?C.setAttribute("value","\u2022".repeat(w.value.length)):w.type==="image"?C.setAttribute("src",l(w.src,document.baseURI,!0)):w.type!=="file"&&C.setAttribute("value",w.value);else if(w instanceof HTMLTextAreaElement)C.textContent=w.value;else if(w instanceof HTMLOptionElement)C.toggleAttribute("selected",w.selected);else if(w instanceof HTMLImageElement){let I=w.currentSrc||w.src;I&&C.setAttribute("src",l(I,document.baseURI,!0));for(let O of["srcset","sizes","loading"])C.removeAttribute(O)}else if(w instanceof HTMLCanvasElement)try{let I=document.createElement("img");for(let O of C.getAttributeNames())I.setAttribute(O,C.getAttribute(O));I.setAttribute("src",w.toDataURL()),C.replaceWith(I)}catch{}else if(w instanceof HTMLDialogElement||w.matches(":popover-open")){if(w.matches(":modal, :popover-open")){let I=getComputedStyle(w);for(let O of["display","position","top","right","bottom","left","margin","width","height","max-width","max-height"])C.style.setProperty(O,I.getPropertyValue(O));C.style.setProperty("z-index","2147483647")}}else if(w instanceof SVGImageElement){let I=w.href.baseVal;I&&(C.setAttribute("href",l(I,document.baseURI,!0)),C.removeAttribute("xlink:href"))}}),k.querySelectorAll('script, noscript, iframe, frame, object, embed, base, link, style, meta:not([charset]), input[type="hidden" i], picture > source').forEach(w=>w.remove());let v=k.querySelector("head");v||(v=document.createElement("head"),k.prepend(v));let A=document.createElement("style");return A.textContent=n.styleText(x),v.append(A),{html:k.outerHTML,assets:a}}var ln=require("node:fs"),dc=require("node:os"),je=require("node:path"),xt=require("playwright-core");var uc=6e4;function Ah(){let e=[];try{e.push(xt.chromium.executablePath())}catch{}let t=process.env.PLAYWRIGHT_BROWSERS_PATH??(0,je.join)((0,dc.homedir)(),".cache/ms-playwright"),n=i=>Number(/^chromium(?:_headless_shell)?-(\d+)/.exec(i)?.[1]??0),r=(0,ln.globSync)(["chromium-*/chrome-linux*/chrome","chromium_headless_shell-*/chrome-headless-shell-linux*/chrome-headless-shell"],{cwd:t});return e.push(...r.sort((i,o)=>n(o)-n(i)).map(i=>(0,je.join)(t,i))),e.find(i=>(0,ln.existsSync)(i))}async function Er(e=process.env.CHROME_PATH||void 0){if(e)return xt.chromium.launch({executablePath:e});let t=Ah();if(t)return xt.chromium.launch({executablePath:t});try{return await xt.chromium.launch({channel:"chrome"})}catch(n){throw new Error("Chrome was not found. Install Google Chrome, give its path with --chrome or $CHROME_PATH, or install a Chromium with `npx playwright-core install chromium`.",{cause:n})}}function Ch(e){return`let state;
158
+ }`}return b instanceof CSSGroupingRule?`${b.cssText.slice(0,b.cssText.indexOf("{")).trim()} {
159
+ ${h(b.cssRules,S)}
160
+ }`:b.constructor.name==="CSSNestedDeclarations"?f(b.style,S):p(b.cssText,S)},E=b=>{let S=b.href??document.baseURI,T;try{T=b.cssRules}catch{let M=b.href?e[b.href]:void 0;if(M===void 0)return"";let I=new CSSStyleSheet({baseURL:b.href});I.replaceSync(M),T=I.cssRules}return h(T,S)},k=[...Array.from(document.styleSheets),...document.adoptedStyleSheets].filter(b=>!b.disabled&&g(b.media)).map(E).filter(b=>b!=="").join(`
161
+ `),x=document.documentElement.cloneNode(!0),v=Array.from(document.documentElement.querySelectorAll("*")),w=Array.from(x.querySelectorAll("*"));v.forEach((b,S)=>{let T=w[S];for(let I of T.getAttributeNames())/^on/i.test(I)&&T.removeAttribute(I);let M=T.getAttribute("style");if(M&&T.setAttribute("style",n.viewportUnitsToPx(p(M,document.baseURI,!0),r,i)),b instanceof HTMLInputElement)b.type==="checkbox"||b.type==="radio"?T.toggleAttribute("checked",b.checked):b.type==="password"?T.setAttribute("value","\u2022".repeat(b.value.length)):b.type==="image"?T.setAttribute("src",l(b.src,document.baseURI,!0)):b.type!=="file"&&T.setAttribute("value",b.value);else if(b instanceof HTMLTextAreaElement)T.textContent=b.value;else if(b instanceof HTMLOptionElement)T.toggleAttribute("selected",b.selected);else if(b instanceof HTMLImageElement){let I=b.currentSrc||b.src;I&&T.setAttribute("src",l(I,document.baseURI,!0));for(let L of["srcset","sizes","loading"])T.removeAttribute(L)}else if(b instanceof HTMLCanvasElement)try{let I=document.createElement("img");for(let L of T.getAttributeNames())I.setAttribute(L,T.getAttribute(L));I.setAttribute("src",b.toDataURL()),T.replaceWith(I)}catch{}else if(b instanceof HTMLDialogElement||b.matches(":popover-open")){if(b.matches(":modal, :popover-open")){let I=getComputedStyle(b);for(let L of["display","position","top","right","bottom","left","margin","width","height","max-width","max-height"])T.style.setProperty(L,I.getPropertyValue(L));T.style.setProperty("z-index","2147483647")}}else if(b instanceof SVGImageElement){let I=b.href.baseVal;I&&(T.setAttribute("href",l(I,document.baseURI,!0)),T.removeAttribute("xlink:href"))}}),x.querySelectorAll('script, noscript, iframe, frame, object, embed, base, link, style, meta:not([charset]), input[type="hidden" i], picture > source').forEach(b=>b.remove());let R=x.querySelector("head");R||(R=document.createElement("head"),x.prepend(R));let A=document.createElement("style");return A.textContent=n.styleText(k),R.append(A),{html:x.outerHTML,assets:a}}var fn=require("node:fs"),_c=require("node:os"),je=require("node:path"),yt=require("playwright-core");var bc=6e4;function qh(){let e=[];try{e.push(yt.chromium.executablePath())}catch{}let t=process.env.PLAYWRIGHT_BROWSERS_PATH??(0,je.join)((0,_c.homedir)(),".cache/ms-playwright"),n=i=>Number(/^chromium(?:_headless_shell)?-(\d+)/.exec(i)?.[1]??0),r=(0,fn.globSync)(["chromium-*/chrome-linux*/chrome","chromium_headless_shell-*/chrome-headless-shell-linux*/chrome-headless-shell"],{cwd:t});return e.push(...r.sort((i,o)=>n(o)-n(i)).map(i=>(0,je.join)(t,i))),e.find(i=>(0,fn.existsSync)(i))}async function vr(e=process.env.CHROME_PATH||void 0){if(e)return yt.chromium.launch({executablePath:e});let t=qh();if(t)return yt.chromium.launch({executablePath:t});try{return await yt.chromium.launch({channel:"chrome"})}catch(n){throw new Error("Chrome was not found. Install Google Chrome, give its path with --chrome or $CHROME_PATH, or install a Chromium with `npx playwright-core install chromium`.",{cause:n})}}function Wh(e){return`let state;
158
162
  window.acquireVsCodeApi = () => ({
159
163
  getState: () => state,
160
164
  setState: (s) => (state = s),
161
165
  postMessage: (m) => window.${e}(m),
162
- });`}var cn=class e{constructor(t,n,r,i){this.browser=t;this.dist=n;this.lang=r;this.t=i}browser;dist;lang;t;nextId=0;pending=new Map;page;static async open(t,n){let r=await Er(n.chrome),i=new e(r,t,n.lang,n.t??ne);try{await i.openPage()}catch(o){throw await r.close(),o}return i}async openPage(){let t=await this.browser.newPage(),n;try{let r,i=new Promise((a,s)=>{r=a,n=setTimeout(()=>s(new Error("The preview script did not start.")),uc),t.on("pageerror",c=>s(new Error(`The preview script failed: ${c.message}`)))});i.catch(()=>{}),await t.exposeFunction("mdDesignDocPost",a=>{a.type==="ready"?r():a.type==="exported"&&this.onExported(a)});let o=Object.entries(Ye).map(([a,s])=>` data-seqnotes-${a}="${G(this.t(s))}"`).join("");await t.setContent(`<!DOCTYPE html>
166
+ });`}var dn=class e{constructor(t,n,r,i){this.browser=t;this.dist=n;this.lang=r;this.t=i}browser;dist;lang;t;nextId=0;pending=new Map;page;static async open(t,n){let r=await vr(n.chrome),i=new e(r,t,n.lang,n.t??ne);try{await i.openPage()}catch(o){throw await r.close(),o}return i}async openPage(){let t=await this.browser.newPage(),n;try{let r,i=new Promise((a,s)=>{r=a,n=setTimeout(()=>s(new Error("The preview script did not start.")),bc),t.on("pageerror",c=>s(new Error(`The preview script failed: ${c.message}`)))});i.catch(()=>{}),await t.exposeFunction("mdDesignDocPost",a=>{a.type==="ready"?r():a.type==="exported"&&this.onExported(a)});let o=Object.entries(Fe).map(([a,s])=>` data-seqnotes-${a}="${G(this.t(s))}"`).join("");await t.setContent(`<!DOCTYPE html>
163
167
  <html lang="${G(this.lang)}">
164
168
  <head><meta charset="UTF-8"></head>
165
169
  <body class="seqnotes-viewer vscode-light" data-seqnotes-theme="light"${o}>
166
170
  <div id="seqnotes-root" class="seqnotes-viewer-root"></div>
167
- <script>${Ch("mdDesignDocPost")}</script>
171
+ <script>${Wh("mdDesignDocPost")}</script>
168
172
  </body>
169
- </html>`),await t.addStyleTag({path:(0,je.join)(this.dist,"webview.css")}),await t.addStyleTag({path:(0,je.join)(this.dist,"export.css")}),await t.addScriptTag({path:(0,je.join)(this.dist,"webview.js")}),await i}catch(r){throw await t.close(),r}finally{clearTimeout(n)}this.page=t}render(t,n,r){let i=++this.nextId;return new Promise((o,a)=>{let s=setTimeout(()=>{this.pending.delete(i),this.page.close().then(()=>this.openPage()).then(()=>a(new Error("The diagrams were not rendered in time.")),d=>a(d instanceof Error?d:new Error(String(d))))},uc),c=u=>{clearTimeout(s),this.pending.delete(i),u()};this.pending.set(i,{resolve:u=>c(()=>o(u)),reject:u=>c(()=>a(u))});let l={type:"export",id:i,html:t,diagramLook:n,...r?{diff:r}:{}};this.page.evaluate(u=>window.postMessage(u,"*"),l).catch(u=>this.pending.get(i)?.reject(u instanceof Error?u:new Error(String(u))))})}onExported(t){let n=this.pending.get(t.id);t.body!==void 0?n?.resolve({body:t.body,diagramErrors:t.diagramErrors??[],warnings:t.warnings??[]}):n?.reject(new Error(t.error??"The diagrams could not be rendered."))}close(){return this.browser.close()}};function Th(e){return e.startsWith("file:")?[(0,wr.dirname)((0,yt.fileURLToPath)(e)),process.cwd()].map(t=>(0,xe.realpathSync)(t)):[]}async function fc(e,t,n){try{if(t.startsWith("file:")){let i=(0,xe.realpathSync)((0,yt.fileURLToPath)(t));return n.some(o=>Be(i,o))?{body:(0,xe.readFileSync)(i),type:xn(t,void 0)}:void 0}let r=await e.request.get(t);return r.ok()?{body:await r.body(),type:xn(t,r.headers()["content-type"])}:void 0}catch{return}}async function Nh(e,t){for(let n of t.actions)switch(n.action){case"fill":await e.locator(n.selector).first().fill(n.text);break;case"click":await e.locator(n.selector).first().click();break;case"hover":await e.locator(n.selector).first().hover();break;case"press":await e.keyboard.press(n.key);break}}async function gc(e){let t=e.script?await import((0,yt.pathToFileURL)(e.script).href):void 0,n=await Er(e.chrome);try{let r=await n.newContext({viewport:{width:e.width,height:e.height},deviceScaleFactor:1,colorScheme:e.colorScheme,reducedMotion:"reduce",storageState:e.storageState,bypassCSP:!0}),i=await r.newPage(),o=new Set;i.on("requestfinished",h=>o.add(h.url())),await t?.setup?.(i,r),await i.goto(e.url,{waitUntil:"networkidle"}),await t?.default?.(i,r),await Nh(i,e),e.waitFor!==void 0&&await i.locator(e.waitFor).first().waitFor({state:"visible"}),e.wait&&await i.waitForTimeout(e.wait),await i.evaluate(async()=>{await document.fonts.ready;for(let h of document.getAnimations())try{h.finish()}catch{}});let a=[],s=Th(i.url()),c={},l=async h=>(await fc(r,h,s))?.body.toString("utf8");for(let h of await i.evaluate(cc)){let m=await l(h),b=[];m!==void 0?c[h]=await yn(m,h,l,b):b.push(h),a.push(...b.map(_=>`Style sheet left out (could not be fetched): ${_}`))}let u=`{ viewportUnitsToPx: ${Cr}, splitTopLevel: ${Tr}, assetPlaceholder: ${Nr}, styleText: ${Dr} }`,d=await i.evaluate(`(${lc})(${JSON.stringify(c)}, ${JSON.stringify([...o])}, ${u})`),p=await Promise.all(d.assets.map(async h=>{let m=await fc(r,h,s);return m||a.push(`Not embedded (could not be fetched): ${h}`),m?`data:${m.type};base64,${m.body.toString("base64")}`:h})),g=`<!DOCTYPE html>
170
- <!-- Captured by md-design-doc capture from ${`${Ir(e.url).replace(/-(?=-)/g,"%2D")} at ${e.width}x${e.height}`} -->
171
- ${Sr(d.html,p)}
172
- `;return(0,xe.mkdirSync)((0,wr.dirname)(e.out),{recursive:!0}),(0,xe.writeFileSync)(e.out,g),a}finally{await n.close()}}function pc(e,t,n,r=!0){let i=e.parse(t,{}),o=pr(i),a={};for(let{key:s}of r?wt:[]){let c=kt(o,s)?.trim();c!==void 0&&(a[s]=c)}return{title:Ja(i,n),meta:a,designDoc:dr(o)}}function Sh(e,t){let n=e===""?[]:e.split("/"),r=t===""?[]:t.split("/");for(let i=0;i<Math.min(n.length,r.length);i++){let o=n[i].localeCompare(r[i]);if(o!==0)return o}return n.length-r.length}function Dh(e,t){let{added:n,changed:r,deleted:i}=e.stats,o=n+r+i,a;return e.isNew?a=`<span class="seqnotes-index-new">${G(t("New"))}</span>`:o===0?a=`<span class="seqnotes-index-unchanged">${G(t("No changes"))}</span>`:a='<span class="seqnotes-diff-counts">'+[["added",n,"{0} added"],["changed",r,"{0} changed"],["deleted",i,"{0} deleted"]].filter(([,c])=>c>0).map(([c,l,u])=>`<span class="seqnotes-diff-count" data-kind="${c}">${G(t(u,l))}</span>`).join("")+"</span>",`<td class="seqnotes-index-changes" data-seqnotes-sort="${e.isNew?Number.MAX_SAFE_INTEGER:o}">${a}</td>`}function Mh(e){return[...new Set(e.map(n=>n.folder))].sort(Sh).map(n=>({folder:n,entries:e.filter(r=>r.folder===n).sort((r,i)=>r.file.localeCompare(i.file))}))}function hc(e,t,n,r=""){let i=wt.filter(({key:p})=>t.some(f=>p in f.meta)),o=t.some(p=>p.changes!==void 0),a="<thead><tr>"+[{key:"title",label:"Title"},{key:"file",label:"File"},...i,...o?[{key:"changes",label:"Changes"}]:[]].map(({key:p,label:f})=>`<th data-seqnotes-column="${p}">${G(n(f))}</th>`).join("")+`</tr></thead>
173
- `,s=p=>`<tr><td class="seqnotes-index-title"><a href="${G(p.href)}">${G(p.title)}</a></td><td class="seqnotes-index-file">${G(p.file)}</td>`+i.map(({key:f})=>{let g=p.meta[f];return`<td class="seqnotes-index-${f}">${g===void 0?"":`<span>${G(g)}</span>`}</td>`}).join("")+(o?p.changes?Dh(p.changes,n):'<td class="seqnotes-index-changes"></td>':"")+`</tr>
174
- `,c=Mh(t).map(({folder:p,entries:f})=>(p===""?"":`<h2>${G(p)}/</h2>
173
+ </html>`),await t.addStyleTag({path:(0,je.join)(this.dist,"webview.css")}),await t.addStyleTag({path:(0,je.join)(this.dist,"export.css")}),await t.addScriptTag({path:(0,je.join)(this.dist,"webview.js")}),await i}catch(r){throw await t.close(),r}finally{clearTimeout(n)}this.page=t}render(t,n,r){let i=++this.nextId;return new Promise((o,a)=>{let s=setTimeout(()=>{this.pending.delete(i),this.page.close().then(()=>this.openPage()).then(()=>a(new Error("The diagrams were not rendered in time.")),d=>a(d instanceof Error?d:new Error(String(d))))},bc),c=u=>{clearTimeout(s),this.pending.delete(i),u()};this.pending.set(i,{resolve:u=>c(()=>o(u)),reject:u=>c(()=>a(u))});let l={type:"export",id:i,html:t,diagramLook:n,...r?{diff:r}:{}};this.page.evaluate(u=>window.postMessage(u,"*"),l).catch(u=>this.pending.get(i)?.reject(u instanceof Error?u:new Error(String(u))))})}onExported(t){let n=this.pending.get(t.id);t.body!==void 0?n?.resolve({body:t.body,diagramErrors:t.diagramErrors??[],warnings:t.warnings??[]}):n?.reject(new Error(t.error??"The diagrams could not be rendered."))}close(){return this.browser.close()}};function Hh(e){return e.startsWith("file:")?[(0,Rr.dirname)((0,vt.fileURLToPath)(e)),process.cwd()].map(t=>(0,xe.realpathSync)(t)):[]}async function Ec(e,t,n){try{if(t.startsWith("file:")){let i=(0,xe.realpathSync)((0,vt.fileURLToPath)(t));return n.some(o=>Pe(i,o))?{body:(0,xe.readFileSync)(i),type:Rn(t,void 0)}:void 0}let r=await e.request.get(t);return r.ok()?{body:await r.body(),type:Rn(t,r.headers()["content-type"])}:void 0}catch{return}}async function Gh(e,t){for(let n of t.actions)switch(n.action){case"fill":await e.locator(n.selector).first().fill(n.text);break;case"click":await e.locator(n.selector).first().click();break;case"hover":await e.locator(n.selector).first().hover();break;case"press":await e.keyboard.press(n.key);break}}async function wc(e){let t=e.script?await import((0,vt.pathToFileURL)(e.script).href):void 0,n=await vr(e.chrome);try{let r=await n.newContext({viewport:{width:e.width,height:e.height},deviceScaleFactor:1,colorScheme:e.colorScheme,reducedMotion:"reduce",storageState:e.storageState,bypassCSP:!0}),i=await r.newPage(),o=new Set;i.on("requestfinished",h=>o.add(h.url())),await t?.setup?.(i,r),await i.goto(e.url,{waitUntil:"networkidle"}),await t?.default?.(i,r),await Gh(i,e),e.waitFor!==void 0&&await i.locator(e.waitFor).first().waitFor({state:"visible"}),e.wait&&await i.waitForTimeout(e.wait),await i.evaluate(async()=>{await document.fonts.ready;for(let h of document.getAnimations())try{h.finish()}catch{}});let a=[],s=Hh(i.url()),c={},l=async h=>(await Ec(r,h,s))?.body.toString("utf8");for(let h of await i.evaluate(hc)){let m=await l(h),E=[];m!==void 0?c[h]=await An(m,h,l,E):E.push(h),a.push(...E.map(_=>`Style sheet left out (could not be fetched): ${_}`))}let u=`{ viewportUnitsToPx: ${Mr}, splitTopLevel: ${Ir}, assetPlaceholder: ${Or}, styleText: ${Fr} }`,d=await i.evaluate(`(${mc})(${JSON.stringify(c)}, ${JSON.stringify([...o])}, ${u})`),p=await Promise.all(d.assets.map(async h=>{let m=await Ec(r,h,s);return m||a.push(`Not embedded (could not be fetched): ${h}`),m?`data:${m.type};base64,${m.body.toString("base64")}`:h})),g=`<!DOCTYPE html>
174
+ <!-- Captured by md-design-doc capture from ${`${Pr(e.url).replace(/-(?=-)/g,"%2D")} at ${e.width}x${e.height}`} -->
175
+ ${Lr(d.html,p)}
176
+ `;return(0,xe.mkdirSync)((0,Rr.dirname)(e.out),{recursive:!0}),(0,xe.writeFileSync)(e.out,g),a}finally{await n.close()}}function kc(e,t,n,r=!0){let i=e.parse(t,{}),o=Er(i),a={};for(let{key:s}of r?kt:[]){let c=xt(o,s)?.trim();c!==void 0&&(a[s]=c)}return{title:tc(i,n),meta:a,designDoc:mr(o)}}function Kh(e,t){let n=e===""?[]:e.split("/"),r=t===""?[]:t.split("/");for(let i=0;i<Math.min(n.length,r.length);i++){let o=n[i].localeCompare(r[i]);if(o!==0)return o}return n.length-r.length}function Zh(e,t){let{added:n,changed:r,deleted:i}=e.stats,o=n+r+i,a;return e.isNew?a=`<span class="seqnotes-index-new">${G(t("New"))}</span>`:o===0?a=`<span class="seqnotes-index-unchanged">${G(t("No changes"))}</span>`:a='<span class="seqnotes-diff-counts">'+[["added",n,"{0} added"],["changed",r,"{0} changed"],["deleted",i,"{0} deleted"]].filter(([,c])=>c>0).map(([c,l,u])=>`<span class="seqnotes-diff-count" data-kind="${c}">${G(t(u,l))}</span>`).join("")+"</span>",`<td class="seqnotes-index-changes" data-seqnotes-sort="${e.isNew?Number.MAX_SAFE_INTEGER:o}">${a}</td>`}function Jh(e){return[...new Set(e.map(n=>n.folder))].sort(Kh).map(n=>({folder:n,entries:e.filter(r=>r.folder===n).sort((r,i)=>r.file.localeCompare(i.file))}))}function xc(e,t,n,r=""){let i=kt.filter(({key:p})=>t.some(f=>p in f.meta)),o=t.some(p=>p.changes!==void 0),a="<thead><tr>"+[{key:"title",label:"Title"},{key:"file",label:"File"},...i,...o?[{key:"changes",label:"Changes"}]:[]].map(({key:p,label:f})=>`<th data-seqnotes-column="${p}">${G(n(f))}</th>`).join("")+`</tr></thead>
177
+ `,s=p=>`<tr><td class="seqnotes-index-title"><a href="${G(p.href)}">${G(p.title)}</a></td><td class="seqnotes-index-file">${G(p.file)}</td>`+i.map(({key:f})=>{let g=p.meta[f];return`<td class="seqnotes-index-${f}">${g===void 0?"":`<span>${G(g)}</span>`}</td>`}).join("")+(o?p.changes?Zh(p.changes,n):'<td class="seqnotes-index-changes"></td>':"")+`</tr>
178
+ `,c=Jh(t).map(({folder:p,entries:f})=>(p===""?"":`<h2>${G(p)}/</h2>
175
179
  `)+`<table>
176
180
  ${a}<tbody>
177
181
  ${f.map(s).join("")}</tbody>
@@ -179,9 +183,9 @@ ${f.map(s).join("")}</tbody>
179
183
  `),l={"filter-label":n("Filter"),"filter-placeholder":n("Filter by title, file name or metadata"),count:n("{0} of {1} documents"),"no-match":n("No documents match the filter."),"sort-title":n("Sort by this column")},u=Object.entries(l).map(([p,f])=>` data-seqnotes-${p}="${G(f)}"`).join(""),d=t.length===0?`<p class="seqnotes-index-empty">${G(r)}</p>
180
184
  `:c.join("");return`<div class="seqnotes-index"${u}>
181
185
  <h1>${G(e)}</h1>
182
- ${d}</div>`}var xc=require("node:child_process"),un=wn(require("node:path"));function mc(e){return["log","-1","--no-show-signature","--format=%H%x1f%h%x1f%an%x1f%aI%x1f%s","--end-of-options",e,"--"]}function bc(e){let[t,n,r,i,o]=e.replace(/\r?\n$/,"").split("");return/^[0-9a-f]{40,64}$/.test(t)&&o!==void 0?{hash:t,shortHash:n,author:r,date:i,subject:o}:void 0}function _c(e){return["ls-tree","-z","--name-only",e]}function Ec(e){return e.split("\0").filter(t=>t!=="")}function wc(e,t){return["show",`${e}:./${t}`]}function kc(e,t){let n=new Date(e);return Number.isNaN(n.getTime())?e:n.toLocaleString(t,{dateStyle:"medium",timeStyle:"short"})}var ye=class extends Error{constructor(n,r){super(r);this.kind=n}kind},Ih=64*1024*1024;function kr(e,t,n){return new Promise((r,i)=>{(0,xc.execFile)(e,t,{cwd:n,maxBuffer:Ih,windowsHide:!0,encoding:"buffer"},(o,a,s)=>{let c=s.toString();o?o.code==="ENOENT"?i(new ye("notFound",o.message)):/not a git repository/i.test(c)?i(new ye("notRepository",c.trim())):i(new ye("failed",c.trim()||o.message)):r(a)})})}async function yc(e,t,n){let r=bc((await kr(e,mc(n),t)).toString());if(!r)throw new ye("failed",`Unknown revision: ${n}`);return r}async function vc(e,t,n){return new Set(Ec((await kr(e,_c(n),t)).toString()))}function Rc(e,t,n){return kr(e,wc(n,un.basename(t)),un.dirname(t))}function Ac(e,t,n=ne,r){let i=e.parse(t,{t:n,wireframes:r}),{diagrams:o,warnings:a}=Kt(i,n),s=[...a,...Gt(i)].map(c=>({line:c.line,message:c.message,severity:"warning"}));for(let c of o.filter(l=>l.paired)){let l=Ne(c.kind,n);if(c.messages.every(u=>!u.target)){c.messages.some(u=>u.ref===void 0)&&s.push({line:i[c.fenceIndex].map?.[0]??0,message:l.nothingLinked,severity:"info"});continue}for(let u of c.messages.filter(d=>d.unlinked&&le(d.text)!=="")){let d=le(u.text);s.push({line:u.line,message:l.unlinkedItem(d),severity:"info"})}for(let u of c.unlinkedHeadings){let d=le(mt(i[u+1]));s.push({line:i[u].map?.[0]??0,message:l.unlinkedHeading(d),severity:"info"})}for(let u of c.rows.filter(d=>d.unlinked))s.push({line:u.line,message:$t(n).unlinked(u.item),severity:"info"});for(let{heading:u,numbers:d}of yo(c))s.push({line:u.line,message:n('The number of heading "{0}" does not match the numbers of the arrows linked to it ({1}). Remove the number from the heading: autonumber shows the arrow numbers on it.',u.text,d.join(", ")),severity:"info"})}return s.sort((c,l)=>c.line-l.line)}var fn=__dirname,Oh=(0,K.join)(fn,"..","l10n");function Lh(e){if(e==="en")return ne;let t=(0,K.join)(Oh,`bundle.l10n.${e}.json`);if(!/^[a-z]{2,3}(?:-[a-z0-9]+)*$/i.test(e)||!(0,re.existsSync)(t))throw new ee(`Unsupported language: ${e}`);return Ui(JSON.parse((0,re.readFileSync)(t,"utf8")))}function ve(e,t=process.cwd()){return Be(e,t)?(0,K.relative)(t,e).split(K.sep).join("/")||".":e}var Fh=process.env.GITHUB_ACTIONS==="true",Bh=process.env.GITHUB_WORKSPACE||process.cwd();function Cc(e,t=!1){let n=e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A");return t?n.replace(/:/g,"%3A").replace(/,/g,"%2C"):n}function dn(e,t,n,r){if(Fh){let i=[`file=${Cc(ve(t,Bh),!0)}`,...r===void 0?[]:[`line=${r}`]].join(",");console.error(`::${e} ${i}::${Cc(n)}`)}else console.error(`${ve(t)}${r===void 0?"":`:${r}`}: ${e}: ${n}`)}function Nc(e,t){let n=(0,K.relative)((0,K.dirname)(e),t);return(0,K.isAbsolute)(n)?(0,Tc.pathToFileURL)(t).href:n.split(K.sep).map(encodeURIComponent).join("/")}function Ph(e,t,n,r){let i=Za(e),o=i.startsWith("/")?(0,K.join)(r,i):(0,K.resolve)((0,K.dirname)(t),i);try{let a=(0,re.realpathSync)(o),s=Ka(a);if(s&&[(0,K.dirname)(t),r].some(c=>Be(a,(0,re.realpathSync)(c))))return`data:${s};base64,${(0,re.readFileSync)(a).toString("base64")}`}catch{}return Nc(n,o)}function $h(e,t,n){let r=e.startsWith("/")?(0,K.join)(n,e):(0,K.resolve)((0,K.dirname)(t),e);try{let i=(0,re.realpathSync)(r);if([(0,K.dirname)(t),n].some(o=>Be(i,(0,re.realpathSync)(o))))return(0,re.readFileSync)(i,"utf8").replace(/^\uFEFF/,"")}catch{}}function Uh(e,t,n,r){return bo(e,wo(e.parse(t,{})),async i=>$h(i,n,r))}var xr="git";function zh(e){return e instanceof ye&&e.kind==="notFound"?"Git was not found: --diff-base requires git on the PATH.":e instanceof ye&&e.kind==="notRepository"?"--diff-base: the document is not in a git repository.":`--diff-base: ${e instanceof Error?e.message:String(e)}`}async function qh(e){let t=oc(e.inputs);if(t.length===0)throw new ee("No Markdown file found.");let n=t.map(b=>sc(b,e.outDir,e.root)),r=n.find((b,_)=>n.indexOf(b)!==_);if(r!==void 0)throw new ee(`Two documents would be exported to the same file: ${ve(r)}`);let i=e.index&&e.outDir!==void 0?ac(e.outDir):void 0;if(i!==void 0&&n.some(b=>b.toLowerCase()===i.toLowerCase()))throw new ee(`A document would be exported to the file of --index: ${ve(i)}`);let o=Lh(e.lang),a=Pa(),s=b=>ec((0,re.readFileSync)((0,K.join)(fn,b),"utf8")),c=[s("webview.css"),s("export.css")],l=s("export.js"),u=o(Ye["toc-title"]),d=!0,p=[],f=await cn.open(fn,{lang:e.lang,chrome:e.chrome,t:o}),g=new Map,h=(b,_)=>{let x=g.get(_);return x||(x=yc(xr,_,b).then(async k=>({commit:k,files:await vc(xr,_,k.hash)})),g.set(_,x)),x},m=async(b,_,x,k,R)=>{let E,v;try{let O=await h(b,(0,K.dirname)(_));E=O.commit,v=O.files.has((0,K.basename)(_))?await Rc(xr,_,E.hash):void 0}catch(O){throw new Error(zh(O))}let A=v===void 0?"":new TextDecoder().decode(v),w=kc(E.date,e.lang),N=o(v===void 0?"New since the version of {0}":"Compared with the version of {0}",w),{html:C,old:S,stats:I}=await Qa(a,A,x.replace(/^\uFEFF/,""),k,R);return{html:C,view:{label:N,old:S,stats:I},isNew:v===void 0}};try{for(let[b,_]of t.entries()){let x=n[b];try{let k=(0,re.readFileSync)(_,"utf8"),R=await Uh(a,k,_,e.root);for(let y of Ac(a,k,o,R).filter(D=>D.severity==="warning"))dn("warning",_,y.message,y.line+1),d&&=!e.strict;let E={t:o,frontMatter:e.frontMatter,headingNumbers:e.headingNumbers,wireframes:R},v=async y=>Ph(y,_,x,e.root),A=e.diffBase===void 0?void 0:await m(e.diffBase,_,k,E,v),w=A?A.html:await Va(a,k,E,v),{body:N,diagramErrors:C,warnings:S}=await f.render(w,e.diagramLook,A?.view);for(let y of S)dn("warning",_,y.message,y.line===void 0?void 0:y.line+1),d&&=!e.strict;for(let y of C)dn("error",_,y),d=!1;let I=(0,K.basename)(_),O=pc(a,k,I,e.frontMatter),T=hr({lang:e.lang,title:O.title,body:N,styles:c,script:l,settings:e.settings,tocTitle:u,...A?{diff:tc(A.view,o)}:{}});if((0,re.mkdirSync)((0,K.dirname)(x),{recursive:!0}),(0,re.writeFileSync)(x,T),console.log(`${ve(_)} -> ${ve(x)}`),i!==void 0&&(O.designDoc||!e.indexDesignDocs)){let y=(0,K.relative)((0,K.dirname)(i),(0,K.dirname)(x)).split(K.sep).join("/"),D=A&&{stats:A.view.stats,isNew:A.isNew};p.push({title:O.title,meta:O.meta,href:Nc(i,x),folder:y,file:I,...D?{changes:D}:{}})}}catch(k){dn("error",_,k instanceof Error?k.message:String(k)),d=!1}}}finally{await f.close()}if(i!==void 0&&p.length>0){let b=e.indexTitle||o("Design Docs");(0,re.mkdirSync)((0,K.dirname)(i),{recursive:!0});let _={...e.settings,toc:!1};(0,re.writeFileSync)(i,hr({lang:e.lang,title:b,body:hc(b,p,o),styles:c,script:l,settings:_})),console.log(`-> ${ve(i)}`)}else i!==void 0&&e.indexDesignDocs&&console.error(`No design doc (type: design_doc) was exported: ${ve(i)} is not written.`);return d}async function Wh(e){for(let t of await gc(e))console.error(`warning: ${t}`);return console.log(`-> ${ve(e.out)}`),0}async function Hh(e){try{let t=rc(e,process.cwd());switch(t.command){case"help":return console.log(_r),0;case"version":return console.log(JSON.parse((0,re.readFileSync)((0,K.join)(fn,"..","package.json"),"utf8")).version),0;case"export":return await qh(t)?0:1;case"capture":return await Wh(t)}}catch(t){return t instanceof ee?(console.error(`md-design-doc: ${t.message}
186
+ ${d}</div>`}var Nc=require("node:child_process"),gn=yn(require("node:path"));function yc(e){return["log","-1","--no-show-signature","--format=%H%x1f%h%x1f%an%x1f%aI%x1f%s","--end-of-options",e,"--"]}function vc(e){let[t,n,r,i,o]=e.replace(/\r?\n$/,"").split("");return/^[0-9a-f]{40,64}$/.test(t)&&o!==void 0?{hash:t,shortHash:n,author:r,date:i,subject:o}:void 0}function Rc(e){return["ls-tree","-z","--name-only",e]}function Ac(e){return e.split("\0").filter(t=>t!=="")}function Cc(e,t){return["show",`${e}:./${t}`]}function Tc(e,t){let n=new Date(e);return Number.isNaN(n.getTime())?e:n.toLocaleString(t,{dateStyle:"medium",timeStyle:"short"})}var ye=class extends Error{constructor(n,r){super(r);this.kind=n}kind},Yh=64*1024*1024;function Ar(e,t,n){return new Promise((r,i)=>{(0,Nc.execFile)(e,t,{cwd:n,maxBuffer:Yh,windowsHide:!0,encoding:"buffer"},(o,a,s)=>{let c=s.toString();o?o.code==="ENOENT"?i(new ye("notFound",o.message)):/not a git repository/i.test(c)?i(new ye("notRepository",c.trim())):i(new ye("failed",c.trim()||o.message)):r(a)})})}async function Sc(e,t,n){let r=vc((await Ar(e,yc(n),t)).toString());if(!r)throw new ye("failed",`Unknown revision: ${n}`);return r}async function Dc(e,t,n){return new Set(Ac((await Ar(e,Rc(n),t)).toString()))}function Mc(e,t,n){return Ar(e,Cc(n,gn.basename(t)),gn.dirname(t))}function Ic(e,t,n=ne,r){let i=e.parse(t,{t:n,wireframes:r}),{diagrams:o,warnings:a}=Jt(i,n),s=[...a,...Zt(i)].map(c=>({line:c.line,message:c.message,severity:"warning"}));for(let c of o.filter(l=>l.paired)){let l=Ne(c.kind,n);if(c.messages.every(u=>!u.target)){c.messages.some(u=>u.ref===void 0)&&s.push({line:i[c.fenceIndex].map?.[0]??0,message:l.nothingLinked,severity:"info"});continue}for(let u of c.messages.filter(d=>d.unlinked&&le(d.text)!=="")){let d=le(u.text);s.push({line:u.line,message:l.unlinkedItem(d),severity:"info"})}for(let u of c.unlinkedHeadings){let d=le(bt(i[u+1]));s.push({line:i[u].map?.[0]??0,message:l.unlinkedHeading(d),severity:"info"})}for(let u of c.rows.filter(d=>d.unlinked))s.push({line:u.line,message:Ut(n).unlinked(u.item),severity:"info"});for(let{heading:u,numbers:d}of Ao(c))s.push({line:u.line,message:n('The number of heading "{0}" does not match the numbers of the arrows linked to it ({1}). Remove the number from the heading: autonumber shows the arrow numbers on it.',u.text,d.join(", ")),severity:"info"})}return s.sort((c,l)=>c.line-l.line)}var hn=__dirname,jh=(0,K.join)(hn,"..","l10n");function Xh(e){if(e==="en")return ne;let t=(0,K.join)(jh,`bundle.l10n.${e}.json`);if(!/^[a-z]{2,3}(?:-[a-z0-9]+)*$/i.test(e)||!(0,re.existsSync)(t))throw new X(`Unsupported language: ${e}`);return Gi(JSON.parse((0,re.readFileSync)(t,"utf8")))}function ve(e,t=process.cwd()){return Pe(e,t)?(0,K.relative)(t,e).split(K.sep).join("/")||".":e}var Vh=process.env.GITHUB_ACTIONS==="true",Qh=process.env.GITHUB_WORKSPACE||process.cwd();function Oc(e,t=!1){let n=e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A");return t?n.replace(/:/g,"%3A").replace(/,/g,"%2C"):n}function pn(e,t,n,r){if(Vh){let i=[`file=${Oc(ve(t,Qh),!0)}`,...r===void 0?[]:[`line=${r}`]].join(",");console.error(`::${e} ${i}::${Oc(n)}`)}else console.error(`${ve(t)}${r===void 0?"":`:${r}`}: ${e}: ${n}`)}function Fc(e,t){let n=(0,K.relative)((0,K.dirname)(e),t);return(0,K.isAbsolute)(n)?(0,Lc.pathToFileURL)(t).href:n.split(K.sep).map(encodeURIComponent).join("/")}function em(e,t,n,r){let i=ec(e),o=i.startsWith("/")?(0,K.join)(r,i):(0,K.resolve)((0,K.dirname)(t),i);try{let a=(0,re.realpathSync)(o),s=Qa(a);if(s&&[(0,K.dirname)(t),r].some(c=>Pe(a,(0,re.realpathSync)(c))))return`data:${s};base64,${(0,re.readFileSync)(a).toString("base64")}`}catch{}return Fc(n,o)}function tm(e,t,n){let r=e.startsWith("/")?(0,K.join)(n,e):(0,K.resolve)((0,K.dirname)(t),e);try{let i=(0,re.realpathSync)(r);if([(0,K.dirname)(t),n].some(o=>Pe(i,(0,re.realpathSync)(o))))return(0,re.readFileSync)(i,"utf8").replace(/^\uFEFF/,"")}catch{}}function nm(e,t,n,r){return wo(e,yo(e.parse(t,{})),async i=>tm(i,n,r))}var Cr="git";function rm(e){return e instanceof ye&&e.kind==="notFound"?"Git was not found: --diff-base requires git on the PATH.":e instanceof ye&&e.kind==="notRepository"?"--diff-base: the document is not in a git repository.":`--diff-base: ${e instanceof Error?e.message:String(e)}`}async function im(e){let t=fc(e.inputs);if(t.length===0)throw new X("No Markdown file found.");let n=t.map(_=>gc(_,e.outDir,e.root)),r=n.find((_,k)=>n.indexOf(_)!==k);if(r!==void 0)throw new X(`Two documents would be exported to the same file: ${ve(r)}`);let i=e.index&&e.outDir!==void 0?pc(e.outDir):void 0;if(i!==void 0&&n.some(_=>_.toLowerCase()===i.toLowerCase()))throw new X(`A document would be exported to the file of --index: ${ve(i)}`);let o=Xh(e.lang),a=Ga(),s=_=>ac((0,re.readFileSync)((0,K.join)(hn,_),"utf8")),c=[s("webview.css"),s("export.css")],l=s("export.js"),u=o(Fe["toc-title"]),d=o(Fe["splitter-title"]),p=!0,f=[],g=await dn.open(hn,{lang:e.lang,chrome:e.chrome,t:o}),h=new Map,m=(_,k)=>{let x=h.get(k);return x||(x=Sc(Cr,k,_).then(async v=>({commit:v,files:await Dc(Cr,k,v.hash)})),h.set(k,x)),x},E=async(_,k,x,v,w)=>{let R,A;try{let C=await m(_,(0,K.dirname)(k));R=C.commit,A=C.files.has((0,K.basename)(k))?await Mc(Cr,k,R.hash):void 0}catch(C){throw new Error(rm(C))}let b=A===void 0?"":new TextDecoder().decode(A),S=Tc(R.date,e.lang),T=o(A===void 0?"New since the version of {0}":"Compared with the version of {0}",S),{html:M,old:I,stats:L}=await sc(a,b,x.replace(/^\uFEFF/,""),v,w);return{html:M,view:{label:T,old:I,stats:L},isNew:A===void 0}};try{for(let[_,k]of t.entries()){let x=n[_];try{let v=(0,re.readFileSync)(k,"utf8"),w=await nm(a,v,k,e.root);for(let N of Ic(a,v,o,w).filter(D=>D.severity==="warning"))pn("warning",k,N.message,N.line+1),p&&=!e.strict;let R={t:o,frontMatter:e.frontMatter,headingNumbers:e.headingNumbers,messageWrapWidth:e.messageWrapWidth,wireframes:w},A=async N=>em(N,k,x,e.root),b=e.diffBase===void 0?void 0:await E(e.diffBase,k,v,R,A),S=b?b.html:await oc(a,v,R,A),{body:T,diagramErrors:M,warnings:I}=await g.render(S,e.diagramLook,b?.view);for(let N of I)pn("warning",k,N.message,N.line===void 0?void 0:N.line+1),p&&=!e.strict;for(let N of M)pn("error",k,N),p=!1;let L=(0,K.basename)(k),C=kc(a,v,L,e.frontMatter),y=wr({lang:e.lang,title:C.title,body:T,styles:c,script:l,settings:e.settings,tocTitle:u,splitterTitle:d,...b?{diff:cc(b.view,o)}:{}});if((0,re.mkdirSync)((0,K.dirname)(x),{recursive:!0}),(0,re.writeFileSync)(x,y),console.log(`${ve(k)} -> ${ve(x)}`),i!==void 0&&(C.designDoc||!e.indexDesignDocs)){let N=(0,K.relative)((0,K.dirname)(i),(0,K.dirname)(x)).split(K.sep).join("/"),D=b&&{stats:b.view.stats,isNew:b.isNew};f.push({title:C.title,meta:C.meta,href:Fc(i,x),folder:N,file:L,...D?{changes:D}:{}})}}catch(v){pn("error",k,v instanceof Error?v.message:String(v)),p=!1}}}finally{await g.close()}if(i!==void 0&&f.length>0){let _=e.indexTitle||o("Design Docs");(0,re.mkdirSync)((0,K.dirname)(i),{recursive:!0});let k={...e.settings,toc:!1};(0,re.writeFileSync)(i,wr({lang:e.lang,title:_,body:xc(_,f,o),styles:c,script:l,settings:k})),console.log(`-> ${ve(i)}`)}else i!==void 0&&e.indexDesignDocs&&console.error(`No design doc (type: design_doc) was exported: ${ve(i)} is not written.`);return p}async function om(e){for(let t of await wc(e))console.error(`warning: ${t}`);return console.log(`-> ${ve(e.out)}`),0}async function sm(e){try{let t=uc(e,process.cwd());switch(t.command){case"help":return console.log(yr),0;case"version":return console.log(JSON.parse((0,re.readFileSync)((0,K.join)(hn,"..","package.json"),"utf8")).version),0;case"export":return await im(t)?0:1;case"capture":return await om(t)}}catch(t){return t instanceof X?(console.error(`md-design-doc: ${t.message}
183
187
 
184
- ${_r}`),2):(console.error(`md-design-doc: ${t instanceof Error?t.message:String(t)}`),1)}}Hh(process.argv.slice(2)).then(e=>{process.exitCode=e});
188
+ ${yr}`),2):(console.error(`md-design-doc: ${t instanceof Error?t.message:String(t)}`),1)}}sm(process.argv.slice(2)).then(e=>{process.exitCode=e});
185
189
  /*! Bundled license information:
186
190
 
187
191
  markdown-it/dist/markdown-it.mjs: