@zvndev/darkmown 2.10.1 → 2.12.0

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.
@@ -1,10 +1,10 @@
1
1
  // Generated by scripts/build-playground.mjs — do not edit. Rebuild: npm run build:playground
2
- var Dl=Object.create;var br=Object.defineProperty;var Nl=Object.getOwnPropertyDescriptor;var Tl=Object.getOwnPropertyNames;var Ol=Object.getPrototypeOf,Rl=Object.prototype.hasOwnProperty;var P=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},Xt=(e,t)=>{for(var n in t)br(e,n,{get:t[n],enumerable:!0})},Ml=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Tl(t))!Rl.call(e,o)&&o!==n&&br(e,o,{get:()=>t[o],enumerable:!(r=Nl(t,o))||r.enumerable});return e};var Il=(e,t,n)=>(n=e!=null?Dl(Ol(e)):{},Ml(t||!e||!e.__esModule?br(n,"default",{value:e,enumerable:!0}):n,e));var Gi=P((yb,Hi)=>{function Oi(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)&&Oi(n)}),e}var Qt=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Ri(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Ue(e,...t){let n=Object.create(null);for(let r in e)n[r]=e[r];return t.forEach(function(r){for(let o in r)n[o]=r[o]}),n}var Wl="</span>",Si=e=>!!e.scope,Hl=(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,o)=>`${r}${"_".repeat(o+1)}`)].join(" ")}return`${t}${e}`},Er=class{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=Ri(t)}openNode(t){if(!Si(t))return;let n=Hl(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){Si(t)&&(this.buffer+=Wl)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}},$i=(e={})=>{let t={children:[]};return Object.assign(t,e),t},yr=class e{constructor(){this.rootNode=$i(),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=$i({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)}))}},wr=class extends yr{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 Nt(e){return e?typeof e=="string"?e:e.source:null}function Mi(e){return Ze("(?=",e,")")}function Gl(e){return Ze("(?:",e,")*")}function Zl(e){return Ze("(?:",e,")?")}function Ze(...e){return e.map(n=>Nt(n)).join("")}function Kl(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Ar(...e){return"("+(Kl(e).capture?"":"?:")+e.map(r=>Nt(r)).join("|")+")"}function Ii(e){return new RegExp(e.toString()+"|").exec("").length-1}function jl(e,t){let n=e&&e.exec(t);return n&&n.index===0}var Vl=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function xr(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;let o=n,i=Nt(r),a="";for(;i.length>0;){let u=Vl.exec(i);if(!u){a+=i;break}a+=i.substring(0,u.index),i=i.substring(u.index+u[0].length),u[0][0]==="\\"&&u[1]?a+="\\"+String(Number(u[1])+o):(a+=u[0],u[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}var Yl=/\b\B/,Li="[a-zA-Z]\\w*",vr="[a-zA-Z_]\\w*",Fi="\\b\\d+(\\.\\d+)?",Bi="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ui="\\b(0b[01]+)",Xl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Jl=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=Ze(t,/.*\b/,e.binary,/\b.*/)),Ue({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},Tt={begin:"\\\\[\\s\\S]",relevance:0},Ql={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Tt]},e0={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Tt]},t0={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/},tn=function(e,t,n={}){let r=Ue({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 o=Ar("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:Ze(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},n0=tn("//","$"),r0=tn("/\\*","\\*/"),o0=tn("#","$"),i0={scope:"number",begin:Fi,relevance:0},a0={scope:"number",begin:Bi,relevance:0},u0={scope:"number",begin:Ui,relevance:0},s0={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Tt,{begin:/\[/,end:/\]/,relevance:0,contains:[Tt]}]},c0={scope:"title",begin:Li,relevance:0},l0={scope:"title",begin:vr,relevance:0},d0={begin:"\\.\\s*"+vr,relevance:0},f0=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:Ql,BACKSLASH_ESCAPE:Tt,BINARY_NUMBER_MODE:u0,BINARY_NUMBER_RE:Ui,COMMENT:tn,C_BLOCK_COMMENT_MODE:r0,C_LINE_COMMENT_MODE:n0,C_NUMBER_MODE:a0,C_NUMBER_RE:Bi,END_SAME_AS_BEGIN:f0,HASH_COMMENT_MODE:o0,IDENT_RE:Li,MATCH_NOTHING_RE:Yl,METHOD_GUARD:d0,NUMBER_MODE:i0,NUMBER_RE:Fi,PHRASAL_WORDS_MODE:t0,QUOTE_STRING_MODE:e0,REGEXP_MODE:s0,RE_STARTERS_RE:Xl,SHEBANG:Jl,TITLE_MODE:c0,UNDERSCORE_IDENT_RE:vr,UNDERSCORE_TITLE_MODE:l0});function p0(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function m0(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function h0(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=p0,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function b0(e,t){Array.isArray(e.illegal)&&(e.illegal=Ar(...e.illegal))}function g0(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 _0(e,t){e.relevance===void 0&&(e.relevance=1)}var E0=(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=Ze(n.beforeMatch,Mi(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},y0=["of","and","for","in","not","or","if","then","parent","list","value"],w0="keyword";function Pi(e,t,n=w0){let r=Object.create(null);return typeof e=="string"?o(n,e.split(" ")):Array.isArray(e)?o(n,e):Object.keys(e).forEach(function(i){Object.assign(r,Pi(e[i],t,i))}),r;function o(i,a){t&&(a=a.map(u=>u.toLowerCase())),a.forEach(function(u){let s=u.split("|");r[s[0]]=[i,k0(s[0],s[1])]})}}function k0(e,t){return t?Number(t):A0(e)?0:1}function A0(e){return y0.includes(e.toLowerCase())}var Ci={},Ge=e=>{console.error(e)},Di=(e,...t)=>{console.log(`WARN: ${e}`,...t)},st=(e,t)=>{Ci[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Ci[`${e}/${t}`]=!0)},en=new Error;function zi(e,t,{key:n}){let r=0,o=e[n],i={},a={};for(let u=1;u<=t.length;u++)a[u+r]=o[u],i[u+r]=!0,r+=Ii(t[u-1]);e[n]=a,e[n]._emit=i,e[n]._multi=!0}function x0(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Ge("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),en;if(typeof e.beginScope!="object"||e.beginScope===null)throw Ge("beginScope must be object"),en;zi(e,e.begin,{key:"beginScope"}),e.begin=xr(e.begin,{joinWith:""})}}function v0(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Ge("skip, excludeEnd, returnEnd not compatible with endScope: {}"),en;if(typeof e.endScope!="object"||e.endScope===null)throw Ge("endScope must be object"),en;zi(e,e.end,{key:"endScope"}),e.end=xr(e.end,{joinWith:""})}}function S0(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function $0(e){S0(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),x0(e),v0(e)}function C0(e){function t(a,u){return new RegExp(Nt(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(u?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(u,s){s.position=this.position++,this.matchIndexes[this.matchAt]=s,this.regexes.push([s,u]),this.matchAt+=Ii(u)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let u=this.regexes.map(s=>s[1]);this.matcherRe=t(xr(u,{joinWith:"|"}),!0),this.lastIndex=0}exec(u){this.matcherRe.lastIndex=this.lastIndex;let s=this.matcherRe.exec(u);if(!s)return null;let c=s.findIndex((d,f)=>f>0&&d!==void 0),l=this.matchIndexes[c];return s.splice(0,c),Object.assign(s,l)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(u){if(this.multiRegexes[u])return this.multiRegexes[u];let s=new n;return this.rules.slice(u).forEach(([c,l])=>s.addRule(c,l)),s.compile(),this.multiRegexes[u]=s,s}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(u,s){this.rules.push([u,s]),s.type==="begin"&&this.count++}exec(u){let s=this.getMatcher(this.regexIndex);s.lastIndex=this.lastIndex;let c=s.exec(u);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){let l=this.getMatcher(0);l.lastIndex=this.lastIndex+1,c=l.exec(u)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function o(a){let u=new r;return a.contains.forEach(s=>u.addRule(s.begin,{rule:s,type:"begin"})),a.terminatorEnd&&u.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&u.addRule(a.illegal,{type:"illegal"}),u}function i(a,u){let s=a;if(a.isCompiled)return s;[m0,g0,$0,E0].forEach(l=>l(a,u)),e.compilerExtensions.forEach(l=>l(a,u)),a.__beforeBegin=null,[h0,b0,_0].forEach(l=>l(a,u)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=Pi(a.keywords,e.case_insensitive)),s.keywordPatternRe=t(c,!0),u&&(a.begin||(a.begin=/\B|\b/),s.beginRe=t(s.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(s.endRe=t(s.end)),s.terminatorEnd=Nt(s.end)||"",a.endsWithParent&&u.terminatorEnd&&(s.terminatorEnd+=(a.end?"|":"")+u.terminatorEnd)),a.illegal&&(s.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(l){return D0(l==="self"?a:l)})),a.contains.forEach(function(l){i(l,s)}),a.starts&&i(a.starts,u),s.matcher=o(s),s}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=Ue(e.classNameAliases||{}),i(e)}function qi(e){return e?e.endsWithParent||qi(e.starts):!1}function D0(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Ue(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:qi(e)?Ue(e,{starts:e.starts?Ue(e.starts):null}):Object.isFrozen(e)?Ue(e):e}var N0="11.11.1",kr=class extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}},_r=Ri,Ni=Ue,Ti=Symbol("nomatch"),T0=7,Wi=function(e){let t=Object.create(null),n=Object.create(null),r=[],o=!0,i="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]},u={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:wr};function s(w){return u.noHighlightRe.test(w)}function c(w){let T=w.className+" ";T+=w.parentNode?w.parentNode.className:"";let N=u.languageDetectRe.exec(T);if(N){let F=R(N[1]);return F||(Di(i.replace("{}",N[1])),Di("Falling back to no-highlight mode for this block.",w)),F?N[1]:"no-highlight"}return T.split(/\s+/).find(F=>s(F)||R(F))}function l(w,T,N){let F="",W="";typeof T=="object"?(F=w,N=T.ignoreIllegals,W=T.language):(st("10.7.0","highlight(lang, code, ...args) has been deprecated."),st("10.7.0",`Please use highlight(code, options) instead.
3
- https://github.com/highlightjs/highlight.js/issues/2277`),W=w,F=T),N===void 0&&(N=!0);let X={code:F,language:W};Z("before:highlight",X);let te=X.result?X.result:d(X.language,X.code,N);return te.code=X.code,Z("after:highlight",te),te}function d(w,T,N,F){let W=Object.create(null);function X(C,O){return C.keywords[O]}function te(){if(!I.keywords){ue.addText(J);return}let C=0;I.keywordPatternRe.lastIndex=0;let O=I.keywordPatternRe.exec(J),U="";for(;O;){U+=J.substring(C,O.index);let H=ge.case_insensitive?O[0].toLowerCase():O[0],se=X(I,H);if(se){let[Ne,$l]=se;if(ue.addText(U),U="",W[H]=(W[H]||0)+1,W[H]<=T0&&(Yt+=$l),Ne.startsWith("_"))U+=O[0];else{let Cl=ge.classNameAliases[Ne]||Ne;pe(O[0],Cl)}}else U+=O[0];C=I.keywordPatternRe.lastIndex,O=I.keywordPatternRe.exec(J)}U+=J.substring(C),ue.addText(U)}function be(){if(J==="")return;let C=null;if(typeof I.subLanguage=="string"){if(!t[I.subLanguage]){ue.addText(J);return}C=d(I.subLanguage,J,!0,Vt[I.subLanguage]),Vt[I.subLanguage]=C._top}else C=m(J,I.subLanguage.length?I.subLanguage:null);I.relevance>0&&(Yt+=C.relevance),ue.__addSublanguage(C._emitter,C.language)}function ce(){I.subLanguage!=null?be():te(),J=""}function pe(C,O){C!==""&&(ue.startScope(O),ue.addText(C),ue.endScope())}function at(C,O){let U=1,H=O.length-1;for(;U<=H;){if(!C._emit[U]){U++;continue}let se=ge.classNameAliases[C[U]]||C[U],Ne=O[U];se?pe(Ne,se):(J=Ne,te(),J=""),U++}}function Kt(C,O){return C.scope&&typeof C.scope=="string"&&ue.openNode(ge.classNameAliases[C.scope]||C.scope),C.beginScope&&(C.beginScope._wrap?(pe(J,ge.classNameAliases[C.beginScope._wrap]||C.beginScope._wrap),J=""):C.beginScope._multi&&(at(C.beginScope,O),J="")),I=Object.create(C,{parent:{value:I}}),I}function Dt(C,O,U){let H=jl(C.endRe,U);if(H){if(C["on:end"]){let se=new Qt(C);C["on:end"](O,se),se.isMatchIgnored&&(H=!1)}if(H){for(;C.endsParent&&C.parent;)C=C.parent;return C}}if(C.endsWithParent)return Dt(C.parent,O,U)}function lr(C){return I.matcher.regexIndex===0?(J+=C[0],1):(hr=!0,0)}function dr(C){let O=C[0],U=C.rule,H=new Qt(U),se=[U.__beforeBegin,U["on:begin"]];for(let Ne of se)if(Ne&&(Ne(C,H),H.isMatchIgnored))return lr(O);return U.skip?J+=O:(U.excludeBegin&&(J+=O),ce(),!U.returnBegin&&!U.excludeBegin&&(J=O)),Kt(U,C),U.returnBegin?0:O.length}function fr(C){let O=C[0],U=T.substring(C.index),H=Dt(I,C,U);if(!H)return Ti;let se=I;I.endScope&&I.endScope._wrap?(ce(),pe(O,I.endScope._wrap)):I.endScope&&I.endScope._multi?(ce(),at(I.endScope,C)):se.skip?J+=O:(se.returnEnd||se.excludeEnd||(J+=O),ce(),se.excludeEnd&&(J=O));do I.scope&&ue.closeNode(),!I.skip&&!I.subLanguage&&(Yt+=I.relevance),I=I.parent;while(I!==H.parent);return H.starts&&Kt(H.starts,C),se.returnEnd?0:O.length}function pr(){let C=[];for(let O=I;O!==ge;O=O.parent)O.scope&&C.unshift(O.scope);C.forEach(O=>ue.openNode(O))}let ut={};function jt(C,O){let U=O&&O[0];if(J+=C,U==null)return ce(),0;if(ut.type==="begin"&&O.type==="end"&&ut.index===O.index&&U===""){if(J+=T.slice(O.index,O.index+1),!o){let H=new Error(`0 width match regex (${w})`);throw H.languageName=w,H.badRule=ut.rule,H}return 1}if(ut=O,O.type==="begin")return dr(O);if(O.type==="illegal"&&!N){let H=new Error('Illegal lexeme "'+U+'" for mode "'+(I.scope||"<unnamed>")+'"');throw H.mode=I,H}else if(O.type==="end"){let H=fr(O);if(H!==Ti)return H}if(O.type==="illegal"&&U==="")return J+=`
4
- `,1;if(mr>1e5&&mr>O.index*3)throw new Error("potential infinite loop, way more iterations than matches");return J+=U,U.length}let ge=R(w);if(!ge)throw Ge(i.replace("{}",w)),new Error('Unknown language: "'+w+'"');let K=C0(ge),Be="",I=F||K,Vt={},ue=new u.__emitter(u);pr();let J="",Yt=0,He=0,mr=0,hr=!1;try{if(ge.__emitTokens)ge.__emitTokens(T,ue);else{for(I.matcher.considerAll();;){mr++,hr?hr=!1:I.matcher.considerAll(),I.matcher.lastIndex=He;let C=I.matcher.exec(T);if(!C)break;let O=T.substring(He,C.index),U=jt(O,C);He=C.index+U}jt(T.substring(He))}return ue.finalize(),Be=ue.toHTML(),{language:w,value:Be,relevance:Yt,illegal:!1,_emitter:ue,_top:I}}catch(C){if(C.message&&C.message.includes("Illegal"))return{language:w,value:_r(T),illegal:!0,relevance:0,_illegalBy:{message:C.message,index:He,context:T.slice(He-100,He+100),mode:C.mode,resultSoFar:Be},_emitter:ue};if(o)return{language:w,value:_r(T),illegal:!1,relevance:0,errorRaised:C,_emitter:ue,_top:I};throw C}}function f(w){let T={value:_r(w),illegal:!1,relevance:0,_top:a,_emitter:new u.__emitter(u)};return T._emitter.addText(w),T}function m(w,T){T=T||u.languages||Object.keys(t);let N=f(w),F=T.filter(R).filter(V).map(ce=>d(ce,w,!1));F.unshift(N);let W=F.sort((ce,pe)=>{if(ce.relevance!==pe.relevance)return pe.relevance-ce.relevance;if(ce.language&&pe.language){if(R(ce.language).supersetOf===pe.language)return 1;if(R(pe.language).supersetOf===ce.language)return-1}return 0}),[X,te]=W,be=X;return be.secondBest=te,be}function p(w,T,N){let F=T&&n[T]||N;w.classList.add("hljs"),w.classList.add(`language-${F}`)}function h(w){let T=null,N=c(w);if(s(N))return;if(Z("before:highlightElement",{el:w,language:N}),w.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",w);return}if(w.children.length>0&&(u.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(w)),u.throwUnescapedHTML))throw new kr("One of your code blocks includes unescaped HTML.",w.innerHTML);T=w;let F=T.textContent,W=N?l(F,{language:N,ignoreIllegals:!0}):m(F);w.innerHTML=W.value,w.dataset.highlighted="yes",p(w,N,W.language),w.result={language:W.language,re:W.relevance,relevance:W.relevance},W.secondBest&&(w.secondBest={language:W.secondBest.language,relevance:W.secondBest.relevance}),Z("after:highlightElement",{el:w,result:W,text:F})}function b(w){u=Ni(u,w)}let E=()=>{x(),st("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function g(){x(),st("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let y=!1;function x(){function w(){x()}if(document.readyState==="loading"){y||window.addEventListener("DOMContentLoaded",w,!1),y=!0;return}document.querySelectorAll(u.cssSelector).forEach(h)}function A(w,T){let N=null;try{N=T(e)}catch(F){if(Ge("Language definition for '{}' could not be registered.".replace("{}",w)),o)Ge(F);else throw F;N=a}N.name||(N.name=w),t[w]=N,N.rawDefinition=T.bind(null,e),N.aliases&&L(N.aliases,{languageName:w})}function v(w){delete t[w];for(let T of Object.keys(n))n[T]===w&&delete n[T]}function D(){return Object.keys(t)}function R(w){return w=(w||"").toLowerCase(),t[w]||t[n[w]]}function L(w,{languageName:T}){typeof w=="string"&&(w=[w]),w.forEach(N=>{n[N.toLowerCase()]=T})}function V(w){let T=R(w);return T&&!T.disableAutodetect}function Y(w){w["before:highlightBlock"]&&!w["before:highlightElement"]&&(w["before:highlightElement"]=T=>{w["before:highlightBlock"](Object.assign({block:T.el},T))}),w["after:highlightBlock"]&&!w["after:highlightElement"]&&(w["after:highlightElement"]=T=>{w["after:highlightBlock"](Object.assign({block:T.el},T))})}function ne(w){Y(w),r.push(w)}function re(w){let T=r.indexOf(w);T!==-1&&r.splice(T,1)}function Z(w,T){let N=w;r.forEach(function(F){F[N]&&F[N](T)})}function q(w){return st("10.7.0","highlightBlock will be removed entirely in v12.0"),st("10.7.0","Please use highlightElement now."),h(w)}Object.assign(e,{highlight:l,highlightAuto:m,highlightAll:x,highlightElement:h,highlightBlock:q,configure:b,initHighlighting:E,initHighlightingOnLoad:g,registerLanguage:A,unregisterLanguage:v,listLanguages:D,getLanguage:R,registerAliases:L,autoDetection:V,inherit:Ni,addPlugin:ne,removePlugin:re}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=N0,e.regex={concat:Ze,lookahead:Mi,either:Ar,optional:Zl,anyNumberOfTimes:Gl};for(let w in Jt)typeof Jt[w]=="object"&&Oi(Jt[w]);return Object.assign(e,Jt),e},ct=Wi({});ct.newInstance=()=>Wi({});Hi.exports=ct;ct.HighlightJS=ct;ct.default=ct});var Ki=P((wb,Zi)=>{function O0(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,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(i,{begin:/\(/,end:/\)/}),u=e.inherit(e.APOS_STRING_MODE,{className:"string"}),s=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={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:[o]},{begin:/'/,end:/'/,contains:[o]},{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:[i,s,u,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,a,s,u]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[s]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{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:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}Zi.exports=O0});var Vi=P((kb,ji)=>{function R0(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 o={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i=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"})]}},u={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,o]};o.contains.push(u);let s={match:/\\"/},c={className:"string",begin:/'/,end:/'/},l={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],m=e.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),p={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"],b=["true","false"],E={match:/(\/[a-z._-]+)+/},g=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],y=["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"],A=["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:b,built_in:[...g,...y,"set","shopt",...x,...A]},contains:[m,e.SHEBANG(),p,d,i,a,E,u,s,c,l,n]}}ji.exports=R0});var Xi=P((Ab,Yi)=>{function M0(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",a="("+r+"|"+t.optional(o)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c={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"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={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},d={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(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(o)+e.IDENT_RE,relevance:0},m=t.optional(o)+e.IDENT_RE+"\\s*\\(",b={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"},E=[d,u,n,e.C_BLOCK_COMMENT_MODE,l,c],g={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:E.concat([{begin:/\(/,end:/\)/,keywords:b,contains:E.concat(["self"]),relevance:0}]),relevance:0},y={begin:"("+a+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:b,relevance:0},{begin:m,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,l,u,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,l,u]}]},u,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:b,disableAutodetect:!0,illegal:"</",contains:[].concat(g,y,E,[d,{begin:e.IDENT_RE+"::",keywords:b},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:b}}}Yi.exports=M0});var Qi=P((xb,Ji)=>{function I0(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",a="(?!struct)("+r+"|"+t.optional(o)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={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"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[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={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(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(o)+e.IDENT_RE,relevance:0},m=t.optional(o)+e.IDENT_RE+"\\s*\\(",p=["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"],h=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["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"],E=["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"],x={type:h,keyword:p,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},A={className:"function.dispatch",relevance:0,keywords:{_hint:E},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[A,d,u,n,e.C_BLOCK_COMMENT_MODE,l,c],D={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={className:"function",begin:"("+a+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:x,relevance:0},{begin:m,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,l,u,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,l,u]}]},u,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:x,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(D,R,A,v,[d,{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:x,contains:["self",u]},{begin:e.IDENT_RE+"::",keywords:x},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}Ji.exports=I0});var ta=P((vb,ea)=>{function L0(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"],o=["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"],i=["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:o.concat(i),built_in:t,literal:r},u=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),s={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},l={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},d=e.inherit(l,{illegal:/\n/}),f={className:"subst",begin:/\{/,end:/\}/,keywords:a},m=e.inherit(f,{illegal:/\n/}),p={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,m]},h={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]},b=e.inherit(h,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},m]});f.contains=[h,p,l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,e.C_BLOCK_COMMENT_MODE],m.contains=[b,p,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let E={variants:[c,h,p,l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g={begin:"<",end:">",contains:[{beginKeywords:"in out"},u]},y=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",x={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"}},E,s,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},u,g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,g,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:"("+y+"\\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,g],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[E,s,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},x]}}ea.exports=L0});var ra=P((Sb,na)=>{var F0=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/},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_-]*/}}),B0=["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"],U0=["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"],P0=[...B0,...U0],z0=["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(),q0=["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(),W0=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),H0=["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","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","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 G0(e){let t=e.regex,n=F0(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},o="and or not only",i=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",u=[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:":("+q0.join("|")+")"},{begin:":(:)?("+W0.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+H0.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...u,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...u,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:z0.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...u,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+P0.join("|")+")\\b"}]}}na.exports=G0});var ia=P(($b,oa)=>{function Z0(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},o={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}]},i={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}]},u=/[A-Za-z][A-Za-z0-9+.-]*/,s={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,u,/:\/\/.*?\)/),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}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},l={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),f=e.inherit(l,{contains:[]});c.contains.push(f),l.contains.push(d);let m=[n,s];return[c,l,d,f].forEach(E=>{E.contains=E.contains.concat(m)}),m=m.concat(c,l),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:m},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:m}]}]},n,i,c,l,{className:"quote",begin:"^>\\s+",contains:m,end:"$"},o,r,s,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}oa.exports=Z0});var ua=P((Cb,aa)=>{function K0(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+ +----$/)},{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:/$/}]}}aa.exports=K0});var ca=P((Db,sa)=>{function j0(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]+/),o=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"]},u={className:"doctag",begin:"@[A-Za-z]+"},s={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[u]}),e.COMMENT("^=begin","^=end",{contains:[u],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],l={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"string",contains:[e.BACKSLASH_ESCAPE,l],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,l]})]}]},f="[1-9](_?[0-9])*|0",m="[0-9](_?[0-9])*",p={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${m}))?([eE][+-]?(${m})|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}]},v=[d,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:a},{relevance:0,match:[o,/\.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:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},p,{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,l],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(s,c),relevance:0}].concat(s,c);l.contains=v,h.contains=v;let V=[{begin:/^\s*=>/,starts:{end:"$",contains:v}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:v}}];return c.unshift(s),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(V).concat(c).concat(v)}}sa.exports=j0});var da=P((Nb,la)=>{function V0(e){let i={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:i,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:/-?\.\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:i,illegal:/["']/}]}]}}la.exports=V0});var pa=P((Tb,fa)=>{function Y0(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/]}}fa.exports=Y0});var ha=P((Ob,ma)=>{function X0(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 o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i={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:"'"}]},u={begin:/\[/,end:/\]/,contains:[r,i,o,a,n,"self"],relevance:0},s=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,l=/'[^']*'/,d=t.either(s,c,l),f=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:f,className:"attr",starts:{end:/$/,contains:[r,u,i,o,a,n]}}]}}ma.exports=X0});var Ea=P((Rb,_a)=>{var lt="[0-9](_*[0-9])*",nn=`\\.(${lt})`,rn="[0-9a-fA-F](_*[0-9a-fA-F])*",ba={className:"number",variants:[{begin:`(\\b(${lt})((${nn})|\\.)?|(${nn}))[eE][+-]?(${lt})[fFdD]?\\b`},{begin:`\\b(${lt})((${nn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${nn})[fFdD]?\\b`},{begin:`\\b(${lt})[fFdD]\\b`},{begin:`\\b0[xX]((${rn})\\.?|(${rn})?\\.(${rn}))[pP][+-]?(${lt})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${rn})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function ga(e,t,n){return n===-1?"":e.replace(t,r=>ga(e,t,n-1))}function J0(e){let t=e.regex,n="[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*",r=n+ga("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),s={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"]},c={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},l={className:"params",begin:/\(/,end:/\)/,keywords:s,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:s,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"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:s,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:s,relevance:0,contains:[c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,ba,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},ba,c]}}_a.exports=J0});var va=P((Mb,xa)=>{var ya="[A-Za-z$_][0-9A-Za-z$_]*",Q0=["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"],ed=["true","false","null","undefined","NaN","Infinity"],wa=["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"],ka=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Aa=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],td=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],nd=[].concat(Aa,wa,ka);function rd(e){let t=e.regex,n=(N,{after:F})=>{let W="</"+N[0].slice(1);return N.input.indexOf(W,F)!==-1},r=ya,o={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(N,F)=>{let W=N[0].length+N.index,X=N.input[W];if(X==="<"||X===","){F.ignoreMatch();return}X===">"&&(n(N,{after:W})||F.ignoreMatch());let te,be=N.input.substring(W);if(te=be.match(/^\s*=/)){F.ignoreMatch();return}if((te=be.match(/^\s+extends\s+/))&&te.index===0){F.ignoreMatch();return}}},u={$pattern:ya,keyword:Q0,literal:ed,built_in:nd,"variable.language":td},s="[0-9](_?[0-9])*",c=`\\.(${s})`,l="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${l})((${c})|\\.)?|(${c}))[eE][+-]?(${s})\\b`},{begin:`\\b(${l})\\b((${c})\\b|\\.)?|(${c})\\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},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},m={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},h={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},g={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]},y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,p,h,b,{match:/\$\d+/},d];f.contains=y.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(y)});let x=[].concat(g,f.contains),A=x.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(x)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:A},D={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"}}]},R={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:{_:[...wa,...ka]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},V={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},Y={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ne(N){return t.concat("(?!",N.join("|"),")")}let re={match:t.concat(/\b/,ne([...Aa,"super","import"].map(N=>`${N}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Z={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},q={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},w="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",T={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(w)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,p,h,b,g,{match:/\$\d+/},d,R,{scope:"attr",match:r+t.lookahead(":"),relevance:0},T,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{className:"function",begin:w,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:u,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:i},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},V,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Z,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},re,Y,D,q,{match:/\$[(.]/}]}}xa.exports=rd});var $a=P((Ib,Sa)=>{function od(e){let t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],o={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,o,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}Sa.exports=od});var Da=P((Lb,Ca)=>{var dt="[0-9](_*[0-9])*",on=`\\.(${dt})`,an="[0-9a-fA-F](_*[0-9a-fA-F])*",id={className:"number",variants:[{begin:`(\\b(${dt})((${on})|\\.)?|(${on}))[eE][+-]?(${dt})[fFdD]?\\b`},{begin:`\\b(${dt})((${on})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${on})[fFdD]?\\b`},{begin:`\\b(${dt})[fFdD]\\b`},{begin:`\\b0[xX]((${an})\\.?|(${an})?\\.(${an}))[pP][+-]?(${dt})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${an})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function ad(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+"@"},o={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},i={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[i,o]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,i,o]}]};o.contains.push(a);let u={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},s={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"string"}),"self"]}]},c=id,l=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=d;return f.variants[1].contains=[d],d.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,l,n,r,u,s,{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,l],relevance:0},e.C_LINE_COMMENT_MODE,l,u,s,a,e.C_NUMBER_MODE]},l]},{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},u,s]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
5
- `},c]}}Ca.exports=ad});var Ra=P((Fb,Oa)=>{var ud=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/},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_-]*/}}),sd=["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"],cd=["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"],ld=[...sd,...cd],dd=["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(),Na=["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(),Ta=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),fd=["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","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","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(),pd=Na.concat(Ta).sort().reverse();function md(e){let t=ud(e),n=pd,r="and or not only",o="[\\w-]+",i="("+o+"|@\\{"+o+"\\})",a=[],u=[],s=function(y){return{className:"string",begin:"~?"+y+".*?"+y}},c=function(y,x,A){return{className:y,begin:x,relevance:A}},l={$pattern:/[a-z-]+/,keyword:r,attribute:dd.join(" ")},d={begin:"\\(",end:"\\)",contains:u,keywords:l,relevance:0};u.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s("'"),s('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,c("variable","@@?"+o,10),c("variable","@\\{"+o+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:o+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);let f=u.concat({begin:/\{/,end:/\}/,contains:a}),m={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(u)},p={begin:i+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+fd.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:u}}]},h={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:l,returnEnd:!0,contains:u,relevance:0}},b={className:"variable",variants:[{begin:"@"+o+"\\s*:",relevance:15},{begin:"@"+o}],starts:{end:"[;}]",returnEnd:!0,contains:f}},E={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:i,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m,c("keyword","all\\b"),c("variable","@\\{"+o+"\\}"),{begin:"\\b("+ld.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",i,0),c("selector-id","#"+i),c("selector-class","\\."+i,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Na.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Ta.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},t.FUNCTION_DISPATCH]},g={begin:o+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[E]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,b,g,p,E,m,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}Oa.exports=md});var Ia=P((Bb,Ma)=>{function hd(e){let t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},o=[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 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:o.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:o}].concat(o)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}Ma.exports=hd});var Fa=P((Ub,La)=>{function bd(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]},o={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},i={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,o,i,a]}}La.exports=bd});var Ua=P((Pb,Ba)=>{function gd(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}/,o={$pattern:/[\w.]+/,keyword:n.join(" ")},i={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:o},a={begin:/->\{/,end:/\}/},u={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},s={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[u]},c={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},l=[e.BACKSLASH_ESCAPE,i,s],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(h,b,E="\\1")=>{let g=E==="\\1"?E:t.concat(E,b);return t.concat(t.concat("(?:",h,")"),b,/(?:\\.|[^\\\/])*?/,g,/(?:\\.|[^\\\/])*?/,E,r)},m=(h,b,E)=>t.concat(t.concat("(?:",h,")"),b,/(?:\\.|[^\\\/])*?/,E,r),p=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:l,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}]},c,{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:f("s|tr|y",t.either(...d,{capture:!0}))},{begin:f("s|tr|y","\\(","\\)")},{begin:f("s|tr|y","\\[","\\]")},{begin:f("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:m("(?:m|qr)?",/\//,/\//)},{begin:m("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:m("m|qr",/\(/,/\)/)},{begin:m("m|qr",/\[/,/\]/)},{begin:m("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,u]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,u,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return i.contains=p,a.contains=p,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:p}}Ba.exports=gd});var za=P((zb,Pa)=>{function _d(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_]*/,u={"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"]},s={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:u,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:"("+s.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:s,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}Pa.exports=_d});var Wa=P((qb,qa)=>{function Ed(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),o=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),i=t.concat(/[A-Z]+/,n),a={scope:"variable",match:"\\$+"+r},u={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(s),"on:begin":(Z,q)=>{q.data._beginMatch=Z[1]||Z[2]},"on:end":(Z,q)=>{q.data._beginMatch!==Z[1]&&q.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),m=`[
6
- ]`,p={scope:"string",variants:[l,c,d,f]},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},b=["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"],g=["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:(Z=>{let q=[];return Z.forEach(w=>{q.push(w),w.toLowerCase()===w?q.push(w.toUpperCase()):q.push(w.toLowerCase())}),q})(b),built_in:g},A=Z=>Z.map(q=>q.replace(/\|\d+$/,"")),v={variants:[{match:[/new/,t.concat(m,"+"),t.concat("(?!",A(g).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},D=t.concat(r,"\\b(?!\\()"),R={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),D],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,t.concat(/::/,t.lookahead(/(?!class\b)/)),D],scope:{1:"title.class",3:"variable.constant"}},{match:[o,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},L={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},V={relevance:0,begin:/\(/,end:/\)/,keywords:x,contains:[L,a,R,e.C_BLOCK_COMMENT_MODE,p,h,v]},Y={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",A(E).join("\\b|"),"|",A(g).join("\\b|"),"\\b)"),r,t.concat(m,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[V]};V.contains.push(Y);let ne=[L,R,e.C_BLOCK_COMMENT_MODE,p,h,v],re={begin:t.concat(/#\[\s*\\?/,t.either(o,i)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...ne]},...ne,{scope:"meta",variants:[{match:o},{match:i}]}]};return{case_insensitive:!1,keywords:x,contains:[re,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}]}},u,{scope:"variable.language",match:/\$this\b/},a,Y,R,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},v,{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",re,a,R,e.C_BLOCK_COMMENT_MODE,p,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]},p,h]}}qa.exports=Ed});var Ga=P((Wb,Ha)=>{function yd(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})]}]}}Ha.exports=yd});var Ka=P((Hb,Za)=>{function wd(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}Za.exports=wd});var Va=P((Gb,ja)=>{function kd(e){let t=e.regex,n=/[\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","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],u={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","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","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"]},s={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},l={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s,l,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,l,c]},{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:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,l,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,l,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",m=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,p=`\\b|${r.join("|")}`,h={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${m}))[eE][+-]?(${f})[jJ]?(?=${p})`},{begin:`(${m})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${p})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${p})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`},{begin:`\\b(${f})[jJ](?=${p})`}]},b={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:u,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:u,contains:["self",s,h,d,e.HASH_COMMENT_MODE]}]};return c.contains=[d,h,s],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:u,illegal:/(<\/|\?)|=>/,contains:[s,h,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},d,b,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]}]}}ja.exports=kd});var Xa=P((Zb,Ya)=>{function Ad(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}Ya.exports=Ad});var Qa=P((Kb,Ja)=>{function xd(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]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,i=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:[o,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[i,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:i},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}Ja.exports=xd});var tu=P((jb,eu)=>{function vd(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),o=t.concat(n,e.IDENT_RE),i={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,t.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",u=["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","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],s=["true","false","Some","None","Ok","Err"],c=["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!"],l=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:l,keyword:u,literal:s,built_in:c},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"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})/}]}]},{className:"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:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:c,type:l}},{className:"punctuation",begin:"->"},i]}}eu.exports=vd});var ru=P((Vb,nu)=>{var Sd=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/},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_-]*/}}),$d=["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"],Cd=["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"],Dd=[...$d,...Cd],Nd=["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(),Td=["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(),Od=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Rd=["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","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","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 Md(e){let t=Sd(e),n=Od,r=Td,o="@[a-z-]+",i="and or not only",u={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("+Dd.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},u,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Rd.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,u,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:o,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Nd.join(" ")},contains:[{begin:o,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},u,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}nu.exports=Md});var iu=P((Yb,ou)=>{function Id(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}ou.exports=Id});var uu=P((Xb,au)=>{function Ld(e){let t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},o={begin:/"/,end:/"/,contains:[{match:/""/}]},i=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],u=["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"],s=["add","asc","collation","desc","final","first","last","view"],c=["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"],l=["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"],f=["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"],m=l,p=[...c,...s].filter(A=>!l.includes(A)),h={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},b={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},E={match:t.concat(/\b/,t.either(...m),/\s*\(/),relevance:0,keywords:{built_in:m}};function g(A){return t.concat(/\b/,t.either(...A.map(v=>v.replace(/\s+/,"\\s+"))),/\b/)}let y={scope:"keyword",match:g(f),relevance:0};function x(A,{exceptions:v,when:D}={}){let R=D;return v=v||[],A.map(L=>L.match(/\|\d+$/)||v.includes(L)?L:R(L)?`${L}|0`:L)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(p,{when:A=>A.length<3}),literal:i,type:u,built_in:d},contains:[{scope:"type",match:g(a)},y,E,h,r,o,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,b]}}au.exports=Ld});var bu=P((Jb,hu)=>{function du(e){return e?typeof e=="string"?e:e.source:null}function Ot(e){return j("(?=",e,")")}function j(...e){return e.map(n=>du(n)).join("")}function Fd(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function le(...e){return"("+(Fd(e).capture?"":"?:")+e.map(r=>du(r)).join("|")+")"}var Cr=e=>j(/\b/,e,/\w$/.test(e)?/\b/:/\B/),Bd=["Protocol","Type"].map(Cr),su=["init","self"].map(Cr),Ud=["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"],cu=["false","nil","true"],Pd=["assignment","associativity","higherThan","left","lowerThan","none","right"],zd=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],lu=["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"],fu=le(/[/=\-+!*%<>&|^~?]/,/[\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]/),pu=le(fu,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),$r=j(fu,pu,"*"),mu=le(/[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]/),sn=le(mu,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),xe=j(mu,sn,"*"),un=j(/[A-Z]/,sn,"*"),qd=["attached","autoclosure",j(/convention\(/,le("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",j(/objc\(/,xe,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Wd=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Hd(e){let t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],o={match:[/\./,le(...Bd,...su)],className:{2:"keyword"}},i={match:j(/\./,le(...Sr)),relevance:0},a=Sr.filter(K=>typeof K=="string").concat(["_|0"]),u=Sr.filter(K=>typeof K!="string").concat(Ud).map(Cr),s={variants:[{className:"keyword",match:le(...u,...su)}]},c={$pattern:le(/\b\w+/,/#\w+/),keyword:a.concat(zd),literal:cu},l=[o,i,s],d={match:j(/\./,le(...lu)),relevance:0},f={className:"built_in",match:j(/\b/,le(...lu),/(?=\()/)},m=[d,f],p={match:/->/,relevance:0},h={className:"operator",relevance:0,variants:[{match:$r},{match:`\\.(\\.|${pu})+`}]},b=[p,h],E="([0-9]_*)+",g="([0-9a-fA-F]_*)+",y={className:"number",relevance:0,variants:[{match:`\\b(${E})(\\.(${E}))?([eE][+-]?(${E}))?\\b`},{match:`\\b0x(${g})(\\.(${g}))?([pP][+-]?(${E}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},x=(K="")=>({className:"subst",variants:[{match:j(/\\/,K,/[0\\tnr"']/)},{match:j(/\\/,K,/u\{[0-9a-fA-F]{1,8}\}/)}]}),A=(K="")=>({className:"subst",match:j(/\\/,K,/[\t ]*(?:[\r\n]|\r\n)/)}),v=(K="")=>({className:"subst",label:"interpol",begin:j(/\\/,K,/\(/),end:/\)/}),D=(K="")=>({begin:j(K,/"""/),end:j(/"""/,K),contains:[x(K),A(K),v(K)]}),R=(K="")=>({begin:j(K,/"/),end:j(/"/,K),contains:[x(K),v(K)]}),L={className:"string",variants:[D(),D("#"),D("##"),D("###"),R(),R("#"),R("##"),R("###")]},V=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],Y={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:V},ne=K=>{let Be=j(K,/\//),I=j(/\//,K);return{begin:Be,end:I,contains:[...V,{scope:"comment",begin:`#(?!.*${I})`,end:/$/}]}},re={scope:"regexp",variants:[ne("###"),ne("##"),ne("#"),Y]},Z={match:j(/`/,xe,/`/)},q={className:"variable",match:/\$\d+/},w={className:"variable",match:`\\$${sn}+`},T=[Z,q,w],N={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Wd,contains:[...b,y,L]}]}},F={scope:"keyword",match:j(/@/,le(...qd),Ot(le(/\(/,/\s+/)))},W={scope:"meta",match:j(/@/,xe)},X=[N,F,W],te={match:Ot(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:j(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,sn,"+")},{className:"type",match:un,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:j(/\s+&\s+/,Ot(un)),relevance:0}]},be={begin:/</,end:/>/,keywords:c,contains:[...r,...l,...X,p,te]};te.contains.push(be);let ce={match:j(xe,/\s*:/),keywords:"_|0",relevance:0},pe={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",ce,...r,re,...l,...m,...b,y,L,...T,...X,te]},at={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,te]},Kt={begin:le(Ot(j(xe,/\s*:/)),Ot(j(xe,/\s+/,xe,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:xe}]},Dt={begin:/\(/,end:/\)/,keywords:c,contains:[Kt,...r,...l,...b,y,L,...X,te,pe],endsParent:!0,illegal:/["']/},lr={match:[/(func|macro)/,/\s+/,le(Z.match,xe,$r)],className:{1:"keyword",3:"title.function"},contains:[at,Dt,t],illegal:[/\[/,/%/]},dr={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[at,Dt,t],illegal:/\[|%/},fr={match:[/operator/,/\s+/,$r],className:{1:"keyword",3:"title"}},pr={begin:[/precedencegroup/,/\s+/,un],className:{1:"keyword",3:"title"},contains:[te],keywords:[...Pd,...cu],end:/}/},ut={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},jt={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},ge={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,xe,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:c,contains:[at,...l,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:"title.class.inherited",match:un},...l],relevance:0}]};for(let K of L.variants){let Be=K.contains.find(Vt=>Vt.label==="interpol");Be.keywords=c;let I=[...l,...m,...b,y,L,...T];Be.contains=[...I,{begin:/\(/,end:/\)/,contains:["self",...I]}]}return{name:"Swift",keywords:c,contains:[...r,lr,dr,ut,jt,ge,fr,pr,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},re,...l,...m,...b,y,L,...T,...X,te,pe]}}hu.exports=Hd});var _u=P((Qb,gu)=>{function Gd(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]|$)/}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={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,o]},u=e.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),f={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"},m={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},p={begin:/\{/,end:/\}/,contains:[m],illegal:"\\n",relevance:0},h={begin:"\\[",end:"\\]",contains:[m],illegal:"\\n",relevance:0},b=[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}},f,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},p,h,i,a],E=[...b];return E.pop(),E.push(u),m.contains=E,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}gu.exports=Gd});var $u=P((eg,Su)=>{var cn="[A-Za-z$_][0-9A-Za-z$_]*",Eu=["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"],yu=["true","false","null","undefined","NaN","Infinity"],wu=["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"],ku=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Au=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],xu=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],vu=[].concat(Au,wu,ku);function Zd(e){let t=e.regex,n=(N,{after:F})=>{let W="</"+N[0].slice(1);return N.input.indexOf(W,F)!==-1},r=cn,o={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(N,F)=>{let W=N[0].length+N.index,X=N.input[W];if(X==="<"||X===","){F.ignoreMatch();return}X===">"&&(n(N,{after:W})||F.ignoreMatch());let te,be=N.input.substring(W);if(te=be.match(/^\s*=/)){F.ignoreMatch();return}if((te=be.match(/^\s+extends\s+/))&&te.index===0){F.ignoreMatch();return}}},u={$pattern:cn,keyword:Eu,literal:yu,built_in:vu,"variable.language":xu},s="[0-9](_?[0-9])*",c=`\\.(${s})`,l="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${l})((${c})|\\.)?|(${c}))[eE][+-]?(${s})\\b`},{begin:`\\b(${l})\\b((${c})\\b|\\.)?|(${c})\\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},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},m={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},h={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},g={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]},y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,p,h,b,{match:/\$\d+/},d];f.contains=y.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(y)});let x=[].concat(g,f.contains),A=x.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(x)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:A},D={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"}}]},R={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:{_:[...wu,...ku]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},V={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},Y={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ne(N){return t.concat("(?!",N.join("|"),")")}let re={match:t.concat(/\b/,ne([...Au,"super","import"].map(N=>`${N}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Z={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},q={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},w="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",T={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(w)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,p,h,b,g,{match:/\$\d+/},d,R,{scope:"attr",match:r+t.lookahead(":"),relevance:0},T,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{className:"function",begin:w,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:u,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:i},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},V,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Z,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},re,Y,D,q,{match:/\$[(.]/}]}}function Kd(e){let t=e.regex,n=Zd(e),r=cn,o=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:o},contains:[n.exports.CLASS_REFERENCE]},u={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:cn,keyword:Eu.concat(s),literal:yu,built_in:vu.concat(o),"variable.language":xu},l={className:"meta",begin:"@"+r},d=(h,b,E)=>{let g=h.contains.findIndex(y=>y.label===b);if(g===-1)throw new Error("can not find mode to replace");h.contains.splice(g,1,E)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(l);let f=n.contains.find(h=>h.scope==="attr"),m=Object.assign({},f,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,f,m]),n.contains=n.contains.concat([l,i,a,m]),d(n,"shebang",e.SHEBANG()),d(n,"use_strict",u);let p=n.contains.find(h=>h.label==="func.def");return p.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}Su.exports=Kd});var Du=P((tg,Cu)=>{function jd(e){let t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o=/\d{1,2}\/\d{1,2}\/\d{4}/,i=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,u=/\d{1,2}(:\d{1,2}){1,2}/,s={className:"literal",variants:[{begin:t.concat(/# */,t.either(i,o),/ *#/)},{begin:t.concat(/# */,u,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(i,o),/ +/,t.either(a,u),/ *#/)}]},c={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])|[%&])?/}]},l={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=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,s,c,l,d,f,{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:[f]}]}}Cu.exports=jd});var Tu=P((ng,Nu)=>{function Vd(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"],o={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},i={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},u={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/},s={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={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"}},i,a,o,e.QUOTE_STRING_MODE,s,c,u]}}Nu.exports=Vd});var Ru=P((rg,Ou)=>{var B=Gi();B.registerLanguage("xml",Ki());B.registerLanguage("bash",Vi());B.registerLanguage("c",Xi());B.registerLanguage("cpp",Qi());B.registerLanguage("csharp",ta());B.registerLanguage("css",ra());B.registerLanguage("markdown",ia());B.registerLanguage("diff",ua());B.registerLanguage("ruby",ca());B.registerLanguage("go",da());B.registerLanguage("graphql",pa());B.registerLanguage("ini",ha());B.registerLanguage("java",Ea());B.registerLanguage("javascript",va());B.registerLanguage("json",$a());B.registerLanguage("kotlin",Da());B.registerLanguage("less",Ra());B.registerLanguage("lua",Ia());B.registerLanguage("makefile",Fa());B.registerLanguage("perl",Ua());B.registerLanguage("objectivec",za());B.registerLanguage("php",Wa());B.registerLanguage("php-template",Ga());B.registerLanguage("plaintext",Ka());B.registerLanguage("python",Va());B.registerLanguage("python-repl",Xa());B.registerLanguage("r",Qa());B.registerLanguage("rust",tu());B.registerLanguage("scss",ru());B.registerLanguage("shell",iu());B.registerLanguage("sql",uu());B.registerLanguage("swift",bu());B.registerLanguage("yaml",_u());B.registerLanguage("typescript",$u());B.registerLanguage("vbnet",Du());B.registerLanguage("wasm",Tu());B.HighlightJS=B;B.default=B;Ou.exports=B});function Ai(e){let t=e.startsWith("/"),n=e.length>1&&e.endsWith("/"),r=[];for(let i of e.split("/"))i===""||i==="."||(i===".."?r.length&&r[r.length-1]!==".."?r.pop():t||r.push(".."):r.push(i));let o=r.join("/");return t?o=`/${o}`:o===""&&(o="."),n&&!o.endsWith("/")&&(o+="/"),o}function Ll(...e){let t=e.filter(n=>typeof n=="string"&&n.length>0).join("/");return t===""?".":Ai(t)}function gr(...e){let t="",n=!1;for(let o=e.length-1;o>=0&&!n;o--){let i=e[o];typeof i!="string"||i.length===0||(t=`${i}/${t}`,n=i.startsWith("/"))}n||(t=`/${t}`);let r=Ai(t);return r.length>1&&r.endsWith("/")?r.slice(0,-1):r}function Fl(e){if(e.length===0)return".";let t=e.endsWith("/")&&e.length>1?e.slice(0,-1):e,n=t.lastIndexOf("/");return n===-1?".":n===0?"/":t.slice(0,n)}function xi(e,t){let n=e.endsWith("/")&&e.length>1?e.slice(0,-1):e,r=n.slice(n.lastIndexOf("/")+1);return t&&r!==t&&r.endsWith(t)?r.slice(0,-t.length):r}function Bl(e){let t=xi(e),n=t.lastIndexOf(".");return n<=0?"":t.slice(n)}function Ul(e,t){let n=gr(e).split("/").filter(Boolean),r=gr(t).split("/").filter(Boolean),o=0;for(;o<n.length&&o<r.length&&n[o]===r[o];)o++;return[...n.slice(o).map(()=>".."),...r.slice(o)].join("/")}var M={sep:"/",join:Ll,resolve:gr,dirname:Fl,basename:xi,extname:Bl,relative:Ul};var Pl="site/pages",zl="site/_",ql="dist";function vi(e=process.cwd()){return{cwd:e,routesRoot:M.join(e,Pl),shelfRoot:M.join(e,zl),distRoot:M.join(e,ql)}}var Mu=Il(Ru(),1);var Dr=Mu.default;var Iu="hljs";function Nr(e,t){if(!t||!Dr.getLanguage(t))return"";let{value:n}=Dr.highlight(e,{language:t,ignoreIllegals:!0});return`<span class="${Iu}">${n}</span>`}function Tr(e){return e.includes(`class="${Iu}"`)}function ft(e){return e.includes("\r")?e.replace(/\r\n?/g,`
7
- `):e}var Lu=[".md",".wd"],Ke=Object.assign(Object.create(null),{$index:"index",$number:"number",$first:"first",$last:"last",$count:"count"});function Fu(e){return{reader:e,imageVariants:null,assets:{skins:new Set,scripts:new Set,files:new Map,runtime:!1,behaviors:new Set,hasCode:!1,scopedSkins:new Set,embedHosts:new Set},state:new Map,stores:new Set,fetchKeys:new Set,warnings:[],sectionCounter:0,headingSlugs:new Map,collections:new Map,pagination:null,deps:new Set,collectionsUsed:new Set,symbols:[]}}function Q(e,t,n){let r={...n,file:e.file,line:$(e,t)};return e.comp.symbols.push(r),r}function ln(e,t,n){let r=e.comp.symbols[t];r&&(r.endLine=$(e,n))}function Bu(e,t,n){e.comp.symbols.push({kind:"read",name:t,detail:n,file:e.file,line:null})}function Te(e,t={}){return{parent:e,vars:{...t}}}function S(e,t){return`${e.file}:${$(e,t)}`}function $(e,t){return t+1+(e.bodyLine??0)+(e.lineOffset??0)}function _(e,t){let n=new Error(`[${t.code}] ${e}`);return n.wd=t,n}function fe(e,t){return{...e,lineOffset:(e.lineOffset??0)+t}}function we(e,t){let n=e;for(;n;n=n.parent)if(Object.hasOwn(n.vars,t))return{found:!0,value:n.vars[t]};return{found:!1}}function dn(e,t){let n=e.split("."),r=we(t.scope,n[0]);return r.found?{found:!0,value:oe(r.value,n.slice(1))}:{found:!1}}function oe(e,t){let n=e;for(let r of t){if(n==null||["constructor","prototype","__proto__"].includes(r))return;n=n[r]}return n}function Rt(e,t,n){let r=e.split(".");if(r.some(o=>["constructor","prototype","__proto__"].includes(o)))throw _(`Path segment in "${e}" is not allowed in ${t.file}. Use: ${n}`,{code:"WD002",file:t.file,hint:n});return r}function G(e,t){for(let n=t.sections.length-1;n>=0;n--){let r=`${t.sections[n]}:${e}`;if(t.comp.state.has(r))return r}return t.comp.state.has(e)?e:null}function Or(e,t,n){if(e==null)return"";if(Array.isArray(e))return e.join(", ");if(typeof e=="object")throw _(`Cannot interpolate the object value "{ ${t} }" in ${n.file}. Interpolate a field instead \u2014 e.g. { ${t}.title } \u2014 or iterate it with @loop ${t} into item.`,{code:"WD003",file:n.file});return String(e)}function Uu(e,t,n){return Array.isArray(e)?String(e):Or(e,t,n)}function de(e){return JSON.stringify(e).replaceAll("<","\\u003c")}function pt(e,t){let n=e.trim();if(/^["'].*["']$/.test(n))return ee(n);if(n==="true")return!0;if(n==="false")return!1;if(n==="null")return null;if(/^-?\d+(?:\.\d+)?$/.test(n))return Number(n);try{return JSON.parse(n)}catch{if(/^[[{]/.test(n)){let r=n[0],o=r==="["?"]":"}",i=n.length>60?`${n.slice(0,57)}\u2026`:n;throw _(`Unbalanced JSON value "${i}"${t?` in ${t}`:""}: this opens "${r}" but never closes it. :state/:store/:theme accept a multi-line array/object, but the literal must balance (a "${o}" is missing) with no blank lines inside it. A persist/ephemeral token goes AFTER the closing "${o}" on the last line, not on the declaration line. Quote it for literal bracket text (e.g. = "[draft]").`,{code:"WD004"})}return n}}function Pu(e){let t=e.trim();return/^["']/.test(t)?ee(t):t==="true"?!0:t==="false"?!1:/^-?\d+(?:\.\d+)?$/.test(t)?Number(t):t}function ee(e){return e?.replace(/^["']|["']$/g,"")??""}function je(e){let t=e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[-_]+/g," ").trim().toLowerCase();return t?t.charAt(0).toUpperCase()+t.slice(1):e}function mt(e){return/^(javascript|data|vbscript):/i.test(String(e).replace(/[\u0000-\u0020\u007F]+/g,""))}function k(e){return String(e).replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function Mt(e){return String(e).replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&quot;",'"').replaceAll("&#39;","'").replaceAll("&amp;","&")}function Yd(e){let t=2166136261;return{update(n){let r=String(n);for(let o=0;o<r.length;o++)t^=r.charCodeAt(o),t=Math.imul(t,16777619)>>>0;return this},digest(){return(t>>>0).toString(16).padStart(8,"0")}}}var zu={createHash:Yd};function qu(e){let t=e.replaceAll("\\","/");return`wd-${zu.createHash("sha256").update(t).digest("hex").slice(0,4)}`}function It(e,t,n){let r=M.relative(t,e).replaceAll(M.sep,"/"),o=qu(r),i=n.readText(e).replace(/\/\*[\s\S]*?\*\//g,"");for(let a of i.split(`
2
+ var Dl=Object.create;var br=Object.defineProperty;var Nl=Object.getOwnPropertyDescriptor;var Tl=Object.getOwnPropertyNames;var Ol=Object.getPrototypeOf,Rl=Object.prototype.hasOwnProperty;var P=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},Xt=(e,t)=>{for(var n in t)br(e,n,{get:t[n],enumerable:!0})},Ml=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Tl(t))!Rl.call(e,o)&&o!==n&&br(e,o,{get:()=>t[o],enumerable:!(r=Nl(t,o))||r.enumerable});return e};var Il=(e,t,n)=>(n=e!=null?Dl(Ol(e)):{},Ml(t||!e||!e.__esModule?br(n,"default",{value:e,enumerable:!0}):n,e));var Gi=P((yb,Hi)=>{function Oi(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)&&Oi(n)}),e}var Qt=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Ri(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Ue(e,...t){let n=Object.create(null);for(let r in e)n[r]=e[r];return t.forEach(function(r){for(let o in r)n[o]=r[o]}),n}var Wl="</span>",Si=e=>!!e.scope,Hl=(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,o)=>`${r}${"_".repeat(o+1)}`)].join(" ")}return`${t}${e}`},Er=class{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=Ri(t)}openNode(t){if(!Si(t))return;let n=Hl(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){Si(t)&&(this.buffer+=Wl)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}},$i=(e={})=>{let t={children:[]};return Object.assign(t,e),t},yr=class e{constructor(){this.rootNode=$i(),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=$i({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)}))}},wr=class extends yr{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 Nt(e){return e?typeof e=="string"?e:e.source:null}function Mi(e){return Ze("(?=",e,")")}function Gl(e){return Ze("(?:",e,")*")}function Zl(e){return Ze("(?:",e,")?")}function Ze(...e){return e.map(n=>Nt(n)).join("")}function Kl(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Ar(...e){return"("+(Kl(e).capture?"":"?:")+e.map(r=>Nt(r)).join("|")+")"}function Ii(e){return new RegExp(e.toString()+"|").exec("").length-1}function jl(e,t){let n=e&&e.exec(t);return n&&n.index===0}var Vl=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function xr(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;let o=n,i=Nt(r),a="";for(;i.length>0;){let u=Vl.exec(i);if(!u){a+=i;break}a+=i.substring(0,u.index),i=i.substring(u.index+u[0].length),u[0][0]==="\\"&&u[1]?a+="\\"+String(Number(u[1])+o):(a+=u[0],u[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}var Yl=/\b\B/,Li="[a-zA-Z]\\w*",vr="[a-zA-Z_]\\w*",Fi="\\b\\d+(\\.\\d+)?",Bi="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ui="\\b(0b[01]+)",Xl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Jl=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=Ze(t,/.*\b/,e.binary,/\b.*/)),Ue({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},Tt={begin:"\\\\[\\s\\S]",relevance:0},Ql={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Tt]},e0={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Tt]},t0={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/},tn=function(e,t,n={}){let r=Ue({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 o=Ar("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:Ze(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},n0=tn("//","$"),r0=tn("/\\*","\\*/"),o0=tn("#","$"),i0={scope:"number",begin:Fi,relevance:0},a0={scope:"number",begin:Bi,relevance:0},u0={scope:"number",begin:Ui,relevance:0},s0={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Tt,{begin:/\[/,end:/\]/,relevance:0,contains:[Tt]}]},c0={scope:"title",begin:Li,relevance:0},l0={scope:"title",begin:vr,relevance:0},d0={begin:"\\.\\s*"+vr,relevance:0},f0=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:Ql,BACKSLASH_ESCAPE:Tt,BINARY_NUMBER_MODE:u0,BINARY_NUMBER_RE:Ui,COMMENT:tn,C_BLOCK_COMMENT_MODE:r0,C_LINE_COMMENT_MODE:n0,C_NUMBER_MODE:a0,C_NUMBER_RE:Bi,END_SAME_AS_BEGIN:f0,HASH_COMMENT_MODE:o0,IDENT_RE:Li,MATCH_NOTHING_RE:Yl,METHOD_GUARD:d0,NUMBER_MODE:i0,NUMBER_RE:Fi,PHRASAL_WORDS_MODE:t0,QUOTE_STRING_MODE:e0,REGEXP_MODE:s0,RE_STARTERS_RE:Xl,SHEBANG:Jl,TITLE_MODE:c0,UNDERSCORE_IDENT_RE:vr,UNDERSCORE_TITLE_MODE:l0});function p0(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function m0(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function h0(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=p0,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function b0(e,t){Array.isArray(e.illegal)&&(e.illegal=Ar(...e.illegal))}function g0(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 _0(e,t){e.relevance===void 0&&(e.relevance=1)}var E0=(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=Ze(n.beforeMatch,Mi(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},y0=["of","and","for","in","not","or","if","then","parent","list","value"],w0="keyword";function Pi(e,t,n=w0){let r=Object.create(null);return typeof e=="string"?o(n,e.split(" ")):Array.isArray(e)?o(n,e):Object.keys(e).forEach(function(i){Object.assign(r,Pi(e[i],t,i))}),r;function o(i,a){t&&(a=a.map(u=>u.toLowerCase())),a.forEach(function(u){let s=u.split("|");r[s[0]]=[i,k0(s[0],s[1])]})}}function k0(e,t){return t?Number(t):A0(e)?0:1}function A0(e){return y0.includes(e.toLowerCase())}var Ci={},Ge=e=>{console.error(e)},Di=(e,...t)=>{console.log(`WARN: ${e}`,...t)},st=(e,t)=>{Ci[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Ci[`${e}/${t}`]=!0)},en=new Error;function zi(e,t,{key:n}){let r=0,o=e[n],i={},a={};for(let u=1;u<=t.length;u++)a[u+r]=o[u],i[u+r]=!0,r+=Ii(t[u-1]);e[n]=a,e[n]._emit=i,e[n]._multi=!0}function x0(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Ge("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),en;if(typeof e.beginScope!="object"||e.beginScope===null)throw Ge("beginScope must be object"),en;zi(e,e.begin,{key:"beginScope"}),e.begin=xr(e.begin,{joinWith:""})}}function v0(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Ge("skip, excludeEnd, returnEnd not compatible with endScope: {}"),en;if(typeof e.endScope!="object"||e.endScope===null)throw Ge("endScope must be object"),en;zi(e,e.end,{key:"endScope"}),e.end=xr(e.end,{joinWith:""})}}function S0(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function $0(e){S0(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),x0(e),v0(e)}function C0(e){function t(a,u){return new RegExp(Nt(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(u?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(u,s){s.position=this.position++,this.matchIndexes[this.matchAt]=s,this.regexes.push([s,u]),this.matchAt+=Ii(u)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let u=this.regexes.map(s=>s[1]);this.matcherRe=t(xr(u,{joinWith:"|"}),!0),this.lastIndex=0}exec(u){this.matcherRe.lastIndex=this.lastIndex;let s=this.matcherRe.exec(u);if(!s)return null;let c=s.findIndex((d,f)=>f>0&&d!==void 0),l=this.matchIndexes[c];return s.splice(0,c),Object.assign(s,l)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(u){if(this.multiRegexes[u])return this.multiRegexes[u];let s=new n;return this.rules.slice(u).forEach(([c,l])=>s.addRule(c,l)),s.compile(),this.multiRegexes[u]=s,s}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(u,s){this.rules.push([u,s]),s.type==="begin"&&this.count++}exec(u){let s=this.getMatcher(this.regexIndex);s.lastIndex=this.lastIndex;let c=s.exec(u);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){let l=this.getMatcher(0);l.lastIndex=this.lastIndex+1,c=l.exec(u)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function o(a){let u=new r;return a.contains.forEach(s=>u.addRule(s.begin,{rule:s,type:"begin"})),a.terminatorEnd&&u.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&u.addRule(a.illegal,{type:"illegal"}),u}function i(a,u){let s=a;if(a.isCompiled)return s;[m0,g0,$0,E0].forEach(l=>l(a,u)),e.compilerExtensions.forEach(l=>l(a,u)),a.__beforeBegin=null,[h0,b0,_0].forEach(l=>l(a,u)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=Pi(a.keywords,e.case_insensitive)),s.keywordPatternRe=t(c,!0),u&&(a.begin||(a.begin=/\B|\b/),s.beginRe=t(s.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(s.endRe=t(s.end)),s.terminatorEnd=Nt(s.end)||"",a.endsWithParent&&u.terminatorEnd&&(s.terminatorEnd+=(a.end?"|":"")+u.terminatorEnd)),a.illegal&&(s.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(l){return D0(l==="self"?a:l)})),a.contains.forEach(function(l){i(l,s)}),a.starts&&i(a.starts,u),s.matcher=o(s),s}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=Ue(e.classNameAliases||{}),i(e)}function qi(e){return e?e.endsWithParent||qi(e.starts):!1}function D0(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Ue(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:qi(e)?Ue(e,{starts:e.starts?Ue(e.starts):null}):Object.isFrozen(e)?Ue(e):e}var N0="11.11.1",kr=class extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}},_r=Ri,Ni=Ue,Ti=Symbol("nomatch"),T0=7,Wi=function(e){let t=Object.create(null),n=Object.create(null),r=[],o=!0,i="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]},u={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:wr};function s(k){return u.noHighlightRe.test(k)}function c(k){let C=k.className+" ";C+=k.parentNode?k.parentNode.className:"";let T=u.languageDetectRe.exec(C);if(T){let L=R(T[1]);return L||(Di(i.replace("{}",T[1])),Di("Falling back to no-highlight mode for this block.",k)),L?T[1]:"no-highlight"}return C.split(/\s+/).find(L=>s(L)||R(L))}function l(k,C,T){let L="",W="";typeof C=="object"?(L=k,T=C.ignoreIllegals,W=C.language):(st("10.7.0","highlight(lang, code, ...args) has been deprecated."),st("10.7.0",`Please use highlight(code, options) instead.
3
+ https://github.com/highlightjs/highlight.js/issues/2277`),W=k,L=C),T===void 0&&(T=!0);let Y={code:L,language:W};K("before:highlight",Y);let te=Y.result?Y.result:d(Y.language,Y.code,T);return te.code=Y.code,K("after:highlight",te),te}function d(k,C,T,L){let W=Object.create(null);function Y(D,O){return D.keywords[O]}function te(){if(!I.keywords){ue.addText(X);return}let D=0;I.keywordPatternRe.lastIndex=0;let O=I.keywordPatternRe.exec(X),U="";for(;O;){U+=X.substring(D,O.index);let G=ge.case_insensitive?O[0].toLowerCase():O[0],se=Y(I,G);if(se){let[Ne,$l]=se;if(ue.addText(U),U="",W[G]=(W[G]||0)+1,W[G]<=T0&&(Yt+=$l),Ne.startsWith("_"))U+=O[0];else{let Cl=ge.classNameAliases[Ne]||Ne;pe(O[0],Cl)}}else U+=O[0];D=I.keywordPatternRe.lastIndex,O=I.keywordPatternRe.exec(X)}U+=X.substring(D),ue.addText(U)}function be(){if(X==="")return;let D=null;if(typeof I.subLanguage=="string"){if(!t[I.subLanguage]){ue.addText(X);return}D=d(I.subLanguage,X,!0,Vt[I.subLanguage]),Vt[I.subLanguage]=D._top}else D=m(X,I.subLanguage.length?I.subLanguage:null);I.relevance>0&&(Yt+=D.relevance),ue.__addSublanguage(D._emitter,D.language)}function ce(){I.subLanguage!=null?be():te(),X=""}function pe(D,O){D!==""&&(ue.startScope(O),ue.addText(D),ue.endScope())}function at(D,O){let U=1,G=O.length-1;for(;U<=G;){if(!D._emit[U]){U++;continue}let se=ge.classNameAliases[D[U]]||D[U],Ne=O[U];se?pe(Ne,se):(X=Ne,te(),X=""),U++}}function Kt(D,O){return D.scope&&typeof D.scope=="string"&&ue.openNode(ge.classNameAliases[D.scope]||D.scope),D.beginScope&&(D.beginScope._wrap?(pe(X,ge.classNameAliases[D.beginScope._wrap]||D.beginScope._wrap),X=""):D.beginScope._multi&&(at(D.beginScope,O),X="")),I=Object.create(D,{parent:{value:I}}),I}function Dt(D,O,U){let G=jl(D.endRe,U);if(G){if(D["on:end"]){let se=new Qt(D);D["on:end"](O,se),se.isMatchIgnored&&(G=!1)}if(G){for(;D.endsParent&&D.parent;)D=D.parent;return D}}if(D.endsWithParent)return Dt(D.parent,O,U)}function lr(D){return I.matcher.regexIndex===0?(X+=D[0],1):(hr=!0,0)}function dr(D){let O=D[0],U=D.rule,G=new Qt(U),se=[U.__beforeBegin,U["on:begin"]];for(let Ne of se)if(Ne&&(Ne(D,G),G.isMatchIgnored))return lr(O);return U.skip?X+=O:(U.excludeBegin&&(X+=O),ce(),!U.returnBegin&&!U.excludeBegin&&(X=O)),Kt(U,D),U.returnBegin?0:O.length}function fr(D){let O=D[0],U=C.substring(D.index),G=Dt(I,D,U);if(!G)return Ti;let se=I;I.endScope&&I.endScope._wrap?(ce(),pe(O,I.endScope._wrap)):I.endScope&&I.endScope._multi?(ce(),at(I.endScope,D)):se.skip?X+=O:(se.returnEnd||se.excludeEnd||(X+=O),ce(),se.excludeEnd&&(X=O));do I.scope&&ue.closeNode(),!I.skip&&!I.subLanguage&&(Yt+=I.relevance),I=I.parent;while(I!==G.parent);return G.starts&&Kt(G.starts,D),se.returnEnd?0:O.length}function pr(){let D=[];for(let O=I;O!==ge;O=O.parent)O.scope&&D.unshift(O.scope);D.forEach(O=>ue.openNode(O))}let ut={};function jt(D,O){let U=O&&O[0];if(X+=D,U==null)return ce(),0;if(ut.type==="begin"&&O.type==="end"&&ut.index===O.index&&U===""){if(X+=C.slice(O.index,O.index+1),!o){let G=new Error(`0 width match regex (${k})`);throw G.languageName=k,G.badRule=ut.rule,G}return 1}if(ut=O,O.type==="begin")return dr(O);if(O.type==="illegal"&&!T){let G=new Error('Illegal lexeme "'+U+'" for mode "'+(I.scope||"<unnamed>")+'"');throw G.mode=I,G}else if(O.type==="end"){let G=fr(O);if(G!==Ti)return G}if(O.type==="illegal"&&U==="")return X+=`
4
+ `,1;if(mr>1e5&&mr>O.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=U,U.length}let ge=R(k);if(!ge)throw Ge(i.replace("{}",k)),new Error('Unknown language: "'+k+'"');let j=C0(ge),Be="",I=L||j,Vt={},ue=new u.__emitter(u);pr();let X="",Yt=0,He=0,mr=0,hr=!1;try{if(ge.__emitTokens)ge.__emitTokens(C,ue);else{for(I.matcher.considerAll();;){mr++,hr?hr=!1:I.matcher.considerAll(),I.matcher.lastIndex=He;let D=I.matcher.exec(C);if(!D)break;let O=C.substring(He,D.index),U=jt(O,D);He=D.index+U}jt(C.substring(He))}return ue.finalize(),Be=ue.toHTML(),{language:k,value:Be,relevance:Yt,illegal:!1,_emitter:ue,_top:I}}catch(D){if(D.message&&D.message.includes("Illegal"))return{language:k,value:_r(C),illegal:!0,relevance:0,_illegalBy:{message:D.message,index:He,context:C.slice(He-100,He+100),mode:D.mode,resultSoFar:Be},_emitter:ue};if(o)return{language:k,value:_r(C),illegal:!1,relevance:0,errorRaised:D,_emitter:ue,_top:I};throw D}}function f(k){let C={value:_r(k),illegal:!1,relevance:0,_top:a,_emitter:new u.__emitter(u)};return C._emitter.addText(k),C}function m(k,C){C=C||u.languages||Object.keys(t);let T=f(k),L=C.filter(R).filter(H).map(ce=>d(ce,k,!1));L.unshift(T);let W=L.sort((ce,pe)=>{if(ce.relevance!==pe.relevance)return pe.relevance-ce.relevance;if(ce.language&&pe.language){if(R(ce.language).supersetOf===pe.language)return 1;if(R(pe.language).supersetOf===ce.language)return-1}return 0}),[Y,te]=W,be=Y;return be.secondBest=te,be}function p(k,C,T){let L=C&&n[C]||T;k.classList.add("hljs"),k.classList.add(`language-${L}`)}function h(k){let C=null,T=c(k);if(s(T))return;if(K("before:highlightElement",{el:k,language:T}),k.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",k);return}if(k.children.length>0&&(u.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(k)),u.throwUnescapedHTML))throw new kr("One of your code blocks includes unescaped HTML.",k.innerHTML);C=k;let L=C.textContent,W=T?l(L,{language:T,ignoreIllegals:!0}):m(L);k.innerHTML=W.value,k.dataset.highlighted="yes",p(k,T,W.language),k.result={language:W.language,re:W.relevance,relevance:W.relevance},W.secondBest&&(k.secondBest={language:W.secondBest.language,relevance:W.secondBest.relevance}),K("after:highlightElement",{el:k,result:W,text:L})}function b(k){u=Ni(u,k)}let E=()=>{x(),st("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function g(){x(),st("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let y=!1;function x(){function k(){x()}if(document.readyState==="loading"){y||window.addEventListener("DOMContentLoaded",k,!1),y=!0;return}document.querySelectorAll(u.cssSelector).forEach(h)}function A(k,C){let T=null;try{T=C(e)}catch(L){if(Ge("Language definition for '{}' could not be registered.".replace("{}",k)),o)Ge(L);else throw L;T=a}T.name||(T.name=k),t[k]=T,T.rawDefinition=C.bind(null,e),T.aliases&&B(T.aliases,{languageName:k})}function v(k){delete t[k];for(let C of Object.keys(n))n[C]===k&&delete n[C]}function N(){return Object.keys(t)}function R(k){return k=(k||"").toLowerCase(),t[k]||t[n[k]]}function B(k,{languageName:C}){typeof k=="string"&&(k=[k]),k.forEach(T=>{n[T.toLowerCase()]=C})}function H(k){let C=R(k);return C&&!C.disableAutodetect}function J(k){k["before:highlightBlock"]&&!k["before:highlightElement"]&&(k["before:highlightElement"]=C=>{k["before:highlightBlock"](Object.assign({block:C.el},C))}),k["after:highlightBlock"]&&!k["after:highlightElement"]&&(k["after:highlightElement"]=C=>{k["after:highlightBlock"](Object.assign({block:C.el},C))})}function ne(k){J(k),r.push(k)}function re(k){let C=r.indexOf(k);C!==-1&&r.splice(C,1)}function K(k,C){let T=k;r.forEach(function(L){L[T]&&L[T](C)})}function q(k){return st("10.7.0","highlightBlock will be removed entirely in v12.0"),st("10.7.0","Please use highlightElement now."),h(k)}Object.assign(e,{highlight:l,highlightAuto:m,highlightAll:x,highlightElement:h,highlightBlock:q,configure:b,initHighlighting:E,initHighlightingOnLoad:g,registerLanguage:A,unregisterLanguage:v,listLanguages:N,getLanguage:R,registerAliases:B,autoDetection:H,inherit:Ni,addPlugin:ne,removePlugin:re}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=N0,e.regex={concat:Ze,lookahead:Mi,either:Ar,optional:Zl,anyNumberOfTimes:Gl};for(let k in Jt)typeof Jt[k]=="object"&&Oi(Jt[k]);return Object.assign(e,Jt),e},ct=Wi({});ct.newInstance=()=>Wi({});Hi.exports=ct;ct.HighlightJS=ct;ct.default=ct});var Ki=P((wb,Zi)=>{function O0(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,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(i,{begin:/\(/,end:/\)/}),u=e.inherit(e.APOS_STRING_MODE,{className:"string"}),s=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={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:[o]},{begin:/'/,end:/'/,contains:[o]},{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:[i,s,u,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,a,s,u]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[s]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{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:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}Zi.exports=O0});var Vi=P((kb,ji)=>{function R0(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 o={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i=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"})]}},u={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,o]};o.contains.push(u);let s={match:/\\"/},c={className:"string",begin:/'/,end:/'/},l={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],m=e.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),p={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"],b=["true","false"],E={match:/(\/[a-z._-]+)+/},g=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],y=["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"],A=["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:b,built_in:[...g,...y,"set","shopt",...x,...A]},contains:[m,e.SHEBANG(),p,d,i,a,E,u,s,c,l,n]}}ji.exports=R0});var Xi=P((Ab,Yi)=>{function M0(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",a="("+r+"|"+t.optional(o)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c={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"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={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},d={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(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(o)+e.IDENT_RE,relevance:0},m=t.optional(o)+e.IDENT_RE+"\\s*\\(",b={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"},E=[d,u,n,e.C_BLOCK_COMMENT_MODE,l,c],g={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:E.concat([{begin:/\(/,end:/\)/,keywords:b,contains:E.concat(["self"]),relevance:0}]),relevance:0},y={begin:"("+a+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:b,relevance:0},{begin:m,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,l,u,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,l,u]}]},u,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:b,disableAutodetect:!0,illegal:"</",contains:[].concat(g,y,E,[d,{begin:e.IDENT_RE+"::",keywords:b},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:b}}}Yi.exports=M0});var Qi=P((xb,Ji)=>{function I0(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",a="(?!struct)("+r+"|"+t.optional(o)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={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"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[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={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(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(o)+e.IDENT_RE,relevance:0},m=t.optional(o)+e.IDENT_RE+"\\s*\\(",p=["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"],h=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["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"],E=["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"],x={type:h,keyword:p,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},A={className:"function.dispatch",relevance:0,keywords:{_hint:E},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[A,d,u,n,e.C_BLOCK_COMMENT_MODE,l,c],N={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={className:"function",begin:"("+a+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:x,relevance:0},{begin:m,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,l,u,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,l,u]}]},u,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:x,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(N,R,A,v,[d,{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:x,contains:["self",u]},{begin:e.IDENT_RE+"::",keywords:x},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}Ji.exports=I0});var ta=P((vb,ea)=>{function L0(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"],o=["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"],i=["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:o.concat(i),built_in:t,literal:r},u=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),s={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},l={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},d=e.inherit(l,{illegal:/\n/}),f={className:"subst",begin:/\{/,end:/\}/,keywords:a},m=e.inherit(f,{illegal:/\n/}),p={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,m]},h={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]},b=e.inherit(h,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},m]});f.contains=[h,p,l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,e.C_BLOCK_COMMENT_MODE],m.contains=[b,p,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let E={variants:[c,h,p,l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g={begin:"<",end:">",contains:[{beginKeywords:"in out"},u]},y=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",x={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"}},E,s,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},u,g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,g,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:"("+y+"\\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,g],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[E,s,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},x]}}ea.exports=L0});var ra=P((Sb,na)=>{var F0=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/},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_-]*/}}),B0=["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"],U0=["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"],P0=[...B0,...U0],z0=["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(),q0=["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(),W0=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),H0=["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","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","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 G0(e){let t=e.regex,n=F0(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},o="and or not only",i=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",u=[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:":("+q0.join("|")+")"},{begin:":(:)?("+W0.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+H0.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...u,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...u,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:z0.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...u,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+P0.join("|")+")\\b"}]}}na.exports=G0});var ia=P(($b,oa)=>{function Z0(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},o={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}]},i={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}]},u=/[A-Za-z][A-Za-z0-9+.-]*/,s={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,u,/:\/\/.*?\)/),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}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},l={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),f=e.inherit(l,{contains:[]});c.contains.push(f),l.contains.push(d);let m=[n,s];return[c,l,d,f].forEach(E=>{E.contains=E.contains.concat(m)}),m=m.concat(c,l),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:m},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:m}]}]},n,i,c,l,{className:"quote",begin:"^>\\s+",contains:m,end:"$"},o,r,s,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}oa.exports=Z0});var ua=P((Cb,aa)=>{function K0(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+ +----$/)},{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:/$/}]}}aa.exports=K0});var ca=P((Db,sa)=>{function j0(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]+/),o=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"]},u={className:"doctag",begin:"@[A-Za-z]+"},s={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[u]}),e.COMMENT("^=begin","^=end",{contains:[u],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],l={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"string",contains:[e.BACKSLASH_ESCAPE,l],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,l]})]}]},f="[1-9](_?[0-9])*|0",m="[0-9](_?[0-9])*",p={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${m}))?([eE][+-]?(${m})|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}]},v=[d,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:a},{relevance:0,match:[o,/\.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:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},p,{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,l],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(s,c),relevance:0}].concat(s,c);l.contains=v,h.contains=v;let H=[{begin:/^\s*=>/,starts:{end:"$",contains:v}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:v}}];return c.unshift(s),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(H).concat(c).concat(v)}}sa.exports=j0});var da=P((Nb,la)=>{function V0(e){let i={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:i,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:/-?\.\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:i,illegal:/["']/}]}]}}la.exports=V0});var pa=P((Tb,fa)=>{function Y0(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/]}}fa.exports=Y0});var ha=P((Ob,ma)=>{function X0(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 o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i={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:"'"}]},u={begin:/\[/,end:/\]/,contains:[r,i,o,a,n,"self"],relevance:0},s=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,l=/'[^']*'/,d=t.either(s,c,l),f=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:f,className:"attr",starts:{end:/$/,contains:[r,u,i,o,a,n]}}]}}ma.exports=X0});var Ea=P((Rb,_a)=>{var lt="[0-9](_*[0-9])*",nn=`\\.(${lt})`,rn="[0-9a-fA-F](_*[0-9a-fA-F])*",ba={className:"number",variants:[{begin:`(\\b(${lt})((${nn})|\\.)?|(${nn}))[eE][+-]?(${lt})[fFdD]?\\b`},{begin:`\\b(${lt})((${nn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${nn})[fFdD]?\\b`},{begin:`\\b(${lt})[fFdD]\\b`},{begin:`\\b0[xX]((${rn})\\.?|(${rn})?\\.(${rn}))[pP][+-]?(${lt})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${rn})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function ga(e,t,n){return n===-1?"":e.replace(t,r=>ga(e,t,n-1))}function J0(e){let t=e.regex,n="[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*",r=n+ga("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),s={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"]},c={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},l={className:"params",begin:/\(/,end:/\)/,keywords:s,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:s,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"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:s,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:s,relevance:0,contains:[c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,ba,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},ba,c]}}_a.exports=J0});var va=P((Mb,xa)=>{var ya="[A-Za-z$_][0-9A-Za-z$_]*",Q0=["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"],ed=["true","false","null","undefined","NaN","Infinity"],wa=["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"],ka=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Aa=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],td=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],nd=[].concat(Aa,wa,ka);function rd(e){let t=e.regex,n=(T,{after:L})=>{let W="</"+T[0].slice(1);return T.input.indexOf(W,L)!==-1},r=ya,o={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(T,L)=>{let W=T[0].length+T.index,Y=T.input[W];if(Y==="<"||Y===","){L.ignoreMatch();return}Y===">"&&(n(T,{after:W})||L.ignoreMatch());let te,be=T.input.substring(W);if(te=be.match(/^\s*=/)){L.ignoreMatch();return}if((te=be.match(/^\s+extends\s+/))&&te.index===0){L.ignoreMatch();return}}},u={$pattern:ya,keyword:Q0,literal:ed,built_in:nd,"variable.language":td},s="[0-9](_?[0-9])*",c=`\\.(${s})`,l="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${l})((${c})|\\.)?|(${c}))[eE][+-]?(${s})\\b`},{begin:`\\b(${l})\\b((${c})\\b|\\.)?|(${c})\\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},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},m={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},h={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},g={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]},y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,p,h,b,{match:/\$\d+/},d];f.contains=y.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(y)});let x=[].concat(g,f.contains),A=x.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(x)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:A},N={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"}}]},R={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:{_:[...wa,...ka]}},B={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},H={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},J={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ne(T){return t.concat("(?!",T.join("|"),")")}let re={match:t.concat(/\b/,ne([...Aa,"super","import"].map(T=>`${T}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},K={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},q={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},k="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",C={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(k)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),B,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,p,h,b,g,{match:/\$\d+/},d,R,{scope:"attr",match:r+t.lookahead(":"),relevance:0},C,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{className:"function",begin:k,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:u,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:i},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},H,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},re,J,N,q,{match:/\$[(.]/}]}}xa.exports=rd});var $a=P((Ib,Sa)=>{function od(e){let t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],o={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,o,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}Sa.exports=od});var Da=P((Lb,Ca)=>{var dt="[0-9](_*[0-9])*",on=`\\.(${dt})`,an="[0-9a-fA-F](_*[0-9a-fA-F])*",id={className:"number",variants:[{begin:`(\\b(${dt})((${on})|\\.)?|(${on}))[eE][+-]?(${dt})[fFdD]?\\b`},{begin:`\\b(${dt})((${on})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${on})[fFdD]?\\b`},{begin:`\\b(${dt})[fFdD]\\b`},{begin:`\\b0[xX]((${an})\\.?|(${an})?\\.(${an}))[pP][+-]?(${dt})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${an})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function ad(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+"@"},o={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},i={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[i,o]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,i,o]}]};o.contains.push(a);let u={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},s={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"string"}),"self"]}]},c=id,l=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=d;return f.variants[1].contains=[d],d.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,l,n,r,u,s,{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,l],relevance:0},e.C_LINE_COMMENT_MODE,l,u,s,a,e.C_NUMBER_MODE]},l]},{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},u,s]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
5
+ `},c]}}Ca.exports=ad});var Ra=P((Fb,Oa)=>{var ud=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/},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_-]*/}}),sd=["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"],cd=["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"],ld=[...sd,...cd],dd=["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(),Na=["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(),Ta=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),fd=["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","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","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(),pd=Na.concat(Ta).sort().reverse();function md(e){let t=ud(e),n=pd,r="and or not only",o="[\\w-]+",i="("+o+"|@\\{"+o+"\\})",a=[],u=[],s=function(y){return{className:"string",begin:"~?"+y+".*?"+y}},c=function(y,x,A){return{className:y,begin:x,relevance:A}},l={$pattern:/[a-z-]+/,keyword:r,attribute:dd.join(" ")},d={begin:"\\(",end:"\\)",contains:u,keywords:l,relevance:0};u.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s("'"),s('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,c("variable","@@?"+o,10),c("variable","@\\{"+o+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:o+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);let f=u.concat({begin:/\{/,end:/\}/,contains:a}),m={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(u)},p={begin:i+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+fd.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:u}}]},h={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:l,returnEnd:!0,contains:u,relevance:0}},b={className:"variable",variants:[{begin:"@"+o+"\\s*:",relevance:15},{begin:"@"+o}],starts:{end:"[;}]",returnEnd:!0,contains:f}},E={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:i,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m,c("keyword","all\\b"),c("variable","@\\{"+o+"\\}"),{begin:"\\b("+ld.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",i,0),c("selector-id","#"+i),c("selector-class","\\."+i,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Na.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Ta.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},t.FUNCTION_DISPATCH]},g={begin:o+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[E]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,b,g,p,E,m,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}Oa.exports=md});var Ia=P((Bb,Ma)=>{function hd(e){let t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},o=[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 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:o.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:o}].concat(o)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}Ma.exports=hd});var Fa=P((Ub,La)=>{function bd(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]},o={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},i={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,o,i,a]}}La.exports=bd});var Ua=P((Pb,Ba)=>{function gd(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}/,o={$pattern:/[\w.]+/,keyword:n.join(" ")},i={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:o},a={begin:/->\{/,end:/\}/},u={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},s={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[u]},c={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},l=[e.BACKSLASH_ESCAPE,i,s],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(h,b,E="\\1")=>{let g=E==="\\1"?E:t.concat(E,b);return t.concat(t.concat("(?:",h,")"),b,/(?:\\.|[^\\\/])*?/,g,/(?:\\.|[^\\\/])*?/,E,r)},m=(h,b,E)=>t.concat(t.concat("(?:",h,")"),b,/(?:\\.|[^\\\/])*?/,E,r),p=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:l,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}]},c,{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:f("s|tr|y",t.either(...d,{capture:!0}))},{begin:f("s|tr|y","\\(","\\)")},{begin:f("s|tr|y","\\[","\\]")},{begin:f("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:m("(?:m|qr)?",/\//,/\//)},{begin:m("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:m("m|qr",/\(/,/\)/)},{begin:m("m|qr",/\[/,/\]/)},{begin:m("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,u]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,u,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return i.contains=p,a.contains=p,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:p}}Ba.exports=gd});var za=P((zb,Pa)=>{function _d(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_]*/,u={"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"]},s={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:u,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:"("+s.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:s,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}Pa.exports=_d});var Wa=P((qb,qa)=>{function Ed(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),o=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),i=t.concat(/[A-Z]+/,n),a={scope:"variable",match:"\\$+"+r},u={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(s),"on:begin":(K,q)=>{q.data._beginMatch=K[1]||K[2]},"on:end":(K,q)=>{q.data._beginMatch!==K[1]&&q.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),m=`[
6
+ ]`,p={scope:"string",variants:[l,c,d,f]},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},b=["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"],g=["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:(K=>{let q=[];return K.forEach(k=>{q.push(k),k.toLowerCase()===k?q.push(k.toUpperCase()):q.push(k.toLowerCase())}),q})(b),built_in:g},A=K=>K.map(q=>q.replace(/\|\d+$/,"")),v={variants:[{match:[/new/,t.concat(m,"+"),t.concat("(?!",A(g).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},N=t.concat(r,"\\b(?!\\()"),R={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),N],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,t.concat(/::/,t.lookahead(/(?!class\b)/)),N],scope:{1:"title.class",3:"variable.constant"}},{match:[o,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},B={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},H={relevance:0,begin:/\(/,end:/\)/,keywords:x,contains:[B,a,R,e.C_BLOCK_COMMENT_MODE,p,h,v]},J={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",A(E).join("\\b|"),"|",A(g).join("\\b|"),"\\b)"),r,t.concat(m,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[H]};H.contains.push(J);let ne=[B,R,e.C_BLOCK_COMMENT_MODE,p,h,v],re={begin:t.concat(/#\[\s*\\?/,t.either(o,i)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...ne]},...ne,{scope:"meta",variants:[{match:o},{match:i}]}]};return{case_insensitive:!1,keywords:x,contains:[re,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}]}},u,{scope:"variable.language",match:/\$this\b/},a,J,R,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},v,{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",re,a,R,e.C_BLOCK_COMMENT_MODE,p,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]},p,h]}}qa.exports=Ed});var Ga=P((Wb,Ha)=>{function yd(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})]}]}}Ha.exports=yd});var Ka=P((Hb,Za)=>{function wd(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}Za.exports=wd});var Va=P((Gb,ja)=>{function kd(e){let t=e.regex,n=/[\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","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],u={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","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","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"]},s={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},l={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s,l,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,l,c]},{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:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,l,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,l,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",m=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,p=`\\b|${r.join("|")}`,h={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${m}))[eE][+-]?(${f})[jJ]?(?=${p})`},{begin:`(${m})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${p})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${p})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`},{begin:`\\b(${f})[jJ](?=${p})`}]},b={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:u,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:u,contains:["self",s,h,d,e.HASH_COMMENT_MODE]}]};return c.contains=[d,h,s],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:u,illegal:/(<\/|\?)|=>/,contains:[s,h,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},d,b,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]}]}}ja.exports=kd});var Xa=P((Zb,Ya)=>{function Ad(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}Ya.exports=Ad});var Qa=P((Kb,Ja)=>{function xd(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]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,i=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:[o,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[i,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:i},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}Ja.exports=xd});var tu=P((jb,eu)=>{function vd(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),o=t.concat(n,e.IDENT_RE),i={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,t.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",u=["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","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],s=["true","false","Some","None","Ok","Err"],c=["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!"],l=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:l,keyword:u,literal:s,built_in:c},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"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})/}]}]},{className:"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:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:c,type:l}},{className:"punctuation",begin:"->"},i]}}eu.exports=vd});var ru=P((Vb,nu)=>{var Sd=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/},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_-]*/}}),$d=["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"],Cd=["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"],Dd=[...$d,...Cd],Nd=["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(),Td=["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(),Od=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Rd=["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","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","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 Md(e){let t=Sd(e),n=Od,r=Td,o="@[a-z-]+",i="and or not only",u={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("+Dd.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},u,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Rd.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,u,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:o,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Nd.join(" ")},contains:[{begin:o,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},u,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}nu.exports=Md});var iu=P((Yb,ou)=>{function Id(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}ou.exports=Id});var uu=P((Xb,au)=>{function Ld(e){let t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},o={begin:/"/,end:/"/,contains:[{match:/""/}]},i=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],u=["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"],s=["add","asc","collation","desc","final","first","last","view"],c=["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"],l=["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"],f=["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"],m=l,p=[...c,...s].filter(A=>!l.includes(A)),h={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},b={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},E={match:t.concat(/\b/,t.either(...m),/\s*\(/),relevance:0,keywords:{built_in:m}};function g(A){return t.concat(/\b/,t.either(...A.map(v=>v.replace(/\s+/,"\\s+"))),/\b/)}let y={scope:"keyword",match:g(f),relevance:0};function x(A,{exceptions:v,when:N}={}){let R=N;return v=v||[],A.map(B=>B.match(/\|\d+$/)||v.includes(B)?B:R(B)?`${B}|0`:B)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(p,{when:A=>A.length<3}),literal:i,type:u,built_in:d},contains:[{scope:"type",match:g(a)},y,E,h,r,o,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,b]}}au.exports=Ld});var bu=P((Jb,hu)=>{function du(e){return e?typeof e=="string"?e:e.source:null}function Ot(e){return V("(?=",e,")")}function V(...e){return e.map(n=>du(n)).join("")}function Fd(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function le(...e){return"("+(Fd(e).capture?"":"?:")+e.map(r=>du(r)).join("|")+")"}var Cr=e=>V(/\b/,e,/\w$/.test(e)?/\b/:/\B/),Bd=["Protocol","Type"].map(Cr),su=["init","self"].map(Cr),Ud=["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"],cu=["false","nil","true"],Pd=["assignment","associativity","higherThan","left","lowerThan","none","right"],zd=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],lu=["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"],fu=le(/[/=\-+!*%<>&|^~?]/,/[\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]/),pu=le(fu,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),$r=V(fu,pu,"*"),mu=le(/[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]/),sn=le(mu,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),xe=V(mu,sn,"*"),un=V(/[A-Z]/,sn,"*"),qd=["attached","autoclosure",V(/convention\(/,le("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",V(/objc\(/,xe,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Wd=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Hd(e){let t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],o={match:[/\./,le(...Bd,...su)],className:{2:"keyword"}},i={match:V(/\./,le(...Sr)),relevance:0},a=Sr.filter(j=>typeof j=="string").concat(["_|0"]),u=Sr.filter(j=>typeof j!="string").concat(Ud).map(Cr),s={variants:[{className:"keyword",match:le(...u,...su)}]},c={$pattern:le(/\b\w+/,/#\w+/),keyword:a.concat(zd),literal:cu},l=[o,i,s],d={match:V(/\./,le(...lu)),relevance:0},f={className:"built_in",match:V(/\b/,le(...lu),/(?=\()/)},m=[d,f],p={match:/->/,relevance:0},h={className:"operator",relevance:0,variants:[{match:$r},{match:`\\.(\\.|${pu})+`}]},b=[p,h],E="([0-9]_*)+",g="([0-9a-fA-F]_*)+",y={className:"number",relevance:0,variants:[{match:`\\b(${E})(\\.(${E}))?([eE][+-]?(${E}))?\\b`},{match:`\\b0x(${g})(\\.(${g}))?([pP][+-]?(${E}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},x=(j="")=>({className:"subst",variants:[{match:V(/\\/,j,/[0\\tnr"']/)},{match:V(/\\/,j,/u\{[0-9a-fA-F]{1,8}\}/)}]}),A=(j="")=>({className:"subst",match:V(/\\/,j,/[\t ]*(?:[\r\n]|\r\n)/)}),v=(j="")=>({className:"subst",label:"interpol",begin:V(/\\/,j,/\(/),end:/\)/}),N=(j="")=>({begin:V(j,/"""/),end:V(/"""/,j),contains:[x(j),A(j),v(j)]}),R=(j="")=>({begin:V(j,/"/),end:V(/"/,j),contains:[x(j),v(j)]}),B={className:"string",variants:[N(),N("#"),N("##"),N("###"),R(),R("#"),R("##"),R("###")]},H=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],J={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:H},ne=j=>{let Be=V(j,/\//),I=V(/\//,j);return{begin:Be,end:I,contains:[...H,{scope:"comment",begin:`#(?!.*${I})`,end:/$/}]}},re={scope:"regexp",variants:[ne("###"),ne("##"),ne("#"),J]},K={match:V(/`/,xe,/`/)},q={className:"variable",match:/\$\d+/},k={className:"variable",match:`\\$${sn}+`},C=[K,q,k],T={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Wd,contains:[...b,y,B]}]}},L={scope:"keyword",match:V(/@/,le(...qd),Ot(le(/\(/,/\s+/)))},W={scope:"meta",match:V(/@/,xe)},Y=[T,L,W],te={match:Ot(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:V(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,sn,"+")},{className:"type",match:un,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:V(/\s+&\s+/,Ot(un)),relevance:0}]},be={begin:/</,end:/>/,keywords:c,contains:[...r,...l,...Y,p,te]};te.contains.push(be);let ce={match:V(xe,/\s*:/),keywords:"_|0",relevance:0},pe={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",ce,...r,re,...l,...m,...b,y,B,...C,...Y,te]},at={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,te]},Kt={begin:le(Ot(V(xe,/\s*:/)),Ot(V(xe,/\s+/,xe,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:xe}]},Dt={begin:/\(/,end:/\)/,keywords:c,contains:[Kt,...r,...l,...b,y,B,...Y,te,pe],endsParent:!0,illegal:/["']/},lr={match:[/(func|macro)/,/\s+/,le(K.match,xe,$r)],className:{1:"keyword",3:"title.function"},contains:[at,Dt,t],illegal:[/\[/,/%/]},dr={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[at,Dt,t],illegal:/\[|%/},fr={match:[/operator/,/\s+/,$r],className:{1:"keyword",3:"title"}},pr={begin:[/precedencegroup/,/\s+/,un],className:{1:"keyword",3:"title"},contains:[te],keywords:[...Pd,...cu],end:/}/},ut={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},jt={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},ge={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,xe,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:c,contains:[at,...l,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:"title.class.inherited",match:un},...l],relevance:0}]};for(let j of B.variants){let Be=j.contains.find(Vt=>Vt.label==="interpol");Be.keywords=c;let I=[...l,...m,...b,y,B,...C];Be.contains=[...I,{begin:/\(/,end:/\)/,contains:["self",...I]}]}return{name:"Swift",keywords:c,contains:[...r,lr,dr,ut,jt,ge,fr,pr,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},re,...l,...m,...b,y,B,...C,...Y,te,pe]}}hu.exports=Hd});var _u=P((Qb,gu)=>{function Gd(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]|$)/}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={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,o]},u=e.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),f={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"},m={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},p={begin:/\{/,end:/\}/,contains:[m],illegal:"\\n",relevance:0},h={begin:"\\[",end:"\\]",contains:[m],illegal:"\\n",relevance:0},b=[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}},f,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},p,h,i,a],E=[...b];return E.pop(),E.push(u),m.contains=E,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}gu.exports=Gd});var $u=P((eg,Su)=>{var cn="[A-Za-z$_][0-9A-Za-z$_]*",Eu=["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"],yu=["true","false","null","undefined","NaN","Infinity"],wu=["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"],ku=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Au=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],xu=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],vu=[].concat(Au,wu,ku);function Zd(e){let t=e.regex,n=(T,{after:L})=>{let W="</"+T[0].slice(1);return T.input.indexOf(W,L)!==-1},r=cn,o={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(T,L)=>{let W=T[0].length+T.index,Y=T.input[W];if(Y==="<"||Y===","){L.ignoreMatch();return}Y===">"&&(n(T,{after:W})||L.ignoreMatch());let te,be=T.input.substring(W);if(te=be.match(/^\s*=/)){L.ignoreMatch();return}if((te=be.match(/^\s+extends\s+/))&&te.index===0){L.ignoreMatch();return}}},u={$pattern:cn,keyword:Eu,literal:yu,built_in:vu,"variable.language":xu},s="[0-9](_?[0-9])*",c=`\\.(${s})`,l="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${l})((${c})|\\.)?|(${c}))[eE][+-]?(${s})\\b`},{begin:`\\b(${l})\\b((${c})\\b|\\.)?|(${c})\\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},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},m={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},h={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},g={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]},y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,p,h,b,{match:/\$\d+/},d];f.contains=y.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(y)});let x=[].concat(g,f.contains),A=x.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(x)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:A},N={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"}}]},R={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:{_:[...wu,...ku]}},B={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},H={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},J={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ne(T){return t.concat("(?!",T.join("|"),")")}let re={match:t.concat(/\b/,ne([...Au,"super","import"].map(T=>`${T}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},K={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},q={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},k="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",C={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(k)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),B,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,p,h,b,g,{match:/\$\d+/},d,R,{scope:"attr",match:r+t.lookahead(":"),relevance:0},C,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{className:"function",begin:k,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:u,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:i},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},H,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},re,J,N,q,{match:/\$[(.]/}]}}function Kd(e){let t=e.regex,n=Zd(e),r=cn,o=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:o},contains:[n.exports.CLASS_REFERENCE]},u={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:cn,keyword:Eu.concat(s),literal:yu,built_in:vu.concat(o),"variable.language":xu},l={className:"meta",begin:"@"+r},d=(h,b,E)=>{let g=h.contains.findIndex(y=>y.label===b);if(g===-1)throw new Error("can not find mode to replace");h.contains.splice(g,1,E)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(l);let f=n.contains.find(h=>h.scope==="attr"),m=Object.assign({},f,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,f,m]),n.contains=n.contains.concat([l,i,a,m]),d(n,"shebang",e.SHEBANG()),d(n,"use_strict",u);let p=n.contains.find(h=>h.label==="func.def");return p.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}Su.exports=Kd});var Du=P((tg,Cu)=>{function jd(e){let t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o=/\d{1,2}\/\d{1,2}\/\d{4}/,i=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,u=/\d{1,2}(:\d{1,2}){1,2}/,s={className:"literal",variants:[{begin:t.concat(/# */,t.either(i,o),/ *#/)},{begin:t.concat(/# */,u,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(i,o),/ +/,t.either(a,u),/ *#/)}]},c={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])|[%&])?/}]},l={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=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,s,c,l,d,f,{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:[f]}]}}Cu.exports=jd});var Tu=P((ng,Nu)=>{function Vd(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"],o={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},i={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},u={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/},s={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={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"}},i,a,o,e.QUOTE_STRING_MODE,s,c,u]}}Nu.exports=Vd});var Ru=P((rg,Ou)=>{var F=Gi();F.registerLanguage("xml",Ki());F.registerLanguage("bash",Vi());F.registerLanguage("c",Xi());F.registerLanguage("cpp",Qi());F.registerLanguage("csharp",ta());F.registerLanguage("css",ra());F.registerLanguage("markdown",ia());F.registerLanguage("diff",ua());F.registerLanguage("ruby",ca());F.registerLanguage("go",da());F.registerLanguage("graphql",pa());F.registerLanguage("ini",ha());F.registerLanguage("java",Ea());F.registerLanguage("javascript",va());F.registerLanguage("json",$a());F.registerLanguage("kotlin",Da());F.registerLanguage("less",Ra());F.registerLanguage("lua",Ia());F.registerLanguage("makefile",Fa());F.registerLanguage("perl",Ua());F.registerLanguage("objectivec",za());F.registerLanguage("php",Wa());F.registerLanguage("php-template",Ga());F.registerLanguage("plaintext",Ka());F.registerLanguage("python",Va());F.registerLanguage("python-repl",Xa());F.registerLanguage("r",Qa());F.registerLanguage("rust",tu());F.registerLanguage("scss",ru());F.registerLanguage("shell",iu());F.registerLanguage("sql",uu());F.registerLanguage("swift",bu());F.registerLanguage("yaml",_u());F.registerLanguage("typescript",$u());F.registerLanguage("vbnet",Du());F.registerLanguage("wasm",Tu());F.HighlightJS=F;F.default=F;Ou.exports=F});function Ai(e){let t=e.startsWith("/"),n=e.length>1&&e.endsWith("/"),r=[];for(let i of e.split("/"))i===""||i==="."||(i===".."?r.length&&r[r.length-1]!==".."?r.pop():t||r.push(".."):r.push(i));let o=r.join("/");return t?o=`/${o}`:o===""&&(o="."),n&&!o.endsWith("/")&&(o+="/"),o}function Ll(...e){let t=e.filter(n=>typeof n=="string"&&n.length>0).join("/");return t===""?".":Ai(t)}function gr(...e){let t="",n=!1;for(let o=e.length-1;o>=0&&!n;o--){let i=e[o];typeof i!="string"||i.length===0||(t=`${i}/${t}`,n=i.startsWith("/"))}n||(t=`/${t}`);let r=Ai(t);return r.length>1&&r.endsWith("/")?r.slice(0,-1):r}function Fl(e){if(e.length===0)return".";let t=e.endsWith("/")&&e.length>1?e.slice(0,-1):e,n=t.lastIndexOf("/");return n===-1?".":n===0?"/":t.slice(0,n)}function xi(e,t){let n=e.endsWith("/")&&e.length>1?e.slice(0,-1):e,r=n.slice(n.lastIndexOf("/")+1);return t&&r!==t&&r.endsWith(t)?r.slice(0,-t.length):r}function Bl(e){let t=xi(e),n=t.lastIndexOf(".");return n<=0?"":t.slice(n)}function Ul(e,t){let n=gr(e).split("/").filter(Boolean),r=gr(t).split("/").filter(Boolean),o=0;for(;o<n.length&&o<r.length&&n[o]===r[o];)o++;return[...n.slice(o).map(()=>".."),...r.slice(o)].join("/")}var M={sep:"/",join:Ll,resolve:gr,dirname:Fl,basename:xi,extname:Bl,relative:Ul};var Pl="site/pages",zl="site/_",ql="dist";function vi(e=process.cwd()){return{cwd:e,routesRoot:M.join(e,Pl),shelfRoot:M.join(e,zl),distRoot:M.join(e,ql)}}var Mu=Il(Ru(),1);var Dr=Mu.default;var Iu="hljs";function Nr(e,t){if(!t||!Dr.getLanguage(t))return"";let{value:n}=Dr.highlight(e,{language:t,ignoreIllegals:!0});return`<span class="${Iu}">${n}</span>`}function Tr(e){return e.includes(`class="${Iu}"`)}function ft(e){return e.includes("\r")?e.replace(/\r\n?/g,`
7
+ `):e}var Lu=[".md",".wd"],Ke=Object.assign(Object.create(null),{$index:"index",$number:"number",$first:"first",$last:"last",$count:"count"});function Fu(e){return{reader:e,imageVariants:null,assets:{skins:new Set,scripts:new Set,files:new Map,runtime:!1,behaviors:new Set,hasCode:!1,scopedSkins:new Set,embedHosts:new Set},state:new Map,stores:new Set,fetchKeys:new Set,warnings:[],sectionCounter:0,headingSlugs:new Map,collections:new Map,pagination:null,deps:new Set,collectionsUsed:new Set,symbols:[]}}function Q(e,t,n){let r={...n,file:e.file,line:$(e,t)};return e.comp.symbols.push(r),r}function ln(e,t,n){let r=e.comp.symbols[t];r&&(r.endLine=$(e,n))}function Bu(e,t,n){e.comp.symbols.push({kind:"read",name:t,detail:n,file:e.file,line:null})}function Te(e,t={}){return{parent:e,vars:{...t}}}function S(e,t){return`${e.file}:${$(e,t)}`}function $(e,t){return t+1+(e.bodyLine??0)+(e.lineOffset??0)}function _(e,t){let n=new Error(`[${t.code}] ${e}`);return n.wd=t,n}function fe(e,t){return{...e,lineOffset:(e.lineOffset??0)+t}}function we(e,t){let n=e;for(;n;n=n.parent)if(Object.hasOwn(n.vars,t))return{found:!0,value:n.vars[t]};return{found:!1}}function dn(e,t){let n=e.split("."),r=we(t.scope,n[0]);return r.found?{found:!0,value:oe(r.value,n.slice(1))}:{found:!1}}function oe(e,t){let n=e;for(let r of t){if(n==null||["constructor","prototype","__proto__"].includes(r))return;n=n[r]}return n}function Rt(e,t,n){let r=e.split(".");if(r.some(o=>["constructor","prototype","__proto__"].includes(o)))throw _(`Path segment in "${e}" is not allowed in ${t.file}. Use: ${n}`,{code:"WD002",file:t.file,hint:n});return r}function Z(e,t){for(let n=t.sections.length-1;n>=0;n--){let r=`${t.sections[n]}:${e}`;if(t.comp.state.has(r))return r}return t.comp.state.has(e)?e:null}function Or(e,t,n){if(e==null)return"";if(Array.isArray(e))return e.join(", ");if(typeof e=="object")throw _(`Cannot interpolate the object value "{ ${t} }" in ${n.file}. Interpolate a field instead \u2014 e.g. { ${t}.title } \u2014 or iterate it with @loop ${t} into item.`,{code:"WD003",file:n.file});return String(e)}function Uu(e,t,n){return Array.isArray(e)?String(e):Or(e,t,n)}function de(e){return JSON.stringify(e).replaceAll("<","\\u003c")}function pt(e,t){let n=e.trim();if(/^["'].*["']$/.test(n))return ee(n);if(n==="true")return!0;if(n==="false")return!1;if(n==="null")return null;if(/^-?\d+(?:\.\d+)?$/.test(n))return Number(n);try{return JSON.parse(n)}catch{if(/^[[{]/.test(n)){let r=n[0],o=r==="["?"]":"}",i=n.length>60?`${n.slice(0,57)}\u2026`:n;throw _(`Unbalanced JSON value "${i}"${t?` in ${t}`:""}: this opens "${r}" but never closes it. :state/:store/:theme accept a multi-line array/object, but the literal must balance (a "${o}" is missing) with no blank lines inside it. A persist/ephemeral token goes AFTER the closing "${o}" on the last line, not on the declaration line. Quote it for literal bracket text (e.g. = "[draft]").`,{code:"WD004"})}return n}}function Pu(e){let t=e.trim();return/^["']/.test(t)?ee(t):t==="true"?!0:t==="false"?!1:/^-?\d+(?:\.\d+)?$/.test(t)?Number(t):t}function ee(e){return e?.replace(/^["']|["']$/g,"")??""}function je(e){let t=e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[-_]+/g," ").trim().toLowerCase();return t?t.charAt(0).toUpperCase()+t.slice(1):e}function mt(e){return/^(javascript|data|vbscript):/i.test(String(e).replace(/[\u0000-\u0020\u007F]+/g,""))}function w(e){return String(e).replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function Mt(e){return String(e).replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&quot;",'"').replaceAll("&#39;","'").replaceAll("&amp;","&")}function Yd(e){let t=2166136261;return{update(n){let r=String(n);for(let o=0;o<r.length;o++)t^=r.charCodeAt(o),t=Math.imul(t,16777619)>>>0;return this},digest(){return(t>>>0).toString(16).padStart(8,"0")}}}var zu={createHash:Yd};function qu(e){let t=e.replaceAll("\\","/");return`wd-${zu.createHash("sha256").update(t).digest("hex").slice(0,4)}`}function It(e,t,n){let r=M.relative(t,e).replaceAll(M.sep,"/"),o=qu(r),i=n.readText(e).replace(/\/\*[\s\S]*?\*\//g,"");for(let a of i.split(`
8
8
  `)){let u=a.trim();if(!(!u||u.startsWith("//")||!/[A-Za-z0-9]/.test(u)))return{scoped:u==="scoped",scopeId:o}}return{scoped:!1,scopeId:o}}function fn(e,t,n){let r=M.extname(e),o=`${e.slice(0,-r.length)}.skin`;return n.exists(o)?It(o,t.cwd,n):null}var Xd=new Set(["script","style","textarea","title"]);function pn(e,t){let n=/<([a-zA-Z][\w-]*)((?:[^>"']|"[^"]*"|'[^']*')*?)(\/?)>/g,r="",o=0;for(let i=n.exec(e);i;i=n.exec(e)){let[a,u,s,c]=i;r+=e.slice(o,i.index);let l=/\bdata-wd-scope\s*=/.test(s)?a:`<${u}${s} data-wd-scope="${t}"${c?" /":""}>`;if(r+=l,o=i.index+a.length,!c&&Xd.has(u.toLowerCase())){let d=e.slice(o),f=new RegExp(`</${u}\\s*>`,"i").exec(d);if(!f){r+=d,o=e.length;break}let m=f.index+f[0].length;r+=d.slice(0,m),o+=m,n.lastIndex=o}}return r+=e.slice(o),r}function Wu(e,t,n,r){let o=M.extname(e),i=e.slice(0,-o.length);for(let[a,u]of[[".skin","styles"],[".js","scripts"]]){let s=`${i}${a}`;if(!r.exists(s))continue;let c=M.relative(t.cwd,s).replaceAll(M.sep,"/"),l=a===".skin"?".css":".js",d=`/__wd/${u}/${c.slice(0,-a.length).replace(/[/.]/g,"_")}${l}`;n.files.set(s,d),a===".skin"&&(n.skins.add(d),It(s,t.cwd,r).scoped&&n.scopedSkins.add(s)),a===".js"&&n.scripts.add(d)}}function mn(e,t,n,r,o,i){let a=ee(e),u=[];a.startsWith("/")?u.push(M.join(n.shelfRoot,a.slice(1))):(u.push(M.resolve(M.dirname(t),a)),u.push(M.join(n.shelfRoot,a)));for(let s of u){let c=M.resolve(s),l=()=>{throw _(`Include "${e}" from ${o} resolves outside site/pages or site/_`,{code:"WD601",file:t})};if(Ve(c,n)||l(),!!i.exists(c)&&!(!r&&!Lu.includes(M.extname(c))))return Ve(c,n,i)||l(),c}throw _(`Could not resolve include "${e}" from ${o}. Looked in site/pages and site/_ \u2014 check the path and leading slash.`,{code:"WD602",file:t})}function Ve(e,t,n){let r=[t.routesRoot,t.shelfRoot].map(a=>M.resolve(a)),o=(a,u)=>u.some(s=>a===s||a.startsWith(`${s}${M.sep}`));if(!o(M.resolve(e),r))return!1;if(!n)return!0;let i=a=>{try{return n.realpath(a)}catch{return a}};return o(i(M.resolve(e)),r.map(i))}var Rr="\0children",hn=/^\s*\{\s*children\s*\}\s*$/;function Hu(e){let t=we(e.scope,Rr);return t.found?t.value:null}function Gu(e,t,n){let r=null;for(let o of e.split(`
9
9
  `)){let i=o.match(/^(```+|~~~+)/);if(r){i&&i[1][0]===r[0]&&i[1].length>=r.length&&(r=null);continue}if(i){r=i[1];continue}let a=o.match(/^(@include|@loop|@repeat|:state|:button|:if|:for|:try|:::)(\s|$)/);if(a){n.warnings.push(`${t}: "${a[1]}" is .wd syntax and stays plain text in .md \u2014 rename the file to .wd to activate it.`);return}}}function bn(e,t){if(e=ft(e),!e.startsWith(`---
10
10
  `))return{meta:{},body:e,bodyLine:0,quotedKeys:new Set};let n=e.indexOf(`
@@ -28,66 +28,65 @@ https://github.com/highlightjs/highlight.js/issues/2277`),W=w,F=T),N===void 0&&(
28
28
  `),i+=(o.nesting===-1?"</":"<")+o.tag,i+=this.renderAttrs(o),o.nesting===0&&r.xhtmlOut&&(i+=" /");let a=!1;if(o.block&&(a=!0,o.nesting===1&&n+1<t.length)){let u=t[n+1];(u.type==="inline"||u.hidden||u.nesting===-1&&u.tag===o.tag)&&(a=!1)}return i+=a?`>
29
29
  `:">",i};xt.prototype.renderInline=function(e,t,n){let r="",o=this.rules;for(let i=0,a=e.length;i<a;i++){let u=e[i].type;typeof o[u]<"u"?r+=o[u](e,i,t,n,this):r+=this.renderToken(e,i,t)}return r};xt.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,i=e.length;o<i;o++)switch(e[o].type){case"text":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"html_inline":case"html_block":r+=e[o].content;break;case"softbreak":case"hardbreak":r+=`
30
30
  `;break;default:}return r};xt.prototype.render=function(e,t,n){let r="",o=this.rules;for(let i=0,a=e.length;i<a;i++){let u=e[i].type;u==="inline"?r+=this.renderInline(e[i].children,t,n):typeof o[u]<"u"?r+=o[u](e,i,t,n,this):r+=this.renderToken(e,i,t,n)}return r};var Es=xt;function Ae(){this.__rules__=[],this.__cache__=null}Ae.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Ae.prototype.__compile__=function(){let e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};Ae.prototype.at=function(e,t,n){let r=this.__find__(e),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null};Ae.prototype.before=function(e,t,n,r){let o=this.__find__(e),i=r||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Ae.prototype.after=function(e,t,n,r){let o=this.__find__(e),i=r||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Ae.prototype.push=function(e,t,n){let r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};Ae.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(r){let o=this.__find__(r);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n};Ae.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Ae.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(r){let o=this.__find__(r);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n};Ae.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};var nt=Ae;function vt(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}vt.prototype.attrIndex=function(t){if(!this.attrs)return-1;let n=this.attrs;for(let r=0,o=n.length;r<o;r++)if(n[r][0]===t)return r;return-1};vt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};vt.prototype.attrSet=function(t,n){let r=this.attrIndex(t),o=[t,n];r<0?this.attrPush(o):this.attrs[r]=o};vt.prototype.attrGet=function(t){let n=this.attrIndex(t),r=null;return n>=0&&(r=this.attrs[n][1]),r};vt.prototype.attrJoin=function(t,n){let r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};var Me=vt;function ys(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}ys.prototype.Token=Me;var ws=ys;var Hf=/\r\n?|\n/g,Gf=/\0/g;function Jr(e){let t;t=e.src.replace(Hf,`
31
- `),t=t.replace(Gf,"\uFFFD"),e.src=t}function Qr(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 eo(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let o=t[n];o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)}}function Zf(e){return/^<a[>\s]/i.test(e)}function Kf(e){return/^<\/a\s*>/i.test(e)}function to(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.pretest(t[n].content))continue;let o=t[n].children,i=[],a=0;for(let u=o.length-1;u>=0;u--){let s=o[u];if(s.type==="link_close"){for(u--;o[u].level!==s.level&&o[u].type!=="link_open";)u--;continue}if(s.type==="html_inline"&&(Zf(s.content)&&a>0&&a--,Kf(s.content)&&a++),!(a>0)&&s.type==="text"&&e.md.linkify.test(s.content)){let c=s.content,l=e.md.linkify.match(c),d=[],f=s.level,m=0;l.length>0&&l[0].index===0&&u>0&&o[u-1].type==="text_special"&&(l=l.slice(1));for(let p=0;p<l.length;p++){let h=l[p].url,b=e.md.normalizeLink(h);if(!e.md.validateLink(b))continue;let E=l[p].text;l[p].schema?l[p].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 g=l[p].index;if(g>m){let v=new e.Token("text","",0);v.content=c.slice(m,g),v.level=f,d.push(v)}let y=new e.Token("link_open","a",1);y.attrs=[["href",b]],y.level=f++,y.markup="linkify",y.info="auto",d.push(y);let x=new e.Token("text","",0);x.content=E,x.level=f,d.push(x);let A=new e.Token("link_close","a",-1);A.level=--f,A.markup="linkify",A.info="auto",d.push(A),m=l[p].lastIndex}if(m<c.length){let p=new e.Token("text","",0);p.content=c.slice(m),p.level=f,d.push(p)}i.push({index:u,nodes:d})}}if(i.length>0){let u=o.length;for(let d of i)u+=d.nodes.length-1;let s=new Array(u),c=0,l=0;i.reverse();for(let d=0;d<o.length;d++){let f=i[c];if(f?.index===d){for(let m of f.nodes)s[l++]=m;c++}else s[l++]=o[d]}t[n].children=s}}}var ks=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,jf=/\((c|tm|r)\)/i,Vf=/\((c|tm|r)\)/ig,Yf={c:"\xA9",r:"\xAE",tm:"\u2122"};function Xf(e,t){return Yf[t.toLowerCase()]}function Jf(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(Vf,Xf)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function Qf(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type==="text"&&!t&&ks.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(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function no(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(jf.test(e.tokens[t].content)&&Jf(e.tokens[t].children),ks.test(e.tokens[t].content)&&Qf(e.tokens[t].children))}var ep=/['"]/,As=/['"]/g,xs="\u2019",tp=1e3;function vs(e,t,n){for(;e.length>n;){let r=e.pop();r.isSingleQuote?t.single=r.prevSameQuoteIdx:t.double=r.prevSameQuoteIdx}}function Nn(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function np(e,t){let n="",r=0;t.sort((o,i)=>o.pos-i.pos);for(let o=0;o<t.length;o++){let i=t[o];n+=e.slice(r,i.pos)+i.ch,r=i.pos+1}return n+e.slice(r)}function rp(e,t){let n,r=[],o={single:-1,double:-1},i={};for(let a=0;a<e.length;a++){let u=e[a],s=e[a].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(vs(r,o,n+1),u.type!=="text")continue;let c=u.content,l=0,d=c.length;e:for(;l<d;){As.lastIndex=l;let f=As.exec(c);if(!f)break;let m=!0,p=!0;l=f.index+1;let h=f[0]==="'",b=32;if(f.index-1>=0)b=c.charCodeAt(f.index-1);else for(n=a-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){b=e[n].content.charCodeAt(e[n].content.length-1);break}let E=32;if(l<d)E=c.charCodeAt(l);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 g=Qe(b)||Je(b),y=Qe(E)||Je(E),x=Xe(b),A=Xe(E);if(A?m=!1:y&&(x||g||(m=!1)),x?p=!1:g&&(A||y||(p=!1)),E===34&&f[0]==='"'&&b>=48&&b<=57&&(p=m=!1),m&&p&&(m=g,p=y),!m&&!p){h&&Nn(i,a,f.index,xs);continue}if(p&&(n=h?o.single:o.double,n>=0&&r[n].level===s)){let v=r[n],D,R;h?(D=t.md.options.quotes[2],R=t.md.options.quotes[3]):(D=t.md.options.quotes[0],R=t.md.options.quotes[1]),Nn(i,a,f.index,R),Nn(i,v.tokenIdx,v.contentPos,D),vs(r,o,n);continue e}if(m){if(r.length>=tp)return;r.push({tokenIdx:a,contentPos:f.index,isSingleQuote:h,level:s,prevSameQuoteIdx:h?o.single:o.double}),h?o.single=r.length-1:o.double=r.length-1}else p&&h&&Nn(i,a,f.index,xs)}}Object.keys(i).forEach(function(a){e[a].content=np(e[a].content,i[a])})}function ro(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!ep.test(e.tokens[t].content)||rp(e.tokens[t].children,e)}function oo(e){let t,n,r=e.tokens,o=r.length;for(let i=0;i<o;i++){if(r[i].type!=="inline")continue;let a=r[i].children,u=a.length;for(t=0;t<u;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<u;t++)a[t].type==="text"&&t+1<u&&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 io=[["normalize",Jr],["block",Qr],["inline",eo],["linkify",to],["replacements",no],["smartquotes",ro],["text_join",oo]];function ao(){this.ruler=new nt;for(let e=0;e<io.length;e++)this.ruler.push(io[e][0],io[e][1])}ao.prototype.process=function(e){let t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};ao.prototype.State=ws;var Ss=ao;function Se(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let o=this.src;for(let i=0,a=0,u=0,s=0,c=o.length,l=!1;a<c;a++){let d=o.charCodeAt(a);if(!l)if(z(d)){u++,d===9?s+=4-s%4:s++;continue}else l=!0;(d===10||a===c-1)&&(d!==10&&a++,this.bMarks.push(i),this.eMarks.push(a),this.tShift.push(u),this.sCount.push(s),this.bsCount.push(0),l=!1,u=0,s=0,i=a+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Se.prototype.push=function(e,t,n){let r=new Me(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};Se.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Se.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Se.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){let r=this.src.charCodeAt(t);if(!z(r))break}return t};Se.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!z(this.src.charCodeAt(--t)))return t+1;return t};Se.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t};Se.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Se.prototype.getLines=function(t,n,r,o){if(t>=n)return"";let i=new Array(n-t);for(let a=0,u=t;u<n;u++,a++){let s=0,c=this.bMarks[u],l=c,d;for(u+1<n||o?d=this.eMarks[u]+1:d=this.eMarks[u];l<d&&s<r;){let f=this.src.charCodeAt(l);if(z(f))f===9?s+=4-(s+this.bsCount[u])%4:s++;else if(l-c<this.tShift[u])s++;else break;l++}s>r?i[a]=new Array(s-r+1).join(" ")+this.src.slice(l,d):i[a]=this.src.slice(l,d)}return i.join("")};Se.prototype.Token=Me;var $s=Se;var op=65536;function uo(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Cs(e){let t=[],n=e.length,r=0,o=e.charCodeAt(r),i=!1,a=0,u="";for(;r<n;)o===124&&(i?(u+=e.substring(a,r-1),a=r):(t.push(u+e.substring(a,r)),u="",a=r+1)),i=o===92,r++,o=e.charCodeAt(r);return t.push(u+e.substring(a)),t}function so(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let i=e.bMarks[o]+e.tShift[o];if(i>=e.eMarks[o])return!1;let a=e.src.charCodeAt(i++);if(a!==124&&a!==45&&a!==58||i>=e.eMarks[o])return!1;let u=e.src.charCodeAt(i++);if(u!==124&&u!==45&&u!==58&&!z(u)||a===45&&z(u))return!1;for(;i<e.eMarks[o];){let x=e.src.charCodeAt(i);if(x!==124&&x!==45&&x!==58&&!z(x))return!1;i++}let s=uo(e,t+1),c=s.split("|"),l=[];for(let x=0;x<c.length;x++){let A=c[x].trim();if(!A){if(x===0||x===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(A))return!1;A.charCodeAt(A.length-1)===58?l.push(A.charCodeAt(0)===58?"center":"right"):A.charCodeAt(0)===58?l.push("left"):l.push("")}if(s=uo(e,t).trim(),s.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=Cs(s),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();let d=c.length;if(d===0||d!==l.length)return!1;if(r)return!0;let f=e.parentType;e.parentType="table";let m=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),h=[t,0];p.map=h;let b=e.push("thead_open","thead",1);b.map=[t,t+1];let E=e.push("tr_open","tr",1);E.map=[t,t+1];for(let x=0;x<c.length;x++){let A=e.push("th_open","th",1);l[x]&&(A.attrs=[["style","text-align:"+l[x]]]);let v=e.push("inline","",0);v.content=c[x].trim(),v.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g,y=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let x=!1;for(let v=0,D=m.length;v<D;v++)if(m[v](e,o,n,!0)){x=!0;break}if(x||(s=uo(e,o).trim(),!s)||e.sCount[o]-e.blkIndent>=4||(c=Cs(s),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),y+=d-c.length,y>op))break;if(o===t+2){let v=e.push("tbody_open","tbody",1);v.map=g=[t+2,0]}let A=e.push("tr_open","tr",1);A.map=[o,o+1];for(let v=0;v<d;v++){let D=e.push("td_open","td",1);l[v]&&(D.attrs=[["style","text-align:"+l[v]]]);let R=e.push("inline","",0);R.content=c[v]?c[v].trim():"",R.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return g&&(e.push("tbody_close","tbody",-1),g[1]=o),e.push("table_close","table",-1),h[1]=o,e.parentType=f,e.line=o,!0}function co(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,o=r;continue}break}e.line=o;let i=e.push("code_block","code",0);return i.content=e.getLines(t,o,4+e.blkIndent,!1)+`
32
- `,i.map=[t,e.line],!0}function lo(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>i)return!1;let a=e.src.charCodeAt(o);if(a!==126&&a!==96)return!1;let u=o;o=e.skipChars(o,a);let s=o-u;if(s<3)return!1;let c=e.src.slice(u,o),l=e.src.slice(o,i);if(a===96&&l.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(o=u=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],o<i&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(o)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(o=e.skipChars(o,a),!(o-u<s)&&(o=e.skipSpaces(o),!(o<i)))){f=!0;break}s=e.sCount[t],e.line=d+(f?1:0);let m=e.push("fence","code",0);return m.info=l,m.content=e.getLines(t+1,d,s,!0),m.markup=c,m.map=[t,e.line],!0}function fo(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(r)return!0;let u=[],s=[],c=[],l=[],d=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let m=!1,p;for(p=t;p<n;p++){let y=e.sCount[p]<e.blkIndent;if(o=e.bMarks[p]+e.tShift[p],i=e.eMarks[p],o>=i)break;if(e.src.charCodeAt(o++)===62&&!y){let A=e.sCount[p]+1,v,D;e.src.charCodeAt(o)===32?(o++,A++,D=!1,v=!0):e.src.charCodeAt(o)===9?(v=!0,(e.bsCount[p]+A)%4===3?(o++,A++,D=!1):D=!0):v=!1;let R=A;for(u.push(e.bMarks[p]),e.bMarks[p]=o;o<i;){let L=e.src.charCodeAt(o);if(z(L))L===9?R+=4-(R+e.bsCount[p]+(D?1:0))%4:R++;else break;o++}m=o>=i,s.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(v?1:0),c.push(e.sCount[p]),e.sCount[p]=R-A,l.push(e.tShift[p]),e.tShift[p]=o-e.bMarks[p];continue}if(m)break;let x=!1;for(let A=0,v=d.length;A<v;A++)if(d[A](e,p,n,!0)){x=!0;break}if(x){e.lineMax=p,e.blkIndent!==0&&(u.push(e.bMarks[p]),s.push(e.bsCount[p]),l.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}u.push(e.bMarks[p]),s.push(e.bsCount[p]),l.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}let h=e.blkIndent;e.blkIndent=0;let b=e.push("blockquote_open","blockquote",1);b.markup=">";let E=[t,0];b.map=E,e.md.block.tokenize(e,t,p);let g=e.push("blockquote_close","blockquote",-1);g.markup=">",e.lineMax=a,e.parentType=f,E[1]=e.line;for(let y=0;y<l.length;y++)e.bMarks[y+t]=u[y],e.tShift[y+t]=l[y],e.sCount[y+t]=c[y],e.bsCount[y+t]=s[y];return e.blkIndent=h,!0}function po(e,t,n,r){let o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t],a=e.src.charCodeAt(i++);if(a!==42&&a!==45&&a!==95)return!1;let u=1;for(;i<o;){let c=e.src.charCodeAt(i++);if(c!==a&&!z(c))return!1;c===a&&u++}if(u<3)return!1;if(r)return!0;e.line=t+1;let s=e.push("hr","hr",0);return s.map=[t,e.line],s.markup=Array(u+1).join(String.fromCharCode(a)),!0}function Ds(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(r++);if(o!==42&&o!==45&&o!==43)return-1;if(r<n){let i=e.src.charCodeAt(r);if(!z(i))return-1}return r}function Ns(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],o=n;if(o+1>=r)return-1;let i=e.src.charCodeAt(o++);if(i<48||i>57)return-1;for(;;){if(o>=r)return-1;if(i=e.src.charCodeAt(o++),i>=48&&i<=57){if(o-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return o<r&&(i=e.src.charCodeAt(o),!z(i))?-1:o}function ip(e,t){let n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;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 mo(e,t,n,r){let o,i,a,u,s=t,c=!0;if(e.sCount[s]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[s]-e.listIndent>=4&&e.sCount[s]<e.blkIndent)return!1;let l=!1;r&&e.parentType==="paragraph"&&e.sCount[s]>=e.blkIndent&&(l=!0);let d,f,m;if((m=Ns(e,s))>=0){if(d=!0,a=e.bMarks[s]+e.tShift[s],f=Number(e.src.slice(a,m-1)),l&&f!==1)return!1}else if((m=Ds(e,s))>=0)d=!1;else return!1;if(l&&e.skipSpaces(m)>=e.eMarks[s])return!1;if(r)return!0;let p=e.src.charCodeAt(m-1),h=e.tokens.length;d?(u=e.push("ordered_list_open","ol",1),f!==1&&(u.attrs=[["start",f]])):u=e.push("bullet_list_open","ul",1);let b=[s,0];u.map=b,u.markup=String.fromCharCode(p);let E=!1,g=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";s<n;){i=m,o=e.eMarks[s];let x=e.sCount[s]+m-(e.bMarks[s]+e.tShift[s]),A=x;for(;i<o;){let q=e.src.charCodeAt(i);if(q===9)A+=4-(A+e.bsCount[s])%4;else if(q===32)A++;else break;i++}let v=i,D;v>=o?D=1:D=A-x,D>4&&(D=1);let R=x+D;u=e.push("list_item_open","li",1),u.markup=String.fromCharCode(p);let L=[s,0];u.map=L,d&&(u.info=e.src.slice(a,m-1));let V=e.tight,Y=e.tShift[s],ne=e.sCount[s],re=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=R,e.tight=!0,e.tShift[s]=v-e.bMarks[s],e.sCount[s]=A,v>=o&&e.isEmpty(s+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,s,n,!0),(!e.tight||E)&&(c=!1),E=e.line-s>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=re,e.tShift[s]=Y,e.sCount[s]=ne,e.tight=V,u=e.push("list_item_close","li",-1),u.markup=String.fromCharCode(p),s=e.line,L[1]=s,s>=n||e.sCount[s]<e.blkIndent||e.sCount[s]-e.blkIndent>=4)break;let Z=!1;for(let q=0,w=g.length;q<w;q++)if(g[q](e,s,n,!0)){Z=!0;break}if(Z)break;if(d){if(m=Ns(e,s),m<0)break;a=e.bMarks[s]+e.tShift[s]}else if(m=Ds(e,s),m<0)break;if(p!==e.src.charCodeAt(m-1))break}return d?u=e.push("ordered_list_close","ol",-1):u=e.push("bullet_list_close","ul",-1),u.markup=String.fromCharCode(p),b[1]=s,e.line=s,e.parentType=y,c&&ip(e,h),!0}function ho(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function u(g){let y=e.lineMax;if(g>=y||e.isEmpty(g))return null;let x=!1;if(e.sCount[g]-e.blkIndent>3&&(x=!0),e.sCount[g]<0&&(x=!0),!x){let D=e.md.block.ruler.getRules("reference"),R=e.parentType;e.parentType="reference";let L=!1;for(let V=0,Y=D.length;V<Y;V++)if(D[V](e,g,y,!0)){L=!0;break}if(e.parentType=R,L)return null}let A=e.bMarks[g]+e.tShift[g],v=e.eMarks[g];return e.src.slice(A,v+1)}let s=e.src.slice(o,i+1);i=s.length;let c=-1;for(o=1;o<i;o++){let g=s.charCodeAt(o);if(g===91)return!1;if(g===93){c=o;break}else if(g===10){let y=u(a);y!==null&&(s+=y,i=s.length,a++)}else if(g===92&&(o++,o<i&&s.charCodeAt(o)===10)){let y=u(a);y!==null&&(s+=y,i=s.length,a++)}}if(c<0||s.charCodeAt(c+1)!==58)return!1;for(o=c+2;o<i;o++){let g=s.charCodeAt(o);if(g===10){let y=u(a);y!==null&&(s+=y,i=s.length,a++)}else if(!z(g))break}let l=e.md.helpers.parseLinkDestination(s,o,i);if(!l.ok)return!1;let d=e.md.normalizeLink(l.str);if(!e.md.validateLink(d))return!1;o=l.pos;let f=o,m=a,p=o;for(;o<i;o++){let g=s.charCodeAt(o);if(g===10){let y=u(a);y!==null&&(s+=y,i=s.length,a++)}else if(!z(g))break}let h=e.md.helpers.parseLinkTitle(s,o,i);for(;h.can_continue;){let g=u(a);if(g===null)break;s+=g,o=i,i=s.length,a++,h=e.md.helpers.parseLinkTitle(s,o,i,h)}let b;for(o<i&&p!==o&&h.ok?(b=h.str,o=h.pos):(b="",o=f,a=m);o<i;){let g=s.charCodeAt(o);if(!z(g))break;o++}if(o<i&&s.charCodeAt(o)!==10&&b)for(b="",o=f,a=m;o<i;){let g=s.charCodeAt(o);if(!z(g))break;o++}if(o<i&&s.charCodeAt(o)!==10)return!1;let E=et(s.slice(1,c));return E?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[E]>"u"&&(e.env.references[E]={title:b,href:d}),e.line=a),!0):!1}var Ts=["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"];var ap="[a-zA-Z_:][a-zA-Z0-9:._-]*",up="[^\"'=<>`\\x00-\\x20]+",sp="'[^']*'",cp='"[^"]*"',lp="(?:"+up+"|"+sp+"|"+cp+")",dp="(?:\\s+"+ap+"(?:\\s*=\\s*"+lp+")?)",Os="<[A-Za-z][A-Za-z0-9\\-]*"+dp+"*\\s*\\/?>",Rs="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",fp="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",pp="<[?][\\s\\S]*?[?]>",mp="<![A-Za-z][^>]*>",hp="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Ms=new RegExp("^(?:"+Os+"|"+Rs+"|"+fp+"|"+pp+"|"+mp+"|"+hp+")"),Is=new RegExp("^(?:"+Os+"|"+Rs+")");var rt=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Ts.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Is.source+"\\s*$"),/^$/,!1]];function bo(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let a=e.src.slice(o,i),u=0;for(;u<rt.length&&!rt[u][0].test(a);u++);if(u===rt.length)return!1;if(r)return rt[u][2];let s=t+1,c=rt[u][1].test("");if(!rt[u][1].test(a)){for(;s<n&&!(e.sCount[s]<e.blkIndent&&(c||!e.isEmpty(s)));s++)if(o=e.bMarks[s]+e.tShift[s],i=e.eMarks[s],a=e.src.slice(o,i),rt[u][1].test(a)){a.length!==0&&s++;break}}e.line=s;let l=e.push("html_block","",0);return l.map=[t,s],l.content=e.getLines(t,s,e.blkIndent,!0),!0}function go(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(o);if(a!==35||o>=i)return!1;let u=1;for(a=e.src.charCodeAt(++o);a===35&&o<i&&u<=6;)u++,a=e.src.charCodeAt(++o);if(u>6||o<i&&!z(a))return!1;if(r)return!0;i=e.skipSpacesBack(i,o);let s=e.skipCharsBack(i,35,o);s>o&&z(e.src.charCodeAt(s-1))&&(i=s),e.line=t+1;let c=e.push("heading_open","h"+String(u),1);c.markup="########".slice(0,u),c.map=[t,e.line];let l=e.push("inline","",0);l.content=tt(e.src.slice(o,i)),l.map=[t,e.line],l.children=[];let d=e.push("heading_close","h"+String(u),-1);return d.markup="########".slice(0,u),!0}function _o(e,t,n){let r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.parentType;e.parentType="paragraph";let i=0,a,u=t+1;for(;u<n&&!e.isEmpty(u);u++){if(e.sCount[u]-e.blkIndent>3)continue;if(e.sCount[u]>=e.blkIndent){let m=e.bMarks[u]+e.tShift[u],p=e.eMarks[u];if(m<p&&(a=e.src.charCodeAt(m),(a===45||a===61)&&(m=e.skipChars(m,a),m=e.skipSpaces(m),m>=p))){i=a===61?1:2;break}}if(e.sCount[u]<0)continue;let f=!1;for(let m=0,p=r.length;m<p;m++)if(r[m](e,u,n,!0)){f=!0;break}if(f)break}if(!i)return e.parentType=o,!1;let s=tt(e.getLines(t,u,e.blkIndent,!1));e.line=u+1;let c=e.push("heading_open","h"+String(i),1);c.markup=String.fromCharCode(a),c.map=[t,e.line];let l=e.push("inline","",0);l.content=s,l.map=[t,e.line-1],l.children=[];let d=e.push("heading_close","h"+String(i),-1);return d.markup=String.fromCharCode(a),e.parentType=o,!0}function Eo(e,t,n){let r=e.md.block.ruler.getRules("paragraph"),o=e.parentType,i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let c=!1;for(let l=0,d=r.length;l<d;l++)if(r[l](e,i,n,!0)){c=!0;break}if(c)break}let a=tt(e.getLines(t,i,e.blkIndent,!1));e.line=i;let u=e.push("paragraph_open","p",1);u.map=[t,e.line];let s=e.push("inline","",0);return s.content=a,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}var Tn=[["table",so,["paragraph","reference"]],["code",co],["fence",lo,["paragraph","reference","blockquote","list"]],["blockquote",fo,["paragraph","reference","blockquote","list"]],["hr",po,["paragraph","reference","blockquote","list"]],["list",mo,["paragraph","reference","blockquote"]],["reference",ho],["html_block",bo,["paragraph","reference","blockquote"]],["heading",go,["paragraph","reference","blockquote"]],["lheading",_o],["paragraph",Eo]];function On(){this.ruler=new nt;for(let e=0;e<Tn.length;e++)this.ruler.push(Tn[e][0],Tn[e][1],{alt:(Tn[e][2]||[]).slice()})}On.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(""),o=r.length,i=e.md.options.maxNesting,a=t,u=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=i){e.line=n;break}let s=e.line,c=!1;for(let l=0;l<o;l++)if(c=r[l](e,a,n,!1),c){if(s>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!u,e.isEmpty(e.line-1)&&(u=!0),a=e.line,a<n&&e.isEmpty(a)&&(u=!0,a++,e.line=a)}};On.prototype.parse=function(e,t,n,r){if(!e)return;let o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)};On.prototype.State=$s;var Ls=On;function zt(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}zt.prototype.pushPending=function(){let e=new Me("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};zt.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new Me(e,t,n),o=null;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=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r};zt.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),o;if(e===0)o=32;else if(e===1)o=this.src.charCodeAt(0),(o&63488)===55296&&(o=65533);else if(o=this.src.charCodeAt(e-1),(o&64512)===56320){let b=this.src.charCodeAt(e-2);o=(b&64512)===55296?65536+(b-55296<<10)+(o-56320):65533}else(o&64512)===55296&&(o=65533);let i=e;for(;i<n&&this.src.charCodeAt(i)===r;)i++;let a=i-e,u=i<n?this.src.charCodeAt(i):32;if((u&64512)===55296){let b=this.src.charCodeAt(i+1);u=(b&64512)===56320?65536+(u-55296<<10)+(b-56320):65533}else(u&64512)===56320&&(u=65533);let s=Qe(o)||Je(o),c=Qe(u)||Je(u),l=Xe(o),d=Xe(u),f=!d&&(!c||l||s),m=!l&&(!s||d||c);return{can_open:f&&(t||!m||s),can_close:m&&(t||!f||c),length:a}};zt.prototype.Token=Me;var Fs=zt;function bp(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 yo(e,t){let n=e.pos;for(;n<e.posMax&&!bp(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function gp(e){return e>=65&&e<=90||e>=97&&e<=122}function _p(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function wo(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 o=n-Math.min(10,e.pending.length,n),i=n;for(;i>o&&_p(e.src.charCodeAt(i-1));)i--;if(i===n||!gp(e.src.charCodeAt(i)))return!1;let a=n-i,u=e.md.linkify.matchAtStart(e.src.slice(i));if(!u)return!1;let s=u.url;if(s.length<=a)return!1;let c=s.length;for(;c>0&&s.charCodeAt(c-1)===42;)c--;c!==s.length&&(s=s.slice(0,c));let l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-a);let d=e.push("link_open","a",1);d.attrs=[["href",l]],d.markup="linkify",d.info="auto";let f=e.push("text","",0);f.content=e.md.normalizeLinkText(s);let m=e.push("link_close","a",-1);m.markup="linkify",m.info="auto"}return e.pos+=s.length-a,!0}function ko(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let i=r-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),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<o&&z(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var Ao=[];for(let e=0;e<256;e++)Ao.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Ao[e.charCodeAt(0)]=1});function xo(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),!!z(o));)n++;return e.pos=n,!0}if(o===32){if(!t){let u=e.push("text_special","",0);u.content="\\",u.markup="\\",u.info="escape"}return e.pos=n,!0}let i=e.src[n];if(o>=55296&&o<=56319&&n+1<r){let u=e.src.charCodeAt(n+1);u>=56320&&u<=57343&&(i+=e.src[n+1],n++)}let a="\\"+i;if(!t){let u=e.push("text_special","",0);o<256&&Ao[o]!==0?u.content=i:u.content=a,u.markup=a,u.info="escape"}return e.pos=n+1,!0}function vo(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let o=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(o,n),u=a.length;if(e.backticksScanned&&(e.backticks[u]||0)<=o)return t||(e.pending+=a),e.pos+=u,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let l=s-c;if(l===u){if(!t){let d=e.push("code_inline","code",0);d.markup=a,d.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=s,!0}e.backticks[l]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=u,!0}function Ep(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let o=e.scanDelims(e.pos,!0),i=o.length,a=String.fromCharCode(r);if(i<2)return!1;let u;i%2&&(u=e.push("text","",0),u.content=a,i--);for(let s=0;s<i;s+=2)u=e.push("text","",0),u.content=a+a,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0}function Bs(e,t){let n,r=[],o=t.length;for(let i=0;i<o;i++){let a=t[i];if(a.marker!==126||a.end===-1)continue;let u=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[u.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[u.token-1].type==="text"&&e.tokens[u.token-1].content==="~"&&r.push(u.token-1)}for(;r.length;){let i=r.pop(),a=i+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,i!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[i],e.tokens[i]=n)}}function yp(e){let t=e.tokens_meta,n=e.tokens_meta.length;Bs(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Bs(e,t[r].delimiters)}var So={tokenize:Ep,postProcess:yp};function wp(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let o=e.scanDelims(e.pos,r===42);for(let i=0;i<o.length;i++){let a=e.push("text","",0);a.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0}function Us(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let o=t[r];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;let i=t[o.end],a=r>0&&t[r-1].end===o.end+1&&t[r-1].marker===o.marker&&t[r-1].token===o.token-1&&t[o.end+1].token===i.token+1,u=String.fromCharCode(o.marker),s=e.tokens[o.token];s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?u+u:u,s.content="";let c=e.tokens[i.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?u+u:u,c.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[o.end+1].token].content="",r--)}}function kp(e){let t=e.tokens_meta,n=e.tokens_meta.length;Us(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Us(e,t[r].delimiters)}var $o={tokenize:wp,postProcess:kp};function Co(e,t){let n,r,o,i,a="",u="",s=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let l=e.pos,d=e.posMax,f=e.pos+1,m=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(m<0)return!1;let p=m+1;if(p<d&&e.src.charCodeAt(p)===40){for(c=!1,p++;p<d&&(n=e.src.charCodeAt(p),!(!z(n)&&n!==10));p++);if(p>=d)return!1;if(s=p,o=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),o.ok){for(a=e.md.normalizeLink(o.str),e.md.validateLink(a)?p=o.pos:a="",s=p;p<d&&(n=e.src.charCodeAt(p),!(!z(n)&&n!==10));p++);if(o=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<d&&s!==p&&o.ok)for(u=o.str,p=o.pos;p<d&&(n=e.src.charCodeAt(p),!(!z(n)&&n!==10));p++);}(p>=d||e.src.charCodeAt(p)!==41)&&(c=!0),p++}if(c){if(typeof e.env.references>"u")return!1;if(p<d&&e.src.charCodeAt(p)===91?(s=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?r=e.src.slice(s,p++):p=m+1):p=m+1,r||(r=e.src.slice(f,m)),i=e.env.references[et(r)],!i)return e.pos=l,!1;a=i.href,u=i.title}if(!t){e.pos=f,e.posMax=m;let h=e.push("link_open","a",1),b=[["href",a]];h.attrs=b,u&&b.push(["title",u]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=d,!0}function Do(e,t){let n,r,o,i,a,u,s,c,l="",d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let m=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(i=p+1,i<f&&e.src.charCodeAt(i)===40){for(i++;i<f&&(n=e.src.charCodeAt(i),!(!z(n)&&n!==10));i++);if(i>=f)return!1;for(c=i,u=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),u.ok&&(l=e.md.normalizeLink(u.str),e.md.validateLink(l)?i=u.pos:l=""),c=i;i<f&&(n=e.src.charCodeAt(i),!(!z(n)&&n!==10));i++);if(u=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<f&&c!==i&&u.ok)for(s=u.str,i=u.pos;i<f&&(n=e.src.charCodeAt(i),!(!z(n)&&n!==10));i++);else s="";if(i>=f||e.src.charCodeAt(i)!==41)return e.pos=d,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<f&&e.src.charCodeAt(i)===91?(c=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?o=e.src.slice(c,i++):i=p+1):i=p+1,o||(o=e.src.slice(m,p)),a=e.env.references[et(o)],!a)return e.pos=d,!1;l=a.href,s=a.title}if(!t){r=e.src.slice(m,p);let h=[];e.md.inline.parse(r,e.md,e.env,h);let b=e.push("image","img",0),E=[["src",l],["alt",""]];b.attrs=E,b.children=h,b.content=r,s&&E.push(["title",s])}return e.pos=i,e.posMax=f,!0}var Ap=/^([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])?)*)$/,xp=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function No(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;let a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}let i=e.src.slice(r+1,n);if(xp.test(i)){let a=e.md.normalizeLink(i);if(!e.md.validateLink(a))return!1;if(!t){let u=e.push("link_open","a",1);u.attrs=[["href",a]],u.markup="autolink",u.info="auto";let s=e.push("text","",0);s.content=e.md.normalizeLinkText(i);let c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}if(Ap.test(i)){let a=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(a))return!1;if(!t){let u=e.push("link_open","a",1);u.attrs=[["href",a]],u.markup="autolink",u.info="auto";let s=e.push("text","",0);s.content=e.md.normalizeLinkText(i);let c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}return!1}function vp(e){return/^<a[>\s]/i.test(e)}function Sp(e){return/^<\/a\s*>/i.test(e)}function $p(e){let t=e|32;return t>=97&&t<=122}function To(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 o=e.src.charCodeAt(r+1);if(o!==33&&o!==63&&o!==47&&!$p(o))return!1;let i=e.src.slice(r).match(Ms);if(!i)return!1;if(!t){let a=e.push("html_inline","",0);a.content=i[0],vp(a.content)&&e.linkLevel++,Sp(a.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}var Cp=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Dp=/^&([a-z][a-z0-9]{1,31});/i;function Oo(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(Cp);if(i){if(!t){let a=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),u=e.push("text_special","",0);u.content=Dn(a)?At(a):At(65533),u.markup=i[0],u.info="entity"}return e.pos+=i[0].length,!0}}else{let i=e.src.slice(n).match(Dp);if(i){let a=Pt(i[0]);if(a!==i[0]){if(!t){let u=e.push("text_special","",0);u.content=a,u.markup=i[0],u.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function Ps(e){let t={},n=e.length;if(!n)return;let r=0,o=-2,i=[];for(let a=0;a<n;a++){let u=e[a];if(i.push(0),(e[r].marker!==u.marker||o!==u.token-1)&&(r=a),o=u.token,u.length=u.length||0,!u.close)continue;t.hasOwnProperty(u.marker)||(t[u.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[u.marker][(u.open?3:0)+u.length%3],c=r-i[r]-1,l=c;for(;c>s;c-=i[c]+1){let d=e[c];if(d.marker===u.marker&&d.open&&d.end<0){let f=!1;if((d.close||u.open)&&(d.length+u.length)%3===0&&(d.length%3!==0||u.length%3!==0)&&(f=!0),!f){let m=c>0&&!e[c-1].open?i[c-1]+1:0;i[a]=a-c+m,i[c]=m,u.open=!1,d.end=a,d.close=!1,l=-1,o=-2;break}}}l!==-1&&(t[u.marker][(u.open?3:0)+(u.length||0)%3]=l)}}function Ro(e){let t=e.tokens_meta,n=e.tokens_meta.length;Ps(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ps(t[r].delimiters)}function Mo(e){let t,n,r=0,o=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,o[t].type==="text"&&t+1<i&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}var Io=[["text",yo],["linkify",wo],["newline",ko],["escape",xo],["backticks",vo],["strikethrough",So.tokenize],["emphasis",$o.tokenize],["link",Co],["image",Do],["autolink",No],["html_inline",To],["entity",Oo]],Lo=[["balance_pairs",Ro],["strikethrough",So.postProcess],["emphasis",$o.postProcess],["fragments_join",Mo]];function qt(){this.ruler=new nt;for(let e=0;e<Io.length;e++)this.ruler.push(Io[e][0],Io[e][1]);this.ruler2=new nt;for(let e=0;e<Lo.length;e++)this.ruler2.push(Lo[e][0],Lo[e][1])}qt.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let a=!1;if(e.level<o){for(let u=0;u<r;u++)if(e.level++,a=n[u](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++,i[t]=e.pos};qt.prototype.tokenize=function(e){let t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){let i=e.pos,a=!1;if(e.level<o){for(let u=0;u<n;u++)if(a=t[u](e,!1),a){if(i>=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()};qt.prototype.parse=function(e,t,n,r){let o=new this.State(e,t,n,r);this.tokenize(o);let i=this.ruler2.getRules(""),a=i.length;for(let u=0;u<a;u++)i[u](o)};qt.prototype.State=Fs;var zs=qt;function qs(e){let t={};e=e||{},t.src_Any=kn.source,t.src_Cc=An.source,t.src_Z=vn.source,t.src_P=yt.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");let n="[><\uFF5C]";return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain="(?:"+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy="(?:"+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uFF5C]|${t.src_ZPCc}))((?![$+<=>^\`|\uFF5C])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uFF5C]|${t.src_ZPCc}))((?![$+<=>^\`|\uFF5C])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function Fo(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Mn(e){return Object.prototype.toString.call(e)}function Np(e){return Mn(e)==="[object String]"}function Tp(e){return Mn(e)==="[object Object]"}function Op(e){return Mn(e)==="[object RegExp]"}function Ws(e){return Mn(e)==="[object Function]"}function Rp(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Gs={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Mp(e){return Object.keys(e||{}).reduce(function(t,n){return t||Gs.hasOwnProperty(n)},!1)}var Ip={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=new RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Lp="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]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Fp="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function Bp(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Hs(){return function(e,t){t.normalize(e)}}function Rn(e){let t=e.re=qs(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Lp),n.push(t.src_xn),t.src_tlds=n.join("|");function r(u){return u.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");let o=[];e.__compiled__={};function i(u,s){throw new Error(`(LinkifyIt) Invalid schema "${u}": ${s}`)}Object.keys(e.__schemas__).forEach(function(u){let s=e.__schemas__[u];if(s===null)return;let c={validate:null,link:null};if(e.__compiled__[u]=c,Tp(s)){Op(s.validate)?c.validate=Bp(s.validate):Ws(s.validate)?c.validate=s.validate:i(u,s),Ws(s.normalize)?c.normalize=s.normalize:s.normalize?i(u,s):c.normalize=Hs();return}if(Np(s)){o.push(u);return}i(u,s)}),o.forEach(function(u){e.__compiled__[e.__schemas__[u]]&&(e.__compiled__[u].validate=e.__compiled__[e.__schemas__[u]].validate,e.__compiled__[u].normalize=e.__compiled__[e.__schemas__[u]].normalize)}),e.__compiled__[""]={validate:null,normalize:Hs()};let a=Object.keys(e.__compiled__).filter(function(u){return u.length>0&&e.__compiled__[u]}).map(Rp).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uFF5C]|${t.src_ZPCc}))(${a})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uFF5C]|${t.src_ZPCc}))(${a})`,"ig"),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,"i"),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,"i")}function Zs(e,t,n,r){let o=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=o,this.text=o,this.url=o}function me(e,t){if(!(this instanceof me))return new me(e,t);t||Mp(e)&&(t=e,e={}),this.__opts__=Fo({},Gs,t),this.__schemas__=Fo({},Ip,e),this.__compiled__={},this.__tlds__=Fp,this.__tlds_replaced__=!1,this.re={},Rn(this)}me.prototype.add=function(t,n){return this.__schemas__[t]=n,Rn(this),this};me.prototype.set=function(t){return this.__opts__=Fo(this.__opts__,t),this};me.prototype.test=function(t){if(!t.length)return!1;let n,r;if(this.re.schema_test.test(t)){for(r=this.re.schema_search,r.lastIndex=0;(n=r.exec(t))!==null;)if(this.testSchemaAt(t,n[2],r.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};me.prototype.pretest=function(t){return this.re.pretest.test(t)};me.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};me.prototype.match=function(t){let n=[],r=[],o=[],i=[],a,u,s;function c(f,m){return f?m?f.index!==m.index?f.index<m.index?f:m:f.lastIndex>=m.lastIndex?f:m:f:m}if(!t.length)return null;if(this.re.schema_test.test(t))for(s=this.re.schema_search,s.lastIndex=0;(a=s.exec(t))!==null;)u=this.testSchemaAt(t,a[2],s.lastIndex),u&&r.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+u});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(s=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,s.lastIndex=0;(a=s.exec(t))!==null;)o.push({schema:"",index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(s=this.re.email_fuzzy_global,s.lastIndex=0;(a=s.exec(t))!==null;)i.push({schema:"mailto:",index:a.index+a[1].length,lastIndex:a.index+a[0].length});let l=[0,0,0],d=0;for(;;){let f=[r[l[0]],i[l[1]],o[l[2]]],m=c(c(f[0],f[1]),f[2]);if(!m)break;if(m===f[0]?l[0]++:m===f[1]?l[1]++:l[2]++,m.index<d)continue;let p=new Zs(t,m.schema,m.index,m.lastIndex);this.__compiled__[p.schema].normalize(p,this),n.push(p),d=m.lastIndex}return n.length?n:null};me.prototype.matchAtStart=function(t){if(!t.length)return null;let n=this.re.schema_at_start.exec(t);if(!n)return null;let r=this.testSchemaAt(t,n[2],n[0].length);if(!r)return null;let o=new Zs(t,n[2],n.index+n[1].length,n.index+n[0].length+r);return this.__compiled__[o.schema].normalize(o,this),o};me.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,o,i){return r!==i[o-1]}).reverse(),Rn(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Rn(this),this)};me.prototype.normalize=function(t){t.schema||(t.url=`http://${t.url}`),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url=`mailto:${t.url}`)};me.prototype.onCompile=function(){};var Ks=me;var Up=/^xn--/,Pp=/[^\0-\x7F]/,zp=/[\x2E\u3002\uFF0E\uFF61]/g,qp={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Bo=35,$e=Math.floor,Uo=String.fromCharCode;function ze(e){throw new RangeError(qp[e])}function Wp(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Vs(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(zp,".");let o=e.split("."),i=Wp(o,t).join(".");return r+i}function Ys(e){let t=[],n=0,r=e.length;for(;n<r;){let o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){let i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}var Hp=e=>String.fromCodePoint(...e),Gp=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:36},js=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Xs=function(e,t,n){let r=0;for(e=n?$e(e/700):e>>1,e+=$e(e/t);e>Bo*26>>1;r+=36)e=$e(e/Bo);return $e(r+(Bo+1)*e/(e+38))},Js=function(e){let t=[],n=e.length,r=0,o=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let u=0;u<a;++u)e.charCodeAt(u)>=128&&ze("not-basic"),t.push(e.charCodeAt(u));for(let u=a>0?a+1:0;u<n;){let s=r;for(let l=1,d=36;;d+=36){u>=n&&ze("invalid-input");let f=Gp(e.charCodeAt(u++));f>=36&&ze("invalid-input"),f>$e((2147483647-r)/l)&&ze("overflow"),r+=f*l;let m=d<=i?1:d>=i+26?26:d-i;if(f<m)break;let p=36-m;l>$e(2147483647/p)&&ze("overflow"),l*=p}let c=t.length+1;i=Xs(r-s,c,s==0),$e(r/c)>2147483647-o&&ze("overflow"),o+=$e(r/c),r%=c,t.splice(r++,0,o)}return String.fromCodePoint(...t)},Qs=function(e){let t=[];e=Ys(e);let n=e.length,r=128,o=0,i=72;for(let s of e)s<128&&t.push(Uo(s));let a=t.length,u=a;for(a&&t.push("-");u<n;){let s=2147483647;for(let l of e)l>=r&&l<s&&(s=l);let c=u+1;s-r>$e((2147483647-o)/c)&&ze("overflow"),o+=(s-r)*c,r=s;for(let l of e)if(l<r&&++o>2147483647&&ze("overflow"),l===r){let d=o;for(let f=36;;f+=36){let m=f<=i?1:f>=i+26?26:f-i;if(d<m)break;let p=d-m,h=36-m;t.push(Uo(js(m+p%h,0))),d=$e(p/h)}t.push(Uo(js(d,0))),i=Xs(o,c,u===a),o=0,++u}++o,++r}return t.join("")},Zp=function(e){return Vs(e,function(t){return Up.test(t)?Js(t.slice(4).toLowerCase()):t})},Kp=function(e){return Vs(e,function(t){return Pp.test(t)?"xn--"+Qs(t):t})},jp={version:"2.3.1",ucs2:{decode:Ys,encode:Hp},decode:Js,encode:Qs,toASCII:Kp,toUnicode:Zp};var Po=jp;var ec={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:{}}};var tc={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","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}};var nc={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","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"]}}};var Vp={default:ec,zero:tc,commonmark:nc},Yp=/^(vbscript|javascript|file|data):/,Xp=/^data:image\/(gif|png|jpeg|webp);/;function Jp(e){let t=e.trim().toLowerCase();return Yp.test(t)?Xp.test(t):!0}var rc=["http:","https:","mailto:"];function Qp(e){let t=Ut(e,!0);if(t.hostname&&(!t.protocol||rc.indexOf(t.protocol)>=0))try{t.hostname=Po.toASCII(t.hostname)}catch{}return En(Et(t))}function em(e){let t=Ut(e,!0);if(t.hostname&&(!t.protocol||rc.indexOf(t.protocol)>=0))try{t.hostname=Po.toUnicode(t.hostname)}catch{}return Bt(Et(t),Bt.defaultChars+"%")}function _e(e,t){if(!(this instanceof _e))return new _e(e,t);t||Cn(e)||(t=e||{},e="default"),this.inline=new zs,this.block=new Ls,this.core=new Ss,this.renderer=new Es,this.linkify=new Ks,this.validateLink=Jp,this.normalizeLink=Qp,this.normalizeLinkText=em,this.utils=Kr,this.helpers=kt({},Xr),this.options={},this.configure(e),t&&this.set(t)}_e.prototype.set=function(e){return kt(this.options,e),this};_e.prototype.configure=function(e){let t=this;if(Cn(e)){let n=e;if(e=Vp[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};_e.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(o){return n.indexOf(o)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};_e.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(o){return n.indexOf(o)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};_e.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};_e.prototype.parse=function(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};_e.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};_e.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};_e.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var In=_e;var tm=[137,80,78,71,13,10,26,10],nm="CgBI",rm=new Set(["GIF87a","GIF89a"]),om=4096,im={px:1,pt:96/72,pc:16,in:96,cm:96/2.54,mm:96/25.4,q:96/101.6};function Fn(e){return!(e instanceof Uint8Array)||e.length===0?null:am(e)??um(e)??cm(e)??lm(e)??dm(e)}function am(e){if(!mm(e,tm,0))return null;let t=8;return e.length>=16&&St(e,12,4)===nm&&(t+=12+qo(e,8)),e.length<t+16||St(e,t+4,4)!=="IHDR"?null:Ce(qo(e,t+8),qo(e,t+12))}function um(e){if(e.length<4||e[0]!==255||e[1]!==216)return null;let t=2;for(;t+1<e.length;){if(e[t]!==255)return null;let n=e[t+1];if(n===255){t+=1;continue}if(t+=2,n===1||n>=208&&n<=215)continue;if(n===217||n===218||t+1>=e.length)return null;let r=zo(e,t);if(r<2||t+r>e.length)return null;if(sm(n))return r<7?null:Ce(zo(e,t+5),zo(e,t+3));t+=r}return null}function sm(e){return e<192||e>207?!1:e!==196&&e!==200&&e!==204}function cm(e){return e.length<10||!rm.has(St(e,0,6))?null:Ce(Ln(e,6),Ln(e,8))}function lm(e){if(e.length<16||St(e,0,4)!=="RIFF"||St(e,8,4)!=="WEBP")return null;let t=St(e,12,4);if(t==="VP8 ")return e.length<30||e[23]!==157||e[24]!==1||e[25]!==42?null:Ce(Ln(e,26)&16383,Ln(e,28)&16383);if(t==="VP8L"){if(e.length<25||e[20]!==47)return null;let n=hm(e,21);return Ce((n&16383)+1,(n>>>14&16383)+1)}return t==="VP8X"?e.length<30?null:Ce(ic(e,24)+1,ic(e,27)+1):null}function dm(e){let t=pm(e);if(!/^\s*</.test(t))return null;let n=t.match(/<svg\b[^>]*>/i);if(!n)return null;let r=oc(Wo(n[0],"width")),o=oc(Wo(n[0],"height"));if(r!==null&&o!==null)return Ce(r,o);let i=fm(n[0]);return i?r!==null?Ce(r,r*i.height/i.width):o!==null?Ce(o*i.width/i.height,o):Ce(i.width,i.height):null}function fm(e){let t=Wo(e,"viewBox");if(t===null)return null;let n=t.trim().split(/[\s,]+/);if(n.length!==4)return null;let r=Number(n[2]),o=Number(n[3]);return!(r>0)||!(o>0)?null:{width:r,height:o}}function Wo(e,t){let n=e.match(new RegExp(`[\\s"']${t}\\s*=\\s*["']([^"']*)["']`,"i"));return n?n[1]:null}function oc(e){if(e===null)return null;let t=/^\s*([0-9]*\.?[0-9]+)\s*([a-z]*)\s*$/i.exec(e);if(!t)return null;let n=t[2]?im[t[2].toLowerCase()]:1;return n===void 0?null:Number(t[1])*n}function pm(e){return new TextDecoder("utf-8").decode(e.subarray(0,om))}function Ce(e,t){let n=Math.round(e),r=Math.round(t);return!Number.isFinite(n)||!Number.isFinite(r)||n<=0||r<=0?null:{width:n,height:r}}function mm(e,t,n){if(e.length<n+t.length)return!1;for(let r=0;r<t.length;r++)if(e[n+r]!==t[r])return!1;return!0}function St(e,t,n){let r="";for(let o=0;o<n;o++)r+=String.fromCharCode(e[t+o]);return r}function zo(e,t){return e[t]<<8|e[t+1]}function Ln(e,t){return e[t]|e[t+1]<<8}function qo(e,t){return e[t]*16777216+(e[t+1]<<16|e[t+2]<<8|e[t+3])}function hm(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function ic(e,t){return e[t]|e[t+1]<<8|e[t+2]<<16}var Ie=new In({html:!1,highlight:Nr});Ie.use(bc);Ie.use(gc);Ie.use(dc);Ie.use(fc);Ie.use(mc);Ie.use(_c);Ie.use(pc);var De=null;function Go(e){return e?.html!==!0&&e?.html!=="true"?Ie:(De||(De=new In({html:!0,highlight:Nr}),De.use(bc),De.use(gc),De.use(dc),De.use(fc),De.use(mc),De.use(_c),De.use(pc)),De)}function lc(e,t,n=0){let r=[];e=Em(e,t,r,n);let o=(t.md??Ie).render(e,{resolveBinding:i=>Zo(i,t),wd:{ctx:t,index:n,attrs:r},headingSlugs:t.comp.headingSlugs});return r.length?o.replace(Ho,(i,a)=>r[Number(a)]?k(r[Number(a)].raw):i):o}function ac(e,t,n,r){let o=r?"its build-time value is painted once and then never updates":"it stays literal text";e.comp.warnings.push(`${e.file}:${$(e,t)}: "{ ${n} }" is reactive, but raw HTML (an attribute or an html block) cannot bind, so ${o}. Move the value into ordinary text or a markdown link/image destination (where { ${n} } does bind), or update it from a colocated .js with wd.subscribe.`)}var bm=e=>`~wd-attr-${e}~`,Ho=/~wd-attr-(\d+)~/g,gm=/[\u0000-\u0020()<>"'`\\\u007F]/g,Bn=e=>String(e).replace(gm,t=>`%${t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0")}`);function _m(e){let t=[],n=[...e.matchAll(/`+/g)];for(let r=0;r<n.length;r++)for(let o=r+1;o<n.length;o++)if(n[o][0].length===n[r][0].length){t.push([n[r].index,n[o].index+n[o][0].length]),r=o;break}return t}function Em(e,t,n,r){let o=e.split(`
31
+ `),t=t.replace(Gf,"\uFFFD"),e.src=t}function Qr(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 eo(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let o=t[n];o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)}}function Zf(e){return/^<a[>\s]/i.test(e)}function Kf(e){return/^<\/a\s*>/i.test(e)}function to(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.pretest(t[n].content))continue;let o=t[n].children,i=[],a=0;for(let u=o.length-1;u>=0;u--){let s=o[u];if(s.type==="link_close"){for(u--;o[u].level!==s.level&&o[u].type!=="link_open";)u--;continue}if(s.type==="html_inline"&&(Zf(s.content)&&a>0&&a--,Kf(s.content)&&a++),!(a>0)&&s.type==="text"&&e.md.linkify.test(s.content)){let c=s.content,l=e.md.linkify.match(c),d=[],f=s.level,m=0;l.length>0&&l[0].index===0&&u>0&&o[u-1].type==="text_special"&&(l=l.slice(1));for(let p=0;p<l.length;p++){let h=l[p].url,b=e.md.normalizeLink(h);if(!e.md.validateLink(b))continue;let E=l[p].text;l[p].schema?l[p].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 g=l[p].index;if(g>m){let v=new e.Token("text","",0);v.content=c.slice(m,g),v.level=f,d.push(v)}let y=new e.Token("link_open","a",1);y.attrs=[["href",b]],y.level=f++,y.markup="linkify",y.info="auto",d.push(y);let x=new e.Token("text","",0);x.content=E,x.level=f,d.push(x);let A=new e.Token("link_close","a",-1);A.level=--f,A.markup="linkify",A.info="auto",d.push(A),m=l[p].lastIndex}if(m<c.length){let p=new e.Token("text","",0);p.content=c.slice(m),p.level=f,d.push(p)}i.push({index:u,nodes:d})}}if(i.length>0){let u=o.length;for(let d of i)u+=d.nodes.length-1;let s=new Array(u),c=0,l=0;i.reverse();for(let d=0;d<o.length;d++){let f=i[c];if(f?.index===d){for(let m of f.nodes)s[l++]=m;c++}else s[l++]=o[d]}t[n].children=s}}}var ks=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,jf=/\((c|tm|r)\)/i,Vf=/\((c|tm|r)\)/ig,Yf={c:"\xA9",r:"\xAE",tm:"\u2122"};function Xf(e,t){return Yf[t.toLowerCase()]}function Jf(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(Vf,Xf)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function Qf(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type==="text"&&!t&&ks.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(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function no(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(jf.test(e.tokens[t].content)&&Jf(e.tokens[t].children),ks.test(e.tokens[t].content)&&Qf(e.tokens[t].children))}var ep=/['"]/,As=/['"]/g,xs="\u2019",tp=1e3;function vs(e,t,n){for(;e.length>n;){let r=e.pop();r.isSingleQuote?t.single=r.prevSameQuoteIdx:t.double=r.prevSameQuoteIdx}}function Nn(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function np(e,t){let n="",r=0;t.sort((o,i)=>o.pos-i.pos);for(let o=0;o<t.length;o++){let i=t[o];n+=e.slice(r,i.pos)+i.ch,r=i.pos+1}return n+e.slice(r)}function rp(e,t){let n,r=[],o={single:-1,double:-1},i={};for(let a=0;a<e.length;a++){let u=e[a],s=e[a].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(vs(r,o,n+1),u.type!=="text")continue;let c=u.content,l=0,d=c.length;e:for(;l<d;){As.lastIndex=l;let f=As.exec(c);if(!f)break;let m=!0,p=!0;l=f.index+1;let h=f[0]==="'",b=32;if(f.index-1>=0)b=c.charCodeAt(f.index-1);else for(n=a-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){b=e[n].content.charCodeAt(e[n].content.length-1);break}let E=32;if(l<d)E=c.charCodeAt(l);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 g=Qe(b)||Je(b),y=Qe(E)||Je(E),x=Xe(b),A=Xe(E);if(A?m=!1:y&&(x||g||(m=!1)),x?p=!1:g&&(A||y||(p=!1)),E===34&&f[0]==='"'&&b>=48&&b<=57&&(p=m=!1),m&&p&&(m=g,p=y),!m&&!p){h&&Nn(i,a,f.index,xs);continue}if(p&&(n=h?o.single:o.double,n>=0&&r[n].level===s)){let v=r[n],N,R;h?(N=t.md.options.quotes[2],R=t.md.options.quotes[3]):(N=t.md.options.quotes[0],R=t.md.options.quotes[1]),Nn(i,a,f.index,R),Nn(i,v.tokenIdx,v.contentPos,N),vs(r,o,n);continue e}if(m){if(r.length>=tp)return;r.push({tokenIdx:a,contentPos:f.index,isSingleQuote:h,level:s,prevSameQuoteIdx:h?o.single:o.double}),h?o.single=r.length-1:o.double=r.length-1}else p&&h&&Nn(i,a,f.index,xs)}}Object.keys(i).forEach(function(a){e[a].content=np(e[a].content,i[a])})}function ro(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!ep.test(e.tokens[t].content)||rp(e.tokens[t].children,e)}function oo(e){let t,n,r=e.tokens,o=r.length;for(let i=0;i<o;i++){if(r[i].type!=="inline")continue;let a=r[i].children,u=a.length;for(t=0;t<u;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<u;t++)a[t].type==="text"&&t+1<u&&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 io=[["normalize",Jr],["block",Qr],["inline",eo],["linkify",to],["replacements",no],["smartquotes",ro],["text_join",oo]];function ao(){this.ruler=new nt;for(let e=0;e<io.length;e++)this.ruler.push(io[e][0],io[e][1])}ao.prototype.process=function(e){let t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};ao.prototype.State=ws;var Ss=ao;function Se(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let o=this.src;for(let i=0,a=0,u=0,s=0,c=o.length,l=!1;a<c;a++){let d=o.charCodeAt(a);if(!l)if(z(d)){u++,d===9?s+=4-s%4:s++;continue}else l=!0;(d===10||a===c-1)&&(d!==10&&a++,this.bMarks.push(i),this.eMarks.push(a),this.tShift.push(u),this.sCount.push(s),this.bsCount.push(0),l=!1,u=0,s=0,i=a+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Se.prototype.push=function(e,t,n){let r=new Me(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};Se.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Se.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Se.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){let r=this.src.charCodeAt(t);if(!z(r))break}return t};Se.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!z(this.src.charCodeAt(--t)))return t+1;return t};Se.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t};Se.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Se.prototype.getLines=function(t,n,r,o){if(t>=n)return"";let i=new Array(n-t);for(let a=0,u=t;u<n;u++,a++){let s=0,c=this.bMarks[u],l=c,d;for(u+1<n||o?d=this.eMarks[u]+1:d=this.eMarks[u];l<d&&s<r;){let f=this.src.charCodeAt(l);if(z(f))f===9?s+=4-(s+this.bsCount[u])%4:s++;else if(l-c<this.tShift[u])s++;else break;l++}s>r?i[a]=new Array(s-r+1).join(" ")+this.src.slice(l,d):i[a]=this.src.slice(l,d)}return i.join("")};Se.prototype.Token=Me;var $s=Se;var op=65536;function uo(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Cs(e){let t=[],n=e.length,r=0,o=e.charCodeAt(r),i=!1,a=0,u="";for(;r<n;)o===124&&(i?(u+=e.substring(a,r-1),a=r):(t.push(u+e.substring(a,r)),u="",a=r+1)),i=o===92,r++,o=e.charCodeAt(r);return t.push(u+e.substring(a)),t}function so(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let i=e.bMarks[o]+e.tShift[o];if(i>=e.eMarks[o])return!1;let a=e.src.charCodeAt(i++);if(a!==124&&a!==45&&a!==58||i>=e.eMarks[o])return!1;let u=e.src.charCodeAt(i++);if(u!==124&&u!==45&&u!==58&&!z(u)||a===45&&z(u))return!1;for(;i<e.eMarks[o];){let x=e.src.charCodeAt(i);if(x!==124&&x!==45&&x!==58&&!z(x))return!1;i++}let s=uo(e,t+1),c=s.split("|"),l=[];for(let x=0;x<c.length;x++){let A=c[x].trim();if(!A){if(x===0||x===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(A))return!1;A.charCodeAt(A.length-1)===58?l.push(A.charCodeAt(0)===58?"center":"right"):A.charCodeAt(0)===58?l.push("left"):l.push("")}if(s=uo(e,t).trim(),s.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=Cs(s),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();let d=c.length;if(d===0||d!==l.length)return!1;if(r)return!0;let f=e.parentType;e.parentType="table";let m=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),h=[t,0];p.map=h;let b=e.push("thead_open","thead",1);b.map=[t,t+1];let E=e.push("tr_open","tr",1);E.map=[t,t+1];for(let x=0;x<c.length;x++){let A=e.push("th_open","th",1);l[x]&&(A.attrs=[["style","text-align:"+l[x]]]);let v=e.push("inline","",0);v.content=c[x].trim(),v.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g,y=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let x=!1;for(let v=0,N=m.length;v<N;v++)if(m[v](e,o,n,!0)){x=!0;break}if(x||(s=uo(e,o).trim(),!s)||e.sCount[o]-e.blkIndent>=4||(c=Cs(s),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),y+=d-c.length,y>op))break;if(o===t+2){let v=e.push("tbody_open","tbody",1);v.map=g=[t+2,0]}let A=e.push("tr_open","tr",1);A.map=[o,o+1];for(let v=0;v<d;v++){let N=e.push("td_open","td",1);l[v]&&(N.attrs=[["style","text-align:"+l[v]]]);let R=e.push("inline","",0);R.content=c[v]?c[v].trim():"",R.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return g&&(e.push("tbody_close","tbody",-1),g[1]=o),e.push("table_close","table",-1),h[1]=o,e.parentType=f,e.line=o,!0}function co(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,o=r;continue}break}e.line=o;let i=e.push("code_block","code",0);return i.content=e.getLines(t,o,4+e.blkIndent,!1)+`
32
+ `,i.map=[t,e.line],!0}function lo(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>i)return!1;let a=e.src.charCodeAt(o);if(a!==126&&a!==96)return!1;let u=o;o=e.skipChars(o,a);let s=o-u;if(s<3)return!1;let c=e.src.slice(u,o),l=e.src.slice(o,i);if(a===96&&l.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(o=u=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],o<i&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(o)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(o=e.skipChars(o,a),!(o-u<s)&&(o=e.skipSpaces(o),!(o<i)))){f=!0;break}s=e.sCount[t],e.line=d+(f?1:0);let m=e.push("fence","code",0);return m.info=l,m.content=e.getLines(t+1,d,s,!0),m.markup=c,m.map=[t,e.line],!0}function fo(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(r)return!0;let u=[],s=[],c=[],l=[],d=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let m=!1,p;for(p=t;p<n;p++){let y=e.sCount[p]<e.blkIndent;if(o=e.bMarks[p]+e.tShift[p],i=e.eMarks[p],o>=i)break;if(e.src.charCodeAt(o++)===62&&!y){let A=e.sCount[p]+1,v,N;e.src.charCodeAt(o)===32?(o++,A++,N=!1,v=!0):e.src.charCodeAt(o)===9?(v=!0,(e.bsCount[p]+A)%4===3?(o++,A++,N=!1):N=!0):v=!1;let R=A;for(u.push(e.bMarks[p]),e.bMarks[p]=o;o<i;){let B=e.src.charCodeAt(o);if(z(B))B===9?R+=4-(R+e.bsCount[p]+(N?1:0))%4:R++;else break;o++}m=o>=i,s.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(v?1:0),c.push(e.sCount[p]),e.sCount[p]=R-A,l.push(e.tShift[p]),e.tShift[p]=o-e.bMarks[p];continue}if(m)break;let x=!1;for(let A=0,v=d.length;A<v;A++)if(d[A](e,p,n,!0)){x=!0;break}if(x){e.lineMax=p,e.blkIndent!==0&&(u.push(e.bMarks[p]),s.push(e.bsCount[p]),l.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}u.push(e.bMarks[p]),s.push(e.bsCount[p]),l.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}let h=e.blkIndent;e.blkIndent=0;let b=e.push("blockquote_open","blockquote",1);b.markup=">";let E=[t,0];b.map=E,e.md.block.tokenize(e,t,p);let g=e.push("blockquote_close","blockquote",-1);g.markup=">",e.lineMax=a,e.parentType=f,E[1]=e.line;for(let y=0;y<l.length;y++)e.bMarks[y+t]=u[y],e.tShift[y+t]=l[y],e.sCount[y+t]=c[y],e.bsCount[y+t]=s[y];return e.blkIndent=h,!0}function po(e,t,n,r){let o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t],a=e.src.charCodeAt(i++);if(a!==42&&a!==45&&a!==95)return!1;let u=1;for(;i<o;){let c=e.src.charCodeAt(i++);if(c!==a&&!z(c))return!1;c===a&&u++}if(u<3)return!1;if(r)return!0;e.line=t+1;let s=e.push("hr","hr",0);return s.map=[t,e.line],s.markup=Array(u+1).join(String.fromCharCode(a)),!0}function Ds(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(r++);if(o!==42&&o!==45&&o!==43)return-1;if(r<n){let i=e.src.charCodeAt(r);if(!z(i))return-1}return r}function Ns(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],o=n;if(o+1>=r)return-1;let i=e.src.charCodeAt(o++);if(i<48||i>57)return-1;for(;;){if(o>=r)return-1;if(i=e.src.charCodeAt(o++),i>=48&&i<=57){if(o-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return o<r&&(i=e.src.charCodeAt(o),!z(i))?-1:o}function ip(e,t){let n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;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 mo(e,t,n,r){let o,i,a,u,s=t,c=!0;if(e.sCount[s]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[s]-e.listIndent>=4&&e.sCount[s]<e.blkIndent)return!1;let l=!1;r&&e.parentType==="paragraph"&&e.sCount[s]>=e.blkIndent&&(l=!0);let d,f,m;if((m=Ns(e,s))>=0){if(d=!0,a=e.bMarks[s]+e.tShift[s],f=Number(e.src.slice(a,m-1)),l&&f!==1)return!1}else if((m=Ds(e,s))>=0)d=!1;else return!1;if(l&&e.skipSpaces(m)>=e.eMarks[s])return!1;if(r)return!0;let p=e.src.charCodeAt(m-1),h=e.tokens.length;d?(u=e.push("ordered_list_open","ol",1),f!==1&&(u.attrs=[["start",f]])):u=e.push("bullet_list_open","ul",1);let b=[s,0];u.map=b,u.markup=String.fromCharCode(p);let E=!1,g=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";s<n;){i=m,o=e.eMarks[s];let x=e.sCount[s]+m-(e.bMarks[s]+e.tShift[s]),A=x;for(;i<o;){let q=e.src.charCodeAt(i);if(q===9)A+=4-(A+e.bsCount[s])%4;else if(q===32)A++;else break;i++}let v=i,N;v>=o?N=1:N=A-x,N>4&&(N=1);let R=x+N;u=e.push("list_item_open","li",1),u.markup=String.fromCharCode(p);let B=[s,0];u.map=B,d&&(u.info=e.src.slice(a,m-1));let H=e.tight,J=e.tShift[s],ne=e.sCount[s],re=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=R,e.tight=!0,e.tShift[s]=v-e.bMarks[s],e.sCount[s]=A,v>=o&&e.isEmpty(s+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,s,n,!0),(!e.tight||E)&&(c=!1),E=e.line-s>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=re,e.tShift[s]=J,e.sCount[s]=ne,e.tight=H,u=e.push("list_item_close","li",-1),u.markup=String.fromCharCode(p),s=e.line,B[1]=s,s>=n||e.sCount[s]<e.blkIndent||e.sCount[s]-e.blkIndent>=4)break;let K=!1;for(let q=0,k=g.length;q<k;q++)if(g[q](e,s,n,!0)){K=!0;break}if(K)break;if(d){if(m=Ns(e,s),m<0)break;a=e.bMarks[s]+e.tShift[s]}else if(m=Ds(e,s),m<0)break;if(p!==e.src.charCodeAt(m-1))break}return d?u=e.push("ordered_list_close","ol",-1):u=e.push("bullet_list_close","ul",-1),u.markup=String.fromCharCode(p),b[1]=s,e.line=s,e.parentType=y,c&&ip(e,h),!0}function ho(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function u(g){let y=e.lineMax;if(g>=y||e.isEmpty(g))return null;let x=!1;if(e.sCount[g]-e.blkIndent>3&&(x=!0),e.sCount[g]<0&&(x=!0),!x){let N=e.md.block.ruler.getRules("reference"),R=e.parentType;e.parentType="reference";let B=!1;for(let H=0,J=N.length;H<J;H++)if(N[H](e,g,y,!0)){B=!0;break}if(e.parentType=R,B)return null}let A=e.bMarks[g]+e.tShift[g],v=e.eMarks[g];return e.src.slice(A,v+1)}let s=e.src.slice(o,i+1);i=s.length;let c=-1;for(o=1;o<i;o++){let g=s.charCodeAt(o);if(g===91)return!1;if(g===93){c=o;break}else if(g===10){let y=u(a);y!==null&&(s+=y,i=s.length,a++)}else if(g===92&&(o++,o<i&&s.charCodeAt(o)===10)){let y=u(a);y!==null&&(s+=y,i=s.length,a++)}}if(c<0||s.charCodeAt(c+1)!==58)return!1;for(o=c+2;o<i;o++){let g=s.charCodeAt(o);if(g===10){let y=u(a);y!==null&&(s+=y,i=s.length,a++)}else if(!z(g))break}let l=e.md.helpers.parseLinkDestination(s,o,i);if(!l.ok)return!1;let d=e.md.normalizeLink(l.str);if(!e.md.validateLink(d))return!1;o=l.pos;let f=o,m=a,p=o;for(;o<i;o++){let g=s.charCodeAt(o);if(g===10){let y=u(a);y!==null&&(s+=y,i=s.length,a++)}else if(!z(g))break}let h=e.md.helpers.parseLinkTitle(s,o,i);for(;h.can_continue;){let g=u(a);if(g===null)break;s+=g,o=i,i=s.length,a++,h=e.md.helpers.parseLinkTitle(s,o,i,h)}let b;for(o<i&&p!==o&&h.ok?(b=h.str,o=h.pos):(b="",o=f,a=m);o<i;){let g=s.charCodeAt(o);if(!z(g))break;o++}if(o<i&&s.charCodeAt(o)!==10&&b)for(b="",o=f,a=m;o<i;){let g=s.charCodeAt(o);if(!z(g))break;o++}if(o<i&&s.charCodeAt(o)!==10)return!1;let E=et(s.slice(1,c));return E?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[E]>"u"&&(e.env.references[E]={title:b,href:d}),e.line=a),!0):!1}var Ts=["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"];var ap="[a-zA-Z_:][a-zA-Z0-9:._-]*",up="[^\"'=<>`\\x00-\\x20]+",sp="'[^']*'",cp='"[^"]*"',lp="(?:"+up+"|"+sp+"|"+cp+")",dp="(?:\\s+"+ap+"(?:\\s*=\\s*"+lp+")?)",Os="<[A-Za-z][A-Za-z0-9\\-]*"+dp+"*\\s*\\/?>",Rs="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",fp="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",pp="<[?][\\s\\S]*?[?]>",mp="<![A-Za-z][^>]*>",hp="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Ms=new RegExp("^(?:"+Os+"|"+Rs+"|"+fp+"|"+pp+"|"+mp+"|"+hp+")"),Is=new RegExp("^(?:"+Os+"|"+Rs+")");var rt=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Ts.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Is.source+"\\s*$"),/^$/,!1]];function bo(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let a=e.src.slice(o,i),u=0;for(;u<rt.length&&!rt[u][0].test(a);u++);if(u===rt.length)return!1;if(r)return rt[u][2];let s=t+1,c=rt[u][1].test("");if(!rt[u][1].test(a)){for(;s<n&&!(e.sCount[s]<e.blkIndent&&(c||!e.isEmpty(s)));s++)if(o=e.bMarks[s]+e.tShift[s],i=e.eMarks[s],a=e.src.slice(o,i),rt[u][1].test(a)){a.length!==0&&s++;break}}e.line=s;let l=e.push("html_block","",0);return l.map=[t,s],l.content=e.getLines(t,s,e.blkIndent,!0),!0}function go(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(o);if(a!==35||o>=i)return!1;let u=1;for(a=e.src.charCodeAt(++o);a===35&&o<i&&u<=6;)u++,a=e.src.charCodeAt(++o);if(u>6||o<i&&!z(a))return!1;if(r)return!0;i=e.skipSpacesBack(i,o);let s=e.skipCharsBack(i,35,o);s>o&&z(e.src.charCodeAt(s-1))&&(i=s),e.line=t+1;let c=e.push("heading_open","h"+String(u),1);c.markup="########".slice(0,u),c.map=[t,e.line];let l=e.push("inline","",0);l.content=tt(e.src.slice(o,i)),l.map=[t,e.line],l.children=[];let d=e.push("heading_close","h"+String(u),-1);return d.markup="########".slice(0,u),!0}function _o(e,t,n){let r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.parentType;e.parentType="paragraph";let i=0,a,u=t+1;for(;u<n&&!e.isEmpty(u);u++){if(e.sCount[u]-e.blkIndent>3)continue;if(e.sCount[u]>=e.blkIndent){let m=e.bMarks[u]+e.tShift[u],p=e.eMarks[u];if(m<p&&(a=e.src.charCodeAt(m),(a===45||a===61)&&(m=e.skipChars(m,a),m=e.skipSpaces(m),m>=p))){i=a===61?1:2;break}}if(e.sCount[u]<0)continue;let f=!1;for(let m=0,p=r.length;m<p;m++)if(r[m](e,u,n,!0)){f=!0;break}if(f)break}if(!i)return e.parentType=o,!1;let s=tt(e.getLines(t,u,e.blkIndent,!1));e.line=u+1;let c=e.push("heading_open","h"+String(i),1);c.markup=String.fromCharCode(a),c.map=[t,e.line];let l=e.push("inline","",0);l.content=s,l.map=[t,e.line-1],l.children=[];let d=e.push("heading_close","h"+String(i),-1);return d.markup=String.fromCharCode(a),e.parentType=o,!0}function Eo(e,t,n){let r=e.md.block.ruler.getRules("paragraph"),o=e.parentType,i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let c=!1;for(let l=0,d=r.length;l<d;l++)if(r[l](e,i,n,!0)){c=!0;break}if(c)break}let a=tt(e.getLines(t,i,e.blkIndent,!1));e.line=i;let u=e.push("paragraph_open","p",1);u.map=[t,e.line];let s=e.push("inline","",0);return s.content=a,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}var Tn=[["table",so,["paragraph","reference"]],["code",co],["fence",lo,["paragraph","reference","blockquote","list"]],["blockquote",fo,["paragraph","reference","blockquote","list"]],["hr",po,["paragraph","reference","blockquote","list"]],["list",mo,["paragraph","reference","blockquote"]],["reference",ho],["html_block",bo,["paragraph","reference","blockquote"]],["heading",go,["paragraph","reference","blockquote"]],["lheading",_o],["paragraph",Eo]];function On(){this.ruler=new nt;for(let e=0;e<Tn.length;e++)this.ruler.push(Tn[e][0],Tn[e][1],{alt:(Tn[e][2]||[]).slice()})}On.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(""),o=r.length,i=e.md.options.maxNesting,a=t,u=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=i){e.line=n;break}let s=e.line,c=!1;for(let l=0;l<o;l++)if(c=r[l](e,a,n,!1),c){if(s>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!u,e.isEmpty(e.line-1)&&(u=!0),a=e.line,a<n&&e.isEmpty(a)&&(u=!0,a++,e.line=a)}};On.prototype.parse=function(e,t,n,r){if(!e)return;let o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)};On.prototype.State=$s;var Ls=On;function zt(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}zt.prototype.pushPending=function(){let e=new Me("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};zt.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new Me(e,t,n),o=null;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=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r};zt.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),o;if(e===0)o=32;else if(e===1)o=this.src.charCodeAt(0),(o&63488)===55296&&(o=65533);else if(o=this.src.charCodeAt(e-1),(o&64512)===56320){let b=this.src.charCodeAt(e-2);o=(b&64512)===55296?65536+(b-55296<<10)+(o-56320):65533}else(o&64512)===55296&&(o=65533);let i=e;for(;i<n&&this.src.charCodeAt(i)===r;)i++;let a=i-e,u=i<n?this.src.charCodeAt(i):32;if((u&64512)===55296){let b=this.src.charCodeAt(i+1);u=(b&64512)===56320?65536+(u-55296<<10)+(b-56320):65533}else(u&64512)===56320&&(u=65533);let s=Qe(o)||Je(o),c=Qe(u)||Je(u),l=Xe(o),d=Xe(u),f=!d&&(!c||l||s),m=!l&&(!s||d||c);return{can_open:f&&(t||!m||s),can_close:m&&(t||!f||c),length:a}};zt.prototype.Token=Me;var Fs=zt;function bp(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 yo(e,t){let n=e.pos;for(;n<e.posMax&&!bp(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function gp(e){return e>=65&&e<=90||e>=97&&e<=122}function _p(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function wo(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 o=n-Math.min(10,e.pending.length,n),i=n;for(;i>o&&_p(e.src.charCodeAt(i-1));)i--;if(i===n||!gp(e.src.charCodeAt(i)))return!1;let a=n-i,u=e.md.linkify.matchAtStart(e.src.slice(i));if(!u)return!1;let s=u.url;if(s.length<=a)return!1;let c=s.length;for(;c>0&&s.charCodeAt(c-1)===42;)c--;c!==s.length&&(s=s.slice(0,c));let l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-a);let d=e.push("link_open","a",1);d.attrs=[["href",l]],d.markup="linkify",d.info="auto";let f=e.push("text","",0);f.content=e.md.normalizeLinkText(s);let m=e.push("link_close","a",-1);m.markup="linkify",m.info="auto"}return e.pos+=s.length-a,!0}function ko(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let i=r-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),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<o&&z(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var Ao=[];for(let e=0;e<256;e++)Ao.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Ao[e.charCodeAt(0)]=1});function xo(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),!!z(o));)n++;return e.pos=n,!0}if(o===32){if(!t){let u=e.push("text_special","",0);u.content="\\",u.markup="\\",u.info="escape"}return e.pos=n,!0}let i=e.src[n];if(o>=55296&&o<=56319&&n+1<r){let u=e.src.charCodeAt(n+1);u>=56320&&u<=57343&&(i+=e.src[n+1],n++)}let a="\\"+i;if(!t){let u=e.push("text_special","",0);o<256&&Ao[o]!==0?u.content=i:u.content=a,u.markup=a,u.info="escape"}return e.pos=n+1,!0}function vo(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let o=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(o,n),u=a.length;if(e.backticksScanned&&(e.backticks[u]||0)<=o)return t||(e.pending+=a),e.pos+=u,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let l=s-c;if(l===u){if(!t){let d=e.push("code_inline","code",0);d.markup=a,d.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=s,!0}e.backticks[l]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=u,!0}function Ep(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let o=e.scanDelims(e.pos,!0),i=o.length,a=String.fromCharCode(r);if(i<2)return!1;let u;i%2&&(u=e.push("text","",0),u.content=a,i--);for(let s=0;s<i;s+=2)u=e.push("text","",0),u.content=a+a,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0}function Bs(e,t){let n,r=[],o=t.length;for(let i=0;i<o;i++){let a=t[i];if(a.marker!==126||a.end===-1)continue;let u=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[u.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[u.token-1].type==="text"&&e.tokens[u.token-1].content==="~"&&r.push(u.token-1)}for(;r.length;){let i=r.pop(),a=i+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,i!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[i],e.tokens[i]=n)}}function yp(e){let t=e.tokens_meta,n=e.tokens_meta.length;Bs(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Bs(e,t[r].delimiters)}var So={tokenize:Ep,postProcess:yp};function wp(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let o=e.scanDelims(e.pos,r===42);for(let i=0;i<o.length;i++){let a=e.push("text","",0);a.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0}function Us(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let o=t[r];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;let i=t[o.end],a=r>0&&t[r-1].end===o.end+1&&t[r-1].marker===o.marker&&t[r-1].token===o.token-1&&t[o.end+1].token===i.token+1,u=String.fromCharCode(o.marker),s=e.tokens[o.token];s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?u+u:u,s.content="";let c=e.tokens[i.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?u+u:u,c.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[o.end+1].token].content="",r--)}}function kp(e){let t=e.tokens_meta,n=e.tokens_meta.length;Us(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Us(e,t[r].delimiters)}var $o={tokenize:wp,postProcess:kp};function Co(e,t){let n,r,o,i,a="",u="",s=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let l=e.pos,d=e.posMax,f=e.pos+1,m=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(m<0)return!1;let p=m+1;if(p<d&&e.src.charCodeAt(p)===40){for(c=!1,p++;p<d&&(n=e.src.charCodeAt(p),!(!z(n)&&n!==10));p++);if(p>=d)return!1;if(s=p,o=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),o.ok){for(a=e.md.normalizeLink(o.str),e.md.validateLink(a)?p=o.pos:a="",s=p;p<d&&(n=e.src.charCodeAt(p),!(!z(n)&&n!==10));p++);if(o=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<d&&s!==p&&o.ok)for(u=o.str,p=o.pos;p<d&&(n=e.src.charCodeAt(p),!(!z(n)&&n!==10));p++);}(p>=d||e.src.charCodeAt(p)!==41)&&(c=!0),p++}if(c){if(typeof e.env.references>"u")return!1;if(p<d&&e.src.charCodeAt(p)===91?(s=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?r=e.src.slice(s,p++):p=m+1):p=m+1,r||(r=e.src.slice(f,m)),i=e.env.references[et(r)],!i)return e.pos=l,!1;a=i.href,u=i.title}if(!t){e.pos=f,e.posMax=m;let h=e.push("link_open","a",1),b=[["href",a]];h.attrs=b,u&&b.push(["title",u]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=d,!0}function Do(e,t){let n,r,o,i,a,u,s,c,l="",d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let m=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(i=p+1,i<f&&e.src.charCodeAt(i)===40){for(i++;i<f&&(n=e.src.charCodeAt(i),!(!z(n)&&n!==10));i++);if(i>=f)return!1;for(c=i,u=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),u.ok&&(l=e.md.normalizeLink(u.str),e.md.validateLink(l)?i=u.pos:l=""),c=i;i<f&&(n=e.src.charCodeAt(i),!(!z(n)&&n!==10));i++);if(u=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<f&&c!==i&&u.ok)for(s=u.str,i=u.pos;i<f&&(n=e.src.charCodeAt(i),!(!z(n)&&n!==10));i++);else s="";if(i>=f||e.src.charCodeAt(i)!==41)return e.pos=d,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<f&&e.src.charCodeAt(i)===91?(c=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?o=e.src.slice(c,i++):i=p+1):i=p+1,o||(o=e.src.slice(m,p)),a=e.env.references[et(o)],!a)return e.pos=d,!1;l=a.href,s=a.title}if(!t){r=e.src.slice(m,p);let h=[];e.md.inline.parse(r,e.md,e.env,h);let b=e.push("image","img",0),E=[["src",l],["alt",""]];b.attrs=E,b.children=h,b.content=r,s&&E.push(["title",s])}return e.pos=i,e.posMax=f,!0}var Ap=/^([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])?)*)$/,xp=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function No(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;let a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}let i=e.src.slice(r+1,n);if(xp.test(i)){let a=e.md.normalizeLink(i);if(!e.md.validateLink(a))return!1;if(!t){let u=e.push("link_open","a",1);u.attrs=[["href",a]],u.markup="autolink",u.info="auto";let s=e.push("text","",0);s.content=e.md.normalizeLinkText(i);let c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}if(Ap.test(i)){let a=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(a))return!1;if(!t){let u=e.push("link_open","a",1);u.attrs=[["href",a]],u.markup="autolink",u.info="auto";let s=e.push("text","",0);s.content=e.md.normalizeLinkText(i);let c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}return!1}function vp(e){return/^<a[>\s]/i.test(e)}function Sp(e){return/^<\/a\s*>/i.test(e)}function $p(e){let t=e|32;return t>=97&&t<=122}function To(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 o=e.src.charCodeAt(r+1);if(o!==33&&o!==63&&o!==47&&!$p(o))return!1;let i=e.src.slice(r).match(Ms);if(!i)return!1;if(!t){let a=e.push("html_inline","",0);a.content=i[0],vp(a.content)&&e.linkLevel++,Sp(a.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}var Cp=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Dp=/^&([a-z][a-z0-9]{1,31});/i;function Oo(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(Cp);if(i){if(!t){let a=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),u=e.push("text_special","",0);u.content=Dn(a)?At(a):At(65533),u.markup=i[0],u.info="entity"}return e.pos+=i[0].length,!0}}else{let i=e.src.slice(n).match(Dp);if(i){let a=Pt(i[0]);if(a!==i[0]){if(!t){let u=e.push("text_special","",0);u.content=a,u.markup=i[0],u.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function Ps(e){let t={},n=e.length;if(!n)return;let r=0,o=-2,i=[];for(let a=0;a<n;a++){let u=e[a];if(i.push(0),(e[r].marker!==u.marker||o!==u.token-1)&&(r=a),o=u.token,u.length=u.length||0,!u.close)continue;t.hasOwnProperty(u.marker)||(t[u.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[u.marker][(u.open?3:0)+u.length%3],c=r-i[r]-1,l=c;for(;c>s;c-=i[c]+1){let d=e[c];if(d.marker===u.marker&&d.open&&d.end<0){let f=!1;if((d.close||u.open)&&(d.length+u.length)%3===0&&(d.length%3!==0||u.length%3!==0)&&(f=!0),!f){let m=c>0&&!e[c-1].open?i[c-1]+1:0;i[a]=a-c+m,i[c]=m,u.open=!1,d.end=a,d.close=!1,l=-1,o=-2;break}}}l!==-1&&(t[u.marker][(u.open?3:0)+(u.length||0)%3]=l)}}function Ro(e){let t=e.tokens_meta,n=e.tokens_meta.length;Ps(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ps(t[r].delimiters)}function Mo(e){let t,n,r=0,o=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,o[t].type==="text"&&t+1<i&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}var Io=[["text",yo],["linkify",wo],["newline",ko],["escape",xo],["backticks",vo],["strikethrough",So.tokenize],["emphasis",$o.tokenize],["link",Co],["image",Do],["autolink",No],["html_inline",To],["entity",Oo]],Lo=[["balance_pairs",Ro],["strikethrough",So.postProcess],["emphasis",$o.postProcess],["fragments_join",Mo]];function qt(){this.ruler=new nt;for(let e=0;e<Io.length;e++)this.ruler.push(Io[e][0],Io[e][1]);this.ruler2=new nt;for(let e=0;e<Lo.length;e++)this.ruler2.push(Lo[e][0],Lo[e][1])}qt.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let a=!1;if(e.level<o){for(let u=0;u<r;u++)if(e.level++,a=n[u](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++,i[t]=e.pos};qt.prototype.tokenize=function(e){let t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){let i=e.pos,a=!1;if(e.level<o){for(let u=0;u<n;u++)if(a=t[u](e,!1),a){if(i>=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()};qt.prototype.parse=function(e,t,n,r){let o=new this.State(e,t,n,r);this.tokenize(o);let i=this.ruler2.getRules(""),a=i.length;for(let u=0;u<a;u++)i[u](o)};qt.prototype.State=Fs;var zs=qt;function qs(e){let t={};e=e||{},t.src_Any=kn.source,t.src_Cc=An.source,t.src_Z=vn.source,t.src_P=yt.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");let n="[><\uFF5C]";return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain="(?:"+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy="(?:"+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uFF5C]|${t.src_ZPCc}))((?![$+<=>^\`|\uFF5C])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uFF5C]|${t.src_ZPCc}))((?![$+<=>^\`|\uFF5C])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function Fo(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Mn(e){return Object.prototype.toString.call(e)}function Np(e){return Mn(e)==="[object String]"}function Tp(e){return Mn(e)==="[object Object]"}function Op(e){return Mn(e)==="[object RegExp]"}function Ws(e){return Mn(e)==="[object Function]"}function Rp(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Gs={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Mp(e){return Object.keys(e||{}).reduce(function(t,n){return t||Gs.hasOwnProperty(n)},!1)}var Ip={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=new RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Lp="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]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Fp="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function Bp(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Hs(){return function(e,t){t.normalize(e)}}function Rn(e){let t=e.re=qs(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Lp),n.push(t.src_xn),t.src_tlds=n.join("|");function r(u){return u.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");let o=[];e.__compiled__={};function i(u,s){throw new Error(`(LinkifyIt) Invalid schema "${u}": ${s}`)}Object.keys(e.__schemas__).forEach(function(u){let s=e.__schemas__[u];if(s===null)return;let c={validate:null,link:null};if(e.__compiled__[u]=c,Tp(s)){Op(s.validate)?c.validate=Bp(s.validate):Ws(s.validate)?c.validate=s.validate:i(u,s),Ws(s.normalize)?c.normalize=s.normalize:s.normalize?i(u,s):c.normalize=Hs();return}if(Np(s)){o.push(u);return}i(u,s)}),o.forEach(function(u){e.__compiled__[e.__schemas__[u]]&&(e.__compiled__[u].validate=e.__compiled__[e.__schemas__[u]].validate,e.__compiled__[u].normalize=e.__compiled__[e.__schemas__[u]].normalize)}),e.__compiled__[""]={validate:null,normalize:Hs()};let a=Object.keys(e.__compiled__).filter(function(u){return u.length>0&&e.__compiled__[u]}).map(Rp).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uFF5C]|${t.src_ZPCc}))(${a})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uFF5C]|${t.src_ZPCc}))(${a})`,"ig"),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,"i"),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,"i")}function Zs(e,t,n,r){let o=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=o,this.text=o,this.url=o}function me(e,t){if(!(this instanceof me))return new me(e,t);t||Mp(e)&&(t=e,e={}),this.__opts__=Fo({},Gs,t),this.__schemas__=Fo({},Ip,e),this.__compiled__={},this.__tlds__=Fp,this.__tlds_replaced__=!1,this.re={},Rn(this)}me.prototype.add=function(t,n){return this.__schemas__[t]=n,Rn(this),this};me.prototype.set=function(t){return this.__opts__=Fo(this.__opts__,t),this};me.prototype.test=function(t){if(!t.length)return!1;let n,r;if(this.re.schema_test.test(t)){for(r=this.re.schema_search,r.lastIndex=0;(n=r.exec(t))!==null;)if(this.testSchemaAt(t,n[2],r.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};me.prototype.pretest=function(t){return this.re.pretest.test(t)};me.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};me.prototype.match=function(t){let n=[],r=[],o=[],i=[],a,u,s;function c(f,m){return f?m?f.index!==m.index?f.index<m.index?f:m:f.lastIndex>=m.lastIndex?f:m:f:m}if(!t.length)return null;if(this.re.schema_test.test(t))for(s=this.re.schema_search,s.lastIndex=0;(a=s.exec(t))!==null;)u=this.testSchemaAt(t,a[2],s.lastIndex),u&&r.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+u});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(s=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,s.lastIndex=0;(a=s.exec(t))!==null;)o.push({schema:"",index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(s=this.re.email_fuzzy_global,s.lastIndex=0;(a=s.exec(t))!==null;)i.push({schema:"mailto:",index:a.index+a[1].length,lastIndex:a.index+a[0].length});let l=[0,0,0],d=0;for(;;){let f=[r[l[0]],i[l[1]],o[l[2]]],m=c(c(f[0],f[1]),f[2]);if(!m)break;if(m===f[0]?l[0]++:m===f[1]?l[1]++:l[2]++,m.index<d)continue;let p=new Zs(t,m.schema,m.index,m.lastIndex);this.__compiled__[p.schema].normalize(p,this),n.push(p),d=m.lastIndex}return n.length?n:null};me.prototype.matchAtStart=function(t){if(!t.length)return null;let n=this.re.schema_at_start.exec(t);if(!n)return null;let r=this.testSchemaAt(t,n[2],n[0].length);if(!r)return null;let o=new Zs(t,n[2],n.index+n[1].length,n.index+n[0].length+r);return this.__compiled__[o.schema].normalize(o,this),o};me.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,o,i){return r!==i[o-1]}).reverse(),Rn(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Rn(this),this)};me.prototype.normalize=function(t){t.schema||(t.url=`http://${t.url}`),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url=`mailto:${t.url}`)};me.prototype.onCompile=function(){};var Ks=me;var Up=/^xn--/,Pp=/[^\0-\x7F]/,zp=/[\x2E\u3002\uFF0E\uFF61]/g,qp={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Bo=35,$e=Math.floor,Uo=String.fromCharCode;function ze(e){throw new RangeError(qp[e])}function Wp(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Vs(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(zp,".");let o=e.split("."),i=Wp(o,t).join(".");return r+i}function Ys(e){let t=[],n=0,r=e.length;for(;n<r;){let o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){let i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}var Hp=e=>String.fromCodePoint(...e),Gp=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:36},js=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Xs=function(e,t,n){let r=0;for(e=n?$e(e/700):e>>1,e+=$e(e/t);e>Bo*26>>1;r+=36)e=$e(e/Bo);return $e(r+(Bo+1)*e/(e+38))},Js=function(e){let t=[],n=e.length,r=0,o=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let u=0;u<a;++u)e.charCodeAt(u)>=128&&ze("not-basic"),t.push(e.charCodeAt(u));for(let u=a>0?a+1:0;u<n;){let s=r;for(let l=1,d=36;;d+=36){u>=n&&ze("invalid-input");let f=Gp(e.charCodeAt(u++));f>=36&&ze("invalid-input"),f>$e((2147483647-r)/l)&&ze("overflow"),r+=f*l;let m=d<=i?1:d>=i+26?26:d-i;if(f<m)break;let p=36-m;l>$e(2147483647/p)&&ze("overflow"),l*=p}let c=t.length+1;i=Xs(r-s,c,s==0),$e(r/c)>2147483647-o&&ze("overflow"),o+=$e(r/c),r%=c,t.splice(r++,0,o)}return String.fromCodePoint(...t)},Qs=function(e){let t=[];e=Ys(e);let n=e.length,r=128,o=0,i=72;for(let s of e)s<128&&t.push(Uo(s));let a=t.length,u=a;for(a&&t.push("-");u<n;){let s=2147483647;for(let l of e)l>=r&&l<s&&(s=l);let c=u+1;s-r>$e((2147483647-o)/c)&&ze("overflow"),o+=(s-r)*c,r=s;for(let l of e)if(l<r&&++o>2147483647&&ze("overflow"),l===r){let d=o;for(let f=36;;f+=36){let m=f<=i?1:f>=i+26?26:f-i;if(d<m)break;let p=d-m,h=36-m;t.push(Uo(js(m+p%h,0))),d=$e(p/h)}t.push(Uo(js(d,0))),i=Xs(o,c,u===a),o=0,++u}++o,++r}return t.join("")},Zp=function(e){return Vs(e,function(t){return Up.test(t)?Js(t.slice(4).toLowerCase()):t})},Kp=function(e){return Vs(e,function(t){return Pp.test(t)?"xn--"+Qs(t):t})},jp={version:"2.3.1",ucs2:{decode:Ys,encode:Hp},decode:Js,encode:Qs,toASCII:Kp,toUnicode:Zp};var Po=jp;var ec={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:{}}};var tc={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","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}};var nc={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","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"]}}};var Vp={default:ec,zero:tc,commonmark:nc},Yp=/^(vbscript|javascript|file|data):/,Xp=/^data:image\/(gif|png|jpeg|webp);/;function Jp(e){let t=e.trim().toLowerCase();return Yp.test(t)?Xp.test(t):!0}var rc=["http:","https:","mailto:"];function Qp(e){let t=Ut(e,!0);if(t.hostname&&(!t.protocol||rc.indexOf(t.protocol)>=0))try{t.hostname=Po.toASCII(t.hostname)}catch{}return En(Et(t))}function em(e){let t=Ut(e,!0);if(t.hostname&&(!t.protocol||rc.indexOf(t.protocol)>=0))try{t.hostname=Po.toUnicode(t.hostname)}catch{}return Bt(Et(t),Bt.defaultChars+"%")}function _e(e,t){if(!(this instanceof _e))return new _e(e,t);t||Cn(e)||(t=e||{},e="default"),this.inline=new zs,this.block=new Ls,this.core=new Ss,this.renderer=new Es,this.linkify=new Ks,this.validateLink=Jp,this.normalizeLink=Qp,this.normalizeLinkText=em,this.utils=Kr,this.helpers=kt({},Xr),this.options={},this.configure(e),t&&this.set(t)}_e.prototype.set=function(e){return kt(this.options,e),this};_e.prototype.configure=function(e){let t=this;if(Cn(e)){let n=e;if(e=Vp[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};_e.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(o){return n.indexOf(o)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};_e.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(o){return n.indexOf(o)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};_e.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};_e.prototype.parse=function(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};_e.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};_e.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};_e.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var In=_e;var tm=[137,80,78,71,13,10,26,10],nm="CgBI",rm=new Set(["GIF87a","GIF89a"]),om=4096,im={px:1,pt:96/72,pc:16,in:96,cm:96/2.54,mm:96/25.4,q:96/101.6};function Fn(e){return!(e instanceof Uint8Array)||e.length===0?null:am(e)??um(e)??cm(e)??lm(e)??dm(e)}function am(e){if(!mm(e,tm,0))return null;let t=8;return e.length>=16&&St(e,12,4)===nm&&(t+=12+qo(e,8)),e.length<t+16||St(e,t+4,4)!=="IHDR"?null:Ce(qo(e,t+8),qo(e,t+12))}function um(e){if(e.length<4||e[0]!==255||e[1]!==216)return null;let t=2;for(;t+1<e.length;){if(e[t]!==255)return null;let n=e[t+1];if(n===255){t+=1;continue}if(t+=2,n===1||n>=208&&n<=215)continue;if(n===217||n===218||t+1>=e.length)return null;let r=zo(e,t);if(r<2||t+r>e.length)return null;if(sm(n))return r<7?null:Ce(zo(e,t+5),zo(e,t+3));t+=r}return null}function sm(e){return e<192||e>207?!1:e!==196&&e!==200&&e!==204}function cm(e){return e.length<10||!rm.has(St(e,0,6))?null:Ce(Ln(e,6),Ln(e,8))}function lm(e){if(e.length<16||St(e,0,4)!=="RIFF"||St(e,8,4)!=="WEBP")return null;let t=St(e,12,4);if(t==="VP8 ")return e.length<30||e[23]!==157||e[24]!==1||e[25]!==42?null:Ce(Ln(e,26)&16383,Ln(e,28)&16383);if(t==="VP8L"){if(e.length<25||e[20]!==47)return null;let n=hm(e,21);return Ce((n&16383)+1,(n>>>14&16383)+1)}return t==="VP8X"?e.length<30?null:Ce(ic(e,24)+1,ic(e,27)+1):null}function dm(e){let t=pm(e);if(!/^\s*</.test(t))return null;let n=t.match(/<svg\b[^>]*>/i);if(!n)return null;let r=oc(Wo(n[0],"width")),o=oc(Wo(n[0],"height"));if(r!==null&&o!==null)return Ce(r,o);let i=fm(n[0]);return i?r!==null?Ce(r,r*i.height/i.width):o!==null?Ce(o*i.width/i.height,o):Ce(i.width,i.height):null}function fm(e){let t=Wo(e,"viewBox");if(t===null)return null;let n=t.trim().split(/[\s,]+/);if(n.length!==4)return null;let r=Number(n[2]),o=Number(n[3]);return!(r>0)||!(o>0)?null:{width:r,height:o}}function Wo(e,t){let n=e.match(new RegExp(`[\\s"']${t}\\s*=\\s*["']([^"']*)["']`,"i"));return n?n[1]:null}function oc(e){if(e===null)return null;let t=/^\s*([0-9]*\.?[0-9]+)\s*([a-z]*)\s*$/i.exec(e);if(!t)return null;let n=t[2]?im[t[2].toLowerCase()]:1;return n===void 0?null:Number(t[1])*n}function pm(e){return new TextDecoder("utf-8").decode(e.subarray(0,om))}function Ce(e,t){let n=Math.round(e),r=Math.round(t);return!Number.isFinite(n)||!Number.isFinite(r)||n<=0||r<=0?null:{width:n,height:r}}function mm(e,t,n){if(e.length<n+t.length)return!1;for(let r=0;r<t.length;r++)if(e[n+r]!==t[r])return!1;return!0}function St(e,t,n){let r="";for(let o=0;o<n;o++)r+=String.fromCharCode(e[t+o]);return r}function zo(e,t){return e[t]<<8|e[t+1]}function Ln(e,t){return e[t]|e[t+1]<<8}function qo(e,t){return e[t]*16777216+(e[t+1]<<16|e[t+2]<<8|e[t+3])}function hm(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function ic(e,t){return e[t]|e[t+1]<<8|e[t+2]<<16}var Ie=new In({html:!1,highlight:Nr});Ie.use(bc);Ie.use(gc);Ie.use(dc);Ie.use(fc);Ie.use(mc);Ie.use(_c);Ie.use(pc);var De=null;function Go(e){return e?.html!==!0&&e?.html!=="true"?Ie:(De||(De=new In({html:!0,highlight:Nr}),De.use(bc),De.use(gc),De.use(dc),De.use(fc),De.use(mc),De.use(_c),De.use(pc)),De)}function lc(e,t,n=0){let r=[];e=Em(e,t,r,n);let o=(t.md??Ie).render(e,{resolveBinding:i=>Zo(i,t),wd:{ctx:t,index:n,attrs:r},headingSlugs:t.comp.headingSlugs});return r.length?o.replace(Ho,(i,a)=>r[Number(a)]?w(r[Number(a)].raw):i):o}function ac(e,t,n,r){let o=r?"its build-time value is painted once and then never updates":"it stays literal text";e.comp.warnings.push(`${e.file}:${$(e,t)}: "{ ${n} }" is reactive, but raw HTML (an attribute or an html block) cannot bind, so ${o}. Move the value into ordinary text or a markdown link/image destination (where { ${n} } does bind), or update it from a colocated .js with wd.subscribe.`)}var bm=e=>`~wd-attr-${e}~`,Ho=/~wd-attr-(\d+)~/g,gm=/[\u0000-\u0020()<>"'`\\\u007F]/g,Bn=e=>String(e).replace(gm,t=>`%${t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0")}`);function _m(e){let t=[],n=[...e.matchAll(/`+/g)];for(let r=0;r<n.length;r++)for(let o=r+1;o<n.length;o++)if(n[o][0].length===n[r][0].length){t.push([n[r].index,n[o].index+n[o][0].length]),r=o;break}return t}function Em(e,t,n,r){let o=e.split(`
33
33
  `),i=null;for(let a=0;a<o.length;a++){let u=o[a].match(/^(```+|~~~+)/);if(i){u&&u[1][0]===i[0]&&u[1].length>=i.length&&(i=null);continue}if(u){i=u[1];continue}let s=_m(o[a]);o[a]=o[a].replace(/\]\(([^)\n]*)\)/g,(c,l,d)=>{if(s.some(([m,p])=>d>=m&&d<p))return c;let f=l.replace(/\{\s*([A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*)\s*\}/g,(m,p)=>{let h=Zo(p,t);if(!h)return m;if(h.kind==="static")return mt(h.text)?(hc(t,r+a,p),""):Bn(h.text);let b=h.kind==="state"?["s",h.key??"",h.path??""]:h.meta?["m",h.meta]:["i",h.path??""];return n.push({part:b,text:h.text,raw:m}),bm(n.length-1)});return f===l?c:`](${f})`})}return o.join(`
34
- `)}function dc(e){e.core.ruler.push("wd_attr_bind",t=>{let n=t.env?.wd?.attrs;if(!n||!n.length)return!1;for(let r of t.tokens)for(let o of r.children??[]){let i=o.type==="link_open"?"href":o.type==="image"?"src":"";if(!i)continue;let a=o.attrGet(i);if(!a||!a.includes("~wd-attr-"))continue;let u=[],s="",c="",l=!1,d=0;Ho.lastIndex=0;let f;for(;f=Ho.exec(a);){let m=n[Number(f[1])];m&&(f.index>d&&(u.push(a.slice(d,f.index)),s+=a.slice(d,f.index),c+=a.slice(d,f.index)),u.push(m),s+=Bn(m.text),c+=m.text,m.part[0]!=="s"&&(l=!0),d=f.index+f[0].length)}u.length&&(d<a.length&&(u.push(a.slice(d)),s+=a.slice(d),c+=a.slice(d)),o.attrSet(i,mt(c)?"":s),o.attrSet(l?"data-wd-each-attr":"data-wd-attr",JSON.stringify([i,...u.map(m=>typeof m=="string"?m:m.part)])))}return!1})}var ym=[64,96,128,160,256,320,480,640,768,960,1024,1280,1440,1536,1920,2048,2560,3840],uc=new WeakMap;function fc(e){e.core.ruler.push("wd_image_variants",t=>{let n=t.env?.wd;if(!n)return!1;for(let r of t.tokens)for(let o of r.children??[]){if(o.type!=="image"||o.attrGet("data-wd-attr")||o.attrGet("data-wd-each-attr"))continue;let i=wm(o.attrGet("src")??"",n.ctx);i&&o.attrSet("srcset",i)}return!1})}function wm(e,t){let n=uc.get(t.comp);if(!n)uc.set(t.comp,n=new Map);else if(n.has(e))return n.get(e)??null;let r=km(e,t);return n.set(e,r),r}function km(e,t){if(!e||/^(?:https?:)?\/\//i.test(e)||e.startsWith("data:")||/[?#]/.test(e))return null;let n=e.lastIndexOf(".");if(n<=e.lastIndexOf("/")+1)return null;let r=e.slice(0,n),o=e.slice(n),i,a;if(r.startsWith("/__wd/media/"))a=t.context.shelfRoot,i=r.slice(12);else if(e.startsWith("/"))a=t.context.routesRoot,i=r.slice(1);else return null;let u=t.comp.reader,s=[];for(let d of ym){let f=M.join(a,`${i}@${d}${o}`);u.exists(f)&&s.push({href:`${r}@${d}${o}`,width:sc(f,u)??d})}let c=t.comp.imageVariants?.get(M.join(a,`${i}${o}`));if(c)for(let d of c){let f=`${r}@${d}${o}`;s.some(m=>m.href===f)||s.push({href:f,width:d})}if(!s.length)return null;let l=sc(M.join(a,`${i}${o}`),u);return l&&s.push({href:e,width:l}),s.sort((d,f)=>d.width-f.width),s.map(d=>`${d.href} ${d.width}w`).join(", ")}function sc(e,t){try{return Fn(t.readBinary(e))?.width??null}catch{return null}}var Am=/^<[A-Za-z][A-Za-z0-9-]*(?=[\s/>])/,xm=/\s(?:class|id)\s*=/i;function pc(e){e.core.ruler.push("wd_html_siblings",t=>{if(!t.md.options.html)return!1;let n=t.env?.wd;if(!n)return!1;for(let r of t.tokens)r.type!=="inline"||!r.children||vm(r,n,n.ctx);return!1})}function vm(e,t,n){let r=[],o=!0;for(let a of e.children){if(a.type==="softbreak"||a.type==="hardbreak"){o=!0;continue}o&&(o=!1,r.push(a.type==="html_inline"&&a.meta?.wdText===void 0&&Am.test(a.content)&&xm.test(a.content)))}let i=-1;for(let a=0;a<=r.length;a++){if(a<r.length&&r[a]){i===-1&&(i=a);continue}i!==-1&&a-i>=2&&n.comp.warnings.push(`${n.file}:${$(n,t.index+(e.map?e.map[0]:0)+i)}: ${a-i} sibling HTML block lines will render inline in one <p>; wrap them in a container (e.g. a raw <div>)`),i=-1}}function mc(e){e.core.ruler.push("wd_raw_html",t=>{let n=t.env?.wd;if(!n)return!1;for(let r of t.tokens){let o=n.index+(r.map?r.map[0]:0);if(r.type==="html_block"){r.content=cc(r.content,n.ctx,o);continue}let i=0;for(let a of r.children??[])a.type==="softbreak"||a.type==="hardbreak"?i++:a.type==="html_inline"&&a.meta?.wdText===void 0&&(a.content=cc(a.content,n.ctx,o+i))}return!1})}var Sm=/\b(?:href|src|action|formaction|xlink:href)\s*=\s*(?:"([^"]*)|'([^']*)|([^\s>"']*))$/i;function hc(e,t,n){e.comp.warnings.push(`${e.file}:${$(e,t)}: "{ ${n} }" resolves to a javascript:, data: or vbscript: URL, so the attribute is emitted empty. Use an https:, mailto: or site-relative value, or render it as text rather than a link target.`)}function cc(e,t,n){let r=/\{\s*([A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*\s*(?:\|[^}]*)?)\}/g,o="",i=0,a;for(;a=r.exec(e);){o+=e.slice(i,a.index),i=a.index+a[0].length;let u=a[1].trim(),s=Zo(u,t);if(!s){o+=a[0];continue}if(s.kind==="row"){ac(t,n,u,!1),o+=a[0];continue}s.kind==="state"&&ac(t,n,u,!0);let c=Sm.exec(o),l=c?c[1]??c[2]??c[3]:"";if(c&&mt(l+s.text)){hc(t,n,u),o=o.slice(0,o.length-l.length);continue}o+=k(s.text)}return o+e.slice(i)}function bc(e){e.inline.ruler.push("wd_binding",(t,n)=>{if(t.src.charCodeAt(t.pos)!==123)return!1;let r=/^\{\s*([A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*\s*(?:\|[^}]*)?)\}/.exec(t.src.slice(t.pos));if(!r)return!1;let o=t.env?.resolveBinding,i=o?o(r[1].trim()):null;if(!i)return!1;if(!n){let a=t.push("html_inline","",0);a.content=i.html,a.meta={wdText:i.text}}return t.pos+=r[0].length,!0})}function gc(e){e.core.ruler.push("wd_attrs",t=>{for(let n of t.tokens){if(n.type!=="inline"||!n.children)continue;let r=n.children;for(let o=0;o<r.length;o++){let i=r[o];if(i.type!=="text")continue;let a=/^\{([.#][^}]*)\}/.exec(i.content);if(!a)continue;let u=$m(r,o);if(u){for(let s of a[1].split(/\s+/).filter(Boolean))s[0]==="."?u.attrJoin("class",s.slice(1)):s[0]==="#"&&u.attrSet("id",s.slice(1));i.content=i.content.slice(a[0].length)}}}return!1})}function $m(e,t){let n=e[t-1];if(!n)return null;if(n.type==="image")return n;if(n.nesting!==-1)return null;let r=n.type.replace(/_close$/,"_open"),o=0;for(let i=t-1;i>=0;i--){let a=e[i];if(a.type===n.type)o++;else if(a.type===r&&(o--,o===0))return a}return null}function Cm(e){return e.trim().toLowerCase().replace(/[^\p{L}\p{N}\s_-]+/gu,"").replace(/\s/gu,"-")||"section"}function _c(e){e.core.ruler.push("wd_heading_anchors",t=>{var o;let n=(o=t.env).headingSlugs??(o.headingSlugs=new Map),r=t.tokens;for(let i=0;i<r.length;i++){if(r[i].type!=="heading_open")continue;let a="";for(let c of r[i+1].children??[])c.type==="text"||c.type==="code_inline"?a+=c.content:c.meta?.wdText&&(a+=c.meta.wdText);let u=Cm(a),s=n.get(u)??0;n.set(u,s+1),r[i].attrSet("id",s?`${u}-${s}`:u)}return!1})}function Zo(e,t){let{path:n,stages:r}=Vu(e,t),o=n.split("."),i=o[0],a=r.length?` data-wd-fmt="${k(Yu(r))}"`:"",u=l=>r.length?Ft(l,r):l;if(Ke[i]){if(!t.loopMeta)throw _(`"{ ${e} }" uses the loop meta variable "${i}" outside a @loop in ${t.file}. Move it into a loop body, or rename your value.`,{code:"WD005",file:t.file});if(t.loopItem)return{html:`<span data-wd-each-meta="${Ke[i]}"${a}></span>`,text:"",kind:"row",meta:Ke[i]}}if(t.loopItem&&i===t.loopItem){let l=o.slice(1).join(".");return{html:`<span data-wd-each${l?` data-wd-path="${k(l)}"`:""}${a}></span>`,text:"",kind:"row",path:l}}let s=we(t.scope,i);if(s.found){let l=oe(s.value,o.slice(1)),d=Or(u(l),e,t);return{html:k(d),text:d,kind:"static"}}let c=G(i,t);if(c){t.comp.assets.runtime=!0,Bu(t,c,e);let l=oe(t.comp.state.get(c),o.slice(1)),d=o.slice(1).join("."),f=d?` data-wd-path="${k(d)}"`:"",m=Uu(u(l),e,t);return{html:`<span data-wd-bind="${k(c)}"${f}${a}>${k(m)}</span>`,text:m,kind:"state",key:c,path:d}}return null}var Dm=["contains","==","!=",">=","<=",">","<"];var wc=new RegExp(`^(.+?)\\s+(${Dm.join("|")})\\s+(.+)$`,"i"),Ec=/\s+(and|or)\s+/iy;function kc(e){let t=[],n="",r="",o=0;for(;o<e.length;){let i=e[o];if(r)n+=i,i===r&&(r=""),o++;else if(i==='"'||i==="'")r=i,n+=i,o++;else{Ec.lastIndex=o;let a=Ec.exec(e);a?(t.push(n,a[1]),n="",o+=a[0].length):(n+=i,o++)}}return t.push(n),t}function Ac(e,t,n){let r=kc(e),o=[],i=!1;for(let a=0;a<r.length;a++){if(a%2===1){o.push(r[a].toLowerCase()==="and"?"&&":"||");continue}let u=Nm(r[a].trim(),t,n);i=i||u.usesState,o.push(`(${u.expr})`)}return{body:o.join(" "),refsState:i}}function Nm(e,t,n){let r=e.match(wc);if(!r){let s=`${t}.field contains state, or ${t}.field <op> value \u2014 e.g. ${t}.price < 50`;throw _(`Malformed where-condition "${e}" in ${n.file}. Use: ${s}`,{code:"WD220",file:n.file,hint:s,example:`${t}.price < 50`})}let o=yc(r[1].trim(),t,n),i=yc(r[3].trim(),t,n),a=o.usesState||i.usesState,u=r[2].toLowerCase();return u==="contains"?{expr:`C(${o.code}, ${i.code})`,usesState:a}:{expr:`${o.code} ${u} ${i.code}`,usesState:a}}function yc(e,t,n){if(/^"[^"]*"$/.test(e)||/^'[^']*'$/.test(e))return{code:JSON.stringify(e.slice(1,-1)),usesState:!1};if(/^-?\d+(?:\.\d+)?$/.test(e))return{code:e,usesState:!1};if(["true","false","null"].includes(e))return{code:e,usesState:!1};if(!/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*$/.test(e))throw _(`Unsupported operand "${e}" in @loop where (${n.file}). Use ${t}.field, a :state name, a number, or a "string".`,{code:"WD221",file:n.file});let r=e.split(".");if(r.some(a=>["constructor","prototype","__proto__"].includes(a)))throw _(`Path "${e}" is not allowed in @loop where (${n.file})`,{code:"WD222",file:n.file});if(r[0]===t)return{code:`I(${JSON.stringify(r.slice(1).join("."))})`,usesState:!1};let o=G(r[0],n);if(!o)throw _(`@loop where references unknown name "${r[0]}" in ${n.file}. Use the loop item (${t}.field) or a declared :state.`,{code:"WD223",file:n.file});let i=r.slice(1).join(".");return{code:`S(${JSON.stringify(o)}${i?`, ${JSON.stringify(i)}`:""})`,usesState:!0}}function Wt(e,t,n,r="@loop where"){try{return!!_t(Ye(e),t,n.comp)}catch{let o=r==="@loop where"?"treating the row as excluded":"treating it as false";return console.warn(`${r} predicate "${e}" in ${n.file} could not be evaluated at build time; ${o}. Check the condition.`),!1}}function Ko(e,t,n){if(/^"[^"]*"$/.test(e)||/^'[^']*'$/.test(e))return{code:JSON.stringify(e.slice(1,-1)),state:!1,item:!1};if(/^-?\d+(?:\.\d+)?$/.test(e))return{code:e,state:!1,item:!1};if(["true","false","null"].includes(e))return{code:e,state:!1,item:!1};if(!/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*$/.test(e))throw _(`Unsupported operand "${e}" in ${n} (${t.file}). Use item.field, a :state name, a number, or a "string".`,{code:"WD224",file:t.file});let r=e.split(".");if(r.some(u=>["constructor","prototype","__proto__"].includes(u)))throw _(`Path "${e}" is not allowed in ${n} (${t.file})`,{code:"WD225",file:t.file});if(t.loopItem&&r[0]===t.loopItem)return{code:`I(${JSON.stringify(r.slice(1).join("."))})`,state:!1,item:!0};let o=we(t.scope,r[0]);if(o.found){let u=JSON.stringify(oe(o.value,r.slice(1))??null);return{code:u===void 0?"null":u,state:!1,item:!1}}let i=G(r[0],t);if(!i)throw _(`${n} references unknown name "${r[0]}" in ${t.file}. Use a loop item field, a declared :state, a number, or a "string".`,{code:"WD226",file:t.file});let a=r.slice(1).join(".");return{code:`S(${JSON.stringify(i)}${a?`, ${JSON.stringify(a)}`:""})`,state:!0,item:!1}}function jo(e,t,n='"::: \u2026 when"'){let r=kc(e),o=[],i=!1,a=!1;for(let s=0;s<r.length;s++){if(s%2===1){o.push(r[s].toLowerCase()==="and"?"&&":"||");continue}let c=r[s].trim(),l=!1;/^not\s+/i.test(c)&&(l=!0,c=c.replace(/^not\s+/i,"").trim());let d=c.match(wc),f;if(d){let m=Ko(d[1].trim(),t,n),p=Ko(d[3].trim(),t,n);i=i||m.state||p.state,a=a||m.item||p.item;let h=d[2].toLowerCase();f=h==="contains"?`C(${m.code}, ${p.code})`:`${m.code} ${h} ${p.code}`}else{let m=Ko(c,t,n);i=i||m.state,a=a||m.item,f=m.code}o.push(l?`(!(${f}))`:`(${f})`)}let u=o.join(" ");return!i&&!a?{static:!0,value:Wt(u,void 0,t,n)}:{static:!1,body:u,item:a}}function xc(e,t){let n=[],r=e.replace(/"[^"\\]*"|'[^'\\]*'/g,i=>(n.push(JSON.stringify(i.slice(1,-1))),`__WDSTR${n.length-1}__`)),o=[];if(r=r.replace(/\b(sum|avg|min|max|count)\s*\(\s*([A-Za-z_$][\w$.]*)\s*(?:,\s*([A-Za-z_$][\w$]*)\s*)?\)/g,(i,a,u,s)=>{let c=u.split(".");if(c.some(m=>["constructor","prototype","__proto__"].includes(m)))throw _(`Path "${u}" is not allowed in :computed ${a}() (${t.file})`,{code:"WD227",file:t.file});let l=G(c[0],t);if(!l)throw _(`:computed ${a}() references unknown state "${c[0]}" in ${t.file}. Declare it with :state or :fetch first.`,{code:"WD228",file:t.file});let d=c.slice(1).join("."),f=`S(${JSON.stringify(l)}${d?`,${JSON.stringify(d)}`:""})`;return o.push(`A(${JSON.stringify(a)},${f}${s?`,${JSON.stringify(s)}`:""})`),`__WDAGG${o.length-1}__`}),/["'\\`]/.test(r))throw _(`Unsupported string syntax in :computed expression "${e}" (${t.file})`,{code:"WD229",file:t.file});if(!/^[\w$.\s+\-*/%()<>=!&|]*$/.test(r))throw _(`Unsupported syntax in :computed expression "${e}" (${t.file}). Allowed: state names, numbers, strings, + - * / % ( ), comparisons, && || !.`,{code:"WD230",file:t.file});if(/(^|[^=!<>])=(?!=)/.test(r))throw _(`Assignment is not allowed in :computed expressions ("${e}" in ${t.file})`,{code:"WD231",file:t.file});if(/[\w$)]\s*\(/.test(r))throw _(`Function calls are not allowed in :computed expressions ("${e}" in ${t.file})`,{code:"WD232",file:t.file});return r=r.replace(/[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*/g,i=>{if(/^__WDSTR\d+__$/.test(i)||/^__WDAGG\d+__$/.test(i)||["true","false","null"].includes(i))return i;let a=i.split(".");if(a.some(c=>["constructor","prototype","__proto__"].includes(c)))throw _(`Path segment "${i}" is not allowed in :computed expressions (${t.file})`,{code:"WD233",file:t.file});let u=G(a[0],t);if(!u)throw _(`:computed references unknown state "${a[0]}" in ${t.file}. Declare it with :state or :fetch first.`,{code:"WD234",file:t.file});let s=a.slice(1).join(".");return`S(${JSON.stringify(u)}${s?`,${JSON.stringify(s)}`:""})`}),r.replace(/__WDAGG(\d+)__/g,(i,a)=>o[Number(a)]).replace(/__WDSTR(\d+)__/g,(i,a)=>n[Number(a)])}var Cc="@loop /products.json into p where p.price < 50 sort by p.price asc",Ee=`Use: @loop src into item [where \u2026] [sort by \u2026] [reverse] [offset N] [limit N] [paginate N] [sortable] \u2014 e.g. ${Cc}`,vc='Use simpler operands \u2014 a field path, a declared :state, a plain number, or a "string".';function qn(e,t,n,r){try{return Ye(e)}catch{throw _(`${r} expression in ${S(t,n)} could not be compiled: "${e}". ${vc}`,{code:"WD190",file:t.file,line:$(t,n),hint:vc.slice(4)})}}var Dc=(e,t,n,r)=>JSON.stringify(qn(e,t,n,r)),Tm=/(^|\s)sortable(?=\s|$)/g,Om=/(^|\s)paginate\s+(\d+)(?=\s|$)/g,Rm=/(^|\s)limit\s+(\d+|[A-Za-z_$][\w$]*)$/g,Mm=/(^|\s)offset\s+(\d+|[A-Za-z_$][\w$]*)$/g,Im=/(^|\s)reverse$/g,Lm=/(^|\s)sort\s+by\s+(\{\s*[A-Za-z_$][\w$]*\s*\}|[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*)(?:\s+(\{\s*[A-Za-z_$][\w$]*\s*\}|asc|desc))?$/g,Fm=/(^|\s)(sort\s+by\s|reverse(\s|$))/g;function Bm(e){let t=new Array(e.length).fill(!1),n="";for(let r=0;r<e.length;r++)n?(t[r]=!0,e[r]===n&&(n="")):(e[r]==='"'||e[r]==="'")&&(n=e[r],t[r]=!0);return t}function ot(e,t){let n=Bm(e);t.lastIndex=0;for(let r=t.exec(e);r;r=t.exec(e)){if(!n[r.index+r[1].length])return r;t.lastIndex=r.index+1}return null}function Um(e,t,n){let r=e.trim(),o=null,i=!1,a=null,u=null,s=!1,c=!1,l=null,d=()=>{throw _(`Malformed @loop clause in ${n.file}: "${e.trim()}". ${Ee}`,{code:"WD102",file:n.file})},f=ot(r,Tm);f&&(c=!0,r=(r.slice(0,f.index)+r.slice((f.index??0)+f[0].length)).replace(/\s+/g," ").trim());let m=ot(r,Om);m&&(l=Number(m[2]),l<1&&d(),r=(r.slice(0,m.index)+r.slice((m.index??0)+m[0].length)).replace(/\s+/g," ").trim());let p=ot(r,Rm);p&&(u=Sc(p[2],n),s=s||u.kind==="key",r=r.slice(0,r.length-p[0].length+p[1].length).trim()),p=ot(r,Mm),p&&(a=Sc(p[2],n),s=s||a.kind==="key",r=r.slice(0,r.length-p[0].length+p[1].length).trim()),p=ot(r,Im),p&&(i=!0,r=r.slice(0,r.length-p[0].length+p[1].length).trim()),p=ot(r,Lm),p&&(o=Pm(p[2],p[3],t,n),(o.keyKind==="key"||o.dirKind==="key")&&(s=!0),r=r.slice(0,r.length-p[0].length+p[1].length).trim());let h=null;if(r.length){let b=r.match(/^where\s+(.+)$/);if(!b)return d();h=b[1].trim(),ot(h,Fm)&&d()}return{where:h,sort:o,reverse:i,offset:a,limit:u,refsState:s,sortable:c,paginate:l}}function Pm(e,t,n,r){let o=l=>l.match(/^\{\s*([A-Za-z_$][\w$]*)\s*\}$/),i,a,u=o(e);if(u){let l=G(u[1],r);if(!l)throw _(`@loop sort by { ${u[1]} } references unknown :state/:store in ${r.file}. ${Ee}`,{code:"WD103",file:r.file});i=l,a="key"}else{let l=e.split(".");if(l[0]!==n)throw _(`@loop sort key "${e}" must start with the loop item "${n}" in ${r.file}. ${Ee}`,{code:"WD104",file:r.file});let d=l.slice(1);if(d.some(f=>["constructor","prototype","__proto__"].includes(f)))throw _(`Sort key "${e}" is not allowed in @loop (${r.file})`,{code:"WD105",file:r.file});i=d.join("."),a="literal"}let s="asc",c="literal";if(t){let l=o(t);if(l){let d=G(l[1],r);if(!d)throw _(`@loop sort direction { ${l[1]} } references unknown :state/:store in ${r.file}. ${Ee}`,{code:"WD106",file:r.file});s=d,c="key"}else s=t}return{key:i,keyKind:a,dir:s,dirKind:c}}function Sc(e,t){if(/^\d+$/.test(e))return{kind:"literal",value:Number(e)};let n=G(e,t);if(!n)throw _(`@loop offset/limit "${e}" in ${t.file} is neither a non-negative integer nor a declared :state. ${Ee}`,{code:"WD107",file:t.file});return{kind:"key",value:n}}function $c(e){return e.kind==="literal"?String(e.value):`key:${e.value}`}function Vo(e,t,n,r,o,i=0){let a=e.match(/^@loop\s+(.+?)\s+into\s+([A-Za-z_$][\w$]*)(\s+.+?)?\s*$/);if(!a)throw _(`Malformed @loop in ${S(r,o)}: ${e}. ${Ee}`,{code:"WD101",file:r.file,line:$(r,o),hint:Ee.slice(5),example:Cc});let u=ee(a[1].trim()),s=a[2],c=a[3]?Um(a[3],s,r):{where:null,sort:null,reverse:!1,offset:null,limit:null,refsState:!1,sortable:!1,paginate:null},l=c.where?Ac(c.where,s,r):null;if(c.sortable&&(l||c.sort||c.reverse||c.offset||c.limit||c.paginate))throw _(`@loop sortable cannot combine with where/sort/reverse/offset/limit/paginate in ${r.file}. ${Ee}`,{code:"WD108",file:r.file});if(c.paginate&&(c.offset||c.limit))throw _(`@loop paginate cannot combine with offset/limit in ${r.file} \u2014 paginate already slices each page. ${Ee}`,{code:"WD109",file:r.file});let d={where:l,sort:c.sort,reverse:c.reverse,offset:c.offset,limit:c.limit,empty:n,emptyStart:i,clauseRefsState:c.refsState,sortable:c.sortable,paginate:c.paginate},f=Q(r,o,{kind:"loop",name:s,detail:e.replace(/^@loop\s+/,"@loop "),reactive:!!(l&&l.refsState||c.refsState)}),m={...fe(r,o+1),loopOpener:{at:S(r,o),line:e.trim()}};if(u.startsWith("/")||u.startsWith("./")||u.startsWith("../")||u.endsWith(".json")){if(d.paginate)throw Un(r);let b=mn(u,r.file,r.context,!0,S(r,o),r.comp.reader);r.comp.deps.add(b);let E=JSON.parse(r.comp.reader.readText(b));if(!Array.isArray(E))throw _(`@loop data must be a JSON array: ${b}`,{code:"WD111",file:r.file});return Pn(E,s,t,m,d)}let p=dn(u,r);if(p.found){if(d.paginate)throw Un(r);if(p.value===null||p.value===void 0)return Pn([],s,t,m,d);if(!Array.isArray(p.value))throw _(`@loop ${u} in ${S(r,o)} found an in-scope value, but it is not a list (got ${typeof p.value}). Use: a list value (e.g. \`tags: [a, b]\` in frontmatter) \u2014 or leave the field out entirely, which loops zero rows and renders the @empty branch.`,{code:"WD112",file:r.file,line:$(r,o)});return Pn(p.value,s,t,m,d)}let h=u.split(".");if(/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*$/.test(u)){if(h.some(g=>["constructor","prototype","__proto__"].includes(g)))throw _(`@loop source "${u}" is not allowed in ${r.file}`,{code:"WD113",file:r.file});let b=G(h[0],r);if(b){if(d.paginate)throw Un(r);let g=h.length>1?`${b}.${h.slice(1).join(".")}`:b;return f.reactive=!0,f.name=s,f.target=g,Rc(g,s,t,m,d)}let E=h.length===1?r.comp.collections.get(u):void 0;if(E)return r.comp.collectionsUsed.add(u),qm(E,u,s,t,m,d);if(r.loopItem&&h[0]===r.loopItem&&h.length>1){if(d.sortable)throw _(`@loop sortable is not supported on a nested (item-relative) loop in ${r.file}. ${Ee}`,{code:"WD114",file:r.file});if(d.paginate)throw Un(r);return f.reactive=!0,Jm(h.slice(1).join("."),s,t,m,d)}}throw zm(u,r)}function zm(e,t){let n=[...t.comp.collections.keys()].sort(),r=n.length?` Available collections: ${n.join(", ")}.`:"";return _(`@loop source "${e}" in ${t.file} was not found. Loop over a collection (a site/pages/<name>/ subdirectory, by its bare name), a JSON file (@loop /data.json into row), an in-scope value, or a :state list.${r}`,{code:"WD115",file:t.file})}function Un(e){return _(`@loop paginate requires a collection source (a site/pages/<name>/ subdirectory) in ${e.file}. ${Ee}`,{code:"WD110",file:e.file})}function Nc(e){if((e.reactiveDepth??0)<2)return;let t=e.loopOpener??{at:e.file,line:""};throw _(`Reactive @loop nesting is limited to one inner level in ${t.at}: "${t.line}". Unroll the outer data at build time (JSON/frontmatter source) or move the innermost list into build-time data.`,{code:"WD116",file:e.file})}function qm(e,t,n,r,o,i){if(!i.paginate)return Pn(e,n,r,o,i);let a=Yo(e,i.where,{...i,offset:null,limit:null},o),u=i.paginate,s=Math.max(1,Math.ceil(a.length/u));o.comp.pagination={perPage:u,total:s,collection:t};let l=(Wm(o)-1)*u;return Tc(a.slice(l,l+u),n,r,o,i.empty,i.emptyStart)}function Wm(e){let t=we(e.scope,"page");if(t.found&&t.value&&typeof t.value=="object"){let n=t.value.current;if(typeof n=="number"&&n>=1)return n}return 1}function Yo(e,t,n,r){let o=t?e.filter(a=>Wt(t.body,a,r)):e.slice();if(n.sort){let a=n.sort.key,u=n.sort.dir==="desc"?-1:1;o=o.map((s,c)=>({value:s,index:c})).sort((s,c)=>{let l=oe(s.value,a?a.split("."):[]),d=oe(c.value,a?a.split("."):[]),f=typeof l=="number"&&typeof d=="number"?l-d:String(l).localeCompare(String(d));return f?f*u:s.index-c.index}).map(s=>s.value)}n.reverse&&o.reverse();let i=n.offset&&n.offset.kind==="literal"?n.offset.value:0;return i&&(o=o.slice(i)),n.limit&&n.limit.kind==="literal"&&(o=o.slice(0,n.limit.value)),o}function Pn(e,t,n,r,o){if(o.sortable)throw _(`@loop sortable requires a :state or :store list to reorder, not a JSON file or in-scope value, in ${r.file}. ${Ee}`,{code:"WD117",file:r.file});return o.where&&o.where.refsState||o.clauseRefsState?Rc(null,t,n,r,{...o,data:e}):Tc(Yo(e,o.where,o,r),t,n,r,o.empty,o.emptyStart)}function Tc(e,t,n,r,o=null,i=0){if(e.length===0&&o)return r.compileBody(o,{...fe(r,i),loopMeta:!0});let a=Xo(n),u=a?[Hm(a.columns),Gm(a.columns),...n]:n,s=[],c=e.length;for(let d=0;d<c;d++){let f={$index:d,$number:d+1,$first:d===0,$last:d===c-1,$count:c},m={...a?fe(r,-2):r,loopMeta:!0,scope:Te(r.scope,{[t]:e[d],...f})};s.push(r.compileBody(u,m))}let l=Ym(s);return a?l.replace(/<thead>[\s\S]*?<\/thead>\n?/g,""):l}var Hm=e=>`|${" c |".repeat(e)}`,Gm=e=>`|${" --- |".repeat(e)}`;function Xo(e){let t=e.length;for(;t>0&&!e[t-1].trim();)t--;let n=e.slice(0,t);return!n.length||!n.every(r=>/^ {0,3}\|/.test(r))||n.some(r=>/^ {0,3}\|[\s:|-]+\|\s*$/.test(r))?null:{columns:Zm(n[0])}}function Zm(e){let t=e.trim().replace(/^\|/,"").replace(/\|$/,""),n=1;for(let r=0;r<t.length;r++)t[r]==="\\"?r++:t[r]==="|"&&n++;return n}function Oc(e,t,n){let r=e.loopOpener??{at:e.file,line:""},o=n===null?jm(t):[],i=o.map(s=>`"${s}"`).join(", "),a=o.length?` The source is static; the clauses read :state ${i}, which is what makes the loop reactive.`:"",u=o.length?`drop ${i} from the clauses so the rows unroll at build time, or build reactive rows from containers (\`::: trow\` / \`::: td\`) instead of \`|\` cells`:"a static source (a JSON file, a frontmatter list, or a collection) for a markdown table, or build reactive rows from containers (`::: trow` / `::: td`) instead of `|` cells";return _(`A reactive @loop cannot build markdown table rows in ${r.at}: "${r.line}". A reactive row is cloned into a <div>, which cannot live inside a <table>.${a} Use: ${u}.`,{code:"WD191",file:e.file,hint:u})}var Km=/\bS\("((?:[^"\\]|\\.)*)"/g;function jm(e){let t=new Set;for(let n of(e?.where?.body??"").matchAll(Km))t.add(JSON.parse(`"${n[1]}"`));for(let n of[e?.limit,e?.offset])n?.kind==="key"&&t.add(n.value);return e?.sort?.keyKind==="key"&&t.add(e.sort.key),e?.sort?.dirKind==="key"&&t.add(e.sort.dir),[...t]}var Vm=["ul","ol"];function Ym(e){if(!e.length)return"";let t=e[0];for(let n=1;n<e.length;n++)t=Xm(t,e[n]);return t}function Xm(e,t){let n=e.trimEnd(),r=t.trimStart();for(let o of Vm)if(n.endsWith(`</${o}>`)&&r.startsWith(`<${o}>`))return`${n.slice(0,-(o.length+3)).trimEnd()}
34
+ `)}function dc(e){e.core.ruler.push("wd_attr_bind",t=>{let n=t.env?.wd?.attrs;if(!n||!n.length)return!1;for(let r of t.tokens)for(let o of r.children??[]){let i=o.type==="link_open"?"href":o.type==="image"?"src":"";if(!i)continue;let a=o.attrGet(i);if(!a||!a.includes("~wd-attr-"))continue;let u=[],s="",c="",l=!1,d=0;Ho.lastIndex=0;let f;for(;f=Ho.exec(a);){let m=n[Number(f[1])];m&&(f.index>d&&(u.push(a.slice(d,f.index)),s+=a.slice(d,f.index),c+=a.slice(d,f.index)),u.push(m),s+=Bn(m.text),c+=m.text,m.part[0]!=="s"&&(l=!0),d=f.index+f[0].length)}u.length&&(d<a.length&&(u.push(a.slice(d)),s+=a.slice(d),c+=a.slice(d)),o.attrSet(i,mt(c)?"":s),o.attrSet(l?"data-wd-each-attr":"data-wd-attr",JSON.stringify([i,...u.map(m=>typeof m=="string"?m:m.part)])))}return!1})}var ym=[64,96,128,160,256,320,480,640,768,960,1024,1280,1440,1536,1920,2048,2560,3840],uc=new WeakMap;function fc(e){e.core.ruler.push("wd_image_variants",t=>{let n=t.env?.wd;if(!n)return!1;for(let r of t.tokens)for(let o of r.children??[]){if(o.type!=="image"||o.attrGet("data-wd-attr")||o.attrGet("data-wd-each-attr"))continue;let i=wm(o.attrGet("src")??"",n.ctx);i&&o.attrSet("srcset",i)}return!1})}function wm(e,t){let n=uc.get(t.comp);if(!n)uc.set(t.comp,n=new Map);else if(n.has(e))return n.get(e)??null;let r=km(e,t);return n.set(e,r),r}function km(e,t){if(!e||/^(?:https?:)?\/\//i.test(e)||e.startsWith("data:")||/[?#]/.test(e))return null;let n=e.lastIndexOf(".");if(n<=e.lastIndexOf("/")+1)return null;let r=e.slice(0,n),o=e.slice(n),i,a;if(r.startsWith("/__wd/media/"))a=t.context.shelfRoot,i=r.slice(12);else if(e.startsWith("/"))a=t.context.routesRoot,i=r.slice(1);else return null;let u=t.comp.reader,s=[];for(let d of ym){let f=M.join(a,`${i}@${d}${o}`);u.exists(f)&&s.push({href:`${r}@${d}${o}`,width:sc(f,u)??d})}let c=t.comp.imageVariants?.get(M.join(a,`${i}${o}`));if(c)for(let d of c){let f=`${r}@${d}${o}`;s.some(m=>m.href===f)||s.push({href:f,width:d})}if(!s.length)return null;let l=sc(M.join(a,`${i}${o}`),u);return l&&s.push({href:e,width:l}),s.sort((d,f)=>d.width-f.width),s.map(d=>`${d.href} ${d.width}w`).join(", ")}function sc(e,t){try{return Fn(t.readBinary(e))?.width??null}catch{return null}}var Am=/^<[A-Za-z][A-Za-z0-9-]*(?=[\s/>])/,xm=/\s(?:class|id)\s*=/i;function pc(e){e.core.ruler.push("wd_html_siblings",t=>{if(!t.md.options.html)return!1;let n=t.env?.wd;if(!n)return!1;for(let r of t.tokens)r.type!=="inline"||!r.children||vm(r,n,n.ctx);return!1})}function vm(e,t,n){let r=[],o=!0;for(let a of e.children){if(a.type==="softbreak"||a.type==="hardbreak"){o=!0;continue}o&&(o=!1,r.push(a.type==="html_inline"&&a.meta?.wdText===void 0&&Am.test(a.content)&&xm.test(a.content)))}let i=-1;for(let a=0;a<=r.length;a++){if(a<r.length&&r[a]){i===-1&&(i=a);continue}i!==-1&&a-i>=2&&n.comp.warnings.push(`${n.file}:${$(n,t.index+(e.map?e.map[0]:0)+i)}: ${a-i} sibling HTML block lines will render inline in one <p>; wrap them in a container (e.g. a raw <div>)`),i=-1}}function mc(e){e.core.ruler.push("wd_raw_html",t=>{let n=t.env?.wd;if(!n)return!1;for(let r of t.tokens){let o=n.index+(r.map?r.map[0]:0);if(r.type==="html_block"){r.content=cc(r.content,n.ctx,o);continue}let i=0;for(let a of r.children??[])a.type==="softbreak"||a.type==="hardbreak"?i++:a.type==="html_inline"&&a.meta?.wdText===void 0&&(a.content=cc(a.content,n.ctx,o+i))}return!1})}var Sm=/\b(?:href|src|action|formaction|xlink:href)\s*=\s*(?:"([^"]*)|'([^']*)|([^\s>"']*))$/i;function hc(e,t,n){e.comp.warnings.push(`${e.file}:${$(e,t)}: "{ ${n} }" resolves to a javascript:, data: or vbscript: URL, so the attribute is emitted empty. Use an https:, mailto: or site-relative value, or render it as text rather than a link target.`)}function cc(e,t,n){let r=/\{\s*([A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*\s*(?:\|[^}]*)?)\}/g,o="",i=0,a;for(;a=r.exec(e);){o+=e.slice(i,a.index),i=a.index+a[0].length;let u=a[1].trim(),s=Zo(u,t);if(!s){o+=a[0];continue}if(s.kind==="row"){ac(t,n,u,!1),o+=a[0];continue}s.kind==="state"&&ac(t,n,u,!0);let c=Sm.exec(o),l=c?c[1]??c[2]??c[3]:"";if(c&&mt(l+s.text)){hc(t,n,u),o=o.slice(0,o.length-l.length);continue}o+=w(s.text)}return o+e.slice(i)}function bc(e){e.inline.ruler.push("wd_binding",(t,n)=>{if(t.src.charCodeAt(t.pos)!==123)return!1;let r=/^\{\s*([A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*\s*(?:\|[^}]*)?)\}/.exec(t.src.slice(t.pos));if(!r)return!1;let o=t.env?.resolveBinding,i=o?o(r[1].trim()):null;if(!i)return!1;if(!n){let a=t.push("html_inline","",0);a.content=i.html,a.meta={wdText:i.text}}return t.pos+=r[0].length,!0})}function gc(e){e.core.ruler.push("wd_attrs",t=>{for(let n of t.tokens){if(n.type!=="inline"||!n.children)continue;let r=n.children;for(let o=0;o<r.length;o++){let i=r[o];if(i.type!=="text")continue;let a=/^\{((?:[.#]|sizes=")[^}]*)\}/.exec(i.content);if(!a)continue;let u=$m(r,o);if(u){for(let s of a[1].match(/sizes="[^"]*"|\S+/g)??[])s[0]==="."?u.attrJoin("class",s.slice(1)):s[0]==="#"?u.attrSet("id",s.slice(1)):u.type==="image"&&s.startsWith('sizes="')&&u.attrSet("sizes",s.slice(7,-1));i.content=i.content.slice(a[0].length)}}}return!1})}function $m(e,t){let n=e[t-1];if(!n)return null;if(n.type==="image")return n;if(n.nesting!==-1)return null;let r=n.type.replace(/_close$/,"_open"),o=0;for(let i=t-1;i>=0;i--){let a=e[i];if(a.type===n.type)o++;else if(a.type===r&&(o--,o===0))return a}return null}function Cm(e){return e.trim().toLowerCase().replace(/[^\p{L}\p{N}\s_-]+/gu,"").replace(/\s/gu,"-")||"section"}function _c(e){e.core.ruler.push("wd_heading_anchors",t=>{var o;let n=(o=t.env).headingSlugs??(o.headingSlugs=new Map),r=t.tokens;for(let i=0;i<r.length;i++){if(r[i].type!=="heading_open")continue;let a="";for(let c of r[i+1].children??[])c.type==="text"||c.type==="code_inline"?a+=c.content:c.meta?.wdText&&(a+=c.meta.wdText);let u=Cm(a),s=n.get(u)??0;n.set(u,s+1),r[i].attrSet("id",s?`${u}-${s}`:u)}return!1})}function Zo(e,t){let{path:n,stages:r}=Vu(e,t),o=n.split("."),i=o[0],a=r.length?` data-wd-fmt="${w(Yu(r))}"`:"",u=l=>r.length?Ft(l,r):l;if(Ke[i]){if(!t.loopMeta)throw _(`"{ ${e} }" uses the loop meta variable "${i}" outside a @loop in ${t.file}. Move it into a loop body, or rename your value.`,{code:"WD005",file:t.file});if(t.loopItem)return{html:`<span data-wd-each-meta="${Ke[i]}"${a}></span>`,text:"",kind:"row",meta:Ke[i]}}if(t.loopItem&&i===t.loopItem){let l=o.slice(1).join(".");return{html:`<span data-wd-each${l?` data-wd-path="${w(l)}"`:""}${a}></span>`,text:"",kind:"row",path:l}}let s=we(t.scope,i);if(s.found){let l=oe(s.value,o.slice(1)),d=Or(u(l),e,t);return{html:w(d),text:d,kind:"static"}}let c=Z(i,t);if(c){t.comp.assets.runtime=!0,Bu(t,c,e);let l=oe(t.comp.state.get(c),o.slice(1)),d=o.slice(1).join("."),f=d?` data-wd-path="${w(d)}"`:"",m=Uu(u(l),e,t);return{html:`<span data-wd-bind="${w(c)}"${f}${a}>${w(m)}</span>`,text:m,kind:"state",key:c,path:d}}return null}var Dm=["contains","==","!=",">=","<=",">","<"];var wc=new RegExp(`^(.+?)\\s+(${Dm.join("|")})\\s+(.+)$`,"i"),Ec=/\s+(and|or)\s+/iy;function kc(e){let t=[],n="",r="",o=0;for(;o<e.length;){let i=e[o];if(r)n+=i,i===r&&(r=""),o++;else if(i==='"'||i==="'")r=i,n+=i,o++;else{Ec.lastIndex=o;let a=Ec.exec(e);a?(t.push(n,a[1]),n="",o+=a[0].length):(n+=i,o++)}}return t.push(n),t}function Ac(e,t,n){let r=kc(e),o=[],i=!1;for(let a=0;a<r.length;a++){if(a%2===1){o.push(r[a].toLowerCase()==="and"?"&&":"||");continue}let u=Nm(r[a].trim(),t,n);i=i||u.usesState,o.push(`(${u.expr})`)}return{body:o.join(" "),refsState:i}}function Nm(e,t,n){let r=e.match(wc);if(!r){let s=`${t}.field contains state, or ${t}.field <op> value \u2014 e.g. ${t}.price < 50`;throw _(`Malformed where-condition "${e}" in ${n.file}. Use: ${s}`,{code:"WD220",file:n.file,hint:s,example:`${t}.price < 50`})}let o=yc(r[1].trim(),t,n),i=yc(r[3].trim(),t,n),a=o.usesState||i.usesState,u=r[2].toLowerCase();return u==="contains"?{expr:`C(${o.code}, ${i.code})`,usesState:a}:{expr:`${o.code} ${u} ${i.code}`,usesState:a}}function yc(e,t,n){if(/^"[^"]*"$/.test(e)||/^'[^']*'$/.test(e))return{code:JSON.stringify(e.slice(1,-1)),usesState:!1};if(/^-?\d+(?:\.\d+)?$/.test(e))return{code:e,usesState:!1};if(["true","false","null"].includes(e))return{code:e,usesState:!1};if(!/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*$/.test(e))throw _(`Unsupported operand "${e}" in @loop where (${n.file}). Use ${t}.field, a :state name, a number, or a "string".`,{code:"WD221",file:n.file});let r=e.split(".");if(r.some(a=>["constructor","prototype","__proto__"].includes(a)))throw _(`Path "${e}" is not allowed in @loop where (${n.file})`,{code:"WD222",file:n.file});if(r[0]===t)return{code:`I(${JSON.stringify(r.slice(1).join("."))})`,usesState:!1};let o=Z(r[0],n);if(!o)throw _(`@loop where references unknown name "${r[0]}" in ${n.file}. Use the loop item (${t}.field) or a declared :state.`,{code:"WD223",file:n.file});let i=r.slice(1).join(".");return{code:`S(${JSON.stringify(o)}${i?`, ${JSON.stringify(i)}`:""})`,usesState:!0}}function Wt(e,t,n,r="@loop where"){try{return!!_t(Ye(e),t,n.comp)}catch{let o=r==="@loop where"?"treating the row as excluded":"treating it as false";return console.warn(`${r} predicate "${e}" in ${n.file} could not be evaluated at build time; ${o}. Check the condition.`),!1}}function Ko(e,t,n){if(/^"[^"]*"$/.test(e)||/^'[^']*'$/.test(e))return{code:JSON.stringify(e.slice(1,-1)),state:!1,item:!1};if(/^-?\d+(?:\.\d+)?$/.test(e))return{code:e,state:!1,item:!1};if(["true","false","null"].includes(e))return{code:e,state:!1,item:!1};if(!/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*$/.test(e))throw _(`Unsupported operand "${e}" in ${n} (${t.file}). Use item.field, a :state name, a number, or a "string".`,{code:"WD224",file:t.file});let r=e.split(".");if(r.some(u=>["constructor","prototype","__proto__"].includes(u)))throw _(`Path "${e}" is not allowed in ${n} (${t.file})`,{code:"WD225",file:t.file});if(t.loopItem&&r[0]===t.loopItem)return{code:`I(${JSON.stringify(r.slice(1).join("."))})`,state:!1,item:!0};let o=we(t.scope,r[0]);if(o.found){let u=JSON.stringify(oe(o.value,r.slice(1))??null);return{code:u===void 0?"null":u,state:!1,item:!1}}let i=Z(r[0],t);if(!i)throw _(`${n} references unknown name "${r[0]}" in ${t.file}. Use a loop item field, a declared :state, a number, or a "string".`,{code:"WD226",file:t.file});let a=r.slice(1).join(".");return{code:`S(${JSON.stringify(i)}${a?`, ${JSON.stringify(a)}`:""})`,state:!0,item:!1}}function jo(e,t,n='"::: \u2026 when"'){let r=kc(e),o=[],i=!1,a=!1;for(let s=0;s<r.length;s++){if(s%2===1){o.push(r[s].toLowerCase()==="and"?"&&":"||");continue}let c=r[s].trim(),l=!1;/^not\s+/i.test(c)&&(l=!0,c=c.replace(/^not\s+/i,"").trim());let d=c.match(wc),f;if(d){let m=Ko(d[1].trim(),t,n),p=Ko(d[3].trim(),t,n);i=i||m.state||p.state,a=a||m.item||p.item;let h=d[2].toLowerCase();f=h==="contains"?`C(${m.code}, ${p.code})`:`${m.code} ${h} ${p.code}`}else{let m=Ko(c,t,n);i=i||m.state,a=a||m.item,f=m.code}o.push(l?`(!(${f}))`:`(${f})`)}let u=o.join(" ");return!i&&!a?{static:!0,value:Wt(u,void 0,t,n)}:{static:!1,body:u,item:a}}function xc(e,t){let n=[],r=e.replace(/"[^"\\]*"|'[^'\\]*'/g,i=>(n.push(JSON.stringify(i.slice(1,-1))),`__WDSTR${n.length-1}__`)),o=[];if(r=r.replace(/\b(sum|avg|min|max|count)\s*\(\s*([A-Za-z_$][\w$.]*)\s*(?:,\s*([A-Za-z_$][\w$]*)\s*)?\)/g,(i,a,u,s)=>{let c=u.split(".");if(c.some(m=>["constructor","prototype","__proto__"].includes(m)))throw _(`Path "${u}" is not allowed in :computed ${a}() (${t.file})`,{code:"WD227",file:t.file});let l=Z(c[0],t);if(!l)throw _(`:computed ${a}() references unknown state "${c[0]}" in ${t.file}. Declare it with :state or :fetch first.`,{code:"WD228",file:t.file});let d=c.slice(1).join("."),f=`S(${JSON.stringify(l)}${d?`,${JSON.stringify(d)}`:""})`;return o.push(`A(${JSON.stringify(a)},${f}${s?`,${JSON.stringify(s)}`:""})`),`__WDAGG${o.length-1}__`}),/["'\\`]/.test(r))throw _(`Unsupported string syntax in :computed expression "${e}" (${t.file})`,{code:"WD229",file:t.file});if(!/^[\w$.\s+\-*/%()<>=!&|]*$/.test(r))throw _(`Unsupported syntax in :computed expression "${e}" (${t.file}). Allowed: state names, numbers, strings, + - * / % ( ), comparisons, && || !.`,{code:"WD230",file:t.file});if(/(^|[^=!<>])=(?!=)/.test(r))throw _(`Assignment is not allowed in :computed expressions ("${e}" in ${t.file})`,{code:"WD231",file:t.file});if(/[\w$)]\s*\(/.test(r))throw _(`Function calls are not allowed in :computed expressions ("${e}" in ${t.file})`,{code:"WD232",file:t.file});return r=r.replace(/[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*/g,i=>{if(/^__WDSTR\d+__$/.test(i)||/^__WDAGG\d+__$/.test(i)||["true","false","null"].includes(i))return i;let a=i.split(".");if(a.some(c=>["constructor","prototype","__proto__"].includes(c)))throw _(`Path segment "${i}" is not allowed in :computed expressions (${t.file})`,{code:"WD233",file:t.file});let u=Z(a[0],t);if(!u)throw _(`:computed references unknown state "${a[0]}" in ${t.file}. Declare it with :state or :fetch first.`,{code:"WD234",file:t.file});let s=a.slice(1).join(".");return`S(${JSON.stringify(u)}${s?`,${JSON.stringify(s)}`:""})`}),r.replace(/__WDAGG(\d+)__/g,(i,a)=>o[Number(a)]).replace(/__WDSTR(\d+)__/g,(i,a)=>n[Number(a)])}var Cc="@loop /products.json into p where p.price < 50 sort by p.price asc",Ee=`Use: @loop src into item [where \u2026] [sort by \u2026] [reverse] [offset N] [limit N] [paginate N] [sortable] \u2014 e.g. ${Cc}`,vc='Use simpler operands \u2014 a field path, a declared :state, a plain number, or a "string".';function qn(e,t,n,r){try{return Ye(e)}catch{throw _(`${r} expression in ${S(t,n)} could not be compiled: "${e}". ${vc}`,{code:"WD190",file:t.file,line:$(t,n),hint:vc.slice(4)})}}var Dc=(e,t,n,r)=>JSON.stringify(qn(e,t,n,r)),Tm=/(^|\s)sortable(?=\s|$)/g,Om=/(^|\s)paginate\s+(\d+)(?=\s|$)/g,Rm=/(^|\s)limit\s+(\d+|[A-Za-z_$][\w$]*)$/g,Mm=/(^|\s)offset\s+(\d+|[A-Za-z_$][\w$]*)$/g,Im=/(^|\s)reverse$/g,Lm=/(^|\s)sort\s+by\s+(\{\s*[A-Za-z_$][\w$]*\s*\}|[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*)(?:\s+(\{\s*[A-Za-z_$][\w$]*\s*\}|asc|desc))?$/g,Fm=/(^|\s)(sort\s+by\s|reverse(\s|$))/g;function Bm(e){let t=new Array(e.length).fill(!1),n="";for(let r=0;r<e.length;r++)n?(t[r]=!0,e[r]===n&&(n="")):(e[r]==='"'||e[r]==="'")&&(n=e[r],t[r]=!0);return t}function ot(e,t){let n=Bm(e);t.lastIndex=0;for(let r=t.exec(e);r;r=t.exec(e)){if(!n[r.index+r[1].length])return r;t.lastIndex=r.index+1}return null}function Um(e,t,n){let r=e.trim(),o=null,i=!1,a=null,u=null,s=!1,c=!1,l=null,d=()=>{throw _(`Malformed @loop clause in ${n.file}: "${e.trim()}". ${Ee}`,{code:"WD102",file:n.file})},f=ot(r,Tm);f&&(c=!0,r=(r.slice(0,f.index)+r.slice((f.index??0)+f[0].length)).replace(/\s+/g," ").trim());let m=ot(r,Om);m&&(l=Number(m[2]),l<1&&d(),r=(r.slice(0,m.index)+r.slice((m.index??0)+m[0].length)).replace(/\s+/g," ").trim());let p=ot(r,Rm);p&&(u=Sc(p[2],n),s=s||u.kind==="key",r=r.slice(0,r.length-p[0].length+p[1].length).trim()),p=ot(r,Mm),p&&(a=Sc(p[2],n),s=s||a.kind==="key",r=r.slice(0,r.length-p[0].length+p[1].length).trim()),p=ot(r,Im),p&&(i=!0,r=r.slice(0,r.length-p[0].length+p[1].length).trim()),p=ot(r,Lm),p&&(o=Pm(p[2],p[3],t,n),(o.keyKind==="key"||o.dirKind==="key")&&(s=!0),r=r.slice(0,r.length-p[0].length+p[1].length).trim());let h=null;if(r.length){let b=r.match(/^where\s+(.+)$/);if(!b)return d();h=b[1].trim(),ot(h,Fm)&&d()}return{where:h,sort:o,reverse:i,offset:a,limit:u,refsState:s,sortable:c,paginate:l}}function Pm(e,t,n,r){let o=l=>l.match(/^\{\s*([A-Za-z_$][\w$]*)\s*\}$/),i,a,u=o(e);if(u){let l=Z(u[1],r);if(!l)throw _(`@loop sort by { ${u[1]} } references unknown :state/:store in ${r.file}. ${Ee}`,{code:"WD103",file:r.file});i=l,a="key"}else{let l=e.split(".");if(l[0]!==n)throw _(`@loop sort key "${e}" must start with the loop item "${n}" in ${r.file}. ${Ee}`,{code:"WD104",file:r.file});let d=l.slice(1);if(d.some(f=>["constructor","prototype","__proto__"].includes(f)))throw _(`Sort key "${e}" is not allowed in @loop (${r.file})`,{code:"WD105",file:r.file});i=d.join("."),a="literal"}let s="asc",c="literal";if(t){let l=o(t);if(l){let d=Z(l[1],r);if(!d)throw _(`@loop sort direction { ${l[1]} } references unknown :state/:store in ${r.file}. ${Ee}`,{code:"WD106",file:r.file});s=d,c="key"}else s=t}return{key:i,keyKind:a,dir:s,dirKind:c}}function Sc(e,t){if(/^\d+$/.test(e))return{kind:"literal",value:Number(e)};let n=Z(e,t);if(!n)throw _(`@loop offset/limit "${e}" in ${t.file} is neither a non-negative integer nor a declared :state. ${Ee}`,{code:"WD107",file:t.file});return{kind:"key",value:n}}function $c(e){return e.kind==="literal"?String(e.value):`key:${e.value}`}function Vo(e,t,n,r,o,i=0){let a=e.match(/^@loop\s+(.+?)\s+into\s+([A-Za-z_$][\w$]*)(\s+.+?)?\s*$/);if(!a)throw _(`Malformed @loop in ${S(r,o)}: ${e}. ${Ee}`,{code:"WD101",file:r.file,line:$(r,o),hint:Ee.slice(5),example:Cc});let u=ee(a[1].trim()),s=a[2],c=a[3]?Um(a[3],s,r):{where:null,sort:null,reverse:!1,offset:null,limit:null,refsState:!1,sortable:!1,paginate:null},l=c.where?Ac(c.where,s,r):null;if(c.sortable&&(l||c.sort||c.reverse||c.offset||c.limit||c.paginate))throw _(`@loop sortable cannot combine with where/sort/reverse/offset/limit/paginate in ${r.file}. ${Ee}`,{code:"WD108",file:r.file});if(c.paginate&&(c.offset||c.limit))throw _(`@loop paginate cannot combine with offset/limit in ${r.file} \u2014 paginate already slices each page. ${Ee}`,{code:"WD109",file:r.file});let d={where:l,sort:c.sort,reverse:c.reverse,offset:c.offset,limit:c.limit,empty:n,emptyStart:i,clauseRefsState:c.refsState,sortable:c.sortable,paginate:c.paginate},f=Q(r,o,{kind:"loop",name:s,detail:e.replace(/^@loop\s+/,"@loop "),reactive:!!(l&&l.refsState||c.refsState)}),m={...fe(r,o+1),loopOpener:{at:S(r,o),line:e.trim()}};if(u.startsWith("/")||u.startsWith("./")||u.startsWith("../")||u.endsWith(".json")){if(d.paginate)throw Un(r);let b=mn(u,r.file,r.context,!0,S(r,o),r.comp.reader);r.comp.deps.add(b);let E=JSON.parse(r.comp.reader.readText(b));if(!Array.isArray(E))throw _(`@loop data must be a JSON array: ${b}`,{code:"WD111",file:r.file});return Pn(E,s,t,m,d)}let p=dn(u,r);if(p.found){if(d.paginate)throw Un(r);if(p.value===null||p.value===void 0)return Pn([],s,t,m,d);if(!Array.isArray(p.value))throw _(`@loop ${u} in ${S(r,o)} found an in-scope value, but it is not a list (got ${typeof p.value}). Use: a list value (e.g. \`tags: [a, b]\` in frontmatter) \u2014 or leave the field out entirely, which loops zero rows and renders the @empty branch.`,{code:"WD112",file:r.file,line:$(r,o)});return Pn(p.value,s,t,m,d)}let h=u.split(".");if(/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*$/.test(u)){if(h.some(g=>["constructor","prototype","__proto__"].includes(g)))throw _(`@loop source "${u}" is not allowed in ${r.file}`,{code:"WD113",file:r.file});let b=Z(h[0],r);if(b){if(d.paginate)throw Un(r);let g=h.length>1?`${b}.${h.slice(1).join(".")}`:b;return f.reactive=!0,f.name=s,f.target=g,Rc(g,s,t,m,d)}let E=h.length===1?r.comp.collections.get(u):void 0;if(E)return r.comp.collectionsUsed.add(u),qm(E,u,s,t,m,d);if(r.loopItem&&h[0]===r.loopItem&&h.length>1){if(d.sortable)throw _(`@loop sortable is not supported on a nested (item-relative) loop in ${r.file}. ${Ee}`,{code:"WD114",file:r.file});if(d.paginate)throw Un(r);return f.reactive=!0,Jm(h.slice(1).join("."),s,t,m,d)}}throw zm(u,r)}function zm(e,t){let n=[...t.comp.collections.keys()].sort(),r=n.length?` Available collections: ${n.join(", ")}.`:"";return _(`@loop source "${e}" in ${t.file} was not found. Loop over a collection (a site/pages/<name>/ subdirectory, by its bare name), a JSON file (@loop /data.json into row), an in-scope value, or a :state list.${r}`,{code:"WD115",file:t.file})}function Un(e){return _(`@loop paginate requires a collection source (a site/pages/<name>/ subdirectory) in ${e.file}. ${Ee}`,{code:"WD110",file:e.file})}function Nc(e){if((e.reactiveDepth??0)<2)return;let t=e.loopOpener??{at:e.file,line:""};throw _(`Reactive @loop nesting is limited to one inner level in ${t.at}: "${t.line}". Unroll the outer data at build time (JSON/frontmatter source) or move the innermost list into build-time data.`,{code:"WD116",file:e.file})}function qm(e,t,n,r,o,i){if(!i.paginate)return Pn(e,n,r,o,i);let a=Yo(e,i.where,{...i,offset:null,limit:null},o),u=i.paginate,s=Math.max(1,Math.ceil(a.length/u));o.comp.pagination={perPage:u,total:s,collection:t};let l=(Wm(o)-1)*u;return Tc(a.slice(l,l+u),n,r,o,i.empty,i.emptyStart)}function Wm(e){let t=we(e.scope,"page");if(t.found&&t.value&&typeof t.value=="object"){let n=t.value.current;if(typeof n=="number"&&n>=1)return n}return 1}function Yo(e,t,n,r){let o=t?e.filter(a=>Wt(t.body,a,r)):e.slice();if(n.sort){let a=n.sort.key,u=n.sort.dir==="desc"?-1:1;o=o.map((s,c)=>({value:s,index:c})).sort((s,c)=>{let l=oe(s.value,a?a.split("."):[]),d=oe(c.value,a?a.split("."):[]),f=typeof l=="number"&&typeof d=="number"?l-d:String(l).localeCompare(String(d));return f?f*u:s.index-c.index}).map(s=>s.value)}n.reverse&&o.reverse();let i=n.offset&&n.offset.kind==="literal"?n.offset.value:0;return i&&(o=o.slice(i)),n.limit&&n.limit.kind==="literal"&&(o=o.slice(0,n.limit.value)),o}function Pn(e,t,n,r,o){if(o.sortable)throw _(`@loop sortable requires a :state or :store list to reorder, not a JSON file or in-scope value, in ${r.file}. ${Ee}`,{code:"WD117",file:r.file});return o.where&&o.where.refsState||o.clauseRefsState?Rc(null,t,n,r,{...o,data:e}):Tc(Yo(e,o.where,o,r),t,n,r,o.empty,o.emptyStart)}function Tc(e,t,n,r,o=null,i=0){if(e.length===0&&o)return r.compileBody(o,{...fe(r,i),loopMeta:!0});let a=Xo(n),u=a?[Hm(a.columns),Gm(a.columns),...n]:n,s=[],c=e.length;for(let d=0;d<c;d++){let f={$index:d,$number:d+1,$first:d===0,$last:d===c-1,$count:c},m={...a?fe(r,-2):r,loopMeta:!0,scope:Te(r.scope,{[t]:e[d],...f})};s.push(r.compileBody(u,m))}let l=Ym(s);return a?l.replace(/<thead>[\s\S]*?<\/thead>\n?/g,""):l}var Hm=e=>`|${" c |".repeat(e)}`,Gm=e=>`|${" --- |".repeat(e)}`;function Xo(e){let t=e.length;for(;t>0&&!e[t-1].trim();)t--;let n=e.slice(0,t);return!n.length||!n.every(r=>/^ {0,3}\|/.test(r))||n.some(r=>/^ {0,3}\|[\s:|-]+\|\s*$/.test(r))?null:{columns:Zm(n[0])}}function Zm(e){let t=e.trim().replace(/^\|/,"").replace(/\|$/,""),n=1;for(let r=0;r<t.length;r++)t[r]==="\\"?r++:t[r]==="|"&&n++;return n}function Oc(e,t,n){let r=e.loopOpener??{at:e.file,line:""},o=n===null?jm(t):[],i=o.map(s=>`"${s}"`).join(", "),a=o.length?` The source is static; the clauses read :state ${i}, which is what makes the loop reactive.`:"",u=o.length?`drop ${i} from the clauses so the rows unroll at build time, or build reactive rows from containers (\`::: trow\` / \`::: td\`) instead of \`|\` cells`:"a static source (a JSON file, a frontmatter list, or a collection) for a markdown table, or build reactive rows from containers (`::: trow` / `::: td`) instead of `|` cells";return _(`A reactive @loop cannot build markdown table rows in ${r.at}: "${r.line}". A reactive row is cloned into a <div>, which cannot live inside a <table>.${a} Use: ${u}.`,{code:"WD191",file:e.file,hint:u})}var Km=/\bS\("((?:[^"\\]|\\.)*)"/g;function jm(e){let t=new Set;for(let n of(e?.where?.body??"").matchAll(Km))t.add(JSON.parse(`"${n[1]}"`));for(let n of[e?.limit,e?.offset])n?.kind==="key"&&t.add(n.value);return e?.sort?.keyKind==="key"&&t.add(e.sort.key),e?.sort?.dirKind==="key"&&t.add(e.sort.dir),[...t]}var Vm=["ul","ol"];function Ym(e){if(!e.length)return"";let t=e[0];for(let n=1;n<e.length;n++)t=Xm(t,e[n]);return t}function Xm(e,t){let n=e.trimEnd(),r=t.trimStart();for(let o of Vm)if(n.endsWith(`</${o}>`)&&r.startsWith(`<${o}>`))return`${n.slice(0,-(o.length+3)).trimEnd()}
35
35
  ${r.slice(o.length+2).trimStart()}`;return Jo(e,t)??`${e}
36
36
  ${t}`}function Jo(e,t){let n=e.trimEnd(),r=t.trimStart();if(!n.endsWith("</table>")||!r.startsWith("<table>"))return null;let o=r.indexOf("<tbody>");if(o===-1)return null;let i=n.lastIndexOf("</tbody>"),a=r.slice(o+7).trimStart();return i===-1?!n.includes("<thead>")||r.includes("<thead>")?null:`${n.slice(0,n.lastIndexOf("</table>")).trimEnd()}
37
37
  <tbody>
38
38
  ${a}`:r.includes("<thead>")?n.slice(0,n.indexOf("<tbody>"))!==r.slice(0,o)?null:`${n.slice(0,i).trimEnd()}
39
39
  ${a}`:`${n.slice(0,i).trimEnd()}
40
- ${a}`}function Rc(e,t,n,r,o=null){if(Nc(r),Xo(n))throw Oc(r,o,e);r.comp.assets.runtime=!0;let i={...r,loopItem:t,loopKey:e??void 0,loopMeta:!0,reactiveDepth:(r.reactiveDepth??0)+1,scope:Te(r.scope)},a=r.compileBody(n,i).trim(),{wrapperTag:u,itemTemplate:s}=Mc(a),c=o?.where||null,l=o?.sort||null,d=o?.reverse||!1,f=o?.offset||null,m=o?.limit||null,p=o?.empty||null,h=o?.data||null,b=e?e.split("."):[],E=e?oe(r.comp.state.get(b[0]),b.slice(1)):null,g=e?Array.isArray(E)?E:[]:h||[],y=q=>q?q.kind==="literal"?q.value:Number(r.comp.state.get(q.value)??0):null,x=l?{...l,key:l.keyKind==="key"?String(r.comp.state.get(l.key)??""):l.key,dir:l.dirKind==="key"?String(r.comp.state.get(l.dir)??"asc"):l.dir}:null,A=Yo(g,c,{where:c,sort:x,reverse:d,offset:f&&f.kind==="key"?{kind:"literal",value:y(f)||0}:f,limit:m&&m.kind==="key"?{kind:"literal",value:y(m)??g.length}:m,empty:null,clauseRefsState:!1,sortable:!1,paginate:null},r),v=new Map,D=A.length,{masked:R,regions:L}=Qm(s),V=A.map((q,w)=>{let T=sh(q,v),N={index:w,number:w+1,first:w===0,last:w===D-1,count:D};return eh(nh(th(R,T),q,N,r.comp),L)}).join(""),Y=Ic(p,r,o?.emptyStart),ne=D===0&&p?r.compileBody(p,{...fe(r,o?.emptyStart??0),loopMeta:!0}).trim():V,re=o?.sortable||!1;re&&e&&r.comp.assets.behaviors.add("sortable");let Z=Lc({where:c,sort:l,reverse:d,offset:f,limit:m})+(h?` data-wd-loop-data="${k(JSON.stringify(h))}"`:"")+(re&&e?` data-wd-sortable="${k(e)}"`:"");return`<div data-wd-loop="${k(e||"")}"${Z}><template data-wd-loop-template>${s}</template>${Y}<${u} data-wd-loop-out>${ne}</${u}></div>`}function Mc(e){let t=e.match(/^<(ul|ol)>\s*([\s\S]*?)\s*<\/\1>$/);return t&&(t[2].match(/<li>/g)||[]).length===1?{wrapperTag:t[1],itemTemplate:t[2].trim()}:{wrapperTag:"div",itemTemplate:`<div data-wd-loop-piece>${e}</div>`}}function Ic(e,t,n=0){return e?`<template data-wd-loop-empty>${t.compileBody(e,{...fe(t,n),loopMeta:!0}).trim()}</template>`:""}function Lc(e){return(e.where?` data-wd-loop-where="${k(Xu(e.where.body))}"`:"")+(e.sort?` data-wd-loop-sort="${k(e.sort.keyKind==="key"?`key:${e.sort.key}`:e.sort.key)}" data-wd-loop-sort-dir="${k(e.sort.dirKind==="key"?`key:${e.sort.dir}`:e.sort.dir)}"`:"")+(e.reverse?" data-wd-loop-reverse":"")+(e.offset?` data-wd-loop-offset="${$c(e.offset)}"`:"")+(e.limit?` data-wd-loop-limit="${$c(e.limit)}"`:"")}function Jm(e,t,n,r,o){if(Nc(r),Xo(n))throw Oc(r,o,e);let i={...r,loopItem:t,loopKey:void 0,loopMeta:!0,reactiveDepth:(r.reactiveDepth??0)+1,scope:Te(r.scope)},a=r.compileBody(n,i).trim(),{wrapperTag:u,itemTemplate:s}=Mc(a),c=Ic(o.empty||null,r,o.emptyStart),l=Lc({where:o.where||null,sort:o.sort||null,reverse:o.reverse||!1,offset:o.offset||null,limit:o.limit||null});return`<div data-wd-loop-item="${k(e)}"${l}><template data-wd-loop-template>${s}</template>${c}<${u} data-wd-loop-out></${u}></div>`}function Qm(e){let t="<div data-wd-loop-item=",n=[],r="",o=0;for(;;){let i=e.indexOf(t,o);if(i===-1)return{masked:r+e.slice(o),regions:n};let a=zn(e,i,"div");r+=e.slice(o,i)+`\0WDLI${n.length}\0`,n.push(e.slice(i,a)),o=a}}function eh(e,t){return t.length?e.replace(/\x00WDLI(\d+)\x00/g,(n,r)=>t[Number(r)]):e}function th(e,t){return e.replace(/^<([a-zA-Z][a-zA-Z0-9-]*)/,`<$1 data-wd-loop-key="${k(t)}"`)}function nh(e,t,n,r){return oh(ih(uh(Fc(e,t,n,r),t),n),t,n,r)}var rh=/<[a-zA-Z][a-zA-Z0-9-]*[^>]*\sdata-wd-each-attr="([^"]*)"[^>]*>/g;function oh(e,t,n,r){return e.replace(rh,(o,i)=>{let[a,...u]=JSON.parse(Mt(i)),s="";for(let d of u){if(typeof d=="string"){s+=d;continue}let f=d[0]==="s"?oe(r.state.get(d[1]),d[2]?d[2].split("."):[]):d[0]==="m"?n[d[1]]:oe(t,d[1]?d[1].split("."):[]);s+=Bn(f??"")}let c=` ${a}="`,l=o.indexOf(c)+c.length;return o.slice(0,l)+k(mt(s)?"":s)+o.slice(o.indexOf('"',l))})}function ih(e,t){return e.replace(/<span data-wd-each-meta="([a-z]+)"(?: data-wd-fmt="([^"]*)")?><\/span>/g,(n,r,o)=>{let i=r in t?t[r]:"";o&&(i=Ft(i,Ur(Mt(o))));let a=o?` data-wd-fmt="${o}"`:"";return`<span data-wd-each-meta="${r}"${a}>${k(i??"")}</span>`})}function Fc(e,t,n,r){let o="<span data-wd-each-if ",i="",a=0;for(;;){let u=e.indexOf(o,a);if(u===-1)return i+e.slice(a);i+=e.slice(a,u);let s=zn(e,u,"span");i+=ah(e.slice(u,s),t,n,r),a=s}}function ah(e,t,n,r){let o=e.match(/^<span data-wd-each-if data-wd-meta="([a-z]+)">/),i=e.match(/^<span data-wd-each-if data-wd-if-expr="([^"]*)">/),a=(e.match(/^<span data-wd-each-if data-wd-path="([^"]*)">/)||["",""])[1],u=e.indexOf("<template data-wd-if-true>"),s=zn(e,u,"template"),c=e.indexOf("<template data-wd-if-false>",s),l=zn(e,c,"template"),d=26,f=11,m=e.slice(u+d,s-f),p=e.slice(c+27,l-f),h;i?h=!!_t(JSON.parse(Mt(i[1])),t,r):o?h=!!n[o[1]]:h=!!oe(t,a?a.split("."):[]);let b=h?m:p;return`${e.slice(0,l)}<span data-wd-each-if-out>${Fc(b,t,n,r)}</span></span>`}function uh(e,t){return e.replace(/<span data-wd-each(?: data-wd-path="([^"]*)")?(?: data-wd-fmt="([^"]*)")?><\/span>/g,(n,r,o)=>{let i=r?oe(t,r.split(".")):t;o&&(i=Ft(i,Ur(Mt(o))));let a=r?` data-wd-path="${r}"`:"",u=o?` data-wd-fmt="${o}"`:"";return`<span data-wd-each${a}${u}>${k(i??"")}</span>`})}function zn(e,t,n){let r=`<${n}`,o=`</${n}>`,i=0,a=t;for(;a<e.length;)if(e.startsWith(r,a)&&(e[a+r.length]===" "||e[a+r.length]===">")){i++;let u=e.indexOf(">",a);a=u===-1?e.length:u+1}else if(e.startsWith(o,a)){if(i--,a+=o.length,i===0)return a}else a++;return e.length}function sh(e,t){let r=String(e&&typeof e=="object"?e.id??e.key??JSON.stringify(e):e).replace(/#/g,"##"),o=t.get(r)||0;return t.set(r,o+1),o?`${r}#${o}`:r}var Hn="@include /header.wd";var Bc='::: card .note role="region" aria-label="Notes"',Uc=":if count > 0",Pc=":carousel autoplay=3000",zc=`Use: @include /partial.wd [with key="value"] \u2014 e.g. ${Hn}`,ch=new Set(["nav","main"]),Wn='role="\u2026", aria-\u2026="\u2026", or title="\u2026" (quoted static text)',lh=/^(?:role|title|aria-[a-z][a-z0-9-]*)$/,dh=/^([A-Za-z][A-Za-z0-9-]*)="([^"]*)"/,Qo=/^([A-Za-z][A-Za-z0-9-]*)\s*=/;function ei(e,t,n,r){let o=[],i=e.trim();for(let a=i.match(Qo);a;a=i.match(Qo)){if(!lh.test(a[1]))throw _(`Attribute "${a[1]}" is not allowed in ${r} at ${S(t,n)}. Only accessibility attributes are: ${Wn}`,{code:"WD650",file:t.file,line:$(t,n),hint:Wn,example:Bc});let u=i.match(dh);if(!u)throw _(`Attribute "${a[1]}" in ${r} at ${S(t,n)} needs a double-quoted value. Use: ${Wn}`,{code:"WD651",file:t.file,line:$(t,n),hint:Wn,example:Bc});o.push([u[1],u[2]]),i=i.slice(u[0].length).trim()}return{attrs:o,rest:i}}function ti(e){return e.map(([t,n])=>` ${t}="${k(n)}"`).join("")}function Ht(e,t,n,r){let o=e.match(/^@include\s+(\S+)(?:\s+with\s+(.+))?$/);if(!o)throw _(`Malformed @include in ${S(t,n)}: ${e}. ${zc}`,{code:"WD603",file:t.file,line:$(t,n),hint:zc.slice(5),example:Hn});let i=mn(o[1],t.file,t.context,!1,S(t,n),t.comp.reader),a=bh(o[2]||"",t);Q(t,n,{kind:"include",name:o[1],detail:`@include ${o[1]}`});let u=fh(i,t),s="";if(r){if((t.includeBlockDepth??0)>=2||t.stack.length>2){let f=`${qc}`;throw _(`Block-form @include nested too deep in ${S(t,n)}: ${e}. A children block or an include body may hold ONE level of @include \u2026 @endinclude. Use: ${f}`,{code:"WD616",file:t.file,line:$(t,n),hint:f,example:Hn})}s=t.compileBody(r,{...fe(t,n+1),includeBlockDepth:(t.includeBlockDepth??0)+1}),s.trim()&&!u.usesChildren&&t.comp.warnings.push(`${S(t,n)}: the @include block for "${o[1]}" passes children, but ${i} never uses a { children } line, so the content is dropped. Add { children } where the slot content should appear, or drop the block.`)}let c=Te(t.scope,{...u.defaults,...a,[Rr]:s}),l=t.compileFile(i,t.context,t.stack,c,t.comp,t.sections,t.loopItem,t.reactiveDepth??0,t.loopOpener??null),d=fn(i,t.context,t.comp.reader);return d&&d.scoped?pn(l.html,d.scopeId):l.html}var qc='@include /partial.wd [with key="value"] \u2026 @endinclude \u2014 e.g. @include /card.wd with title="Pricing"';function Wc(e,t){let n=[],r=null;for(let o=t+1;o<e.length;o++){let i=e[o],a=i.match(/^(```+|~~~+)/);if(r){a&&a[1][0]===r[0]&&a[1].length>=r.length&&(r=null);continue}if(a){r=a[1];continue}if(/^@include\s/.test(i)){n.push(o);continue}if(i.trim()==="@endinclude"){if(n.length===0)return{body:e.slice(t+1,o),end:o};n.pop()}}return null}function Hc(e,t,n){let r=qc;throw _(`Stray "${e.trim()}" with no unpaired @include before it in ${S(t,n)}. @endinclude pairs with the nearest preceding unpaired @include. Use: ${r}`,{code:"WD614",file:t.file,line:$(t,n),hint:r,example:Hn})}function fh(e,t){let n=ft(t.comp.reader.readText(e)),{meta:r,body:o}=bn(n,e);return{defaults:ph(r,n,e),usesChildren:M.extname(e)!==".md"&&hh(o)}}function ph(e,t,n){if(e.defaults===void 0)return{};let r='an inline array of name="value" entries \u2014 e.g. defaults: [title="Untitled"]';if(!Array.isArray(e.defaults))throw _(`Invalid defaults frontmatter in ${n}: the value must be ${r}.`,{code:"WD613",file:n,hint:r,example:'defaults: [title="Untitled"]'});let o=t.split(`
40
+ ${a}`}function Rc(e,t,n,r,o=null){if(Nc(r),Xo(n))throw Oc(r,o,e);r.comp.assets.runtime=!0;let i={...r,loopItem:t,loopKey:e??void 0,loopMeta:!0,reactiveDepth:(r.reactiveDepth??0)+1,scope:Te(r.scope)},a=r.compileBody(n,i).trim(),{wrapperTag:u,itemTemplate:s}=Mc(a),c=o?.where||null,l=o?.sort||null,d=o?.reverse||!1,f=o?.offset||null,m=o?.limit||null,p=o?.empty||null,h=o?.data||null,b=e?e.split("."):[],E=e?oe(r.comp.state.get(b[0]),b.slice(1)):null,g=e?Array.isArray(E)?E:[]:h||[],y=q=>q?q.kind==="literal"?q.value:Number(r.comp.state.get(q.value)??0):null,x=l?{...l,key:l.keyKind==="key"?String(r.comp.state.get(l.key)??""):l.key,dir:l.dirKind==="key"?String(r.comp.state.get(l.dir)??"asc"):l.dir}:null,A=Yo(g,c,{where:c,sort:x,reverse:d,offset:f&&f.kind==="key"?{kind:"literal",value:y(f)||0}:f,limit:m&&m.kind==="key"?{kind:"literal",value:y(m)??g.length}:m,empty:null,clauseRefsState:!1,sortable:!1,paginate:null},r),v=new Map,N=A.length,{masked:R,regions:B}=Qm(s),H=A.map((q,k)=>{let C=sh(q,v),T={index:k,number:k+1,first:k===0,last:k===N-1,count:N};return eh(nh(th(R,C),q,T,r.comp),B)}).join(""),J=Ic(p,r,o?.emptyStart),ne=N===0&&p?r.compileBody(p,{...fe(r,o?.emptyStart??0),loopMeta:!0}).trim():H,re=o?.sortable||!1;re&&e&&r.comp.assets.behaviors.add("sortable");let K=Lc({where:c,sort:l,reverse:d,offset:f,limit:m})+(h?` data-wd-loop-data="${w(JSON.stringify(h))}"`:"")+(re&&e?` data-wd-sortable="${w(e)}"`:"");return`<div data-wd-loop="${w(e||"")}"${K}><template data-wd-loop-template>${s}</template>${J}<${u} data-wd-loop-out>${ne}</${u}></div>`}function Mc(e){let t=e.match(/^<(ul|ol)>\s*([\s\S]*?)\s*<\/\1>$/);return t&&(t[2].match(/<li>/g)||[]).length===1?{wrapperTag:t[1],itemTemplate:t[2].trim()}:{wrapperTag:"div",itemTemplate:`<div data-wd-loop-piece>${e}</div>`}}function Ic(e,t,n=0){return e?`<template data-wd-loop-empty>${t.compileBody(e,{...fe(t,n),loopMeta:!0}).trim()}</template>`:""}function Lc(e){return(e.where?` data-wd-loop-where="${w(Xu(e.where.body))}"`:"")+(e.sort?` data-wd-loop-sort="${w(e.sort.keyKind==="key"?`key:${e.sort.key}`:e.sort.key)}" data-wd-loop-sort-dir="${w(e.sort.dirKind==="key"?`key:${e.sort.dir}`:e.sort.dir)}"`:"")+(e.reverse?" data-wd-loop-reverse":"")+(e.offset?` data-wd-loop-offset="${$c(e.offset)}"`:"")+(e.limit?` data-wd-loop-limit="${$c(e.limit)}"`:"")}function Jm(e,t,n,r,o){if(Nc(r),Xo(n))throw Oc(r,o,e);let i={...r,loopItem:t,loopKey:void 0,loopMeta:!0,reactiveDepth:(r.reactiveDepth??0)+1,scope:Te(r.scope)},a=r.compileBody(n,i).trim(),{wrapperTag:u,itemTemplate:s}=Mc(a),c=Ic(o.empty||null,r,o.emptyStart),l=Lc({where:o.where||null,sort:o.sort||null,reverse:o.reverse||!1,offset:o.offset||null,limit:o.limit||null});return`<div data-wd-loop-item="${w(e)}"${l}><template data-wd-loop-template>${s}</template>${c}<${u} data-wd-loop-out></${u}></div>`}function Qm(e){let t="<div data-wd-loop-item=",n=[],r="",o=0;for(;;){let i=e.indexOf(t,o);if(i===-1)return{masked:r+e.slice(o),regions:n};let a=zn(e,i,"div");r+=e.slice(o,i)+`\0WDLI${n.length}\0`,n.push(e.slice(i,a)),o=a}}function eh(e,t){return t.length?e.replace(/\x00WDLI(\d+)\x00/g,(n,r)=>t[Number(r)]):e}function th(e,t){return e.replace(/^<([a-zA-Z][a-zA-Z0-9-]*)/,`<$1 data-wd-loop-key="${w(t)}"`)}function nh(e,t,n,r){return oh(ih(uh(Fc(e,t,n,r),t),n),t,n,r)}var rh=/<[a-zA-Z][a-zA-Z0-9-]*[^>]*\sdata-wd-each-attr="([^"]*)"[^>]*>/g;function oh(e,t,n,r){return e.replace(rh,(o,i)=>{let[a,...u]=JSON.parse(Mt(i)),s="";for(let d of u){if(typeof d=="string"){s+=d;continue}let f=d[0]==="s"?oe(r.state.get(d[1]),d[2]?d[2].split("."):[]):d[0]==="m"?n[d[1]]:oe(t,d[1]?d[1].split("."):[]);s+=Bn(f??"")}let c=` ${a}="`,l=o.indexOf(c)+c.length;return o.slice(0,l)+w(mt(s)?"":s)+o.slice(o.indexOf('"',l))})}function ih(e,t){return e.replace(/<span data-wd-each-meta="([a-z]+)"(?: data-wd-fmt="([^"]*)")?><\/span>/g,(n,r,o)=>{let i=r in t?t[r]:"";o&&(i=Ft(i,Ur(Mt(o))));let a=o?` data-wd-fmt="${o}"`:"";return`<span data-wd-each-meta="${r}"${a}>${w(i??"")}</span>`})}function Fc(e,t,n,r){let o="<span data-wd-each-if ",i="",a=0;for(;;){let u=e.indexOf(o,a);if(u===-1)return i+e.slice(a);i+=e.slice(a,u);let s=zn(e,u,"span");i+=ah(e.slice(u,s),t,n,r),a=s}}function ah(e,t,n,r){let o=e.match(/^<span data-wd-each-if data-wd-meta="([a-z]+)">/),i=e.match(/^<span data-wd-each-if data-wd-if-expr="([^"]*)">/),a=(e.match(/^<span data-wd-each-if data-wd-path="([^"]*)">/)||["",""])[1],u=e.indexOf("<template data-wd-if-true>"),s=zn(e,u,"template"),c=e.indexOf("<template data-wd-if-false>",s),l=zn(e,c,"template"),d=26,f=11,m=e.slice(u+d,s-f),p=e.slice(c+27,l-f),h;i?h=!!_t(JSON.parse(Mt(i[1])),t,r):o?h=!!n[o[1]]:h=!!oe(t,a?a.split("."):[]);let b=h?m:p;return`${e.slice(0,l)}<span data-wd-each-if-out>${Fc(b,t,n,r)}</span></span>`}function uh(e,t){return e.replace(/<span data-wd-each(?: data-wd-path="([^"]*)")?(?: data-wd-fmt="([^"]*)")?><\/span>/g,(n,r,o)=>{let i=r?oe(t,r.split(".")):t;o&&(i=Ft(i,Ur(Mt(o))));let a=r?` data-wd-path="${r}"`:"",u=o?` data-wd-fmt="${o}"`:"";return`<span data-wd-each${a}${u}>${w(i??"")}</span>`})}function zn(e,t,n){let r=`<${n}`,o=`</${n}>`,i=0,a=t;for(;a<e.length;)if(e.startsWith(r,a)&&(e[a+r.length]===" "||e[a+r.length]===">")){i++;let u=e.indexOf(">",a);a=u===-1?e.length:u+1}else if(e.startsWith(o,a)){if(i--,a+=o.length,i===0)return a}else a++;return e.length}function sh(e,t){let r=String(e&&typeof e=="object"?e.id??e.key??JSON.stringify(e):e).replace(/#/g,"##"),o=t.get(r)||0;return t.set(r,o+1),o?`${r}#${o}`:r}var Hn="@include /header.wd";var Bc='::: card .note role="region" aria-label="Notes"',Uc=":if count > 0",Pc=":carousel autoplay=3000",zc=`Use: @include /partial.wd [with key="value"] \u2014 e.g. ${Hn}`,ch=new Set(["nav","main"]),Wn='role="\u2026", aria-\u2026="\u2026", or title="\u2026" (quoted static text)',lh=/^(?:role|title|aria-[a-z][a-z0-9-]*)$/,dh=/^([A-Za-z][A-Za-z0-9-]*)="([^"]*)"/,Qo=/^([A-Za-z][A-Za-z0-9-]*)\s*=/;function ei(e,t,n,r){let o=[],i=e.trim();for(let a=i.match(Qo);a;a=i.match(Qo)){if(!lh.test(a[1]))throw _(`Attribute "${a[1]}" is not allowed in ${r} at ${S(t,n)}. Only accessibility attributes are: ${Wn}`,{code:"WD650",file:t.file,line:$(t,n),hint:Wn,example:Bc});let u=i.match(dh);if(!u)throw _(`Attribute "${a[1]}" in ${r} at ${S(t,n)} needs a double-quoted value. Use: ${Wn}`,{code:"WD651",file:t.file,line:$(t,n),hint:Wn,example:Bc});o.push([u[1],u[2]]),i=i.slice(u[0].length).trim()}return{attrs:o,rest:i}}function ti(e){return e.map(([t,n])=>` ${t}="${w(n)}"`).join("")}function Ht(e,t,n,r){let o=e.match(/^@include\s+(\S+)(?:\s+with\s+(.+))?$/);if(!o)throw _(`Malformed @include in ${S(t,n)}: ${e}. ${zc}`,{code:"WD603",file:t.file,line:$(t,n),hint:zc.slice(5),example:Hn});let i=mn(o[1],t.file,t.context,!1,S(t,n),t.comp.reader),a=bh(o[2]||"",t);Q(t,n,{kind:"include",name:o[1],detail:`@include ${o[1]}`});let u=fh(i,t),s="";if(r){if((t.includeBlockDepth??0)>=2||t.stack.length>2){let f=`${qc}`;throw _(`Block-form @include nested too deep in ${S(t,n)}: ${e}. A children block or an include body may hold ONE level of @include \u2026 @endinclude. Use: ${f}`,{code:"WD616",file:t.file,line:$(t,n),hint:f,example:Hn})}s=t.compileBody(r,{...fe(t,n+1),includeBlockDepth:(t.includeBlockDepth??0)+1}),s.trim()&&!u.usesChildren&&t.comp.warnings.push(`${S(t,n)}: the @include block for "${o[1]}" passes children, but ${i} never uses a { children } line, so the content is dropped. Add { children } where the slot content should appear, or drop the block.`)}let c=Te(t.scope,{...u.defaults,...a,[Rr]:s}),l=t.compileFile(i,t.context,t.stack,c,t.comp,t.sections,t.loopItem,t.reactiveDepth??0,t.loopOpener??null),d=fn(i,t.context,t.comp.reader);return d&&d.scoped?pn(l.html,d.scopeId):l.html}var qc='@include /partial.wd [with key="value"] \u2026 @endinclude \u2014 e.g. @include /card.wd with title="Pricing"';function Wc(e,t){let n=[],r=null;for(let o=t+1;o<e.length;o++){let i=e[o],a=i.match(/^(```+|~~~+)/);if(r){a&&a[1][0]===r[0]&&a[1].length>=r.length&&(r=null);continue}if(a){r=a[1];continue}if(/^@include\s/.test(i)){n.push(o);continue}if(i.trim()==="@endinclude"){if(n.length===0)return{body:e.slice(t+1,o),end:o};n.pop()}}return null}function Hc(e,t,n){let r=qc;throw _(`Stray "${e.trim()}" with no unpaired @include before it in ${S(t,n)}. @endinclude pairs with the nearest preceding unpaired @include. Use: ${r}`,{code:"WD614",file:t.file,line:$(t,n),hint:r,example:Hn})}function fh(e,t){let n=ft(t.comp.reader.readText(e)),{meta:r,body:o}=bn(n,e);return{defaults:ph(r,n,e),usesChildren:M.extname(e)!==".md"&&hh(o)}}function ph(e,t,n){if(e.defaults===void 0)return{};let r='an inline array of name="value" entries \u2014 e.g. defaults: [title="Untitled"]';if(!Array.isArray(e.defaults))throw _(`Invalid defaults frontmatter in ${n}: the value must be ${r}.`,{code:"WD613",file:n,hint:r,example:'defaults: [title="Untitled"]'});let o=t.split(`
41
41
  `),i=o.findIndex(c=>/^defaults\s*:/.test(c)),u=o[i].replace(/^defaults\s*:\s*/,"").trim().slice(1,-1),s={};for(let c of mh(u)){let l=c.match(/^([A-Za-z0-9_-]+)="([^"]*)"$/)??c.match(/^([A-Za-z0-9_-]+)='([^']*)'$/);if(!l)throw _(`Invalid defaults frontmatter in ${n}:${i+1}: entry "${c}" must look like name="value". Use: ${r}.`,{code:"WD613",file:n,line:i+1,hint:r,example:'defaults: [title="Untitled"]'});s[l[1]]=l[2]}return s}function mh(e){let t=[],n="",r=null;for(let o of e)r?(n+=o,o===r&&(r=null)):o==='"'||o==="'"?(r=o,n+=o):o===","?(t.push(n),n=""):n+=o;return t.push(n),t.map(o=>o.trim()).filter(Boolean)}function hh(e){let t=null;for(let n of e.split(`
42
- `)){let r=n.match(/^(```+|~~~+)/);if(t){r&&r[1][0]===t[0]&&r[1].length>=t.length&&(t=null);continue}if(r){t=r[1];continue}if(hn.test(n))return!0}return!1}function bh(e,t){let n={},r=/([A-Za-z0-9_-]+)=("[^"]*"|'[^']*'|\{[^}]*\}|\S+)/g;for(let o of e.matchAll(r)){let i=o[2];if(i.startsWith("{")){let a=i.slice(1,-1).trim(),u=dn(a,t);if(!u.found)throw _(`@include argument ${o[1]}={ ${a} } in ${t.file} does not match any value in scope`,{code:"WD604",file:t.file});n[o[1]]=u.value}else n[o[1]]=Pu(i)}return n}function ni(e,t,n,r){let o=e.trim(),i="section",a=[],u=[],s=[],c=[],l="",d=Qo.test(o)?null:o.match(/^([^\s.#]\S*)/),f="section";for(d&&(f=d[1],o=o.slice(d[0].length).trim()),f==="section"||(ch.has(f)?(i=f,a.push(f)):(i="div",a.push(f)));o.length;){if(o.startsWith("#")){let D=o.match(/^#(\S+)/);l=D?D[1]:"",o=o.slice((D?D[0]:o).length).trim();continue}let y=ei(o,n,r,`container "::: ${e.trim()}"`);if(y.attrs.length){c.push(...y.attrs),o=y.rest;continue}let x=o.match(/^\.([A-Za-z_][\w-]*)/);if(!x)throw _(`Unexpected token "${o.split(/\s+/)[0]}" in container "::: ${e}" in ${S(n,r)}`,{code:"WD605",file:n.file,line:$(n,r)});let A=x[1];o=o.slice(x[0].length).trim();let v=o.match(/^when\s+(.+?)(?=\s+[.#]|\s+[A-Za-z][A-Za-z0-9-]*\s*=|$)/);if(v){o=o.slice(v[0].length).trim();let D=jo(v[1].trim(),n);D.static?D.value&&a.push(A):D.item?u.push([A,qn(D.body,n,r,'"::: \u2026 when"')]):s.push([A,qn(D.body,n,r,'"::: \u2026 when"')])}else a.push(A)}let m=!!l;l||(l=`wd-s${++n.comp.sectionCounter}`),n.sections.push(l);let p;try{p=n.compileBody(t,fe(n,r+1))}finally{n.sections.pop()}let h=m?` id="${k(l)}"`:"",b=a.length?` class="${k(a.join(" "))}"`:"",E=ti(c),g="";return u.length&&(n.comp.assets.runtime=!0,g+=` data-wd-each-class="${k(JSON.stringify(u))}"`),s.length&&(n.comp.assets.runtime=!0,g+=` data-wd-class="${k(JSON.stringify(s))}"`),`<${i}${h}${b}${E}${g}>
42
+ `)){let r=n.match(/^(```+|~~~+)/);if(t){r&&r[1][0]===t[0]&&r[1].length>=t.length&&(t=null);continue}if(r){t=r[1];continue}if(hn.test(n))return!0}return!1}function bh(e,t){let n={},r=/([A-Za-z0-9_-]+)=("[^"]*"|'[^']*'|\{[^}]*\}|\S+)/g;for(let o of e.matchAll(r)){let i=o[2];if(i.startsWith("{")){let a=i.slice(1,-1).trim(),u=dn(a,t);if(!u.found)throw _(`@include argument ${o[1]}={ ${a} } in ${t.file} does not match any value in scope`,{code:"WD604",file:t.file});n[o[1]]=u.value}else n[o[1]]=Pu(i)}return n}function ni(e,t,n,r){let o=e.trim(),i="section",a=[],u=[],s=[],c=[],l="",d=Qo.test(o)?null:o.match(/^([^\s.#]\S*)/),f="section";for(d&&(f=d[1],o=o.slice(d[0].length).trim()),f==="section"||(ch.has(f)?(i=f,a.push(f)):(i="div",a.push(f)));o.length;){if(o.startsWith("#")){let N=o.match(/^#(\S+)/);l=N?N[1]:"",o=o.slice((N?N[0]:o).length).trim();continue}let y=ei(o,n,r,`container "::: ${e.trim()}"`);if(y.attrs.length){c.push(...y.attrs),o=y.rest;continue}let x=o.match(/^\.([A-Za-z_][\w-]*)/);if(!x)throw _(`Unexpected token "${o.split(/\s+/)[0]}" in container "::: ${e}" in ${S(n,r)}`,{code:"WD605",file:n.file,line:$(n,r)});let A=x[1];o=o.slice(x[0].length).trim();let v=o.match(/^when\s+(.+?)(?=\s+[.#]|\s+[A-Za-z][A-Za-z0-9-]*\s*=|$)/);if(v){o=o.slice(v[0].length).trim();let N=jo(v[1].trim(),n);N.static?N.value&&a.push(A):N.item?u.push([A,qn(N.body,n,r,'"::: \u2026 when"')]):s.push([A,qn(N.body,n,r,'"::: \u2026 when"')])}else a.push(A)}let m=!!l;l||(l=`wd-s${++n.comp.sectionCounter}`),n.sections.push(l);let p;try{p=n.compileBody(t,fe(n,r+1))}finally{n.sections.pop()}let h=m?` id="${w(l)}"`:"",b=a.length?` class="${w(a.join(" "))}"`:"",E=ti(c),g="";return u.length&&(n.comp.assets.runtime=!0,g+=` data-wd-each-class="${w(JSON.stringify(u))}"`),s.length&&(n.comp.assets.runtime=!0,g+=` data-wd-class="${w(JSON.stringify(s))}"`),`<${i}${h}${b}${E}${g}>
43
43
  ${p}
44
44
  </${i}>`}function ri(e,t,n,r){let i=(e.match(/^:carousel\s*(.*)$/)?.[1]||"").trim(),a="";if(i){let s=i.match(/^autoplay=(\d+)$/);if(!s){let c=`:carousel [autoplay=3000] \u2026 :endcarousel \u2014 e.g. ${Pc}`;throw _(`Malformed :carousel in ${S(n,r)}: ${e}. Use: ${c}`,{code:"WD606",file:n.file,line:$(n,r),hint:c,example:Pc})}a=` data-wd-carousel-autoplay="${s[1]}"`}n.comp.assets.behaviors.add("carousel");let u=n.compileBody(t,fe(n,r+1));return`<div class="wd-carousel" data-wd-carousel${a}>
45
45
  <div class="wd-carousel-track" data-wd-carousel-track>
46
46
  ${u}
47
47
  </div>
48
48
  </div>`}function gh(e,t,n){let r=e.match(/^(.*)_(loading|error)$/);return!r||!n.comp.fetchKeys.has(r[1])||/\b(?:role|aria-live)\s*=/.test(t.join(`
49
- `))?"":r[2]==="loading"?' role="status" aria-live="polite"':' role="alert"'}function Gn(e,t,n,r,o,i=o+1){let a=fe(r,o+1),u=fe(r,i),s=e.replace(/^:if\s*/,"").trim();Q(r,o,{kind:"if",name:s,detail:`:if ${s}`});let c=s.match(/^([A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*)$/);if(c){let b=c[1].split("."),E=b[0];if(Ke[E]){if(!r.loopMeta)throw _(`":if ${c[1]}" uses the loop meta variable "${E}" outside a @loop in ${r.file}. Use it inside a loop body.`,{code:"WD607",file:r.file});if(r.loopItem){let Y=r.compileBody(t,a).trim(),ne=r.compileBody(n,u).trim();return`<span data-wd-each-if data-wd-meta="${Ke[E]}"><template data-wd-if-true>${Y}</template><template data-wd-if-false>${ne}</template><span data-wd-each-if-out></span></span>`}}if(r.loopItem&&E===r.loopItem){let Y=r.compileBody(t,a).trim(),ne=r.compileBody(n,u).trim(),re=b.slice(1).join(".");return`<span data-wd-each-if${` data-wd-path="${k(re)}"`}><template data-wd-if-true>${Y}</template><template data-wd-if-false>${ne}</template><span data-wd-each-if-out></span></span>`}let g=we(r.scope,E);if(g.found){let Y=!!oe(g.value,b.slice(1));return r.compileBody(Y?t:n,Y?a:u)}let y=G(E,r);if(!y)throw _(`:if ${c[1]} in ${r.file} does not match a :state or in-scope value. Declare it first.`,{code:"WD608",file:r.file});r.comp.assets.runtime=!0;let x=r.compileBody(t,a).trim(),A=r.compileBody(n,u).trim(),v=b.slice(1).join("."),D=v?` data-wd-path="${k(v)}"`:"",R=v?"":gh(y,[...t,...n],r),L=!!oe(r.comp.state.get(y),b.slice(1)),V=L?x:A;return`<div data-wd-if="${k(y)}"${D}${R} data-wd-if-active="${L}"><template data-wd-true>${x}</template><template data-wd-false>${A}</template><div data-wd-if-out>${V}</div></div>`}if(!s){let b=`":if name" or ":if a <op> b [and|or|not \u2026]" \u2014 e.g. ${Uc}`;throw _(`Malformed :if in ${S(r,o)}: ${e}. Use ${b}`,{code:"WD609",file:r.file,line:$(r,o),hint:b,example:Uc})}let l=jo(s,r,'":if"');if(l.static)return r.compileBody(l.value?t:n,l.value?a:u);r.comp.assets.runtime=!0;let d=r.compileBody(t,a).trim(),f=r.compileBody(n,u).trim(),m=` data-wd-if-expr="${k(Dc(l.body,r,o,'":if"'))}"`;if(l.item)return`<span data-wd-each-if${m}><template data-wd-if-true>${d}</template><template data-wd-if-false>${f}</template><span data-wd-each-if-out></span></span>`;let p=Wt(l.body,void 0,r,'":if"');return`<div data-wd-if=""${m} data-wd-if-active="${p}"><template data-wd-true>${d}</template><template data-wd-false>${f}</template><div data-wd-if-out>${p?d:f}</div></div>`}function oi(e,t){let n=e.match(/^:try\s+"([^"]+)"\s+href="([^"]+)"$/);if(n){let r=_h(n[2],t);return`<a class="try-card" href="${k(r)}"><span>Try</span>${k(n[1])}</a>`}return""}function _h(e,t){let n=e.trim();if(n!==e||/[\u0000-\u001F\u007F]/.test(n))throw _(`Unsafe :try href "${k(e)}" in ${t.file}. Use a relative URL starting with /, ./, ../, or #, or an http:, https:, or mailto: URL.`,{code:"WD610",file:t.file});if(n.startsWith("//"))throw _(`Unsafe :try href "${k(e)}" in ${t.file}. Protocol-relative URLs are not allowed; use http: or https: explicitly.`,{code:"WD611",file:t.file});if(n.startsWith("/")||n.startsWith("./")||n.startsWith("../")||n.startsWith("#"))return n;let r=n.match(/^([A-Za-z][A-Za-z0-9+.-]*):/);if(r&&["http","https","mailto"].includes(r[1].toLowerCase()))return n;throw _(`Unsafe :try href "${k(e)}" in ${t.file}. Use a relative URL starting with /, ./, ../, or #, or an http:, https:, or mailto: URL.`,{code:"WD610",file:t.file})}var Kc=':button "Add one" -> count++',Gc=`Use: :button "Label" [role="\u2026"] [aria-\u2026="\u2026"] [title="\u2026"] -> action \u2014 e.g. ${Kc}`;function Zn(e,t,n){let r=()=>{throw _(`Malformed :button in ${S(t,n)}: ${e}. ${Gc}`,{code:"WD301",file:t.file,line:$(t,n),hint:Gc.slice(5),example:Kc})},o=e.match(/^:button\s+"([^"]+)"\s*([\s\S]*)$/);if(!o)return r();let i=ei(o[2],t,n,":button"),a=i.rest.match(/^->\s*(.+)$/);if(!a)return r();let u=[o[1],a[1]];t.comp.assets.runtime=!0;let s=li(u[1],t);for(let d of Array.isArray(s)?s:[s])Q(t,n,{kind:"action",name:d.target,target:d.target,op:d.op,detail:`:button "${u[0]}" -> ${u[1].trim()}`});let c=ti(i.attrs);if(Array.isArray(s))return`<button type="button"${c} data-wd-actions="${k(JSON.stringify(s))}">${k(u[0])}</button>`;let l=s.value===void 0?"":` data-wd-value="${k(JSON.stringify(s.value))}"`;return`<button type="button"${c} data-wd-action="${s.op}" data-wd-target="${k(s.target)}"${l}>${k(u[0])}</button>`}var si=":effect query -> searches++",ii=`Use: :effect watchedState -> action[; action\u2026] (actions use the :button vocabulary) \u2014 e.g. ${si}`;function jc(e,t,n,r,o){if(!r.loopItem)return;let i=`declare ${e} once outside the loop \u2014 at page level, or inside the ::: section \u2014 and act on the whole list (${t}) \u2014 e.g. ${n}`;throw _(`${e} cannot be used inside a reactive @loop body in ${S(r,o)}. Each row is cloned from the loop template, so every row would register its own timer/watcher and a removed row's would keep firing. Use: ${i}`,{code:"WD315",file:r.file,line:$(r,o),hint:i,example:n})}function Kn(e,t,n){jc(":effect",":effect query -> rows refetch",si,t,n);let r=e.match(/^:effect\s+([A-Za-z_$][\w$.]*)\s*->\s*(.+)$/);if(!r)throw _(`Malformed :effect in ${S(t,n)}: ${e}. ${ii}`,{code:"WD302",file:t.file,line:$(t,n),hint:ii.slice(5),example:si});let o=Rt(r[1],t,ii),i=G(o[0],t);if(!i)throw _(`:effect watches unknown state "${o[0]}" in ${t.file}. Declare it first with :state ${o[0]} = ...`,{code:"WD303",file:t.file});t.comp.assets.runtime=!0;let a=[i,...o.slice(1)].join("."),u=li(r[2],t),s=Array.isArray(u)?u:[u];for(let c of s)Q(t,n,{kind:"action",name:c.target,target:c.target,op:c.op,detail:`:effect ${a} -> ${r[2].trim()}`});return`<script type="application/json" data-wd-effect>${de({watch:a,actions:s})}<\/script>`}var ci=":every 5s -> seconds++",ai=`Use: :every <duration> -> action[; action\u2026] \u2014 duration like 5s, 500ms, or 2m (actions use the :button vocabulary) \u2014 e.g. ${ci}`;function Eh(e){let t=e.trim().match(/^(\d+)(ms|s|m)?$/);if(!t)return null;let n=Number(t[1]);return t[2]==="s"?n*1e3:t[2]==="m"?n*6e4:n}function jn(e,t,n){jc(":every",":every 5s -> rows refetch",ci,t,n);let r=e.match(/^:every\s+(\S+)\s*->\s*(.+)$/);if(!r)throw _(`Malformed :every in ${S(t,n)}: ${e}. ${ai}`,{code:"WD304",file:t.file,line:$(t,n),hint:ai.slice(5),example:ci});let o=Eh(r[1]);if(o==null||o<=0)throw _(`:every duration "${r[1]}" is not valid in ${S(t,n)}. ${ai}`,{code:"WD305",file:t.file,line:$(t,n)});t.comp.assets.runtime=!0;let i=li(r[2],t),a=Array.isArray(i)?i:[i];for(let u of a)Q(t,n,{kind:"action",name:u.target,target:u.target,op:u.op,detail:`:every ${r[1]} -> ${r[2].trim()}`});return`<script type="application/json" data-wd-every>${de({ms:o,actions:a})}<\/script>`}var Vc="count++",ui=`Use: name++, name--, n += k, n -= k, name = v, flag toggle, list append/prepend v, list toggle v, list remove v, x clear, obj merge other, obj delete key, name reset, name refetch \u2014 chain with ";" \u2014 e.g. ${Vc}`;function li(e,t){let n=e.split(";").map(r=>r.trim()).filter(Boolean);return n.length>1?n.map(r=>Zc(r,e,t)):Zc(e.trim(),e,t)}function Zc(e,t,n){let r="[A-Za-z_$][\\w$]*(?:\\.[A-Za-z_$][\\w$]*)*",o=g=>{let y=Rt(g,n,ui),x=G(y[0],n);if(!x)throw _(`Button action targets unknown state "${y[0]}" in ${n.file}. Declare it first with :state ${y[0]} = ...`,{code:"WD306",file:n.file});return[x,...y.slice(1)].join(".")},i=e.match(new RegExp(`^(${r})\\+\\+$`));if(i)return{op:"inc",target:o(i[1])};let a=e.match(new RegExp(`^(${r})--$`));if(a)return{op:"dec",target:o(a[1])};let u=e.match(new RegExp(`^(${r})\\s*-=\\s*(.+)$`));if(u)return{op:"sub",target:o(u[1]),value:qe(u[2],n)};let s=e.match(new RegExp(`^(${r})\\s*\\+=\\s*(.+)$`));if(s){let g=s[2].trim();if(n.loopItem&&g===n.loopItem){let A=o(s[1]);if(!Array.isArray(n.comp.state.get(A)))throw _(`Button action "${t}" needs ${s[1]} to be a :state list (declare it "${s[1]} = []") in ${n.file}.`,{code:"WD307",file:n.file});return{op:"append-row",target:A}}let y=o(s[1]),x=qe(g,n);if(Array.isArray(n.comp.state.get(y)))return{op:"append",target:y,value:x};if(typeof x=="number")return{op:"add",target:y,value:x};throw _(`Unsupported button action "${t}" in ${n.file}. += with non-number values requires a list state target \u2014 declare it "${s[1]} = []".`,{code:"WD308",file:n.file})}let c=e.match(new RegExp(`^(${r})\\s+toggle(?:\\s+(.+))?$`));if(c){let g=o(c[1]);return c[2]===void 0?{op:"toggle",target:g}:{op:"member-toggle",target:g,value:qe(c[2],n)}}let l=e.match(new RegExp(`^(${r})\\s+(append|prepend)\\s+(.+)$`));if(l)return{op:l[2],target:o(l[1]),value:qe(l[3],n)};let d=e.match(new RegExp(`^(${r})\\s+remove\\s+(.+)$`));if(d){let g=d[2].trim();if(n.loopItem&&g===n.loopItem){if(!n.loopKey)throw _(`Button action "${t}" can't delete a row of a nested (item-relative) loop in ${n.file}. Per-row "remove" needs a top-level :state/:store list; carry the row into one (cart += ${n.loopItem}) and remove it there.`,{code:"WD309",file:n.file});if(G(d[1],n)!==n.loopKey)throw _(`Button action "${t}" must target the :state list being looped (@loop ${d[1]} into ${n.loopItem}) in ${n.file}.`,{code:"WD310",file:n.file});return{op:"remove",target:n.loopKey}}return{op:"remove-value",target:o(d[1]),value:qe(g,n)}}let f=e.match(new RegExp(`^(${r})\\s+clear$`));if(f)return{op:"clear",target:o(f[1])};let m=e.match(new RegExp(`^(${r})\\s+merge\\s+(.+)$`));if(m)return{op:"merge",target:o(m[1]),value:yh(m[2],n)};let p=e.match(new RegExp(`^(${r})\\s+delete\\s+(.+)$`));if(p)return{op:"delete",target:o(p[1]),value:qe(p[2],n)};let h=e.match(new RegExp(`^(${r})\\s+reset$`));if(h)return{op:"reset",target:o(h[1])};let b=e.match(new RegExp(`^(${r})\\s+refetch$`));if(b)return{op:"refetch",target:o(b[1])};let E=e.match(new RegExp(`^(${r})\\s*=\\s*(.+)$`));if(E)return{op:"set",target:o(E[1]),value:qe(E[2],n)};throw _(`Unsupported button action "${t}" in ${n.file}. ${ui}`,{code:"WD311",file:n.file,hint:ui.slice(5),example:Vc})}function yh(e,t){let n=e.trim();if(/^[A-Za-z_$][\w$]*$/.test(n)){let o=G(n,t);if(!o)throw _(`Button action merge targets unknown state "${n}" in ${t.file}. Declare it first with :state ${n} = ...`,{code:"WD312",file:t.file});return o}let r=qe(n,t);if(r&&typeof r=="object"&&!Array.isArray(r))return r;throw _(`Unsupported merge operand "${e}" in ${t.file}. Use: obj merge other (a state key or an inline {\u2026} object) \u2014 e.g. settings merge patch`,{code:"WD313",file:t.file,hint:"obj merge other (a state key or an inline {\u2026} object) \u2014 e.g. settings merge patch",example:"settings merge patch"})}function qe(e,t){let n=e.trim();if(/^["'].*["']$/.test(n))return ee(n);if(n==="true")return!0;if(n==="false")return!1;if(n==="null")return null;if(/^-?\d+(?:\.\d+)?$/.test(n))return Number(n);if(/^[[{]/.test(n))try{return JSON.parse(n)}catch{throw _(`Unsupported action literal "${e}" in ${t.file}. Use: a quoted string, number, boolean, null, or valid JSON.`,{code:"WD314",file:t.file})}throw _(`Unsupported action literal "${e}" in ${t.file}. Use: a quoted string, number, boolean, null, or valid JSON.`,{code:"WD314",file:t.file})}var $t=":state count = 0",ye=":store cart = []",Le=":computed total = items.length * 4",di=":theme",Yc=':state q = "" from-url',Xc=`Use: :state name = value [persist|ephemeral] [from-url] \u2014 e.g. ${$t}`,pi=String.raw`((?:\s+(?:persist|ephemeral|from-url))*)`;function mi(e,t,n,r){let o=e.trim().split(/\s+/).filter(Boolean),i={persist:o.includes("persist"),ephemeral:o.includes("ephemeral"),fromUrl:o.includes("from-url")},a=new Set(o).size!==o.length?"the same word twice":i.persist&&i.ephemeral?'"persist" and "ephemeral" at once':"";if(a){let u=`pick one \u2014 persist keeps the value across reloads, ephemeral drops it \u2014 e.g. ${$t} persist`;throw _(`${t} in ${S(n,r)} carries ${a}. Use: ${u}`,{code:"WD261",file:n.file,line:$(n,r),hint:u,example:$t})}if(i.fromUrl&&t!==":state"){let u=`:state name = value from-url \u2014 a :store is shared by every page and every tab, while a query parameter belongs to one page's address, so the two cannot mean the same thing \u2014 e.g. ${Yc}`;throw _(`${t} in ${S(n,r)} cannot be from-url. Use: ${u}`,{code:"WD260",file:n.file,line:$(n,r),hint:u,example:Yc})}return i}var wh=["__proto__","constructor","prototype"];function Jc(e,t,n){if(!wh.includes(e))return;let r=`rename the key \u2014 "${e}" is inherited from Object.prototype, not owned by the state object, so writing it corrupts every other key`;throw _(`${t} name "${e}" is not allowed in ${n.file}. Use: ${r} \u2014 e.g. ${$t}`,{code:"WD250",file:n.file,hint:r,example:$t})}function Qc(e,t,n,r,o){let i=t.trim();if(typeof e!="string"||!/^[A-Za-z_$][\w$]*$/.test(i))return;let a=G(i,r);if(!a)return;let u=`:computed name = ${i} to derive it (or quote it \u2014 "${i}" \u2014 to keep the literal text)`;throw _(`${n} seed "${i}" in ${S(r,o)} names the declared state "${a}", but a seed is stored verbatim, so this would hold the text "${i}" and never track it. Use: ${u} \u2014 e.g. ${Le}`,{code:"WD251",file:r.file,line:$(r,o),hint:u,example:Le})}var kh=/^(?:sk-|sk_live_|sk_test_|ghp_|gho_|xoxb-|xoxp-|AKIA)/,Ah=/^[A-Za-z0-9_-]{8,}$/,xh=/^eyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}$/,vh=/^[A-Za-z0-9/_+=-]{32,}$/;function Sh(e){if(e.startsWith("-----BEGIN"))return!0;let t=e.match(kh);return t&&Ah.test(e.slice(t[0].length))||xh.test(e)?!0:vh.test(e)&&/[a-z]/.test(e)&&/[A-Z]/.test(e)&&/\d/.test(e)}function fi(e){return typeof e=="string"?Sh(e):Array.isArray(e)?e.some(fi):e&&typeof e=="object"?Object.values(e).some(fi):!1}function el(e,t,n,r,o){fi(e)&&r.comp.warnings.push(`${S(r,o)}: ${n} "${t}" seed looks like a secret \u2014 it will be inlined into public HTML. Seed empty and fill it from an api/ endpoint at runtime.`)}function Vn(e,t,n){let r=e.match(new RegExp(String.raw`^:state\s+([A-Za-z_$][\w$]*)\s*=\s*(.+?)${pi}$`));if(!r)throw _(`Malformed :state in ${S(t,n)}: ${e}. ${Xc}`,{code:"WD201",file:t.file,line:$(t,n),hint:Xc.slice(5),example:$t});let o=mi(r[3],":state",t,n),i=pt(r[2],S(t,n));Qc(i,r[2],":state",t,n),el(i,r[1],":state",t,n);let a=it(r[1],i,t);Q(t,n,{kind:"state",name:a,detail:`${a} = ${r[2].trim()}`});let u=o.persist?` data-wd-persist="${k(a)}"`:"",s=o.fromUrl?` data-wd-url="${k(a)}"`:"";return`<script type="application/json" data-wd-state${u}${s}>${de({[a]:i})}<\/script>`}function it(e,t,n){if(Jc(e,":state",n),n.loopItem)throw _(`State cannot be declared inside a reactive @loop body (${n.file})`,{code:"WD202",file:n.file});if(n.comp.stores.has(e))throw _(`State "${e}" collides with a :store of the same name in ${n.file}. Use: :store name = value for the global, or rename one \u2014 e.g. ${ye}`,{code:"WD203",file:n.file,hint:`:store name = value for the global, or rename one \u2014 e.g. ${ye}`,example:ye});let r=n.sections.length?`${n.sections.at(-1)}:${e}`:e;if(n.comp.state.has(r))throw _(`State "${e}" is declared twice in the same scope (${n.file})`,{code:"WD204",file:n.file});return n.comp.state.set(r,t),n.comp.assets.runtime=!0,r}function Yn(e,t,n){let r=e.match(new RegExp(String.raw`^:store\s+([A-Za-z_$][\w$]*)\s*=\s*(.+?)${pi}$`));if(!r)throw _(`Malformed :store in ${S(t,n)}: ${e}. Use: :store name = value [persist|ephemeral] \u2014 e.g. ${ye}`,{code:"WD205",file:t.file,line:$(t,n),hint:`:store name = value [persist|ephemeral] \u2014 e.g. ${ye}`,example:ye});let o=mi(r[3],":store",t,n),i=pt(r[2],S(t,n));Qc(i,r[2],":store",t,n),el(i,r[1],":store",t,n);let a=tl(r[1],i,t);Q(t,n,{kind:"store",name:a,detail:`${a} = ${r[2].trim()}`});let u=o.ephemeral?" data-wd-store-ephemeral":"";return`<script type="application/json" data-wd-store="${k(a)}"${u}>${de(i)}<\/script>`}function tl(e,t,n){if(Jc(e,":store",n),n.comp.stores.has(e))throw _(`Store "${e}" is declared twice in ${n.file}. Use: :store name = value \u2014 e.g. ${ye}`,{code:"WD206",file:n.file,hint:`:store name = value \u2014 e.g. ${ye}`,example:ye});if(n.comp.state.has(e))throw _(`Store "${e}" collides with a :state of the same name in ${n.file}. Use: :store name = value for the global, or rename one \u2014 e.g. ${ye}`,{code:"WD207",file:n.file,hint:`:store name = value for the global, or rename one \u2014 e.g. ${ye}`,example:ye});return n.comp.stores.add(e),n.comp.state.set(e,t),n.comp.assets.runtime=!0,e}function Xn(e,t){for(let n of["_error","_error_body"])t.comp.state.has(e+n)||t.comp.state.set(e+n,null)}function Jn(e,t,n){let r=e.match(/^:computed\s+([A-Za-z_$][\w$]*)\s*=\s*(.+)$/);if(!r)throw _(`Malformed :computed in ${S(t,n)}: ${e}. Use: ${Le}`,{code:"WD208",file:t.file,line:$(t,n),hint:Le,example:Le});let o=r[2].trim(),i=o.match(/\s+(persist|ephemeral|from-url)$/);if(i&&!G(i[1],t)){let d=`:computed values are derived, not stored, so they cannot ${{persist:"persist",ephemeral:"be ephemeral","from-url":"come from the URL"}[i[1]]}. Put the token on the state they derive from instead \u2014 e.g. :state count = 0 persist`;throw _(`Persistence token on :computed in ${S(t,n)}: ${e}. ${d}`,{code:"WD211",file:t.file,line:$(t,n),hint:d,example:Le})}let a=xc(o,t),u;try{u=Ye(a)}catch{throw _(`Malformed :computed expression in ${S(t,n)}: ${e}. Use: ${Le}`,{code:"WD209",file:t.file,line:$(t,n),hint:Le,example:Le})}let s=_t(u,void 0,t.comp),c=it(r[1],s??null,t);return Q(t,n,{kind:"computed",name:c,detail:`${c} = ${r[2].trim()}`}),`<span data-wd-computed data-wd-computed-key="${k(c)}" data-wd-computed-expr="${k(JSON.stringify(u))}"></span><script type="application/json" data-wd-state>${de({[c]:s??null})}<\/script>`}function hi(e,t,n){let r=e.match(new RegExp(String.raw`^:theme(?:\s+([A-Za-z_$][\w$]*))?(?:\s*=\s*(.+?))?${pi}$`));if(!r)throw _(`Malformed :theme in ${S(t,n)}: ${e}. Use: :theme (or :theme name = "auto") \u2014 e.g. ${di}`,{code:"WD210",file:t.file,line:$(t,n),hint:`:theme (or :theme name = "auto") \u2014 e.g. ${di}`,example:di});let o=mi(r[3],":theme",t,n),i=r[1]||"theme",a=r[2]!=null?pt(r[2],S(t,n)):"auto",u=tl(i,a,t);Q(t,n,{kind:"theme",name:u,detail:`${u} = ${JSON.stringify(a)}`});let s=o.ephemeral?" data-wd-store-ephemeral":"";return`<script type="application/json" data-wd-store="${k(u)}"${s}>${de(a)}<\/script><span data-wd-theme="${k(u)}" hidden></span>`}var nl=':fetch todos from "/api/todos.json" when=visible',Fe=`Use: :fetch name from "url" [method=\u2026] [timeout=ms] [retry=N] [when=visible] [headers=key] [body=key] [refresh=url] \u2014 e.g. ${nl}`;function Qn(e,t,n){let r=e.match(/^:fetch\s+([A-Za-z_$][\w$]*)\s+from\s+("[^"]+"|\S+)\s*(.*)$/);if(!r)throw _(`Malformed :fetch in ${S(t,n)}: ${e}. ${Fe}`,{code:"WD501",file:t.file,line:$(t,n),hint:Fe.slice(5),example:nl});let o=r[1],i=We(ee(r[2]),t),a={};for(let f of r[3].trim().split(/\s+/).filter(Boolean)){let m=f.match(/^([A-Za-z]+)=(.+)$/);if(!m)throw _(`Unknown :fetch option "${f}" in ${S(t,n)}. ${Fe}`,{code:"WD502",file:t.file,line:$(t,n)});let p=m[1];if(!["method","when","timeout","retry","headers","body","refresh"].includes(p))throw _(`Unknown :fetch option "${p}" in ${S(t,n)}. ${Fe}`,{code:"WD502",file:t.file,line:$(t,n)});a[p]=ee(m[2])}if(a.method&&!["GET","POST","PUT","PATCH","DELETE"].includes(a.method.toUpperCase()))throw _(`:fetch method "${a.method}" is not allowed in ${S(t,n)}. ${Fe}`,{code:"WD503",file:t.file,line:$(t,n)});if(a.when&&!["load","visible"].includes(a.when))throw _(`:fetch when "${a.when}" is not allowed in ${S(t,n)}. ${Fe}`,{code:"WD504",file:t.file,line:$(t,n)});for(let f of["timeout","retry"])if(a[f]!==void 0&&!/^\d+$/.test(a[f]))throw _(`:fetch ${f} must be a non-negative integer in ${S(t,n)}. ${Fe}`,{code:"WD505",file:t.file,line:$(t,n)});if(a.refresh!==void 0){if(!a.headers)throw _(`:fetch refresh= needs headers= (the state key holding the token to renew) in ${S(t,n)}. ${Fe}`,{code:"WD506",file:t.file,line:$(t,n)});a.refresh=We(a.refresh,t,":fetch refresh")}let u=[];for(let f of i.matchAll(/\{\s*([A-Za-z_$][\w$.]*)\s*\}/g)){Rt(f[1],t,Fe);let m=f[1].split(".")[0];u.includes(m)||u.push(m)}let s=it(o,null,t);t.comp.fetchKeys.add(s),Xn(s,t),Q(t,n,{kind:"fetch",name:s,detail:`${s} from "${i}"`});let c={[s]:null};for(let[f,m]of[["_error",null],["_error_body",null],["_loading",!1],["_empty",!1]]){let p=`${s}${f}`;t.comp.state.has(p)||t.comp.state.set(p,m),c[p]=m}let l=(f,m)=>m!=null&&m!==!1&&m!==""?` data-wd-fetch-${f}="${k(m)}"`:"",d=`<span data-wd-fetch data-wd-fetch-key="${k(s)}" data-wd-fetch-url="${k(i)}"`+l("method",a.method&&a.method.toUpperCase())+l("when",a.when==="visible"?"visible":"")+l("timeout",a.timeout)+l("retry",a.retry)+l("headers",a.headers&&G(a.headers,t))+l("body",a.body&&G(a.body,t))+l("refresh",a.refresh)+l("deps",u.join(","))+"></span>";return`<script type="application/json" data-wd-state>${de(c)}<\/script>${d}`}function We(e,t,n=":fetch"){let r=e.trim();if(r!==e||r===""||/[\u0000-\u001F\u007F]/.test(r))throw _(`Unsafe ${n} URL "${k(e)}" in ${t.file}. Use a relative path (/, ./, ../), an http(s):// URL, or a { state } interpolation.`,{code:"WD507",file:t.file});if(r.startsWith("//"))throw _(`Unsafe ${n} URL "${k(e)}" in ${t.file}. Protocol-relative URLs are not allowed; use http:// or https:// explicitly.`,{code:"WD508",file:t.file});if(r.startsWith("{"))return r;let o=r.match(/^([A-Za-z][A-Za-z0-9+.-]*):/);if(o&&!["http","https"].includes(o[1].toLowerCase()))throw _(`Unsafe ${n} URL "${k(e)}" in ${t.file}. The "${o[1]}:" scheme is not allowed; use http://, https://, or a relative path.`,{code:"WD509",file:t.file});return r}var er=":form into contact",il=":input email type=email required",rl=':textarea message placeholder="Your message" rows=4',tr=":select topic",bi=":checkbox toppings",$h=":radio size",gi=':submit "Send"',_i=':bind query placeholder="Search"',Ei=":slider volume = 50 min=0 max=100 step=1",ol=`Use: :input name [type=\u2026] [placeholder="\u2026"] [required] \u2014 e.g. ${il}`,al=e=>!!e.inForm;function ul(e,t,n,r){let o=G(e,n);if(o)return o;let a=`declare the state first \u2014 :state ${e} = ${t===":checkbox"?"false":'"\u2026"'} \u2014 or move ${t} inside a :form, where the name is a form field instead`;throw _(`${t} ${e} in ${S(n,r)} is outside a :form and has no matching state. Use: ${a} \u2014 e.g. ${tr}`,{code:"WD450",file:n.file,line:$(n,r),hint:a,example:tr})}function nr(e,t,n,r){let o=e.slice(5).trim(),i=o.match(/action="([^"]+)"/)?.[1],a=o.match(/method="([^"]+)"/)?.[1]||"post",u=o.match(/(?:^|\s)into\s+([A-Za-z_$][\w$]*)/)?.[1],s=o.replace(/action="[^"]+"/,"").replace(/method="[^"]+"/,"").replace(/(?:^|\s)into\s+[A-Za-z_$][\w$]*/,"").trim();if(!i&&!u||s){let b=`':form into name' (client state), ':form action="/url"' (native post), or both (fetch round-trip into state) \u2014 e.g. ${er}`;throw _(`Malformed :form in ${S(n,r)}: ${e}. Use ${b}`,{code:"WD401",file:n.file,line:$(n,r),hint:b,example:er})}let c=i?We(i,n,":form action"):void 0,l=fe(n,r+1);l.inForm=!0;let d=n.compileBody(t,l).trim(),f=/<input[^>]*\btype="file"/i.test(d);if(f&&a.toLowerCase()==="get"){let b=`drop method="get" (a :form posts by default) \u2014 a GET request has no body, so the file would never be sent \u2014 e.g. ${er}`;throw _(`:form in ${S(n,r)} has a file field and method="get". Use: ${b}`,{code:"WD452",file:n.file,line:$(n,r),hint:b,example:er})}let m=f?' enctype="multipart/form-data"':"";if(!u)return`<form action="${k(c)}" method="${k(a)}"${m}>${d}</form>`;let p=it(u,null,n);Xn(p,n),Q(n,r,{kind:"form",name:p,target:p,detail:`:form action="${i}" into ${u}`});let h=c?` action="${k(c)}" method="${k(a)}"${m}`:"";return`<script type="application/json" data-wd-state>${de({[p]:null})}<\/script><form data-wd-form="${k(p)}"${h}>${d}</form>`}function rr(e,t,n){let r=e.match(/^:input\s+([A-Za-z_][\w-]*)\s*(.*)$/);if(!r)throw _(`Malformed :input in ${S(t,n)}: ${e}. ${ol}`,{code:"WD402",file:t.file,line:$(t,n),hint:ol.slice(5),example:il});let o=[`name="${k(r[1])}"`];Q(t,n,{kind:"field",name:r[1],detail:`:input ${r[1]}`});let i="text",a,u=!1,s=/([A-Za-z-]+)=("[^"]*"|\S+)|([A-Za-z-]+)/g;for(let c of(r[2]||"").matchAll(s)){if(c[3]){if(!["required","autofocus","disabled","readonly"].includes(c[3]))throw _(`Unknown :input flag "${c[3]}" in ${S(t,n)}`,{code:"WD403",file:t.file,line:$(t,n)});o.push(c[3]);continue}let l=ee(c[2]);if(c[1]==="type"){i=l;continue}if(!["placeholder","value","min","max","step","pattern","autocomplete","aria-label","aria-describedby"].includes(c[1]))throw _(`Unknown :input attribute "${c[1]}" in ${S(t,n)}`,{code:"WD404",file:t.file,line:$(t,n)});c[1]==="placeholder"&&(a=l),(c[1]==="aria-label"||c[1]==="aria-describedby")&&(u=!0),o.push(`${c[1]}="${k(l)}"`)}return u||o.push(`aria-label="${k(a||je(r[1]))}"`),`<input type="${k(i)}" ${o.join(" ")}>`}function or(e,t,n){let r=e.match(/^:bind\s+([A-Za-z_$][\w$]*)\s*(.*)$/);if(!r)throw _(`Malformed :bind in ${S(t,n)}: ${e}. Use: ${_i}`,{code:"WD405",file:t.file,line:$(t,n),hint:_i,example:_i});let o=G(r[1],t);if(!o)throw _(`:bind ${r[1]} in ${t.file} has no matching state. Declare it first: :state ${r[1]} = ""`,{code:"WD406",file:t.file});Q(t,n,{kind:"field",name:r[1],target:o,detail:`:bind ${r[1]}`}),t.comp.assets.runtime=!0;let i="text",a,u=!1,s=[],c=/([A-Za-z-]+)=("[^"]*"|\S+)|([A-Za-z-]+)/g;for(let f of(r[2]||"").matchAll(c)){if(f[3]){if(!["required","autofocus"].includes(f[3]))throw _(`Unknown :bind flag "${f[3]}" in ${S(t,n)}`,{code:"WD407",file:t.file,line:$(t,n)});s.push(f[3]);continue}let m=ee(f[2]);if(f[1]==="type"){i=m;continue}if(!["placeholder","autocomplete","aria-label","aria-describedby"].includes(f[1]))throw _(`Unknown :bind attribute "${f[1]}" in ${S(t,n)}`,{code:"WD408",file:t.file,line:$(t,n)});f[1]==="placeholder"&&(a=m),(f[1]==="aria-label"||f[1]==="aria-describedby")&&(u=!0),s.push(`${f[1]}="${k(m)}"`)}u||s.push(`aria-label="${k(a||je(r[1]))}"`);let l=t.comp.state.get(o),d=l==null?"":` value="${k(String(l))}"`;return`<input type="${k(i)}" data-wd-bind-input="${k(o)}"${d} ${s.join(" ")}>`}function ir(e,t,n){let r=e.match(/^:slider\s+([A-Za-z_$][\w$]*)\s*(.*)$/);if(!r)throw _(`Malformed :slider in ${S(t,n)}: ${e}. Use: ${Ei}`,{code:"WD409",file:t.file,line:$(t,n),hint:Ei,example:Ei});let o=r[1],i=r[2].trim(),a;if(i.startsWith("=")){let E=i.match(/^=\s*(\S+)\s*(.*)$/);if(!E)throw _(`Malformed :slider initial value in ${S(t,n)}: ${e}. Use: :slider ${o} = 50`,{code:"WD410",file:t.file,line:$(t,n)});a=E[1],i=E[2].trim()}let u="0",s="100",c="1",l,d=!1;for(let E of i.matchAll(/([A-Za-z-]+)=("[^"]*"|\S+)|(\bpersist\b)/g)){if(E[3]){d=!0;continue}let g=ee(E[2]);if(E[1]==="min")u=g;else if(E[1]==="max")s=g;else if(E[1]==="step")c=g;else if(E[1]==="aria-label")l=g;else throw _(`Unknown :slider attribute "${E[1]}" in ${S(t,n)}`,{code:"WD411",file:t.file,line:$(t,n)})}for(let[E,g]of[["min",u],["max",s],["step",c]])if(!/^-?\d+(?:\.\d+)?$/.test(g))throw _(`:slider ${E} must be a number in ${S(t,n)}: ${g}`,{code:"WD412",file:t.file,line:$(t,n)});t.comp.assets.runtime=!0;let f,m="";if(a!==void 0){let E=pt(a,S(t,n));if(typeof E!="number")throw _(`:slider ${o} initial value must be a number in ${S(t,n)}: ${a}`,{code:"WD413",file:t.file,line:$(t,n)});f=it(o,E,t),m=`<script type="application/json" data-wd-state${d?` data-wd-persist="${k(f)}"`:""}>${de({[f]:E})}<\/script>`}else{if(d)throw _(`:slider persist only applies when declaring state inline (:slider ${o} = 0 \u2026 persist) in ${S(t,n)}`,{code:"WD414",file:t.file,line:$(t,n)});let E=G(o,t);if(!E)throw _(`:slider ${o} in ${t.file} has no matching state. Declare it: :slider ${o} = 0 min=0 max=100`,{code:"WD415",file:t.file});f=E}let p=t.comp.state.get(f),h=p==null?"":` value="${k(String(p))}"`,b=` aria-label="${k(l||je(o))}"`;return Q(t,n,{kind:"field",name:o,target:f,detail:`:slider ${o}`}),`${m}<input type="range" data-wd-bind-input="${k(f)}" min="${k(u)}" max="${k(s)}" step="${k(c)}"${h}${b}>`}function ar(e,t,n){let r=e.match(/^:submit\s+"([^"]+)"\s*$/);if(!r)throw _(`Malformed :submit in ${S(t,n)}: ${e}. Use: :submit "Label" \u2014 e.g. ${gi}`,{code:"WD416",file:t.file,line:$(t,n),hint:`:submit "Label" \u2014 e.g. ${gi}`,example:gi});return Q(t,n,{kind:"field",name:"submit",detail:e.trim()}),`<button type="submit">${k(r[1])}</button>`}function ur(e,t,n){let r=e.match(/^:textarea\s+([A-Za-z_][\w-]*)\s*(.*)$/);if(!r){let s=`:textarea name [placeholder="\u2026"] [rows=N] [required] \u2014 e.g. ${rl}`;throw _(`Malformed :textarea in ${S(t,n)}: ${e}. Use: ${s}`,{code:"WD417",file:t.file,line:$(t,n),hint:s,example:rl})}let o=[`name="${k(r[1])}"`];Q(t,n,{kind:"field",name:r[1],detail:`:textarea ${r[1]}`});let i,a=!1,u=/([A-Za-z-]+)=("[^"]*"|\S+)|([A-Za-z-]+)/g;for(let s of(r[2]||"").matchAll(u)){if(s[3]){if(!["required","autofocus","disabled","readonly"].includes(s[3]))throw _(`Unknown :textarea flag "${s[3]}" in ${S(t,n)}`,{code:"WD418",file:t.file,line:$(t,n)});o.push(s[3]);continue}let c=ee(s[2]);if(!["placeholder","rows","cols","minlength","maxlength","autocomplete","aria-label","aria-describedby"].includes(s[1]))throw _(`Unknown :textarea attribute "${s[1]}" in ${S(t,n)}`,{code:"WD419",file:t.file,line:$(t,n)});s[1]==="placeholder"&&(i=c),(s[1]==="aria-label"||s[1]==="aria-describedby")&&(a=!0),o.push(`${s[1]}="${k(c)}"`)}return a||o.push(`aria-label="${k(i||je(r[1]))}"`),`<textarea ${o.join(" ")}></textarea>`}function sr(e,t,n,r){let o=e.match(/^:select\s+([A-Za-z_][\w-]*)\s*(.*)$/);if(!o){let f=`:select name [required] then "- Label" lines \u2014 e.g. ${tr}`;throw _(`Malformed :select in ${S(n,r)}: ${e}. Use: ${f}`,{code:"WD420",file:n.file,line:$(n,r),hint:f,example:tr})}let i=al(n)?null:ul(o[1],":select",n,r),a=i?[`data-wd-bind-input="${k(i)}"`]:[`name="${k(o[1])}"`];i&&(n.comp.assets.runtime=!0),Q(n,r,{kind:"field",name:o[1],...i?{target:i}:{},detail:`:select ${o[1]}`});let u=!1,s=/([A-Za-z-]+)=("[^"]*"|\S+)|([A-Za-z-]+)/g;for(let f of(o[2]||"").matchAll(s)){if(f[3]){if(!["required","disabled","autofocus"].includes(f[3]))throw _(`Unknown :select flag "${f[3]}" in ${S(n,r)}`,{code:"WD421",file:n.file,line:$(n,r)});a.push(f[3]);continue}let m=ee(f[2]);if(!["autocomplete","aria-label","aria-describedby"].includes(f[1]))throw _(`Unknown :select attribute "${f[1]}" in ${S(n,r)}`,{code:"WD422",file:n.file,line:$(n,r)});(f[1]==="aria-label"||f[1]==="aria-describedby")&&(u=!0),a.push(`${f[1]}="${k(m)}"`)}u||a.push(`aria-label="${k(je(o[1]))}"`);let c=t.map(f=>f.replace(/^\s*-\s+/,"").trim()).filter(Boolean);if(!c.length)throw _(`:select "${o[1]}" in ${S(n,r)} has no options. Add "- Label" lines beneath it.`,{code:"WD423",file:n.file,line:$(n,r)});let l=i?String(n.comp.state.get(i)??""):null,d=c.map(f=>`<option value="${k(f)}"${f===l?" selected":""}>${k(f)}</option>`).join("");return`<select ${a.join(" ")}>${d}</select>`}function Gt(e,t,n,r,o){let i=`:${r}`,a=e.match(r==="checkbox"?/^:checkbox\s+([A-Za-z_][\w-]*)\s*(.*)$/:/^:radio\s+([A-Za-z_][\w-]*)\s*(.*)$/);if(!a){let A=r==="checkbox"?bi:$h,v=`${i} name [required] then "- Label" lines \u2014 e.g. ${A}`;throw _(`Malformed ${i} in ${S(n,o)}: ${e}. Use: ${v}`,{code:"WD424",file:n.file,line:$(n,o),hint:v,example:A})}let u=a[1],s=al(n)?null:ul(u,i,n,o);s&&(n.comp.assets.runtime=!0),Q(n,o,{kind:"field",name:u,...s?{target:s}:{},detail:`:${r} ${u}`});let c=[],l=null,d=null,f=/([A-Za-z-]+)=("[^"]*"|\S+)|([A-Za-z-]+)/g;for(let A of(a[2]||"").matchAll(f)){if(A[3]){if(!["required","disabled","autofocus"].includes(A[3]))throw _(`Unknown ${i} flag "${A[3]}" in ${S(n,o)}`,{code:"WD425",file:n.file,line:$(n,o)});c.push(A[3]);continue}let v=ee(A[2]);if(A[1]==="aria-label")l=v;else if(A[1]==="aria-describedby")d=v;else throw _(`Unknown ${i} attribute "${A[1]}" in ${S(n,o)}`,{code:"WD426",file:n.file,line:$(n,o)})}let m=t.map(A=>A.replace(/^\s*-\s+/,"").trim()).filter(Boolean);if(!m.length)throw _(`${i} "${u}" in ${S(n,o)} has no options. Add "- Label" lines beneath it.`,{code:"WD427",file:n.file,line:$(n,o)});let p=r==="checkbox";if(s&&p&&m.length>1){let A=`a bound :checkbox is a single true/false, so give it one "- Label" line. For a list of choices, use a :radio group (one value) or drive an array with :button "\u2026" -> ${u} toggle "Label"`;throw _(`:checkbox ${u} in ${S(n,o)} is bound to state and has ${m.length} options. Use: ${A} \u2014 e.g. ${bi}`,{code:"WD451",file:n.file,line:$(n,o),hint:A,example:bi})}let h=[`class="wd-${p?"checkboxes":"radios"}"`,`role="${p?"group":"radiogroup"}"`];p&&!s&&h.push(`data-wd-multi="${k(u)}"`),h.push(`aria-label="${k(l||je(u))}"`),d&&h.push(`aria-describedby="${k(d)}"`);let b=c.includes("disabled"),E=c.includes("required"),g=c.includes("autofocus"),y=s?n.comp.state.get(s):void 0,x=m.map((A,v)=>{let D=[`type="${r}"`,`name="${k(s||u)}"`,`value="${k(A)}"`];return s&&D.push(`data-wd-bind-input="${k(s)}"`),s&&(p?y:String(y??"")===A)&&D.push("checked"),b&&D.push("disabled"),E&&!p&&D.push("required"),g&&v===0&&D.push("autofocus"),`<label><input ${D.join(" ")}> ${k(A)}</label>`}).join("");return`<div ${h.join(" ")}>${x}</div>`}var Ch=":video /demo.mp4 controls",Dh=":audio /theme.mp3 controls",sl=':embed https://youtu.be/dQw4w9WgXcQ title="Demo"',Nh={video:{flags:["controls","autoplay","loop","muted","playsinline"],attrs:["poster","width","height","preload"]},audio:{flags:["controls","autoplay","loop","muted"],attrs:["preload"]}};function Zt(e,t,n,r){let o=e.match(new RegExp(`^:${t}\\s+(\\S+)\\s*(.*)$`));if(!o){let d=t==="video"?Ch:Dh,f=`:${t} /clip [controls] [autoplay] [loop] [muted] \u2014 e.g. ${d}`;throw _(`Malformed :${t} in ${S(n,r)}: ${e}. Use: ${f}`,{code:"WD701",file:n.file,line:$(n,r),hint:f,example:d})}let i=We(ee(o[1]),n,`:${t}`),a=Nh[t],u=new Set,s=new Map,c=/([A-Za-z-]+)=("[^"]*"|\S+)|([A-Za-z-]+)/g;for(let d of(o[2]||"").matchAll(c))if(d[3]){if(!a.flags.includes(d[3]))throw _(`Unknown :${t} flag "${d[3]}" in ${S(n,r)}`,{code:"WD702",file:n.file,line:$(n,r)});u.add(d[3])}else{if(!a.attrs.includes(d[1]))throw _(`Unknown :${t} attribute "${d[1]}" in ${S(n,r)}`,{code:"WD703",file:n.file,line:$(n,r)});s.set(d[1],ee(d[2]))}u.has("autoplay")&&u.add("muted"),(t==="audio"||!u.has("autoplay"))&&u.add("controls");let l=[`src="${k(i)}"`];s.has("poster")&&l.push(`poster="${k(We(s.get("poster"),n,`:${t} poster`))}"`);for(let d of["width","height"])s.has(d)&&l.push(`${d}="${k(s.get(d))}"`);l.push(`preload="${k(s.get("preload")||"metadata")}"`);for(let d of a.flags)u.has(d)&&l.push(d);return`<${t} ${l.join(" ")}></${t}>`}var Th=["title","height","aspect","allow"],cl=["payment","autoplay","encrypted-media","fullscreen","picture-in-picture","clipboard-write","camera","microphone","geolocation"],Oh="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";function cr(e,t,n){let r=e.match(/^:embed\s+(\S+)\s*(.*)$/);if(!r){let m=`:embed https://youtu.be/ID [title="\u2026"] \u2014 e.g. ${sl}`;throw _(`Malformed :embed in ${S(t,n)}: ${e}. Use: ${m}`,{code:"WD704",file:t.file,line:$(t,n),hint:m,example:sl})}let o=ee(r[1]),i=new Map,a=/([A-Za-z-]+)=("[^"]*"|\S+)/g;for(let m of(r[2]||"").matchAll(a)){if(!Th.includes(m[1]))throw _(`Unknown :embed attribute "${m[1]}" in ${S(t,n)}`,{code:"WD705",file:t.file,line:$(t,n)});i.set(m[1],ee(m[2]))}let u=Rh(i,t,n),s=Mh(i,t,n),{url:c,label:l}=Lh(o,t);Ih(t,c);let d=i.get("title")||"",f=`<iframe src="${k(c)}" title="${k(d||l)}" loading="lazy" referrerpolicy="strict-origin-when-cross-origin" allow="${k(s)}" allowfullscreen style="width:100%;height:100%;border:0"></iframe>`;return`<div class="wd-embed" style="${u}">${f}</div>`}function Rh(e,t,n){let r=e.get("height");if(r!==void 0){if(!/^\d+(?:\.\d+)?(?:px|rem|em|vh|vw|%)$/.test(r))throw _(`Invalid :embed height "${r}" in ${S(t,n)}. Use: a CSS length like height=400px or height=24rem.`,{code:"WD707",file:t.file,line:$(t,n)});return`height:${r}`}let o=e.get("aspect");if(o!==void 0){if(!/^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(o))throw _(`Invalid :embed aspect "${o}" in ${S(t,n)}. Use: a width:height ratio like aspect=4:3.`,{code:"WD707",file:t.file,line:$(t,n)});return`aspect-ratio:${o.replace(":","/")}`}return"aspect-ratio:16/9"}function Mh(e,t,n){let r=e.get("allow");if(r===void 0)return Oh;let o=r.trim().split(/\s+/).filter(Boolean);for(let i of o)if(!cl.includes(i))throw _(`Unknown :embed allow token "${i}" in ${S(t,n)}. Use: ${cl.join(", ")}.`,{code:"WD706",file:t.file,line:$(t,n)});return o.join("; ")}function Ih(e,t){if(!t.startsWith("{")){if(!/^https?:\/\//i.test(t)){e.comp.assets.embedHosts.add("'self'");return}try{e.comp.assets.embedHosts.add(new URL(t).origin)}catch{}}}function Lh(e,t){let n=e.match(/(?:youtube\.com\/(?:watch\?v=|embed\/|shorts\/)|youtu\.be\/)([\w-]{6,})/);if(n)return{url:`https://www.youtube-nocookie.com/embed/${n[1]}`,label:"YouTube video"};let r=e.match(/vimeo\.com\/(?:video\/)?(\d+)/);return r?{url:`https://player.vimeo.com/video/${r[1]}`,label:"Vimeo video"}:{url:We(e,t,":embed"),label:"Embedded content"}}var ll={"@include":(e,t,n)=>Ht(e,t,n),"@loop":(e,t,n)=>Vo(e,[],null,t,n),":state":(e,t,n)=>Vn(e,t,n),":store":(e,t,n)=>Yn(e,t,n),":fetch":(e,t,n)=>Qn(e,t,n),":computed":(e,t,n)=>Jn(e,t,n),":effect":(e,t,n)=>Kn(e,t,n),":every":(e,t,n)=>jn(e,t,n),":video":(e,t,n)=>Zt(e,"video",t,n),":audio":(e,t,n)=>Zt(e,"audio",t,n),":embed":(e,t,n)=>cr(e,t,n),":form":(e,t,n)=>nr(e,[],t,n),":input":(e,t,n)=>rr(e,t,n),":textarea":(e,t,n)=>ur(e,t,n),":select":(e,t,n)=>sr(e,[],t,n),":checkbox":(e,t,n)=>Gt(e,[],t,"checkbox",n),":radio":(e,t,n)=>Gt(e,[],t,"radio",n),":bind":(e,t,n)=>or(e,t,n),":slider":(e,t,n)=>ir(e,t,n),":submit":(e,t,n)=>ar(e,t,n),":button":(e,t,n)=>Zn(e,t,n),":if":(e,t,n)=>Gn(e,[],[],t,n)};function ki(e,t){let n=[],r=[],o=0,i=null,a=null,u=c=>{let l=n.length-1,d=l>=0?Jo(n[l],c):null;d===null?n.push(c):n[l]=d},s=()=>{if(!r.length)return;let c=r.join(`
49
+ `))?"":r[2]==="loading"?' role="status" aria-live="polite"':' role="alert"'}function Gn(e,t,n,r,o,i=o+1){let a=fe(r,o+1),u=fe(r,i),s=e.replace(/^:if\s*/,"").trim();Q(r,o,{kind:"if",name:s,detail:`:if ${s}`});let c=s.match(/^([A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*)$/);if(c){let b=c[1].split("."),E=b[0];if(Ke[E]){if(!r.loopMeta)throw _(`":if ${c[1]}" uses the loop meta variable "${E}" outside a @loop in ${r.file}. Use it inside a loop body.`,{code:"WD607",file:r.file});if(r.loopItem){let J=r.compileBody(t,a).trim(),ne=r.compileBody(n,u).trim();return`<span data-wd-each-if data-wd-meta="${Ke[E]}"><template data-wd-if-true>${J}</template><template data-wd-if-false>${ne}</template><span data-wd-each-if-out></span></span>`}}if(r.loopItem&&E===r.loopItem){let J=r.compileBody(t,a).trim(),ne=r.compileBody(n,u).trim(),re=b.slice(1).join(".");return`<span data-wd-each-if${` data-wd-path="${w(re)}"`}><template data-wd-if-true>${J}</template><template data-wd-if-false>${ne}</template><span data-wd-each-if-out></span></span>`}let g=we(r.scope,E);if(g.found){let J=!!oe(g.value,b.slice(1));return r.compileBody(J?t:n,J?a:u)}let y=Z(E,r);if(!y)throw _(`:if ${c[1]} in ${r.file} does not match a :state or in-scope value. Declare it first.`,{code:"WD608",file:r.file});r.comp.assets.runtime=!0;let x=r.compileBody(t,a).trim(),A=r.compileBody(n,u).trim(),v=b.slice(1).join("."),N=v?` data-wd-path="${w(v)}"`:"",R=v?"":gh(y,[...t,...n],r),B=!!oe(r.comp.state.get(y),b.slice(1)),H=B?x:A;return`<div data-wd-if="${w(y)}"${N}${R} data-wd-if-active="${B}"><template data-wd-true>${x}</template><template data-wd-false>${A}</template><div data-wd-if-out>${H}</div></div>`}if(!s){let b=`":if name" or ":if a <op> b [and|or|not \u2026]" \u2014 e.g. ${Uc}`;throw _(`Malformed :if in ${S(r,o)}: ${e}. Use ${b}`,{code:"WD609",file:r.file,line:$(r,o),hint:b,example:Uc})}let l=jo(s,r,'":if"');if(l.static)return r.compileBody(l.value?t:n,l.value?a:u);r.comp.assets.runtime=!0;let d=r.compileBody(t,a).trim(),f=r.compileBody(n,u).trim(),m=` data-wd-if-expr="${w(Dc(l.body,r,o,'":if"'))}"`;if(l.item)return`<span data-wd-each-if${m}><template data-wd-if-true>${d}</template><template data-wd-if-false>${f}</template><span data-wd-each-if-out></span></span>`;let p=Wt(l.body,void 0,r,'":if"');return`<div data-wd-if=""${m} data-wd-if-active="${p}"><template data-wd-true>${d}</template><template data-wd-false>${f}</template><div data-wd-if-out>${p?d:f}</div></div>`}function oi(e,t){let n=e.match(/^:try\s+"([^"]+)"\s+href="([^"]+)"$/);if(n){let r=_h(n[2],t);return`<a class="try-card" href="${w(r)}"><span>Try</span>${w(n[1])}</a>`}return""}function _h(e,t){let n=e.trim();if(n!==e||/[\u0000-\u001F\u007F]/.test(n))throw _(`Unsafe :try href "${w(e)}" in ${t.file}. Use a relative URL starting with /, ./, ../, or #, or an http:, https:, or mailto: URL.`,{code:"WD610",file:t.file});if(n.startsWith("//"))throw _(`Unsafe :try href "${w(e)}" in ${t.file}. Protocol-relative URLs are not allowed; use http: or https: explicitly.`,{code:"WD611",file:t.file});if(n.startsWith("/")||n.startsWith("./")||n.startsWith("../")||n.startsWith("#"))return n;let r=n.match(/^([A-Za-z][A-Za-z0-9+.-]*):/);if(r&&["http","https","mailto"].includes(r[1].toLowerCase()))return n;throw _(`Unsafe :try href "${w(e)}" in ${t.file}. Use a relative URL starting with /, ./, ../, or #, or an http:, https:, or mailto: URL.`,{code:"WD610",file:t.file})}var Kc=':button "Add one" -> count++',Gc=`Use: :button "Label" [role="\u2026"] [aria-\u2026="\u2026"] [title="\u2026"] -> action \u2014 e.g. ${Kc}`;function Zn(e,t,n){let r=()=>{throw _(`Malformed :button in ${S(t,n)}: ${e}. ${Gc}`,{code:"WD301",file:t.file,line:$(t,n),hint:Gc.slice(5),example:Kc})},o=e.match(/^:button\s+"([^"]+)"\s*([\s\S]*)$/);if(!o)return r();let i=ei(o[2],t,n,":button"),a=i.rest.match(/^->\s*(.+)$/);if(!a)return r();let u=[o[1],a[1]];t.comp.assets.runtime=!0;let s=li(u[1],t);for(let d of Array.isArray(s)?s:[s])Q(t,n,{kind:"action",name:d.target,target:d.target,op:d.op,detail:`:button "${u[0]}" -> ${u[1].trim()}`});let c=ti(i.attrs);if(Array.isArray(s))return`<button type="button"${c} data-wd-actions="${w(JSON.stringify(s))}">${w(u[0])}</button>`;let l=s.value===void 0?"":` data-wd-value="${w(JSON.stringify(s.value))}"`;return`<button type="button"${c} data-wd-action="${s.op}" data-wd-target="${w(s.target)}"${l}>${w(u[0])}</button>`}var si=":effect query -> searches++",ii=`Use: :effect watchedState -> action[; action\u2026] (actions use the :button vocabulary) \u2014 e.g. ${si}`;function jc(e,t,n,r,o){if(!r.loopItem)return;let i=`declare ${e} once outside the loop \u2014 at page level, or inside the ::: section \u2014 and act on the whole list (${t}) \u2014 e.g. ${n}`;throw _(`${e} cannot be used inside a reactive @loop body in ${S(r,o)}. Each row is cloned from the loop template, so every row would register its own timer/watcher and a removed row's would keep firing. Use: ${i}`,{code:"WD315",file:r.file,line:$(r,o),hint:i,example:n})}function Kn(e,t,n){jc(":effect",":effect query -> rows refetch",si,t,n);let r=e.match(/^:effect\s+([A-Za-z_$][\w$.]*)\s*->\s*(.+)$/);if(!r)throw _(`Malformed :effect in ${S(t,n)}: ${e}. ${ii}`,{code:"WD302",file:t.file,line:$(t,n),hint:ii.slice(5),example:si});let o=Rt(r[1],t,ii),i=Z(o[0],t);if(!i)throw _(`:effect watches unknown state "${o[0]}" in ${t.file}. Declare it first with :state ${o[0]} = ...`,{code:"WD303",file:t.file});t.comp.assets.runtime=!0;let a=[i,...o.slice(1)].join("."),u=li(r[2],t),s=Array.isArray(u)?u:[u];for(let c of s)Q(t,n,{kind:"action",name:c.target,target:c.target,op:c.op,detail:`:effect ${a} -> ${r[2].trim()}`});return`<script type="application/json" data-wd-effect>${de({watch:a,actions:s})}<\/script>`}var ci=":every 5s -> seconds++",ai=`Use: :every <duration> -> action[; action\u2026] \u2014 duration like 5s, 500ms, or 2m (actions use the :button vocabulary) \u2014 e.g. ${ci}`;function Eh(e){let t=e.trim().match(/^(\d+)(ms|s|m)?$/);if(!t)return null;let n=Number(t[1]);return t[2]==="s"?n*1e3:t[2]==="m"?n*6e4:n}function jn(e,t,n){jc(":every",":every 5s -> rows refetch",ci,t,n);let r=e.match(/^:every\s+(\S+)\s*->\s*(.+)$/);if(!r)throw _(`Malformed :every in ${S(t,n)}: ${e}. ${ai}`,{code:"WD304",file:t.file,line:$(t,n),hint:ai.slice(5),example:ci});let o=Eh(r[1]);if(o==null||o<=0)throw _(`:every duration "${r[1]}" is not valid in ${S(t,n)}. ${ai}`,{code:"WD305",file:t.file,line:$(t,n)});t.comp.assets.runtime=!0;let i=li(r[2],t),a=Array.isArray(i)?i:[i];for(let u of a)Q(t,n,{kind:"action",name:u.target,target:u.target,op:u.op,detail:`:every ${r[1]} -> ${r[2].trim()}`});return`<script type="application/json" data-wd-every>${de({ms:o,actions:a})}<\/script>`}var Vc="count++",ui=`Use: name++, name--, n += k, n -= k, name = v, flag toggle, list append/prepend v, list toggle v, list remove v, x clear, obj merge other, obj delete key, name reset, name refetch \u2014 chain with ";" \u2014 e.g. ${Vc}`;function li(e,t){let n=e.split(";").map(r=>r.trim()).filter(Boolean);return n.length>1?n.map(r=>Zc(r,e,t)):Zc(e.trim(),e,t)}function Zc(e,t,n){let r="[A-Za-z_$][\\w$]*(?:\\.[A-Za-z_$][\\w$]*)*",o=g=>{let y=Rt(g,n,ui),x=Z(y[0],n);if(!x)throw _(`Button action targets unknown state "${y[0]}" in ${n.file}. Declare it first with :state ${y[0]} = ...`,{code:"WD306",file:n.file});return[x,...y.slice(1)].join(".")},i=e.match(new RegExp(`^(${r})\\+\\+$`));if(i)return{op:"inc",target:o(i[1])};let a=e.match(new RegExp(`^(${r})--$`));if(a)return{op:"dec",target:o(a[1])};let u=e.match(new RegExp(`^(${r})\\s*-=\\s*(.+)$`));if(u)return{op:"sub",target:o(u[1]),value:qe(u[2],n)};let s=e.match(new RegExp(`^(${r})\\s*\\+=\\s*(.+)$`));if(s){let g=s[2].trim();if(n.loopItem&&g===n.loopItem){let A=o(s[1]);if(!Array.isArray(n.comp.state.get(A)))throw _(`Button action "${t}" needs ${s[1]} to be a :state list (declare it "${s[1]} = []") in ${n.file}.`,{code:"WD307",file:n.file});return{op:"append-row",target:A}}let y=o(s[1]),x=qe(g,n);if(Array.isArray(n.comp.state.get(y)))return{op:"append",target:y,value:x};if(typeof x=="number")return{op:"add",target:y,value:x};throw _(`Unsupported button action "${t}" in ${n.file}. += with non-number values requires a list state target \u2014 declare it "${s[1]} = []".`,{code:"WD308",file:n.file})}let c=e.match(new RegExp(`^(${r})\\s+toggle(?:\\s+(.+))?$`));if(c){let g=o(c[1]);return c[2]===void 0?{op:"toggle",target:g}:{op:"member-toggle",target:g,value:qe(c[2],n)}}let l=e.match(new RegExp(`^(${r})\\s+(append|prepend)\\s+(.+)$`));if(l)return{op:l[2],target:o(l[1]),value:qe(l[3],n)};let d=e.match(new RegExp(`^(${r})\\s+remove\\s+(.+)$`));if(d){let g=d[2].trim();if(n.loopItem&&g===n.loopItem){if(!n.loopKey)throw _(`Button action "${t}" can't delete a row of a nested (item-relative) loop in ${n.file}. Per-row "remove" needs a top-level :state/:store list; carry the row into one (cart += ${n.loopItem}) and remove it there.`,{code:"WD309",file:n.file});if(Z(d[1],n)!==n.loopKey)throw _(`Button action "${t}" must target the :state list being looped (@loop ${d[1]} into ${n.loopItem}) in ${n.file}.`,{code:"WD310",file:n.file});return{op:"remove",target:n.loopKey}}return{op:"remove-value",target:o(d[1]),value:qe(g,n)}}let f=e.match(new RegExp(`^(${r})\\s+clear$`));if(f)return{op:"clear",target:o(f[1])};let m=e.match(new RegExp(`^(${r})\\s+merge\\s+(.+)$`));if(m)return{op:"merge",target:o(m[1]),value:yh(m[2],n)};let p=e.match(new RegExp(`^(${r})\\s+delete\\s+(.+)$`));if(p)return{op:"delete",target:o(p[1]),value:qe(p[2],n)};let h=e.match(new RegExp(`^(${r})\\s+reset$`));if(h)return{op:"reset",target:o(h[1])};let b=e.match(new RegExp(`^(${r})\\s+refetch$`));if(b)return{op:"refetch",target:o(b[1])};let E=e.match(new RegExp(`^(${r})\\s*=\\s*(.+)$`));if(E)return{op:"set",target:o(E[1]),value:qe(E[2],n)};throw _(`Unsupported button action "${t}" in ${n.file}. ${ui}`,{code:"WD311",file:n.file,hint:ui.slice(5),example:Vc})}function yh(e,t){let n=e.trim();if(/^[A-Za-z_$][\w$]*$/.test(n)){let o=Z(n,t);if(!o)throw _(`Button action merge targets unknown state "${n}" in ${t.file}. Declare it first with :state ${n} = ...`,{code:"WD312",file:t.file});return o}let r=qe(n,t);if(r&&typeof r=="object"&&!Array.isArray(r))return r;throw _(`Unsupported merge operand "${e}" in ${t.file}. Use: obj merge other (a state key or an inline {\u2026} object) \u2014 e.g. settings merge patch`,{code:"WD313",file:t.file,hint:"obj merge other (a state key or an inline {\u2026} object) \u2014 e.g. settings merge patch",example:"settings merge patch"})}function qe(e,t){let n=e.trim();if(/^["'].*["']$/.test(n))return ee(n);if(n==="true")return!0;if(n==="false")return!1;if(n==="null")return null;if(/^-?\d+(?:\.\d+)?$/.test(n))return Number(n);if(/^[[{]/.test(n))try{return JSON.parse(n)}catch{throw _(`Unsupported action literal "${e}" in ${t.file}. Use: a quoted string, number, boolean, null, or valid JSON.`,{code:"WD314",file:t.file})}throw _(`Unsupported action literal "${e}" in ${t.file}. Use: a quoted string, number, boolean, null, or valid JSON.`,{code:"WD314",file:t.file})}var $t=":state count = 0",ye=":store cart = []",Le=":computed total = items.length * 4",di=":theme",Yc=':state q = "" from-url',Xc=`Use: :state name = value [persist|ephemeral] [from-url] \u2014 e.g. ${$t}`,pi=String.raw`((?:\s+(?:persist|ephemeral|from-url))*)`;function mi(e,t,n,r){let o=e.trim().split(/\s+/).filter(Boolean),i={persist:o.includes("persist"),ephemeral:o.includes("ephemeral"),fromUrl:o.includes("from-url")},a=new Set(o).size!==o.length?"the same word twice":i.persist&&i.ephemeral?'"persist" and "ephemeral" at once':"";if(a){let u=`pick one \u2014 persist keeps the value across reloads, ephemeral drops it \u2014 e.g. ${$t} persist`;throw _(`${t} in ${S(n,r)} carries ${a}. Use: ${u}`,{code:"WD261",file:n.file,line:$(n,r),hint:u,example:$t})}if(i.fromUrl&&t!==":state"){let u=`:state name = value from-url \u2014 a :store is shared by every page and every tab, while a query parameter belongs to one page's address, so the two cannot mean the same thing \u2014 e.g. ${Yc}`;throw _(`${t} in ${S(n,r)} cannot be from-url. Use: ${u}`,{code:"WD260",file:n.file,line:$(n,r),hint:u,example:Yc})}return i}var wh=["__proto__","constructor","prototype"];function Jc(e,t,n){if(!wh.includes(e))return;let r=`rename the key \u2014 "${e}" is inherited from Object.prototype, not owned by the state object, so writing it corrupts every other key`;throw _(`${t} name "${e}" is not allowed in ${n.file}. Use: ${r} \u2014 e.g. ${$t}`,{code:"WD250",file:n.file,hint:r,example:$t})}function Qc(e,t,n,r,o){let i=t.trim();if(typeof e!="string"||!/^[A-Za-z_$][\w$]*$/.test(i))return;let a=Z(i,r);if(!a)return;let u=`:computed name = ${i} to derive it (or quote it \u2014 "${i}" \u2014 to keep the literal text)`;throw _(`${n} seed "${i}" in ${S(r,o)} names the declared state "${a}", but a seed is stored verbatim, so this would hold the text "${i}" and never track it. Use: ${u} \u2014 e.g. ${Le}`,{code:"WD251",file:r.file,line:$(r,o),hint:u,example:Le})}var kh=/^(?:sk-|sk_live_|sk_test_|ghp_|gho_|xoxb-|xoxp-|AKIA)/,Ah=/^[A-Za-z0-9_-]{8,}$/,xh=/^eyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}$/,vh=/^[A-Za-z0-9/_+=-]{32,}$/;function Sh(e){if(e.startsWith("-----BEGIN"))return!0;let t=e.match(kh);return t&&Ah.test(e.slice(t[0].length))||xh.test(e)?!0:vh.test(e)&&/[a-z]/.test(e)&&/[A-Z]/.test(e)&&/\d/.test(e)}function fi(e){return typeof e=="string"?Sh(e):Array.isArray(e)?e.some(fi):e&&typeof e=="object"?Object.values(e).some(fi):!1}function el(e,t,n,r,o){fi(e)&&r.comp.warnings.push(`${S(r,o)}: ${n} "${t}" seed looks like a secret \u2014 it will be inlined into public HTML. Seed empty and fill it from an api/ endpoint at runtime.`)}function Vn(e,t,n){let r=e.match(new RegExp(String.raw`^:state\s+([A-Za-z_$][\w$]*)\s*=\s*(.+?)${pi}$`));if(!r)throw _(`Malformed :state in ${S(t,n)}: ${e}. ${Xc}`,{code:"WD201",file:t.file,line:$(t,n),hint:Xc.slice(5),example:$t});let o=mi(r[3],":state",t,n),i=pt(r[2],S(t,n));Qc(i,r[2],":state",t,n),el(i,r[1],":state",t,n);let a=it(r[1],i,t);Q(t,n,{kind:"state",name:a,detail:`${a} = ${r[2].trim()}`});let u=o.persist?` data-wd-persist="${w(a)}"`:"",s=o.fromUrl?` data-wd-url="${w(a)}"`:"";return`<script type="application/json" data-wd-state${u}${s}>${de({[a]:i})}<\/script>`}function it(e,t,n){if(Jc(e,":state",n),n.loopItem)throw _(`State cannot be declared inside a reactive @loop body (${n.file})`,{code:"WD202",file:n.file});if(n.comp.stores.has(e))throw _(`State "${e}" collides with a :store of the same name in ${n.file}. Use: :store name = value for the global, or rename one \u2014 e.g. ${ye}`,{code:"WD203",file:n.file,hint:`:store name = value for the global, or rename one \u2014 e.g. ${ye}`,example:ye});let r=n.sections.length?`${n.sections.at(-1)}:${e}`:e;if(n.comp.state.has(r))throw _(`State "${e}" is declared twice in the same scope (${n.file})`,{code:"WD204",file:n.file});return n.comp.state.set(r,t),n.comp.assets.runtime=!0,r}function Yn(e,t,n){let r=e.match(new RegExp(String.raw`^:store\s+([A-Za-z_$][\w$]*)\s*=\s*(.+?)${pi}$`));if(!r)throw _(`Malformed :store in ${S(t,n)}: ${e}. Use: :store name = value [persist|ephemeral] \u2014 e.g. ${ye}`,{code:"WD205",file:t.file,line:$(t,n),hint:`:store name = value [persist|ephemeral] \u2014 e.g. ${ye}`,example:ye});let o=mi(r[3],":store",t,n),i=pt(r[2],S(t,n));Qc(i,r[2],":store",t,n),el(i,r[1],":store",t,n);let a=tl(r[1],i,t);Q(t,n,{kind:"store",name:a,detail:`${a} = ${r[2].trim()}`});let u=o.ephemeral?" data-wd-store-ephemeral":"";return`<script type="application/json" data-wd-store="${w(a)}"${u}>${de(i)}<\/script>`}function tl(e,t,n){if(Jc(e,":store",n),n.comp.stores.has(e))throw _(`Store "${e}" is declared twice in ${n.file}. Use: :store name = value \u2014 e.g. ${ye}`,{code:"WD206",file:n.file,hint:`:store name = value \u2014 e.g. ${ye}`,example:ye});if(n.comp.state.has(e))throw _(`Store "${e}" collides with a :state of the same name in ${n.file}. Use: :store name = value for the global, or rename one \u2014 e.g. ${ye}`,{code:"WD207",file:n.file,hint:`:store name = value for the global, or rename one \u2014 e.g. ${ye}`,example:ye});return n.comp.stores.add(e),n.comp.state.set(e,t),n.comp.assets.runtime=!0,e}function Xn(e,t){for(let n of["_error","_error_body"])t.comp.state.has(e+n)||t.comp.state.set(e+n,null)}function Jn(e,t,n){let r=e.match(/^:computed\s+([A-Za-z_$][\w$]*)\s*=\s*(.+)$/);if(!r)throw _(`Malformed :computed in ${S(t,n)}: ${e}. Use: ${Le}`,{code:"WD208",file:t.file,line:$(t,n),hint:Le,example:Le});let o=r[2].trim(),i=o.match(/\s+(persist|ephemeral|from-url)$/);if(i&&!Z(i[1],t)){let d=`:computed values are derived, not stored, so they cannot ${{persist:"persist",ephemeral:"be ephemeral","from-url":"come from the URL"}[i[1]]}. Put the token on the state they derive from instead \u2014 e.g. :state count = 0 persist`;throw _(`Persistence token on :computed in ${S(t,n)}: ${e}. ${d}`,{code:"WD211",file:t.file,line:$(t,n),hint:d,example:Le})}let a=xc(o,t),u;try{u=Ye(a)}catch{throw _(`Malformed :computed expression in ${S(t,n)}: ${e}. Use: ${Le}`,{code:"WD209",file:t.file,line:$(t,n),hint:Le,example:Le})}let s=_t(u,void 0,t.comp),c=it(r[1],s??null,t);return Q(t,n,{kind:"computed",name:c,detail:`${c} = ${r[2].trim()}`}),`<span data-wd-computed data-wd-computed-key="${w(c)}" data-wd-computed-expr="${w(JSON.stringify(u))}"></span><script type="application/json" data-wd-state>${de({[c]:s??null})}<\/script>`}function hi(e,t,n){let r=e.match(new RegExp(String.raw`^:theme(?:\s+([A-Za-z_$][\w$]*))?(?:\s*=\s*(.+?))?${pi}$`));if(!r)throw _(`Malformed :theme in ${S(t,n)}: ${e}. Use: :theme (or :theme name = "auto") \u2014 e.g. ${di}`,{code:"WD210",file:t.file,line:$(t,n),hint:`:theme (or :theme name = "auto") \u2014 e.g. ${di}`,example:di});let o=mi(r[3],":theme",t,n),i=r[1]||"theme",a=r[2]!=null?pt(r[2],S(t,n)):"auto",u=tl(i,a,t);Q(t,n,{kind:"theme",name:u,detail:`${u} = ${JSON.stringify(a)}`});let s=o.ephemeral?" data-wd-store-ephemeral":"";return`<script type="application/json" data-wd-store="${w(u)}"${s}>${de(a)}<\/script><span data-wd-theme="${w(u)}" hidden></span>`}var nl=':fetch todos from "/api/todos.json" when=visible',Fe=`Use: :fetch name from "url" [method=\u2026] [timeout=ms] [retry=N] [when=visible] [headers=key] [body=key] [refresh=url] \u2014 e.g. ${nl}`;function Qn(e,t,n){let r=e.match(/^:fetch\s+([A-Za-z_$][\w$]*)\s+from\s+("[^"]+"|\S+)\s*(.*)$/);if(!r)throw _(`Malformed :fetch in ${S(t,n)}: ${e}. ${Fe}`,{code:"WD501",file:t.file,line:$(t,n),hint:Fe.slice(5),example:nl});let o=r[1],i=We(ee(r[2]),t),a={};for(let f of r[3].trim().split(/\s+/).filter(Boolean)){let m=f.match(/^([A-Za-z]+)=(.+)$/);if(!m)throw _(`Unknown :fetch option "${f}" in ${S(t,n)}. ${Fe}`,{code:"WD502",file:t.file,line:$(t,n)});let p=m[1];if(!["method","when","timeout","retry","headers","body","refresh"].includes(p))throw _(`Unknown :fetch option "${p}" in ${S(t,n)}. ${Fe}`,{code:"WD502",file:t.file,line:$(t,n)});a[p]=ee(m[2])}if(a.method&&!["GET","POST","PUT","PATCH","DELETE"].includes(a.method.toUpperCase()))throw _(`:fetch method "${a.method}" is not allowed in ${S(t,n)}. ${Fe}`,{code:"WD503",file:t.file,line:$(t,n)});if(a.when&&!["load","visible"].includes(a.when))throw _(`:fetch when "${a.when}" is not allowed in ${S(t,n)}. ${Fe}`,{code:"WD504",file:t.file,line:$(t,n)});for(let f of["timeout","retry"])if(a[f]!==void 0&&!/^\d+$/.test(a[f]))throw _(`:fetch ${f} must be a non-negative integer in ${S(t,n)}. ${Fe}`,{code:"WD505",file:t.file,line:$(t,n)});if(a.refresh!==void 0){if(!a.headers)throw _(`:fetch refresh= needs headers= (the state key holding the token to renew) in ${S(t,n)}. ${Fe}`,{code:"WD506",file:t.file,line:$(t,n)});a.refresh=We(a.refresh,t,":fetch refresh")}let u=[];for(let f of i.matchAll(/\{\s*([A-Za-z_$][\w$.]*)\s*\}/g)){Rt(f[1],t,Fe);let m=f[1].split(".")[0];u.includes(m)||u.push(m)}let s=it(o,null,t);t.comp.fetchKeys.add(s),Xn(s,t),Q(t,n,{kind:"fetch",name:s,detail:`${s} from "${i}"`});let c={[s]:null};for(let[f,m]of[["_error",null],["_error_body",null],["_loading",!1],["_empty",!1]]){let p=`${s}${f}`;t.comp.state.has(p)||t.comp.state.set(p,m),c[p]=m}let l=(f,m)=>m!=null&&m!==!1&&m!==""?` data-wd-fetch-${f}="${w(m)}"`:"",d=`<span data-wd-fetch data-wd-fetch-key="${w(s)}" data-wd-fetch-url="${w(i)}"`+l("method",a.method&&a.method.toUpperCase())+l("when",a.when==="visible"?"visible":"")+l("timeout",a.timeout)+l("retry",a.retry)+l("headers",a.headers&&Z(a.headers,t))+l("body",a.body&&Z(a.body,t))+l("refresh",a.refresh)+l("deps",u.join(","))+"></span>";return`<script type="application/json" data-wd-state>${de(c)}<\/script>${d}`}function We(e,t,n=":fetch"){let r=e.trim();if(r!==e||r===""||/[\u0000-\u001F\u007F]/.test(r))throw _(`Unsafe ${n} URL "${w(e)}" in ${t.file}. Use a relative path (/, ./, ../), an http(s):// URL, or a { state } interpolation.`,{code:"WD507",file:t.file});if(r.startsWith("//"))throw _(`Unsafe ${n} URL "${w(e)}" in ${t.file}. Protocol-relative URLs are not allowed; use http:// or https:// explicitly.`,{code:"WD508",file:t.file});if(r.startsWith("{"))return r;let o=r.match(/^([A-Za-z][A-Za-z0-9+.-]*):/);if(o&&!["http","https"].includes(o[1].toLowerCase()))throw _(`Unsafe ${n} URL "${w(e)}" in ${t.file}. The "${o[1]}:" scheme is not allowed; use http://, https://, or a relative path.`,{code:"WD509",file:t.file});return r}var er=":form into contact",il=":input email type=email required",rl=':textarea message placeholder="Your message" rows=4',tr=":select topic",bi=":checkbox toppings",$h=":radio size",gi=':submit "Send"',_i=':bind query placeholder="Search"',Ei=":slider volume = 50 min=0 max=100 step=1",ol=`Use: :input name [type=\u2026] [placeholder="\u2026"] [required] \u2014 e.g. ${il}`,al=e=>!!e.inForm;function ul(e,t,n,r){let o=Z(e,n);if(o)return o;let a=`declare the state first \u2014 :state ${e} = ${t===":checkbox"?"false":'"\u2026"'} \u2014 or move ${t} inside a :form, where the name is a form field instead`;throw _(`${t} ${e} in ${S(n,r)} is outside a :form and has no matching state. Use: ${a} \u2014 e.g. ${tr}`,{code:"WD450",file:n.file,line:$(n,r),hint:a,example:tr})}function nr(e,t,n,r){let o=e.slice(5).trim(),i=o.match(/action="([^"]+)"/)?.[1],a=o.match(/method="([^"]+)"/)?.[1]||"post",u=o.match(/(?:^|\s)into\s+([A-Za-z_$][\w$]*)/)?.[1],s=o.replace(/action="[^"]+"/,"").replace(/method="[^"]+"/,"").replace(/(?:^|\s)into\s+[A-Za-z_$][\w$]*/,"").trim();if(!i&&!u||s){let b=`':form into name' (client state), ':form action="/url"' (native post), or both (fetch round-trip into state) \u2014 e.g. ${er}`;throw _(`Malformed :form in ${S(n,r)}: ${e}. Use ${b}`,{code:"WD401",file:n.file,line:$(n,r),hint:b,example:er})}let c=i?We(i,n,":form action"):void 0,l=fe(n,r+1);l.inForm=!0;let d=n.compileBody(t,l).trim(),f=/<input[^>]*\btype="file"/i.test(d);if(f&&a.toLowerCase()==="get"){let b=`drop method="get" (a :form posts by default) \u2014 a GET request has no body, so the file would never be sent \u2014 e.g. ${er}`;throw _(`:form in ${S(n,r)} has a file field and method="get". Use: ${b}`,{code:"WD452",file:n.file,line:$(n,r),hint:b,example:er})}let m=f?' enctype="multipart/form-data"':"";if(!u)return`<form action="${w(c)}" method="${w(a)}"${m}>${d}</form>`;let p=it(u,null,n);Xn(p,n),Q(n,r,{kind:"form",name:p,target:p,detail:`:form action="${i}" into ${u}`});let h=c?` action="${w(c)}" method="${w(a)}"${m}`:"";return`<script type="application/json" data-wd-state>${de({[p]:null})}<\/script><form data-wd-form="${w(p)}"${h}>${d}</form>`}function rr(e,t,n){let r=e.match(/^:input\s+([A-Za-z_][\w-]*)\s*(.*)$/);if(!r)throw _(`Malformed :input in ${S(t,n)}: ${e}. ${ol}`,{code:"WD402",file:t.file,line:$(t,n),hint:ol.slice(5),example:il});let o=[`name="${w(r[1])}"`];Q(t,n,{kind:"field",name:r[1],detail:`:input ${r[1]}`});let i="text",a,u=!1,s=/([A-Za-z-]+)=("[^"]*"|\S+)|([A-Za-z-]+)/g;for(let c of(r[2]||"").matchAll(s)){if(c[3]){if(!["required","autofocus","disabled","readonly"].includes(c[3]))throw _(`Unknown :input flag "${c[3]}" in ${S(t,n)}`,{code:"WD403",file:t.file,line:$(t,n)});o.push(c[3]);continue}let l=ee(c[2]);if(c[1]==="type"){i=l;continue}if(!["placeholder","value","min","max","step","pattern","autocomplete","aria-label","aria-describedby"].includes(c[1]))throw _(`Unknown :input attribute "${c[1]}" in ${S(t,n)}`,{code:"WD404",file:t.file,line:$(t,n)});c[1]==="placeholder"&&(a=l),(c[1]==="aria-label"||c[1]==="aria-describedby")&&(u=!0),o.push(`${c[1]}="${w(l)}"`)}return u||o.push(`aria-label="${w(a||je(r[1]))}"`),`<input type="${w(i)}" ${o.join(" ")}>`}function or(e,t,n){let r=e.match(/^:bind\s+([A-Za-z_$][\w$]*)\s*(.*)$/);if(!r)throw _(`Malformed :bind in ${S(t,n)}: ${e}. Use: ${_i}`,{code:"WD405",file:t.file,line:$(t,n),hint:_i,example:_i});let o=Z(r[1],t);if(!o)throw _(`:bind ${r[1]} in ${t.file} has no matching state. Declare it first: :state ${r[1]} = ""`,{code:"WD406",file:t.file});Q(t,n,{kind:"field",name:r[1],target:o,detail:`:bind ${r[1]}`}),t.comp.assets.runtime=!0;let i="text",a,u=!1,s=[],c=/([A-Za-z-]+)=("[^"]*"|\S+)|([A-Za-z-]+)/g;for(let f of(r[2]||"").matchAll(c)){if(f[3]){if(!["required","autofocus"].includes(f[3]))throw _(`Unknown :bind flag "${f[3]}" in ${S(t,n)}`,{code:"WD407",file:t.file,line:$(t,n)});s.push(f[3]);continue}let m=ee(f[2]);if(f[1]==="type"){i=m;continue}if(!["placeholder","autocomplete","aria-label","aria-describedby"].includes(f[1]))throw _(`Unknown :bind attribute "${f[1]}" in ${S(t,n)}`,{code:"WD408",file:t.file,line:$(t,n)});f[1]==="placeholder"&&(a=m),(f[1]==="aria-label"||f[1]==="aria-describedby")&&(u=!0),s.push(`${f[1]}="${w(m)}"`)}u||s.push(`aria-label="${w(a||je(r[1]))}"`);let l=t.comp.state.get(o),d=l==null?"":` value="${w(String(l))}"`;return`<input type="${w(i)}" data-wd-bind-input="${w(o)}"${d} ${s.join(" ")}>`}function ir(e,t,n){let r=e.match(/^:slider\s+([A-Za-z_$][\w$]*)\s*(.*)$/);if(!r)throw _(`Malformed :slider in ${S(t,n)}: ${e}. Use: ${Ei}`,{code:"WD409",file:t.file,line:$(t,n),hint:Ei,example:Ei});let o=r[1],i=r[2].trim(),a;if(i.startsWith("=")){let E=i.match(/^=\s*(\S+)\s*(.*)$/);if(!E)throw _(`Malformed :slider initial value in ${S(t,n)}: ${e}. Use: :slider ${o} = 50`,{code:"WD410",file:t.file,line:$(t,n)});a=E[1],i=E[2].trim()}let u="0",s="100",c="1",l,d=!1;for(let E of i.matchAll(/([A-Za-z-]+)=("[^"]*"|\S+)|(\bpersist\b)/g)){if(E[3]){d=!0;continue}let g=ee(E[2]);if(E[1]==="min")u=g;else if(E[1]==="max")s=g;else if(E[1]==="step")c=g;else if(E[1]==="aria-label")l=g;else throw _(`Unknown :slider attribute "${E[1]}" in ${S(t,n)}`,{code:"WD411",file:t.file,line:$(t,n)})}for(let[E,g]of[["min",u],["max",s],["step",c]])if(!/^-?\d+(?:\.\d+)?$/.test(g))throw _(`:slider ${E} must be a number in ${S(t,n)}: ${g}`,{code:"WD412",file:t.file,line:$(t,n)});t.comp.assets.runtime=!0;let f,m="";if(a!==void 0){let E=pt(a,S(t,n));if(typeof E!="number")throw _(`:slider ${o} initial value must be a number in ${S(t,n)}: ${a}`,{code:"WD413",file:t.file,line:$(t,n)});f=it(o,E,t),m=`<script type="application/json" data-wd-state${d?` data-wd-persist="${w(f)}"`:""}>${de({[f]:E})}<\/script>`}else{if(d)throw _(`:slider persist only applies when declaring state inline (:slider ${o} = 0 \u2026 persist) in ${S(t,n)}`,{code:"WD414",file:t.file,line:$(t,n)});let E=Z(o,t);if(!E)throw _(`:slider ${o} in ${t.file} has no matching state. Declare it: :slider ${o} = 0 min=0 max=100`,{code:"WD415",file:t.file});f=E}let p=t.comp.state.get(f),h=p==null?"":` value="${w(String(p))}"`,b=` aria-label="${w(l||je(o))}"`;return Q(t,n,{kind:"field",name:o,target:f,detail:`:slider ${o}`}),`${m}<input type="range" data-wd-bind-input="${w(f)}" min="${w(u)}" max="${w(s)}" step="${w(c)}"${h}${b}>`}function ar(e,t,n){let r=e.match(/^:submit\s+"([^"]+)"\s*$/);if(!r)throw _(`Malformed :submit in ${S(t,n)}: ${e}. Use: :submit "Label" \u2014 e.g. ${gi}`,{code:"WD416",file:t.file,line:$(t,n),hint:`:submit "Label" \u2014 e.g. ${gi}`,example:gi});return Q(t,n,{kind:"field",name:"submit",detail:e.trim()}),`<button type="submit">${w(r[1])}</button>`}function ur(e,t,n){let r=e.match(/^:textarea\s+([A-Za-z_][\w-]*)\s*(.*)$/);if(!r){let s=`:textarea name [placeholder="\u2026"] [rows=N] [required] \u2014 e.g. ${rl}`;throw _(`Malformed :textarea in ${S(t,n)}: ${e}. Use: ${s}`,{code:"WD417",file:t.file,line:$(t,n),hint:s,example:rl})}let o=[`name="${w(r[1])}"`];Q(t,n,{kind:"field",name:r[1],detail:`:textarea ${r[1]}`});let i,a=!1,u=/([A-Za-z-]+)=("[^"]*"|\S+)|([A-Za-z-]+)/g;for(let s of(r[2]||"").matchAll(u)){if(s[3]){if(!["required","autofocus","disabled","readonly"].includes(s[3]))throw _(`Unknown :textarea flag "${s[3]}" in ${S(t,n)}`,{code:"WD418",file:t.file,line:$(t,n)});o.push(s[3]);continue}let c=ee(s[2]);if(!["placeholder","rows","cols","minlength","maxlength","autocomplete","aria-label","aria-describedby"].includes(s[1]))throw _(`Unknown :textarea attribute "${s[1]}" in ${S(t,n)}`,{code:"WD419",file:t.file,line:$(t,n)});s[1]==="placeholder"&&(i=c),(s[1]==="aria-label"||s[1]==="aria-describedby")&&(a=!0),o.push(`${s[1]}="${w(c)}"`)}return a||o.push(`aria-label="${w(i||je(r[1]))}"`),`<textarea ${o.join(" ")}></textarea>`}function sr(e,t,n,r){let o=e.match(/^:select\s+([A-Za-z_][\w-]*)\s*(.*)$/);if(!o){let f=`:select name [required] then "- Label" lines \u2014 e.g. ${tr}`;throw _(`Malformed :select in ${S(n,r)}: ${e}. Use: ${f}`,{code:"WD420",file:n.file,line:$(n,r),hint:f,example:tr})}let i=al(n)?null:ul(o[1],":select",n,r),a=i?[`data-wd-bind-input="${w(i)}"`]:[`name="${w(o[1])}"`];i&&(n.comp.assets.runtime=!0),Q(n,r,{kind:"field",name:o[1],...i?{target:i}:{},detail:`:select ${o[1]}`});let u=!1,s=/([A-Za-z-]+)=("[^"]*"|\S+)|([A-Za-z-]+)/g;for(let f of(o[2]||"").matchAll(s)){if(f[3]){if(!["required","disabled","autofocus"].includes(f[3]))throw _(`Unknown :select flag "${f[3]}" in ${S(n,r)}`,{code:"WD421",file:n.file,line:$(n,r)});a.push(f[3]);continue}let m=ee(f[2]);if(!["autocomplete","aria-label","aria-describedby"].includes(f[1]))throw _(`Unknown :select attribute "${f[1]}" in ${S(n,r)}`,{code:"WD422",file:n.file,line:$(n,r)});(f[1]==="aria-label"||f[1]==="aria-describedby")&&(u=!0),a.push(`${f[1]}="${w(m)}"`)}u||a.push(`aria-label="${w(je(o[1]))}"`);let c=t.map(f=>f.replace(/^\s*-\s+/,"").trim()).filter(Boolean);if(!c.length)throw _(`:select "${o[1]}" in ${S(n,r)} has no options. Add "- Label" lines beneath it.`,{code:"WD423",file:n.file,line:$(n,r)});let l=i?String(n.comp.state.get(i)??""):null,d=c.map(f=>`<option value="${w(f)}"${f===l?" selected":""}>${w(f)}</option>`).join("");return`<select ${a.join(" ")}>${d}</select>`}function Gt(e,t,n,r,o){let i=`:${r}`,a=e.match(r==="checkbox"?/^:checkbox\s+([A-Za-z_][\w-]*)\s*(.*)$/:/^:radio\s+([A-Za-z_][\w-]*)\s*(.*)$/);if(!a){let A=r==="checkbox"?bi:$h,v=`${i} name [required] then "- Label" lines \u2014 e.g. ${A}`;throw _(`Malformed ${i} in ${S(n,o)}: ${e}. Use: ${v}`,{code:"WD424",file:n.file,line:$(n,o),hint:v,example:A})}let u=a[1],s=al(n)?null:ul(u,i,n,o);s&&(n.comp.assets.runtime=!0),Q(n,o,{kind:"field",name:u,...s?{target:s}:{},detail:`:${r} ${u}`});let c=[],l=null,d=null,f=/([A-Za-z-]+)=("[^"]*"|\S+)|([A-Za-z-]+)/g;for(let A of(a[2]||"").matchAll(f)){if(A[3]){if(!["required","disabled","autofocus"].includes(A[3]))throw _(`Unknown ${i} flag "${A[3]}" in ${S(n,o)}`,{code:"WD425",file:n.file,line:$(n,o)});c.push(A[3]);continue}let v=ee(A[2]);if(A[1]==="aria-label")l=v;else if(A[1]==="aria-describedby")d=v;else throw _(`Unknown ${i} attribute "${A[1]}" in ${S(n,o)}`,{code:"WD426",file:n.file,line:$(n,o)})}let m=t.map(A=>A.replace(/^\s*-\s+/,"").trim()).filter(Boolean);if(!m.length)throw _(`${i} "${u}" in ${S(n,o)} has no options. Add "- Label" lines beneath it.`,{code:"WD427",file:n.file,line:$(n,o)});let p=r==="checkbox";if(s&&p&&m.length>1){let A=`a bound :checkbox is a single true/false, so give it one "- Label" line. For a list of choices, use a :radio group (one value) or drive an array with :button "\u2026" -> ${u} toggle "Label"`;throw _(`:checkbox ${u} in ${S(n,o)} is bound to state and has ${m.length} options. Use: ${A} \u2014 e.g. ${bi}`,{code:"WD451",file:n.file,line:$(n,o),hint:A,example:bi})}let h=[`class="wd-${p?"checkboxes":"radios"}"`,`role="${p?"group":"radiogroup"}"`];p&&!s&&h.push(`data-wd-multi="${w(u)}"`),h.push(`aria-label="${w(l||je(u))}"`),d&&h.push(`aria-describedby="${w(d)}"`);let b=c.includes("disabled"),E=c.includes("required"),g=c.includes("autofocus"),y=s?n.comp.state.get(s):void 0,x=m.map((A,v)=>{let N=[`type="${r}"`,`name="${w(s||u)}"`,`value="${w(A)}"`];return s&&N.push(`data-wd-bind-input="${w(s)}"`),s&&(p?y:String(y??"")===A)&&N.push("checked"),b&&N.push("disabled"),E&&!p&&N.push("required"),g&&v===0&&N.push("autofocus"),`<label><input ${N.join(" ")}> ${w(A)}</label>`}).join("");return`<div ${h.join(" ")}>${x}</div>`}var Ch=":video /demo.mp4 controls",Dh=":audio /theme.mp3 controls",sl=':embed https://youtu.be/dQw4w9WgXcQ title="Demo"',Nh={video:{flags:["controls","autoplay","loop","muted","playsinline"],attrs:["poster","width","height","preload"]},audio:{flags:["controls","autoplay","loop","muted"],attrs:["preload"]}};function Zt(e,t,n,r){let o=e.match(new RegExp(`^:${t}\\s+(\\S+)\\s*(.*)$`));if(!o){let d=t==="video"?Ch:Dh,f=`:${t} /clip [controls] [autoplay] [loop] [muted] \u2014 e.g. ${d}`;throw _(`Malformed :${t} in ${S(n,r)}: ${e}. Use: ${f}`,{code:"WD701",file:n.file,line:$(n,r),hint:f,example:d})}let i=We(ee(o[1]),n,`:${t}`),a=Nh[t],u=new Set,s=new Map,c=/([A-Za-z-]+)=("[^"]*"|\S+)|([A-Za-z-]+)/g;for(let d of(o[2]||"").matchAll(c))if(d[3]){if(!a.flags.includes(d[3]))throw _(`Unknown :${t} flag "${d[3]}" in ${S(n,r)}`,{code:"WD702",file:n.file,line:$(n,r)});u.add(d[3])}else{if(!a.attrs.includes(d[1]))throw _(`Unknown :${t} attribute "${d[1]}" in ${S(n,r)}`,{code:"WD703",file:n.file,line:$(n,r)});s.set(d[1],ee(d[2]))}u.has("autoplay")&&u.add("muted"),(t==="audio"||!u.has("autoplay"))&&u.add("controls");let l=[`src="${w(i)}"`];s.has("poster")&&l.push(`poster="${w(We(s.get("poster"),n,`:${t} poster`))}"`);for(let d of["width","height"])s.has(d)&&l.push(`${d}="${w(s.get(d))}"`);l.push(`preload="${w(s.get("preload")||"metadata")}"`);for(let d of a.flags)u.has(d)&&l.push(d);return`<${t} ${l.join(" ")}></${t}>`}var Th=["title","height","aspect","allow"],cl=["payment","autoplay","encrypted-media","fullscreen","picture-in-picture","clipboard-write","camera","microphone","geolocation"],Oh="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";function cr(e,t,n){let r=e.match(/^:embed\s+(\S+)\s*(.*)$/);if(!r){let m=`:embed https://youtu.be/ID [title="\u2026"] \u2014 e.g. ${sl}`;throw _(`Malformed :embed in ${S(t,n)}: ${e}. Use: ${m}`,{code:"WD704",file:t.file,line:$(t,n),hint:m,example:sl})}let o=ee(r[1]),i=new Map,a=/([A-Za-z-]+)=("[^"]*"|\S+)/g;for(let m of(r[2]||"").matchAll(a)){if(!Th.includes(m[1]))throw _(`Unknown :embed attribute "${m[1]}" in ${S(t,n)}`,{code:"WD705",file:t.file,line:$(t,n)});i.set(m[1],ee(m[2]))}let u=Rh(i,t,n),s=Mh(i,t,n),{url:c,label:l}=Lh(o,t);Ih(t,c);let d=i.get("title")||"",f=`<iframe src="${w(c)}" title="${w(d||l)}" loading="lazy" referrerpolicy="strict-origin-when-cross-origin" allow="${w(s)}" allowfullscreen style="width:100%;height:100%;border:0"></iframe>`;return`<div class="wd-embed" style="${u}">${f}</div>`}function Rh(e,t,n){let r=e.get("height");if(r!==void 0){if(!/^\d+(?:\.\d+)?(?:px|rem|em|vh|vw|%)$/.test(r))throw _(`Invalid :embed height "${r}" in ${S(t,n)}. Use: a CSS length like height=400px or height=24rem.`,{code:"WD707",file:t.file,line:$(t,n)});return`height:${r}`}let o=e.get("aspect");if(o!==void 0){if(!/^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(o))throw _(`Invalid :embed aspect "${o}" in ${S(t,n)}. Use: a width:height ratio like aspect=4:3.`,{code:"WD707",file:t.file,line:$(t,n)});return`aspect-ratio:${o.replace(":","/")}`}return"aspect-ratio:16/9"}function Mh(e,t,n){let r=e.get("allow");if(r===void 0)return Oh;let o=r.trim().split(/\s+/).filter(Boolean);for(let i of o)if(!cl.includes(i))throw _(`Unknown :embed allow token "${i}" in ${S(t,n)}. Use: ${cl.join(", ")}.`,{code:"WD706",file:t.file,line:$(t,n)});return o.join("; ")}function Ih(e,t){if(!t.startsWith("{")){if(!/^https?:\/\//i.test(t)){e.comp.assets.embedHosts.add("'self'");return}try{e.comp.assets.embedHosts.add(new URL(t).origin)}catch{}}}function Lh(e,t){let n=e.match(/(?:youtube\.com\/(?:watch\?v=|embed\/|shorts\/)|youtu\.be\/)([\w-]{6,})/);if(n)return{url:`https://www.youtube-nocookie.com/embed/${n[1]}`,label:"YouTube video"};let r=e.match(/vimeo\.com\/(?:video\/)?(\d+)/);return r?{url:`https://player.vimeo.com/video/${r[1]}`,label:"Vimeo video"}:{url:We(e,t,":embed"),label:"Embedded content"}}var ll={"@include":(e,t,n)=>Ht(e,t,n),"@loop":(e,t,n)=>Vo(e,[],null,t,n),":state":(e,t,n)=>Vn(e,t,n),":store":(e,t,n)=>Yn(e,t,n),":fetch":(e,t,n)=>Qn(e,t,n),":computed":(e,t,n)=>Jn(e,t,n),":effect":(e,t,n)=>Kn(e,t,n),":every":(e,t,n)=>jn(e,t,n),":video":(e,t,n)=>Zt(e,"video",t,n),":audio":(e,t,n)=>Zt(e,"audio",t,n),":embed":(e,t,n)=>cr(e,t,n),":form":(e,t,n)=>nr(e,[],t,n),":input":(e,t,n)=>rr(e,t,n),":textarea":(e,t,n)=>ur(e,t,n),":select":(e,t,n)=>sr(e,[],t,n),":checkbox":(e,t,n)=>Gt(e,[],t,"checkbox",n),":radio":(e,t,n)=>Gt(e,[],t,"radio",n),":bind":(e,t,n)=>or(e,t,n),":slider":(e,t,n)=>ir(e,t,n),":submit":(e,t,n)=>ar(e,t,n),":button":(e,t,n)=>Zn(e,t,n),":if":(e,t,n)=>Gn(e,[],[],t,n)};function ki(e,t){let n=[],r=[],o=0,i=null,a=null,u=c=>{let l=n.length-1,d=l>=0?Jo(n[l],c):null;d===null?n.push(c):n[l]=d},s=()=>{if(!r.length)return;let c=r.join(`
50
50
  `),l=o;r=[],c.trim()&&u(lc(c,t,l))};for(let c=0;c<e.length;c++){let l=e[c];r.length||(o=c);let d=l.match(/^(```+|~~~+)/);if(i){r.push(l),d&&d[1][0]===i[0]&&d[1].length>=i.length&&(i=null);continue}if(d){i=d[1],r.push(l);continue}let f=a!==null;if(a)dl.test(l)&&(a=null);else{let g=l.match(Bh);g&&!dl.test(l)&&(a=g[1].toLowerCase())}if(!f&&hn.test(l)){let g=Hu(t);if(g!==null){s(),g&&u(g);continue}}let m=l.match(/^([@:][a-z]+)\s*$/);if(m&&Object.hasOwn(ll,m[1])&&(s(),ll[m[1]](l,t,c)),/^@include\s/.test(l)){s();let g=Wc(e,c);if(g){let y=t.comp.symbols.length;u(Ht(l,t,c,g.body)),ln(t,y,g.end),c=g.end}else u(Ht(l,t,c));continue}if(/^@loop\s/.test(l)){s();let g=wi(e,c,/^@loop\s/,"@endloop",t),y=Ph(g.body),x=t.comp.symbols.length;u(Vo(l,y.body,y.empty,t,c,y.emptyStart)),ln(t,x,g.end),c=g.end;continue}let p=l.match(/^:::\s*(.*)$/);if(p){if(s(),!p[1].trim())throw _(`Stray ::: close with no open container in ${t.file}`,{code:"WD007",file:t.file});let g=zh(e,c,t);u(ni(p[1].trim(),g.body,t,c)),c=g.end;continue}if(/^:state\s/.test(l)){s();let g=yi(e,c);u(Vn(g.line,t,c)),c=g.end;continue}if(/^:store\s/.test(l)){s();let g=yi(e,c);u(Yn(g.line,t,c)),c=g.end;continue}if(/^:fetch\s/.test(l)){s(),u(Qn(l,t,c));continue}if(/^:computed\s/.test(l)){s(),u(Jn(l,t,c));continue}if(/^:effect\s/.test(l)){s(),u(Kn(l,t,c));continue}if(/^:every\s/.test(l)){s(),u(jn(l,t,c));continue}if(/^:theme(?:\s|$)/.test(l)){s();let g=yi(e,c);u(hi(g.line,t,c)),c=g.end;continue}let h=l.match(/^:(video|audio)\s/);if(h){s(),u(Zt(l,h[1],t,c));continue}if(/^:embed\s/.test(l)){s(),u(cr(l,t,c));continue}if(/^:form\s/.test(l)){s();let g=wi(e,c,/^:form\s/,":endform",t);u(nr(l,g.body,t,c)),c=g.end;continue}if(/^:carousel(?:\s|$)/.test(l)){s();let g=wi(e,c,/^:carousel(?:\s|$)/,":endcarousel",t);u(ri(l,g.body,t,c)),c=g.end;continue}if(/^:input\s/.test(l)){s(),u(rr(l,t,c));continue}if(/^:textarea\s/.test(l)){s(),u(ur(l,t,c));continue}if(/^:select\s/.test(l)){s();let g=[],y=c+1;for(;y<e.length&&/^\s*-\s+/.test(e[y]);)g.push(e[y]),y++;u(sr(l,g,t,c)),c=y-1;continue}let b=l.match(/^:(checkbox|radio)\s/);if(b){s();let g=[],y=c+1;for(;y<e.length&&/^\s*-\s+/.test(e[y]);)g.push(e[y]),y++;u(Gt(l,g,t,b[1],c)),c=y-1;continue}if(/^:bind\s/.test(l)){s(),u(or(l,t,c));continue}if(/^:slider\s/.test(l)){s(),u(ir(l,t,c));continue}if(/^:submit\s/.test(l)){s(),u(ar(l,t,c));continue}if(/^:button\s/.test(l)){s(),u(Zn(l,t,c));continue}if(/^:if\s/.test(l)){s();let g=qh(e,c,t),y=t.comp.symbols.length;u(Gn(l,g.truthy,g.falsy,t,c,g.falsyStart)),ln(t,y,g.end),c=g.end;continue}let E=oi(l,t);if(E){s(),u(E);continue}if(/^@repeat\b/.test(l))throw _(`@repeat was replaced by @loop in ${t.file}. Use: @loop /data.json into item ... @endloop`,{code:"WD008",file:t.file,hint:"@loop /data.json into item ... @endloop"});if(/^:for\b/.test(l))throw _(`:for was replaced by @loop in ${t.file}. Use: @loop items into item ... @endloop`,{code:"WD009",file:t.file,hint:"@loop items into item ... @endloop"});if(/^@endinclude(?:\s|$)/.test(l)&&Hc(l,t,c),/^(@endloop|@empty|:endif|:endfor|:endform|:endcarousel|:else)\s*$/.test(l))throw _(`Stray "${l.trim()}" with no matching opener in ${t.file}`,{code:"WD010",file:t.file});f||Uh(l,t),r.push(l)}return s(),n.join(`
51
- `)}var Fh=/^(?:(?:@(?:include|loop|empty|endloop)|:(?:state|store|fetch|computed|effect|every|theme|video|audio|embed|form|endform|input|textarea|select|checkbox|radio|bind|slider|submit|button|carousel|endcarousel|if|endif|else))(?:\s|$)|:try\s)/,Bh=/<(style|script)(?=[\s>])/i,dl=/<\/(?:style|script)\s*>/i;function Uh(e,t){let n=e.match(/^([@:][A-Za-z][A-Za-z-]*)(?:\s|$)/);n&&!Fh.test(e)&&t.comp.warnings.push(`${t.file}: "${n[1]}" looks like a directive but matches none \u2014 it will render as literal text. Check the spelling (e.g. @loop, @include, :state, :if).`)}function fl(e){let t=0,n=!1,r=!1;for(let o of e){if(n){r?r=!1:o==="\\"?r=!0:o==='"'&&(n=!1);continue}o==='"'?n=!0:o==="["||o==="{"?t++:(o==="]"||o==="}")&&t--}return t}function yi(e,t){let n=e[t],r=n.indexOf("=");if(r===-1)return{line:n,end:t};let o=n.slice(r+1);if(!/^\s*[[{]/.test(o))return{line:n,end:t};let i=fl(o);if(i<=0)return{line:n,end:t};let a=[n],u=t;for(;i>0&&u+1<e.length&&e[u+1].trim()!=="";)u++,a.push(e[u]),i+=fl(e[u]);return{line:a.join(" "),end:u}}function wi(e,t,n,r,o){let i=[],a=0,u=null;for(let s=t+1;s<e.length;s++){let c=e[s],l=c.match(/^(```+|~~~+)/);if(u){l&&l[1][0]===u[0]&&l[1].length>=u.length&&(u=null),i.push(c);continue}if(l){u=l[1],i.push(c);continue}if(n.test(c)&&a++,c.trim()===r){if(a===0)return{body:i,end:s};a--}i.push(c)}throw _(`Missing ${r} for "${e[t]}" in ${S(o,t)}`,{code:"WD011",file:o.file,line:$(o,t)})}function Ph(e){let t=[],n=null,r=0,o=t,i=0,a=null;for(let u=0;u<e.length;u++){let s=e[u],c=s.match(/^(```+|~~~+)/);if(a){c&&c[1][0]===a[0]&&c[1].length>=a.length&&(a=null),o.push(s);continue}if(c){a=c[1],o.push(s);continue}if(/^@loop\s/.test(s)&&i++,s.trim()==="@endloop"&&i--,i===0&&s.trim()==="@empty"){n=[],r=u+1,o=n;continue}o.push(s)}return{body:t,empty:n,emptyStart:r}}function zh(e,t,n){let r=[],o=0,i=null;for(let a=t+1;a<e.length;a++){let u=e[a],s=u.match(/^(```+|~~~+)/);if(i){s&&s[1][0]===i[0]&&s[1].length>=i.length&&(i=null),r.push(u);continue}if(s){i=s[1],r.push(u);continue}let c=u.match(/^:::\s*(.*)$/);if(c)if(c[1].trim())o++;else{if(o===0)return{body:r,end:a};o--}r.push(u)}throw _(`Missing closing ::: for "${e[t]}" in ${S(n,t)}`,{code:"WD012",file:n.file,line:$(n,t)})}function qh(e,t,n){let r=[],o=[],i=t+1,a=r,u="truthy",s=0,c=null;for(let l=t+1;l<e.length;l++){let d=e[l],f=d.match(/^(```+|~~~+)/);if(c){f&&f[1][0]===c[0]&&f[1].length>=c.length&&(c=null),a.push(d);continue}if(f){c=f[1],a.push(d);continue}if(/^:if\s/.test(d)&&s++,d.trim()===":endif"){if(s===0)return u==="elseif"&&o.push(":endif"),{truthy:r,falsy:o,end:l,falsyStart:i};s--}if(s===0&&u!=="elseif"){let m=d.trim(),p=m.match(/^:else if\s+(.+?)\s*$/);if(p){if(u==="else")throw _(`":else if" after ":else" in ${n.file}. ":else" must be the last branch \u2014 order the "else if" conditions before the bare ":else".`,{code:"WD013",file:n.file});o.push(`:if ${p[1]}`),i=l,a=o,u="elseif";continue}if(m===":else"){if(u==="else")throw _(`Duplicate ":else" in ${n.file}. A conditional may have only one bare ":else".`,{code:"WD014",file:n.file});i=l+1,a=o,u="else";continue}}a.push(d)}throw _(`Missing :endif for "${e[t]}" in ${S(n,t)}`,{code:"WD015",file:n.file,line:$(n,t)})}function pl(e,t="/"){let n=e instanceof Map?e:new Map(Object.entries(e)),r=o=>M.relative(t,M.resolve(o)).split(M.sep).join("/");return{readText:o=>{let i=r(o),a=n.get(i);if(a===void 0)throw new Error(`ENOENT: no in-memory file "${i}" (from ${o})`);return ft(a)},readBinary:()=>{throw new Error("memoryReader: binary reads are unsupported")},exists:o=>n.has(r(o)),realpath:o=>M.resolve(o)}}var ml=["Article","BlogPosting","TechArticle","WebSite","Organization"],hl=new Set(["Article","BlogPosting","TechArticle"]),Wh="schema: BlogPosting";function bl(e){let t=e.schema;return Array.isArray(t)?t.map(n=>String(n).trim()).filter(Boolean):typeof t=="string"&&t.trim()?[t.trim()]:[]}function gl(e){return bl(e).some(t=>hl.has(t))}function Ct(e,t){let n=e[t];return typeof n=="string"?n.trim():""}function he(e,t,n){n&&(e[t]=n)}function Hh(e){let t=e.author;if(Array.isArray(t)){let r=t.map(o=>String(o).trim()).filter(Boolean).map(o=>({"@type":"Person",name:o}));return r.length>0?r:void 0}let n=Ct(e,"author");return n?{"@type":"Person",name:n}:void 0}function Gh(e,t){let n={"@context":"https://schema.org","@type":e,headline:t.title};he(n,"description",t.description),he(n,"image",t.image),he(n,"datePublished",Ct(t.meta,"date")),he(n,"dateModified",Ct(t.meta,"updated")||Ct(t.meta,"date"));let r=Hh(t.meta);return r&&(n.author=r),he(n,"inLanguage",t.lang),he(n,"url",t.canonical),he(n,"mainEntityOfPage",t.canonical),n}function Zh(e){let t={"@context":"https://schema.org","@type":"WebSite",name:e.title};return he(t,"description",e.description),he(t,"inLanguage",e.lang),he(t,"url",e.canonical),t}function Kh(e){let t={"@context":"https://schema.org","@type":"Organization",name:Ct(e.meta,"organization")||e.title};return he(t,"description",e.description),he(t,"logo",Ct(e.meta,"logo")),he(t,"url",e.canonical),t}function jh(e){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,n)=>({"@type":"ListItem",position:n+1,name:t.name,item:t.url}))}}function _l(e){let t=[];for(let r of bl(e.meta)){if(!ml.includes(r)){let o=`schema: <type>, one of ${ml.join(", ")}`;throw _(`Unknown schema type "${r}" in ${e.file}. Use: ${o} (for example, "${Wh}").`,{code:"WD016",file:e.file,hint:o})}t.push(Vh(r,e))}if(e.breadcrumbs.length>0&&t.push(jh(e.breadcrumbs)),t.length===0)return"";let n=t.length===1?t[0]:t;return`<script type="application/ld+json">${de(n)}<\/script>`}function Vh(e,t){return hl.has(e)?Gh(e,t):e==="WebSite"?Zh(t):Kh(t)}var Yh="<style>.wd-skip-link{position:absolute;top:0;left:0;z-index:100;padding:.55rem 1.1rem;background:#18221d;color:#f7f3ea;font:600 .9rem/1.2 system-ui,sans-serif;text-decoration:none;border-radius:0 0 8px 0;transform:translateY(-150%)}.wd-skip-link:focus{transform:none}</style>";function Xh(e,t,n={}){let r=n.reader,o=ab(e,t,[],n.vars,n.collections,r,n.imageVariants??null),i=String(o.meta.title||"Darkmown"),a=String(o.meta.description||""),u=typeof o.meta.lang=="string"&&o.meta.lang.trim()?o.meta.lang.trim():"en",s=typeof o.meta.image=="string"?o.meta.image:"",c=Jh(n.site),d=typeof o.meta.date=="string"&&o.meta.date.trim()!==""||gl(o.meta)?"article":"website",f=[];tb(o.meta)&&f.push('<meta name="robots" content="noindex,nofollow">'),a&&f.push(`<meta name="description" content="${k(a)}">`),c&&f.push(`<link rel="canonical" href="${k(c)}">`),(a||s||c)&&(f.push(`<meta property="og:title" content="${k(i)}">`),a&&f.push(`<meta property="og:description" content="${k(a)}">`),f.push(`<meta property="og:type" content="${d}">`),c&&f.push(`<meta property="og:url" content="${k(c)}">`)),s&&(f.push(`<meta property="og:image" content="${k(s)}">`),f.push(`<meta name="twitter:image" content="${k(s)}">`)),(a||s||c)&&f.push(`<meta name="twitter:card" content="${s?"summary_large_image":"summary"}">`);let m=_l({meta:o.meta,file:e,title:i,description:a,image:s,lang:u,canonical:c,breadcrumbs:n.site&&n.site.breadcrumbs||[]});m&&f.push(m);let p=f.length?`
51
+ `)}var Fh=/^(?:(?:@(?:include|loop|empty|endloop)|:(?:state|store|fetch|computed|effect|every|theme|video|audio|embed|form|endform|input|textarea|select|checkbox|radio|bind|slider|submit|button|carousel|endcarousel|if|endif|else))(?:\s|$)|:try\s)/,Bh=/<(style|script)(?=[\s>])/i,dl=/<\/(?:style|script)\s*>/i;function Uh(e,t){let n=e.match(/^([@:][A-Za-z][A-Za-z-]*)(?:\s|$)/);n&&!Fh.test(e)&&t.comp.warnings.push(`${t.file}: "${n[1]}" looks like a directive but matches none \u2014 it will render as literal text. Check the spelling (e.g. @loop, @include, :state, :if).`)}function fl(e){let t=0,n=!1,r=!1;for(let o of e){if(n){r?r=!1:o==="\\"?r=!0:o==='"'&&(n=!1);continue}o==='"'?n=!0:o==="["||o==="{"?t++:(o==="]"||o==="}")&&t--}return t}function yi(e,t){let n=e[t],r=n.indexOf("=");if(r===-1)return{line:n,end:t};let o=n.slice(r+1);if(!/^\s*[[{]/.test(o))return{line:n,end:t};let i=fl(o);if(i<=0)return{line:n,end:t};let a=[n],u=t;for(;i>0&&u+1<e.length&&e[u+1].trim()!=="";)u++,a.push(e[u]),i+=fl(e[u]);return{line:a.join(" "),end:u}}function wi(e,t,n,r,o){let i=[],a=0,u=null;for(let s=t+1;s<e.length;s++){let c=e[s],l=c.match(/^(```+|~~~+)/);if(u){l&&l[1][0]===u[0]&&l[1].length>=u.length&&(u=null),i.push(c);continue}if(l){u=l[1],i.push(c);continue}if(n.test(c)&&a++,c.trim()===r){if(a===0)return{body:i,end:s};a--}i.push(c)}throw _(`Missing ${r} for "${e[t]}" in ${S(o,t)}`,{code:"WD011",file:o.file,line:$(o,t)})}function Ph(e){let t=[],n=null,r=0,o=t,i=0,a=null;for(let u=0;u<e.length;u++){let s=e[u],c=s.match(/^(```+|~~~+)/);if(a){c&&c[1][0]===a[0]&&c[1].length>=a.length&&(a=null),o.push(s);continue}if(c){a=c[1],o.push(s);continue}if(/^@loop\s/.test(s)&&i++,s.trim()==="@endloop"&&i--,i===0&&s.trim()==="@empty"){n=[],r=u+1,o=n;continue}o.push(s)}return{body:t,empty:n,emptyStart:r}}function zh(e,t,n){let r=[],o=0,i=null;for(let a=t+1;a<e.length;a++){let u=e[a],s=u.match(/^(```+|~~~+)/);if(i){s&&s[1][0]===i[0]&&s[1].length>=i.length&&(i=null),r.push(u);continue}if(s){i=s[1],r.push(u);continue}let c=u.match(/^:::\s*(.*)$/);if(c)if(c[1].trim())o++;else{if(o===0)return{body:r,end:a};o--}r.push(u)}throw _(`Missing closing ::: for "${e[t]}" in ${S(n,t)}`,{code:"WD012",file:n.file,line:$(n,t)})}function qh(e,t,n){let r=[],o=[],i=t+1,a=r,u="truthy",s=0,c=null;for(let l=t+1;l<e.length;l++){let d=e[l],f=d.match(/^(```+|~~~+)/);if(c){f&&f[1][0]===c[0]&&f[1].length>=c.length&&(c=null),a.push(d);continue}if(f){c=f[1],a.push(d);continue}if(/^:if\s/.test(d)&&s++,d.trim()===":endif"){if(s===0)return u==="elseif"&&o.push(":endif"),{truthy:r,falsy:o,end:l,falsyStart:i};s--}if(s===0&&u!=="elseif"){let m=d.trim(),p=m.match(/^:else if\s+(.+?)\s*$/);if(p){if(u==="else")throw _(`":else if" after ":else" in ${n.file}. ":else" must be the last branch \u2014 order the "else if" conditions before the bare ":else".`,{code:"WD013",file:n.file});o.push(`:if ${p[1]}`),i=l,a=o,u="elseif";continue}if(m===":else"){if(u==="else")throw _(`Duplicate ":else" in ${n.file}. A conditional may have only one bare ":else".`,{code:"WD014",file:n.file});i=l+1,a=o,u="else";continue}}a.push(d)}throw _(`Missing :endif for "${e[t]}" in ${S(n,t)}`,{code:"WD015",file:n.file,line:$(n,t)})}function pl(e,t="/"){let n=e instanceof Map?e:new Map(Object.entries(e)),r=o=>M.relative(t,M.resolve(o)).split(M.sep).join("/");return{readText:o=>{let i=r(o),a=n.get(i);if(a===void 0)throw new Error(`ENOENT: no in-memory file "${i}" (from ${o})`);return ft(a)},readBinary:()=>{throw new Error("memoryReader: binary reads are unsupported")},exists:o=>n.has(r(o)),realpath:o=>M.resolve(o)}}var ml=["Article","BlogPosting","TechArticle","WebSite","Organization"],hl=new Set(["Article","BlogPosting","TechArticle"]),Wh="schema: BlogPosting";function bl(e){let t=e.schema;return Array.isArray(t)?t.map(n=>String(n).trim()).filter(Boolean):typeof t=="string"&&t.trim()?[t.trim()]:[]}function gl(e){return bl(e).some(t=>hl.has(t))}function Ct(e,t){let n=e[t];return typeof n=="string"?n.trim():""}function he(e,t,n){n&&(e[t]=n)}function Hh(e){let t=e.author;if(Array.isArray(t)){let r=t.map(o=>String(o).trim()).filter(Boolean).map(o=>({"@type":"Person",name:o}));return r.length>0?r:void 0}let n=Ct(e,"author");return n?{"@type":"Person",name:n}:void 0}function Gh(e,t){let n={"@context":"https://schema.org","@type":e,headline:t.title};he(n,"description",t.description),he(n,"image",t.image),he(n,"datePublished",Ct(t.meta,"date")),he(n,"dateModified",Ct(t.meta,"updated")||Ct(t.meta,"date"));let r=Hh(t.meta);return r&&(n.author=r),he(n,"inLanguage",t.lang),he(n,"url",t.canonical),he(n,"mainEntityOfPage",t.canonical),n}function Zh(e){let t={"@context":"https://schema.org","@type":"WebSite",name:e.title};return he(t,"description",e.description),he(t,"inLanguage",e.lang),he(t,"url",e.canonical),t}function Kh(e){let t={"@context":"https://schema.org","@type":"Organization",name:Ct(e.meta,"organization")||e.title};return he(t,"description",e.description),he(t,"logo",Ct(e.meta,"logo")),he(t,"url",e.canonical),t}function jh(e){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,n)=>({"@type":"ListItem",position:n+1,name:t.name,item:t.url}))}}function _l(e){let t=[];for(let r of bl(e.meta)){if(!ml.includes(r)){let o=`schema: <type>, one of ${ml.join(", ")}`;throw _(`Unknown schema type "${r}" in ${e.file}. Use: ${o} (for example, "${Wh}").`,{code:"WD016",file:e.file,hint:o})}t.push(Vh(r,e))}if(e.breadcrumbs.length>0&&t.push(jh(e.breadcrumbs)),t.length===0)return"";let n=t.length===1?t[0]:t;return`<script type="application/ld+json">${de(n)}<\/script>`}function Vh(e,t){return hl.has(e)?Gh(e,t):e==="WebSite"?Zh(t):Kh(t)}var Yh="<style>.wd-skip-link{position:absolute;top:0;left:0;z-index:100;padding:.55rem 1.1rem;background:#18221d;color:#f7f3ea;font:600 .9rem/1.2 system-ui,sans-serif;text-decoration:none;border-radius:0 0 8px 0;transform:translateY(-150%)}.wd-skip-link:focus{transform:none}</style>";function Xh(e,t,n={}){let r=n.reader,o=ab(e,t,[],n.vars,n.collections,r,n.imageVariants??null),i=String(o.meta.title||"Darkmown"),a=String(o.meta.description||""),u=typeof o.meta.lang=="string"&&o.meta.lang.trim()?o.meta.lang.trim():"en",s=typeof o.meta.image=="string"?o.meta.image:"",c=Jh(n.site),d=typeof o.meta.date=="string"&&o.meta.date.trim()!==""||gl(o.meta)?"article":"website",f=[];tb(o.meta)&&f.push('<meta name="robots" content="noindex,nofollow">'),a&&f.push(`<meta name="description" content="${w(a)}">`),c&&f.push(`<link rel="canonical" href="${w(c)}">`),(a||s||c)&&(f.push(`<meta property="og:title" content="${w(i)}">`),a&&f.push(`<meta property="og:description" content="${w(a)}">`),f.push(`<meta property="og:type" content="${d}">`),c&&f.push(`<meta property="og:url" content="${w(c)}">`)),s&&(f.push(`<meta property="og:image" content="${w(s)}">`),f.push(`<meta name="twitter:image" content="${w(s)}">`)),(a||s||c)&&f.push(`<meta name="twitter:card" content="${s?"summary_large_image":"summary"}">`);let m=_l({meta:o.meta,file:e,title:i,description:a,image:s,lang:u,canonical:c,breadcrumbs:n.site&&n.site.breadcrumbs||[]});m&&f.push(m);let p=f.length?`
52
52
  ${f.join(`
53
- `)}`:"",h=eb(o.meta,t,r),E=[...o.assets.hasCode?["/__wd/highlight.css"]:[],...o.assets.skins].map(w=>`<link rel="stylesheet" href="${w}">`).join(`
53
+ `)}`:"",h=eb(o.meta,t,r),E=[...o.assets.hasCode?["/__wd/highlight.css"]:[],...o.assets.skins].map(C=>`<link rel="stylesheet" href="${C}">`).join(`
54
54
  `),g=n.feed?`
55
- <link rel="alternate" type="application/rss+xml" title="${k(n.feed.title)}" href="${k(n.feed.href)}">`:"",y=[...o.assets.behaviors].map(w=>`/__wd/behaviors/${w}.js`),A=[...o.assets.runtime?["/__wd/runtime.js"]:[],...y,...o.assets.scripts].map(w=>`<script type="module" src="${w}"><\/script>`).join(`
56
- `),v=o.meta.transitions===!0||o.meta.transitions==="true",D=v?`
55
+ <link rel="alternate" type="application/rss+xml" title="${w(n.feed.title)}" href="${w(n.feed.href)}">`:"",y=n.mdSource?`
56
+ <link rel="alternate" type="text/markdown" href="${w(n.mdSource.href)}" title="Markdown source">`:"",x=[...o.assets.behaviors].map(C=>`/__wd/behaviors/${C}.js`),v=[...o.assets.runtime?["/__wd/runtime.js"]:[],...x,...o.assets.scripts].map(C=>`<script type="module" src="${C}"><\/script>`).join(`
57
+ `),N=o.meta.transitions===!0||o.meta.transitions==="true",R=N?`
57
58
  <style>
58
59
  @view-transition { navigation: auto; }
59
- ::view-transition-old(root) { animation: wd-nav-out 200ms cubic-bezier(0.4, 0, 1, 1) both; }
60
- ::view-transition-new(root) { animation: wd-nav-in 200ms cubic-bezier(0, 0, 0.2, 1) both; }
61
- @keyframes wd-nav-out { to { opacity: 0; transform: translateY(-1rem); } }
62
- @keyframes wd-nav-in { from { opacity: 0; transform: translateY(1rem); } }
60
+ ::view-transition-old(root) { animation: wd-nav-out 160ms cubic-bezier(0.4, 0, 0.2, 1) both; }
61
+ ::view-transition-new(root) { animation: wd-nav-in 160ms cubic-bezier(0.4, 0, 0.2, 1) both; }
62
+ @keyframes wd-nav-out { to { opacity: 0; } }
63
+ @keyframes wd-nav-in { from { opacity: 0; } }
63
64
  @media (prefers-reduced-motion: reduce) {
64
65
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 1ms; }
65
- @keyframes wd-nav-out { to { opacity: 0; } }
66
- @keyframes wd-nav-in { from { opacity: 0; } }
67
66
  }
68
- </style>`:"",R=v?`
69
- <script type="speculationrules">{"prerender":[{"where":{"and":[{"href_matches":"/*"},{"not":{"selector_matches":".no-prefetch"}},{"not":{"selector_matches":"[rel~=nofollow]"}}]},"eagerness":"moderate"}]}<\/script>`:"",L=fn(e,t,r),V=L&&L.scoped?null:Mr(o.meta,e,t,r).map(w=>It(w,t.cwd,r)).find(w=>w.scoped),Y=L&&L.scoped?L.scopeId:V?.scopeId,ne=Y?pn(o.html,Y):o.html,re=rb(ne,t,r),{content:Z,target:q}=nb(re);return{meta:o.meta,deps:o.deps,collectionsUsed:o.collectionsUsed,symbols:o.symbols,html:`<!doctype html>
70
- <html lang="${k(u)}">
67
+ </style>`:"",B=N?`
68
+ <script type="speculationrules">{"prerender":[{"where":{"and":[{"href_matches":"/*"},{"not":{"selector_matches":".no-prefetch"}},{"not":{"selector_matches":"[rel~=nofollow]"}}]},"eagerness":"moderate"}]}<\/script>`:"",H=fn(e,t,r),J=H&&H.scoped?null:Mr(o.meta,e,t,r).map(C=>It(C,t.cwd,r)).find(C=>C.scoped),ne=H&&H.scoped?H.scopeId:J?.scopeId,re=ne?pn(o.html,ne):o.html,K=rb(re,t,r),{content:q,target:k}=nb(K);return{meta:o.meta,deps:o.deps,collectionsUsed:o.collectionsUsed,symbols:o.symbols,html:`<!doctype html>
69
+ <html lang="${w(u)}">
71
70
  <head>
72
71
  <meta charset="utf-8">
73
72
  <meta name="viewport" content="width=device-width, initial-scale=1">
74
- <title>${k(i)}</title>${p}
75
- <link rel="icon" href="${h.href}"${h.type?` type="${h.type}"`:""}>${g}
73
+ <title>${w(i)}</title>${p}
74
+ <link rel="icon" href="${h.href}"${h.type?` type="${h.type}"`:""}>${g}${y}
76
75
  ${Yh}
77
- ${E}${D}${R}
76
+ ${E}${R}${B}
78
77
  </head>
79
78
  <body>
80
- <a class="wd-skip-link" href="#${k(q)}">Skip to content</a>
81
- ${Z}
82
- ${A}
79
+ <a class="wd-skip-link" href="#${w(k)}">Skip to content</a>
80
+ ${q}
81
+ ${v}
83
82
  </body>
84
- </html>`,assets:o.assets,warnings:o.warnings,pagination:o.pagination}}function Jh(e){return!e||!e.url||!e.route?"":`${e.url.replace(/\/$/,"")}${e.route}`}var Qh="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3E%3Crect%20width='32'%20height='32'%20rx='6'%20fill='%2318221d'/%3E%3Ctext%20x='16'%20y='23'%20text-anchor='middle'%20font-family='Georgia,serif'%20font-size='19'%20font-weight='bold'%20fill='%23f7f3ea'%3ED%3C/text%3E%3C/svg%3E";function eb(e,t,n){let r=typeof e.icon=="string"?e.icon.trim():"";if(r)return{href:k(r),type:El(r)};for(let o of["icon.svg","icon.png","favicon.ico"])if(t.routesRoot&&n.exists(M.join(t.routesRoot,o)))return{href:`/${o}`,type:El(o)};return{href:Qh,type:""}}function El(e){let t=M.extname(e.split(/[?#]/)[0]).toLowerCase();return t===".svg"?"image/svg+xml":t===".png"?"image/png":t===".ico"?"image/x-icon":""}function tb(e){return e.noindex===!0||e.noindex==="true"}function nb(e){let t=e.match(/<main\b[^>]*>/i);if(!t)return{content:`<main id="main">
83
+ </html>`,assets:o.assets,warnings:o.warnings,pagination:o.pagination}}function Jh(e){return!e||!e.url||!e.route?"":`${e.url.replace(/\/$/,"")}${e.route}`}var Qh="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3E%3Crect%20width='32'%20height='32'%20rx='6'%20fill='%2318221d'/%3E%3Ctext%20x='16'%20y='23'%20text-anchor='middle'%20font-family='Georgia,serif'%20font-size='19'%20font-weight='bold'%20fill='%23f7f3ea'%3ED%3C/text%3E%3C/svg%3E";function eb(e,t,n){let r=typeof e.icon=="string"?e.icon.trim():"";if(r)return{href:w(r),type:El(r)};for(let o of["icon.svg","icon.png","favicon.ico"])if(t.routesRoot&&n.exists(M.join(t.routesRoot,o)))return{href:`/${o}`,type:El(o)};return{href:Qh,type:""}}function El(e){let t=M.extname(e.split(/[?#]/)[0]).toLowerCase();return t===".svg"?"image/svg+xml":t===".png"?"image/png":t===".ico"?"image/x-icon":""}function tb(e){return e.noindex===!0||e.noindex==="true"}function nb(e){let t=e.match(/<main\b[^>]*>/i);if(!t)return{content:`<main id="main">
85
84
  ${e}
86
85
  </main>`,target:"main"};let n=t[0].match(/[\s"']id\s*=\s*["']([^"']*)["']/i);return n?{content:e,target:n[1]||"main"}:{content:e.replace(t[0],`${t[0].slice(0,-1)} id="main">`),target:"main"}}function rb(e,t,n){let r=0;return e.replace(/<img\b[^>]*?\/?>/g,o=>{let i=r++,a=s=>new RegExp(`\\b${s}\\s*=`,"i").test(o),u=[];if(!a("width")&&!a("height")&&!/\bdata-wd-(?:each-)?attr\s*=/.test(o)){let s=ib(ob(o),t,n);s&&u.push(`width="${s.width}"`,`height="${s.height}"`)}return a("decoding")||u.push('decoding="async"'),i===0?a("fetchpriority")||u.push('fetchpriority="high"'):a("loading")||u.push('loading="lazy"'),u.length?`${o.replace(/\s*\/?>\s*$/,"")} ${u.join(" ")}>`:o})}function ob(e){let t=e.match(/\bsrc\s*=\s*["']([^"']*)["']/i);return t?t[1]:""}function ib(e,t,n){if(!e||/^(https?:)?\/\//i.test(e)||e.startsWith("data:"))return null;let r;if(e.startsWith("/__wd/media/"))r=M.join(t.shelfRoot,e.slice(12));else if(e.startsWith("/"))r=M.join(t.routesRoot,e.slice(1));else return null;if(!Ve(r,t,n))return null;try{return Fn(n.readBinary(r))}catch{}return null}function ab(e,t,n=[],r={},o=new Map,i,a=null){let u=Fu(i);u.collections=o,u.imageVariants=a;let s=yl(e,t,n,Te(null,r),u,[],null,0,null),c=[];for(let l of Mr(s.meta,e,t,u.reader))c.push(ub(u,l,t));return u.assets.skins=cb(u.assets.skins,c,sb(u,e)),{meta:s.meta,html:s.html,assets:u.assets,warnings:u.warnings,pagination:u.pagination,deps:u.deps,collectionsUsed:u.collectionsUsed,symbols:u.symbols}}function yl(e,t,n,r,o,i,a,u=0,s=null){let c=o.reader.realpath(e);if(n.includes(c))throw _(`Include cycle detected: ${[...n,c].map(b=>M.basename(b)).join(" -> ")}`,{code:"WD612",file:e});let l=o.reader.readText(e),{meta:d,body:f,bodyLine:m}=bn(l,e);if(Zu(l,e,o),o.deps.add(e),Wu(e,t,o.assets,o.reader),M.extname(e)===".md"){Gu(f,e,o);let b=Go(d).render(f,{headingSlugs:o.headingSlugs});return Tr(b)&&(o.assets.hasCode=!0),{meta:d,html:b}}let p={file:e,bodyLine:m,context:t,stack:[...n,c],scope:Te(r,{meta:d}),comp:o,sections:i,loopItem:a,reactiveDepth:u,...s?{loopOpener:s}:{},md:Go(d),compileBody:ki,compileFile:yl},h=ki(lb(f).replace(/\r\n?/g,`
87
86
  `).split(`
88
87
  `),p);return Tr(h)&&(o.assets.hasCode=!0),{meta:d,html:h}}function ub(e,t,n){let o=`/__wd/styles/${M.relative(n.cwd,t).replaceAll(M.sep,"/").slice(0,-5).replace(/[/.]/g,"_")}.css`;return e.assets.files.set(t,o),e.assets.skins.add(o),e.deps.add(t),It(t,n.cwd,e.reader).scoped&&e.assets.scopedSkins.add(t),o}function sb(e,t){let n=t.slice(0,-M.extname(t).length);return e.assets.files.get(`${n}.skin`)??null}function cb(e,t,n){let r=t.filter(a=>a!==n),o=new Set(r),i=[...e].filter(a=>!o.has(a)&&a!==n);return new Set([...i,...r,...n?[n]:[]])}function lb(e,t=new Date){let n=i=>String(i).padStart(2,"0"),r={year:String(t.getFullYear()).padStart(4,"0"),date:`${String(t.getFullYear()).padStart(4,"0")}-${n(t.getMonth()+1)}-${n(t.getDate())}`,datetime:t.toISOString()},o=null;return e.split(`
89
88
  `).map(i=>{let a=i.match(/^(```+|~~~+)/);return o?(a&&a[1][0]===o[0]&&a[1].length>=o.length&&(o=null),i):a?(o=a[1],i):db(i,r)}).join(`
90
- `)}function db(e,t){let n=i=>i.replace(/\{\s*\$build\.(year|date|datetime)\s*\}/g,(a,u)=>t[u]),r="",o=0;for(;o<e.length;){let i=e.indexOf("`",o);if(i===-1)return r+n(e.slice(o));r+=n(e.slice(o,i));let a=i;for(;e[a]==="`";)a++;let u=e.slice(i,a),s=-1;for(let c=a;;){let l=e.indexOf("`",c);if(l===-1)break;let d=l;for(;e[d]==="`";)d++;if(d-l===u.length){s=l;break}c=d}if(s===-1){r+=u,o=a;continue}r+=e.slice(i,s+u.length),o=s+u.length}return r}function wl(e,t,n={}){let r=n.cwd??"/",o=pl(e,r),i=vi(r),a=M.resolve(r,t);return Xh(a,i,{feed:n.feed,site:n.site,collections:n.collections,vars:n.vars,reader:o})}var kl={store:{label:"Store + cart",ext:"wd",source:`---
89
+ `)}function db(e,t){let n=i=>i.replace(/\{\s*\$build\.(year|date|datetime)\s*\}/g,(a,u)=>t[u]),r="",o=0;for(;o<e.length;){let i=e.indexOf("`",o);if(i===-1)return r+n(e.slice(o));r+=n(e.slice(o,i));let a=i;for(;e[a]==="`";)a++;let u=e.slice(i,a),s=-1;for(let c=a;;){let l=e.indexOf("`",c);if(l===-1)break;let d=l;for(;e[d]==="`";)d++;if(d-l===u.length){s=l;break}c=d}if(s===-1){r+=u,o=a;continue}r+=e.slice(i,s+u.length),o=s+u.length}return r}function wl(e,t,n={}){let r=n.cwd??"/",o=pl(e,r),i=vi(r),a=M.resolve(r,t);return Xh(a,i,{feed:n.feed,mdSource:n.mdSource,site:n.site,collections:n.collections,vars:n.vars,reader:o})}var kl={store:{label:"Store + cart",ext:"wd",source:`---
91
90
  title: Sticker shop
92
91
  html: true
93
92
  ---