yanki 0.8.2 → 0.8.4
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,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Nf=Object.defineProperty;var a=(t,e)=>Nf(t,"name",{value:e,configurable:!0});import Af from"rehype-mathjax";import Ef from"rehype-parse";import"node:path";import{webcrypto as yo}from"node:crypto";const ti={32:16777619n,64:1099511628211n,128:309485009821345068724781371n,256:374144419156711147060143317175368453031918731002211n,512:35835915874844867368919076489095108449946327955754392558399825615420669938882575126094039892345713852759n,1024:5016456510113118655434598811035278955030765345404790744303017523831112055108147451509157692220295382716162651878526895249385292291816524375083746691371804094271873160484737966720260389217684476157468082573n},bo={32:2166136261n,64:14695981039346656037n,128:144066263297769815596495629667062367629n,256:100029257958052580907070968620625704837092796014241193945225284501741471925557n,512:9659303129496669498009435400716310466090418745672637896108374329434462657994582932197716438449813051892206539805784495328239340083876191928701583869517785n,1024:14197795064947621068722070641403218320880622795441933960878474914617582723252296732303717722150864096521202355549365628174669108571814760471015076148029755969804077320157692458563003215304957150157403644460363550505412711285966361610267868082893823963790439336411086884584107735010676915n},wo=new globalThis.TextEncoder;function Tf(t,e){const n=ti[e];let r=bo[e];for(let i=0;i<t.length;i++)r^=BigInt(t[i]),r=BigInt.asUintN(e,r*n);return r}a(Tf,"fnv1aUint8Array");function If(t,e,n){if(n.length===0)throw new Error("The `utf8Buffer` option must have a length greater than zero");const r=ti[e];let i=bo[e],s=t;for(;s.length>0;){const o=wo.encodeInto(s,n);s=s.slice(o.read);for(let l=0;l<o.written;l++)i^=BigInt(n[l]),i=BigInt.asUintN(e,i*r)}return i}a(If,"fnv1aEncodeInto");function Lf(t,{size:e=32,utf8Buffer:n}={}){if(!ti[e])throw new Error("The `size` option must be one of 32, 64, 128, 256, 512, or 1024");if(typeof t=="string"){if(n)return If(t,e,n);t=wo.encode(t)}return Tf(t,e)}a(Lf,"fnv1a");function Wn(t,e){return Lf(t,{size:64}).toString(16).padStart(e,"0")}a(Wn,"getHash");function ni(t){return t.charAt(0).toUpperCase()+t.slice(1)}a(ni,"capitalize");function ri(t,e,n="...",r=" "){if(t.length<=e)return t;const i=e-n.length,s=t.split(r);for(;s.length>1&&s.join(r).length>i;)s.pop();return`${s.join(r).slice(0,i)}${n}`}a(ri,"truncateOnWordBoundary");function Of(t){const e=new URL(t);return{host:`${e.protocol}//${e.hostname}`,port:Number.parseInt(e.port,10)}}a(Of,"urlToHostAndPort");function Pf(t,e){return`${t}:${e}`}a(Pf,"hostAndPortToUrl");function Df(t){return t.toLowerCase().replaceAll(/[^\da-z]/gi," ").trim().replaceAll(/ +/g,"-")}a(Df,"cleanClassName");function Dt(t){if(t!==void 0)return t.trim()===""?void 0:t}a(Dt,"emptyIsUndefined");function Rf(t,...e){return t.reduce((r,i,s)=>`${r}${i}${String(e[s]??"")}`,"").replaceAll(/\s+/g," ")}a(Rf,"css");function V(t,e,n){const r={type:String(t)};return n==null&&(typeof e=="string"||Array.isArray(e))?n=e:Object.assign(r,e),Array.isArray(n)?r.children=n:n!=null&&(r.value=String(n)),r}a(V,"u$1");const Ff=Rf`
|
|
2
2
|
.card {
|
|
3
3
|
font-family: arial;
|
|
4
4
|
font-size: 20px;
|
|
@@ -6,12 +6,12 @@ var Cf=Object.defineProperty;var a=(t,e)=>Cf(t,"name",{value:e,configurable:!0})
|
|
|
6
6
|
color: black;
|
|
7
7
|
background-color: white;
|
|
8
8
|
}
|
|
9
|
-
`,Rt="yanki",ii=!0,wo=60,Ff="Yanki",Kn="(Empty)",Mf=V("root",[V("element",{properties:{},tagName:"p"},[V("element",{properties:{},tagName:"em"},[V("text",Kn)])])]),$f="content",Bf="metadata",qf="metadata",zf=!0,ko=120,Yn="Untitled",si=["avif","gif","ico","jpeg","jpg","png","svg","tif","tiff","webp"],oi=["3gp","aac","avi","flac","flv","m4a","mkv","mov","mp3","mp4","mpeg","mpg","oga","ogg","ogv","ogx","opus","spx","swf","wav","webm"],ai=typeof window>"u"?typeof process>"u"?"other":"node":"browser";ai==="browser"?/windows/i.test(navigator.userAgent)||/mac/i.test(navigator.userAgent):ai==="node"&&(process.platform==="win32"||process.platform);function Ge(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}a(Ge,"assertPath$2");function So(t,e){for(var n="",r=0,i=-1,s=0,o,l=0;l<=t.length;++l){if(l<t.length)o=t.charCodeAt(l);else{if(o===47)break;o=47}if(o===47){if(!(i===l-1||s===1))if(i!==l-1&&s===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){u===-1?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=l,s=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=l,s=0;continue}}e&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+t.slice(i+1,l):n=t.slice(i+1,l),r=l-i-1;i=l,s=0}else o===46&&s!==-1?++s:s=-1}return n}a(So,"normalizeStringPosix");function Uf(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+t+r:r}a(Uf,"_format");var W={process_cwd:"",setCWD:a(function(e){W.process_cwd=e},"setCWD"),resolve:a(function(){for(var e="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var s;i>=0?s=arguments[i]:(r===void 0&&(r=W.process_cwd),s=r),Ge(s),s.length!==0&&s+"/"!==e&&(e=s+"/"+e,n=s.charCodeAt(0)===47)}return e=So(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},"resolve"),normalize:a(function(e){if(Ge(e),e.length===0)return".";var n=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=So(e,!n),e.length===0&&!n&&(e="."),e.length>0&&r&&(e+="/"),n?"/"+e:e},"normalize"),isAbsolute:a(function(e){return Ge(e),e.length>0&&e.charCodeAt(0)===47},"isAbsolute"),join:a(function(){if(arguments.length===0)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];Ge(r),r.length>0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":W.normalize(e)},"join"),relative:a(function(e,n){if(Ge(e),Ge(n),e===n||(e=W.resolve(e),n=W.resolve(n),e===n))return"";for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var i=e.length,s=i-r,o=1;o<n.length&&n.charCodeAt(o)===47;++o);for(var l=n.length,u=l-o,c=s<u?s:u,h=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(n.charCodeAt(o+f)===47)return n.slice(o+f+1);if(f===0)return n.slice(o+f)}else s>c&&(e.charCodeAt(r+f)===47?h=f:f===0&&(h=0));break}var p=e.charCodeAt(r+f),d=n.charCodeAt(o+f);if(p!==d)break;p===47&&(h=f)}var m="";for(f=r+h+1;f<=i;++f)(f===i||e.charCodeAt(f)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+n.slice(o+h):(o+=h,n.charCodeAt(o)===47&&++o,n.slice(o))},"relative"),_makeLong:a(function(e){return e},"_makeLong"),dirname:a(function(e){if(Ge(e),e.length===0)return".";for(var n=e.charCodeAt(0),r=n===47,i=-1,s=!0,o=e.length-1;o>=1;--o)if(n=e.charCodeAt(o),n===47){if(!s){i=o;break}}else s=!1;return i===-1?r?"/":".":r&&i===1?"//":e.slice(0,i)},"dirname"),basename:a(function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ge(e);var r=0,i=-1,s=!0,o;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var l=n.length-1,u=-1;for(o=e.length-1;o>=0;--o){var c=e.charCodeAt(o);if(c===47){if(!s){r=o+1;break}}else u===-1&&(s=!1,u=o+1),l>=0&&(c===n.charCodeAt(l)?--l===-1&&(i=o):(l=-1,i=u))}return r===i?i=u:i===-1&&(i=e.length),e.slice(r,i)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!s){r=o+1;break}}else i===-1&&(s=!1,i=o+1);return i===-1?"":e.slice(r,i)}},"basename"),extname:a(function(e){Ge(e);for(var n=-1,r=0,i=-1,s=!0,o=0,l=e.length-1;l>=0;--l){var u=e.charCodeAt(l);if(u===47){if(!s){r=l+1;break}continue}i===-1&&(s=!1,i=l+1),u===46?n===-1?n=l:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?"":e.slice(n,i)},"extname"),format:a(function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return Uf("/",e)},"format"),parse:a(function(e){Ge(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;var r=e.charCodeAt(0),i=r===47,s;i?(n.root="/",s=1):s=0;for(var o=-1,l=0,u=-1,c=!0,h=e.length-1,f=0;h>=s;--h){if(r=e.charCodeAt(h),r===47){if(!c){l=h+1;break}continue}u===-1&&(c=!1,u=h+1),r===46?o===-1?o=h:f!==1&&(f=1):o!==-1&&(f=-1)}return o===-1||u===-1||f===0||f===1&&o===u-1&&o===l+1?u!==-1&&(l===0&&i?n.base=n.name=e.slice(1,u):n.base=n.name=e.slice(l,u)):(l===0&&i?(n.name=e.slice(1,o),n.base=e.slice(1,u)):(n.name=e.slice(l,o),n.base=e.slice(l,u)),n.ext=e.slice(o,u)),l>0?n.dir=e.slice(0,l-1):i&&(n.dir="/"),n},"parse"),sep:"/",delimiter:":",win32:null,posix:null};W.posix=W;var jf=Object.defineProperty,xo=a((t,e)=>jf(t,"name",{value:e,configurable:!0}),"a");const Jn=typeof window>"u"?typeof process>"u"?"other":"node":"browser",vo=Jn==="browser"?/windows/i.test(navigator.userAgent)?"windows":/mac/i.test(navigator.userAgent)?"mac":"other":Jn==="node"?process.platform==="win32"?"windows":process.platform==="darwin"?"mac":"other":"other";let li=0;const Gf=5e3;let _o=0;const Hf=100;async function ui(){if(vo==="mac"&&Jn==="node"){const{openApp:t}=await import("./index-UHZxbkBe.js");if(_o>=Hf){console.warn("Too many Anki App launch attempts this session, ignoring");return}(li===0||Date.now()-li>Gf)&&(console.warn("Attempting to launch Anki app"),li=Date.now(),_o++,await t("/Applications/Anki.app",{background:!0,newInstance:!1,wait:!1}))}else console.warn("Automatic Anki App launch is only supported on Mac OS in Node.js environment")}a(ui,"h"),xo(ui,"launchAnkiApp");const it={autoLaunch:!1,fetchAdapter:fetch.bind(globalThis),host:"http://127.0.0.1",key:void 0,port:8765,version:6};class pn{static{a(this,"f")}static{xo(this,"YankiConnect")}autoLaunch;fetchAdapter;host;key;port;version;card={answerCards:this.build("answerCards"),areDue:this.build("areDue"),areSuspended:this.build("areSuspended"),cardsInfo:this.build("cardsInfo"),cardsModTime:this.build("cardsModTime"),cardsToNotes:this.build("cardsToNotes"),findCards:this.build("findCards"),forgetCards:this.build("forgetCards"),getEaseFactors:this.build("getEaseFactors"),getIntervals:this.build("getIntervals"),relearnCards:this.build("relearnCards"),setEaseFactors:this.build("setEaseFactors"),setSpecificValueOfCard:this.build("setSpecificValueOfCard"),suspend:this.build("suspend"),suspended:this.build("suspended"),unsuspend:this.build("unsuspend")};deck={changeDeck:this.build("changeDeck"),cloneDeckConfigId:this.build("cloneDeckConfigId"),createDeck:this.build("createDeck"),deckNames:this.build("deckNames"),deckNamesAndIds:this.build("deckNamesAndIds"),deleteDecks:this.build("deleteDecks"),getDeckConfig:this.build("getDeckConfig"),getDeckStats:this.build("getDeckStats"),getDecks:this.build("getDecks"),removeDeckConfigId:this.build("removeDeckConfigId"),saveDeckConfig:this.build("saveDeckConfig"),setDeckConfigId:this.build("setDeckConfigId")};graphical={guiAddCards:this.build("guiAddCards"),guiAnswerCard:this.build("guiAnswerCard"),guiBrowse:this.build("guiBrowse"),guiCheckDatabase:this.build("guiCheckDatabase"),guiCurrentCard:this.build("guiCurrentCard"),guiDeckBrowser:this.build("guiDeckBrowser"),guiDeckOverview:this.build("guiDeckOverview"),guiDeckReview:this.build("guiDeckReview"),guiEditNote:this.build("guiEditNote"),guiExitAnki:this.build("guiExitAnki"),guiImportFile:this.build("guiImportFile"),guiSelectNote:this.build("guiSelectNote"),guiSelectedNotes:this.build("guiSelectedNotes"),guiShowAnswer:this.build("guiShowAnswer"),guiShowQuestion:this.build("guiShowQuestion"),guiStartCardTimer:this.build("guiStartCardTimer"),guiUndo:this.build("guiUndo")};media={deleteMediaFile:this.build("deleteMediaFile"),getMediaDirPath:this.build("getMediaDirPath"),getMediaFilesNames:this.build("getMediaFilesNames"),retrieveMediaFile:this.build("retrieveMediaFile"),storeMediaFile:this.build("storeMediaFile")};miscellaneous={apiReflect:this.build("apiReflect"),exportPackage:this.build("exportPackage"),getProfiles:this.build("getProfiles"),importPackage:this.build("importPackage"),loadProfile:this.build("loadProfile"),multi:this.build("multi"),reloadCollection:this.build("reloadCollection"),requestPermission:this.build("requestPermission"),sync:this.build("sync"),version:this.build("version")};model={createModel:this.build("createModel"),findAndReplaceInModels:this.build("findAndReplaceInModels"),findModelsById:this.build("findModelsById"),findModelsByName:this.build("findModelsByName"),modelFieldAdd:this.build("modelFieldAdd"),modelFieldDescriptions:this.build("modelFieldDescriptions"),modelFieldFonts:this.build("modelFieldFonts"),modelFieldNames:this.build("modelFieldNames"),modelFieldRemove:this.build("modelFieldRemove"),modelFieldRename:this.build("modelFieldRename"),modelFieldReposition:this.build("modelFieldReposition"),modelFieldSetDescription:this.build("modelFieldSetDescription"),modelFieldSetFont:this.build("modelFieldSetFont"),modelFieldSetFontSize:this.build("modelFieldSetFontSize"),modelFieldsOnTemplates:this.build("modelFieldsOnTemplates"),modelNames:this.build("modelNames"),modelNamesAndIds:this.build("modelNamesAndIds"),modelStyling:this.build("modelStyling"),modelTemplateAdd:this.build("modelTemplateAdd"),modelTemplateRemove:this.build("modelTemplateRemove"),modelTemplateRename:this.build("modelTemplateRename"),modelTemplateReposition:this.build("modelTemplateReposition"),modelTemplates:this.build("modelTemplates"),updateModelStyling:this.build("updateModelStyling"),updateModelTemplates:this.build("updateModelTemplates")};note={addNote:this.build("addNote"),addNotes:this.build("addNotes"),addTags:this.build("addTags"),canAddNotes:this.build("canAddNotes"),canAddNotesWithErrorDetail:this.build("canAddNotesWithErrorDetail"),clearUnusedTags:this.build("clearUnusedTags"),deleteNotes:this.build("deleteNotes"),findNotes:this.build("findNotes"),getNoteTags:this.build("getNoteTags"),getTags:this.build("getTags"),notesInfo:this.build("notesInfo"),removeEmptyNotes:this.build("removeEmptyNotes"),removeTags:this.build("removeTags"),replaceTags:this.build("replaceTags"),replaceTagsInAllNotes:this.build("replaceTagsInAllNotes"),updateNote:this.build("updateNote"),updateNoteFields:this.build("updateNoteFields"),updateNoteModel:this.build("updateNoteModel"),updateNoteTags:this.build("updateNoteTags")};statistic={cardReviews:this.build("cardReviews"),getCollectionStatsHTML:this.build("getCollectionStatsHTML"),getLatestReviewID:this.build("getLatestReviewID"),getNumCardsReviewedByDay:this.build("getNumCardsReviewedByDay"),getNumCardsReviewedToday:this.build("getNumCardsReviewedToday"),getReviewsOfCards:this.build("getReviewsOfCards"),insertReviews:this.build("insertReviews")};constructor(e){if(this.host=e?.host??it.host,this.port=e?.port??it.port,this.version=e?.version??it.version,this.key=e?.key??it.key,this.autoLaunch=e?.autoLaunch??it.autoLaunch,it.fetchAdapter===void 0)throw new Error("A fetch implementation is required");if(this.fetchAdapter=e?.fetchAdapter??it.fetchAdapter,(vo!=="mac"||Jn!=="node")&&this.autoLaunch!==!1&&(console.warn("The autoLaunch option is only supported in a Node environment on macOS"),this.autoLaunch=!1),this.version!==6)throw new Error("YankiConnect currently only supports Anki-Connect API version 6");this.autoLaunch==="immediately"&&ui()}build(e){return async n=>{const r=await this.invoke(e,n);if(r.error!==null)throw new Error(String(r.error));return r.result}}async invoke(e,n){let r,i;try{if(r=await this.fetchAdapter(`${this.host}:${this.port}`,{body:JSON.stringify({action:e,...this.key===void 0?{}:{key:this.key},params:n,version:this.version}),headers:{"Access-Control-Allow-Origin":"*","Content-Type":"application/json"},method:"POST",mode:"cors"}),r===void 0)throw new Error("Anki-Connect response is undefined");if(r.status!==200)throw new Error(`Anki-Connect response status is ${r.status}`);if(i=await r.json(),this.autoLaunch!==!1&&i.error==="collection is not available")throw new Error(i.error)}catch(s){if(this.autoLaunch!==!1)return console.warn("Can't connect to Anki app, retrying with auto-launch..."),await ui(),await new Promise(o=>{setTimeout(o,500)}),n===void 0?this.invoke(e):this.invoke(e,n);throw s}if(!("error"in i))throw new Error("response is missing required error field");if(!("result"in i))throw new Error("response is missing required result field");return i}}const ge={ankiConnectOptions:it,ankiWeb:!1,basePath:void 0,cwd:W.process_cwd,dryRun:!1,fetchAdapter:void 0,fileAdapter:void 0,manageFilenames:"off",maxFilenameLength:60,namespace:"Yanki",obsidianVault:void 0,syncMediaAssets:"local"};async function Ft(){if(ai==="node"){const t=await import("node:fs/promises");if(t===void 0)throw new Error("Issue loading file functions in Node environment");return{async readFile(e){return t.readFile(e,"utf8")},async readFileBuffer(e){return t.readFile(e)},async rename(e,n){await t.rename(e,n)},async stat(e){return t.stat(e)},async writeFile(e,n){await t.writeFile(e,n,"utf8")}}}throw new Error('The "readFile", "readFileBuffer", "rename" , "stat", and "writeFile" function implementations must be provided to the function when running in the browser')}a(Ft,"getDefaultFileAdapter");function dn(){return fetch.bind(globalThis)}a(dn,"getDefaultFetchAdapter");const Vf=a(t=>{const e=new DataView(t);let n="";for(let r=0;r<e.byteLength;r+=4)n+=e.getUint32(r).toString(16).padStart(8,"0");return n},"bufferToHex"),Wf=a(t=>async(e,{outputFormat:n="hex"}={})=>{typeof e=="string"&&(e=new globalThis.TextEncoder().encode(e));const r=await globalThis.crypto.subtle.digest(t,e);return n==="hex"?Vf(r):r},"create$3"),Kf=Wf("SHA-256");async function Co(t,e,n=$f){switch(n){case"content":{const r=await e.readFileBuffer(t);return(await Kf(r)).slice(0,16)}case"metadata":{const{mtimeMs:r,size:i}=await e.stat(t),s=`${r??""}${i??""}`;return s===""?Co(t,e,"name"):Wn(s,16)}case"name":return Wn(t,16)}}a(Co,"getFileContentHash");function No(t,e){const{basePath:n,cwd:r,obsidianMode:i=!0}=e,s=!(i&&n!==void 0&&!t.startsWith(".")),o=W.join(n??"",s?r??"":"",t);return W.normalize(o)}a(No,"resolveWithBasePath");function mn(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}a(mn,"escapeStringRegexp");const Yf=[["\xDF","ss"],["\u1E9E","Ss"],["\xE4","ae"],["\xC4","Ae"],["\xF6","oe"],["\xD6","Oe"],["\xFC","ue"],["\xDC","Ue"],["\xC0","A"],["\xC1","A"],["\xC2","A"],["\xC3","A"],["\xC4","Ae"],["\xC5","A"],["\xC6","AE"],["\xC7","C"],["\xC8","E"],["\xC9","E"],["\xCA","E"],["\xCB","E"],["\xCC","I"],["\xCD","I"],["\xCE","I"],["\xCF","I"],["\xD0","D"],["\xD1","N"],["\xD2","O"],["\xD3","O"],["\xD4","O"],["\xD5","O"],["\xD6","Oe"],["\u0150","O"],["\xD8","O"],["\xD9","U"],["\xDA","U"],["\xDB","U"],["\xDC","Ue"],["\u0170","U"],["\xDD","Y"],["\xDE","TH"],["\xDF","ss"],["\xE0","a"],["\xE1","a"],["\xE2","a"],["\xE3","a"],["\xE4","ae"],["\xE5","a"],["\xE6","ae"],["\xE7","c"],["\xE8","e"],["\xE9","e"],["\xEA","e"],["\xEB","e"],["\xEC","i"],["\xED","i"],["\xEE","i"],["\xEF","i"],["\xF0","d"],["\xF1","n"],["\xF2","o"],["\xF3","o"],["\xF4","o"],["\xF5","o"],["\xF6","oe"],["\u0151","o"],["\xF8","o"],["\xF9","u"],["\xFA","u"],["\xFB","u"],["\xFC","ue"],["\u0171","u"],["\xFD","y"],["\xFE","th"],["\xFF","y"],["\u1E9E","SS"],["\xE0","a"],["\xC0","A"],["\xE1","a"],["\xC1","A"],["\xE2","a"],["\xC2","A"],["\xE3","a"],["\xC3","A"],["\xE8","e"],["\xC8","E"],["\xE9","e"],["\xC9","E"],["\xEA","e"],["\xCA","E"],["\xEC","i"],["\xCC","I"],["\xED","i"],["\xCD","I"],["\xF2","o"],["\xD2","O"],["\xF3","o"],["\xD3","O"],["\xF4","o"],["\xD4","O"],["\xF5","o"],["\xD5","O"],["\xF9","u"],["\xD9","U"],["\xFA","u"],["\xDA","U"],["\xFD","y"],["\xDD","Y"],["\u0103","a"],["\u0102","A"],["\u0110","D"],["\u0111","d"],["\u0129","i"],["\u0128","I"],["\u0169","u"],["\u0168","U"],["\u01A1","o"],["\u01A0","O"],["\u01B0","u"],["\u01AF","U"],["\u1EA1","a"],["\u1EA0","A"],["\u1EA3","a"],["\u1EA2","A"],["\u1EA5","a"],["\u1EA4","A"],["\u1EA7","a"],["\u1EA6","A"],["\u1EA9","a"],["\u1EA8","A"],["\u1EAB","a"],["\u1EAA","A"],["\u1EAD","a"],["\u1EAC","A"],["\u1EAF","a"],["\u1EAE","A"],["\u1EB1","a"],["\u1EB0","A"],["\u1EB3","a"],["\u1EB2","A"],["\u1EB5","a"],["\u1EB4","A"],["\u1EB7","a"],["\u1EB6","A"],["\u1EB9","e"],["\u1EB8","E"],["\u1EBB","e"],["\u1EBA","E"],["\u1EBD","e"],["\u1EBC","E"],["\u1EBF","e"],["\u1EBE","E"],["\u1EC1","e"],["\u1EC0","E"],["\u1EC3","e"],["\u1EC2","E"],["\u1EC5","e"],["\u1EC4","E"],["\u1EC7","e"],["\u1EC6","E"],["\u1EC9","i"],["\u1EC8","I"],["\u1ECB","i"],["\u1ECA","I"],["\u1ECD","o"],["\u1ECC","O"],["\u1ECF","o"],["\u1ECE","O"],["\u1ED1","o"],["\u1ED0","O"],["\u1ED3","o"],["\u1ED2","O"],["\u1ED5","o"],["\u1ED4","O"],["\u1ED7","o"],["\u1ED6","O"],["\u1ED9","o"],["\u1ED8","O"],["\u1EDB","o"],["\u1EDA","O"],["\u1EDD","o"],["\u1EDC","O"],["\u1EDF","o"],["\u1EDE","O"],["\u1EE1","o"],["\u1EE0","O"],["\u1EE3","o"],["\u1EE2","O"],["\u1EE5","u"],["\u1EE4","U"],["\u1EE7","u"],["\u1EE6","U"],["\u1EE9","u"],["\u1EE8","U"],["\u1EEB","u"],["\u1EEA","U"],["\u1EED","u"],["\u1EEC","U"],["\u1EEF","u"],["\u1EEE","U"],["\u1EF1","u"],["\u1EF0","U"],["\u1EF3","y"],["\u1EF2","Y"],["\u1EF5","y"],["\u1EF4","Y"],["\u1EF7","y"],["\u1EF6","Y"],["\u1EF9","y"],["\u1EF8","Y"],["\u0621","e"],["\u0622","a"],["\u0623","a"],["\u0624","w"],["\u0625","i"],["\u0626","y"],["\u0627","a"],["\u0628","b"],["\u0629","t"],["\u062A","t"],["\u062B","th"],["\u062C","j"],["\u062D","h"],["\u062E","kh"],["\u062F","d"],["\u0630","dh"],["\u0631","r"],["\u0632","z"],["\u0633","s"],["\u0634","sh"],["\u0635","s"],["\u0636","d"],["\u0637","t"],["\u0638","z"],["\u0639","e"],["\u063A","gh"],["\u0640","_"],["\u0641","f"],["\u0642","q"],["\u0643","k"],["\u0644","l"],["\u0645","m"],["\u0646","n"],["\u0647","h"],["\u0648","w"],["\u0649","a"],["\u064A","y"],["\u064E\u200E","a"],["\u064F","u"],["\u0650\u200E","i"],["\u0660","0"],["\u0661","1"],["\u0662","2"],["\u0663","3"],["\u0664","4"],["\u0665","5"],["\u0666","6"],["\u0667","7"],["\u0668","8"],["\u0669","9"],["\u0686","ch"],["\u06A9","k"],["\u06AF","g"],["\u067E","p"],["\u0698","zh"],["\u06CC","y"],["\u06F0","0"],["\u06F1","1"],["\u06F2","2"],["\u06F3","3"],["\u06F4","4"],["\u06F5","5"],["\u06F6","6"],["\u06F7","7"],["\u06F8","8"],["\u06F9","9"],["\u067C","p"],["\u0681","z"],["\u0685","c"],["\u0689","d"],["\uFEAB","d"],["\uFEAD","r"],["\u0693","r"],["\uFEAF","z"],["\u0696","g"],["\u069A","x"],["\u06AB","g"],["\u06BC","n"],["\u06C0","e"],["\u06D0","e"],["\u06CD","ai"],["\u0679","t"],["\u0688","d"],["\u0691","r"],["\u06BA","n"],["\u06C1","h"],["\u06BE","h"],["\u06D2","e"],["\u0410","A"],["\u0430","a"],["\u0411","B"],["\u0431","b"],["\u0412","V"],["\u0432","v"],["\u0413","G"],["\u0433","g"],["\u0414","D"],["\u0434","d"],["\u044A\u0435","ye"],["\u042A\u0435","Ye"],["\u044A\u0415","yE"],["\u042A\u0415","YE"],["\u0415","E"],["\u0435","e"],["\u0401","Yo"],["\u0451","yo"],["\u0416","Zh"],["\u0436","zh"],["\u0417","Z"],["\u0437","z"],["\u0418","I"],["\u0438","i"],["\u044B\u0439","iy"],["\u042B\u0439","Iy"],["\u042B\u0419","IY"],["\u044B\u0419","iY"],["\u0419","Y"],["\u0439","y"],["\u041A","K"],["\u043A","k"],["\u041B","L"],["\u043B","l"],["\u041C","M"],["\u043C","m"],["\u041D","N"],["\u043D","n"],["\u041E","O"],["\u043E","o"],["\u041F","P"],["\u043F","p"],["\u0420","R"],["\u0440","r"],["\u0421","S"],["\u0441","s"],["\u0422","T"],["\u0442","t"],["\u0423","U"],["\u0443","u"],["\u0424","F"],["\u0444","f"],["\u0425","Kh"],["\u0445","kh"],["\u0426","Ts"],["\u0446","ts"],["\u0427","Ch"],["\u0447","ch"],["\u0428","Sh"],["\u0448","sh"],["\u0429","Sch"],["\u0449","sch"],["\u042A",""],["\u044A",""],["\u042B","Y"],["\u044B","y"],["\u042C",""],["\u044C",""],["\u042D","E"],["\u044D","e"],["\u042E","Yu"],["\u044E","yu"],["\u042F","Ya"],["\u044F","ya"],["\u0103","a"],["\u0102","A"],["\u0219","s"],["\u0218","S"],["\u021B","t"],["\u021A","T"],["\u0163","t"],["\u0162","T"],["\u015F","s"],["\u015E","S"],["\xE7","c"],["\xC7","C"],["\u011F","g"],["\u011E","G"],["\u0131","i"],["\u0130","I"],["\u0561","a"],["\u0531","A"],["\u0562","b"],["\u0532","B"],["\u0563","g"],["\u0533","G"],["\u0564","d"],["\u0534","D"],["\u0565","ye"],["\u0535","Ye"],["\u0566","z"],["\u0536","Z"],["\u0567","e"],["\u0537","E"],["\u0568","y"],["\u0538","Y"],["\u0569","t"],["\u0539","T"],["\u056A","zh"],["\u053A","Zh"],["\u056B","i"],["\u053B","I"],["\u056C","l"],["\u053C","L"],["\u056D","kh"],["\u053D","Kh"],["\u056E","ts"],["\u053E","Ts"],["\u056F","k"],["\u053F","K"],["\u0570","h"],["\u0540","H"],["\u0571","dz"],["\u0541","Dz"],["\u0572","gh"],["\u0542","Gh"],["\u0573","tch"],["\u0543","Tch"],["\u0574","m"],["\u0544","M"],["\u0575","y"],["\u0545","Y"],["\u0576","n"],["\u0546","N"],["\u0577","sh"],["\u0547","Sh"],["\u0578","vo"],["\u0548","Vo"],["\u0579","ch"],["\u0549","Ch"],["\u057A","p"],["\u054A","P"],["\u057B","j"],["\u054B","J"],["\u057C","r"],["\u054C","R"],["\u057D","s"],["\u054D","S"],["\u057E","v"],["\u054E","V"],["\u057F","t"],["\u054F","T"],["\u0580","r"],["\u0550","R"],["\u0581","c"],["\u0551","C"],["\u0578\u0582","u"],["\u0548\u0552","U"],["\u0548\u0582","U"],["\u0583","p"],["\u0553","P"],["\u0584","q"],["\u0554","Q"],["\u0585","o"],["\u0555","O"],["\u0586","f"],["\u0556","F"],["\u0587","yev"],["\u10D0","a"],["\u10D1","b"],["\u10D2","g"],["\u10D3","d"],["\u10D4","e"],["\u10D5","v"],["\u10D6","z"],["\u10D7","t"],["\u10D8","i"],["\u10D9","k"],["\u10DA","l"],["\u10DB","m"],["\u10DC","n"],["\u10DD","o"],["\u10DE","p"],["\u10DF","zh"],["\u10E0","r"],["\u10E1","s"],["\u10E2","t"],["\u10E3","u"],["\u10E4","ph"],["\u10E5","q"],["\u10E6","gh"],["\u10E7","k"],["\u10E8","sh"],["\u10E9","ch"],["\u10EA","ts"],["\u10EB","dz"],["\u10EC","ts"],["\u10ED","tch"],["\u10EE","kh"],["\u10EF","j"],["\u10F0","h"],["\u010D","c"],["\u010F","d"],["\u011B","e"],["\u0148","n"],["\u0159","r"],["\u0161","s"],["\u0165","t"],["\u016F","u"],["\u017E","z"],["\u010C","C"],["\u010E","D"],["\u011A","E"],["\u0147","N"],["\u0158","R"],["\u0160","S"],["\u0164","T"],["\u016E","U"],["\u017D","Z"],["\u0780","h"],["\u0781","sh"],["\u0782","n"],["\u0783","r"],["\u0784","b"],["\u0785","lh"],["\u0786","k"],["\u0787","a"],["\u0788","v"],["\u0789","m"],["\u078A","f"],["\u078B","dh"],["\u078C","th"],["\u078D","l"],["\u078E","g"],["\u078F","gn"],["\u0790","s"],["\u0791","d"],["\u0792","z"],["\u0793","t"],["\u0794","y"],["\u0795","p"],["\u0796","j"],["\u0797","ch"],["\u0798","tt"],["\u0799","hh"],["\u079A","kh"],["\u079B","th"],["\u079C","z"],["\u079D","sh"],["\u079E","s"],["\u079F","d"],["\u07A0","t"],["\u07A1","z"],["\u07A2","a"],["\u07A3","gh"],["\u07A4","q"],["\u07A5","w"],["\u07A6","a"],["\u07A7","aa"],["\u07A8","i"],["\u07A9","ee"],["\u07AA","u"],["\u07AB","oo"],["\u07AC","e"],["\u07AD","ey"],["\u07AE","o"],["\u07AF","oa"],["\u07B0",""],["\u03B1","a"],["\u03B2","v"],["\u03B3","g"],["\u03B4","d"],["\u03B5","e"],["\u03B6","z"],["\u03B7","i"],["\u03B8","th"],["\u03B9","i"],["\u03BA","k"],["\u03BB","l"],["\u03BC","m"],["\u03BD","n"],["\u03BE","ks"],["\u03BF","o"],["\u03C0","p"],["\u03C1","r"],["\u03C3","s"],["\u03C4","t"],["\u03C5","y"],["\u03C6","f"],["\u03C7","x"],["\u03C8","ps"],["\u03C9","o"],["\u03AC","a"],["\u03AD","e"],["\u03AF","i"],["\u03CC","o"],["\u03CD","y"],["\u03AE","i"],["\u03CE","o"],["\u03C2","s"],["\u03CA","i"],["\u03B0","y"],["\u03CB","y"],["\u0390","i"],["\u0391","A"],["\u0392","B"],["\u0393","G"],["\u0394","D"],["\u0395","E"],["\u0396","Z"],["\u0397","I"],["\u0398","TH"],["\u0399","I"],["\u039A","K"],["\u039B","L"],["\u039C","M"],["\u039D","N"],["\u039E","KS"],["\u039F","O"],["\u03A0","P"],["\u03A1","R"],["\u03A3","S"],["\u03A4","T"],["\u03A5","Y"],["\u03A6","F"],["\u03A7","X"],["\u03A8","PS"],["\u03A9","O"],["\u0386","A"],["\u0388","E"],["\u038A","I"],["\u038C","O"],["\u038E","Y"],["\u0389","I"],["\u038F","O"],["\u03AA","I"],["\u03AB","Y"],["\u0101","a"],["\u0113","e"],["\u0123","g"],["\u012B","i"],["\u0137","k"],["\u013C","l"],["\u0146","n"],["\u016B","u"],["\u0100","A"],["\u0112","E"],["\u0122","G"],["\u012A","I"],["\u0136","K"],["\u013B","L"],["\u0145","N"],["\u016A","U"],["\u010D","c"],["\u0161","s"],["\u017E","z"],["\u010C","C"],["\u0160","S"],["\u017D","Z"],["\u0105","a"],["\u010D","c"],["\u0119","e"],["\u0117","e"],["\u012F","i"],["\u0161","s"],["\u0173","u"],["\u016B","u"],["\u017E","z"],["\u0104","A"],["\u010C","C"],["\u0118","E"],["\u0116","E"],["\u012E","I"],["\u0160","S"],["\u0172","U"],["\u016A","U"],["\u040C","Kj"],["\u045C","kj"],["\u0409","Lj"],["\u0459","lj"],["\u040A","Nj"],["\u045A","nj"],["\u0422\u0441","Ts"],["\u0442\u0441","ts"],["\u0105","a"],["\u0107","c"],["\u0119","e"],["\u0142","l"],["\u0144","n"],["\u015B","s"],["\u017A","z"],["\u017C","z"],["\u0104","A"],["\u0106","C"],["\u0118","E"],["\u0141","L"],["\u0143","N"],["\u015A","S"],["\u0179","Z"],["\u017B","Z"],["\u0404","Ye"],["\u0406","I"],["\u0407","Yi"],["\u0490","G"],["\u0454","ye"],["\u0456","i"],["\u0457","yi"],["\u0491","g"],["\u0132","IJ"],["\u0133","ij"],["\xA2","c"],["\xA5","Y"],["\u07FF","b"],["\u09F3","t"],["\u0AF1","Bo"],["\u0E3F","B"],["\u20A0","CE"],["\u20A1","C"],["\u20A2","Cr"],["\u20A3","F"],["\u20A5","m"],["\u20A6","N"],["\u20A7","Pt"],["\u20A8","Rs"],["\u20A9","W"],["\u20AB","s"],["\u20AC","E"],["\u20AD","K"],["\u20AE","T"],["\u20AF","Dp"],["\u20B0","S"],["\u20B1","P"],["\u20B2","G"],["\u20B3","A"],["\u20B4","S"],["\u20B5","C"],["\u20B6","tt"],["\u20B7","S"],["\u20B8","T"],["\u20B9","R"],["\u20BA","L"],["\u20BD","P"],["\u20BF","B"],["\uFE69","$"],["\uFFE0","c"],["\uFFE5","Y"],["\uFFE6","W"],["\u{1D400}","A"],["\u{1D401}","B"],["\u{1D402}","C"],["\u{1D403}","D"],["\u{1D404}","E"],["\u{1D405}","F"],["\u{1D406}","G"],["\u{1D407}","H"],["\u{1D408}","I"],["\u{1D409}","J"],["\u{1D40A}","K"],["\u{1D40B}","L"],["\u{1D40C}","M"],["\u{1D40D}","N"],["\u{1D40E}","O"],["\u{1D40F}","P"],["\u{1D410}","Q"],["\u{1D411}","R"],["\u{1D412}","S"],["\u{1D413}","T"],["\u{1D414}","U"],["\u{1D415}","V"],["\u{1D416}","W"],["\u{1D417}","X"],["\u{1D418}","Y"],["\u{1D419}","Z"],["\u{1D41A}","a"],["\u{1D41B}","b"],["\u{1D41C}","c"],["\u{1D41D}","d"],["\u{1D41E}","e"],["\u{1D41F}","f"],["\u{1D420}","g"],["\u{1D421}","h"],["\u{1D422}","i"],["\u{1D423}","j"],["\u{1D424}","k"],["\u{1D425}","l"],["\u{1D426}","m"],["\u{1D427}","n"],["\u{1D428}","o"],["\u{1D429}","p"],["\u{1D42A}","q"],["\u{1D42B}","r"],["\u{1D42C}","s"],["\u{1D42D}","t"],["\u{1D42E}","u"],["\u{1D42F}","v"],["\u{1D430}","w"],["\u{1D431}","x"],["\u{1D432}","y"],["\u{1D433}","z"],["\u{1D434}","A"],["\u{1D435}","B"],["\u{1D436}","C"],["\u{1D437}","D"],["\u{1D438}","E"],["\u{1D439}","F"],["\u{1D43A}","G"],["\u{1D43B}","H"],["\u{1D43C}","I"],["\u{1D43D}","J"],["\u{1D43E}","K"],["\u{1D43F}","L"],["\u{1D440}","M"],["\u{1D441}","N"],["\u{1D442}","O"],["\u{1D443}","P"],["\u{1D444}","Q"],["\u{1D445}","R"],["\u{1D446}","S"],["\u{1D447}","T"],["\u{1D448}","U"],["\u{1D449}","V"],["\u{1D44A}","W"],["\u{1D44B}","X"],["\u{1D44C}","Y"],["\u{1D44D}","Z"],["\u{1D44E}","a"],["\u{1D44F}","b"],["\u{1D450}","c"],["\u{1D451}","d"],["\u{1D452}","e"],["\u{1D453}","f"],["\u{1D454}","g"],["\u{1D456}","i"],["\u{1D457}","j"],["\u{1D458}","k"],["\u{1D459}","l"],["\u{1D45A}","m"],["\u{1D45B}","n"],["\u{1D45C}","o"],["\u{1D45D}","p"],["\u{1D45E}","q"],["\u{1D45F}","r"],["\u{1D460}","s"],["\u{1D461}","t"],["\u{1D462}","u"],["\u{1D463}","v"],["\u{1D464}","w"],["\u{1D465}","x"],["\u{1D466}","y"],["\u{1D467}","z"],["\u{1D468}","A"],["\u{1D469}","B"],["\u{1D46A}","C"],["\u{1D46B}","D"],["\u{1D46C}","E"],["\u{1D46D}","F"],["\u{1D46E}","G"],["\u{1D46F}","H"],["\u{1D470}","I"],["\u{1D471}","J"],["\u{1D472}","K"],["\u{1D473}","L"],["\u{1D474}","M"],["\u{1D475}","N"],["\u{1D476}","O"],["\u{1D477}","P"],["\u{1D478}","Q"],["\u{1D479}","R"],["\u{1D47A}","S"],["\u{1D47B}","T"],["\u{1D47C}","U"],["\u{1D47D}","V"],["\u{1D47E}","W"],["\u{1D47F}","X"],["\u{1D480}","Y"],["\u{1D481}","Z"],["\u{1D482}","a"],["\u{1D483}","b"],["\u{1D484}","c"],["\u{1D485}","d"],["\u{1D486}","e"],["\u{1D487}","f"],["\u{1D488}","g"],["\u{1D489}","h"],["\u{1D48A}","i"],["\u{1D48B}","j"],["\u{1D48C}","k"],["\u{1D48D}","l"],["\u{1D48E}","m"],["\u{1D48F}","n"],["\u{1D490}","o"],["\u{1D491}","p"],["\u{1D492}","q"],["\u{1D493}","r"],["\u{1D494}","s"],["\u{1D495}","t"],["\u{1D496}","u"],["\u{1D497}","v"],["\u{1D498}","w"],["\u{1D499}","x"],["\u{1D49A}","y"],["\u{1D49B}","z"],["\u{1D49C}","A"],["\u{1D49E}","C"],["\u{1D49F}","D"],["\u{1D4A2}","g"],["\u{1D4A5}","J"],["\u{1D4A6}","K"],["\u{1D4A9}","N"],["\u{1D4AA}","O"],["\u{1D4AB}","P"],["\u{1D4AC}","Q"],["\u{1D4AE}","S"],["\u{1D4AF}","T"],["\u{1D4B0}","U"],["\u{1D4B1}","V"],["\u{1D4B2}","W"],["\u{1D4B3}","X"],["\u{1D4B4}","Y"],["\u{1D4B5}","Z"],["\u{1D4B6}","a"],["\u{1D4B7}","b"],["\u{1D4B8}","c"],["\u{1D4B9}","d"],["\u{1D4BB}","f"],["\u{1D4BD}","h"],["\u{1D4BE}","i"],["\u{1D4BF}","j"],["\u{1D4C0}","h"],["\u{1D4C1}","l"],["\u{1D4C2}","m"],["\u{1D4C3}","n"],["\u{1D4C5}","p"],["\u{1D4C6}","q"],["\u{1D4C7}","r"],["\u{1D4C8}","s"],["\u{1D4C9}","t"],["\u{1D4CA}","u"],["\u{1D4CB}","v"],["\u{1D4CC}","w"],["\u{1D4CD}","x"],["\u{1D4CE}","y"],["\u{1D4CF}","z"],["\u{1D4D0}","A"],["\u{1D4D1}","B"],["\u{1D4D2}","C"],["\u{1D4D3}","D"],["\u{1D4D4}","E"],["\u{1D4D5}","F"],["\u{1D4D6}","G"],["\u{1D4D7}","H"],["\u{1D4D8}","I"],["\u{1D4D9}","J"],["\u{1D4DA}","K"],["\u{1D4DB}","L"],["\u{1D4DC}","M"],["\u{1D4DD}","N"],["\u{1D4DE}","O"],["\u{1D4DF}","P"],["\u{1D4E0}","Q"],["\u{1D4E1}","R"],["\u{1D4E2}","S"],["\u{1D4E3}","T"],["\u{1D4E4}","U"],["\u{1D4E5}","V"],["\u{1D4E6}","W"],["\u{1D4E7}","X"],["\u{1D4E8}","Y"],["\u{1D4E9}","Z"],["\u{1D4EA}","a"],["\u{1D4EB}","b"],["\u{1D4EC}","c"],["\u{1D4ED}","d"],["\u{1D4EE}","e"],["\u{1D4EF}","f"],["\u{1D4F0}","g"],["\u{1D4F1}","h"],["\u{1D4F2}","i"],["\u{1D4F3}","j"],["\u{1D4F4}","k"],["\u{1D4F5}","l"],["\u{1D4F6}","m"],["\u{1D4F7}","n"],["\u{1D4F8}","o"],["\u{1D4F9}","p"],["\u{1D4FA}","q"],["\u{1D4FB}","r"],["\u{1D4FC}","s"],["\u{1D4FD}","t"],["\u{1D4FE}","u"],["\u{1D4FF}","v"],["\u{1D500}","w"],["\u{1D501}","x"],["\u{1D502}","y"],["\u{1D503}","z"],["\u{1D504}","A"],["\u{1D505}","B"],["\u{1D507}","D"],["\u{1D508}","E"],["\u{1D509}","F"],["\u{1D50A}","G"],["\u{1D50D}","J"],["\u{1D50E}","K"],["\u{1D50F}","L"],["\u{1D510}","M"],["\u{1D511}","N"],["\u{1D512}","O"],["\u{1D513}","P"],["\u{1D514}","Q"],["\u{1D516}","S"],["\u{1D517}","T"],["\u{1D518}","U"],["\u{1D519}","V"],["\u{1D51A}","W"],["\u{1D51B}","X"],["\u{1D51C}","Y"],["\u{1D51E}","a"],["\u{1D51F}","b"],["\u{1D520}","c"],["\u{1D521}","d"],["\u{1D522}","e"],["\u{1D523}","f"],["\u{1D524}","g"],["\u{1D525}","h"],["\u{1D526}","i"],["\u{1D527}","j"],["\u{1D528}","k"],["\u{1D529}","l"],["\u{1D52A}","m"],["\u{1D52B}","n"],["\u{1D52C}","o"],["\u{1D52D}","p"],["\u{1D52E}","q"],["\u{1D52F}","r"],["\u{1D530}","s"],["\u{1D531}","t"],["\u{1D532}","u"],["\u{1D533}","v"],["\u{1D534}","w"],["\u{1D535}","x"],["\u{1D536}","y"],["\u{1D537}","z"],["\u{1D538}","A"],["\u{1D539}","B"],["\u{1D53B}","D"],["\u{1D53C}","E"],["\u{1D53D}","F"],["\u{1D53E}","G"],["\u{1D540}","I"],["\u{1D541}","J"],["\u{1D542}","K"],["\u{1D543}","L"],["\u{1D544}","M"],["\u{1D546}","N"],["\u{1D54A}","S"],["\u{1D54B}","T"],["\u{1D54C}","U"],["\u{1D54D}","V"],["\u{1D54E}","W"],["\u{1D54F}","X"],["\u{1D550}","Y"],["\u{1D552}","a"],["\u{1D553}","b"],["\u{1D554}","c"],["\u{1D555}","d"],["\u{1D556}","e"],["\u{1D557}","f"],["\u{1D558}","g"],["\u{1D559}","h"],["\u{1D55A}","i"],["\u{1D55B}","j"],["\u{1D55C}","k"],["\u{1D55D}","l"],["\u{1D55E}","m"],["\u{1D55F}","n"],["\u{1D560}","o"],["\u{1D561}","p"],["\u{1D562}","q"],["\u{1D563}","r"],["\u{1D564}","s"],["\u{1D565}","t"],["\u{1D566}","u"],["\u{1D567}","v"],["\u{1D568}","w"],["\u{1D569}","x"],["\u{1D56A}","y"],["\u{1D56B}","z"],["\u{1D56C}","A"],["\u{1D56D}","B"],["\u{1D56E}","C"],["\u{1D56F}","D"],["\u{1D570}","E"],["\u{1D571}","F"],["\u{1D572}","G"],["\u{1D573}","H"],["\u{1D574}","I"],["\u{1D575}","J"],["\u{1D576}","K"],["\u{1D577}","L"],["\u{1D578}","M"],["\u{1D579}","N"],["\u{1D57A}","O"],["\u{1D57B}","P"],["\u{1D57C}","Q"],["\u{1D57D}","R"],["\u{1D57E}","S"],["\u{1D57F}","T"],["\u{1D580}","U"],["\u{1D581}","V"],["\u{1D582}","W"],["\u{1D583}","X"],["\u{1D584}","Y"],["\u{1D585}","Z"],["\u{1D586}","a"],["\u{1D587}","b"],["\u{1D588}","c"],["\u{1D589}","d"],["\u{1D58A}","e"],["\u{1D58B}","f"],["\u{1D58C}","g"],["\u{1D58D}","h"],["\u{1D58E}","i"],["\u{1D58F}","j"],["\u{1D590}","k"],["\u{1D591}","l"],["\u{1D592}","m"],["\u{1D593}","n"],["\u{1D594}","o"],["\u{1D595}","p"],["\u{1D596}","q"],["\u{1D597}","r"],["\u{1D598}","s"],["\u{1D599}","t"],["\u{1D59A}","u"],["\u{1D59B}","v"],["\u{1D59C}","w"],["\u{1D59D}","x"],["\u{1D59E}","y"],["\u{1D59F}","z"],["\u{1D5A0}","A"],["\u{1D5A1}","B"],["\u{1D5A2}","C"],["\u{1D5A3}","D"],["\u{1D5A4}","E"],["\u{1D5A5}","F"],["\u{1D5A6}","G"],["\u{1D5A7}","H"],["\u{1D5A8}","I"],["\u{1D5A9}","J"],["\u{1D5AA}","K"],["\u{1D5AB}","L"],["\u{1D5AC}","M"],["\u{1D5AD}","N"],["\u{1D5AE}","O"],["\u{1D5AF}","P"],["\u{1D5B0}","Q"],["\u{1D5B1}","R"],["\u{1D5B2}","S"],["\u{1D5B3}","T"],["\u{1D5B4}","U"],["\u{1D5B5}","V"],["\u{1D5B6}","W"],["\u{1D5B7}","X"],["\u{1D5B8}","Y"],["\u{1D5B9}","Z"],["\u{1D5BA}","a"],["\u{1D5BB}","b"],["\u{1D5BC}","c"],["\u{1D5BD}","d"],["\u{1D5BE}","e"],["\u{1D5BF}","f"],["\u{1D5C0}","g"],["\u{1D5C1}","h"],["\u{1D5C2}","i"],["\u{1D5C3}","j"],["\u{1D5C4}","k"],["\u{1D5C5}","l"],["\u{1D5C6}","m"],["\u{1D5C7}","n"],["\u{1D5C8}","o"],["\u{1D5C9}","p"],["\u{1D5CA}","q"],["\u{1D5CB}","r"],["\u{1D5CC}","s"],["\u{1D5CD}","t"],["\u{1D5CE}","u"],["\u{1D5CF}","v"],["\u{1D5D0}","w"],["\u{1D5D1}","x"],["\u{1D5D2}","y"],["\u{1D5D3}","z"],["\u{1D5D4}","A"],["\u{1D5D5}","B"],["\u{1D5D6}","C"],["\u{1D5D7}","D"],["\u{1D5D8}","E"],["\u{1D5D9}","F"],["\u{1D5DA}","G"],["\u{1D5DB}","H"],["\u{1D5DC}","I"],["\u{1D5DD}","J"],["\u{1D5DE}","K"],["\u{1D5DF}","L"],["\u{1D5E0}","M"],["\u{1D5E1}","N"],["\u{1D5E2}","O"],["\u{1D5E3}","P"],["\u{1D5E4}","Q"],["\u{1D5E5}","R"],["\u{1D5E6}","S"],["\u{1D5E7}","T"],["\u{1D5E8}","U"],["\u{1D5E9}","V"],["\u{1D5EA}","W"],["\u{1D5EB}","X"],["\u{1D5EC}","Y"],["\u{1D5ED}","Z"],["\u{1D5EE}","a"],["\u{1D5EF}","b"],["\u{1D5F0}","c"],["\u{1D5F1}","d"],["\u{1D5F2}","e"],["\u{1D5F3}","f"],["\u{1D5F4}","g"],["\u{1D5F5}","h"],["\u{1D5F6}","i"],["\u{1D5F7}","j"],["\u{1D5F8}","k"],["\u{1D5F9}","l"],["\u{1D5FA}","m"],["\u{1D5FB}","n"],["\u{1D5FC}","o"],["\u{1D5FD}","p"],["\u{1D5FE}","q"],["\u{1D5FF}","r"],["\u{1D600}","s"],["\u{1D601}","t"],["\u{1D602}","u"],["\u{1D603}","v"],["\u{1D604}","w"],["\u{1D605}","x"],["\u{1D606}","y"],["\u{1D607}","z"],["\u{1D608}","A"],["\u{1D609}","B"],["\u{1D60A}","C"],["\u{1D60B}","D"],["\u{1D60C}","E"],["\u{1D60D}","F"],["\u{1D60E}","G"],["\u{1D60F}","H"],["\u{1D610}","I"],["\u{1D611}","J"],["\u{1D612}","K"],["\u{1D613}","L"],["\u{1D614}","M"],["\u{1D615}","N"],["\u{1D616}","O"],["\u{1D617}","P"],["\u{1D618}","Q"],["\u{1D619}","R"],["\u{1D61A}","S"],["\u{1D61B}","T"],["\u{1D61C}","U"],["\u{1D61D}","V"],["\u{1D61E}","W"],["\u{1D61F}","X"],["\u{1D620}","Y"],["\u{1D621}","Z"],["\u{1D622}","a"],["\u{1D623}","b"],["\u{1D624}","c"],["\u{1D625}","d"],["\u{1D626}","e"],["\u{1D627}","f"],["\u{1D628}","g"],["\u{1D629}","h"],["\u{1D62A}","i"],["\u{1D62B}","j"],["\u{1D62C}","k"],["\u{1D62D}","l"],["\u{1D62E}","m"],["\u{1D62F}","n"],["\u{1D630}","o"],["\u{1D631}","p"],["\u{1D632}","q"],["\u{1D633}","r"],["\u{1D634}","s"],["\u{1D635}","t"],["\u{1D636}","u"],["\u{1D637}","v"],["\u{1D638}","w"],["\u{1D639}","x"],["\u{1D63A}","y"],["\u{1D63B}","z"],["\u{1D63C}","A"],["\u{1D63D}","B"],["\u{1D63E}","C"],["\u{1D63F}","D"],["\u{1D640}","E"],["\u{1D641}","F"],["\u{1D642}","G"],["\u{1D643}","H"],["\u{1D644}","I"],["\u{1D645}","J"],["\u{1D646}","K"],["\u{1D647}","L"],["\u{1D648}","M"],["\u{1D649}","N"],["\u{1D64A}","O"],["\u{1D64B}","P"],["\u{1D64C}","Q"],["\u{1D64D}","R"],["\u{1D64E}","S"],["\u{1D64F}","T"],["\u{1D650}","U"],["\u{1D651}","V"],["\u{1D652}","W"],["\u{1D653}","X"],["\u{1D654}","Y"],["\u{1D655}","Z"],["\u{1D656}","a"],["\u{1D657}","b"],["\u{1D658}","c"],["\u{1D659}","d"],["\u{1D65A}","e"],["\u{1D65B}","f"],["\u{1D65C}","g"],["\u{1D65D}","h"],["\u{1D65E}","i"],["\u{1D65F}","j"],["\u{1D660}","k"],["\u{1D661}","l"],["\u{1D662}","m"],["\u{1D663}","n"],["\u{1D664}","o"],["\u{1D665}","p"],["\u{1D666}","q"],["\u{1D667}","r"],["\u{1D668}","s"],["\u{1D669}","t"],["\u{1D66A}","u"],["\u{1D66B}","v"],["\u{1D66C}","w"],["\u{1D66D}","x"],["\u{1D66E}","y"],["\u{1D66F}","z"],["\u{1D670}","A"],["\u{1D671}","B"],["\u{1D672}","C"],["\u{1D673}","D"],["\u{1D674}","E"],["\u{1D675}","F"],["\u{1D676}","G"],["\u{1D677}","H"],["\u{1D678}","I"],["\u{1D679}","J"],["\u{1D67A}","K"],["\u{1D67B}","L"],["\u{1D67C}","M"],["\u{1D67D}","N"],["\u{1D67E}","O"],["\u{1D67F}","P"],["\u{1D680}","Q"],["\u{1D681}","R"],["\u{1D682}","S"],["\u{1D683}","T"],["\u{1D684}","U"],["\u{1D685}","V"],["\u{1D686}","W"],["\u{1D687}","X"],["\u{1D688}","Y"],["\u{1D689}","Z"],["\u{1D68A}","a"],["\u{1D68B}","b"],["\u{1D68C}","c"],["\u{1D68D}","d"],["\u{1D68E}","e"],["\u{1D68F}","f"],["\u{1D690}","g"],["\u{1D691}","h"],["\u{1D692}","i"],["\u{1D693}","j"],["\u{1D694}","k"],["\u{1D695}","l"],["\u{1D696}","m"],["\u{1D697}","n"],["\u{1D698}","o"],["\u{1D699}","p"],["\u{1D69A}","q"],["\u{1D69B}","r"],["\u{1D69C}","s"],["\u{1D69D}","t"],["\u{1D69E}","u"],["\u{1D69F}","v"],["\u{1D6A0}","w"],["\u{1D6A1}","x"],["\u{1D6A2}","y"],["\u{1D6A3}","z"],["\u{1D6A4}","l"],["\u{1D6A5}","j"],["\u{1D6E2}","A"],["\u{1D6E3}","B"],["\u{1D6E4}","G"],["\u{1D6E5}","D"],["\u{1D6E6}","E"],["\u{1D6E7}","Z"],["\u{1D6E8}","I"],["\u{1D6E9}","TH"],["\u{1D6EA}","I"],["\u{1D6EB}","K"],["\u{1D6EC}","L"],["\u{1D6ED}","M"],["\u{1D6EE}","N"],["\u{1D6EF}","KS"],["\u{1D6F0}","O"],["\u{1D6F1}","P"],["\u{1D6F2}","R"],["\u{1D6F3}","TH"],["\u{1D6F4}","S"],["\u{1D6F5}","T"],["\u{1D6F6}","Y"],["\u{1D6F7}","F"],["\u{1D6F8}","x"],["\u{1D6F9}","PS"],["\u{1D6FA}","O"],["\u{1D6FB}","D"],["\u{1D6FC}","a"],["\u{1D6FD}","b"],["\u{1D6FE}","g"],["\u{1D6FF}","d"],["\u{1D700}","e"],["\u{1D701}","z"],["\u{1D702}","i"],["\u{1D703}","th"],["\u{1D704}","i"],["\u{1D705}","k"],["\u{1D706}","l"],["\u{1D707}","m"],["\u{1D708}","n"],["\u{1D709}","ks"],["\u{1D70A}","o"],["\u{1D70B}","p"],["\u{1D70C}","r"],["\u{1D70D}","s"],["\u{1D70E}","s"],["\u{1D70F}","t"],["\u{1D710}","y"],["\u{1D711}","f"],["\u{1D712}","x"],["\u{1D713}","ps"],["\u{1D714}","o"],["\u{1D715}","d"],["\u{1D716}","E"],["\u{1D717}","TH"],["\u{1D718}","K"],["\u{1D719}","f"],["\u{1D71A}","r"],["\u{1D71B}","p"],["\u{1D71C}","A"],["\u{1D71D}","V"],["\u{1D71E}","G"],["\u{1D71F}","D"],["\u{1D720}","E"],["\u{1D721}","Z"],["\u{1D722}","I"],["\u{1D723}","TH"],["\u{1D724}","I"],["\u{1D725}","K"],["\u{1D726}","L"],["\u{1D727}","M"],["\u{1D728}","N"],["\u{1D729}","KS"],["\u{1D72A}","O"],["\u{1D72B}","P"],["\u{1D72C}","S"],["\u{1D72D}","TH"],["\u{1D72E}","S"],["\u{1D72F}","T"],["\u{1D730}","Y"],["\u{1D731}","F"],["\u{1D732}","X"],["\u{1D733}","PS"],["\u{1D734}","O"],["\u{1D735}","D"],["\u{1D736}","a"],["\u{1D737}","v"],["\u{1D738}","g"],["\u{1D739}","d"],["\u{1D73A}","e"],["\u{1D73B}","z"],["\u{1D73C}","i"],["\u{1D73D}","th"],["\u{1D73E}","i"],["\u{1D73F}","k"],["\u{1D740}","l"],["\u{1D741}","m"],["\u{1D742}","n"],["\u{1D743}","ks"],["\u{1D744}","o"],["\u{1D745}","p"],["\u{1D746}","r"],["\u{1D747}","s"],["\u{1D748}","s"],["\u{1D749}","t"],["\u{1D74A}","y"],["\u{1D74B}","f"],["\u{1D74C}","x"],["\u{1D74D}","ps"],["\u{1D74E}","o"],["\u{1D74F}","a"],["\u{1D750}","e"],["\u{1D751}","i"],["\u{1D752}","k"],["\u{1D753}","f"],["\u{1D754}","r"],["\u{1D755}","p"],["\u{1D756}","A"],["\u{1D757}","B"],["\u{1D758}","G"],["\u{1D759}","D"],["\u{1D75A}","E"],["\u{1D75B}","Z"],["\u{1D75C}","I"],["\u{1D75D}","TH"],["\u{1D75E}","I"],["\u{1D75F}","K"],["\u{1D760}","L"],["\u{1D761}","M"],["\u{1D762}","N"],["\u{1D763}","KS"],["\u{1D764}","O"],["\u{1D765}","P"],["\u{1D766}","R"],["\u{1D767}","TH"],["\u{1D768}","S"],["\u{1D769}","T"],["\u{1D76A}","Y"],["\u{1D76B}","F"],["\u{1D76C}","X"],["\u{1D76D}","PS"],["\u{1D76E}","O"],["\u{1D76F}","D"],["\u{1D770}","a"],["\u{1D771}","v"],["\u{1D772}","g"],["\u{1D773}","d"],["\u{1D774}","e"],["\u{1D775}","z"],["\u{1D776}","i"],["\u{1D777}","th"],["\u{1D778}","i"],["\u{1D779}","k"],["\u{1D77A}","l"],["\u{1D77B}","m"],["\u{1D77C}","n"],["\u{1D77D}","ks"],["\u{1D77E}","o"],["\u{1D77F}","p"],["\u{1D780}","r"],["\u{1D781}","s"],["\u{1D782}","s"],["\u{1D783}","t"],["\u{1D784}","y"],["\u{1D785}","f"],["\u{1D786}","x"],["\u{1D787}","ps"],["\u{1D788}","o"],["\u{1D789}","a"],["\u{1D78A}","e"],["\u{1D78B}","i"],["\u{1D78C}","k"],["\u{1D78D}","f"],["\u{1D78E}","r"],["\u{1D78F}","p"],["\u{1D790}","A"],["\u{1D791}","V"],["\u{1D792}","G"],["\u{1D793}","D"],["\u{1D794}","E"],["\u{1D795}","Z"],["\u{1D796}","I"],["\u{1D797}","TH"],["\u{1D798}","I"],["\u{1D799}","K"],["\u{1D79A}","L"],["\u{1D79B}","M"],["\u{1D79C}","N"],["\u{1D79D}","KS"],["\u{1D79E}","O"],["\u{1D79F}","P"],["\u{1D7A0}","S"],["\u{1D7A1}","TH"],["\u{1D7A2}","S"],["\u{1D7A3}","T"],["\u{1D7A4}","Y"],["\u{1D7A5}","F"],["\u{1D7A6}","X"],["\u{1D7A7}","PS"],["\u{1D7A8}","O"],["\u{1D7A9}","D"],["\u{1D7AA}","av"],["\u{1D7AB}","g"],["\u{1D7AC}","d"],["\u{1D7AD}","e"],["\u{1D7AE}","z"],["\u{1D7AF}","i"],["\u{1D7B0}","i"],["\u{1D7B1}","th"],["\u{1D7B2}","i"],["\u{1D7B3}","k"],["\u{1D7B4}","l"],["\u{1D7B5}","m"],["\u{1D7B6}","n"],["\u{1D7B7}","ks"],["\u{1D7B8}","o"],["\u{1D7B9}","p"],["\u{1D7BA}","r"],["\u{1D7BB}","s"],["\u{1D7BC}","s"],["\u{1D7BD}","t"],["\u{1D7BE}","y"],["\u{1D7BF}","f"],["\u{1D7C0}","x"],["\u{1D7C1}","ps"],["\u{1D7C2}","o"],["\u{1D7C3}","a"],["\u{1D7C4}","e"],["\u{1D7C5}","i"],["\u{1D7C6}","k"],["\u{1D7C7}","f"],["\u{1D7C8}","r"],["\u{1D7C9}","p"],["\u{1D7CA}","F"],["\u{1D7CB}","f"],["\u249C","(a)"],["\u249D","(b)"],["\u249E","(c)"],["\u249F","(d)"],["\u24A0","(e)"],["\u24A1","(f)"],["\u24A2","(g)"],["\u24A3","(h)"],["\u24A4","(i)"],["\u24A5","(j)"],["\u24A6","(k)"],["\u24A7","(l)"],["\u24A8","(m)"],["\u24A9","(n)"],["\u24AA","(o)"],["\u24AB","(p)"],["\u24AC","(q)"],["\u24AD","(r)"],["\u24AE","(s)"],["\u24AF","(t)"],["\u24B0","(u)"],["\u24B1","(v)"],["\u24B2","(w)"],["\u24B3","(x)"],["\u24B4","(y)"],["\u24B5","(z)"],["\u24B6","(A)"],["\u24B7","(B)"],["\u24B8","(C)"],["\u24B9","(D)"],["\u24BA","(E)"],["\u24BB","(F)"],["\u24BC","(G)"],["\u24BD","(H)"],["\u24BE","(I)"],["\u24BF","(J)"],["\u24C0","(K)"],["\u24C1","(L)"],["\u24C3","(N)"],["\u24C4","(O)"],["\u24C5","(P)"],["\u24C6","(Q)"],["\u24C7","(R)"],["\u24C8","(S)"],["\u24C9","(T)"],["\u24CA","(U)"],["\u24CB","(V)"],["\u24CC","(W)"],["\u24CD","(X)"],["\u24CE","(Y)"],["\u24CF","(Z)"],["\u24D0","(a)"],["\u24D1","(b)"],["\u24D2","(b)"],["\u24D3","(c)"],["\u24D4","(e)"],["\u24D5","(f)"],["\u24D6","(g)"],["\u24D7","(h)"],["\u24D8","(i)"],["\u24D9","(j)"],["\u24DA","(k)"],["\u24DB","(l)"],["\u24DC","(m)"],["\u24DD","(n)"],["\u24DE","(o)"],["\u24DF","(p)"],["\u24E0","(q)"],["\u24E1","(r)"],["\u24E2","(s)"],["\u24E3","(t)"],["\u24E4","(u)"],["\u24E5","(v)"],["\u24E6","(w)"],["\u24E7","(x)"],["\u24E8","(y)"],["\u24E9","(z)"],["\u010A","C"],["\u010B","c"],["\u0120","G"],["\u0121","g"],["\u0126","H"],["\u0127","h"],["\u017B","Z"],["\u017C","z"],["\u{1D7CE}","0"],["\u{1D7CF}","1"],["\u{1D7D0}","2"],["\u{1D7D1}","3"],["\u{1D7D2}","4"],["\u{1D7D3}","5"],["\u{1D7D4}","6"],["\u{1D7D5}","7"],["\u{1D7D6}","8"],["\u{1D7D7}","9"],["\u{1D7D8}","0"],["\u{1D7D9}","1"],["\u{1D7DA}","2"],["\u{1D7DB}","3"],["\u{1D7DC}","4"],["\u{1D7DD}","5"],["\u{1D7DE}","6"],["\u{1D7DF}","7"],["\u{1D7E0}","8"],["\u{1D7E1}","9"],["\u{1D7E2}","0"],["\u{1D7E3}","1"],["\u{1D7E4}","2"],["\u{1D7E5}","3"],["\u{1D7E6}","4"],["\u{1D7E7}","5"],["\u{1D7E8}","6"],["\u{1D7E9}","7"],["\u{1D7EA}","8"],["\u{1D7EB}","9"],["\u{1D7EC}","0"],["\u{1D7ED}","1"],["\u{1D7EE}","2"],["\u{1D7EF}","3"],["\u{1D7F0}","4"],["\u{1D7F1}","5"],["\u{1D7F2}","6"],["\u{1D7F3}","7"],["\u{1D7F4}","8"],["\u{1D7F5}","9"],["\u{1D7F6}","0"],["\u{1D7F7}","1"],["\u{1D7F8}","2"],["\u{1D7F9}","3"],["\u{1D7FA}","4"],["\u{1D7FB}","5"],["\u{1D7FC}","6"],["\u{1D7FD}","7"],["\u{1D7FE}","8"],["\u{1D7FF}","9"],["\u2460","1"],["\u2461","2"],["\u2462","3"],["\u2463","4"],["\u2464","5"],["\u2465","6"],["\u2466","7"],["\u2467","8"],["\u2468","9"],["\u2469","10"],["\u246A","11"],["\u246B","12"],["\u246C","13"],["\u246D","14"],["\u246E","15"],["\u246F","16"],["\u2470","17"],["\u2471","18"],["\u2472","19"],["\u2473","20"],["\u2474","1"],["\u2475","2"],["\u2476","3"],["\u2477","4"],["\u2478","5"],["\u2479","6"],["\u247A","7"],["\u247B","8"],["\u247C","9"],["\u247D","10"],["\u247E","11"],["\u247F","12"],["\u2480","13"],["\u2481","14"],["\u2482","15"],["\u2483","16"],["\u2484","17"],["\u2485","18"],["\u2486","19"],["\u2487","20"],["\u2488","1."],["\u2489","2."],["\u248A","3."],["\u248B","4."],["\u248C","5."],["\u248D","6."],["\u248E","7."],["\u248F","8."],["\u2490","9."],["\u2491","10."],["\u2492","11."],["\u2493","12."],["\u2494","13."],["\u2495","14."],["\u2496","15."],["\u2497","16."],["\u2498","17."],["\u2499","18."],["\u249A","19."],["\u249B","20."],["\u24EA","0"],["\u24EB","11"],["\u24EC","12"],["\u24ED","13"],["\u24EE","14"],["\u24EF","15"],["\u24F0","16"],["\u24F1","17"],["\u24F2","18"],["\u24F3","19"],["\u24F4","20"],["\u24F5","1"],["\u24F6","2"],["\u24F7","3"],["\u24F8","4"],["\u24F9","5"],["\u24FA","6"],["\u24FB","7"],["\u24FC","8"],["\u24FD","9"],["\u24FE","10"],["\u24FF","0"],["\u{1F670}","&"],["\u{1F671}","&"],["\u{1F672}","&"],["\u{1F673}","&"],["\u{1F674}","&"],["\u{1F675}","&"],["\u{1F676}",'"'],["\u{1F677}",'"'],["\u{1F678}",'"'],["\u203D","?!"],["\u{1F679}","?!"],["\u{1F67A}","?!"],["\u{1F67B}","?!"],["\u{1F67C}","/"],["\u{1F67D}","\\"],["\u{1F707}","AR"],["\u{1F708}","V"],["\u{1F709}","V"],["\u{1F706}","VR"],["\u{1F705}","VF"],["\u{1F729}","2"],["\u{1F72A}","5"],["\u{1F761}","f"],["\u{1F762}","W"],["\u{1F763}","U"],["\u{1F767}","V"],["\u{1F768}","T"],["\u{1F76A}","V"],["\u{1F76B}","MB"],["\u{1F76C}","VB"],["\u{1F772}","3B"],["\u{1F773}","3B"],["\u{1F4AF}","100"],["\u{1F519}","BACK"],["\u{1F51A}","END"],["\u{1F51B}","ON!"],["\u{1F51C}","SOON"],["\u{1F51D}","TOP"],["\u{1F51E}","18"],["\u{1F524}","abc"],["\u{1F520}","ABCD"],["\u{1F521}","abcd"],["\u{1F522}","1234"],["\u{1F523}","T&@%"],["#\uFE0F\u20E3","#"],["*\uFE0F\u20E3","*"],["0\uFE0F\u20E3","0"],["1\uFE0F\u20E3","1"],["2\uFE0F\u20E3","2"],["3\uFE0F\u20E3","3"],["4\uFE0F\u20E3","4"],["5\uFE0F\u20E3","5"],["6\uFE0F\u20E3","6"],["7\uFE0F\u20E3","7"],["8\uFE0F\u20E3","8"],["9\uFE0F\u20E3","9"],["\u{1F51F}","10"],["\u{1F170}\uFE0F","A"],["\u{1F171}\uFE0F","B"],["\u{1F18E}","AB"],["\u{1F191}","CL"],["\u{1F17E}\uFE0F","O"],["\u{1F17F}","P"],["\u{1F198}","SOS"],["\u{1F172}","C"],["\u{1F173}","D"],["\u{1F174}","E"],["\u{1F175}","F"],["\u{1F176}","G"],["\u{1F177}","H"],["\u{1F178}","I"],["\u{1F179}","J"],["\u{1F17A}","K"],["\u{1F17B}","L"],["\u{1F17C}","M"],["\u{1F17D}","N"],["\u{1F180}","Q"],["\u{1F181}","R"],["\u{1F182}","S"],["\u{1F183}","T"],["\u{1F184}","U"],["\u{1F185}","V"],["\u{1F186}","W"],["\u{1F187}","X"],["\u{1F188}","Y"],["\u{1F189}","Z"]],Jf=a((t,e)=>{for(const[n,r]of e)t=t.replace(new RegExp(mn(n),"g"),r);return t},"doCustomReplacements");function Qf(t,e){if(typeof t!="string")throw new TypeError(`Expected a string, got \`${typeof t}\``);e={customReplacements:[],...e};const n=new Map([...Yf,...e.customReplacements]);return t=t.normalize(),t=Jf(t,n),t=t.normalize("NFD").replace(/\p{Diacritic}/gu,"").normalize(),t}a(Qf,"transliterate");const Xf=[["&"," and "],["\u{1F984}"," unicorn "],["\u2665"," love "]],Zf=a(t=>t.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"),"decamelize"),eh=a((t,e)=>{const n=mn(e);return t.replace(new RegExp(`${n}{2,}`,"g"),e).replace(new RegExp(`^${n}|${n}$`,"g"),"")},"removeMootSeparators"),th=a(t=>{let e="a-z\\d";if(e+=t.lowercase?"":"A-Z",t.preserveCharacters.length>0)for(const n of t.preserveCharacters){if(n===t.separator)throw new Error(`The separator character \`${t.separator}\` cannot be included in preserved characters: ${t.preserveCharacters}`);e+=mn(n)}return new RegExp(`[^${e}]+`,"g")},"buildPatternSlug");function nh(t,e){if(typeof t!="string")throw new TypeError(`Expected a string, got \`${typeof t}\``);e={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...e};const n=e.preserveLeadingUnderscore&&t.startsWith("_"),r=e.preserveTrailingDash&&t.endsWith("-"),i=new Map([...Xf,...e.customReplacements]);t=Qf(t,{customReplacements:i}),e.decamelize&&(t=Zf(t));const s=th(e);return e.lowercase&&(t=t.toLowerCase()),t=t.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3"),t=t.replace(s,e.separator),t=t.replace(/\\/g,""),e.separator&&(t=eh(t,e.separator)),n&&(t=`_${t}`),r&&(t=`${t}-`),t}a(nh,"slugify");function pt(t,e=!1){return rh(t,e),Ao(t)}a(pt,"validateAndSanitizeNamespace");function Ao(t){return t.normalize("NFC").trim()}a(Ao,"sanitizeNamespace");function rh(t,e=!1){const n=[];t.trim().length===0&&n.push("Cannot be empty"),t.trim().length>wo&&n.push(`Cannot be longer than ${wo} characters`);const r=[[/:/,"Colon"],[/\u0000/,"Null"],[/\u0001/,"Start of Heading"],[/\u0002/,"Start of Text"],[/\u0003/,"End of Text"],[/\u0004/,"End of Transmission"],[/\u0005/,"Enquiry"],[/\u0006/,"Acknowledge"],[/\u0007/,"Bell"],[/\u0008/,"Backspace"],[/\u0009/,"Horizontal Tab"],[/\u000A/,"Line Feed"],[/\u000B/,"Vertical Tab"],[/\u000C/,"Form Feed"],[/\u000D/,"Carriage Return"],[/\u000E/,"Shift Out"],[/\u000F/,"Shift In"],[/\u0010/,"Data Link Escape"],[/\u0011/,"Device Control 1"],[/\u0012/,"Device Control 2"],[/\u0013/,"Device Control 3"],[/\u0014/,"Device Control 4"],[/\u0015/,"Negative Acknowledge"],[/\u0016/,"Synchronous Idle"],[/\u0017/,"End of Transmission Block"],[/\u0018/,"Cancel"],[/\u0019/,"End of Medium"],[/\u001A/,"Substitute"],[/\u001B/,"Escape"],[/\u001C/,"File Separator"],[/\u001D/,"Group Separator"],[/\u001E/,"Record Separator"],[/\u001F/,"Unit Separator"],[/\u007F/,"Delete"],[/\u0080/,"Padding Character"],[/\u0081/,"High Octet Preset"],[/\u0082/,"Break Permitted Here"],[/\u0083/,"No Break Here"],[/\u0084/,"Index"],[/\u0085/,"Next Line"],[/\u0086/,"Start of Selected Area"],[/\u0087/,"End of Selected Area"],[/\u0088/,"Character Tabulation Set"],[/\u0089/,"Character Tabulation with Justification"],[/\u008A/,"Line Tabulation Set"],[/\u008B/,"Partial Line Forward"],[/\u008C/,"Partial Line Backward"],[/\u008D/,"Reverse Line Feed"],[/\u008E/,"Single Shift Two"],[/\u008F/,"Single Shift Three"],[/\u0090/,"Device Control String"],[/\u0091/,"Private Use One"],[/\u0092/,"Private Use Two"],[/\u0093/,"Set Transmit State"],[/\u0094/,"Cancel Character"],[/\u0095/,"Message Waiting"],[/\u0096/,"Start of Protected Area"],[/\u0097/,"End of Protected Area"],[/\u0098/,"Start of String"],[/\u0099/,"Single Graphic Character Introducer"],[/\u009A/,"Single Character Introducer"],[/\u009B/,"Control Sequence Introducer"],[/\u009C/,"String Terminator"],[/\u009D/,"Operating System Command"],[/\u009E/,"Privacy Message"],[/\u009F/,"Application Program Command"],[/\u00A0/,"Non-breaking Space"],[/\u00AD/,"Soft Hyphen"],[/\u200B/,"Zero-width Space"],[/\u200C/,"Zero-width Non-joiner"],[/\u200D/,"Zero-width Joiner"],[/\u200E/,"Left-to-right Mark"],[/\u200F/,"Right-to-left Mark"],[/\u202A/,"Left-to-right Embedding"],[/\u202B/,"Right-to-left Embedding"],[/\u202C/,"Pop Directional Formatting"],[/\u202D/,"Left-to-right Override"],[/\u202E/,"Right-to-left Override"],[/\uFEFF/,"Byte Order Mark (BOM)"]];e||r.push([/\*/,"Asterisk"]);for(const[i,s]of r){const o=t.match(i);if(o){const l=JSON.stringify(o[0]).slice(1,-1);n.push(`Forbidden character: ${s}: "${l}"`)}}if(n.length>0)throw new Error(`Invalid namespace "${t}":
|
|
9
|
+
`,Rt="yanki",ii=!0,ko=60,Mf="Yanki",Kn="(Empty)",$f=V("root",[V("element",{properties:{},tagName:"p"},[V("element",{properties:{},tagName:"em"},[V("text",Kn)])])]),Bf="content",qf="metadata",zf="metadata",Uf=!0,So=120,Yn="Untitled",si=["avif","gif","ico","jpeg","jpg","png","svg","tif","tiff","webp"],oi=["3gp","aac","avi","flac","flv","m4a","mkv","mov","mp3","mp4","mpeg","mpg","oga","ogg","ogv","ogx","opus","spx","swf","wav","webm"],ai=typeof window>"u"?typeof process>"u"?"other":"node":"browser";ai==="browser"?/windows/i.test(navigator.userAgent)||/mac/i.test(navigator.userAgent):ai==="node"&&(process.platform==="win32"||process.platform);function Ge(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}a(Ge,"assertPath$2");function xo(t,e){for(var n="",r=0,i=-1,s=0,o,l=0;l<=t.length;++l){if(l<t.length)o=t.charCodeAt(l);else{if(o===47)break;o=47}if(o===47){if(!(i===l-1||s===1))if(i!==l-1&&s===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){u===-1?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=l,s=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=l,s=0;continue}}e&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+t.slice(i+1,l):n=t.slice(i+1,l),r=l-i-1;i=l,s=0}else o===46&&s!==-1?++s:s=-1}return n}a(xo,"normalizeStringPosix");function jf(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+t+r:r}a(jf,"_format");var W={process_cwd:"",setCWD:a(function(e){W.process_cwd=e},"setCWD"),resolve:a(function(){for(var e="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var s;i>=0?s=arguments[i]:(r===void 0&&(r=W.process_cwd),s=r),Ge(s),s.length!==0&&s+"/"!==e&&(e=s+"/"+e,n=s.charCodeAt(0)===47)}return e=xo(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},"resolve"),normalize:a(function(e){if(Ge(e),e.length===0)return".";var n=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=xo(e,!n),e.length===0&&!n&&(e="."),e.length>0&&r&&(e+="/"),n?"/"+e:e},"normalize"),isAbsolute:a(function(e){return Ge(e),e.length>0&&e.charCodeAt(0)===47},"isAbsolute"),join:a(function(){if(arguments.length===0)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];Ge(r),r.length>0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":W.normalize(e)},"join"),relative:a(function(e,n){if(Ge(e),Ge(n),e===n||(e=W.resolve(e),n=W.resolve(n),e===n))return"";for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var i=e.length,s=i-r,o=1;o<n.length&&n.charCodeAt(o)===47;++o);for(var l=n.length,u=l-o,c=s<u?s:u,h=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(n.charCodeAt(o+f)===47)return n.slice(o+f+1);if(f===0)return n.slice(o+f)}else s>c&&(e.charCodeAt(r+f)===47?h=f:f===0&&(h=0));break}var p=e.charCodeAt(r+f),d=n.charCodeAt(o+f);if(p!==d)break;p===47&&(h=f)}var m="";for(f=r+h+1;f<=i;++f)(f===i||e.charCodeAt(f)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+n.slice(o+h):(o+=h,n.charCodeAt(o)===47&&++o,n.slice(o))},"relative"),_makeLong:a(function(e){return e},"_makeLong"),dirname:a(function(e){if(Ge(e),e.length===0)return".";for(var n=e.charCodeAt(0),r=n===47,i=-1,s=!0,o=e.length-1;o>=1;--o)if(n=e.charCodeAt(o),n===47){if(!s){i=o;break}}else s=!1;return i===-1?r?"/":".":r&&i===1?"//":e.slice(0,i)},"dirname"),basename:a(function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ge(e);var r=0,i=-1,s=!0,o;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var l=n.length-1,u=-1;for(o=e.length-1;o>=0;--o){var c=e.charCodeAt(o);if(c===47){if(!s){r=o+1;break}}else u===-1&&(s=!1,u=o+1),l>=0&&(c===n.charCodeAt(l)?--l===-1&&(i=o):(l=-1,i=u))}return r===i?i=u:i===-1&&(i=e.length),e.slice(r,i)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!s){r=o+1;break}}else i===-1&&(s=!1,i=o+1);return i===-1?"":e.slice(r,i)}},"basename"),extname:a(function(e){Ge(e);for(var n=-1,r=0,i=-1,s=!0,o=0,l=e.length-1;l>=0;--l){var u=e.charCodeAt(l);if(u===47){if(!s){r=l+1;break}continue}i===-1&&(s=!1,i=l+1),u===46?n===-1?n=l:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?"":e.slice(n,i)},"extname"),format:a(function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return jf("/",e)},"format"),parse:a(function(e){Ge(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;var r=e.charCodeAt(0),i=r===47,s;i?(n.root="/",s=1):s=0;for(var o=-1,l=0,u=-1,c=!0,h=e.length-1,f=0;h>=s;--h){if(r=e.charCodeAt(h),r===47){if(!c){l=h+1;break}continue}u===-1&&(c=!1,u=h+1),r===46?o===-1?o=h:f!==1&&(f=1):o!==-1&&(f=-1)}return o===-1||u===-1||f===0||f===1&&o===u-1&&o===l+1?u!==-1&&(l===0&&i?n.base=n.name=e.slice(1,u):n.base=n.name=e.slice(l,u)):(l===0&&i?(n.name=e.slice(1,o),n.base=e.slice(1,u)):(n.name=e.slice(l,o),n.base=e.slice(l,u)),n.ext=e.slice(o,u)),l>0?n.dir=e.slice(0,l-1):i&&(n.dir="/"),n},"parse"),sep:"/",delimiter:":",win32:null,posix:null};W.posix=W;var Gf=Object.defineProperty,vo=a((t,e)=>Gf(t,"name",{value:e,configurable:!0}),"a");const Jn=typeof window>"u"?typeof process>"u"?"other":"node":"browser",_o=Jn==="browser"?/windows/i.test(navigator.userAgent)?"windows":/mac/i.test(navigator.userAgent)?"mac":"other":Jn==="node"?process.platform==="win32"?"windows":process.platform==="darwin"?"mac":"other":"other";let li=0;const Hf=5e3;let Co=0;const Vf=100;async function ui(){if(_o==="mac"&&Jn==="node"){const{openApp:t}=await import("./index-UHZxbkBe.js");if(Co>=Vf){console.warn("Too many Anki App launch attempts this session, ignoring");return}(li===0||Date.now()-li>Hf)&&(console.warn("Attempting to launch Anki app"),li=Date.now(),Co++,await t("/Applications/Anki.app",{background:!0,newInstance:!1,wait:!1}))}else console.warn("Automatic Anki App launch is only supported on Mac OS in Node.js environment")}a(ui,"h"),vo(ui,"launchAnkiApp");const it={autoLaunch:!1,fetchAdapter:fetch.bind(globalThis),host:"http://127.0.0.1",key:void 0,port:8765,version:6};class pn{static{a(this,"f")}static{vo(this,"YankiConnect")}autoLaunch;fetchAdapter;host;key;port;version;card={answerCards:this.build("answerCards"),areDue:this.build("areDue"),areSuspended:this.build("areSuspended"),cardsInfo:this.build("cardsInfo"),cardsModTime:this.build("cardsModTime"),cardsToNotes:this.build("cardsToNotes"),findCards:this.build("findCards"),forgetCards:this.build("forgetCards"),getEaseFactors:this.build("getEaseFactors"),getIntervals:this.build("getIntervals"),relearnCards:this.build("relearnCards"),setEaseFactors:this.build("setEaseFactors"),setSpecificValueOfCard:this.build("setSpecificValueOfCard"),suspend:this.build("suspend"),suspended:this.build("suspended"),unsuspend:this.build("unsuspend")};deck={changeDeck:this.build("changeDeck"),cloneDeckConfigId:this.build("cloneDeckConfigId"),createDeck:this.build("createDeck"),deckNames:this.build("deckNames"),deckNamesAndIds:this.build("deckNamesAndIds"),deleteDecks:this.build("deleteDecks"),getDeckConfig:this.build("getDeckConfig"),getDeckStats:this.build("getDeckStats"),getDecks:this.build("getDecks"),removeDeckConfigId:this.build("removeDeckConfigId"),saveDeckConfig:this.build("saveDeckConfig"),setDeckConfigId:this.build("setDeckConfigId")};graphical={guiAddCards:this.build("guiAddCards"),guiAnswerCard:this.build("guiAnswerCard"),guiBrowse:this.build("guiBrowse"),guiCheckDatabase:this.build("guiCheckDatabase"),guiCurrentCard:this.build("guiCurrentCard"),guiDeckBrowser:this.build("guiDeckBrowser"),guiDeckOverview:this.build("guiDeckOverview"),guiDeckReview:this.build("guiDeckReview"),guiEditNote:this.build("guiEditNote"),guiExitAnki:this.build("guiExitAnki"),guiImportFile:this.build("guiImportFile"),guiSelectNote:this.build("guiSelectNote"),guiSelectedNotes:this.build("guiSelectedNotes"),guiShowAnswer:this.build("guiShowAnswer"),guiShowQuestion:this.build("guiShowQuestion"),guiStartCardTimer:this.build("guiStartCardTimer"),guiUndo:this.build("guiUndo")};media={deleteMediaFile:this.build("deleteMediaFile"),getMediaDirPath:this.build("getMediaDirPath"),getMediaFilesNames:this.build("getMediaFilesNames"),retrieveMediaFile:this.build("retrieveMediaFile"),storeMediaFile:this.build("storeMediaFile")};miscellaneous={apiReflect:this.build("apiReflect"),exportPackage:this.build("exportPackage"),getProfiles:this.build("getProfiles"),importPackage:this.build("importPackage"),loadProfile:this.build("loadProfile"),multi:this.build("multi"),reloadCollection:this.build("reloadCollection"),requestPermission:this.build("requestPermission"),sync:this.build("sync"),version:this.build("version")};model={createModel:this.build("createModel"),findAndReplaceInModels:this.build("findAndReplaceInModels"),findModelsById:this.build("findModelsById"),findModelsByName:this.build("findModelsByName"),modelFieldAdd:this.build("modelFieldAdd"),modelFieldDescriptions:this.build("modelFieldDescriptions"),modelFieldFonts:this.build("modelFieldFonts"),modelFieldNames:this.build("modelFieldNames"),modelFieldRemove:this.build("modelFieldRemove"),modelFieldRename:this.build("modelFieldRename"),modelFieldReposition:this.build("modelFieldReposition"),modelFieldSetDescription:this.build("modelFieldSetDescription"),modelFieldSetFont:this.build("modelFieldSetFont"),modelFieldSetFontSize:this.build("modelFieldSetFontSize"),modelFieldsOnTemplates:this.build("modelFieldsOnTemplates"),modelNames:this.build("modelNames"),modelNamesAndIds:this.build("modelNamesAndIds"),modelStyling:this.build("modelStyling"),modelTemplateAdd:this.build("modelTemplateAdd"),modelTemplateRemove:this.build("modelTemplateRemove"),modelTemplateRename:this.build("modelTemplateRename"),modelTemplateReposition:this.build("modelTemplateReposition"),modelTemplates:this.build("modelTemplates"),updateModelStyling:this.build("updateModelStyling"),updateModelTemplates:this.build("updateModelTemplates")};note={addNote:this.build("addNote"),addNotes:this.build("addNotes"),addTags:this.build("addTags"),canAddNotes:this.build("canAddNotes"),canAddNotesWithErrorDetail:this.build("canAddNotesWithErrorDetail"),clearUnusedTags:this.build("clearUnusedTags"),deleteNotes:this.build("deleteNotes"),findNotes:this.build("findNotes"),getNoteTags:this.build("getNoteTags"),getTags:this.build("getTags"),notesInfo:this.build("notesInfo"),removeEmptyNotes:this.build("removeEmptyNotes"),removeTags:this.build("removeTags"),replaceTags:this.build("replaceTags"),replaceTagsInAllNotes:this.build("replaceTagsInAllNotes"),updateNote:this.build("updateNote"),updateNoteFields:this.build("updateNoteFields"),updateNoteModel:this.build("updateNoteModel"),updateNoteTags:this.build("updateNoteTags")};statistic={cardReviews:this.build("cardReviews"),getCollectionStatsHTML:this.build("getCollectionStatsHTML"),getLatestReviewID:this.build("getLatestReviewID"),getNumCardsReviewedByDay:this.build("getNumCardsReviewedByDay"),getNumCardsReviewedToday:this.build("getNumCardsReviewedToday"),getReviewsOfCards:this.build("getReviewsOfCards"),insertReviews:this.build("insertReviews")};constructor(e){if(this.host=e?.host??it.host,this.port=e?.port??it.port,this.version=e?.version??it.version,this.key=e?.key??it.key,this.autoLaunch=e?.autoLaunch??it.autoLaunch,it.fetchAdapter===void 0)throw new Error("A fetch implementation is required");if(this.fetchAdapter=e?.fetchAdapter??it.fetchAdapter,(_o!=="mac"||Jn!=="node")&&this.autoLaunch!==!1&&(console.warn("The autoLaunch option is only supported in a Node environment on macOS"),this.autoLaunch=!1),this.version!==6)throw new Error("YankiConnect currently only supports Anki-Connect API version 6");this.autoLaunch==="immediately"&&ui()}build(e){return async n=>{const r=await this.invoke(e,n);if(r.error!==null)throw new Error(String(r.error));return r.result}}async invoke(e,n){let r,i;try{if(r=await this.fetchAdapter(`${this.host}:${this.port}`,{body:JSON.stringify({action:e,...this.key===void 0?{}:{key:this.key},params:n,version:this.version}),headers:{"Access-Control-Allow-Origin":"*","Content-Type":"application/json"},method:"POST",mode:"cors"}),r===void 0)throw new Error("Anki-Connect response is undefined");if(r.status!==200)throw new Error(`Anki-Connect response status is ${r.status}`);if(i=await r.json(),this.autoLaunch!==!1&&i.error==="collection is not available")throw new Error(i.error)}catch(s){if(this.autoLaunch!==!1)return console.warn("Can't connect to Anki app, retrying with auto-launch..."),await ui(),await new Promise(o=>{setTimeout(o,500)}),n===void 0?this.invoke(e):this.invoke(e,n);throw s}if(!("error"in i))throw new Error("response is missing required error field");if(!("result"in i))throw new Error("response is missing required result field");return i}}const ge={ankiConnectOptions:it,ankiWeb:!1,basePath:void 0,cwd:W.process_cwd,dryRun:!1,fetchAdapter:void 0,fileAdapter:void 0,manageFilenames:"off",maxFilenameLength:60,namespace:"Yanki",obsidianVault:void 0,syncMediaAssets:"local"};async function Ft(){if(ai==="node"){const t=await import("node:fs/promises");if(t===void 0)throw new Error("Issue loading file functions in Node environment");return{async readFile(e){return t.readFile(e,"utf8")},async readFileBuffer(e){return t.readFile(e)},async rename(e,n){await t.rename(e,n)},async stat(e){return t.stat(e)},async writeFile(e,n){await t.writeFile(e,n,"utf8")}}}throw new Error('The "readFile", "readFileBuffer", "rename" , "stat", and "writeFile" function implementations must be provided to the function when running in the browser')}a(Ft,"getDefaultFileAdapter");function dn(){return fetch.bind(globalThis)}a(dn,"getDefaultFetchAdapter");const Wf=a(t=>{const e=new DataView(t);let n="";for(let r=0;r<e.byteLength;r+=4)n+=e.getUint32(r).toString(16).padStart(8,"0");return n},"bufferToHex"),Kf=a(t=>async(e,{outputFormat:n="hex"}={})=>{typeof e=="string"&&(e=new globalThis.TextEncoder().encode(e));const r=await globalThis.crypto.subtle.digest(t,e);return n==="hex"?Wf(r):r},"create$3"),Yf=Kf("SHA-256");async function No(t,e,n=Bf){switch(n){case"content":{const r=await e.readFileBuffer(t);return(await Yf(r)).slice(0,16)}case"metadata":{const{mtimeMs:r,size:i}=await e.stat(t),s=`${r??""}${i??""}`;return s===""?No(t,e,"name"):Wn(s,16)}case"name":return Wn(t,16)}}a(No,"getFileContentHash");function Ao(t,e){const{basePath:n,cwd:r,obsidianMode:i=!0}=e,s=!(i&&n!==void 0&&!t.startsWith(".")),o=W.join(n??"",s?r??"":"",t);return W.normalize(o)}a(Ao,"resolveWithBasePath");function mn(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}a(mn,"escapeStringRegexp");const Jf=[["\xDF","ss"],["\u1E9E","Ss"],["\xE4","ae"],["\xC4","Ae"],["\xF6","oe"],["\xD6","Oe"],["\xFC","ue"],["\xDC","Ue"],["\xC0","A"],["\xC1","A"],["\xC2","A"],["\xC3","A"],["\xC4","Ae"],["\xC5","A"],["\xC6","AE"],["\xC7","C"],["\xC8","E"],["\xC9","E"],["\xCA","E"],["\xCB","E"],["\xCC","I"],["\xCD","I"],["\xCE","I"],["\xCF","I"],["\xD0","D"],["\xD1","N"],["\xD2","O"],["\xD3","O"],["\xD4","O"],["\xD5","O"],["\xD6","Oe"],["\u0150","O"],["\xD8","O"],["\xD9","U"],["\xDA","U"],["\xDB","U"],["\xDC","Ue"],["\u0170","U"],["\xDD","Y"],["\xDE","TH"],["\xDF","ss"],["\xE0","a"],["\xE1","a"],["\xE2","a"],["\xE3","a"],["\xE4","ae"],["\xE5","a"],["\xE6","ae"],["\xE7","c"],["\xE8","e"],["\xE9","e"],["\xEA","e"],["\xEB","e"],["\xEC","i"],["\xED","i"],["\xEE","i"],["\xEF","i"],["\xF0","d"],["\xF1","n"],["\xF2","o"],["\xF3","o"],["\xF4","o"],["\xF5","o"],["\xF6","oe"],["\u0151","o"],["\xF8","o"],["\xF9","u"],["\xFA","u"],["\xFB","u"],["\xFC","ue"],["\u0171","u"],["\xFD","y"],["\xFE","th"],["\xFF","y"],["\u1E9E","SS"],["\xE0","a"],["\xC0","A"],["\xE1","a"],["\xC1","A"],["\xE2","a"],["\xC2","A"],["\xE3","a"],["\xC3","A"],["\xE8","e"],["\xC8","E"],["\xE9","e"],["\xC9","E"],["\xEA","e"],["\xCA","E"],["\xEC","i"],["\xCC","I"],["\xED","i"],["\xCD","I"],["\xF2","o"],["\xD2","O"],["\xF3","o"],["\xD3","O"],["\xF4","o"],["\xD4","O"],["\xF5","o"],["\xD5","O"],["\xF9","u"],["\xD9","U"],["\xFA","u"],["\xDA","U"],["\xFD","y"],["\xDD","Y"],["\u0103","a"],["\u0102","A"],["\u0110","D"],["\u0111","d"],["\u0129","i"],["\u0128","I"],["\u0169","u"],["\u0168","U"],["\u01A1","o"],["\u01A0","O"],["\u01B0","u"],["\u01AF","U"],["\u1EA1","a"],["\u1EA0","A"],["\u1EA3","a"],["\u1EA2","A"],["\u1EA5","a"],["\u1EA4","A"],["\u1EA7","a"],["\u1EA6","A"],["\u1EA9","a"],["\u1EA8","A"],["\u1EAB","a"],["\u1EAA","A"],["\u1EAD","a"],["\u1EAC","A"],["\u1EAF","a"],["\u1EAE","A"],["\u1EB1","a"],["\u1EB0","A"],["\u1EB3","a"],["\u1EB2","A"],["\u1EB5","a"],["\u1EB4","A"],["\u1EB7","a"],["\u1EB6","A"],["\u1EB9","e"],["\u1EB8","E"],["\u1EBB","e"],["\u1EBA","E"],["\u1EBD","e"],["\u1EBC","E"],["\u1EBF","e"],["\u1EBE","E"],["\u1EC1","e"],["\u1EC0","E"],["\u1EC3","e"],["\u1EC2","E"],["\u1EC5","e"],["\u1EC4","E"],["\u1EC7","e"],["\u1EC6","E"],["\u1EC9","i"],["\u1EC8","I"],["\u1ECB","i"],["\u1ECA","I"],["\u1ECD","o"],["\u1ECC","O"],["\u1ECF","o"],["\u1ECE","O"],["\u1ED1","o"],["\u1ED0","O"],["\u1ED3","o"],["\u1ED2","O"],["\u1ED5","o"],["\u1ED4","O"],["\u1ED7","o"],["\u1ED6","O"],["\u1ED9","o"],["\u1ED8","O"],["\u1EDB","o"],["\u1EDA","O"],["\u1EDD","o"],["\u1EDC","O"],["\u1EDF","o"],["\u1EDE","O"],["\u1EE1","o"],["\u1EE0","O"],["\u1EE3","o"],["\u1EE2","O"],["\u1EE5","u"],["\u1EE4","U"],["\u1EE7","u"],["\u1EE6","U"],["\u1EE9","u"],["\u1EE8","U"],["\u1EEB","u"],["\u1EEA","U"],["\u1EED","u"],["\u1EEC","U"],["\u1EEF","u"],["\u1EEE","U"],["\u1EF1","u"],["\u1EF0","U"],["\u1EF3","y"],["\u1EF2","Y"],["\u1EF5","y"],["\u1EF4","Y"],["\u1EF7","y"],["\u1EF6","Y"],["\u1EF9","y"],["\u1EF8","Y"],["\u0621","e"],["\u0622","a"],["\u0623","a"],["\u0624","w"],["\u0625","i"],["\u0626","y"],["\u0627","a"],["\u0628","b"],["\u0629","t"],["\u062A","t"],["\u062B","th"],["\u062C","j"],["\u062D","h"],["\u062E","kh"],["\u062F","d"],["\u0630","dh"],["\u0631","r"],["\u0632","z"],["\u0633","s"],["\u0634","sh"],["\u0635","s"],["\u0636","d"],["\u0637","t"],["\u0638","z"],["\u0639","e"],["\u063A","gh"],["\u0640","_"],["\u0641","f"],["\u0642","q"],["\u0643","k"],["\u0644","l"],["\u0645","m"],["\u0646","n"],["\u0647","h"],["\u0648","w"],["\u0649","a"],["\u064A","y"],["\u064E\u200E","a"],["\u064F","u"],["\u0650\u200E","i"],["\u0660","0"],["\u0661","1"],["\u0662","2"],["\u0663","3"],["\u0664","4"],["\u0665","5"],["\u0666","6"],["\u0667","7"],["\u0668","8"],["\u0669","9"],["\u0686","ch"],["\u06A9","k"],["\u06AF","g"],["\u067E","p"],["\u0698","zh"],["\u06CC","y"],["\u06F0","0"],["\u06F1","1"],["\u06F2","2"],["\u06F3","3"],["\u06F4","4"],["\u06F5","5"],["\u06F6","6"],["\u06F7","7"],["\u06F8","8"],["\u06F9","9"],["\u067C","p"],["\u0681","z"],["\u0685","c"],["\u0689","d"],["\uFEAB","d"],["\uFEAD","r"],["\u0693","r"],["\uFEAF","z"],["\u0696","g"],["\u069A","x"],["\u06AB","g"],["\u06BC","n"],["\u06C0","e"],["\u06D0","e"],["\u06CD","ai"],["\u0679","t"],["\u0688","d"],["\u0691","r"],["\u06BA","n"],["\u06C1","h"],["\u06BE","h"],["\u06D2","e"],["\u0410","A"],["\u0430","a"],["\u0411","B"],["\u0431","b"],["\u0412","V"],["\u0432","v"],["\u0413","G"],["\u0433","g"],["\u0414","D"],["\u0434","d"],["\u044A\u0435","ye"],["\u042A\u0435","Ye"],["\u044A\u0415","yE"],["\u042A\u0415","YE"],["\u0415","E"],["\u0435","e"],["\u0401","Yo"],["\u0451","yo"],["\u0416","Zh"],["\u0436","zh"],["\u0417","Z"],["\u0437","z"],["\u0418","I"],["\u0438","i"],["\u044B\u0439","iy"],["\u042B\u0439","Iy"],["\u042B\u0419","IY"],["\u044B\u0419","iY"],["\u0419","Y"],["\u0439","y"],["\u041A","K"],["\u043A","k"],["\u041B","L"],["\u043B","l"],["\u041C","M"],["\u043C","m"],["\u041D","N"],["\u043D","n"],["\u041E","O"],["\u043E","o"],["\u041F","P"],["\u043F","p"],["\u0420","R"],["\u0440","r"],["\u0421","S"],["\u0441","s"],["\u0422","T"],["\u0442","t"],["\u0423","U"],["\u0443","u"],["\u0424","F"],["\u0444","f"],["\u0425","Kh"],["\u0445","kh"],["\u0426","Ts"],["\u0446","ts"],["\u0427","Ch"],["\u0447","ch"],["\u0428","Sh"],["\u0448","sh"],["\u0429","Sch"],["\u0449","sch"],["\u042A",""],["\u044A",""],["\u042B","Y"],["\u044B","y"],["\u042C",""],["\u044C",""],["\u042D","E"],["\u044D","e"],["\u042E","Yu"],["\u044E","yu"],["\u042F","Ya"],["\u044F","ya"],["\u0103","a"],["\u0102","A"],["\u0219","s"],["\u0218","S"],["\u021B","t"],["\u021A","T"],["\u0163","t"],["\u0162","T"],["\u015F","s"],["\u015E","S"],["\xE7","c"],["\xC7","C"],["\u011F","g"],["\u011E","G"],["\u0131","i"],["\u0130","I"],["\u0561","a"],["\u0531","A"],["\u0562","b"],["\u0532","B"],["\u0563","g"],["\u0533","G"],["\u0564","d"],["\u0534","D"],["\u0565","ye"],["\u0535","Ye"],["\u0566","z"],["\u0536","Z"],["\u0567","e"],["\u0537","E"],["\u0568","y"],["\u0538","Y"],["\u0569","t"],["\u0539","T"],["\u056A","zh"],["\u053A","Zh"],["\u056B","i"],["\u053B","I"],["\u056C","l"],["\u053C","L"],["\u056D","kh"],["\u053D","Kh"],["\u056E","ts"],["\u053E","Ts"],["\u056F","k"],["\u053F","K"],["\u0570","h"],["\u0540","H"],["\u0571","dz"],["\u0541","Dz"],["\u0572","gh"],["\u0542","Gh"],["\u0573","tch"],["\u0543","Tch"],["\u0574","m"],["\u0544","M"],["\u0575","y"],["\u0545","Y"],["\u0576","n"],["\u0546","N"],["\u0577","sh"],["\u0547","Sh"],["\u0578","vo"],["\u0548","Vo"],["\u0579","ch"],["\u0549","Ch"],["\u057A","p"],["\u054A","P"],["\u057B","j"],["\u054B","J"],["\u057C","r"],["\u054C","R"],["\u057D","s"],["\u054D","S"],["\u057E","v"],["\u054E","V"],["\u057F","t"],["\u054F","T"],["\u0580","r"],["\u0550","R"],["\u0581","c"],["\u0551","C"],["\u0578\u0582","u"],["\u0548\u0552","U"],["\u0548\u0582","U"],["\u0583","p"],["\u0553","P"],["\u0584","q"],["\u0554","Q"],["\u0585","o"],["\u0555","O"],["\u0586","f"],["\u0556","F"],["\u0587","yev"],["\u10D0","a"],["\u10D1","b"],["\u10D2","g"],["\u10D3","d"],["\u10D4","e"],["\u10D5","v"],["\u10D6","z"],["\u10D7","t"],["\u10D8","i"],["\u10D9","k"],["\u10DA","l"],["\u10DB","m"],["\u10DC","n"],["\u10DD","o"],["\u10DE","p"],["\u10DF","zh"],["\u10E0","r"],["\u10E1","s"],["\u10E2","t"],["\u10E3","u"],["\u10E4","ph"],["\u10E5","q"],["\u10E6","gh"],["\u10E7","k"],["\u10E8","sh"],["\u10E9","ch"],["\u10EA","ts"],["\u10EB","dz"],["\u10EC","ts"],["\u10ED","tch"],["\u10EE","kh"],["\u10EF","j"],["\u10F0","h"],["\u010D","c"],["\u010F","d"],["\u011B","e"],["\u0148","n"],["\u0159","r"],["\u0161","s"],["\u0165","t"],["\u016F","u"],["\u017E","z"],["\u010C","C"],["\u010E","D"],["\u011A","E"],["\u0147","N"],["\u0158","R"],["\u0160","S"],["\u0164","T"],["\u016E","U"],["\u017D","Z"],["\u0780","h"],["\u0781","sh"],["\u0782","n"],["\u0783","r"],["\u0784","b"],["\u0785","lh"],["\u0786","k"],["\u0787","a"],["\u0788","v"],["\u0789","m"],["\u078A","f"],["\u078B","dh"],["\u078C","th"],["\u078D","l"],["\u078E","g"],["\u078F","gn"],["\u0790","s"],["\u0791","d"],["\u0792","z"],["\u0793","t"],["\u0794","y"],["\u0795","p"],["\u0796","j"],["\u0797","ch"],["\u0798","tt"],["\u0799","hh"],["\u079A","kh"],["\u079B","th"],["\u079C","z"],["\u079D","sh"],["\u079E","s"],["\u079F","d"],["\u07A0","t"],["\u07A1","z"],["\u07A2","a"],["\u07A3","gh"],["\u07A4","q"],["\u07A5","w"],["\u07A6","a"],["\u07A7","aa"],["\u07A8","i"],["\u07A9","ee"],["\u07AA","u"],["\u07AB","oo"],["\u07AC","e"],["\u07AD","ey"],["\u07AE","o"],["\u07AF","oa"],["\u07B0",""],["\u03B1","a"],["\u03B2","v"],["\u03B3","g"],["\u03B4","d"],["\u03B5","e"],["\u03B6","z"],["\u03B7","i"],["\u03B8","th"],["\u03B9","i"],["\u03BA","k"],["\u03BB","l"],["\u03BC","m"],["\u03BD","n"],["\u03BE","ks"],["\u03BF","o"],["\u03C0","p"],["\u03C1","r"],["\u03C3","s"],["\u03C4","t"],["\u03C5","y"],["\u03C6","f"],["\u03C7","x"],["\u03C8","ps"],["\u03C9","o"],["\u03AC","a"],["\u03AD","e"],["\u03AF","i"],["\u03CC","o"],["\u03CD","y"],["\u03AE","i"],["\u03CE","o"],["\u03C2","s"],["\u03CA","i"],["\u03B0","y"],["\u03CB","y"],["\u0390","i"],["\u0391","A"],["\u0392","B"],["\u0393","G"],["\u0394","D"],["\u0395","E"],["\u0396","Z"],["\u0397","I"],["\u0398","TH"],["\u0399","I"],["\u039A","K"],["\u039B","L"],["\u039C","M"],["\u039D","N"],["\u039E","KS"],["\u039F","O"],["\u03A0","P"],["\u03A1","R"],["\u03A3","S"],["\u03A4","T"],["\u03A5","Y"],["\u03A6","F"],["\u03A7","X"],["\u03A8","PS"],["\u03A9","O"],["\u0386","A"],["\u0388","E"],["\u038A","I"],["\u038C","O"],["\u038E","Y"],["\u0389","I"],["\u038F","O"],["\u03AA","I"],["\u03AB","Y"],["\u0101","a"],["\u0113","e"],["\u0123","g"],["\u012B","i"],["\u0137","k"],["\u013C","l"],["\u0146","n"],["\u016B","u"],["\u0100","A"],["\u0112","E"],["\u0122","G"],["\u012A","I"],["\u0136","K"],["\u013B","L"],["\u0145","N"],["\u016A","U"],["\u010D","c"],["\u0161","s"],["\u017E","z"],["\u010C","C"],["\u0160","S"],["\u017D","Z"],["\u0105","a"],["\u010D","c"],["\u0119","e"],["\u0117","e"],["\u012F","i"],["\u0161","s"],["\u0173","u"],["\u016B","u"],["\u017E","z"],["\u0104","A"],["\u010C","C"],["\u0118","E"],["\u0116","E"],["\u012E","I"],["\u0160","S"],["\u0172","U"],["\u016A","U"],["\u040C","Kj"],["\u045C","kj"],["\u0409","Lj"],["\u0459","lj"],["\u040A","Nj"],["\u045A","nj"],["\u0422\u0441","Ts"],["\u0442\u0441","ts"],["\u0105","a"],["\u0107","c"],["\u0119","e"],["\u0142","l"],["\u0144","n"],["\u015B","s"],["\u017A","z"],["\u017C","z"],["\u0104","A"],["\u0106","C"],["\u0118","E"],["\u0141","L"],["\u0143","N"],["\u015A","S"],["\u0179","Z"],["\u017B","Z"],["\u0404","Ye"],["\u0406","I"],["\u0407","Yi"],["\u0490","G"],["\u0454","ye"],["\u0456","i"],["\u0457","yi"],["\u0491","g"],["\u0132","IJ"],["\u0133","ij"],["\xA2","c"],["\xA5","Y"],["\u07FF","b"],["\u09F3","t"],["\u0AF1","Bo"],["\u0E3F","B"],["\u20A0","CE"],["\u20A1","C"],["\u20A2","Cr"],["\u20A3","F"],["\u20A5","m"],["\u20A6","N"],["\u20A7","Pt"],["\u20A8","Rs"],["\u20A9","W"],["\u20AB","s"],["\u20AC","E"],["\u20AD","K"],["\u20AE","T"],["\u20AF","Dp"],["\u20B0","S"],["\u20B1","P"],["\u20B2","G"],["\u20B3","A"],["\u20B4","S"],["\u20B5","C"],["\u20B6","tt"],["\u20B7","S"],["\u20B8","T"],["\u20B9","R"],["\u20BA","L"],["\u20BD","P"],["\u20BF","B"],["\uFE69","$"],["\uFFE0","c"],["\uFFE5","Y"],["\uFFE6","W"],["\u{1D400}","A"],["\u{1D401}","B"],["\u{1D402}","C"],["\u{1D403}","D"],["\u{1D404}","E"],["\u{1D405}","F"],["\u{1D406}","G"],["\u{1D407}","H"],["\u{1D408}","I"],["\u{1D409}","J"],["\u{1D40A}","K"],["\u{1D40B}","L"],["\u{1D40C}","M"],["\u{1D40D}","N"],["\u{1D40E}","O"],["\u{1D40F}","P"],["\u{1D410}","Q"],["\u{1D411}","R"],["\u{1D412}","S"],["\u{1D413}","T"],["\u{1D414}","U"],["\u{1D415}","V"],["\u{1D416}","W"],["\u{1D417}","X"],["\u{1D418}","Y"],["\u{1D419}","Z"],["\u{1D41A}","a"],["\u{1D41B}","b"],["\u{1D41C}","c"],["\u{1D41D}","d"],["\u{1D41E}","e"],["\u{1D41F}","f"],["\u{1D420}","g"],["\u{1D421}","h"],["\u{1D422}","i"],["\u{1D423}","j"],["\u{1D424}","k"],["\u{1D425}","l"],["\u{1D426}","m"],["\u{1D427}","n"],["\u{1D428}","o"],["\u{1D429}","p"],["\u{1D42A}","q"],["\u{1D42B}","r"],["\u{1D42C}","s"],["\u{1D42D}","t"],["\u{1D42E}","u"],["\u{1D42F}","v"],["\u{1D430}","w"],["\u{1D431}","x"],["\u{1D432}","y"],["\u{1D433}","z"],["\u{1D434}","A"],["\u{1D435}","B"],["\u{1D436}","C"],["\u{1D437}","D"],["\u{1D438}","E"],["\u{1D439}","F"],["\u{1D43A}","G"],["\u{1D43B}","H"],["\u{1D43C}","I"],["\u{1D43D}","J"],["\u{1D43E}","K"],["\u{1D43F}","L"],["\u{1D440}","M"],["\u{1D441}","N"],["\u{1D442}","O"],["\u{1D443}","P"],["\u{1D444}","Q"],["\u{1D445}","R"],["\u{1D446}","S"],["\u{1D447}","T"],["\u{1D448}","U"],["\u{1D449}","V"],["\u{1D44A}","W"],["\u{1D44B}","X"],["\u{1D44C}","Y"],["\u{1D44D}","Z"],["\u{1D44E}","a"],["\u{1D44F}","b"],["\u{1D450}","c"],["\u{1D451}","d"],["\u{1D452}","e"],["\u{1D453}","f"],["\u{1D454}","g"],["\u{1D456}","i"],["\u{1D457}","j"],["\u{1D458}","k"],["\u{1D459}","l"],["\u{1D45A}","m"],["\u{1D45B}","n"],["\u{1D45C}","o"],["\u{1D45D}","p"],["\u{1D45E}","q"],["\u{1D45F}","r"],["\u{1D460}","s"],["\u{1D461}","t"],["\u{1D462}","u"],["\u{1D463}","v"],["\u{1D464}","w"],["\u{1D465}","x"],["\u{1D466}","y"],["\u{1D467}","z"],["\u{1D468}","A"],["\u{1D469}","B"],["\u{1D46A}","C"],["\u{1D46B}","D"],["\u{1D46C}","E"],["\u{1D46D}","F"],["\u{1D46E}","G"],["\u{1D46F}","H"],["\u{1D470}","I"],["\u{1D471}","J"],["\u{1D472}","K"],["\u{1D473}","L"],["\u{1D474}","M"],["\u{1D475}","N"],["\u{1D476}","O"],["\u{1D477}","P"],["\u{1D478}","Q"],["\u{1D479}","R"],["\u{1D47A}","S"],["\u{1D47B}","T"],["\u{1D47C}","U"],["\u{1D47D}","V"],["\u{1D47E}","W"],["\u{1D47F}","X"],["\u{1D480}","Y"],["\u{1D481}","Z"],["\u{1D482}","a"],["\u{1D483}","b"],["\u{1D484}","c"],["\u{1D485}","d"],["\u{1D486}","e"],["\u{1D487}","f"],["\u{1D488}","g"],["\u{1D489}","h"],["\u{1D48A}","i"],["\u{1D48B}","j"],["\u{1D48C}","k"],["\u{1D48D}","l"],["\u{1D48E}","m"],["\u{1D48F}","n"],["\u{1D490}","o"],["\u{1D491}","p"],["\u{1D492}","q"],["\u{1D493}","r"],["\u{1D494}","s"],["\u{1D495}","t"],["\u{1D496}","u"],["\u{1D497}","v"],["\u{1D498}","w"],["\u{1D499}","x"],["\u{1D49A}","y"],["\u{1D49B}","z"],["\u{1D49C}","A"],["\u{1D49E}","C"],["\u{1D49F}","D"],["\u{1D4A2}","g"],["\u{1D4A5}","J"],["\u{1D4A6}","K"],["\u{1D4A9}","N"],["\u{1D4AA}","O"],["\u{1D4AB}","P"],["\u{1D4AC}","Q"],["\u{1D4AE}","S"],["\u{1D4AF}","T"],["\u{1D4B0}","U"],["\u{1D4B1}","V"],["\u{1D4B2}","W"],["\u{1D4B3}","X"],["\u{1D4B4}","Y"],["\u{1D4B5}","Z"],["\u{1D4B6}","a"],["\u{1D4B7}","b"],["\u{1D4B8}","c"],["\u{1D4B9}","d"],["\u{1D4BB}","f"],["\u{1D4BD}","h"],["\u{1D4BE}","i"],["\u{1D4BF}","j"],["\u{1D4C0}","h"],["\u{1D4C1}","l"],["\u{1D4C2}","m"],["\u{1D4C3}","n"],["\u{1D4C5}","p"],["\u{1D4C6}","q"],["\u{1D4C7}","r"],["\u{1D4C8}","s"],["\u{1D4C9}","t"],["\u{1D4CA}","u"],["\u{1D4CB}","v"],["\u{1D4CC}","w"],["\u{1D4CD}","x"],["\u{1D4CE}","y"],["\u{1D4CF}","z"],["\u{1D4D0}","A"],["\u{1D4D1}","B"],["\u{1D4D2}","C"],["\u{1D4D3}","D"],["\u{1D4D4}","E"],["\u{1D4D5}","F"],["\u{1D4D6}","G"],["\u{1D4D7}","H"],["\u{1D4D8}","I"],["\u{1D4D9}","J"],["\u{1D4DA}","K"],["\u{1D4DB}","L"],["\u{1D4DC}","M"],["\u{1D4DD}","N"],["\u{1D4DE}","O"],["\u{1D4DF}","P"],["\u{1D4E0}","Q"],["\u{1D4E1}","R"],["\u{1D4E2}","S"],["\u{1D4E3}","T"],["\u{1D4E4}","U"],["\u{1D4E5}","V"],["\u{1D4E6}","W"],["\u{1D4E7}","X"],["\u{1D4E8}","Y"],["\u{1D4E9}","Z"],["\u{1D4EA}","a"],["\u{1D4EB}","b"],["\u{1D4EC}","c"],["\u{1D4ED}","d"],["\u{1D4EE}","e"],["\u{1D4EF}","f"],["\u{1D4F0}","g"],["\u{1D4F1}","h"],["\u{1D4F2}","i"],["\u{1D4F3}","j"],["\u{1D4F4}","k"],["\u{1D4F5}","l"],["\u{1D4F6}","m"],["\u{1D4F7}","n"],["\u{1D4F8}","o"],["\u{1D4F9}","p"],["\u{1D4FA}","q"],["\u{1D4FB}","r"],["\u{1D4FC}","s"],["\u{1D4FD}","t"],["\u{1D4FE}","u"],["\u{1D4FF}","v"],["\u{1D500}","w"],["\u{1D501}","x"],["\u{1D502}","y"],["\u{1D503}","z"],["\u{1D504}","A"],["\u{1D505}","B"],["\u{1D507}","D"],["\u{1D508}","E"],["\u{1D509}","F"],["\u{1D50A}","G"],["\u{1D50D}","J"],["\u{1D50E}","K"],["\u{1D50F}","L"],["\u{1D510}","M"],["\u{1D511}","N"],["\u{1D512}","O"],["\u{1D513}","P"],["\u{1D514}","Q"],["\u{1D516}","S"],["\u{1D517}","T"],["\u{1D518}","U"],["\u{1D519}","V"],["\u{1D51A}","W"],["\u{1D51B}","X"],["\u{1D51C}","Y"],["\u{1D51E}","a"],["\u{1D51F}","b"],["\u{1D520}","c"],["\u{1D521}","d"],["\u{1D522}","e"],["\u{1D523}","f"],["\u{1D524}","g"],["\u{1D525}","h"],["\u{1D526}","i"],["\u{1D527}","j"],["\u{1D528}","k"],["\u{1D529}","l"],["\u{1D52A}","m"],["\u{1D52B}","n"],["\u{1D52C}","o"],["\u{1D52D}","p"],["\u{1D52E}","q"],["\u{1D52F}","r"],["\u{1D530}","s"],["\u{1D531}","t"],["\u{1D532}","u"],["\u{1D533}","v"],["\u{1D534}","w"],["\u{1D535}","x"],["\u{1D536}","y"],["\u{1D537}","z"],["\u{1D538}","A"],["\u{1D539}","B"],["\u{1D53B}","D"],["\u{1D53C}","E"],["\u{1D53D}","F"],["\u{1D53E}","G"],["\u{1D540}","I"],["\u{1D541}","J"],["\u{1D542}","K"],["\u{1D543}","L"],["\u{1D544}","M"],["\u{1D546}","N"],["\u{1D54A}","S"],["\u{1D54B}","T"],["\u{1D54C}","U"],["\u{1D54D}","V"],["\u{1D54E}","W"],["\u{1D54F}","X"],["\u{1D550}","Y"],["\u{1D552}","a"],["\u{1D553}","b"],["\u{1D554}","c"],["\u{1D555}","d"],["\u{1D556}","e"],["\u{1D557}","f"],["\u{1D558}","g"],["\u{1D559}","h"],["\u{1D55A}","i"],["\u{1D55B}","j"],["\u{1D55C}","k"],["\u{1D55D}","l"],["\u{1D55E}","m"],["\u{1D55F}","n"],["\u{1D560}","o"],["\u{1D561}","p"],["\u{1D562}","q"],["\u{1D563}","r"],["\u{1D564}","s"],["\u{1D565}","t"],["\u{1D566}","u"],["\u{1D567}","v"],["\u{1D568}","w"],["\u{1D569}","x"],["\u{1D56A}","y"],["\u{1D56B}","z"],["\u{1D56C}","A"],["\u{1D56D}","B"],["\u{1D56E}","C"],["\u{1D56F}","D"],["\u{1D570}","E"],["\u{1D571}","F"],["\u{1D572}","G"],["\u{1D573}","H"],["\u{1D574}","I"],["\u{1D575}","J"],["\u{1D576}","K"],["\u{1D577}","L"],["\u{1D578}","M"],["\u{1D579}","N"],["\u{1D57A}","O"],["\u{1D57B}","P"],["\u{1D57C}","Q"],["\u{1D57D}","R"],["\u{1D57E}","S"],["\u{1D57F}","T"],["\u{1D580}","U"],["\u{1D581}","V"],["\u{1D582}","W"],["\u{1D583}","X"],["\u{1D584}","Y"],["\u{1D585}","Z"],["\u{1D586}","a"],["\u{1D587}","b"],["\u{1D588}","c"],["\u{1D589}","d"],["\u{1D58A}","e"],["\u{1D58B}","f"],["\u{1D58C}","g"],["\u{1D58D}","h"],["\u{1D58E}","i"],["\u{1D58F}","j"],["\u{1D590}","k"],["\u{1D591}","l"],["\u{1D592}","m"],["\u{1D593}","n"],["\u{1D594}","o"],["\u{1D595}","p"],["\u{1D596}","q"],["\u{1D597}","r"],["\u{1D598}","s"],["\u{1D599}","t"],["\u{1D59A}","u"],["\u{1D59B}","v"],["\u{1D59C}","w"],["\u{1D59D}","x"],["\u{1D59E}","y"],["\u{1D59F}","z"],["\u{1D5A0}","A"],["\u{1D5A1}","B"],["\u{1D5A2}","C"],["\u{1D5A3}","D"],["\u{1D5A4}","E"],["\u{1D5A5}","F"],["\u{1D5A6}","G"],["\u{1D5A7}","H"],["\u{1D5A8}","I"],["\u{1D5A9}","J"],["\u{1D5AA}","K"],["\u{1D5AB}","L"],["\u{1D5AC}","M"],["\u{1D5AD}","N"],["\u{1D5AE}","O"],["\u{1D5AF}","P"],["\u{1D5B0}","Q"],["\u{1D5B1}","R"],["\u{1D5B2}","S"],["\u{1D5B3}","T"],["\u{1D5B4}","U"],["\u{1D5B5}","V"],["\u{1D5B6}","W"],["\u{1D5B7}","X"],["\u{1D5B8}","Y"],["\u{1D5B9}","Z"],["\u{1D5BA}","a"],["\u{1D5BB}","b"],["\u{1D5BC}","c"],["\u{1D5BD}","d"],["\u{1D5BE}","e"],["\u{1D5BF}","f"],["\u{1D5C0}","g"],["\u{1D5C1}","h"],["\u{1D5C2}","i"],["\u{1D5C3}","j"],["\u{1D5C4}","k"],["\u{1D5C5}","l"],["\u{1D5C6}","m"],["\u{1D5C7}","n"],["\u{1D5C8}","o"],["\u{1D5C9}","p"],["\u{1D5CA}","q"],["\u{1D5CB}","r"],["\u{1D5CC}","s"],["\u{1D5CD}","t"],["\u{1D5CE}","u"],["\u{1D5CF}","v"],["\u{1D5D0}","w"],["\u{1D5D1}","x"],["\u{1D5D2}","y"],["\u{1D5D3}","z"],["\u{1D5D4}","A"],["\u{1D5D5}","B"],["\u{1D5D6}","C"],["\u{1D5D7}","D"],["\u{1D5D8}","E"],["\u{1D5D9}","F"],["\u{1D5DA}","G"],["\u{1D5DB}","H"],["\u{1D5DC}","I"],["\u{1D5DD}","J"],["\u{1D5DE}","K"],["\u{1D5DF}","L"],["\u{1D5E0}","M"],["\u{1D5E1}","N"],["\u{1D5E2}","O"],["\u{1D5E3}","P"],["\u{1D5E4}","Q"],["\u{1D5E5}","R"],["\u{1D5E6}","S"],["\u{1D5E7}","T"],["\u{1D5E8}","U"],["\u{1D5E9}","V"],["\u{1D5EA}","W"],["\u{1D5EB}","X"],["\u{1D5EC}","Y"],["\u{1D5ED}","Z"],["\u{1D5EE}","a"],["\u{1D5EF}","b"],["\u{1D5F0}","c"],["\u{1D5F1}","d"],["\u{1D5F2}","e"],["\u{1D5F3}","f"],["\u{1D5F4}","g"],["\u{1D5F5}","h"],["\u{1D5F6}","i"],["\u{1D5F7}","j"],["\u{1D5F8}","k"],["\u{1D5F9}","l"],["\u{1D5FA}","m"],["\u{1D5FB}","n"],["\u{1D5FC}","o"],["\u{1D5FD}","p"],["\u{1D5FE}","q"],["\u{1D5FF}","r"],["\u{1D600}","s"],["\u{1D601}","t"],["\u{1D602}","u"],["\u{1D603}","v"],["\u{1D604}","w"],["\u{1D605}","x"],["\u{1D606}","y"],["\u{1D607}","z"],["\u{1D608}","A"],["\u{1D609}","B"],["\u{1D60A}","C"],["\u{1D60B}","D"],["\u{1D60C}","E"],["\u{1D60D}","F"],["\u{1D60E}","G"],["\u{1D60F}","H"],["\u{1D610}","I"],["\u{1D611}","J"],["\u{1D612}","K"],["\u{1D613}","L"],["\u{1D614}","M"],["\u{1D615}","N"],["\u{1D616}","O"],["\u{1D617}","P"],["\u{1D618}","Q"],["\u{1D619}","R"],["\u{1D61A}","S"],["\u{1D61B}","T"],["\u{1D61C}","U"],["\u{1D61D}","V"],["\u{1D61E}","W"],["\u{1D61F}","X"],["\u{1D620}","Y"],["\u{1D621}","Z"],["\u{1D622}","a"],["\u{1D623}","b"],["\u{1D624}","c"],["\u{1D625}","d"],["\u{1D626}","e"],["\u{1D627}","f"],["\u{1D628}","g"],["\u{1D629}","h"],["\u{1D62A}","i"],["\u{1D62B}","j"],["\u{1D62C}","k"],["\u{1D62D}","l"],["\u{1D62E}","m"],["\u{1D62F}","n"],["\u{1D630}","o"],["\u{1D631}","p"],["\u{1D632}","q"],["\u{1D633}","r"],["\u{1D634}","s"],["\u{1D635}","t"],["\u{1D636}","u"],["\u{1D637}","v"],["\u{1D638}","w"],["\u{1D639}","x"],["\u{1D63A}","y"],["\u{1D63B}","z"],["\u{1D63C}","A"],["\u{1D63D}","B"],["\u{1D63E}","C"],["\u{1D63F}","D"],["\u{1D640}","E"],["\u{1D641}","F"],["\u{1D642}","G"],["\u{1D643}","H"],["\u{1D644}","I"],["\u{1D645}","J"],["\u{1D646}","K"],["\u{1D647}","L"],["\u{1D648}","M"],["\u{1D649}","N"],["\u{1D64A}","O"],["\u{1D64B}","P"],["\u{1D64C}","Q"],["\u{1D64D}","R"],["\u{1D64E}","S"],["\u{1D64F}","T"],["\u{1D650}","U"],["\u{1D651}","V"],["\u{1D652}","W"],["\u{1D653}","X"],["\u{1D654}","Y"],["\u{1D655}","Z"],["\u{1D656}","a"],["\u{1D657}","b"],["\u{1D658}","c"],["\u{1D659}","d"],["\u{1D65A}","e"],["\u{1D65B}","f"],["\u{1D65C}","g"],["\u{1D65D}","h"],["\u{1D65E}","i"],["\u{1D65F}","j"],["\u{1D660}","k"],["\u{1D661}","l"],["\u{1D662}","m"],["\u{1D663}","n"],["\u{1D664}","o"],["\u{1D665}","p"],["\u{1D666}","q"],["\u{1D667}","r"],["\u{1D668}","s"],["\u{1D669}","t"],["\u{1D66A}","u"],["\u{1D66B}","v"],["\u{1D66C}","w"],["\u{1D66D}","x"],["\u{1D66E}","y"],["\u{1D66F}","z"],["\u{1D670}","A"],["\u{1D671}","B"],["\u{1D672}","C"],["\u{1D673}","D"],["\u{1D674}","E"],["\u{1D675}","F"],["\u{1D676}","G"],["\u{1D677}","H"],["\u{1D678}","I"],["\u{1D679}","J"],["\u{1D67A}","K"],["\u{1D67B}","L"],["\u{1D67C}","M"],["\u{1D67D}","N"],["\u{1D67E}","O"],["\u{1D67F}","P"],["\u{1D680}","Q"],["\u{1D681}","R"],["\u{1D682}","S"],["\u{1D683}","T"],["\u{1D684}","U"],["\u{1D685}","V"],["\u{1D686}","W"],["\u{1D687}","X"],["\u{1D688}","Y"],["\u{1D689}","Z"],["\u{1D68A}","a"],["\u{1D68B}","b"],["\u{1D68C}","c"],["\u{1D68D}","d"],["\u{1D68E}","e"],["\u{1D68F}","f"],["\u{1D690}","g"],["\u{1D691}","h"],["\u{1D692}","i"],["\u{1D693}","j"],["\u{1D694}","k"],["\u{1D695}","l"],["\u{1D696}","m"],["\u{1D697}","n"],["\u{1D698}","o"],["\u{1D699}","p"],["\u{1D69A}","q"],["\u{1D69B}","r"],["\u{1D69C}","s"],["\u{1D69D}","t"],["\u{1D69E}","u"],["\u{1D69F}","v"],["\u{1D6A0}","w"],["\u{1D6A1}","x"],["\u{1D6A2}","y"],["\u{1D6A3}","z"],["\u{1D6A4}","l"],["\u{1D6A5}","j"],["\u{1D6E2}","A"],["\u{1D6E3}","B"],["\u{1D6E4}","G"],["\u{1D6E5}","D"],["\u{1D6E6}","E"],["\u{1D6E7}","Z"],["\u{1D6E8}","I"],["\u{1D6E9}","TH"],["\u{1D6EA}","I"],["\u{1D6EB}","K"],["\u{1D6EC}","L"],["\u{1D6ED}","M"],["\u{1D6EE}","N"],["\u{1D6EF}","KS"],["\u{1D6F0}","O"],["\u{1D6F1}","P"],["\u{1D6F2}","R"],["\u{1D6F3}","TH"],["\u{1D6F4}","S"],["\u{1D6F5}","T"],["\u{1D6F6}","Y"],["\u{1D6F7}","F"],["\u{1D6F8}","x"],["\u{1D6F9}","PS"],["\u{1D6FA}","O"],["\u{1D6FB}","D"],["\u{1D6FC}","a"],["\u{1D6FD}","b"],["\u{1D6FE}","g"],["\u{1D6FF}","d"],["\u{1D700}","e"],["\u{1D701}","z"],["\u{1D702}","i"],["\u{1D703}","th"],["\u{1D704}","i"],["\u{1D705}","k"],["\u{1D706}","l"],["\u{1D707}","m"],["\u{1D708}","n"],["\u{1D709}","ks"],["\u{1D70A}","o"],["\u{1D70B}","p"],["\u{1D70C}","r"],["\u{1D70D}","s"],["\u{1D70E}","s"],["\u{1D70F}","t"],["\u{1D710}","y"],["\u{1D711}","f"],["\u{1D712}","x"],["\u{1D713}","ps"],["\u{1D714}","o"],["\u{1D715}","d"],["\u{1D716}","E"],["\u{1D717}","TH"],["\u{1D718}","K"],["\u{1D719}","f"],["\u{1D71A}","r"],["\u{1D71B}","p"],["\u{1D71C}","A"],["\u{1D71D}","V"],["\u{1D71E}","G"],["\u{1D71F}","D"],["\u{1D720}","E"],["\u{1D721}","Z"],["\u{1D722}","I"],["\u{1D723}","TH"],["\u{1D724}","I"],["\u{1D725}","K"],["\u{1D726}","L"],["\u{1D727}","M"],["\u{1D728}","N"],["\u{1D729}","KS"],["\u{1D72A}","O"],["\u{1D72B}","P"],["\u{1D72C}","S"],["\u{1D72D}","TH"],["\u{1D72E}","S"],["\u{1D72F}","T"],["\u{1D730}","Y"],["\u{1D731}","F"],["\u{1D732}","X"],["\u{1D733}","PS"],["\u{1D734}","O"],["\u{1D735}","D"],["\u{1D736}","a"],["\u{1D737}","v"],["\u{1D738}","g"],["\u{1D739}","d"],["\u{1D73A}","e"],["\u{1D73B}","z"],["\u{1D73C}","i"],["\u{1D73D}","th"],["\u{1D73E}","i"],["\u{1D73F}","k"],["\u{1D740}","l"],["\u{1D741}","m"],["\u{1D742}","n"],["\u{1D743}","ks"],["\u{1D744}","o"],["\u{1D745}","p"],["\u{1D746}","r"],["\u{1D747}","s"],["\u{1D748}","s"],["\u{1D749}","t"],["\u{1D74A}","y"],["\u{1D74B}","f"],["\u{1D74C}","x"],["\u{1D74D}","ps"],["\u{1D74E}","o"],["\u{1D74F}","a"],["\u{1D750}","e"],["\u{1D751}","i"],["\u{1D752}","k"],["\u{1D753}","f"],["\u{1D754}","r"],["\u{1D755}","p"],["\u{1D756}","A"],["\u{1D757}","B"],["\u{1D758}","G"],["\u{1D759}","D"],["\u{1D75A}","E"],["\u{1D75B}","Z"],["\u{1D75C}","I"],["\u{1D75D}","TH"],["\u{1D75E}","I"],["\u{1D75F}","K"],["\u{1D760}","L"],["\u{1D761}","M"],["\u{1D762}","N"],["\u{1D763}","KS"],["\u{1D764}","O"],["\u{1D765}","P"],["\u{1D766}","R"],["\u{1D767}","TH"],["\u{1D768}","S"],["\u{1D769}","T"],["\u{1D76A}","Y"],["\u{1D76B}","F"],["\u{1D76C}","X"],["\u{1D76D}","PS"],["\u{1D76E}","O"],["\u{1D76F}","D"],["\u{1D770}","a"],["\u{1D771}","v"],["\u{1D772}","g"],["\u{1D773}","d"],["\u{1D774}","e"],["\u{1D775}","z"],["\u{1D776}","i"],["\u{1D777}","th"],["\u{1D778}","i"],["\u{1D779}","k"],["\u{1D77A}","l"],["\u{1D77B}","m"],["\u{1D77C}","n"],["\u{1D77D}","ks"],["\u{1D77E}","o"],["\u{1D77F}","p"],["\u{1D780}","r"],["\u{1D781}","s"],["\u{1D782}","s"],["\u{1D783}","t"],["\u{1D784}","y"],["\u{1D785}","f"],["\u{1D786}","x"],["\u{1D787}","ps"],["\u{1D788}","o"],["\u{1D789}","a"],["\u{1D78A}","e"],["\u{1D78B}","i"],["\u{1D78C}","k"],["\u{1D78D}","f"],["\u{1D78E}","r"],["\u{1D78F}","p"],["\u{1D790}","A"],["\u{1D791}","V"],["\u{1D792}","G"],["\u{1D793}","D"],["\u{1D794}","E"],["\u{1D795}","Z"],["\u{1D796}","I"],["\u{1D797}","TH"],["\u{1D798}","I"],["\u{1D799}","K"],["\u{1D79A}","L"],["\u{1D79B}","M"],["\u{1D79C}","N"],["\u{1D79D}","KS"],["\u{1D79E}","O"],["\u{1D79F}","P"],["\u{1D7A0}","S"],["\u{1D7A1}","TH"],["\u{1D7A2}","S"],["\u{1D7A3}","T"],["\u{1D7A4}","Y"],["\u{1D7A5}","F"],["\u{1D7A6}","X"],["\u{1D7A7}","PS"],["\u{1D7A8}","O"],["\u{1D7A9}","D"],["\u{1D7AA}","av"],["\u{1D7AB}","g"],["\u{1D7AC}","d"],["\u{1D7AD}","e"],["\u{1D7AE}","z"],["\u{1D7AF}","i"],["\u{1D7B0}","i"],["\u{1D7B1}","th"],["\u{1D7B2}","i"],["\u{1D7B3}","k"],["\u{1D7B4}","l"],["\u{1D7B5}","m"],["\u{1D7B6}","n"],["\u{1D7B7}","ks"],["\u{1D7B8}","o"],["\u{1D7B9}","p"],["\u{1D7BA}","r"],["\u{1D7BB}","s"],["\u{1D7BC}","s"],["\u{1D7BD}","t"],["\u{1D7BE}","y"],["\u{1D7BF}","f"],["\u{1D7C0}","x"],["\u{1D7C1}","ps"],["\u{1D7C2}","o"],["\u{1D7C3}","a"],["\u{1D7C4}","e"],["\u{1D7C5}","i"],["\u{1D7C6}","k"],["\u{1D7C7}","f"],["\u{1D7C8}","r"],["\u{1D7C9}","p"],["\u{1D7CA}","F"],["\u{1D7CB}","f"],["\u249C","(a)"],["\u249D","(b)"],["\u249E","(c)"],["\u249F","(d)"],["\u24A0","(e)"],["\u24A1","(f)"],["\u24A2","(g)"],["\u24A3","(h)"],["\u24A4","(i)"],["\u24A5","(j)"],["\u24A6","(k)"],["\u24A7","(l)"],["\u24A8","(m)"],["\u24A9","(n)"],["\u24AA","(o)"],["\u24AB","(p)"],["\u24AC","(q)"],["\u24AD","(r)"],["\u24AE","(s)"],["\u24AF","(t)"],["\u24B0","(u)"],["\u24B1","(v)"],["\u24B2","(w)"],["\u24B3","(x)"],["\u24B4","(y)"],["\u24B5","(z)"],["\u24B6","(A)"],["\u24B7","(B)"],["\u24B8","(C)"],["\u24B9","(D)"],["\u24BA","(E)"],["\u24BB","(F)"],["\u24BC","(G)"],["\u24BD","(H)"],["\u24BE","(I)"],["\u24BF","(J)"],["\u24C0","(K)"],["\u24C1","(L)"],["\u24C3","(N)"],["\u24C4","(O)"],["\u24C5","(P)"],["\u24C6","(Q)"],["\u24C7","(R)"],["\u24C8","(S)"],["\u24C9","(T)"],["\u24CA","(U)"],["\u24CB","(V)"],["\u24CC","(W)"],["\u24CD","(X)"],["\u24CE","(Y)"],["\u24CF","(Z)"],["\u24D0","(a)"],["\u24D1","(b)"],["\u24D2","(b)"],["\u24D3","(c)"],["\u24D4","(e)"],["\u24D5","(f)"],["\u24D6","(g)"],["\u24D7","(h)"],["\u24D8","(i)"],["\u24D9","(j)"],["\u24DA","(k)"],["\u24DB","(l)"],["\u24DC","(m)"],["\u24DD","(n)"],["\u24DE","(o)"],["\u24DF","(p)"],["\u24E0","(q)"],["\u24E1","(r)"],["\u24E2","(s)"],["\u24E3","(t)"],["\u24E4","(u)"],["\u24E5","(v)"],["\u24E6","(w)"],["\u24E7","(x)"],["\u24E8","(y)"],["\u24E9","(z)"],["\u010A","C"],["\u010B","c"],["\u0120","G"],["\u0121","g"],["\u0126","H"],["\u0127","h"],["\u017B","Z"],["\u017C","z"],["\u{1D7CE}","0"],["\u{1D7CF}","1"],["\u{1D7D0}","2"],["\u{1D7D1}","3"],["\u{1D7D2}","4"],["\u{1D7D3}","5"],["\u{1D7D4}","6"],["\u{1D7D5}","7"],["\u{1D7D6}","8"],["\u{1D7D7}","9"],["\u{1D7D8}","0"],["\u{1D7D9}","1"],["\u{1D7DA}","2"],["\u{1D7DB}","3"],["\u{1D7DC}","4"],["\u{1D7DD}","5"],["\u{1D7DE}","6"],["\u{1D7DF}","7"],["\u{1D7E0}","8"],["\u{1D7E1}","9"],["\u{1D7E2}","0"],["\u{1D7E3}","1"],["\u{1D7E4}","2"],["\u{1D7E5}","3"],["\u{1D7E6}","4"],["\u{1D7E7}","5"],["\u{1D7E8}","6"],["\u{1D7E9}","7"],["\u{1D7EA}","8"],["\u{1D7EB}","9"],["\u{1D7EC}","0"],["\u{1D7ED}","1"],["\u{1D7EE}","2"],["\u{1D7EF}","3"],["\u{1D7F0}","4"],["\u{1D7F1}","5"],["\u{1D7F2}","6"],["\u{1D7F3}","7"],["\u{1D7F4}","8"],["\u{1D7F5}","9"],["\u{1D7F6}","0"],["\u{1D7F7}","1"],["\u{1D7F8}","2"],["\u{1D7F9}","3"],["\u{1D7FA}","4"],["\u{1D7FB}","5"],["\u{1D7FC}","6"],["\u{1D7FD}","7"],["\u{1D7FE}","8"],["\u{1D7FF}","9"],["\u2460","1"],["\u2461","2"],["\u2462","3"],["\u2463","4"],["\u2464","5"],["\u2465","6"],["\u2466","7"],["\u2467","8"],["\u2468","9"],["\u2469","10"],["\u246A","11"],["\u246B","12"],["\u246C","13"],["\u246D","14"],["\u246E","15"],["\u246F","16"],["\u2470","17"],["\u2471","18"],["\u2472","19"],["\u2473","20"],["\u2474","1"],["\u2475","2"],["\u2476","3"],["\u2477","4"],["\u2478","5"],["\u2479","6"],["\u247A","7"],["\u247B","8"],["\u247C","9"],["\u247D","10"],["\u247E","11"],["\u247F","12"],["\u2480","13"],["\u2481","14"],["\u2482","15"],["\u2483","16"],["\u2484","17"],["\u2485","18"],["\u2486","19"],["\u2487","20"],["\u2488","1."],["\u2489","2."],["\u248A","3."],["\u248B","4."],["\u248C","5."],["\u248D","6."],["\u248E","7."],["\u248F","8."],["\u2490","9."],["\u2491","10."],["\u2492","11."],["\u2493","12."],["\u2494","13."],["\u2495","14."],["\u2496","15."],["\u2497","16."],["\u2498","17."],["\u2499","18."],["\u249A","19."],["\u249B","20."],["\u24EA","0"],["\u24EB","11"],["\u24EC","12"],["\u24ED","13"],["\u24EE","14"],["\u24EF","15"],["\u24F0","16"],["\u24F1","17"],["\u24F2","18"],["\u24F3","19"],["\u24F4","20"],["\u24F5","1"],["\u24F6","2"],["\u24F7","3"],["\u24F8","4"],["\u24F9","5"],["\u24FA","6"],["\u24FB","7"],["\u24FC","8"],["\u24FD","9"],["\u24FE","10"],["\u24FF","0"],["\u{1F670}","&"],["\u{1F671}","&"],["\u{1F672}","&"],["\u{1F673}","&"],["\u{1F674}","&"],["\u{1F675}","&"],["\u{1F676}",'"'],["\u{1F677}",'"'],["\u{1F678}",'"'],["\u203D","?!"],["\u{1F679}","?!"],["\u{1F67A}","?!"],["\u{1F67B}","?!"],["\u{1F67C}","/"],["\u{1F67D}","\\"],["\u{1F707}","AR"],["\u{1F708}","V"],["\u{1F709}","V"],["\u{1F706}","VR"],["\u{1F705}","VF"],["\u{1F729}","2"],["\u{1F72A}","5"],["\u{1F761}","f"],["\u{1F762}","W"],["\u{1F763}","U"],["\u{1F767}","V"],["\u{1F768}","T"],["\u{1F76A}","V"],["\u{1F76B}","MB"],["\u{1F76C}","VB"],["\u{1F772}","3B"],["\u{1F773}","3B"],["\u{1F4AF}","100"],["\u{1F519}","BACK"],["\u{1F51A}","END"],["\u{1F51B}","ON!"],["\u{1F51C}","SOON"],["\u{1F51D}","TOP"],["\u{1F51E}","18"],["\u{1F524}","abc"],["\u{1F520}","ABCD"],["\u{1F521}","abcd"],["\u{1F522}","1234"],["\u{1F523}","T&@%"],["#\uFE0F\u20E3","#"],["*\uFE0F\u20E3","*"],["0\uFE0F\u20E3","0"],["1\uFE0F\u20E3","1"],["2\uFE0F\u20E3","2"],["3\uFE0F\u20E3","3"],["4\uFE0F\u20E3","4"],["5\uFE0F\u20E3","5"],["6\uFE0F\u20E3","6"],["7\uFE0F\u20E3","7"],["8\uFE0F\u20E3","8"],["9\uFE0F\u20E3","9"],["\u{1F51F}","10"],["\u{1F170}\uFE0F","A"],["\u{1F171}\uFE0F","B"],["\u{1F18E}","AB"],["\u{1F191}","CL"],["\u{1F17E}\uFE0F","O"],["\u{1F17F}","P"],["\u{1F198}","SOS"],["\u{1F172}","C"],["\u{1F173}","D"],["\u{1F174}","E"],["\u{1F175}","F"],["\u{1F176}","G"],["\u{1F177}","H"],["\u{1F178}","I"],["\u{1F179}","J"],["\u{1F17A}","K"],["\u{1F17B}","L"],["\u{1F17C}","M"],["\u{1F17D}","N"],["\u{1F180}","Q"],["\u{1F181}","R"],["\u{1F182}","S"],["\u{1F183}","T"],["\u{1F184}","U"],["\u{1F185}","V"],["\u{1F186}","W"],["\u{1F187}","X"],["\u{1F188}","Y"],["\u{1F189}","Z"]],Qf=a((t,e)=>{for(const[n,r]of e)t=t.replace(new RegExp(mn(n),"g"),r);return t},"doCustomReplacements");function Xf(t,e){if(typeof t!="string")throw new TypeError(`Expected a string, got \`${typeof t}\``);e={customReplacements:[],...e};const n=new Map([...Jf,...e.customReplacements]);return t=t.normalize(),t=Qf(t,n),t=t.normalize("NFD").replace(/\p{Diacritic}/gu,"").normalize(),t}a(Xf,"transliterate");const Zf=[["&"," and "],["\u{1F984}"," unicorn "],["\u2665"," love "]],eh=a(t=>t.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"),"decamelize"),th=a((t,e)=>{const n=mn(e);return t.replace(new RegExp(`${n}{2,}`,"g"),e).replace(new RegExp(`^${n}|${n}$`,"g"),"")},"removeMootSeparators"),nh=a(t=>{let e="a-z\\d";if(e+=t.lowercase?"":"A-Z",t.preserveCharacters.length>0)for(const n of t.preserveCharacters){if(n===t.separator)throw new Error(`The separator character \`${t.separator}\` cannot be included in preserved characters: ${t.preserveCharacters}`);e+=mn(n)}return new RegExp(`[^${e}]+`,"g")},"buildPatternSlug");function rh(t,e){if(typeof t!="string")throw new TypeError(`Expected a string, got \`${typeof t}\``);e={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...e};const n=e.preserveLeadingUnderscore&&t.startsWith("_"),r=e.preserveTrailingDash&&t.endsWith("-"),i=new Map([...Zf,...e.customReplacements]);t=Xf(t,{customReplacements:i}),e.decamelize&&(t=eh(t));const s=nh(e);return e.lowercase&&(t=t.toLowerCase()),t=t.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3"),t=t.replace(s,e.separator),t=t.replace(/\\/g,""),e.separator&&(t=th(t,e.separator)),n&&(t=`_${t}`),r&&(t=`${t}-`),t}a(rh,"slugify");function pt(t,e=!1){return ih(t,e),Eo(t)}a(pt,"validateAndSanitizeNamespace");function Eo(t){return t.normalize("NFC").trim()}a(Eo,"sanitizeNamespace");function ih(t,e=!1){const n=[];t.trim().length===0&&n.push("Cannot be empty"),t.trim().length>ko&&n.push(`Cannot be longer than ${ko} characters`);const r=[[/:/,"Colon"],[/\u0000/,"Null"],[/\u0001/,"Start of Heading"],[/\u0002/,"Start of Text"],[/\u0003/,"End of Text"],[/\u0004/,"End of Transmission"],[/\u0005/,"Enquiry"],[/\u0006/,"Acknowledge"],[/\u0007/,"Bell"],[/\u0008/,"Backspace"],[/\u0009/,"Horizontal Tab"],[/\u000A/,"Line Feed"],[/\u000B/,"Vertical Tab"],[/\u000C/,"Form Feed"],[/\u000D/,"Carriage Return"],[/\u000E/,"Shift Out"],[/\u000F/,"Shift In"],[/\u0010/,"Data Link Escape"],[/\u0011/,"Device Control 1"],[/\u0012/,"Device Control 2"],[/\u0013/,"Device Control 3"],[/\u0014/,"Device Control 4"],[/\u0015/,"Negative Acknowledge"],[/\u0016/,"Synchronous Idle"],[/\u0017/,"End of Transmission Block"],[/\u0018/,"Cancel"],[/\u0019/,"End of Medium"],[/\u001A/,"Substitute"],[/\u001B/,"Escape"],[/\u001C/,"File Separator"],[/\u001D/,"Group Separator"],[/\u001E/,"Record Separator"],[/\u001F/,"Unit Separator"],[/\u007F/,"Delete"],[/\u0080/,"Padding Character"],[/\u0081/,"High Octet Preset"],[/\u0082/,"Break Permitted Here"],[/\u0083/,"No Break Here"],[/\u0084/,"Index"],[/\u0085/,"Next Line"],[/\u0086/,"Start of Selected Area"],[/\u0087/,"End of Selected Area"],[/\u0088/,"Character Tabulation Set"],[/\u0089/,"Character Tabulation with Justification"],[/\u008A/,"Line Tabulation Set"],[/\u008B/,"Partial Line Forward"],[/\u008C/,"Partial Line Backward"],[/\u008D/,"Reverse Line Feed"],[/\u008E/,"Single Shift Two"],[/\u008F/,"Single Shift Three"],[/\u0090/,"Device Control String"],[/\u0091/,"Private Use One"],[/\u0092/,"Private Use Two"],[/\u0093/,"Set Transmit State"],[/\u0094/,"Cancel Character"],[/\u0095/,"Message Waiting"],[/\u0096/,"Start of Protected Area"],[/\u0097/,"End of Protected Area"],[/\u0098/,"Start of String"],[/\u0099/,"Single Graphic Character Introducer"],[/\u009A/,"Single Character Introducer"],[/\u009B/,"Control Sequence Introducer"],[/\u009C/,"String Terminator"],[/\u009D/,"Operating System Command"],[/\u009E/,"Privacy Message"],[/\u009F/,"Application Program Command"],[/\u00A0/,"Non-breaking Space"],[/\u00AD/,"Soft Hyphen"],[/\u200B/,"Zero-width Space"],[/\u200C/,"Zero-width Non-joiner"],[/\u200D/,"Zero-width Joiner"],[/\u200E/,"Left-to-right Mark"],[/\u200F/,"Right-to-left Mark"],[/\u202A/,"Left-to-right Embedding"],[/\u202B/,"Right-to-left Embedding"],[/\u202C/,"Pop Directional Formatting"],[/\u202D/,"Left-to-right Override"],[/\u202E/,"Right-to-left Override"],[/\uFEFF/,"Byte Order Mark (BOM)"]];e||r.push([/\*/,"Asterisk"]);for(const[i,s]of r){const o=t.match(i);if(o){const l=JSON.stringify(o[0]).slice(1,-1);n.push(`Forbidden character: ${s}: "${l}"`)}}if(n.length>0)throw new Error(`Invalid namespace "${t}":
|
|
10
10
|
- ${n.join(`
|
|
11
|
-
- `)}`)}a(rh,"validateNamespace");function Eo(t){return`yanki-media-${nh(Ao(t)).replaceAll(/-+/g,"-")}`}a(Eo,"getSlugifiedNamespace");function ih(t){const e={"application/octet-stream":"mp4","application/ogg":"ogx","application/x-shockwave-flash":"swf","audio/aac":"aac","audio/flac":"flac","audio/mp4":"m4a","audio/mpeg":"mp3","audio/ogg":"ogg","audio/opus":"opus","audio/wav":"wav","audio/webm":"webm","audio/x-speex":"spx","image/avif":"avif","image/gif":"gif","image/jpeg":"jpg","image/png":"png","image/svg+xml":"svg","image/tiff":"tif","image/vnd.microsoft.icon":"ico","image/webp":"webp","image/x-icon":"ico","video/3gpp":"3gp","video/flv":"flv","video/matroska":"mkv","video/mp4":"mp4","video/mpeg":"mpg","video/msvideo":"avi","video/ogg":"ogv","video/quicktime":"mov","video/webm":"webm","video/x-flv":"flv","video/x-matroska":"mkv","video/x-msvideo":"avi"};return t in e||console.log(`Unknown MIME type: ${t}`),e[t]}a(ih,"getFileExtensionForMimeType");function gn(t){try{return new URL(t),!0}catch{return!1}}a(gn,"isUrl$1");function sh(t){try{const e=new URL(t);return e.protocol==="file:"?e.pathname:t}catch{return t}}a(sh,"fileUrlToPath");function oh(t){try{const e=new URL(t);if(e.protocol==="file:")return"localFileUrl";if(e.protocol==="http:"||e.protocol==="https:")return"remoteHttpUrl"}catch{return"localFilePath"}return"unsupportedProtocolUrl"}a(oh,"getSrcType");function To(t,e){if(t===void 0)return;t instanceof Headers||(t=ah(t));const n=(t instanceof Headers?e.map(r=>t.get(r)):e.map(r=>t[r])).filter(r=>r!=null).join("");if(n!=="")return n}a(To,"getHeadersString");function ah(t){const e={};for(const[n,r]of Object.entries(t))e[n.toLowerCase()]=r;return e}a(ah,"convertKeysToLowercase");async function ci(t,e,n=qf,r=zf){switch(n){case"metadata":{if(e===void 0)return ci(t,e,"name");const i=await e(t,{method:"HEAD"}),s=To(i?.headers,["content-type"]);return s===void 0?ci(t,e,"name"):ih(s)}case"name":{let i;const s=new URL(t),o=s.pathname.split(".");return o.length>1?i=o.at(-1):i=s.search.split(".").at(-1),[...oi,...si].includes(i??"")?i:r?"unknown":void 0}}}a(ci,"getFileExtensionFromUrl");async function fi(t,e,n=Bf){switch(n){case"content":return console.warn("`content` hash mode is not yet implemented for URLs"),fi(t,e,"metadata");case"metadata":{const r=await e(t,{method:"HEAD"}),i=To(r?.headers,["etag","last-modified","content-length"]);return i===void 0?fi(t,e,"name"):Wn(i,16)}case"name":return Wn(t,16)}}a(fi,"getUrlContentHash");async function Io(t,e){const n=gn(t)?await ci(t,e):W.extname(t).slice(1);if(!(n===void 0||!["unknown",...oi,...si].includes(n)))return n}a(Io,"getAnkiMediaFilenameExtension");async function lh(t,e,n,r){const i=Eo(e),s=await uh(t,n,r),o=await Io(t,r),l=o===void 0?"":`.${o}`;let u;if(u=`${i}-${s}${l}`,u.length>ko)throw new Error(`Filename too long: ${u}`);return u}a(lh,"getSafeAnkiMediaFilename");async function uh(t,e,n){return gn(t)?fi(t,n):Co(t,e)}a(uh,"getContentHash");const Lo=[{id:"abap",name:"ABAP",import:()=>import("./abap-DXFkqnOI.js")},{id:"actionscript-3",name:"ActionScript",import:()=>import("./actionscript-3-BigF1UXR.js")},{id:"ada",name:"Ada",import:()=>import("./ada-CowR2XfX.js")},{id:"angular-html",name:"Angular HTML",import:()=>import("./angular-html-CZfDmWtJ.js").then(function(t){return t.e})},{id:"angular-ts",name:"Angular TypeScript",import:()=>import("./angular-ts-CIhYrOL5.js")},{id:"apache",name:"Apache Conf",import:()=>import("./apache-rS0jd3Ly.js")},{id:"apex",name:"Apex",import:()=>import("./apex-Sfo2eW0G.js")},{id:"apl",name:"APL",import:()=>import("./apl-DPLNWaKG.js")},{id:"applescript",name:"AppleScript",import:()=>import("./applescript-BXKAgOFh.js")},{id:"ara",name:"Ara",import:()=>import("./ara-CG4fK2Nq.js")},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>import("./asciidoc-C539GviS.js")},{id:"asm",name:"Assembly",import:()=>import("./asm-PWN5J14X.js")},{id:"astro",name:"Astro",import:()=>import("./astro-71xeBtnw.js")},{id:"awk",name:"AWK",import:()=>import("./awk-i0IPvypD.js")},{id:"ballerina",name:"Ballerina",import:()=>import("./ballerina-T9ysyp6P.js")},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>import("./bat-BPiaQZfK.js")},{id:"beancount",name:"Beancount",import:()=>import("./beancount-Urb1RsFe.js")},{id:"berry",name:"Berry",aliases:["be"],import:()=>import("./berry-CxrokwfH.js")},{id:"bibtex",name:"BibTeX",import:()=>import("./bibtex-BaedD2tq.js")},{id:"bicep",name:"Bicep",import:()=>import("./bicep-3ghuYFLd.js")},{id:"blade",name:"Blade",import:()=>import("./blade-D3A5GssZ.js")},{id:"c",name:"C",import:()=>import("./c-RCJZWN-0.js")},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>import("./cadence-Bgpqy2XC.js")},{id:"clarity",name:"Clarity",import:()=>import("./clarity-CIekO_uJ.js")},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>import("./clojure-BF6G6X0H.js")},{id:"cmake",name:"CMake",import:()=>import("./cmake-DXZpi2gR.js")},{id:"cobol",name:"COBOL",import:()=>import("./cobol-Bi0pgIzz.js")},{id:"codeowners",name:"CODEOWNERS",import:()=>import("./codeowners-CGmujMTu.js")},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>import("./codeql-BOpLLL-w.js")},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>import("./coffee-Cp6Hkwsd.js")},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>import("./common-lisp-C3qUB5O8.js")},{id:"cpp",name:"C++",aliases:["c++"],import:()=>import("./cpp-CeZn6MzL.js")},{id:"crystal",name:"Crystal",import:()=>import("./crystal-B5pCH4eR.js")},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>import("./csharp-DISxKEhY.js")},{id:"css",name:"CSS",import:()=>import("./css-CbYhyuC0.js")},{id:"csv",name:"CSV",import:()=>import("./csv-B2DkETJQ.js")},{id:"cue",name:"CUE",import:()=>import("./cue-C6Aznpr-.js")},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>import("./cypher-ByMv4Xf1.js")},{id:"d",name:"D",import:()=>import("./d-PifQWv0n.js")},{id:"dart",name:"Dart",import:()=>import("./dart-DZLoTQm4.js")},{id:"dax",name:"DAX",import:()=>import("./dax-DsfXcHUZ.js")},{id:"desktop",name:"Desktop",import:()=>import("./desktop-D71BffLY.js")},{id:"diff",name:"Diff",import:()=>import("./diff-DvyTQcux.js")},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>import("./docker-DNR26wTC.js")},{id:"dream-maker",name:"Dream Maker",import:()=>import("./dream-maker-Eh5U-gDp.js")},{id:"elixir",name:"Elixir",import:()=>import("./elixir-Exce1dLy.js")},{id:"elm",name:"Elm",import:()=>import("./elm-D7CfdsEG.js")},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>import("./emacs-lisp-51pKhIDe.js")},{id:"erb",name:"ERB",import:()=>import("./erb-S7d1X-Y-.js")},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>import("./erlang-DS9ZWoKD.js")},{id:"fennel",name:"Fennel",import:()=>import("./fennel-DuK7IM-L.js")},{id:"fish",name:"Fish",import:()=>import("./fish-DfeQjIbs.js")},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>import("./fluent-KPqz0Sb3.js")},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>import("./fortran-fixed-form-6v7-xzYY.js")},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>import("./fortran-free-form-D6pmzCqS.js")},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>import("./fsharp-JZjmD0Li.js")},{id:"gdresource",name:"GDResource",import:()=>import("./gdresource-YQl50grm.js")},{id:"gdscript",name:"GDScript",import:()=>import("./gdscript-B474tPdy.js")},{id:"gdshader",name:"GDShader",import:()=>import("./gdshader-B_SUYfiV.js")},{id:"genie",name:"Genie",import:()=>import("./genie-DAfrLhwG.js")},{id:"gherkin",name:"Gherkin",import:()=>import("./gherkin-B0PjAhci.js")},{id:"git-commit",name:"Git Commit Message",import:()=>import("./git-commit-XY8bXq83.js")},{id:"git-rebase",name:"Git Rebase Message",import:()=>import("./git-rebase-BE3WlPTi.js")},{id:"gleam",name:"Gleam",import:()=>import("./gleam-Dd6f7Z5P.js")},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>import("./glimmer-js-I0TZ3_O1.js")},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>import("./glimmer-ts-CY38hlIb.js")},{id:"glsl",name:"GLSL",import:()=>import("./glsl-tOUOXML3.js")},{id:"gnuplot",name:"Gnuplot",import:()=>import("./gnuplot-nclm9rTJ.js")},{id:"go",name:"Go",import:()=>import("./go-BJn7Ek5W.js")},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>import("./graphql-DwwLrXH1.js")},{id:"groovy",name:"Groovy",import:()=>import("./groovy-wChcbJ1V.js")},{id:"hack",name:"Hack",import:()=>import("./hack-DmjQSZc3.js")},{id:"haml",name:"Ruby Haml",import:()=>import("./haml-map1ik7u.js")},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>import("./handlebars-CCc9qS91.js")},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>import("./haskell-DOVD4hs_.js")},{id:"haxe",name:"Haxe",import:()=>import("./haxe-Dit6kIrv.js")},{id:"hcl",name:"HashiCorp HCL",import:()=>import("./hcl-CpAANOdC.js")},{id:"hjson",name:"Hjson",import:()=>import("./hjson-DZqG9GXz.js")},{id:"hlsl",name:"HLSL",import:()=>import("./hlsl-DmDrTTlz.js")},{id:"html",name:"HTML",import:()=>import("./html-NmvpQUfQ.js")},{id:"html-derivative",name:"HTML (Derivative)",import:()=>import("./html-derivative-QphQoco-.js")},{id:"http",name:"HTTP",import:()=>import("./http-B58UUte0.js")},{id:"hxml",name:"HXML",import:()=>import("./hxml-4EC8aR1F.js")},{id:"hy",name:"Hy",import:()=>import("./hy-y-6HuL9l.js")},{id:"imba",name:"Imba",import:()=>import("./imba-CyaA9484.js")},{id:"ini",name:"INI",aliases:["properties"],import:()=>import("./ini-DeVv6D4_.js")},{id:"java",name:"Java",import:()=>import("./java-ClXEvkw9.js")},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>import("./javascript-Dch3xQiY.js")},{id:"jinja",name:"Jinja",import:()=>import("./jinja-BrXMjE5a.js")},{id:"jison",name:"Jison",import:()=>import("./jison-DlEKeWyG.js")},{id:"json",name:"JSON",import:()=>import("./json-CupVZNk8.js")},{id:"json5",name:"JSON5",import:()=>import("./json5-Bh8mriwU.js")},{id:"jsonc",name:"JSON with Comments",import:()=>import("./jsonc-DYI1rfmx.js")},{id:"jsonl",name:"JSON Lines",import:()=>import("./jsonl-BUpeXbsf.js")},{id:"jsonnet",name:"Jsonnet",import:()=>import("./jsonnet-C9d3aiqh.js")},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>import("./jssm-Dble9ECP.js")},{id:"jsx",name:"JSX",import:()=>import("./jsx-CsyrCbsw.js")},{id:"julia",name:"Julia",aliases:["jl"],import:()=>import("./julia-jDzGJc6I.js")},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>import("./kotlin-BIxS-Weu.js")},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>import("./kusto-DGEpfOTx.js")},{id:"latex",name:"LaTeX",import:()=>import("./latex-bjPeSN-x.js")},{id:"less",name:"Less",import:()=>import("./less-Du6_OKDb.js")},{id:"liquid",name:"Liquid",import:()=>import("./liquid-DHpvaAyy.js")},{id:"log",name:"Log file",import:()=>import("./log-Ksn5IXup.js")},{id:"logo",name:"Logo",import:()=>import("./logo-DdacRhvC.js")},{id:"lua",name:"Lua",import:()=>import("./lua-Cy9U1SwF.js")},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>import("./make-B9S9BZZh.js")},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>import("./markdown-BdfWgkoX.js")},{id:"marko",name:"Marko",import:()=>import("./marko-neMFgnTa.js")},{id:"matlab",name:"MATLAB",import:()=>import("./matlab-Btshr8M_.js")},{id:"mdc",name:"MDC",import:()=>import("./mdc-_-l14nii.js")},{id:"mdx",name:"MDX",import:()=>import("./mdx-CBPJd_fO.js")},{id:"mermaid",name:"Mermaid",import:()=>import("./mermaid-Dkb1Nx48.js")},{id:"mojo",name:"Mojo",import:()=>import("./mojo--7WWnkdy.js")},{id:"move",name:"Move",import:()=>import("./move-DOHBU7tp.js")},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>import("./narrat-B9CT-1u6.js")},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>import("./nextflow-DBxHOdLe.js")},{id:"nginx",name:"Nginx",import:()=>import("./nginx-C3DmzmOp.js")},{id:"nim",name:"Nim",import:()=>import("./nim-BjhyiCLB.js")},{id:"nix",name:"Nix",import:()=>import("./nix-B7rNE5kf.js")},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>import("./nushell-CrgTADc5.js")},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>import("./objective-c-DHmGyzbM.js")},{id:"objective-cpp",name:"Objective-C++",import:()=>import("./objective-cpp-BWKJ1FCf.js")},{id:"ocaml",name:"OCaml",import:()=>import("./ocaml-RqY_Nz63.js")},{id:"pascal",name:"Pascal",import:()=>import("./pascal-BvCdDh2R.js")},{id:"perl",name:"Perl",import:()=>import("./perl-PZnu_VA7.js")},{id:"php",name:"PHP",import:()=>import("./php-m9Z3qs_k.js")},{id:"plsql",name:"PL/SQL",import:()=>import("./plsql-BbJj1K1w.js")},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>import("./po-HrnDn_2Q.js")},{id:"postcss",name:"PostCSS",import:()=>import("./postcss-DXT9h7v2.js")},{id:"powerquery",name:"PowerQuery",import:()=>import("./powerquery-CApMHEaB.js")},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>import("./powershell-9ZOzOPqN.js")},{id:"prisma",name:"Prisma",import:()=>import("./prisma-BBJYjQ0k.js")},{id:"prolog",name:"Prolog",import:()=>import("./prolog-BH_RS3WO.js")},{id:"proto",name:"Protocol Buffer 3",import:()=>import("./proto-DOtRmeXT.js")},{id:"pug",name:"Pug",aliases:["jade"],import:()=>import("./pug-jyQP1XtO.js")},{id:"puppet",name:"Puppet",import:()=>import("./puppet-37ic6j3l.js")},{id:"purescript",name:"PureScript",import:()=>import("./purescript-Bm5O5oLm.js")},{id:"python",name:"Python",aliases:["py"],import:()=>import("./python-DwuVtWc2.js")},{id:"qml",name:"QML",import:()=>import("./qml-DM3j-f55.js")},{id:"qmldir",name:"QML Directory",import:()=>import("./qmldir-MS3qTAOR.js")},{id:"qss",name:"Qt Style Sheets",import:()=>import("./qss-FJDVp-XM.js")},{id:"r",name:"R",import:()=>import("./r-BXfENWL6.js")},{id:"racket",name:"Racket",import:()=>import("./racket-BbLA0SU8.js")},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>import("./raku-D384ylkT.js")},{id:"razor",name:"ASP.NET Razor",import:()=>import("./razor-DokJXJPk.js")},{id:"reg",name:"Windows Registry Script",import:()=>import("./reg-CrhH3_Og.js")},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>import("./regexp-C_ZPRiAj.js")},{id:"rel",name:"Rel",import:()=>import("./rel-BuawaRXJ.js")},{id:"riscv",name:"RISC-V",import:()=>import("./riscv-D-aEEwJo.js")},{id:"rst",name:"reStructuredText",import:()=>import("./rst-DlAMacAQ.js")},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>import("./ruby-eQ1iIi6H.js")},{id:"rust",name:"Rust",aliases:["rs"],import:()=>import("./rust-DGxQkqYo.js")},{id:"sas",name:"SAS",import:()=>import("./sas-BhBoFsCt.js")},{id:"sass",name:"Sass",import:()=>import("./sass-CMDmr8et.js")},{id:"scala",name:"Scala",import:()=>import("./scala-Cd0cRMx9.js")},{id:"scheme",name:"Scheme",import:()=>import("./scheme-BTeww-4z.js")},{id:"scss",name:"SCSS",import:()=>import("./scss-DoQ2ojfq.js")},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>import("./shaderlab-Bb-6Dmi7.js")},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>import("./shellscript-BZfs-ost.js")},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>import("./shellsession-B6XH_PlG.js")},{id:"smalltalk",name:"Smalltalk",import:()=>import("./smalltalk-DSsji4Hu.js")},{id:"solidity",name:"Solidity",import:()=>import("./solidity-CThH5sBG.js")},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>import("./soy-rVg8SA9F.js")},{id:"sparql",name:"SPARQL",import:()=>import("./sparql-Cmp61EUJ.js")},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>import("./splunk-6XBPEST2.js")},{id:"sql",name:"SQL",import:()=>import("./sql-DxR2xW-a.js")},{id:"ssh-config",name:"SSH Config",import:()=>import("./ssh-config-BH1M7C1g.js")},{id:"stata",name:"Stata",import:()=>import("./stata-DGeqZgIM.js")},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>import("./stylus-DSrLtGYv.js")},{id:"svelte",name:"Svelte",import:()=>import("./svelte-BMtjZn0z.js")},{id:"swift",name:"Swift",import:()=>import("./swift-C8WrqfNz.js")},{id:"system-verilog",name:"SystemVerilog",import:()=>import("./system-verilog-BscxmKrE.js")},{id:"systemd",name:"Systemd Units",import:()=>import("./systemd-IQPSIA3x.js")},{id:"tasl",name:"Tasl",import:()=>import("./tasl-BxwAa5i0.js")},{id:"tcl",name:"Tcl",import:()=>import("./tcl-C_8Fx7bH.js")},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>import("./terraform-DBeuZS66.js")},{id:"tex",name:"TeX",import:()=>import("./tex-BqVuN0dX.js")},{id:"toml",name:"TOML",import:()=>import("./toml-BT9ZzGyQ.js")},{id:"tsv",name:"TSV",import:()=>import("./tsv-DnLUQrgA.js")},{id:"tsx",name:"TSX",import:()=>import("./tsx-BlxWTfDV.js")},{id:"turtle",name:"Turtle",import:()=>import("./turtle-C15OxdQ5.js")},{id:"twig",name:"Twig",import:()=>import("./twig-DDlPLETn.js")},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>import("./typescript-DC8MraHL.js")},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>import("./typespec-DAP_O-zg.js")},{id:"typst",name:"Typst",aliases:["typ"],import:()=>import("./typst-I4qd5QHW.js")},{id:"v",name:"V",import:()=>import("./v-C2TBxDwV.js")},{id:"vala",name:"Vala",import:()=>import("./vala-CO5hpdkB.js")},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>import("./vb-beD-FUib.js")},{id:"verilog",name:"Verilog",import:()=>import("./verilog-DVfdqzEq.js")},{id:"vhdl",name:"VHDL",import:()=>import("./vhdl-QZ3jNtnE.js")},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>import("./viml-BLluXI4E.js")},{id:"vue",name:"Vue",import:()=>import("./vue-CSQt1zmP.js")},{id:"vue-html",name:"Vue HTML",import:()=>import("./vue-html-Bjmswp-o.js")},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>import("./vyper-o-cPXEvd.js")},{id:"wasm",name:"WebAssembly",import:()=>import("./wasm-Cicx_DS6.js")},{id:"wenyan",name:"Wenyan",aliases:["\u6587\u8A00"],import:()=>import("./wenyan-Cavfe_d0.js")},{id:"wgsl",name:"WGSL",import:()=>import("./wgsl-BZz1Hhek.js")},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>import("./wikitext-zfUCmn4z.js")},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>import("./wolfram-BICIrM8O.js")},{id:"xml",name:"XML",import:()=>import("./xml-sp2Egr0Z.js")},{id:"xsl",name:"XSL",import:()=>import("./xsl-BQYvujlj.js")},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>import("./yaml-C5gCGmDW.js")},{id:"zenscript",name:"ZenScript",import:()=>import("./zenscript-B1nm99XP.js")},{id:"zig",name:"Zig",import:()=>import("./zig-xtV5iK4E.js")}],ch=Object.fromEntries(Lo.map(t=>[t.id,t.import])),fh=Object.fromEntries(Lo.flatMap(t=>t.aliases?.map(e=>[e,t.import])||[])),Oo={...ch,...fh},hh=a(async t=>import("./wasm-2oxoyaYy.js").then(e=>e.default(t)),"getWasmInlined"),ph=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>import("./andromeeda-YxQm0tCS.js")},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>import("./aurora-x-BaWyeHV_.js")},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>import("./ayu-dark-Bn5gmY5k.js")},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:()=>import("./catppuccin-frappe-BsOrZxH8.js")},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>import("./catppuccin-latte-BYdKNJ10.js")},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>import("./catppuccin-macchiato-DVLwECkk.js")},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>import("./catppuccin-mocha-CEfge3mM.js")},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>import("./dark-plus-KEYLhlmT.js")},{id:"dracula",displayName:"Dracula",type:"dark",import:()=>import("./dracula-DGO8GyiP.js")},{id:"dracula-soft",displayName:"Dracula Soft",type:"dark",import:()=>import("./dracula-soft-9B1nZgL-.js")},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>import("./github-dark-CzPA46E-.js")},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>import("./github-dark-default-BXF7Vm5l.js")},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>import("./github-dark-dimmed-CRDKj6ck.js")},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>import("./github-light-CRlnGVMD.js")},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>import("./github-light-default-UREJT2Bw.js")},{id:"houston",displayName:"Houston",type:"dark",import:()=>import("./houston-CZZ6oYdA.js")},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>import("./light-plus-BsvsQ1iS.js")},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>import("./material-theme-B2BuIiKK.js")},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>import("./material-theme-darker-BrGg7AAd.js")},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>import("./material-theme-lighter-DDRuGeQH.js")},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>import("./material-theme-ocean-CBL0qBdF.js")},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>import("./material-theme-palenight-D7gg1Usp.js")},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>import("./min-dark-iSbrOpM4.js")},{id:"min-light",displayName:"Min Light",type:"light",import:()=>import("./min-light-BITGhEdf.js")},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>import("./monokai-sMI-pExk.js")},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>import("./night-owl-BeocmOPF.js")},{id:"nord",displayName:"Nord",type:"dark",import:()=>import("./nord-CsyjKwr8.js")},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>import("./one-dark-pro-BTtaZsq5.js")},{id:"one-light",displayName:"One Light",type:"light",import:()=>import("./one-light-alpzPJ78.js")},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>import("./poimandres-Cda-MJFk.js")},{id:"red",displayName:"Red",type:"dark",import:()=>import("./red-jaXbsbtS.js")},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:()=>import("./rose-pine-BIAFg_EN.js")},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:()=>import("./rose-pine-dawn-C5m_N-6l.js")},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:()=>import("./rose-pine-moon-B9S0JTD1.js")},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>import("./slack-dark-C7oZ9nno.js")},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>import("./slack-ochin-hXH8Gyq8.js")},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>import("./snazzy-light-CA9nliXM.js")},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>import("./solarized-dark-C86elO-m.js")},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>import("./solarized-light-xPNGhBYe.js")},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>import("./synthwave-84-BBDuFDsq.js")},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>import("./tokyo-night-eJfcURhx.js")},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>import("./vesper-BSB_bK09.js")},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>import("./vitesse-black-B3g-KkBK.js")},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>import("./vitesse-dark-Bxkoe-BC.js")},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>import("./vitesse-light-Br6ll-O0.js")}],dh=Object.fromEntries(ph.map(t=>[t.id,t.import]));var ze;(function(t){t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline"})(ze||(ze={})),typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var Mt;(function(t){function e(h){return h.toString(2).padStart(32,"0")}a(e,"toBinaryStr"),t.toBinaryStr=e;function n(h){const f=t.getLanguageId(h),p=t.getTokenType(h),d=t.getFontStyle(h),m=t.getForeground(h),g=t.getBackground(h);console.log({languageId:f,tokenType:p,fontStyle:d,foreground:m,background:g})}a(n,"print"),t.print=n;function r(h){return(h&255)>>>0}a(r,"getLanguageId"),t.getLanguageId=r;function i(h){return(h&768)>>>8}a(i,"getTokenType"),t.getTokenType=i;function s(h){return(h&1024)!==0}a(s,"containsBalancedBrackets"),t.containsBalancedBrackets=s;function o(h){return(h&30720)>>>11}a(o,"getFontStyle"),t.getFontStyle=o;function l(h){return(h&16744448)>>>15}a(l,"getForeground"),t.getForeground=l;function u(h){return(h&4278190080)>>>24}a(u,"getBackground"),t.getBackground=u;function c(h,f,p,d,m,g,y){let b=t.getLanguageId(h),w=t.getTokenType(h),k=t.containsBalancedBrackets(h)?1:0,_=t.getFontStyle(h),C=t.getForeground(h),S=t.getBackground(h);return f!==0&&(b=f),p!==8&&(w=p),d!==null&&(k=d?1:0),m!==-1&&(_=m),g!==0&&(C=g),y!==0&&(S=y),(b<<0|w<<8|k<<10|_<<11|C<<15|S<<24)>>>0}a(c,"set"),t.set=c})(Mt||(Mt={}));function $N(t){return t}a($N,"toOptionalTokenType");function BN(t){return t}a(BN,"fromOptionalTokenType");function Qn(t,e){const n=[],r=mh(t);let i=r.next();for(;i!==null;){let u=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let c=o();if(n.push({matcher:c,priority:u}),i!==",")break;i=r.next()}return n;function s(){if(i==="-"){i=r.next();const u=s();return c=>!!u&&!u(c)}if(i==="("){i=r.next();const u=l();return i===")"&&(i=r.next()),u}if(Po(i)){const u=[];do u.push(i),i=r.next();while(Po(i));return c=>e(u,c)}return null}function o(){const u=[];let c=s();for(;c;)u.push(c),c=s();return h=>u.every(f=>f(h))}function l(){const u=[];let c=o();for(;c&&(u.push(c),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");c=o()}return h=>u.some(f=>f(h))}}a(Qn,"createMatchers");function Po(t){return!!t&&!!t.match(/[\w\.:]+/)}a(Po,"isIdentifier");function mh(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;const r=n[0];return n=e.exec(t),r}}}a(mh,"newTokenizer");function Do(t){typeof t.dispose=="function"&&t.dispose()}a(Do,"disposeOnigString");function gh(t){return hi(t)}a(gh,"clone");function hi(t){return Array.isArray(t)?yh(t):typeof t=="object"?bh(t):t}a(hi,"doClone");function yh(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=hi(t[n]);return e}a(yh,"cloneArray");function bh(t){let e={};for(let n in t)e[n]=hi(t[n]);return e}a(bh,"cloneObj");function Ro(t,...e){return e.forEach(n=>{for(let r in n)t[r]=n[r]}),t}a(Ro,"mergeObjects");function Fo(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?Fo(t.substring(0,t.length-1)):t.substr(~e+1)}a(Fo,"basename$1");let pi=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class Xn{static{a(this,"RegexSource")}static hasCaptures(e){return e===null?!1:(pi.lastIndex=0,pi.test(e))}static replaceCaptures(e,n,r){return e.replace(pi,(i,s,o,l)=>{let u=r[parseInt(s||o,10)];if(u){let c=n.substring(u.start,u.end);for(;c[0]===".";)c=c.substring(1);switch(l){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return i})}}function Mo(t,e){return t<e?-1:t>e?1:0}a(Mo,"strcmp");function $o(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let i=0;i<n;i++){let s=Mo(t[i],e[i]);if(s!==0)return s}return 0}return n-r}a($o,"strArrCmp");function Bo(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}a(Bo,"isValidHexColor");function qo(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}a(qo,"escapeRegExpCharacters");class zo{static{a(this,"CachedFn")}fn;cache=new Map;constructor(e){this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const n=this.fn(e);return this.cache.set(e,n),n}}class yn{static{a(this,"TopLevelRuleReference")}scopeName;constructor(e){this.scopeName=e}toKey(){return this.scopeName}}class wh{static{a(this,"TopLevelRepositoryRuleReference")}scopeName;ruleName;constructor(e,n){this.scopeName=e,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}}class kh{static{a(this,"ExternalReferenceCollector")}_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const n=e.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(e))}}class Sh{static{a(this,"ScopeDependencyProcessor")}repo;initialScopeName;seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;constructor(e,n){this.repo=e,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new yn(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const n=new kh;for(const r of e)xh(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof yn){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}}function xh(t,e,n,r){const i=n.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=n.lookup(e);t instanceof yn?Zn({baseGrammar:s,selfGrammar:i},r):di(t.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},r);const o=n.injections(t.scopeName);if(o)for(const l of o)r.add(new yn(l))}a(xh,"collectReferencesOfReference");function di(t,e,n){if(e.repository&&e.repository[t]){const r=e.repository[t];er([r],e,n)}}a(di,"collectExternalReferencesInTopLevelRepositoryRule");function Zn(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&er(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&er(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}a(Zn,"collectExternalReferencesInTopLevelRule");function er(t,e,n){for(const r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?Ro({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&er(r.patterns,{...e,repository:i},n);const s=r.include;if(!s)continue;const o=Uo(s);switch(o.kind){case 0:Zn({...e,selfGrammar:e.baseGrammar},n);break;case 1:Zn(e,n);break;case 2:di(o.ruleName,{...e,repository:i},n);break;case 3:case 4:const l=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const u={baseGrammar:e.baseGrammar,selfGrammar:l,repository:i};o.kind===4?di(o.ruleName,u,n):Zn(u,n)}else o.kind===4?n.add(new wh(o.scopeName,o.ruleName)):n.add(new yn(o.scopeName));break}}}a(er,"collectExternalReferencesInRules");class vh{static{a(this,"BaseReference")}kind=0}class _h{static{a(this,"SelfReference")}kind=1}class Ch{static{a(this,"RelativeReference")}ruleName;kind=2;constructor(e){this.ruleName=e}}class Nh{static{a(this,"TopLevelReference")}scopeName;kind=3;constructor(e){this.scopeName=e}}class Ah{static{a(this,"TopLevelRepositoryReference")}scopeName;ruleName;kind=4;constructor(e,n){this.scopeName=e,this.ruleName=n}}function Uo(t){if(t==="$base")return new vh;if(t==="$self")return new _h;const e=t.indexOf("#");if(e===-1)return new Nh(t);if(e===0)return new Ch(t.substring(1));{const n=t.substring(0,e),r=t.substring(e+1);return new Ah(n,r)}}a(Uo,"parseInclude");const Eh=/\\(\d+)/,jo=/\\(\d+)/g,Th=-1,Go=-2;function qN(t){return t}a(qN,"ruleIdFromNumber");function zN(t){return t}a(zN,"ruleIdToNumber");class bn{static{a(this,"Rule")}$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,n,r,i){this.$location=e,this.id=n,this._name=r||null,this._nameIsCapturing=Xn.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Xn.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Fo(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,n){return!this._nameIsCapturing||this._name===null||e===null||n===null?this._name:Xn.replaceCaptures(this._name,e,n)}getContentName(e,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Xn.replaceCaptures(this._contentName,e,n)}}class Ih extends bn{static{a(this,"CaptureRule")}retokenizeCapturedWithRuleId;constructor(e,n,r,i,s){super(e,n,r,i),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,n){throw new Error("Not supported!")}compile(e,n){throw new Error("Not supported!")}compileAG(e,n,r,i){throw new Error("Not supported!")}}class Lh extends bn{static{a(this,"MatchRule")}_match;captures;_cachedCompiledPatterns;constructor(e,n,r,i,s){super(e,n,r,null),this._match=new Tt(i,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new wn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class Ho extends bn{static{a(this,"IncludeOnlyRule")}hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,r,i,s){super(e,n,r,i),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,n){for(const r of this.patterns)e.getRule(r).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new wn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class mi extends bn{static{a(this,"BeginEndRule")}_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,r,i,s,o,l,u,c,h){super(e,n,r,i),this._begin=new Tt(s,this.id),this.beginCaptures=o,this._end=new Tt(l||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=u,this.applyEndPatternLast=c||!1,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e,n).compileAG(e,r,i)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new wn;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}}class tr extends bn{static{a(this,"BeginWhileRule")}_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,n,r,i,s,o,l,u,c){super(e,n,r,i),this._begin=new Tt(s,this.id),this.beginCaptures=o,this.whileCaptures=u,this._while=new Tt(l,Go),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new wn;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,r,i){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,r,i)}_getCachedCompiledWhilePatterns(e,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new wn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"\uFFFF"),this._cachedCompiledWhilePatterns}}class ce{static{a(this,"RuleFactory")}static createCaptureRule(e,n,r,i,s){return e.registerRule(o=>new Ih(n,o,r,i,s))}static getCompiledRuleId(e,n,r){return e.id||n.registerRule(i=>{if(e.id=i,e.match)return new Lh(e.$vscodeTextmateLocation,e.id,e.name,e.match,ce._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){e.repository&&(r=Ro({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new Ho(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,ce._compilePatterns(s,n,r))}return e.while?new tr(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,ce._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,ce._compileCaptures(e.whileCaptures||e.captures,n,r),ce._compilePatterns(e.patterns,n,r)):new mi(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,ce._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,ce._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,ce._compilePatterns(e.patterns,n,r))}),e.id}static _compileCaptures(e,n,r){let i=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>s&&(s=l)}for(let o=0;o<=s;o++)i[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let u=0;e[o].patterns&&(u=ce.getCompiledRuleId(e[o],n,r)),i[l]=ce.createCaptureRule(n,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,u)}}return i}static _compilePatterns(e,n,r){let i=[];if(e)for(let s=0,o=e.length;s<o;s++){const l=e[s];let u=-1;if(l.include){const c=Uo(l.include);switch(c.kind){case 0:case 1:u=ce.getCompiledRuleId(r[l.include],n,r);break;case 2:let h=r[c.ruleName];h&&(u=ce.getCompiledRuleId(h,n,r));break;case 3:case 4:const f=c.scopeName,p=c.kind===4?c.ruleName:null,d=n.getExternalGrammar(f,r);if(d)if(p){let m=d.repository[p];m&&(u=ce.getCompiledRuleId(m,n,d.repository))}else u=ce.getCompiledRuleId(d.repository.$self,n,d.repository);break}}else u=ce.getCompiledRuleId(l,n,r);if(u!==-1){const c=n.getRule(u);let h=!1;if((c instanceof Ho||c instanceof mi||c instanceof tr)&&c.hasMissingPatterns&&c.patterns.length===0&&(h=!0),h)continue;i.push(u)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}}class Tt{static{a(this,"RegExpSource")}source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,n){if(e){const r=e.length;let i=0,s=[],o=!1;for(let l=0;l<r;l++)if(e.charAt(l)==="\\"&&l+1<r){const c=e.charAt(l+1);c==="z"?(s.push(e.substring(i,l)),s.push("$(?!\\n)(?<!\\n)"),i=l+2):(c==="A"||c==="G")&&(o=!0),l++}this.hasAnchor=o,i===0?this.source=e:(s.push(e.substring(i,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,this.hasBackReferences=Eh.test(this.source)}clone(){return new Tt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){let r=n.map(i=>e.substring(i.start,i.end));return jo.lastIndex=0,this.source.replace(jo,(i,s)=>qo(r[parseInt(s,10)]||""))}_buildAnchorCache(){let e=[],n=[],r=[],i=[],s,o,l,u;for(s=0,o=this.source.length;s<o;s++)l=this.source.charAt(s),e[s]=l,n[s]=l,r[s]=l,i[s]=l,l==="\\"&&s+1<o&&(u=this.source.charAt(s+1),u==="A"?(e[s+1]="\uFFFF",n[s+1]="\uFFFF",r[s+1]="A",i[s+1]="A"):u==="G"?(e[s+1]="\uFFFF",n[s+1]="G",r[s+1]="\uFFFF",i[s+1]="G"):(e[s+1]=u,n[s+1]=u,r[s+1]=u,i[s+1]=u),s++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}}class wn{static{a(this,"RegExpSourceList")}_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,n){this._items[e].source!==n&&(this._disposeCaches(),this._items[e].setSource(n))}compile(e){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new Vo(e,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,n,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,n,r){let i=this._items.map(s=>s.resolveAnchors(n,r));return new Vo(e,i,this._items.map(s=>s.ruleId))}}class Vo{static{a(this,"CompiledRule")}regExps;rules;scanner;constructor(e,n,r){this.regExps=n,this.rules=r,this.scanner=e.createOnigScanner(n)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let n=0,r=this.rules.length;n<r;n++)e.push(" - "+this.rules[n]+": "+this.regExps[n]);return e.join(`
|
|
12
|
-
`)}findNextMatchSync(e,n,r){const i=this.scanner.findNextMatchSync(e,n,r);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}}class nr{static{a(this,"Theme")}_colorMap;_defaults;_root;static createFromRawTheme(e,n){return this.createFromParsedTheme(Dh(e),n)}static createFromParsedTheme(e,n){return Fh(e,n)}_cachedMatchRoot=new zo(e=>this._root.match(e));constructor(e,n,r){this._colorMap=e,this._defaults=n,this._root=r}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const n=e.scopeName,i=this._cachedMatchRoot.get(n).find(s=>Oh(e.parent,s.parentScopes));return i?new Wo(i.fontStyle,i.foreground,i.background):null}}class It{static{a(this,"ScopeStack")}parent;scopeName;static push(e,n){for(const r of n)e=new It(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new It(n,e[r]);return n}constructor(e,n){this.parent=e,this.scopeName=n}push(e){return new It(this,e)}getSegments(){let e=this;const n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const n=[];let r=this;for(;r&&r!==e;)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}}function Oh(t,e){if(e===null)return!0;let n=0,r=e[n];for(;t;){if(Ph(t.scopeName,r)){if(n++,n===e.length)return!0;r=e[n]}t=t.parent}return!1}a(Oh,"_scopePathMatchesParentScopes");function Ph(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}a(Ph,"_matchesScope");class Wo{static{a(this,"StyleAttributes")}fontStyle;foregroundId;backgroundId;constructor(e,n,r){this.fontStyle=e,this.foregroundId=n,this.backgroundId=r}}function Dh(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let i=0,s=e.length;i<s;i++){let o=e[i];if(!o.settings)continue;let l;if(typeof o.scope=="string"){let f=o.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),l=f.split(",")}else Array.isArray(o.scope)?l=o.scope:l=[""];let u=-1;if(typeof o.settings.fontStyle=="string"){u=0;let f=o.settings.fontStyle.split(" ");for(let p=0,d=f.length;p<d;p++)switch(f[p]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let c=null;typeof o.settings.foreground=="string"&&Bo(o.settings.foreground)&&(c=o.settings.foreground);let h=null;typeof o.settings.background=="string"&&Bo(o.settings.background)&&(h=o.settings.background);for(let f=0,p=l.length;f<p;f++){let m=l[f].trim().split(" "),g=m[m.length-1],y=null;m.length>1&&(y=m.slice(0,m.length-1),y.reverse()),n[r++]=new Rh(g,y,i,u,c,h)}}return n}a(Dh,"parseTheme");class Rh{static{a(this,"ParsedThemeRule")}scope;parentScopes;index;fontStyle;foreground;background;constructor(e,n,r,i,s,o){this.scope=e,this.parentScopes=n,this.index=r,this.fontStyle=i,this.foreground=s,this.background=o}}function Fh(t,e){t.sort((u,c)=>{let h=Mo(u.scope,c.scope);return h!==0||(h=$o(u.parentScopes,c.parentScopes),h!==0)?h:u.index-c.index});let n=0,r="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let u=t.shift();u.fontStyle!==-1&&(n=u.fontStyle),u.foreground!==null&&(r=u.foreground),u.background!==null&&(i=u.background)}let s=new Mh(e),o=new Wo(n,s.getId(r),s.getId(i)),l=new Gn(new jn(0,null,-1,0,0),[]);for(let u=0,c=t.length;u<c;u++){let h=t[u];l.insert(0,h.scope,h.parentScopes,h.fontStyle,s.getId(h.foreground),s.getId(h.background))}return new nr(s,o,l)}a(Fh,"resolveParsedThemeRules");class Mh{static{a(this,"ColorMap")}_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let n=0,r=e.length;n<r;n++)this._color2id[e[n]]=n,this._id2color[n]=e[n]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let n=this._color2id[e];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return n=++this._lastColorId,this._color2id[e]=n,this._id2color[n]=e,n}getColorMap(){return this._id2color.slice(0)}}class jn{static{a(this,"ThemeTrieElementRule")}scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,n,r,i,s){this.scopeDepth=e,this.parentScopes=n,this.fontStyle=r,this.foreground=i,this.background=s}clone(){return new jn(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,i=e.length;r<i;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}}class Gn{static{a(this,"ThemeTrieElement")}_mainRule;_children;_rulesWithParentScopes;constructor(e,n=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}static _sortBySpecificity(e){return e.length===1||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,n){if(e.scopeDepth===n.scopeDepth){const r=e.parentScopes,i=n.parentScopes;let s=r===null?0:r.length,o=i===null?0:i.length;if(s===o)for(let l=0;l<s;l++){const u=r[l].length,c=i[l].length;if(u!==c)return c-u}return o-s}return n.scopeDepth-e.scopeDepth}match(e){if(e==="")return Gn._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let n=e.indexOf("."),r,i;return n===-1?(r=e,i=""):(r=e.substring(0,n),i=e.substring(n+1)),this._children.hasOwnProperty(r)?this._children[r].match(i):Gn._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,n,r,i,s,o){if(n===""){this._doInsertHere(e,r,i,s,o);return}let l=n.indexOf("."),u,c;l===-1?(u=n,c=""):(u=n.substring(0,l),c=n.substring(l+1));let h;this._children.hasOwnProperty(u)?h=this._children[u]:(h=new Gn(this._mainRule.clone(),jn.cloneArr(this._rulesWithParentScopes)),this._children[u]=h),h.insert(e+1,c,r,i,s,o)}_doInsertHere(e,n,r,i,s){if(n===null){this._mainRule.acceptOverwrite(e,r,i,s);return}for(let o=0,l=this._rulesWithParentScopes.length;o<l;o++){let u=this._rulesWithParentScopes[o];if($o(u.parentScopes,n)===0){u.acceptOverwrite(e,r,i,s);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new jn(e,n,r,i,s))}}class gi{static{a(this,"BasicScopeAttributes")}languageId;tokenType;constructor(e,n){this.languageId=e,this.tokenType=n}}class Zr{static{a(this,"BasicScopeAttributesProvider")}_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,n){this._defaultAttributes=new gi(e,8),this._embeddedLanguagesMatcher=new $h(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Zr._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new gi(0,0);_getBasicScopeAttributes=new zo(e=>{const n=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new gi(n,r)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const n=e.match(Zr.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/}class $h{static{a(this,"ScopeMatcher")}values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const n=e.map(([r,i])=>qo(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const n=e.match(this.scopesRegExp);if(n)return this.values.get(n[1])}}class Ko{static{a(this,"TokenizeStringResult")}stack;stoppedEarly;constructor(e,n){this.stack=e,this.stoppedEarly=n}}function Yo(t,e,n,r,i,s,o,l){const u=e.content.length;let c=!1,h=-1;if(o){const d=Bh(t,e,n,r,i,s);i=d.stack,r=d.linePos,n=d.isFirstLine,h=d.anchorPosition}const f=Date.now();for(;!c;){if(l!==0&&Date.now()-f>l)return new Ko(i,!0);p()}return new Ko(i,!1);function p(){const d=qh(t,e,n,r,i,h);if(!d){s.produce(i,u),c=!0;return}const m=d.captureIndices,g=d.matchedRuleId,y=m&&m.length>0?m[0].end>r:!1;if(g===Th){const b=i.getRule(t);s.produce(i,m[0].start),i=i.withContentNameScopesList(i.nameScopesList),kn(t,e,n,i,s,b.endCaptures,m),s.produce(i,m[0].end);const w=i;if(i=i.parent,h=w.getAnchorPos(),!y&&w.getEnterPos()===r){i=w,s.produce(i,u),c=!0;return}}else{const b=t.getRule(g);s.produce(i,m[0].start);const w=i,k=b.getName(e.content,m),_=i.contentNameScopesList.pushAttributed(k,t);if(i=i.push(g,r,h,m[0].end===u,null,_,_),b instanceof mi){const C=b;kn(t,e,n,i,s,C.beginCaptures,m),s.produce(i,m[0].end),h=m[0].end;const S=C.getContentName(e.content,m),A=_.pushAttributed(S,t);if(i=i.withContentNameScopesList(A),C.endHasBackReferences&&(i=i.withEndRule(C.getEndWithResolvedBackReferences(e.content,m))),!y&&w.hasSameRuleAs(i)){i=i.pop(),s.produce(i,u),c=!0;return}}else if(b instanceof tr){const C=b;kn(t,e,n,i,s,C.beginCaptures,m),s.produce(i,m[0].end),h=m[0].end;const S=C.getContentName(e.content,m),A=_.pushAttributed(S,t);if(i=i.withContentNameScopesList(A),C.whileHasBackReferences&&(i=i.withEndRule(C.getWhileWithResolvedBackReferences(e.content,m))),!y&&w.hasSameRuleAs(i)){i=i.pop(),s.produce(i,u),c=!0;return}}else if(kn(t,e,n,i,s,b.captures,m),s.produce(i,m[0].end),i=i.pop(),!y){i=i.safePop(),s.produce(i,u),c=!0;return}}m[0].end>r&&(r=m[0].end,n=!1)}}a(Yo,"_tokenizeString");function Bh(t,e,n,r,i,s){let o=i.beginRuleCapturedEOL?0:-1;const l=[];for(let u=i;u;u=u.pop()){const c=u.getRule(t);c instanceof tr&&l.push({rule:c,stack:u})}for(let u=l.pop();u;u=l.pop()){const{ruleScanner:c,findOptions:h}=jh(u.rule,t,u.stack.endRule,n,r===o),f=c.findNextMatchSync(e,r,h);if(f){if(f.ruleId!==Go){i=u.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(s.produce(u.stack,f.captureIndices[0].start),kn(t,e,n,u.stack,s,u.rule.whileCaptures,f.captureIndices),s.produce(u.stack,f.captureIndices[0].end),o=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{i=u.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}a(Bh,"_checkWhileConditions");function qh(t,e,n,r,i,s){const o=zh(t,e,n,r,i,s),l=t.getInjections();if(l.length===0)return o;const u=Uh(l,t,e,n,r,i,s);if(!u)return o;if(!o)return u;const c=o.captureIndices[0].start,h=u.captureIndices[0].start;return h<c||u.priorityMatch&&h===c?u:o}a(qh,"matchRuleOrInjections");function zh(t,e,n,r,i,s){const o=i.getRule(t),{ruleScanner:l,findOptions:u}=Jo(o,t,i.endRule,n,r===s),c=l.findNextMatchSync(e,r,u);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}a(zh,"matchRule");function Uh(t,e,n,r,i,s,o){let l=Number.MAX_VALUE,u=null,c,h=0;const f=s.contentNameScopesList.getScopeNames();for(let p=0,d=t.length;p<d;p++){const m=t[p];if(!m.matcher(f))continue;const g=e.getRule(m.ruleId),{ruleScanner:y,findOptions:b}=Jo(g,e,null,r,i===o),w=y.findNextMatchSync(n,i,b);if(!w)continue;const k=w.captureIndices[0].start;if(!(k>=l)&&(l=k,u=w.captureIndices,c=w.ruleId,h=m.priority,l===i))break}return u?{priorityMatch:h===-1,captureIndices:u,matchedRuleId:c}:null}a(Uh,"matchInjections");function Jo(t,e,n,r,i){return{ruleScanner:t.compileAG(e,n,r,i),findOptions:0}}a(Jo,"prepareRuleSearch");function jh(t,e,n,r,i){return{ruleScanner:t.compileWhileAG(e,n,r,i),findOptions:0}}a(jh,"prepareRuleWhileSearch");function kn(t,e,n,r,i,s,o){if(s.length===0)return;const l=e.content,u=Math.min(s.length,o.length),c=[],h=o[0].end;for(let f=0;f<u;f++){const p=s[f];if(p===null)continue;const d=o[f];if(d.length===0)continue;if(d.start>h)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,d.start):i.produce(r,d.start),p.retokenizeCapturedWithRuleId){const g=p.getName(l,o),y=r.contentNameScopesList.pushAttributed(g,t),b=p.getContentName(l,o),w=y.pushAttributed(b,t),k=r.push(p.retokenizeCapturedWithRuleId,d.start,-1,!1,null,y,w),_=t.createOnigString(l.substring(0,d.end));Yo(t,_,n&&d.start===0,d.start,k,i,!1,0),Do(_);continue}const m=p.getName(l,o);if(m!==null){const y=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(m,t);c.push(new Gh(y,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}a(kn,"handleCaptures");class Gh{static{a(this,"LocalStackElement")}scopes;endPos;constructor(e,n){this.scopes=e,this.endPos=n}}function Hh(t,e,n,r,i,s,o,l){return new Wh(t,e,n,r,i,s,o,l)}a(Hh,"createGrammar");function Qo(t,e,n,r,i){const s=Qn(e,rr),o=ce.getCompiledRuleId(n,r,i.repository);for(const l of s)t.push({debugSelector:e,matcher:l.matcher,ruleId:o,grammar:i,priority:l.priority})}a(Qo,"collectInjections");function rr(t,e){if(e.length<t.length)return!1;let n=0;return t.every(r=>{for(let i=n;i<e.length;i++)if(Vh(e[i],r))return n=i+1,!0;return!1})}a(rr,"nameMatcher");function Vh(t,e){if(!t)return!1;if(t===e)return!0;const n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}a(Vh,"scopesAreMatching");class Wh{static{a(this,"Grammar")}_rootScopeName;balancedBracketSelectors;_onigLib;_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}constructor(e,n,r,i,s,o,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=u,this._basicScopeAttributesProvider=new Zr(r,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=Xo(n,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const c of Object.keys(s)){const h=Qn(c,rr);for(const f of h)this._tokenTypeMatchers.push({matcher:f.matcher,type:s[c]})}}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},n=[],r=this._rootScopeName,i=e.lookup(r);if(i){const s=i.injections;if(s)for(let l in s)Qo(n,l,s[l],this,i);const o=this._grammarRepository.injections(r);o&&o.forEach(l=>{const u=this.getExternalGrammar(l);if(u){const c=u.injectionSelector;c&&Qo(n,c,u,this,u)}})}return n.sort((s,o)=>s.priority-o.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const n=++this._lastRuleId,r=e(n);return this._ruleId2desc[n]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,n){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=Xo(r,n&&n.$base),this._includedGrammars[e]}}tokenizeLine(e,n,r=0){const i=this._tokenize(e,n,!1,r);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,n,r=0){const i=this._tokenize(e,n,!0,r);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,n,r,i){this._rootId===-1&&(this._rootId=ce.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!n||n===Ke.NULL){s=!0;const h=this._basicScopeAttributesProvider.getDefaultAttributes(),f=this.themeProvider.getDefaults(),p=Mt.set(0,h.languageId,h.tokenType,null,f.fontStyle,f.foregroundId,f.backgroundId),d=this.getRule(this._rootId).getName(null,null);let m;d?m=we.createRootAndLookUpScopeName(d,p,this):m=we.createRoot("unknown",p),n=new Ke(null,this._rootId,-1,-1,!1,null,m,m)}else s=!1,n.reset();e=e+`
|
|
13
|
-
`;const o=this.createOnigString(e),l=o.content.length,u=new Yh(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Yo(this,o,s,0,n,u,!0,i);return Do(o),{lineLength:l,lineTokens:u,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}}function Xo(t,e){return t=gh(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}a(Xo,"initGrammar");class we{static{a(this,"AttributedScopeStack")}parent;scopePath;tokenAttributes;static fromExtension(e,n){let r=e,i=e?.scopePath??null;for(const s of n)i=It.push(i,s.scopeNames),r=new we(r,i,s.encodedTokenAttributes);return r}static createRoot(e,n){return new we(null,new It(null,e),n)}static createRootAndLookUpScopeName(e,n,r){const i=r.getMetadataForScope(e),s=new It(null,e),o=r.themeProvider.themeMatch(s),l=we.mergeAttributes(n,i,o);return new we(null,s,l)}get scopeName(){return this.scopePath.scopeName}constructor(e,n,r){this.parent=e,this.scopePath=n,this.tokenAttributes=r}toString(){return this.getScopeNames().join(" ")}equals(e){return we.equals(this,e)}static equals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,r){let i=-1,s=0,o=0;return r!==null&&(i=r.fontStyle,s=r.foregroundId,o=r.backgroundId),Mt.set(e,n.languageId,n.tokenType,null,i,s,o)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return we._pushAttributed(this,e,n);const r=e.split(/ /g);let i=this;for(const s of r)i=we._pushAttributed(i,s,n);return i}static _pushAttributed(e,n,r){const i=r.getMetadataForScope(n),s=e.scopePath.push(n),o=r.themeProvider.themeMatch(s),l=we.mergeAttributes(e.tokenAttributes,i,o);return new we(e,s,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const n=[];let r=this;for(;r&&r!==e;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?n.reverse():void 0}}class Ke{static{a(this,"StateStackImpl")}parent;ruleId;beginRuleCapturedEOL;endRule;nameScopesList;contentNameScopesList;_stackElementBrand=void 0;static NULL=new Ke(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;constructor(e,n,r,i,s,o,l,u){this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=l,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}equals(e){return e===null?!1:Ke._equals(this,e)}static _equals(e,n){return e===n?!0:this._structuralEquals(e,n)?we.equals(e.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){Ke._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,n,r,i,s,o,l){return new Ke(this,e,n,r,i,s,o,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,n){return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new Ke(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,n){const r=we.fromExtension(e?.nameScopesList??null,n.nameScopesList);return new Ke(e,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,we.fromExtension(r,n.contentNameScopesList))}}class Kh{static{a(this,"BalancedBracketSelectors")}balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,n){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Qn(r,rr).map(i=>i.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>Qn(r,rr).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const n of this.unbalancedBracketScopes)if(n(e))return!1;for(const n of this.balancedBracketScopes)if(n(e))return!0;return this.allowAny}}class Yh{static{a(this,"LineTokens")}balancedBracketSelectors;_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;constructor(e,n,r,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,n){this.produceFromScopes(e.contentNameScopesList,n)}produceFromScopes(e,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let i=e?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const l of this._tokenTypeOverrides)l.matcher(o)&&(i=Mt.set(i,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(i=Mt.set(i,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=n;return}const r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(e,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let i=0,s=this._binaryTokens.length;i<s;i++)r[i]=this._binaryTokens[i];return r}}class Jh{static{a(this,"SyncRegistry")}_onigLibPromise;_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;constructor(e,n){this._onigLibPromise=n,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,n){this._rawGrammars.set(e.scopeName,e),n&&this._injectionGrammars.set(e.scopeName,n)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,n,r,i,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,Hh(e,o,n,r,i,s,this,await this._onigLibPromise))}return this._grammars.get(e)}}let Qh=class{static{a(this,"Registry")}_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Jh(nr.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,n){this._syncRegistry.setTheme(nr.createFromRawTheme(e,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,n,r){return this.loadGrammarWithConfiguration(e,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,n,r){return this._loadGrammar(e,n,r.embeddedLanguages,r.tokenTypes,new Kh(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,n,r,i,s){const o=new Sh(this._syncRegistry,e);for(;o.Q.length>0;)await Promise.all(o.Q.map(l=>this._loadSingleGrammar(l.scopeName))),o.processQueue();return this._grammarForScopeName(e,n,r,i,s)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const n=await this._options.loadGrammar(e);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(n,r)}}async addGrammar(e,n=[],r=0,i=null){return this._syncRegistry.addGrammar(e,n),await this._grammarForScopeName(e.scopeName,r,i)}_grammarForScopeName(e,n=0,r=null,i=null,s=null){return this._syncRegistry.grammarForScopeName(e,n,r,i,s)}};const Xh=Ke.NULL,pe={LANGUAGEID_MASK:255,TOKEN_TYPE_MASK:768,BALANCED_BRACKETS_MASK:1024,FONT_STYLE_MASK:14336,FOREGROUND_MASK:8372224,BACKGROUND_MASK:4286578688,LANGUAGEID_OFFSET:0,TOKEN_TYPE_OFFSET:8,BALANCED_BRACKETS_OFFSET:10,FONT_STYLE_OFFSET:11,FOREGROUND_OFFSET:15,BACKGROUND_OFFSET:24};class nt{static{a(this,"StackElementMetadata")}static toBinaryStr(e){let n=e.toString(2);for(;n.length<32;)n=`0${n}`;return n}static getLanguageId(e){return(e&pe.LANGUAGEID_MASK)>>>pe.LANGUAGEID_OFFSET}static getTokenType(e){return(e&pe.TOKEN_TYPE_MASK)>>>pe.TOKEN_TYPE_OFFSET}static getFontStyle(e){return(e&pe.FONT_STYLE_MASK)>>>pe.FONT_STYLE_OFFSET}static getForeground(e){return(e&pe.FOREGROUND_MASK)>>>pe.FOREGROUND_OFFSET}static getBackground(e){return(e&pe.BACKGROUND_MASK)>>>pe.BACKGROUND_OFFSET}static containsBalancedBrackets(e){return(e&pe.BALANCED_BRACKETS_MASK)!==0}static set(e,n,r,i,s,o){let l=nt.getLanguageId(e),u=nt.getTokenType(e),c=nt.getFontStyle(e),h=nt.getForeground(e),f=nt.getBackground(e);const p=nt.containsBalancedBrackets(e)?1:0;return n!==0&&(l=n),r!==0&&(u=r===8?0:r),i!==ze.NotSet&&(c=i),s!==0&&(h=s),o!==0&&(f=o),(l<<pe.LANGUAGEID_OFFSET|u<<pe.TOKEN_TYPE_OFFSET|c<<pe.FONT_STYLE_OFFSET|p<<pe.BALANCED_BRACKETS_OFFSET|h<<pe.FOREGROUND_OFFSET|f<<pe.BACKGROUND_OFFSET)>>>0}}function ir(t,e=!1){const n=t.split(/(\r?\n)/g);let r=0;const i=[];for(let s=0;s<n.length;s+=2){const o=e?n[s]+(n[s+1]||""):n[s];i.push([o,r]),r+=n[s].length,r+=n[s+1]?.length||0}return i}a(ir,"splitLines$1");function Zo(t){return!t||["plaintext","txt","text","plain"].includes(t)}a(Zo,"isPlainLang");function ea(t){return t==="ansi"||Zo(t)}a(ea,"isSpecialLang");function ta(t){return t==="none"}a(ta,"isNoneTheme");function na(t){return ta(t)}a(na,"isSpecialTheme");function ra(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const n=Array.isArray(e)?e:e.split(/\s+/g);for(const r of n)r&&!t.properties.class.includes(r)&&t.properties.class.push(r);return t}a(ra,"addClassToHast");function Zh(t,e){let n=0;const r=[];for(const i of e)i>n&&r.push({...t,content:t.content.slice(n,i),offset:t.offset+n}),n=i;return n<t.content.length&&r.push({...t,content:t.content.slice(n),offset:t.offset+n}),r}a(Zh,"splitToken");function ep(t,e){const n=Array.from(e instanceof Set?e:new Set(e)).sort((r,i)=>r-i);return n.length?t.map(r=>r.flatMap(i=>{const s=n.filter(o=>i.offset<o&&o<i.offset+i.content.length).map(o=>o-i.offset).sort((o,l)=>o-l);return s.length?Zh(i,s):i})):t}a(ep,"splitTokens");function sr(t,e){const n=typeof t=="string"?{}:{...t.colorReplacements},r=typeof t=="string"?t:t.name;for(const[i,s]of Object.entries(e?.colorReplacements||{}))typeof s=="string"?n[i]=s:i===r&&Object.assign(n,s);return n}a(sr,"resolveColorReplacements");function dt(t,e){return t&&(e?.[t?.toLowerCase()]||t)}a(dt,"applyColorReplacements");function ia(t){const e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&ze.Italic&&(e["font-style"]="italic"),t.fontStyle&ze.Bold&&(e["font-weight"]="bold"),t.fontStyle&ze.Underline&&(e["text-decoration"]="underline")),e}a(ia,"getTokenStyleObject");function sa(t){return Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}a(sa,"stringifyTokenStyle");function tp(t){const e=ir(t,!0).map(([i])=>i);function n(i){let s=i,o=0;for(const l of e){if(s<l.length)break;s-=l.length,o++}return{line:o,character:s}}a(n,"indexToPos");function r(i,s){let o=0;for(let l=0;l<i;l++)o+=e[l].length;return o+=s,o}return a(r,"posToIndex"),{lines:e,indexToPos:n,posToIndex:r}}a(tp,"createPositionConverter");var mt=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],yi={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function np(t,e){const n=t.indexOf("\x1B[",e);if(n!==-1){const r=t.indexOf("m",n);return{sequence:t.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:t.length}}a(np,"findSequence");function oa(t,e){let n=1;const r=t[e+n++];let i;if(r==="2"){const s=[t[e+n++],t[e+n++],t[e+n]].map(o=>Number.parseInt(o));s.length===3&&!s.some(o=>Number.isNaN(o))&&(i={type:"rgb",rgb:s})}else if(r==="5"){const s=Number.parseInt(t[e+n]);Number.isNaN(s)||(i={type:"table",index:Number(s)})}return[n,i]}a(oa,"parseColor");function rp(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n],i=Number.parseInt(r);if(!Number.isNaN(i))if(i===0)e.push({type:"resetAll"});else if(i<=9)yi[i]&&e.push({type:"setDecoration",value:yi[i]});else if(i<=29){const s=yi[i-20];s&&e.push({type:"resetDecoration",value:s})}else if(i<=37)e.push({type:"setForegroundColor",value:{type:"named",name:mt[i-30]}});else if(i===38){const[s,o]=oa(t,n);o&&e.push({type:"setForegroundColor",value:o}),n+=s}else if(i===39)e.push({type:"resetForegroundColor"});else if(i<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:mt[i-40]}});else if(i===48){const[s,o]=oa(t,n);o&&e.push({type:"setBackgroundColor",value:o}),n+=s}else i===49?e.push({type:"resetBackgroundColor"}):i>=90&&i<=97?e.push({type:"setForegroundColor",value:{type:"named",name:mt[i-90+8]}}):i>=100&&i<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:mt[i-100+8]}})}return e}a(rp,"parseSequence");function ip(){let t=null,e=null,n=new Set;return{parse(r){const i=[];let s=0;do{const o=np(r,s),l=o.sequence?r.substring(s,o.startPosition):r.substring(s);if(l.length>0&&i.push({value:l,foreground:t,background:e,decorations:new Set(n)}),o.sequence){const u=rp(o.sequence);for(const c of u)c.type==="resetAll"?(t=null,e=null,n.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of u)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&n.add(c.value)}s=o.position}while(s<r.length);return i}}}a(ip,"createAnsiSequenceParser");var sp={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function op(t=sp){function e(l){return t[l]}a(e,"namedColor");function n(l){return`#${l.map(u=>Math.max(0,Math.min(u,255)).toString(16).padStart(2,"0")).join("")}`}a(n,"rgbColor");let r;function i(){if(r)return r;r=[];for(let c=0;c<mt.length;c++)r.push(e(mt[c]));let l=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let h=0;h<6;h++)for(let f=0;f<6;f++)r.push(n([l[c],l[h],l[f]]));let u=8;for(let c=0;c<24;c++,u+=10)r.push(n([u,u,u]));return r}a(i,"getColorTable");function s(l){return i()[l]}a(s,"tableColor");function o(l){switch(l.type){case"named":return e(l.name);case"rgb":return n(l.rgb);case"table":return s(l.index)}}return a(o,"value"),{value:o}}a(op,"createColorPalette");function ap(t,e,n){const r=sr(t,n),i=ir(e),s=op(Object.fromEntries(mt.map(l=>[l,t.colors?.[`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`]]))),o=ip();return i.map(l=>o.parse(l[0]).map(u=>{let c,h;u.decorations.has("reverse")?(c=u.background?s.value(u.background):t.bg,h=u.foreground?s.value(u.foreground):t.fg):(c=u.foreground?s.value(u.foreground):t.fg,h=u.background?s.value(u.background):void 0),c=dt(c,r),h=dt(h,r),u.decorations.has("dim")&&(c=lp(c));let f=ze.None;return u.decorations.has("bold")&&(f|=ze.Bold),u.decorations.has("italic")&&(f|=ze.Italic),u.decorations.has("underline")&&(f|=ze.Underline),{content:u.value,offset:l[1],color:c,bgColor:h,fontStyle:f}}))}a(ap,"tokenizeAnsiWithTheme");function lp(t){const e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const r=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${r}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(r=>`${r}${r}`).join("")}80`;const n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:t}a(lp,"dimColor");function bi(t,e,n={}){const{lang:r="text",theme:i=t.getLoadedThemes()[0]}=n;if(Zo(r)||ta(i))return ir(e).map(u=>[{content:u[0],offset:u[1]}]);const{theme:s,colorMap:o}=t.setTheme(i);if(r==="ansi")return ap(s,e,n);const l=t.getLanguage(r);return up(e,l,s,o,n)}a(bi,"codeToTokensBase");function up(t,e,n,r,i){const s=sr(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:l=500}=i,u=ir(t);let c=Xh,h=[];const f=[],p=[];if(i.includeExplanation)for(const d of n.settings){let m;switch(typeof d.scope){case"string":m=d.scope.split(/,/).map(g=>g.trim());break;case"object":m=d.scope;break;default:continue}p.push({settings:d,selectors:m.map(g=>g.split(/ /))})}for(let d=0,m=u.length;d<m;d++){const[g,y]=u[d];if(g===""){h=[],f.push([]);continue}if(o>0&&g.length>=o){h=[],f.push([{content:g,offset:y,color:"",fontStyle:0}]);continue}let b,w,k;i.includeExplanation&&(b=e.tokenizeLine(g,c),w=b.tokens,k=0);const _=e.tokenizeLine2(g,c,l),C=_.tokens.length/2;for(let S=0;S<C;S++){const A=_.tokens[2*S],E=S+1<C?_.tokens[2*S+2]:g.length;if(A===E)continue;const P=_.tokens[2*S+1],N=dt(r[nt.getForeground(P)],s),R=nt.getFontStyle(P),O={content:g.substring(A,E),offset:y+A,color:N,fontStyle:R};if(i.includeExplanation){O.explanation=[];let H=0;for(;A+H<E;){const K=w[k],j=g.substring(K.startIndex,K.endIndex);H+=j.length,O.explanation.push({content:j,scopes:cp(p,K.scopes)}),k+=1}}h.push(O)}f.push(h),h=[],c=_.ruleStack}return f}a(up,"tokenizeWithTheme");function cp(t,e){const n=[];for(let r=0,i=e.length;r<i;r++){const s=e.slice(0,r),o=e[r];n[r]={scopeName:o,themeMatches:hp(t,o,s)}}return n}a(cp,"explainThemeScopes");function aa(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}a(aa,"matchesOne");function fp(t,e,n){if(!aa(t[t.length-1],e))return!1;let r=t.length-2,i=n.length-1;for(;r>=0&&i>=0;)aa(t[r],n[i])&&(r-=1),i-=1;return r===-1}a(fp,"matches");function hp(t,e,n){const r=[];for(const{selectors:i,settings:s}of t)for(const o of i)if(fp(o,e,n)){r.push(s);break}return r}a(hp,"explainThemeScope");function la(t,e,n){const r=Object.entries(n.themes).filter(o=>o[1]).map(o=>({color:o[0],theme:o[1]})),i=pp(...r.map(o=>bi(t,e,{...n,theme:o.theme})));return i[0].map((o,l)=>o.map((u,c)=>{const h={content:u.content,variants:{},offset:u.offset};return i.forEach((f,p)=>{const{content:d,explanation:m,offset:g,...y}=f[l][c];h.variants[r[p].color]=y}),h}))}a(la,"codeToTokensWithThemes");function pp(...t){const e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){const i=t.map(u=>u[r]),s=e.map(()=>[]);e.forEach((u,c)=>u.push(s[c]));const o=i.map(()=>0),l=i.map(u=>u[0]);for(;l.every(u=>u);){const u=Math.min(...l.map(c=>c.content.length));for(let c=0;c<n;c++){const h=l[c];h.content.length===u?(s[c].push(h),o[c]+=1,l[c]=i[c][o[c]]):(s[c].push({...h,content:h.content.slice(0,u)}),l[c]={...h,content:h.content.slice(u),offset:h.offset+u})}}}return e}a(pp,"syncThemesTokenization");class le extends Error{static{a(this,"ShikiError")}constructor(e){super(e),this.name="ShikiError"}}function or(t,e,n){let r,i,s,o,l;if("themes"in n){const{defaultColor:u="light",cssVariablePrefix:c="--shiki-"}=n,h=Object.entries(n.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,y)=>g.color===u?-1:y.color===u?1:0);if(h.length===0)throw new le("`themes` option must not be empty");const f=la(t,e,n);if(u&&!h.find(g=>g.color===u))throw new le(`\`themes\` option must contain the defaultColor key \`${u}\``);const p=h.map(g=>t.getTheme(g.theme)),d=h.map(g=>g.color);s=f.map(g=>g.map(y=>dp(y,d,c,u)));const m=h.map(g=>sr(g.theme,n));i=h.map((g,y)=>(y===0&&u?"":`${c+g.color}:`)+(dt(p[y].fg,m[y])||"inherit")).join(";"),r=h.map((g,y)=>(y===0&&u?"":`${c+g.color}-bg:`)+(dt(p[y].bg,m[y])||"inherit")).join(";"),o=`shiki-themes ${p.map(g=>g.name).join(" ")}`,l=u?void 0:[i,r].join(";")}else if("theme"in n){const u=sr(n.theme,n.colorReplacements);s=bi(t,e,n);const c=t.getTheme(n.theme);r=dt(c.bg,u),i=dt(c.fg,u),o=c.name}else throw new le("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:i,bg:r,themeName:o,rootStyle:l}}a(or,"codeToTokens");function dp(t,e,n,r){const i={content:t.content,explanation:t.explanation,offset:t.offset},s=e.map(u=>ia(t.variants[u])),o=new Set(s.flatMap(u=>Object.keys(u))),l=s.reduce((u,c,h)=>{for(const f of o){const p=c[f]||"inherit";if(h===0&&r)u[f]=p;else{const d=f==="color"?"":f==="background-color"?"-bg":`-${f}`,m=n+e[h]+(f==="color"?"":d);u[f]?u[f]+=`;${m}:${p}`:u[f]=`${m}:${p}`}}return u},{});return i.htmlStyle=r?sa(l):Object.values(l).join(";"),i}a(dp,"mergeToken");function mp(){const t=new WeakMap;function e(r){if(!t.has(r.meta)){let s=function(l){return typeof l=="number"?{...i.indexToPos(l),offset:l}:{...l,offset:i.posToIndex(l.line,l.character)}};a(s,"normalizePosition");const i=tp(r.source),o=(r.options.decorations||[]).map(l=>({...l,start:s(l.start),end:s(l.end)}));n(o),t.set(r.meta,{decorations:o,converter:i,source:r.source})}return t.get(r.meta)}a(e,"getContext");function n(r){for(let i=0;i<r.length;i++){const s=r[i];if(s.start.offset>s.end.offset)throw new le(`Invalid decoration range: ${JSON.stringify(s.start)} - ${JSON.stringify(s.end)}`);for(let o=i+1;o<r.length;o++){const l=r[o],u=s.start.offset<l.start.offset&&l.start.offset<s.end.offset,c=s.start.offset<l.end.offset&&l.end.offset<s.end.offset,h=l.start.offset<s.start.offset&&s.start.offset<l.end.offset,f=l.start.offset<s.end.offset&&s.end.offset<l.end.offset;if(u||c||h||f){if(c&&c||h&&f)continue;throw new le(`Decorations ${JSON.stringify(s.start)} and ${JSON.stringify(l.start)} intersect.`)}}}}return a(n,"verifyIntersections"),{name:"shiki:decorations",tokens(r){if(!this.options.decorations?.length)return;const s=e(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]);return ep(r,s)},code(r){if(!this.options.decorations?.length)return;const i=e(this),s=Array.from(r.children).filter(f=>f.type==="element"&&f.tagName==="span");if(s.length!==i.converter.lines.length)throw new le(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function o(f,p,d,m){const g=s[f];let y="",b=-1,w=-1;function k(C){return C.type==="text"?C.value:C.type==="element"?C.children.map(k).join(""):""}if(a(k,"stringify"),p===0&&(b=0),d===0&&(w=0),d===Number.POSITIVE_INFINITY&&(w=g.children.length),b===-1||w===-1)for(let C=0;C<g.children.length;C++)y+=k(g.children[C]),b===-1&&y.length===p&&(b=C+1),w===-1&&y.length===d&&(w=C+1);if(b===-1)throw new le(`Failed to find start index for decoration ${JSON.stringify(m.start)}`);if(w===-1)throw new le(`Failed to find end index for decoration ${JSON.stringify(m.end)}`);const _=g.children.slice(b,w);if(!m.alwaysWrap&&_.length===g.children.length)u(g,m,"line");else if(!m.alwaysWrap&&_.length===1&&_[0].type==="element")u(_[0],m,"token");else{const C={type:"element",tagName:"span",properties:{},children:_};u(C,m,"wrapper"),g.children.splice(b,_.length,C)}}a(o,"applyLineSection");function l(f,p){s[f]=u(s[f],p,"line")}a(l,"applyLine");function u(f,p,d){const m=p.properties||{},g=p.transform||(y=>y);return f.tagName=p.tagName||"span",f.properties={...f.properties,...m,class:f.properties.class},p.properties?.class&&ra(f,p.properties.class),f=g(f,d)||f,f}a(u,"applyDecoration");const c=[],h=i.decorations.sort((f,p)=>p.start.offset-f.start.offset);for(const f of h){const{start:p,end:d}=f;if(p.line===d.line)o(p.line,p.character,d.character,f);else if(p.line<d.line){o(p.line,p.character,Number.POSITIVE_INFINITY,f);for(let m=p.line+1;m<d.line;m++)c.unshift(()=>l(m,f));o(d.line,0,d.character,f)}}c.forEach(f=>f())}}}a(mp,"transformerDecorations");const gp=[mp()];function ar(t){return[...t.transformers||[],...gp]}a(ar,"getTransformers");function lr(t,e,n,r={meta:{},options:n,codeToHast:(i,s)=>lr(t,i,s),codeToTokens:(i,s)=>or(t,i,s)}){let i=e;for(const p of ar(n))i=p.preprocess?.call(r,i,n)||i;let{tokens:s,fg:o,bg:l,themeName:u,rootStyle:c}=or(t,i,n);const{mergeWhitespaces:h=!0}=n;h===!0?s=bp(s):h==="never"&&(s=wp(s));const f={...r,get source(){return i}};for(const p of ar(n))s=p.tokens?.call(f,s)||s;return yp(s,{...n,fg:o,bg:l,themeName:u,rootStyle:c},f)}a(lr,"codeToHast");function yp(t,e,n){const r=ar(e),i=[],s={type:"root",children:[]},{structure:o="classic"}=e;let l={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([p])=>!p.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:i};const c=[],h={...n,structure:o,addClassToHast:ra,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return s},get pre(){return l},get code(){return u},get lines(){return c}};if(t.forEach((p,d)=>{d&&(o==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):o==="classic"&&i.push({type:"text",value:`
|
|
14
|
-
`}));let m={type:"element",tagName:"span",properties:{class:"line"},children:[]},g=0;for(const y of p){let b={type:"element",tagName:"span",properties:{},children:[{type:"text",value:y.content}]};const w=y.htmlStyle||sa(ia(y));w&&(b.properties.style=w);for(const k of r)b=k?.span?.call(h,b,d+1,g,m)||b;o==="inline"?s.children.push(b):o==="classic"&&m.children.push(b),g+=y.content.length}if(o==="classic"){for(const y of r)m=y?.line?.call(h,m,d+1)||m;c.push(m),i.push(m)}}),o==="classic"){for(const p of r)u=p?.code?.call(h,u)||u;l.children.push(u);for(const p of r)l=p?.pre?.call(h,l)||l;s.children.push(l)}let f=s;for(const p of r)f=p?.root?.call(h,f)||f;return f}a(yp,"tokensToHast");function bp(t){return t.map(e=>{const n=[];let r="",i=0;return e.forEach((s,o)=>{const u=!(s.fontStyle&&s.fontStyle&ze.Underline);u&&s.content.match(/^\s+$/)&&e[o+1]?(i||(i=s.offset),r+=s.content):r?(u?n.push({...s,offset:i,content:r+s.content}):n.push({content:r,offset:i},s),i=0,r=""):n.push(s)}),n})}a(bp,"mergeWhitespaceTokens");function wp(t){return t.map(e=>e.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,i,s,o]=r;if(!i&&!o)return n;const l=[{...n,offset:n.offset+i.length,content:s}];return i&&l.unshift({content:i,offset:n.offset}),o&&l.push({content:o,offset:n.offset+i.length+s.length}),l}))}a(wp,"splitWhitespaceTokens");const kp=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Sn=class{static{a(this,"Schema")}constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}};Sn.prototype.property={},Sn.prototype.normal={},Sn.prototype.space=null;function ua(t,e){const n={},r={};let i=-1;for(;++i<t.length;)Object.assign(n,t[i].property),Object.assign(r,t[i].normal);return new Sn(n,r,e)}a(ua,"merge$1");function wi(t){return t.toLowerCase()}a(wi,"normalize$2");let Ee=class{static{a(this,"Info")}constructor(e,n){this.property=e,this.attribute=n}};Ee.prototype.space=null,Ee.prototype.boolean=!1,Ee.prototype.booleanish=!1,Ee.prototype.overloadedBoolean=!1,Ee.prototype.number=!1,Ee.prototype.commaSeparated=!1,Ee.prototype.spaceSeparated=!1,Ee.prototype.commaOrSpaceSeparated=!1,Ee.prototype.mustUseProperty=!1,Ee.prototype.defined=!1;let Sp=0;const B=gt(),re=gt(),ca=gt(),I=gt(),Q=gt(),$t=gt(),_e=gt();function gt(){return 2**++Sp}a(gt,"increment$1");var ki=Object.freeze({__proto__:null,boolean:B,booleanish:re,commaOrSpaceSeparated:_e,commaSeparated:$t,number:I,overloadedBoolean:ca,spaceSeparated:Q});const Si=Object.keys(ki);let xi=class extends Ee{static{a(this,"DefinedInfo")}constructor(e,n,r,i){let s=-1;if(super(e,n),fa(this,"space",i),typeof r=="number")for(;++s<Si.length;){const o=Si[s];fa(this,Si[s],(r&ki[o])===ki[o])}}};xi.prototype.defined=!0;function fa(t,e,n){n&&(t[e]=n)}a(fa,"mark$1");const xp={}.hasOwnProperty;function Bt(t){const e={},n={};let r;for(r in t.properties)if(xp.call(t.properties,r)){const i=t.properties[r],s=new xi(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),e[r]=s,n[wi(r)]=r,n[wi(s.attribute)]=r}return new Sn(e,n,t.space)}a(Bt,"create$2");const ha=Bt({space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),pa=Bt({space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function da(t,e){return e in t?t[e]:e}a(da,"caseSensitiveTransform$1");function ma(t,e){return da(t,e.toLowerCase())}a(ma,"caseInsensitiveTransform$1");const ga=Bt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ma,properties:{xmlns:null,xmlnsXLink:null}}),ya=Bt({transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:re,ariaAutoComplete:null,ariaBusy:re,ariaChecked:re,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:Q,ariaCurrent:null,ariaDescribedBy:Q,ariaDetails:null,ariaDisabled:re,ariaDropEffect:Q,ariaErrorMessage:null,ariaExpanded:re,ariaFlowTo:Q,ariaGrabbed:re,ariaHasPopup:null,ariaHidden:re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Q,ariaLevel:I,ariaLive:null,ariaModal:re,ariaMultiLine:re,ariaMultiSelectable:re,ariaOrientation:null,ariaOwns:Q,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:re,ariaReadOnly:re,ariaRelevant:null,ariaRequired:re,ariaRoleDescription:Q,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:re,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null}}),vp=Bt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ma,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$t,acceptCharset:Q,accessKey:Q,action:null,allow:null,allowFullScreen:B,allowPaymentRequest:B,allowUserMedia:B,alt:null,as:null,async:B,autoCapitalize:null,autoComplete:Q,autoFocus:B,autoPlay:B,blocking:Q,capture:null,charSet:null,checked:B,cite:null,className:Q,cols:I,colSpan:null,content:null,contentEditable:re,controls:B,controlsList:Q,coords:I|$t,crossOrigin:null,data:null,dateTime:null,decoding:null,default:B,defer:B,dir:null,dirName:null,disabled:B,download:ca,draggable:re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:B,formTarget:null,headers:Q,height:I,hidden:B,high:I,href:null,hrefLang:null,htmlFor:Q,httpEquiv:Q,id:null,imageSizes:null,imageSrcSet:null,inert:B,inputMode:null,integrity:null,is:null,isMap:B,itemId:null,itemProp:Q,itemRef:Q,itemScope:B,itemType:Q,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:B,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:B,muted:B,name:null,nonce:null,noModule:B,noValidate:B,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:B,optimum:I,pattern:null,ping:Q,placeholder:null,playsInline:B,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:B,referrerPolicy:null,rel:Q,required:B,reversed:B,rows:I,rowSpan:I,sandbox:Q,scope:null,scoped:B,seamless:B,selected:B,shadowRootDelegatesFocus:B,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:B,useMap:null,value:re,width:I,wrap:null,align:null,aLink:null,archive:Q,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:B,declare:B,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:B,noHref:B,noShade:B,noWrap:B,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:re,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:B,disableRemotePlayback:B,prefix:null,property:null,results:I,security:null,unselectable:null}}),_p=Bt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:da,properties:{about:_e,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:Q,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:B,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:$t,g2:$t,glyphName:$t,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:_e,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Q,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_e,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_e,rev:_e,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_e,requiredFeatures:_e,requiredFonts:_e,requiredFormats:_e,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:_e,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_e,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_e,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Cp=/^data[-\w.:]+$/i,ba=/-[a-z]/g,Np=/[A-Z]/g;function Ap(t,e){const n=wi(e);let r=e,i=Ee;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Cp.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(ba,Tp);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!ba.test(s)){let o=s.replace(Np,Ep);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=xi}return new i(r,e)}a(Ap,"find$1");function Ep(t){return"-"+t.toLowerCase()}a(Ep,"kebab$1");function Tp(t){return t.charAt(1).toUpperCase()}a(Tp,"camelcase$1");const Ip=ua([pa,ha,ga,ya,vp],"html"),wa=ua([pa,ha,ga,ya,_p],"svg"),ka={}.hasOwnProperty;function Lp(t,e){const n=e||{};function r(i,...s){let o=r.invalid;const l=r.handlers;if(i&&ka.call(i,t)){const u=String(i[t]);o=ka.call(l,u)?l[u]:r.unknown}if(o)return o.call(this,i,...s)}return a(r,"one"),r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}a(Lp,"zwitch$1");function Op(t,e){if(t=t.replace(e.subset?Pp(e.subset):/["&'<>`]/g,r),e.subset||e.escapeOnly)return t;return t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function n(i,s,o){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function r(i,s,o){return e.format(i.charCodeAt(0),o.charCodeAt(s+1),e)}}a(Op,"core$1");function Pp(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}a(Pp,"charactersToExpression$1");function Dp(t,e,n){const r="&#x"+t.toString(16).toUpperCase();return n&&e&&!/[\dA-Fa-f]/.test(String.fromCharCode(e))?r:r+";"}a(Dp,"toHexadecimal$1");function Rp(t,e,n){const r="&#"+String(t);return n&&e&&!/\d/.test(String.fromCharCode(e))?r:r+";"}a(Rp,"toDecimal$1");const Fp=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],vi={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"},Mp=["cent","copy","divide","gt","lt","not","para","times"],Sa={}.hasOwnProperty,_i={};let ur;for(ur in vi)Sa.call(vi,ur)&&(_i[vi[ur]]=ur);function $p(t,e,n,r){const i=String.fromCharCode(t);if(Sa.call(_i,i)){const s=_i[i],o="&"+s;return n&&Fp.includes(s)&&!Mp.includes(s)&&(!r||e&&e!==61&&/[^\da-z]/i.test(String.fromCharCode(e)))?o:o+";"}return""}a($p,"toNamed$1");function Bp(t,e,n){let r=Dp(t,e,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=$p(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=Rp(t,e,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}a(Bp,"formatSmart$1");function qt(t,e){return Op(t,Object.assign({format:Bp},e))}a(qt,"stringifyEntities$1");const qp=/^>|^->|<!--|-->|--!>|<!-$/g,zp=[">"],Up=["<",">"];function jp(t,e,n,r){return r.settings.bogusComments?"<?"+qt(t.value,Object.assign({},r.settings.characterReferences,{subset:zp}))+">":"<!--"+t.value.replace(qp,i)+"-->";function i(s){return qt(s,Object.assign({},r.settings.characterReferences,{subset:Up}))}}a(jp,"comment$1");function Gp(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}a(Gp,"doctype$1");function xa(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}a(xa,"ccount$1");function Hp(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}a(Hp,"stringify$1$1");function Vp(t){return t.join(" ").trim()}a(Vp,"stringify$4");const Wp=/[ \t\n\f\r]/g;function Ci(t){return typeof t=="object"?t.type==="text"?va(t.value):!1:va(t)}a(Ci,"whitespace$1");function va(t){return t.replace(Wp,"")===""}a(va,"empty$2");const oe=Ca(1),_a=Ca(-1),Kp=[];function Ca(t){return e;function e(n,r,i){const s=n?n.children:Kp;let o=(r||0)+t,l=s[o];if(!i)for(;l&&Ci(l);)o+=t,l=s[o];return l}}a(Ca,"siblings$1");const Yp={}.hasOwnProperty;function Na(t){return e;function e(n,r,i){return Yp.call(t,n.tagName)&&t[n.tagName](n,r,i)}}a(Na,"omission$1");const Ni=Na({body:Qp,caption:Ai,colgroup:Ai,dd:td,dt:ed,head:Ai,html:Jp,li:Zp,optgroup:nd,option:rd,p:Xp,rp:Aa,rt:Aa,tbody:sd,td:Ea,tfoot:od,th:Ea,thead:id,tr:ad});function Ai(t,e,n){const r=oe(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ci(r.value.charAt(0)))}a(Ai,"headOrColgroupOrCaption$1");function Jp(t,e,n){const r=oe(n,e);return!r||r.type!=="comment"}a(Jp,"html$1$1");function Qp(t,e,n){const r=oe(n,e);return!r||r.type!=="comment"}a(Qp,"body$1$1");function Xp(t,e,n){const r=oe(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}a(Xp,"p$2");function Zp(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&r.tagName==="li"}a(Zp,"li$1");function ed(t,e,n){const r=oe(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}a(ed,"dt$1");function td(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}a(td,"dd$1");function Aa(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}a(Aa,"rubyElement$1");function nd(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}a(nd,"optgroup$1");function rd(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}a(rd,"option$1");function id(t,e,n){const r=oe(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}a(id,"thead$1");function sd(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}a(sd,"tbody$1$1");function od(t,e,n){return!oe(n,e)}a(od,"tfoot$1");function ad(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&r.tagName==="tr"}a(ad,"tr$1");function Ea(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}a(Ea,"cells$1");const ld=Na({body:fd,colgroup:hd,head:cd,html:ud,tbody:pd});function ud(t){const e=oe(t,-1);return!e||e.type!=="comment"}a(ud,"html$6");function cd(t){const e=t.children,n=[];let r=-1;for(;++r<e.length;){const i=e[r];if(i.type==="element"&&(i.tagName==="title"||i.tagName==="base")){if(n.includes(i.tagName))return!1;n.push(i.tagName)}}return e.length>0}a(cd,"head$1");function fd(t){const e=oe(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Ci(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}a(fd,"body$2");function hd(t,e,n){const r=_a(n,e),i=oe(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Ni(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}a(hd,"colgroup$1");function pd(t,e,n){const r=_a(n,e),i=oe(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Ni(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}a(pd,"tbody$2");const cr={name:[[`
|
|
11
|
+
- `)}`)}a(ih,"validateNamespace");function To(t){return`yanki-media-${rh(Eo(t)).replaceAll(/-+/g,"-")}`}a(To,"getSlugifiedNamespace");function sh(t){const e={"application/octet-stream":"mp4","application/ogg":"ogx","application/x-shockwave-flash":"swf","audio/aac":"aac","audio/flac":"flac","audio/mp4":"m4a","audio/mpeg":"mp3","audio/ogg":"ogg","audio/opus":"opus","audio/wav":"wav","audio/webm":"webm","audio/x-speex":"spx","image/avif":"avif","image/gif":"gif","image/jpeg":"jpg","image/png":"png","image/svg+xml":"svg","image/tiff":"tif","image/vnd.microsoft.icon":"ico","image/webp":"webp","image/x-icon":"ico","video/3gpp":"3gp","video/flv":"flv","video/matroska":"mkv","video/mp4":"mp4","video/mpeg":"mpg","video/msvideo":"avi","video/ogg":"ogv","video/quicktime":"mov","video/webm":"webm","video/x-flv":"flv","video/x-matroska":"mkv","video/x-msvideo":"avi"};return t in e||console.log(`Unknown MIME type: ${t}`),e[t]}a(sh,"getFileExtensionForMimeType");function gn(t){try{const{protocol:e}=new URL(t);return e==="https:"||e==="http:"}catch{return!1}}a(gn,"isUrl$1");function oh(t){try{const e=new URL(t);return e.protocol==="file:"?e.pathname:t}catch{return t}}a(oh,"fileUrlToPath");function ah(t){try{const e=new URL(t);if(e.protocol==="file:")return"localFileUrl";if(e.protocol==="http:"||e.protocol==="https:")return"remoteHttpUrl"}catch{return"localFilePath"}return"localFilePath"}a(ah,"getSrcType");function Io(t,e){if(t===void 0)return;t instanceof Headers||(t=lh(t));const n=(t instanceof Headers?e.map(r=>t.get(r)):e.map(r=>t[r])).filter(r=>r!=null).join("");if(n!=="")return n}a(Io,"getHeadersString");function lh(t){const e={};for(const[n,r]of Object.entries(t))e[n.toLowerCase()]=r;return e}a(lh,"convertKeysToLowercase");async function ci(t,e,n=zf,r=Uf){switch(n){case"metadata":{if(e===void 0)return ci(t,e,"name");try{const i=await e(t,{method:"HEAD"}),s=Io(i?.headers,["content-type"]);if(s===void 0)throw new Error("No content-type header found");return sh(s)}catch{return ci(t,e,"name")}}case"name":{let i;const s=new URL(t),o=s.pathname.split(".");return o.length>1?i=o.at(-1):i=s.search.split(".").at(-1),[...oi,...si].includes(i??"")?i:r?"unknown":void 0}}}a(ci,"getFileExtensionFromUrl");async function fi(t,e,n=qf){switch(n){case"content":return console.warn("`content` hash mode is not yet implemented for URLs"),fi(t,e,"metadata");case"metadata":try{const r=await e(t,{method:"HEAD"}),i=Io(r?.headers,["etag","last-modified","content-length"]);if(i===void 0)throw new Error("No headers found");return Wn(i,16)}catch{return fi(t,e,"name")}case"name":return Wn(t,16)}}a(fi,"getUrlContentHash");async function Lo(t,e){const n=gn(t)?await ci(t,e):W.extname(t).slice(1);if(!(n===void 0||!["unknown",...oi,...si].includes(n)))return n}a(Lo,"getAnkiMediaFilenameExtension");async function uh(t,e,n,r){const i=To(e),s=await ch(t,n,r),o=await Lo(t,r),l=o===void 0?"":`.${o}`;let u;if(u=`${i}-${s}${l}`,u.length>So)throw new Error(`Filename too long: ${u}`);return u}a(uh,"getSafeAnkiMediaFilename");async function ch(t,e,n){return gn(t)?fi(t,n):No(t,e)}a(ch,"getContentHash");const Oo=[{id:"abap",name:"ABAP",import:()=>import("./abap-DXFkqnOI.js")},{id:"actionscript-3",name:"ActionScript",import:()=>import("./actionscript-3-BigF1UXR.js")},{id:"ada",name:"Ada",import:()=>import("./ada-CowR2XfX.js")},{id:"angular-html",name:"Angular HTML",import:()=>import("./angular-html-CZfDmWtJ.js").then(function(t){return t.e})},{id:"angular-ts",name:"Angular TypeScript",import:()=>import("./angular-ts-CIhYrOL5.js")},{id:"apache",name:"Apache Conf",import:()=>import("./apache-rS0jd3Ly.js")},{id:"apex",name:"Apex",import:()=>import("./apex-Sfo2eW0G.js")},{id:"apl",name:"APL",import:()=>import("./apl-DPLNWaKG.js")},{id:"applescript",name:"AppleScript",import:()=>import("./applescript-BXKAgOFh.js")},{id:"ara",name:"Ara",import:()=>import("./ara-CG4fK2Nq.js")},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>import("./asciidoc-C539GviS.js")},{id:"asm",name:"Assembly",import:()=>import("./asm-PWN5J14X.js")},{id:"astro",name:"Astro",import:()=>import("./astro-71xeBtnw.js")},{id:"awk",name:"AWK",import:()=>import("./awk-i0IPvypD.js")},{id:"ballerina",name:"Ballerina",import:()=>import("./ballerina-T9ysyp6P.js")},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>import("./bat-BPiaQZfK.js")},{id:"beancount",name:"Beancount",import:()=>import("./beancount-Urb1RsFe.js")},{id:"berry",name:"Berry",aliases:["be"],import:()=>import("./berry-CxrokwfH.js")},{id:"bibtex",name:"BibTeX",import:()=>import("./bibtex-BaedD2tq.js")},{id:"bicep",name:"Bicep",import:()=>import("./bicep-3ghuYFLd.js")},{id:"blade",name:"Blade",import:()=>import("./blade-D3A5GssZ.js")},{id:"c",name:"C",import:()=>import("./c-RCJZWN-0.js")},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>import("./cadence-Bgpqy2XC.js")},{id:"clarity",name:"Clarity",import:()=>import("./clarity-CIekO_uJ.js")},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>import("./clojure-BF6G6X0H.js")},{id:"cmake",name:"CMake",import:()=>import("./cmake-DXZpi2gR.js")},{id:"cobol",name:"COBOL",import:()=>import("./cobol-Bi0pgIzz.js")},{id:"codeowners",name:"CODEOWNERS",import:()=>import("./codeowners-CGmujMTu.js")},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>import("./codeql-BOpLLL-w.js")},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>import("./coffee-Cp6Hkwsd.js")},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>import("./common-lisp-C3qUB5O8.js")},{id:"cpp",name:"C++",aliases:["c++"],import:()=>import("./cpp-CeZn6MzL.js")},{id:"crystal",name:"Crystal",import:()=>import("./crystal-B5pCH4eR.js")},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>import("./csharp-DISxKEhY.js")},{id:"css",name:"CSS",import:()=>import("./css-CbYhyuC0.js")},{id:"csv",name:"CSV",import:()=>import("./csv-B2DkETJQ.js")},{id:"cue",name:"CUE",import:()=>import("./cue-C6Aznpr-.js")},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>import("./cypher-ByMv4Xf1.js")},{id:"d",name:"D",import:()=>import("./d-PifQWv0n.js")},{id:"dart",name:"Dart",import:()=>import("./dart-DZLoTQm4.js")},{id:"dax",name:"DAX",import:()=>import("./dax-DsfXcHUZ.js")},{id:"desktop",name:"Desktop",import:()=>import("./desktop-D71BffLY.js")},{id:"diff",name:"Diff",import:()=>import("./diff-DvyTQcux.js")},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>import("./docker-DNR26wTC.js")},{id:"dream-maker",name:"Dream Maker",import:()=>import("./dream-maker-Eh5U-gDp.js")},{id:"elixir",name:"Elixir",import:()=>import("./elixir-Exce1dLy.js")},{id:"elm",name:"Elm",import:()=>import("./elm-D7CfdsEG.js")},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>import("./emacs-lisp-51pKhIDe.js")},{id:"erb",name:"ERB",import:()=>import("./erb-S7d1X-Y-.js")},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>import("./erlang-DS9ZWoKD.js")},{id:"fennel",name:"Fennel",import:()=>import("./fennel-DuK7IM-L.js")},{id:"fish",name:"Fish",import:()=>import("./fish-DfeQjIbs.js")},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>import("./fluent-KPqz0Sb3.js")},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>import("./fortran-fixed-form-6v7-xzYY.js")},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>import("./fortran-free-form-D6pmzCqS.js")},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>import("./fsharp-JZjmD0Li.js")},{id:"gdresource",name:"GDResource",import:()=>import("./gdresource-YQl50grm.js")},{id:"gdscript",name:"GDScript",import:()=>import("./gdscript-B474tPdy.js")},{id:"gdshader",name:"GDShader",import:()=>import("./gdshader-B_SUYfiV.js")},{id:"genie",name:"Genie",import:()=>import("./genie-DAfrLhwG.js")},{id:"gherkin",name:"Gherkin",import:()=>import("./gherkin-B0PjAhci.js")},{id:"git-commit",name:"Git Commit Message",import:()=>import("./git-commit-XY8bXq83.js")},{id:"git-rebase",name:"Git Rebase Message",import:()=>import("./git-rebase-BE3WlPTi.js")},{id:"gleam",name:"Gleam",import:()=>import("./gleam-Dd6f7Z5P.js")},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>import("./glimmer-js-I0TZ3_O1.js")},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>import("./glimmer-ts-CY38hlIb.js")},{id:"glsl",name:"GLSL",import:()=>import("./glsl-tOUOXML3.js")},{id:"gnuplot",name:"Gnuplot",import:()=>import("./gnuplot-nclm9rTJ.js")},{id:"go",name:"Go",import:()=>import("./go-BJn7Ek5W.js")},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>import("./graphql-DwwLrXH1.js")},{id:"groovy",name:"Groovy",import:()=>import("./groovy-wChcbJ1V.js")},{id:"hack",name:"Hack",import:()=>import("./hack-DmjQSZc3.js")},{id:"haml",name:"Ruby Haml",import:()=>import("./haml-map1ik7u.js")},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>import("./handlebars-CCc9qS91.js")},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>import("./haskell-DOVD4hs_.js")},{id:"haxe",name:"Haxe",import:()=>import("./haxe-Dit6kIrv.js")},{id:"hcl",name:"HashiCorp HCL",import:()=>import("./hcl-CpAANOdC.js")},{id:"hjson",name:"Hjson",import:()=>import("./hjson-DZqG9GXz.js")},{id:"hlsl",name:"HLSL",import:()=>import("./hlsl-DmDrTTlz.js")},{id:"html",name:"HTML",import:()=>import("./html-NmvpQUfQ.js")},{id:"html-derivative",name:"HTML (Derivative)",import:()=>import("./html-derivative-QphQoco-.js")},{id:"http",name:"HTTP",import:()=>import("./http-B58UUte0.js")},{id:"hxml",name:"HXML",import:()=>import("./hxml-4EC8aR1F.js")},{id:"hy",name:"Hy",import:()=>import("./hy-y-6HuL9l.js")},{id:"imba",name:"Imba",import:()=>import("./imba-CyaA9484.js")},{id:"ini",name:"INI",aliases:["properties"],import:()=>import("./ini-DeVv6D4_.js")},{id:"java",name:"Java",import:()=>import("./java-ClXEvkw9.js")},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>import("./javascript-Dch3xQiY.js")},{id:"jinja",name:"Jinja",import:()=>import("./jinja-BrXMjE5a.js")},{id:"jison",name:"Jison",import:()=>import("./jison-DlEKeWyG.js")},{id:"json",name:"JSON",import:()=>import("./json-CupVZNk8.js")},{id:"json5",name:"JSON5",import:()=>import("./json5-Bh8mriwU.js")},{id:"jsonc",name:"JSON with Comments",import:()=>import("./jsonc-DYI1rfmx.js")},{id:"jsonl",name:"JSON Lines",import:()=>import("./jsonl-BUpeXbsf.js")},{id:"jsonnet",name:"Jsonnet",import:()=>import("./jsonnet-C9d3aiqh.js")},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>import("./jssm-Dble9ECP.js")},{id:"jsx",name:"JSX",import:()=>import("./jsx-CsyrCbsw.js")},{id:"julia",name:"Julia",aliases:["jl"],import:()=>import("./julia-jDzGJc6I.js")},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>import("./kotlin-BIxS-Weu.js")},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>import("./kusto-DGEpfOTx.js")},{id:"latex",name:"LaTeX",import:()=>import("./latex-bjPeSN-x.js")},{id:"less",name:"Less",import:()=>import("./less-Du6_OKDb.js")},{id:"liquid",name:"Liquid",import:()=>import("./liquid-DHpvaAyy.js")},{id:"log",name:"Log file",import:()=>import("./log-Ksn5IXup.js")},{id:"logo",name:"Logo",import:()=>import("./logo-DdacRhvC.js")},{id:"lua",name:"Lua",import:()=>import("./lua-Cy9U1SwF.js")},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>import("./make-B9S9BZZh.js")},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>import("./markdown-BdfWgkoX.js")},{id:"marko",name:"Marko",import:()=>import("./marko-neMFgnTa.js")},{id:"matlab",name:"MATLAB",import:()=>import("./matlab-Btshr8M_.js")},{id:"mdc",name:"MDC",import:()=>import("./mdc-_-l14nii.js")},{id:"mdx",name:"MDX",import:()=>import("./mdx-CBPJd_fO.js")},{id:"mermaid",name:"Mermaid",import:()=>import("./mermaid-Dkb1Nx48.js")},{id:"mojo",name:"Mojo",import:()=>import("./mojo--7WWnkdy.js")},{id:"move",name:"Move",import:()=>import("./move-DOHBU7tp.js")},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>import("./narrat-B9CT-1u6.js")},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>import("./nextflow-DBxHOdLe.js")},{id:"nginx",name:"Nginx",import:()=>import("./nginx-C3DmzmOp.js")},{id:"nim",name:"Nim",import:()=>import("./nim-BjhyiCLB.js")},{id:"nix",name:"Nix",import:()=>import("./nix-B7rNE5kf.js")},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>import("./nushell-CrgTADc5.js")},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>import("./objective-c-DHmGyzbM.js")},{id:"objective-cpp",name:"Objective-C++",import:()=>import("./objective-cpp-BWKJ1FCf.js")},{id:"ocaml",name:"OCaml",import:()=>import("./ocaml-RqY_Nz63.js")},{id:"pascal",name:"Pascal",import:()=>import("./pascal-BvCdDh2R.js")},{id:"perl",name:"Perl",import:()=>import("./perl-PZnu_VA7.js")},{id:"php",name:"PHP",import:()=>import("./php-m9Z3qs_k.js")},{id:"plsql",name:"PL/SQL",import:()=>import("./plsql-BbJj1K1w.js")},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>import("./po-HrnDn_2Q.js")},{id:"postcss",name:"PostCSS",import:()=>import("./postcss-DXT9h7v2.js")},{id:"powerquery",name:"PowerQuery",import:()=>import("./powerquery-CApMHEaB.js")},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>import("./powershell-9ZOzOPqN.js")},{id:"prisma",name:"Prisma",import:()=>import("./prisma-BBJYjQ0k.js")},{id:"prolog",name:"Prolog",import:()=>import("./prolog-BH_RS3WO.js")},{id:"proto",name:"Protocol Buffer 3",import:()=>import("./proto-DOtRmeXT.js")},{id:"pug",name:"Pug",aliases:["jade"],import:()=>import("./pug-jyQP1XtO.js")},{id:"puppet",name:"Puppet",import:()=>import("./puppet-37ic6j3l.js")},{id:"purescript",name:"PureScript",import:()=>import("./purescript-Bm5O5oLm.js")},{id:"python",name:"Python",aliases:["py"],import:()=>import("./python-DwuVtWc2.js")},{id:"qml",name:"QML",import:()=>import("./qml-DM3j-f55.js")},{id:"qmldir",name:"QML Directory",import:()=>import("./qmldir-MS3qTAOR.js")},{id:"qss",name:"Qt Style Sheets",import:()=>import("./qss-FJDVp-XM.js")},{id:"r",name:"R",import:()=>import("./r-BXfENWL6.js")},{id:"racket",name:"Racket",import:()=>import("./racket-BbLA0SU8.js")},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>import("./raku-D384ylkT.js")},{id:"razor",name:"ASP.NET Razor",import:()=>import("./razor-DokJXJPk.js")},{id:"reg",name:"Windows Registry Script",import:()=>import("./reg-CrhH3_Og.js")},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>import("./regexp-C_ZPRiAj.js")},{id:"rel",name:"Rel",import:()=>import("./rel-BuawaRXJ.js")},{id:"riscv",name:"RISC-V",import:()=>import("./riscv-D-aEEwJo.js")},{id:"rst",name:"reStructuredText",import:()=>import("./rst-DlAMacAQ.js")},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>import("./ruby-eQ1iIi6H.js")},{id:"rust",name:"Rust",aliases:["rs"],import:()=>import("./rust-DGxQkqYo.js")},{id:"sas",name:"SAS",import:()=>import("./sas-BhBoFsCt.js")},{id:"sass",name:"Sass",import:()=>import("./sass-CMDmr8et.js")},{id:"scala",name:"Scala",import:()=>import("./scala-Cd0cRMx9.js")},{id:"scheme",name:"Scheme",import:()=>import("./scheme-BTeww-4z.js")},{id:"scss",name:"SCSS",import:()=>import("./scss-DoQ2ojfq.js")},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>import("./shaderlab-Bb-6Dmi7.js")},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>import("./shellscript-BZfs-ost.js")},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>import("./shellsession-B6XH_PlG.js")},{id:"smalltalk",name:"Smalltalk",import:()=>import("./smalltalk-DSsji4Hu.js")},{id:"solidity",name:"Solidity",import:()=>import("./solidity-CThH5sBG.js")},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>import("./soy-rVg8SA9F.js")},{id:"sparql",name:"SPARQL",import:()=>import("./sparql-Cmp61EUJ.js")},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>import("./splunk-6XBPEST2.js")},{id:"sql",name:"SQL",import:()=>import("./sql-DxR2xW-a.js")},{id:"ssh-config",name:"SSH Config",import:()=>import("./ssh-config-BH1M7C1g.js")},{id:"stata",name:"Stata",import:()=>import("./stata-DGeqZgIM.js")},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>import("./stylus-DSrLtGYv.js")},{id:"svelte",name:"Svelte",import:()=>import("./svelte-BMtjZn0z.js")},{id:"swift",name:"Swift",import:()=>import("./swift-C8WrqfNz.js")},{id:"system-verilog",name:"SystemVerilog",import:()=>import("./system-verilog-BscxmKrE.js")},{id:"systemd",name:"Systemd Units",import:()=>import("./systemd-IQPSIA3x.js")},{id:"tasl",name:"Tasl",import:()=>import("./tasl-BxwAa5i0.js")},{id:"tcl",name:"Tcl",import:()=>import("./tcl-C_8Fx7bH.js")},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>import("./terraform-DBeuZS66.js")},{id:"tex",name:"TeX",import:()=>import("./tex-BqVuN0dX.js")},{id:"toml",name:"TOML",import:()=>import("./toml-BT9ZzGyQ.js")},{id:"tsv",name:"TSV",import:()=>import("./tsv-DnLUQrgA.js")},{id:"tsx",name:"TSX",import:()=>import("./tsx-BlxWTfDV.js")},{id:"turtle",name:"Turtle",import:()=>import("./turtle-C15OxdQ5.js")},{id:"twig",name:"Twig",import:()=>import("./twig-DDlPLETn.js")},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>import("./typescript-DC8MraHL.js")},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>import("./typespec-DAP_O-zg.js")},{id:"typst",name:"Typst",aliases:["typ"],import:()=>import("./typst-I4qd5QHW.js")},{id:"v",name:"V",import:()=>import("./v-C2TBxDwV.js")},{id:"vala",name:"Vala",import:()=>import("./vala-CO5hpdkB.js")},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>import("./vb-beD-FUib.js")},{id:"verilog",name:"Verilog",import:()=>import("./verilog-DVfdqzEq.js")},{id:"vhdl",name:"VHDL",import:()=>import("./vhdl-QZ3jNtnE.js")},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>import("./viml-BLluXI4E.js")},{id:"vue",name:"Vue",import:()=>import("./vue-CSQt1zmP.js")},{id:"vue-html",name:"Vue HTML",import:()=>import("./vue-html-Bjmswp-o.js")},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>import("./vyper-o-cPXEvd.js")},{id:"wasm",name:"WebAssembly",import:()=>import("./wasm-Cicx_DS6.js")},{id:"wenyan",name:"Wenyan",aliases:["\u6587\u8A00"],import:()=>import("./wenyan-Cavfe_d0.js")},{id:"wgsl",name:"WGSL",import:()=>import("./wgsl-BZz1Hhek.js")},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>import("./wikitext-zfUCmn4z.js")},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>import("./wolfram-BICIrM8O.js")},{id:"xml",name:"XML",import:()=>import("./xml-sp2Egr0Z.js")},{id:"xsl",name:"XSL",import:()=>import("./xsl-BQYvujlj.js")},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>import("./yaml-C5gCGmDW.js")},{id:"zenscript",name:"ZenScript",import:()=>import("./zenscript-B1nm99XP.js")},{id:"zig",name:"Zig",import:()=>import("./zig-xtV5iK4E.js")}],fh=Object.fromEntries(Oo.map(t=>[t.id,t.import])),hh=Object.fromEntries(Oo.flatMap(t=>t.aliases?.map(e=>[e,t.import])||[])),Po={...fh,...hh},ph=a(async t=>import("./wasm-2oxoyaYy.js").then(e=>e.default(t)),"getWasmInlined"),dh=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>import("./andromeeda-YxQm0tCS.js")},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>import("./aurora-x-BaWyeHV_.js")},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>import("./ayu-dark-Bn5gmY5k.js")},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:()=>import("./catppuccin-frappe-BsOrZxH8.js")},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>import("./catppuccin-latte-BYdKNJ10.js")},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>import("./catppuccin-macchiato-DVLwECkk.js")},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>import("./catppuccin-mocha-CEfge3mM.js")},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>import("./dark-plus-KEYLhlmT.js")},{id:"dracula",displayName:"Dracula",type:"dark",import:()=>import("./dracula-DGO8GyiP.js")},{id:"dracula-soft",displayName:"Dracula Soft",type:"dark",import:()=>import("./dracula-soft-9B1nZgL-.js")},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>import("./github-dark-CzPA46E-.js")},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>import("./github-dark-default-BXF7Vm5l.js")},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>import("./github-dark-dimmed-CRDKj6ck.js")},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>import("./github-light-CRlnGVMD.js")},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>import("./github-light-default-UREJT2Bw.js")},{id:"houston",displayName:"Houston",type:"dark",import:()=>import("./houston-CZZ6oYdA.js")},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>import("./light-plus-BsvsQ1iS.js")},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>import("./material-theme-B2BuIiKK.js")},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>import("./material-theme-darker-BrGg7AAd.js")},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>import("./material-theme-lighter-DDRuGeQH.js")},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>import("./material-theme-ocean-CBL0qBdF.js")},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>import("./material-theme-palenight-D7gg1Usp.js")},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>import("./min-dark-iSbrOpM4.js")},{id:"min-light",displayName:"Min Light",type:"light",import:()=>import("./min-light-BITGhEdf.js")},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>import("./monokai-sMI-pExk.js")},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>import("./night-owl-BeocmOPF.js")},{id:"nord",displayName:"Nord",type:"dark",import:()=>import("./nord-CsyjKwr8.js")},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>import("./one-dark-pro-BTtaZsq5.js")},{id:"one-light",displayName:"One Light",type:"light",import:()=>import("./one-light-alpzPJ78.js")},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>import("./poimandres-Cda-MJFk.js")},{id:"red",displayName:"Red",type:"dark",import:()=>import("./red-jaXbsbtS.js")},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:()=>import("./rose-pine-BIAFg_EN.js")},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:()=>import("./rose-pine-dawn-C5m_N-6l.js")},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:()=>import("./rose-pine-moon-B9S0JTD1.js")},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>import("./slack-dark-C7oZ9nno.js")},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>import("./slack-ochin-hXH8Gyq8.js")},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>import("./snazzy-light-CA9nliXM.js")},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>import("./solarized-dark-C86elO-m.js")},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>import("./solarized-light-xPNGhBYe.js")},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>import("./synthwave-84-BBDuFDsq.js")},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>import("./tokyo-night-eJfcURhx.js")},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>import("./vesper-BSB_bK09.js")},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>import("./vitesse-black-B3g-KkBK.js")},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>import("./vitesse-dark-Bxkoe-BC.js")},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>import("./vitesse-light-Br6ll-O0.js")}],mh=Object.fromEntries(dh.map(t=>[t.id,t.import]));var ze;(function(t){t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline"})(ze||(ze={})),typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var Mt;(function(t){function e(h){return h.toString(2).padStart(32,"0")}a(e,"toBinaryStr"),t.toBinaryStr=e;function n(h){const f=t.getLanguageId(h),p=t.getTokenType(h),d=t.getFontStyle(h),m=t.getForeground(h),g=t.getBackground(h);console.log({languageId:f,tokenType:p,fontStyle:d,foreground:m,background:g})}a(n,"print"),t.print=n;function r(h){return(h&255)>>>0}a(r,"getLanguageId"),t.getLanguageId=r;function i(h){return(h&768)>>>8}a(i,"getTokenType"),t.getTokenType=i;function s(h){return(h&1024)!==0}a(s,"containsBalancedBrackets"),t.containsBalancedBrackets=s;function o(h){return(h&30720)>>>11}a(o,"getFontStyle"),t.getFontStyle=o;function l(h){return(h&16744448)>>>15}a(l,"getForeground"),t.getForeground=l;function u(h){return(h&4278190080)>>>24}a(u,"getBackground"),t.getBackground=u;function c(h,f,p,d,m,g,y){let b=t.getLanguageId(h),w=t.getTokenType(h),k=t.containsBalancedBrackets(h)?1:0,_=t.getFontStyle(h),C=t.getForeground(h),S=t.getBackground(h);return f!==0&&(b=f),p!==8&&(w=p),d!==null&&(k=d?1:0),m!==-1&&(_=m),g!==0&&(C=g),y!==0&&(S=y),(b<<0|w<<8|k<<10|_<<11|C<<15|S<<24)>>>0}a(c,"set"),t.set=c})(Mt||(Mt={}));function BN(t){return t}a(BN,"toOptionalTokenType");function qN(t){return t}a(qN,"fromOptionalTokenType");function Qn(t,e){const n=[],r=gh(t);let i=r.next();for(;i!==null;){let u=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let c=o();if(n.push({matcher:c,priority:u}),i!==",")break;i=r.next()}return n;function s(){if(i==="-"){i=r.next();const u=s();return c=>!!u&&!u(c)}if(i==="("){i=r.next();const u=l();return i===")"&&(i=r.next()),u}if(Do(i)){const u=[];do u.push(i),i=r.next();while(Do(i));return c=>e(u,c)}return null}function o(){const u=[];let c=s();for(;c;)u.push(c),c=s();return h=>u.every(f=>f(h))}function l(){const u=[];let c=o();for(;c&&(u.push(c),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");c=o()}return h=>u.some(f=>f(h))}}a(Qn,"createMatchers");function Do(t){return!!t&&!!t.match(/[\w\.:]+/)}a(Do,"isIdentifier");function gh(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;const r=n[0];return n=e.exec(t),r}}}a(gh,"newTokenizer");function Ro(t){typeof t.dispose=="function"&&t.dispose()}a(Ro,"disposeOnigString");function yh(t){return hi(t)}a(yh,"clone");function hi(t){return Array.isArray(t)?bh(t):typeof t=="object"?wh(t):t}a(hi,"doClone");function bh(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=hi(t[n]);return e}a(bh,"cloneArray");function wh(t){let e={};for(let n in t)e[n]=hi(t[n]);return e}a(wh,"cloneObj");function Fo(t,...e){return e.forEach(n=>{for(let r in n)t[r]=n[r]}),t}a(Fo,"mergeObjects");function Mo(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?Mo(t.substring(0,t.length-1)):t.substr(~e+1)}a(Mo,"basename$1");let pi=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class Xn{static{a(this,"RegexSource")}static hasCaptures(e){return e===null?!1:(pi.lastIndex=0,pi.test(e))}static replaceCaptures(e,n,r){return e.replace(pi,(i,s,o,l)=>{let u=r[parseInt(s||o,10)];if(u){let c=n.substring(u.start,u.end);for(;c[0]===".";)c=c.substring(1);switch(l){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return i})}}function $o(t,e){return t<e?-1:t>e?1:0}a($o,"strcmp");function Bo(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let i=0;i<n;i++){let s=$o(t[i],e[i]);if(s!==0)return s}return 0}return n-r}a(Bo,"strArrCmp");function qo(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}a(qo,"isValidHexColor");function zo(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}a(zo,"escapeRegExpCharacters");class Uo{static{a(this,"CachedFn")}fn;cache=new Map;constructor(e){this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const n=this.fn(e);return this.cache.set(e,n),n}}class yn{static{a(this,"TopLevelRuleReference")}scopeName;constructor(e){this.scopeName=e}toKey(){return this.scopeName}}class kh{static{a(this,"TopLevelRepositoryRuleReference")}scopeName;ruleName;constructor(e,n){this.scopeName=e,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}}class Sh{static{a(this,"ExternalReferenceCollector")}_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const n=e.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(e))}}class xh{static{a(this,"ScopeDependencyProcessor")}repo;initialScopeName;seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;constructor(e,n){this.repo=e,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new yn(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const n=new Sh;for(const r of e)vh(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof yn){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}}function vh(t,e,n,r){const i=n.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=n.lookup(e);t instanceof yn?Zn({baseGrammar:s,selfGrammar:i},r):di(t.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},r);const o=n.injections(t.scopeName);if(o)for(const l of o)r.add(new yn(l))}a(vh,"collectReferencesOfReference");function di(t,e,n){if(e.repository&&e.repository[t]){const r=e.repository[t];er([r],e,n)}}a(di,"collectExternalReferencesInTopLevelRepositoryRule");function Zn(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&er(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&er(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}a(Zn,"collectExternalReferencesInTopLevelRule");function er(t,e,n){for(const r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?Fo({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&er(r.patterns,{...e,repository:i},n);const s=r.include;if(!s)continue;const o=jo(s);switch(o.kind){case 0:Zn({...e,selfGrammar:e.baseGrammar},n);break;case 1:Zn(e,n);break;case 2:di(o.ruleName,{...e,repository:i},n);break;case 3:case 4:const l=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const u={baseGrammar:e.baseGrammar,selfGrammar:l,repository:i};o.kind===4?di(o.ruleName,u,n):Zn(u,n)}else o.kind===4?n.add(new kh(o.scopeName,o.ruleName)):n.add(new yn(o.scopeName));break}}}a(er,"collectExternalReferencesInRules");class _h{static{a(this,"BaseReference")}kind=0}class Ch{static{a(this,"SelfReference")}kind=1}class Nh{static{a(this,"RelativeReference")}ruleName;kind=2;constructor(e){this.ruleName=e}}class Ah{static{a(this,"TopLevelReference")}scopeName;kind=3;constructor(e){this.scopeName=e}}class Eh{static{a(this,"TopLevelRepositoryReference")}scopeName;ruleName;kind=4;constructor(e,n){this.scopeName=e,this.ruleName=n}}function jo(t){if(t==="$base")return new _h;if(t==="$self")return new Ch;const e=t.indexOf("#");if(e===-1)return new Ah(t);if(e===0)return new Nh(t.substring(1));{const n=t.substring(0,e),r=t.substring(e+1);return new Eh(n,r)}}a(jo,"parseInclude");const Th=/\\(\d+)/,Go=/\\(\d+)/g,Ih=-1,Ho=-2;function zN(t){return t}a(zN,"ruleIdFromNumber");function UN(t){return t}a(UN,"ruleIdToNumber");class bn{static{a(this,"Rule")}$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,n,r,i){this.$location=e,this.id=n,this._name=r||null,this._nameIsCapturing=Xn.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Xn.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Mo(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,n){return!this._nameIsCapturing||this._name===null||e===null||n===null?this._name:Xn.replaceCaptures(this._name,e,n)}getContentName(e,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Xn.replaceCaptures(this._contentName,e,n)}}class Lh extends bn{static{a(this,"CaptureRule")}retokenizeCapturedWithRuleId;constructor(e,n,r,i,s){super(e,n,r,i),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,n){throw new Error("Not supported!")}compile(e,n){throw new Error("Not supported!")}compileAG(e,n,r,i){throw new Error("Not supported!")}}class Oh extends bn{static{a(this,"MatchRule")}_match;captures;_cachedCompiledPatterns;constructor(e,n,r,i,s){super(e,n,r,null),this._match=new Tt(i,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new wn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class Vo extends bn{static{a(this,"IncludeOnlyRule")}hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,r,i,s){super(e,n,r,i),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,n){for(const r of this.patterns)e.getRule(r).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new wn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class mi extends bn{static{a(this,"BeginEndRule")}_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,r,i,s,o,l,u,c,h){super(e,n,r,i),this._begin=new Tt(s,this.id),this.beginCaptures=o,this._end=new Tt(l||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=u,this.applyEndPatternLast=c||!1,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e,n).compileAG(e,r,i)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new wn;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}}class tr extends bn{static{a(this,"BeginWhileRule")}_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,n,r,i,s,o,l,u,c){super(e,n,r,i),this._begin=new Tt(s,this.id),this.beginCaptures=o,this.whileCaptures=u,this._while=new Tt(l,Ho),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new wn;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,r,i){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,r,i)}_getCachedCompiledWhilePatterns(e,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new wn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"\uFFFF"),this._cachedCompiledWhilePatterns}}class ce{static{a(this,"RuleFactory")}static createCaptureRule(e,n,r,i,s){return e.registerRule(o=>new Lh(n,o,r,i,s))}static getCompiledRuleId(e,n,r){return e.id||n.registerRule(i=>{if(e.id=i,e.match)return new Oh(e.$vscodeTextmateLocation,e.id,e.name,e.match,ce._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){e.repository&&(r=Fo({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new Vo(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,ce._compilePatterns(s,n,r))}return e.while?new tr(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,ce._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,ce._compileCaptures(e.whileCaptures||e.captures,n,r),ce._compilePatterns(e.patterns,n,r)):new mi(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,ce._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,ce._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,ce._compilePatterns(e.patterns,n,r))}),e.id}static _compileCaptures(e,n,r){let i=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>s&&(s=l)}for(let o=0;o<=s;o++)i[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let u=0;e[o].patterns&&(u=ce.getCompiledRuleId(e[o],n,r)),i[l]=ce.createCaptureRule(n,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,u)}}return i}static _compilePatterns(e,n,r){let i=[];if(e)for(let s=0,o=e.length;s<o;s++){const l=e[s];let u=-1;if(l.include){const c=jo(l.include);switch(c.kind){case 0:case 1:u=ce.getCompiledRuleId(r[l.include],n,r);break;case 2:let h=r[c.ruleName];h&&(u=ce.getCompiledRuleId(h,n,r));break;case 3:case 4:const f=c.scopeName,p=c.kind===4?c.ruleName:null,d=n.getExternalGrammar(f,r);if(d)if(p){let m=d.repository[p];m&&(u=ce.getCompiledRuleId(m,n,d.repository))}else u=ce.getCompiledRuleId(d.repository.$self,n,d.repository);break}}else u=ce.getCompiledRuleId(l,n,r);if(u!==-1){const c=n.getRule(u);let h=!1;if((c instanceof Vo||c instanceof mi||c instanceof tr)&&c.hasMissingPatterns&&c.patterns.length===0&&(h=!0),h)continue;i.push(u)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}}class Tt{static{a(this,"RegExpSource")}source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,n){if(e){const r=e.length;let i=0,s=[],o=!1;for(let l=0;l<r;l++)if(e.charAt(l)==="\\"&&l+1<r){const c=e.charAt(l+1);c==="z"?(s.push(e.substring(i,l)),s.push("$(?!\\n)(?<!\\n)"),i=l+2):(c==="A"||c==="G")&&(o=!0),l++}this.hasAnchor=o,i===0?this.source=e:(s.push(e.substring(i,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,this.hasBackReferences=Th.test(this.source)}clone(){return new Tt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){let r=n.map(i=>e.substring(i.start,i.end));return Go.lastIndex=0,this.source.replace(Go,(i,s)=>zo(r[parseInt(s,10)]||""))}_buildAnchorCache(){let e=[],n=[],r=[],i=[],s,o,l,u;for(s=0,o=this.source.length;s<o;s++)l=this.source.charAt(s),e[s]=l,n[s]=l,r[s]=l,i[s]=l,l==="\\"&&s+1<o&&(u=this.source.charAt(s+1),u==="A"?(e[s+1]="\uFFFF",n[s+1]="\uFFFF",r[s+1]="A",i[s+1]="A"):u==="G"?(e[s+1]="\uFFFF",n[s+1]="G",r[s+1]="\uFFFF",i[s+1]="G"):(e[s+1]=u,n[s+1]=u,r[s+1]=u,i[s+1]=u),s++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}}class wn{static{a(this,"RegExpSourceList")}_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,n){this._items[e].source!==n&&(this._disposeCaches(),this._items[e].setSource(n))}compile(e){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new Wo(e,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,n,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,n,r){let i=this._items.map(s=>s.resolveAnchors(n,r));return new Wo(e,i,this._items.map(s=>s.ruleId))}}class Wo{static{a(this,"CompiledRule")}regExps;rules;scanner;constructor(e,n,r){this.regExps=n,this.rules=r,this.scanner=e.createOnigScanner(n)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let n=0,r=this.rules.length;n<r;n++)e.push(" - "+this.rules[n]+": "+this.regExps[n]);return e.join(`
|
|
12
|
+
`)}findNextMatchSync(e,n,r){const i=this.scanner.findNextMatchSync(e,n,r);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}}class nr{static{a(this,"Theme")}_colorMap;_defaults;_root;static createFromRawTheme(e,n){return this.createFromParsedTheme(Rh(e),n)}static createFromParsedTheme(e,n){return Mh(e,n)}_cachedMatchRoot=new Uo(e=>this._root.match(e));constructor(e,n,r){this._colorMap=e,this._defaults=n,this._root=r}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const n=e.scopeName,i=this._cachedMatchRoot.get(n).find(s=>Ph(e.parent,s.parentScopes));return i?new Ko(i.fontStyle,i.foreground,i.background):null}}class It{static{a(this,"ScopeStack")}parent;scopeName;static push(e,n){for(const r of n)e=new It(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new It(n,e[r]);return n}constructor(e,n){this.parent=e,this.scopeName=n}push(e){return new It(this,e)}getSegments(){let e=this;const n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const n=[];let r=this;for(;r&&r!==e;)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}}function Ph(t,e){if(e===null)return!0;let n=0,r=e[n];for(;t;){if(Dh(t.scopeName,r)){if(n++,n===e.length)return!0;r=e[n]}t=t.parent}return!1}a(Ph,"_scopePathMatchesParentScopes");function Dh(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}a(Dh,"_matchesScope");class Ko{static{a(this,"StyleAttributes")}fontStyle;foregroundId;backgroundId;constructor(e,n,r){this.fontStyle=e,this.foregroundId=n,this.backgroundId=r}}function Rh(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let i=0,s=e.length;i<s;i++){let o=e[i];if(!o.settings)continue;let l;if(typeof o.scope=="string"){let f=o.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),l=f.split(",")}else Array.isArray(o.scope)?l=o.scope:l=[""];let u=-1;if(typeof o.settings.fontStyle=="string"){u=0;let f=o.settings.fontStyle.split(" ");for(let p=0,d=f.length;p<d;p++)switch(f[p]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let c=null;typeof o.settings.foreground=="string"&&qo(o.settings.foreground)&&(c=o.settings.foreground);let h=null;typeof o.settings.background=="string"&&qo(o.settings.background)&&(h=o.settings.background);for(let f=0,p=l.length;f<p;f++){let m=l[f].trim().split(" "),g=m[m.length-1],y=null;m.length>1&&(y=m.slice(0,m.length-1),y.reverse()),n[r++]=new Fh(g,y,i,u,c,h)}}return n}a(Rh,"parseTheme");class Fh{static{a(this,"ParsedThemeRule")}scope;parentScopes;index;fontStyle;foreground;background;constructor(e,n,r,i,s,o){this.scope=e,this.parentScopes=n,this.index=r,this.fontStyle=i,this.foreground=s,this.background=o}}function Mh(t,e){t.sort((u,c)=>{let h=$o(u.scope,c.scope);return h!==0||(h=Bo(u.parentScopes,c.parentScopes),h!==0)?h:u.index-c.index});let n=0,r="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let u=t.shift();u.fontStyle!==-1&&(n=u.fontStyle),u.foreground!==null&&(r=u.foreground),u.background!==null&&(i=u.background)}let s=new $h(e),o=new Ko(n,s.getId(r),s.getId(i)),l=new Gn(new jn(0,null,-1,0,0),[]);for(let u=0,c=t.length;u<c;u++){let h=t[u];l.insert(0,h.scope,h.parentScopes,h.fontStyle,s.getId(h.foreground),s.getId(h.background))}return new nr(s,o,l)}a(Mh,"resolveParsedThemeRules");class $h{static{a(this,"ColorMap")}_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let n=0,r=e.length;n<r;n++)this._color2id[e[n]]=n,this._id2color[n]=e[n]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let n=this._color2id[e];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return n=++this._lastColorId,this._color2id[e]=n,this._id2color[n]=e,n}getColorMap(){return this._id2color.slice(0)}}class jn{static{a(this,"ThemeTrieElementRule")}scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,n,r,i,s){this.scopeDepth=e,this.parentScopes=n,this.fontStyle=r,this.foreground=i,this.background=s}clone(){return new jn(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,i=e.length;r<i;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}}class Gn{static{a(this,"ThemeTrieElement")}_mainRule;_children;_rulesWithParentScopes;constructor(e,n=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}static _sortBySpecificity(e){return e.length===1||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,n){if(e.scopeDepth===n.scopeDepth){const r=e.parentScopes,i=n.parentScopes;let s=r===null?0:r.length,o=i===null?0:i.length;if(s===o)for(let l=0;l<s;l++){const u=r[l].length,c=i[l].length;if(u!==c)return c-u}return o-s}return n.scopeDepth-e.scopeDepth}match(e){if(e==="")return Gn._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let n=e.indexOf("."),r,i;return n===-1?(r=e,i=""):(r=e.substring(0,n),i=e.substring(n+1)),this._children.hasOwnProperty(r)?this._children[r].match(i):Gn._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,n,r,i,s,o){if(n===""){this._doInsertHere(e,r,i,s,o);return}let l=n.indexOf("."),u,c;l===-1?(u=n,c=""):(u=n.substring(0,l),c=n.substring(l+1));let h;this._children.hasOwnProperty(u)?h=this._children[u]:(h=new Gn(this._mainRule.clone(),jn.cloneArr(this._rulesWithParentScopes)),this._children[u]=h),h.insert(e+1,c,r,i,s,o)}_doInsertHere(e,n,r,i,s){if(n===null){this._mainRule.acceptOverwrite(e,r,i,s);return}for(let o=0,l=this._rulesWithParentScopes.length;o<l;o++){let u=this._rulesWithParentScopes[o];if(Bo(u.parentScopes,n)===0){u.acceptOverwrite(e,r,i,s);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new jn(e,n,r,i,s))}}class gi{static{a(this,"BasicScopeAttributes")}languageId;tokenType;constructor(e,n){this.languageId=e,this.tokenType=n}}class Zr{static{a(this,"BasicScopeAttributesProvider")}_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,n){this._defaultAttributes=new gi(e,8),this._embeddedLanguagesMatcher=new Bh(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Zr._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new gi(0,0);_getBasicScopeAttributes=new Uo(e=>{const n=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new gi(n,r)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const n=e.match(Zr.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/}class Bh{static{a(this,"ScopeMatcher")}values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const n=e.map(([r,i])=>zo(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const n=e.match(this.scopesRegExp);if(n)return this.values.get(n[1])}}class Yo{static{a(this,"TokenizeStringResult")}stack;stoppedEarly;constructor(e,n){this.stack=e,this.stoppedEarly=n}}function Jo(t,e,n,r,i,s,o,l){const u=e.content.length;let c=!1,h=-1;if(o){const d=qh(t,e,n,r,i,s);i=d.stack,r=d.linePos,n=d.isFirstLine,h=d.anchorPosition}const f=Date.now();for(;!c;){if(l!==0&&Date.now()-f>l)return new Yo(i,!0);p()}return new Yo(i,!1);function p(){const d=zh(t,e,n,r,i,h);if(!d){s.produce(i,u),c=!0;return}const m=d.captureIndices,g=d.matchedRuleId,y=m&&m.length>0?m[0].end>r:!1;if(g===Ih){const b=i.getRule(t);s.produce(i,m[0].start),i=i.withContentNameScopesList(i.nameScopesList),kn(t,e,n,i,s,b.endCaptures,m),s.produce(i,m[0].end);const w=i;if(i=i.parent,h=w.getAnchorPos(),!y&&w.getEnterPos()===r){i=w,s.produce(i,u),c=!0;return}}else{const b=t.getRule(g);s.produce(i,m[0].start);const w=i,k=b.getName(e.content,m),_=i.contentNameScopesList.pushAttributed(k,t);if(i=i.push(g,r,h,m[0].end===u,null,_,_),b instanceof mi){const C=b;kn(t,e,n,i,s,C.beginCaptures,m),s.produce(i,m[0].end),h=m[0].end;const S=C.getContentName(e.content,m),A=_.pushAttributed(S,t);if(i=i.withContentNameScopesList(A),C.endHasBackReferences&&(i=i.withEndRule(C.getEndWithResolvedBackReferences(e.content,m))),!y&&w.hasSameRuleAs(i)){i=i.pop(),s.produce(i,u),c=!0;return}}else if(b instanceof tr){const C=b;kn(t,e,n,i,s,C.beginCaptures,m),s.produce(i,m[0].end),h=m[0].end;const S=C.getContentName(e.content,m),A=_.pushAttributed(S,t);if(i=i.withContentNameScopesList(A),C.whileHasBackReferences&&(i=i.withEndRule(C.getWhileWithResolvedBackReferences(e.content,m))),!y&&w.hasSameRuleAs(i)){i=i.pop(),s.produce(i,u),c=!0;return}}else if(kn(t,e,n,i,s,b.captures,m),s.produce(i,m[0].end),i=i.pop(),!y){i=i.safePop(),s.produce(i,u),c=!0;return}}m[0].end>r&&(r=m[0].end,n=!1)}}a(Jo,"_tokenizeString");function qh(t,e,n,r,i,s){let o=i.beginRuleCapturedEOL?0:-1;const l=[];for(let u=i;u;u=u.pop()){const c=u.getRule(t);c instanceof tr&&l.push({rule:c,stack:u})}for(let u=l.pop();u;u=l.pop()){const{ruleScanner:c,findOptions:h}=Gh(u.rule,t,u.stack.endRule,n,r===o),f=c.findNextMatchSync(e,r,h);if(f){if(f.ruleId!==Ho){i=u.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(s.produce(u.stack,f.captureIndices[0].start),kn(t,e,n,u.stack,s,u.rule.whileCaptures,f.captureIndices),s.produce(u.stack,f.captureIndices[0].end),o=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{i=u.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}a(qh,"_checkWhileConditions");function zh(t,e,n,r,i,s){const o=Uh(t,e,n,r,i,s),l=t.getInjections();if(l.length===0)return o;const u=jh(l,t,e,n,r,i,s);if(!u)return o;if(!o)return u;const c=o.captureIndices[0].start,h=u.captureIndices[0].start;return h<c||u.priorityMatch&&h===c?u:o}a(zh,"matchRuleOrInjections");function Uh(t,e,n,r,i,s){const o=i.getRule(t),{ruleScanner:l,findOptions:u}=Qo(o,t,i.endRule,n,r===s),c=l.findNextMatchSync(e,r,u);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}a(Uh,"matchRule");function jh(t,e,n,r,i,s,o){let l=Number.MAX_VALUE,u=null,c,h=0;const f=s.contentNameScopesList.getScopeNames();for(let p=0,d=t.length;p<d;p++){const m=t[p];if(!m.matcher(f))continue;const g=e.getRule(m.ruleId),{ruleScanner:y,findOptions:b}=Qo(g,e,null,r,i===o),w=y.findNextMatchSync(n,i,b);if(!w)continue;const k=w.captureIndices[0].start;if(!(k>=l)&&(l=k,u=w.captureIndices,c=w.ruleId,h=m.priority,l===i))break}return u?{priorityMatch:h===-1,captureIndices:u,matchedRuleId:c}:null}a(jh,"matchInjections");function Qo(t,e,n,r,i){return{ruleScanner:t.compileAG(e,n,r,i),findOptions:0}}a(Qo,"prepareRuleSearch");function Gh(t,e,n,r,i){return{ruleScanner:t.compileWhileAG(e,n,r,i),findOptions:0}}a(Gh,"prepareRuleWhileSearch");function kn(t,e,n,r,i,s,o){if(s.length===0)return;const l=e.content,u=Math.min(s.length,o.length),c=[],h=o[0].end;for(let f=0;f<u;f++){const p=s[f];if(p===null)continue;const d=o[f];if(d.length===0)continue;if(d.start>h)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,d.start):i.produce(r,d.start),p.retokenizeCapturedWithRuleId){const g=p.getName(l,o),y=r.contentNameScopesList.pushAttributed(g,t),b=p.getContentName(l,o),w=y.pushAttributed(b,t),k=r.push(p.retokenizeCapturedWithRuleId,d.start,-1,!1,null,y,w),_=t.createOnigString(l.substring(0,d.end));Jo(t,_,n&&d.start===0,d.start,k,i,!1,0),Ro(_);continue}const m=p.getName(l,o);if(m!==null){const y=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(m,t);c.push(new Hh(y,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}a(kn,"handleCaptures");class Hh{static{a(this,"LocalStackElement")}scopes;endPos;constructor(e,n){this.scopes=e,this.endPos=n}}function Vh(t,e,n,r,i,s,o,l){return new Kh(t,e,n,r,i,s,o,l)}a(Vh,"createGrammar");function Xo(t,e,n,r,i){const s=Qn(e,rr),o=ce.getCompiledRuleId(n,r,i.repository);for(const l of s)t.push({debugSelector:e,matcher:l.matcher,ruleId:o,grammar:i,priority:l.priority})}a(Xo,"collectInjections");function rr(t,e){if(e.length<t.length)return!1;let n=0;return t.every(r=>{for(let i=n;i<e.length;i++)if(Wh(e[i],r))return n=i+1,!0;return!1})}a(rr,"nameMatcher");function Wh(t,e){if(!t)return!1;if(t===e)return!0;const n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}a(Wh,"scopesAreMatching");class Kh{static{a(this,"Grammar")}_rootScopeName;balancedBracketSelectors;_onigLib;_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}constructor(e,n,r,i,s,o,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=u,this._basicScopeAttributesProvider=new Zr(r,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=Zo(n,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const c of Object.keys(s)){const h=Qn(c,rr);for(const f of h)this._tokenTypeMatchers.push({matcher:f.matcher,type:s[c]})}}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},n=[],r=this._rootScopeName,i=e.lookup(r);if(i){const s=i.injections;if(s)for(let l in s)Xo(n,l,s[l],this,i);const o=this._grammarRepository.injections(r);o&&o.forEach(l=>{const u=this.getExternalGrammar(l);if(u){const c=u.injectionSelector;c&&Xo(n,c,u,this,u)}})}return n.sort((s,o)=>s.priority-o.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const n=++this._lastRuleId,r=e(n);return this._ruleId2desc[n]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,n){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=Zo(r,n&&n.$base),this._includedGrammars[e]}}tokenizeLine(e,n,r=0){const i=this._tokenize(e,n,!1,r);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,n,r=0){const i=this._tokenize(e,n,!0,r);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,n,r,i){this._rootId===-1&&(this._rootId=ce.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!n||n===Ke.NULL){s=!0;const h=this._basicScopeAttributesProvider.getDefaultAttributes(),f=this.themeProvider.getDefaults(),p=Mt.set(0,h.languageId,h.tokenType,null,f.fontStyle,f.foregroundId,f.backgroundId),d=this.getRule(this._rootId).getName(null,null);let m;d?m=we.createRootAndLookUpScopeName(d,p,this):m=we.createRoot("unknown",p),n=new Ke(null,this._rootId,-1,-1,!1,null,m,m)}else s=!1,n.reset();e=e+`
|
|
13
|
+
`;const o=this.createOnigString(e),l=o.content.length,u=new Jh(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Jo(this,o,s,0,n,u,!0,i);return Ro(o),{lineLength:l,lineTokens:u,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}}function Zo(t,e){return t=yh(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}a(Zo,"initGrammar");class we{static{a(this,"AttributedScopeStack")}parent;scopePath;tokenAttributes;static fromExtension(e,n){let r=e,i=e?.scopePath??null;for(const s of n)i=It.push(i,s.scopeNames),r=new we(r,i,s.encodedTokenAttributes);return r}static createRoot(e,n){return new we(null,new It(null,e),n)}static createRootAndLookUpScopeName(e,n,r){const i=r.getMetadataForScope(e),s=new It(null,e),o=r.themeProvider.themeMatch(s),l=we.mergeAttributes(n,i,o);return new we(null,s,l)}get scopeName(){return this.scopePath.scopeName}constructor(e,n,r){this.parent=e,this.scopePath=n,this.tokenAttributes=r}toString(){return this.getScopeNames().join(" ")}equals(e){return we.equals(this,e)}static equals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,r){let i=-1,s=0,o=0;return r!==null&&(i=r.fontStyle,s=r.foregroundId,o=r.backgroundId),Mt.set(e,n.languageId,n.tokenType,null,i,s,o)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return we._pushAttributed(this,e,n);const r=e.split(/ /g);let i=this;for(const s of r)i=we._pushAttributed(i,s,n);return i}static _pushAttributed(e,n,r){const i=r.getMetadataForScope(n),s=e.scopePath.push(n),o=r.themeProvider.themeMatch(s),l=we.mergeAttributes(e.tokenAttributes,i,o);return new we(e,s,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const n=[];let r=this;for(;r&&r!==e;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?n.reverse():void 0}}class Ke{static{a(this,"StateStackImpl")}parent;ruleId;beginRuleCapturedEOL;endRule;nameScopesList;contentNameScopesList;_stackElementBrand=void 0;static NULL=new Ke(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;constructor(e,n,r,i,s,o,l,u){this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=l,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}equals(e){return e===null?!1:Ke._equals(this,e)}static _equals(e,n){return e===n?!0:this._structuralEquals(e,n)?we.equals(e.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){Ke._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,n,r,i,s,o,l){return new Ke(this,e,n,r,i,s,o,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,n){return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new Ke(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,n){const r=we.fromExtension(e?.nameScopesList??null,n.nameScopesList);return new Ke(e,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,we.fromExtension(r,n.contentNameScopesList))}}class Yh{static{a(this,"BalancedBracketSelectors")}balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,n){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Qn(r,rr).map(i=>i.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>Qn(r,rr).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const n of this.unbalancedBracketScopes)if(n(e))return!1;for(const n of this.balancedBracketScopes)if(n(e))return!0;return this.allowAny}}class Jh{static{a(this,"LineTokens")}balancedBracketSelectors;_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;constructor(e,n,r,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,n){this.produceFromScopes(e.contentNameScopesList,n)}produceFromScopes(e,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let i=e?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const l of this._tokenTypeOverrides)l.matcher(o)&&(i=Mt.set(i,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(i=Mt.set(i,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=n;return}const r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(e,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let i=0,s=this._binaryTokens.length;i<s;i++)r[i]=this._binaryTokens[i];return r}}class Qh{static{a(this,"SyncRegistry")}_onigLibPromise;_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;constructor(e,n){this._onigLibPromise=n,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,n){this._rawGrammars.set(e.scopeName,e),n&&this._injectionGrammars.set(e.scopeName,n)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,n,r,i,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,Vh(e,o,n,r,i,s,this,await this._onigLibPromise))}return this._grammars.get(e)}}let Xh=class{static{a(this,"Registry")}_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Qh(nr.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,n){this._syncRegistry.setTheme(nr.createFromRawTheme(e,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,n,r){return this.loadGrammarWithConfiguration(e,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,n,r){return this._loadGrammar(e,n,r.embeddedLanguages,r.tokenTypes,new Yh(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,n,r,i,s){const o=new xh(this._syncRegistry,e);for(;o.Q.length>0;)await Promise.all(o.Q.map(l=>this._loadSingleGrammar(l.scopeName))),o.processQueue();return this._grammarForScopeName(e,n,r,i,s)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const n=await this._options.loadGrammar(e);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(n,r)}}async addGrammar(e,n=[],r=0,i=null){return this._syncRegistry.addGrammar(e,n),await this._grammarForScopeName(e.scopeName,r,i)}_grammarForScopeName(e,n=0,r=null,i=null,s=null){return this._syncRegistry.grammarForScopeName(e,n,r,i,s)}};const Zh=Ke.NULL,pe={LANGUAGEID_MASK:255,TOKEN_TYPE_MASK:768,BALANCED_BRACKETS_MASK:1024,FONT_STYLE_MASK:14336,FOREGROUND_MASK:8372224,BACKGROUND_MASK:4286578688,LANGUAGEID_OFFSET:0,TOKEN_TYPE_OFFSET:8,BALANCED_BRACKETS_OFFSET:10,FONT_STYLE_OFFSET:11,FOREGROUND_OFFSET:15,BACKGROUND_OFFSET:24};class nt{static{a(this,"StackElementMetadata")}static toBinaryStr(e){let n=e.toString(2);for(;n.length<32;)n=`0${n}`;return n}static getLanguageId(e){return(e&pe.LANGUAGEID_MASK)>>>pe.LANGUAGEID_OFFSET}static getTokenType(e){return(e&pe.TOKEN_TYPE_MASK)>>>pe.TOKEN_TYPE_OFFSET}static getFontStyle(e){return(e&pe.FONT_STYLE_MASK)>>>pe.FONT_STYLE_OFFSET}static getForeground(e){return(e&pe.FOREGROUND_MASK)>>>pe.FOREGROUND_OFFSET}static getBackground(e){return(e&pe.BACKGROUND_MASK)>>>pe.BACKGROUND_OFFSET}static containsBalancedBrackets(e){return(e&pe.BALANCED_BRACKETS_MASK)!==0}static set(e,n,r,i,s,o){let l=nt.getLanguageId(e),u=nt.getTokenType(e),c=nt.getFontStyle(e),h=nt.getForeground(e),f=nt.getBackground(e);const p=nt.containsBalancedBrackets(e)?1:0;return n!==0&&(l=n),r!==0&&(u=r===8?0:r),i!==ze.NotSet&&(c=i),s!==0&&(h=s),o!==0&&(f=o),(l<<pe.LANGUAGEID_OFFSET|u<<pe.TOKEN_TYPE_OFFSET|c<<pe.FONT_STYLE_OFFSET|p<<pe.BALANCED_BRACKETS_OFFSET|h<<pe.FOREGROUND_OFFSET|f<<pe.BACKGROUND_OFFSET)>>>0}}function ir(t,e=!1){const n=t.split(/(\r?\n)/g);let r=0;const i=[];for(let s=0;s<n.length;s+=2){const o=e?n[s]+(n[s+1]||""):n[s];i.push([o,r]),r+=n[s].length,r+=n[s+1]?.length||0}return i}a(ir,"splitLines$1");function ea(t){return!t||["plaintext","txt","text","plain"].includes(t)}a(ea,"isPlainLang");function ta(t){return t==="ansi"||ea(t)}a(ta,"isSpecialLang");function na(t){return t==="none"}a(na,"isNoneTheme");function ra(t){return na(t)}a(ra,"isSpecialTheme");function ia(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const n=Array.isArray(e)?e:e.split(/\s+/g);for(const r of n)r&&!t.properties.class.includes(r)&&t.properties.class.push(r);return t}a(ia,"addClassToHast");function ep(t,e){let n=0;const r=[];for(const i of e)i>n&&r.push({...t,content:t.content.slice(n,i),offset:t.offset+n}),n=i;return n<t.content.length&&r.push({...t,content:t.content.slice(n),offset:t.offset+n}),r}a(ep,"splitToken");function tp(t,e){const n=Array.from(e instanceof Set?e:new Set(e)).sort((r,i)=>r-i);return n.length?t.map(r=>r.flatMap(i=>{const s=n.filter(o=>i.offset<o&&o<i.offset+i.content.length).map(o=>o-i.offset).sort((o,l)=>o-l);return s.length?ep(i,s):i})):t}a(tp,"splitTokens");function sr(t,e){const n=typeof t=="string"?{}:{...t.colorReplacements},r=typeof t=="string"?t:t.name;for(const[i,s]of Object.entries(e?.colorReplacements||{}))typeof s=="string"?n[i]=s:i===r&&Object.assign(n,s);return n}a(sr,"resolveColorReplacements");function dt(t,e){return t&&(e?.[t?.toLowerCase()]||t)}a(dt,"applyColorReplacements");function sa(t){const e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&ze.Italic&&(e["font-style"]="italic"),t.fontStyle&ze.Bold&&(e["font-weight"]="bold"),t.fontStyle&ze.Underline&&(e["text-decoration"]="underline")),e}a(sa,"getTokenStyleObject");function oa(t){return Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}a(oa,"stringifyTokenStyle");function np(t){const e=ir(t,!0).map(([i])=>i);function n(i){let s=i,o=0;for(const l of e){if(s<l.length)break;s-=l.length,o++}return{line:o,character:s}}a(n,"indexToPos");function r(i,s){let o=0;for(let l=0;l<i;l++)o+=e[l].length;return o+=s,o}return a(r,"posToIndex"),{lines:e,indexToPos:n,posToIndex:r}}a(np,"createPositionConverter");var mt=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],yi={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function rp(t,e){const n=t.indexOf("\x1B[",e);if(n!==-1){const r=t.indexOf("m",n);return{sequence:t.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:t.length}}a(rp,"findSequence");function aa(t,e){let n=1;const r=t[e+n++];let i;if(r==="2"){const s=[t[e+n++],t[e+n++],t[e+n]].map(o=>Number.parseInt(o));s.length===3&&!s.some(o=>Number.isNaN(o))&&(i={type:"rgb",rgb:s})}else if(r==="5"){const s=Number.parseInt(t[e+n]);Number.isNaN(s)||(i={type:"table",index:Number(s)})}return[n,i]}a(aa,"parseColor");function ip(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n],i=Number.parseInt(r);if(!Number.isNaN(i))if(i===0)e.push({type:"resetAll"});else if(i<=9)yi[i]&&e.push({type:"setDecoration",value:yi[i]});else if(i<=29){const s=yi[i-20];s&&e.push({type:"resetDecoration",value:s})}else if(i<=37)e.push({type:"setForegroundColor",value:{type:"named",name:mt[i-30]}});else if(i===38){const[s,o]=aa(t,n);o&&e.push({type:"setForegroundColor",value:o}),n+=s}else if(i===39)e.push({type:"resetForegroundColor"});else if(i<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:mt[i-40]}});else if(i===48){const[s,o]=aa(t,n);o&&e.push({type:"setBackgroundColor",value:o}),n+=s}else i===49?e.push({type:"resetBackgroundColor"}):i>=90&&i<=97?e.push({type:"setForegroundColor",value:{type:"named",name:mt[i-90+8]}}):i>=100&&i<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:mt[i-100+8]}})}return e}a(ip,"parseSequence");function sp(){let t=null,e=null,n=new Set;return{parse(r){const i=[];let s=0;do{const o=rp(r,s),l=o.sequence?r.substring(s,o.startPosition):r.substring(s);if(l.length>0&&i.push({value:l,foreground:t,background:e,decorations:new Set(n)}),o.sequence){const u=ip(o.sequence);for(const c of u)c.type==="resetAll"?(t=null,e=null,n.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of u)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&n.add(c.value)}s=o.position}while(s<r.length);return i}}}a(sp,"createAnsiSequenceParser");var op={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function ap(t=op){function e(l){return t[l]}a(e,"namedColor");function n(l){return`#${l.map(u=>Math.max(0,Math.min(u,255)).toString(16).padStart(2,"0")).join("")}`}a(n,"rgbColor");let r;function i(){if(r)return r;r=[];for(let c=0;c<mt.length;c++)r.push(e(mt[c]));let l=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let h=0;h<6;h++)for(let f=0;f<6;f++)r.push(n([l[c],l[h],l[f]]));let u=8;for(let c=0;c<24;c++,u+=10)r.push(n([u,u,u]));return r}a(i,"getColorTable");function s(l){return i()[l]}a(s,"tableColor");function o(l){switch(l.type){case"named":return e(l.name);case"rgb":return n(l.rgb);case"table":return s(l.index)}}return a(o,"value"),{value:o}}a(ap,"createColorPalette");function lp(t,e,n){const r=sr(t,n),i=ir(e),s=ap(Object.fromEntries(mt.map(l=>[l,t.colors?.[`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`]]))),o=sp();return i.map(l=>o.parse(l[0]).map(u=>{let c,h;u.decorations.has("reverse")?(c=u.background?s.value(u.background):t.bg,h=u.foreground?s.value(u.foreground):t.fg):(c=u.foreground?s.value(u.foreground):t.fg,h=u.background?s.value(u.background):void 0),c=dt(c,r),h=dt(h,r),u.decorations.has("dim")&&(c=up(c));let f=ze.None;return u.decorations.has("bold")&&(f|=ze.Bold),u.decorations.has("italic")&&(f|=ze.Italic),u.decorations.has("underline")&&(f|=ze.Underline),{content:u.value,offset:l[1],color:c,bgColor:h,fontStyle:f}}))}a(lp,"tokenizeAnsiWithTheme");function up(t){const e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const r=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${r}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(r=>`${r}${r}`).join("")}80`;const n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:t}a(up,"dimColor");function bi(t,e,n={}){const{lang:r="text",theme:i=t.getLoadedThemes()[0]}=n;if(ea(r)||na(i))return ir(e).map(u=>[{content:u[0],offset:u[1]}]);const{theme:s,colorMap:o}=t.setTheme(i);if(r==="ansi")return lp(s,e,n);const l=t.getLanguage(r);return cp(e,l,s,o,n)}a(bi,"codeToTokensBase");function cp(t,e,n,r,i){const s=sr(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:l=500}=i,u=ir(t);let c=Zh,h=[];const f=[],p=[];if(i.includeExplanation)for(const d of n.settings){let m;switch(typeof d.scope){case"string":m=d.scope.split(/,/).map(g=>g.trim());break;case"object":m=d.scope;break;default:continue}p.push({settings:d,selectors:m.map(g=>g.split(/ /))})}for(let d=0,m=u.length;d<m;d++){const[g,y]=u[d];if(g===""){h=[],f.push([]);continue}if(o>0&&g.length>=o){h=[],f.push([{content:g,offset:y,color:"",fontStyle:0}]);continue}let b,w,k;i.includeExplanation&&(b=e.tokenizeLine(g,c),w=b.tokens,k=0);const _=e.tokenizeLine2(g,c,l),C=_.tokens.length/2;for(let S=0;S<C;S++){const A=_.tokens[2*S],E=S+1<C?_.tokens[2*S+2]:g.length;if(A===E)continue;const P=_.tokens[2*S+1],N=dt(r[nt.getForeground(P)],s),R=nt.getFontStyle(P),O={content:g.substring(A,E),offset:y+A,color:N,fontStyle:R};if(i.includeExplanation){O.explanation=[];let H=0;for(;A+H<E;){const K=w[k],j=g.substring(K.startIndex,K.endIndex);H+=j.length,O.explanation.push({content:j,scopes:fp(p,K.scopes)}),k+=1}}h.push(O)}f.push(h),h=[],c=_.ruleStack}return f}a(cp,"tokenizeWithTheme");function fp(t,e){const n=[];for(let r=0,i=e.length;r<i;r++){const s=e.slice(0,r),o=e[r];n[r]={scopeName:o,themeMatches:pp(t,o,s)}}return n}a(fp,"explainThemeScopes");function la(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}a(la,"matchesOne");function hp(t,e,n){if(!la(t[t.length-1],e))return!1;let r=t.length-2,i=n.length-1;for(;r>=0&&i>=0;)la(t[r],n[i])&&(r-=1),i-=1;return r===-1}a(hp,"matches");function pp(t,e,n){const r=[];for(const{selectors:i,settings:s}of t)for(const o of i)if(hp(o,e,n)){r.push(s);break}return r}a(pp,"explainThemeScope");function ua(t,e,n){const r=Object.entries(n.themes).filter(o=>o[1]).map(o=>({color:o[0],theme:o[1]})),i=dp(...r.map(o=>bi(t,e,{...n,theme:o.theme})));return i[0].map((o,l)=>o.map((u,c)=>{const h={content:u.content,variants:{},offset:u.offset};return i.forEach((f,p)=>{const{content:d,explanation:m,offset:g,...y}=f[l][c];h.variants[r[p].color]=y}),h}))}a(ua,"codeToTokensWithThemes");function dp(...t){const e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){const i=t.map(u=>u[r]),s=e.map(()=>[]);e.forEach((u,c)=>u.push(s[c]));const o=i.map(()=>0),l=i.map(u=>u[0]);for(;l.every(u=>u);){const u=Math.min(...l.map(c=>c.content.length));for(let c=0;c<n;c++){const h=l[c];h.content.length===u?(s[c].push(h),o[c]+=1,l[c]=i[c][o[c]]):(s[c].push({...h,content:h.content.slice(0,u)}),l[c]={...h,content:h.content.slice(u),offset:h.offset+u})}}}return e}a(dp,"syncThemesTokenization");class le extends Error{static{a(this,"ShikiError")}constructor(e){super(e),this.name="ShikiError"}}function or(t,e,n){let r,i,s,o,l;if("themes"in n){const{defaultColor:u="light",cssVariablePrefix:c="--shiki-"}=n,h=Object.entries(n.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,y)=>g.color===u?-1:y.color===u?1:0);if(h.length===0)throw new le("`themes` option must not be empty");const f=ua(t,e,n);if(u&&!h.find(g=>g.color===u))throw new le(`\`themes\` option must contain the defaultColor key \`${u}\``);const p=h.map(g=>t.getTheme(g.theme)),d=h.map(g=>g.color);s=f.map(g=>g.map(y=>mp(y,d,c,u)));const m=h.map(g=>sr(g.theme,n));i=h.map((g,y)=>(y===0&&u?"":`${c+g.color}:`)+(dt(p[y].fg,m[y])||"inherit")).join(";"),r=h.map((g,y)=>(y===0&&u?"":`${c+g.color}-bg:`)+(dt(p[y].bg,m[y])||"inherit")).join(";"),o=`shiki-themes ${p.map(g=>g.name).join(" ")}`,l=u?void 0:[i,r].join(";")}else if("theme"in n){const u=sr(n.theme,n.colorReplacements);s=bi(t,e,n);const c=t.getTheme(n.theme);r=dt(c.bg,u),i=dt(c.fg,u),o=c.name}else throw new le("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:i,bg:r,themeName:o,rootStyle:l}}a(or,"codeToTokens");function mp(t,e,n,r){const i={content:t.content,explanation:t.explanation,offset:t.offset},s=e.map(u=>sa(t.variants[u])),o=new Set(s.flatMap(u=>Object.keys(u))),l=s.reduce((u,c,h)=>{for(const f of o){const p=c[f]||"inherit";if(h===0&&r)u[f]=p;else{const d=f==="color"?"":f==="background-color"?"-bg":`-${f}`,m=n+e[h]+(f==="color"?"":d);u[f]?u[f]+=`;${m}:${p}`:u[f]=`${m}:${p}`}}return u},{});return i.htmlStyle=r?oa(l):Object.values(l).join(";"),i}a(mp,"mergeToken");function gp(){const t=new WeakMap;function e(r){if(!t.has(r.meta)){let s=function(l){return typeof l=="number"?{...i.indexToPos(l),offset:l}:{...l,offset:i.posToIndex(l.line,l.character)}};a(s,"normalizePosition");const i=np(r.source),o=(r.options.decorations||[]).map(l=>({...l,start:s(l.start),end:s(l.end)}));n(o),t.set(r.meta,{decorations:o,converter:i,source:r.source})}return t.get(r.meta)}a(e,"getContext");function n(r){for(let i=0;i<r.length;i++){const s=r[i];if(s.start.offset>s.end.offset)throw new le(`Invalid decoration range: ${JSON.stringify(s.start)} - ${JSON.stringify(s.end)}`);for(let o=i+1;o<r.length;o++){const l=r[o],u=s.start.offset<l.start.offset&&l.start.offset<s.end.offset,c=s.start.offset<l.end.offset&&l.end.offset<s.end.offset,h=l.start.offset<s.start.offset&&s.start.offset<l.end.offset,f=l.start.offset<s.end.offset&&s.end.offset<l.end.offset;if(u||c||h||f){if(c&&c||h&&f)continue;throw new le(`Decorations ${JSON.stringify(s.start)} and ${JSON.stringify(l.start)} intersect.`)}}}}return a(n,"verifyIntersections"),{name:"shiki:decorations",tokens(r){if(!this.options.decorations?.length)return;const s=e(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]);return tp(r,s)},code(r){if(!this.options.decorations?.length)return;const i=e(this),s=Array.from(r.children).filter(f=>f.type==="element"&&f.tagName==="span");if(s.length!==i.converter.lines.length)throw new le(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function o(f,p,d,m){const g=s[f];let y="",b=-1,w=-1;function k(C){return C.type==="text"?C.value:C.type==="element"?C.children.map(k).join(""):""}if(a(k,"stringify"),p===0&&(b=0),d===0&&(w=0),d===Number.POSITIVE_INFINITY&&(w=g.children.length),b===-1||w===-1)for(let C=0;C<g.children.length;C++)y+=k(g.children[C]),b===-1&&y.length===p&&(b=C+1),w===-1&&y.length===d&&(w=C+1);if(b===-1)throw new le(`Failed to find start index for decoration ${JSON.stringify(m.start)}`);if(w===-1)throw new le(`Failed to find end index for decoration ${JSON.stringify(m.end)}`);const _=g.children.slice(b,w);if(!m.alwaysWrap&&_.length===g.children.length)u(g,m,"line");else if(!m.alwaysWrap&&_.length===1&&_[0].type==="element")u(_[0],m,"token");else{const C={type:"element",tagName:"span",properties:{},children:_};u(C,m,"wrapper"),g.children.splice(b,_.length,C)}}a(o,"applyLineSection");function l(f,p){s[f]=u(s[f],p,"line")}a(l,"applyLine");function u(f,p,d){const m=p.properties||{},g=p.transform||(y=>y);return f.tagName=p.tagName||"span",f.properties={...f.properties,...m,class:f.properties.class},p.properties?.class&&ia(f,p.properties.class),f=g(f,d)||f,f}a(u,"applyDecoration");const c=[],h=i.decorations.sort((f,p)=>p.start.offset-f.start.offset);for(const f of h){const{start:p,end:d}=f;if(p.line===d.line)o(p.line,p.character,d.character,f);else if(p.line<d.line){o(p.line,p.character,Number.POSITIVE_INFINITY,f);for(let m=p.line+1;m<d.line;m++)c.unshift(()=>l(m,f));o(d.line,0,d.character,f)}}c.forEach(f=>f())}}}a(gp,"transformerDecorations");const yp=[gp()];function ar(t){return[...t.transformers||[],...yp]}a(ar,"getTransformers");function lr(t,e,n,r={meta:{},options:n,codeToHast:(i,s)=>lr(t,i,s),codeToTokens:(i,s)=>or(t,i,s)}){let i=e;for(const p of ar(n))i=p.preprocess?.call(r,i,n)||i;let{tokens:s,fg:o,bg:l,themeName:u,rootStyle:c}=or(t,i,n);const{mergeWhitespaces:h=!0}=n;h===!0?s=wp(s):h==="never"&&(s=kp(s));const f={...r,get source(){return i}};for(const p of ar(n))s=p.tokens?.call(f,s)||s;return bp(s,{...n,fg:o,bg:l,themeName:u,rootStyle:c},f)}a(lr,"codeToHast");function bp(t,e,n){const r=ar(e),i=[],s={type:"root",children:[]},{structure:o="classic"}=e;let l={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([p])=>!p.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:i};const c=[],h={...n,structure:o,addClassToHast:ia,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return s},get pre(){return l},get code(){return u},get lines(){return c}};if(t.forEach((p,d)=>{d&&(o==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):o==="classic"&&i.push({type:"text",value:`
|
|
14
|
+
`}));let m={type:"element",tagName:"span",properties:{class:"line"},children:[]},g=0;for(const y of p){let b={type:"element",tagName:"span",properties:{},children:[{type:"text",value:y.content}]};const w=y.htmlStyle||oa(sa(y));w&&(b.properties.style=w);for(const k of r)b=k?.span?.call(h,b,d+1,g,m)||b;o==="inline"?s.children.push(b):o==="classic"&&m.children.push(b),g+=y.content.length}if(o==="classic"){for(const y of r)m=y?.line?.call(h,m,d+1)||m;c.push(m),i.push(m)}}),o==="classic"){for(const p of r)u=p?.code?.call(h,u)||u;l.children.push(u);for(const p of r)l=p?.pre?.call(h,l)||l;s.children.push(l)}let f=s;for(const p of r)f=p?.root?.call(h,f)||f;return f}a(bp,"tokensToHast");function wp(t){return t.map(e=>{const n=[];let r="",i=0;return e.forEach((s,o)=>{const u=!(s.fontStyle&&s.fontStyle&ze.Underline);u&&s.content.match(/^\s+$/)&&e[o+1]?(i||(i=s.offset),r+=s.content):r?(u?n.push({...s,offset:i,content:r+s.content}):n.push({content:r,offset:i},s),i=0,r=""):n.push(s)}),n})}a(wp,"mergeWhitespaceTokens");function kp(t){return t.map(e=>e.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,i,s,o]=r;if(!i&&!o)return n;const l=[{...n,offset:n.offset+i.length,content:s}];return i&&l.unshift({content:i,offset:n.offset}),o&&l.push({content:o,offset:n.offset+i.length+s.length}),l}))}a(kp,"splitWhitespaceTokens");const Sp=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Sn=class{static{a(this,"Schema")}constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}};Sn.prototype.property={},Sn.prototype.normal={},Sn.prototype.space=null;function ca(t,e){const n={},r={};let i=-1;for(;++i<t.length;)Object.assign(n,t[i].property),Object.assign(r,t[i].normal);return new Sn(n,r,e)}a(ca,"merge$1");function wi(t){return t.toLowerCase()}a(wi,"normalize$2");let Ee=class{static{a(this,"Info")}constructor(e,n){this.property=e,this.attribute=n}};Ee.prototype.space=null,Ee.prototype.boolean=!1,Ee.prototype.booleanish=!1,Ee.prototype.overloadedBoolean=!1,Ee.prototype.number=!1,Ee.prototype.commaSeparated=!1,Ee.prototype.spaceSeparated=!1,Ee.prototype.commaOrSpaceSeparated=!1,Ee.prototype.mustUseProperty=!1,Ee.prototype.defined=!1;let xp=0;const B=gt(),re=gt(),fa=gt(),I=gt(),Q=gt(),$t=gt(),_e=gt();function gt(){return 2**++xp}a(gt,"increment$1");var ki=Object.freeze({__proto__:null,boolean:B,booleanish:re,commaOrSpaceSeparated:_e,commaSeparated:$t,number:I,overloadedBoolean:fa,spaceSeparated:Q});const Si=Object.keys(ki);let xi=class extends Ee{static{a(this,"DefinedInfo")}constructor(e,n,r,i){let s=-1;if(super(e,n),ha(this,"space",i),typeof r=="number")for(;++s<Si.length;){const o=Si[s];ha(this,Si[s],(r&ki[o])===ki[o])}}};xi.prototype.defined=!0;function ha(t,e,n){n&&(t[e]=n)}a(ha,"mark$1");const vp={}.hasOwnProperty;function Bt(t){const e={},n={};let r;for(r in t.properties)if(vp.call(t.properties,r)){const i=t.properties[r],s=new xi(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),e[r]=s,n[wi(r)]=r,n[wi(s.attribute)]=r}return new Sn(e,n,t.space)}a(Bt,"create$2");const pa=Bt({space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),da=Bt({space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ma(t,e){return e in t?t[e]:e}a(ma,"caseSensitiveTransform$1");function ga(t,e){return ma(t,e.toLowerCase())}a(ga,"caseInsensitiveTransform$1");const ya=Bt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ga,properties:{xmlns:null,xmlnsXLink:null}}),ba=Bt({transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:re,ariaAutoComplete:null,ariaBusy:re,ariaChecked:re,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:Q,ariaCurrent:null,ariaDescribedBy:Q,ariaDetails:null,ariaDisabled:re,ariaDropEffect:Q,ariaErrorMessage:null,ariaExpanded:re,ariaFlowTo:Q,ariaGrabbed:re,ariaHasPopup:null,ariaHidden:re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Q,ariaLevel:I,ariaLive:null,ariaModal:re,ariaMultiLine:re,ariaMultiSelectable:re,ariaOrientation:null,ariaOwns:Q,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:re,ariaReadOnly:re,ariaRelevant:null,ariaRequired:re,ariaRoleDescription:Q,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:re,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null}}),_p=Bt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ga,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$t,acceptCharset:Q,accessKey:Q,action:null,allow:null,allowFullScreen:B,allowPaymentRequest:B,allowUserMedia:B,alt:null,as:null,async:B,autoCapitalize:null,autoComplete:Q,autoFocus:B,autoPlay:B,blocking:Q,capture:null,charSet:null,checked:B,cite:null,className:Q,cols:I,colSpan:null,content:null,contentEditable:re,controls:B,controlsList:Q,coords:I|$t,crossOrigin:null,data:null,dateTime:null,decoding:null,default:B,defer:B,dir:null,dirName:null,disabled:B,download:fa,draggable:re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:B,formTarget:null,headers:Q,height:I,hidden:B,high:I,href:null,hrefLang:null,htmlFor:Q,httpEquiv:Q,id:null,imageSizes:null,imageSrcSet:null,inert:B,inputMode:null,integrity:null,is:null,isMap:B,itemId:null,itemProp:Q,itemRef:Q,itemScope:B,itemType:Q,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:B,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:B,muted:B,name:null,nonce:null,noModule:B,noValidate:B,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:B,optimum:I,pattern:null,ping:Q,placeholder:null,playsInline:B,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:B,referrerPolicy:null,rel:Q,required:B,reversed:B,rows:I,rowSpan:I,sandbox:Q,scope:null,scoped:B,seamless:B,selected:B,shadowRootDelegatesFocus:B,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:B,useMap:null,value:re,width:I,wrap:null,align:null,aLink:null,archive:Q,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:B,declare:B,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:B,noHref:B,noShade:B,noWrap:B,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:re,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:B,disableRemotePlayback:B,prefix:null,property:null,results:I,security:null,unselectable:null}}),Cp=Bt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ma,properties:{about:_e,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:Q,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:B,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:$t,g2:$t,glyphName:$t,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:_e,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Q,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_e,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_e,rev:_e,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_e,requiredFeatures:_e,requiredFonts:_e,requiredFormats:_e,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:_e,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_e,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_e,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Np=/^data[-\w.:]+$/i,wa=/-[a-z]/g,Ap=/[A-Z]/g;function Ep(t,e){const n=wi(e);let r=e,i=Ee;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Np.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(wa,Ip);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!wa.test(s)){let o=s.replace(Ap,Tp);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=xi}return new i(r,e)}a(Ep,"find$1");function Tp(t){return"-"+t.toLowerCase()}a(Tp,"kebab$1");function Ip(t){return t.charAt(1).toUpperCase()}a(Ip,"camelcase$1");const Lp=ca([da,pa,ya,ba,_p],"html"),ka=ca([da,pa,ya,ba,Cp],"svg"),Sa={}.hasOwnProperty;function Op(t,e){const n=e||{};function r(i,...s){let o=r.invalid;const l=r.handlers;if(i&&Sa.call(i,t)){const u=String(i[t]);o=Sa.call(l,u)?l[u]:r.unknown}if(o)return o.call(this,i,...s)}return a(r,"one"),r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}a(Op,"zwitch$1");function Pp(t,e){if(t=t.replace(e.subset?Dp(e.subset):/["&'<>`]/g,r),e.subset||e.escapeOnly)return t;return t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function n(i,s,o){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function r(i,s,o){return e.format(i.charCodeAt(0),o.charCodeAt(s+1),e)}}a(Pp,"core$1");function Dp(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}a(Dp,"charactersToExpression$1");function Rp(t,e,n){const r="&#x"+t.toString(16).toUpperCase();return n&&e&&!/[\dA-Fa-f]/.test(String.fromCharCode(e))?r:r+";"}a(Rp,"toHexadecimal$1");function Fp(t,e,n){const r="&#"+String(t);return n&&e&&!/\d/.test(String.fromCharCode(e))?r:r+";"}a(Fp,"toDecimal$1");const Mp=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],vi={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"},$p=["cent","copy","divide","gt","lt","not","para","times"],xa={}.hasOwnProperty,_i={};let ur;for(ur in vi)xa.call(vi,ur)&&(_i[vi[ur]]=ur);function Bp(t,e,n,r){const i=String.fromCharCode(t);if(xa.call(_i,i)){const s=_i[i],o="&"+s;return n&&Mp.includes(s)&&!$p.includes(s)&&(!r||e&&e!==61&&/[^\da-z]/i.test(String.fromCharCode(e)))?o:o+";"}return""}a(Bp,"toNamed$1");function qp(t,e,n){let r=Rp(t,e,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Bp(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=Fp(t,e,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}a(qp,"formatSmart$1");function qt(t,e){return Pp(t,Object.assign({format:qp},e))}a(qt,"stringifyEntities$1");const zp=/^>|^->|<!--|-->|--!>|<!-$/g,Up=[">"],jp=["<",">"];function Gp(t,e,n,r){return r.settings.bogusComments?"<?"+qt(t.value,Object.assign({},r.settings.characterReferences,{subset:Up}))+">":"<!--"+t.value.replace(zp,i)+"-->";function i(s){return qt(s,Object.assign({},r.settings.characterReferences,{subset:jp}))}}a(Gp,"comment$1");function Hp(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}a(Hp,"doctype$1");function va(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}a(va,"ccount$1");function Vp(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}a(Vp,"stringify$1$1");function Wp(t){return t.join(" ").trim()}a(Wp,"stringify$4");const Kp=/[ \t\n\f\r]/g;function Ci(t){return typeof t=="object"?t.type==="text"?_a(t.value):!1:_a(t)}a(Ci,"whitespace$1");function _a(t){return t.replace(Kp,"")===""}a(_a,"empty$2");const oe=Na(1),Ca=Na(-1),Yp=[];function Na(t){return e;function e(n,r,i){const s=n?n.children:Yp;let o=(r||0)+t,l=s[o];if(!i)for(;l&&Ci(l);)o+=t,l=s[o];return l}}a(Na,"siblings$1");const Jp={}.hasOwnProperty;function Aa(t){return e;function e(n,r,i){return Jp.call(t,n.tagName)&&t[n.tagName](n,r,i)}}a(Aa,"omission$1");const Ni=Aa({body:Xp,caption:Ai,colgroup:Ai,dd:nd,dt:td,head:Ai,html:Qp,li:ed,optgroup:rd,option:id,p:Zp,rp:Ea,rt:Ea,tbody:od,td:Ta,tfoot:ad,th:Ta,thead:sd,tr:ld});function Ai(t,e,n){const r=oe(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ci(r.value.charAt(0)))}a(Ai,"headOrColgroupOrCaption$1");function Qp(t,e,n){const r=oe(n,e);return!r||r.type!=="comment"}a(Qp,"html$1$1");function Xp(t,e,n){const r=oe(n,e);return!r||r.type!=="comment"}a(Xp,"body$1$1");function Zp(t,e,n){const r=oe(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}a(Zp,"p$2");function ed(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&r.tagName==="li"}a(ed,"li$1");function td(t,e,n){const r=oe(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}a(td,"dt$1");function nd(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}a(nd,"dd$1");function Ea(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}a(Ea,"rubyElement$1");function rd(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}a(rd,"optgroup$1");function id(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}a(id,"option$1");function sd(t,e,n){const r=oe(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}a(sd,"thead$1");function od(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}a(od,"tbody$1$1");function ad(t,e,n){return!oe(n,e)}a(ad,"tfoot$1");function ld(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&r.tagName==="tr"}a(ld,"tr$1");function Ta(t,e,n){const r=oe(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}a(Ta,"cells$1");const ud=Aa({body:hd,colgroup:pd,head:fd,html:cd,tbody:dd});function cd(t){const e=oe(t,-1);return!e||e.type!=="comment"}a(cd,"html$6");function fd(t){const e=t.children,n=[];let r=-1;for(;++r<e.length;){const i=e[r];if(i.type==="element"&&(i.tagName==="title"||i.tagName==="base")){if(n.includes(i.tagName))return!1;n.push(i.tagName)}}return e.length>0}a(fd,"head$1");function hd(t){const e=oe(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Ci(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}a(hd,"body$2");function pd(t,e,n){const r=Ca(n,e),i=oe(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Ni(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}a(pd,"colgroup$1");function dd(t,e,n){const r=Ca(n,e),i=oe(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Ni(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}a(dd,"tbody$2");const cr={name:[[`
|
|
15
15
|
\f\r &/=>`.split(""),`
|
|
16
16
|
\f\r "&'/=>\``.split("")],[`\0
|
|
17
17
|
\f\r "&'/<=>`.split(""),`\0
|
|
@@ -19,9 +19,9 @@ var Cf=Object.defineProperty;var a=(t,e)=>Cf(t,"name",{value:e,configurable:!0})
|
|
|
19
19
|
\f\r &>`.split(""),`\0
|
|
20
20
|
\f\r "&'<=>\``.split("")],[`\0
|
|
21
21
|
\f\r "&'<=>\``.split(""),`\0
|
|
22
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function dd(t,e,n,r){const i=r.schema,s=i.space==="svg"?!1:r.settings.omitOptionalTags;let o=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase());const l=[];let u;i.space==="html"&&t.tagName==="svg"&&(r.schema=wa);const c=md(r,t.properties),h=r.all(i.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=i,h&&(o=!1),(c||!s||!ld(t,e,n))&&(l.push("<",t.tagName,c?" "+c:""),o&&(i.space==="svg"||r.settings.closeSelfClosing)&&(u=c.charAt(c.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(h),!o&&(!s||!Ni(t,e,n))&&l.push("</"+t.tagName+">"),l.join("")}a(dd,"element$2");function md(t,e){const n=[];let r=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const s=gd(t,i,e[i]);s&&n.push(s)}}for(;++r<n.length;){const s=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}a(md,"serializeAttributes$1");function gd(t,e,n){const r=Ap(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,s=t.settings.allowDangerousCharacters?0:1;let o=t.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean&&typeof n!="string")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=qt(r.attribute,Object.assign({},t.settings.characterReferences,{subset:cr.name[i][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Hp:Vp)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?u:(t.settings.preferUnquoted&&(l=qt(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:cr.unquoted[i][s]}))),l!==n&&(t.settings.quoteSmart&&xa(n,o)>xa(n,t.alternative)&&(o=t.alternative),l=o+qt(n,Object.assign({},t.settings.characterReferences,{subset:(o==="'"?cr.single:cr.double)[i][s],attribute:!0}))+o),u+(l&&"="+l))}a(gd,"serializeAttribute$1");const yd=["<","&"];function Ta(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:qt(t.value,Object.assign({},r.settings.characterReferences,{subset:yd}))}a(Ta,"text$6");function bd(t,e,n,r){return r.settings.allowDangerousHtml?t.value:Ta(t,e,n,r)}a(bd,"raw$1");function wd(t,e,n,r){return r.all(t)}a(wd,"root$3");const kd=Lp("type",{invalid:Sd,unknown:xd,handlers:{comment:jp,doctype:Gp,element:dd,raw:bd,root:wd,text:Ta}});function Sd(t){throw new Error("Expected node, not `"+t+"`")}a(Sd,"invalid$1");function xd(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}a(xd,"unknown$1");const vd={},_d={},Cd=[];function Nd(t,e){const n=vd,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Ad,all:Ed,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||kp,characterReferences:n.characterReferences||_d,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?wa:Ip,quote:r,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}a(Nd,"toHtml$1");function Ad(t,e,n){return kd(t,e,n,this)}a(Ad,"one$3");function Ed(t){const e=[],n=t&&t.children||Cd;let r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}a(Ed,"all$3");function Td(t,e,n){const r={meta:{},options:n,codeToHast:(s,o)=>lr(t,s,o),codeToTokens:(s,o)=>or(t,s,o)};let i=Nd(lr(t,e,n,r));for(const s of ar(n))i=s.postprocess?.call(r,i,n)||i;return i}a(Td,"codeToHtml");async function Id(t){let e,n;const r={};function i(g){n=g,r.HEAPU8=new Uint8Array(g),r.HEAPU32=new Uint32Array(g)}a(i,"updateGlobalBufferAndViews");function s(){return typeof performance<"u"?performance.now():Date.now()}a(s,"_emscripten_get_now");function o(g,y,b){r.HEAPU8.copyWithin(g,y,y+b)}a(o,"_emscripten_memcpy_big");function l(){return 2147483648}a(l,"getHeapMax");function u(g){try{return e.grow(g-n.byteLength+65535>>>16),i(e.buffer),1}catch{}}a(u,"emscripten_realloc_buffer");function c(g){const y=r.HEAPU8.length;g=g>>>0;const b=l();if(g>b)return!1;const w=a((k,_)=>k+(_-k%_)%_,"alignUp");for(let k=1;k<=4;k*=2){let _=y*(1+.2/k);_=Math.min(_,g+100663296);const C=Math.min(b,w(Math.max(g,_),65536));if(u(C))return!0}return!1}a(c,"_emscripten_resize_heap");const h=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(g,y,b=1024){const w=y+b;let k=y;for(;g[k]&&!(k>=w);)++k;if(k-y>16&&g.buffer&&h)return h.decode(g.subarray(y,k));let _="";for(;y<k;){let C=g[y++];if(!(C&128)){_+=String.fromCharCode(C);continue}const S=g[y++]&63;if((C&224)===192){_+=String.fromCharCode((C&31)<<6|S);continue}const A=g[y++]&63;if((C&240)===224?C=(C&15)<<12|S<<6|A:C=(C&7)<<18|S<<12|A<<6|g[y++]&63,C<65536)_+=String.fromCharCode(C);else{const E=C-65536;_+=String.fromCharCode(55296|E>>10,56320|E&1023)}}return _}a(f,"UTF8ArrayToString");function p(g,y){return g?f(r.HEAPU8,g,y):""}a(p,"UTF8ToString");const d={emscripten_get_now:s,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function m(){const y=await t({env:d,wasi_snapshot_preview1:d});e=y.memory,i(e.buffer),Object.assign(r,y),r.UTF8ToString=p}return a(m,"createWasm"),await m(),r}a(Id,"main");let ue=null,Ld=!1;function Od(t){throw new le(t.UTF8ToString(t.getLastOnigError()))}a(Od,"throwLastOnigError");class ei{static{a(this,"UtfString")}static _utf8ByteLength(e){let n=0;for(let r=0,i=e.length;r<i;r++){const s=e.charCodeAt(r);let o=s,l=!1;if(s>=55296&&s<=56319&&r+1<i){const u=e.charCodeAt(r+1);u>=56320&&u<=57343&&(o=(s-55296<<10)+65536|u-56320,l=!0)}o<=127?n+=1:o<=2047?n+=2:o<=65535?n+=3:n+=4,l&&r++}return n}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(e){const n=e.length,r=ei._utf8ByteLength(e),i=r!==n,s=i?new Uint32Array(n+1):null;i&&(s[n]=r);const o=i?new Uint32Array(r+1):null;i&&(o[r]=n);const l=new Uint8Array(r);let u=0;for(let c=0;c<n;c++){const h=e.charCodeAt(c);let f=h,p=!1;if(h>=55296&&h<=56319&&c+1<n){const d=e.charCodeAt(c+1);d>=56320&&d<=57343&&(f=(h-55296<<10)+65536|d-56320,p=!0)}i&&(s[c]=u,p&&(s[c+1]=u),f<=127?o[u+0]=c:f<=2047?(o[u+0]=c,o[u+1]=c):f<=65535?(o[u+0]=c,o[u+1]=c,o[u+2]=c):(o[u+0]=c,o[u+1]=c,o[u+2]=c,o[u+3]=c)),f<=127?l[u++]=f:f<=2047?(l[u++]=192|(f&1984)>>>6,l[u++]=128|(f&63)>>>0):f<=65535?(l[u++]=224|(f&61440)>>>12,l[u++]=128|(f&4032)>>>6,l[u++]=128|(f&63)>>>0):(l[u++]=240|(f&1835008)>>>18,l[u++]=128|(f&258048)>>>12,l[u++]=128|(f&4032)>>>6,l[u++]=128|(f&63)>>>0),p&&c++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=o}createString(e){const n=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,n),n}}class Fe{static{a(this,"OnigString")}static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++Fe.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(e){if(!ue)throw new le("Must invoke loadWasm first.");this._onigBinding=ue,this.content=e;const n=new ei(e);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Fe._sharedPtrInUse?(Fe._sharedPtr||(Fe._sharedPtr=ue.omalloc(1e4)),Fe._sharedPtrInUse=!0,ue.HEAPU8.set(n.utf8Value,Fe._sharedPtr),this.ptr=Fe._sharedPtr):this.ptr=n.createString(ue)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===Fe._sharedPtr?Fe._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class Pd{static{a(this,"OnigScanner")}_onigBinding;_ptr;constructor(e){if(!ue)throw new le("Must invoke loadWasm first.");const n=[],r=[];for(let l=0,u=e.length;l<u;l++){const c=new ei(e[l]);n[l]=c.createString(ue),r[l]=c.utf8Length}const i=ue.omalloc(4*e.length);ue.HEAPU32.set(n,i/4);const s=ue.omalloc(4*e.length);ue.HEAPU32.set(r,s/4);const o=ue.createOnigScanner(i,s,e.length);for(let l=0,u=e.length;l<u;l++)ue.ofree(n[l]);ue.ofree(s),ue.ofree(i),o===0&&Od(ue),this._onigBinding=ue,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,n,r){let i=Ld,s=0;if(typeof r=="number"?(r&8&&(i=!0),s=r):typeof r=="boolean"&&(i=r),typeof e=="string"){e=new Fe(e);const o=this._findNextMatchSync(e,n,i,s);return e.dispose(),o}return this._findNextMatchSync(e,n,i,s)}_findNextMatchSync(e,n,r,i){const s=this._onigBinding;let o;if(r?o=s.findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),i):o=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),i),o===0)return null;const l=s.HEAPU32;let u=o/4;const c=l[u++],h=l[u++],f=[];for(let p=0;p<h;p++){const d=e.convertUtf8OffsetToUtf16(l[u++]),m=e.convertUtf8OffsetToUtf16(l[u++]);f[p]={start:d,end:m,length:m-d}}return{index:c,captureIndices:f}}}function Dd(t){return typeof t.instantiator=="function"}a(Dd,"isInstantiatorOptionsObject");function Rd(t){return typeof t.default=="function"}a(Rd,"isInstantiatorModule");function Fd(t){return typeof t.data<"u"}a(Fd,"isDataOptionsObject");function Md(t){return typeof Response<"u"&&t instanceof Response}a(Md,"isResponse");function $d(t){return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&Buffer.isBuffer?.(t)||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}a($d,"isArrayBuffer");let fr;function Bd(t){if(fr)return fr;async function e(){ue=await Id(async n=>{let r=t;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),Dd(r)?r=await r.instantiator(n):Rd(r)?r=await r.default(n):(Fd(r)&&(r=r.data),Md(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await qd(r)(n):r=await zd(r)(n):$d(r)?r=await Ei(r)(n):r instanceof WebAssembly.Module?r=await Ei(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Ei(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return a(e,"_load"),fr=e(),fr}a(Bd,"loadWasm");function Ei(t){return e=>WebAssembly.instantiate(t,e)}a(Ei,"_makeArrayBufferLoader");function qd(t){return e=>WebAssembly.instantiateStreaming(t,e)}a(qd,"_makeResponseStreamingLoader");function zd(t){return async e=>{const n=await t.arrayBuffer();return WebAssembly.instantiate(n,e)}}a(zd,"_makeResponseNonStreamingLoader");function Ud(t){return new Fe(t)}a(Ud,"createOnigString");function jd(t){return new Pd(t)}a(jd,"createOnigScanner");const Ia={light:"#333333",dark:"#bbbbbb"},La={light:"#fffffe",dark:"#1e1e1e"},Oa="__shiki_resolved";function Pa(t){if(t?.[Oa])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:r}=e;if(!n||!r){const l=e.settings?e.settings.find(u=>!u.name&&!u.scope):void 0;l?.settings?.foreground&&(r=l.settings.foreground),l?.settings?.background&&(n=l.settings.background),!r&&e?.colors?.["editor.foreground"]&&(r=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),r||(r=e.type==="light"?Ia.light:Ia.dark),n||(n=e.type==="light"?La.light:La.dark),e.fg=r,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0;const s=new Map;function o(l){if(s.has(l))return s.get(l);i+=1;const u=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${u}`]?o(l):(s.set(l,u),u)}a(o,"getReplacementColor"),e.settings=e.settings.map(l=>{const u=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),c=l.settings?.background&&!l.settings.background.startsWith("#");if(!u&&!c)return l;const h={...l,settings:{...l.settings}};if(u){const f=o(l.settings.foreground);e.colorReplacements[f]=l.settings.foreground,h.settings.foreground=f}if(c){const f=o(l.settings.background);e.colorReplacements[f]=l.settings.background,h.settings.background=f}return h});for(const l of Object.keys(e.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!e.colors[l]?.startsWith("#")){const u=o(e.colors[l]);e.colorReplacements[u]=e.colors[l],e.colors[l]=u}return Object.defineProperty(e,Oa,{enumerable:!1,writable:!1,value:!0}),e}a(Pa,"normalizeTheme");class Gd extends Qh{static{a(this,"Registry")}_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,n,r,i={}){super(e),this._resolver=e,this._themes=n,this._langs=r,this._alias=i,n.forEach(s=>this.loadTheme(s)),r.forEach(s=>this.loadLanguage(s))}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const n=Pa(e);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let n=this._textmateThemeCache.get(e);n||(n=nr.createFromRawTheme(e),this._textmateThemeCache.set(e,n)),this._syncRegistry.setTheme(n)}getGrammar(e){if(this._alias[e]){const n=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],n.has(e))throw new le(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return this._resolvedGrammars.get(e)}async loadLanguage(e){if(this.getGrammar(e.name))return;const n=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=await this.loadGrammarWithConfiguration(e.scopeName,1,r);if(this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(s=>{this._alias[s]=e.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),await this.loadLanguage(this._langMap.get(s.name))}async init(){this._themes.map(e=>this.loadTheme(e)),await this.loadLanguages(this._langs)}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}async loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const n=Array.from(this._langGraph.entries()),r=n.filter(([i,s])=>!s);if(r.length){const i=n.filter(([s,o])=>o&&o.embeddedLangs?.some(l=>r.map(([u])=>u).includes(l))).filter(s=>!r.includes(s));throw new le(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${i.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[i,s]of n)this._resolver.addLanguage(s);for(const[i,s]of n)await this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(const n of e.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class Hd{static{a(this,"Resolver")}_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLibPromise;constructor(e,n){this._onigLibPromise=e,n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLibPromise}getLangRegistration(e){return this._langs.get(e)}async loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(n=>{this._langs.set(n,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(e.scopeName)})}getInjections(e){const n=e.split(".");let r=[];for(let i=1;i<=n.length;i++){const s=n.slice(0,i).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let Vd,xn=0;async function Wd(t={}){xn+=1,t.warnings!==!1&&xn>=10&&xn%10===0&&console.warn(`[Shiki] ${xn} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;async function n(k){return Promise.resolve(typeof k=="function"?k():k).then(_=>_.default||_)}a(n,"normalizeGetter");async function r(k){return Array.from(new Set((await Promise.all(k.filter(_=>!ea(_)).map(async _=>await n(_).then(C=>Array.isArray(C)?C:[C])))).flat()))}a(r,"resolveLangs");const i=t.loadWasm||Vd,[s,o]=await Promise.all([Promise.all((t.themes||[]).map(n)).then(k=>k.map(Pa)),r(t.langs||[]),i?Bd(i):void 0]),l=new Hd(Promise.resolve({createOnigScanner(k){return jd(k)},createOnigString(k){return Ud(k)}}),o),u=new Gd(l,s,o,t.langAlias);await u.init();let c;function h(k){b();const _=u.getGrammar(typeof k=="string"?k:k.name);if(!_)throw new le(`Language \`${k}\` not found, you may need to load it first`);return _}a(h,"getLanguage");function f(k){if(k==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const _=u.getTheme(k);if(!_)throw new le(`Theme \`${k}\` not found, you may need to load it first`);return _}a(f,"getTheme");function p(k){b();const _=f(k);c!==k&&(u.setTheme(_),c=k);const C=u.getColorMap();return{theme:_,colorMap:C}}a(p,"setTheme");function d(){return b(),u.getLoadedThemes()}a(d,"getLoadedThemes");function m(){return b(),u.getLoadedLanguages()}a(m,"getLoadedLanguages");async function g(...k){b(),await u.loadLanguages(await r(k))}a(g,"loadLanguage");async function y(...k){b(),await Promise.all(k.map(async _=>na(_)?null:u.loadTheme(await n(_))))}a(y,"loadTheme");function b(){if(e)throw new le("Shiki instance has been disposed")}a(b,"ensureNotDisposed");function w(){e||(e=!0,u.dispose(),xn-=1)}return a(w,"dispose"),{setTheme:p,getTheme:f,getLanguage:h,getLoadedThemes:d,getLoadedLanguages:m,loadLanguage:g,loadTheme:y,dispose:w,[Symbol.dispose]:w}}a(Wd,"createShikiInternal");async function Kd(t={}){const e=await Wd(t);return{codeToTokensBase:(n,r)=>bi(e,n,r),codeToTokensWithThemes:(n,r)=>la(e,n,r),codeToTokens:(n,r)=>or(e,n,r),codeToHast:(n,r)=>lr(e,n,r),codeToHtml:(n,r)=>Td(e,n,r),...e,getInternalContext:()=>e}}a(Kd,"createHighlighterCore");function Yd(t,e,n){async function r(i){function s(h){if(typeof h=="string"){if(ea(h))return[];const f=t[h];if(!f)throw new le(`Language \`${h}\` is not included in this bundle. You may want to load it from external source.`);return f}return h}a(s,"resolveLang");function o(h){if(na(h))return"none";if(typeof h=="string"){const f=e[h];if(!f)throw new le(`Theme \`${h}\` is not included in this bundle. You may want to load it from external source.`);return f}return h}a(o,"resolveTheme");const l=(i.themes??[]).map(h=>o(h)),u=(i.langs??[]).map(h=>s(h)),c=await Kd({...i,themes:l,langs:u,loadWasm:n});return{...c,loadLanguage(...h){return c.loadLanguage(...h.map(s))},loadTheme(...h){return c.loadTheme(...h.map(o))}}}return a(r,"createHighlighter"),r}a(Yd,"createdBundledHighlighter");const Jd=Yd(Oo,dh,hh);function Qd(t){return"children"in t?Da(t):"value"in t?t.value:""}a(Qd,"toString$2");function Xd(t){return t.type==="text"?t.value:"children"in t?Da(t):""}a(Xd,"one$2");function Da(t){let e=-1;const n=[];for(;++e<t.children.length;)n[e]=Xd(t.children[e]);return n.join("")}a(Da,"all$2");const st=a(function(t){if(t==null)return nm;if(typeof t=="function")return hr(t);if(typeof t=="object")return Array.isArray(t)?Zd(t):em(t);if(typeof t=="string")return tm(t);throw new Error("Expected function, string, or object as test")},"convert");function Zd(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=st(t[n]);return hr(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}a(Zd,"anyFactory$1");function em(t){const e=t;return hr(n);function n(r){const i=r;let s;for(s in t)if(i[s]!==e[s])return!1;return!0}}a(em,"propsFactory");function tm(t){return hr(e);function e(n){return n&&n.type===t}}a(tm,"typeFactory");function hr(t){return e;function e(n,r,i){return!!(rm(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}a(hr,"castFactory$1");function nm(){return!0}a(nm,"ok$1");function rm(t){return t!==null&&typeof t=="object"&&"type"in t}a(rm,"looksLikeANode");function VN(t){return t}a(VN,"color");const Ra=[],Ce=!0,He=!1,Ti="skip";function Fa(t,e,n,r){let i;typeof e=="function"&&typeof n!="function"?(r=n,n=e):i=e;const s=st(i),o=r?-1:1;l(t,void 0,[])();function l(u,c,h){const f=u&&typeof u=="object"?u:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=Ra,m,g,y;if((!e||s(u,c,h[h.length-1]||void 0))&&(d=im(n(u,h)),d[0]===He))return d;if("children"in u&&u.children){const b=u;if(b.children&&d[0]!==Ti)for(g=(r?b.children.length:-1)+o,y=h.concat(b);g>-1&&g<b.children.length;){const w=b.children[g];if(m=l(w,g,y)(),m[0]===He)return m;g=typeof m[1]=="number"?m[1]:g+o}}return d}}a(l,"factory")}a(Fa,"visitParents");function im(t){return Array.isArray(t)?t:typeof t=="number"?[Ce,t]:t==null?Ra:[t]}a(im,"toResult");function ee(t,e,n,r){let i,s,o;typeof e=="function"&&typeof n!="function"?(s=void 0,o=e,i=n):(s=e,o=n,i=r),Fa(t,s,l,i);function l(u,c){const h=c[c.length-1],f=h?h.children.indexOf(u):void 0;return o(u,f,h)}a(l,"overload")}a(ee,"visit$1");const Ii="language-";function sm(t,e){const n=t.getLoadedLanguages(),{addLanguageClass:r=!1,parseMetaString:i,cache:s,defaultLanguage:o,fallbackLanguage:l,onError:u,...c}=e;return function(h){ee(h,"element",(f,p,d)=>{if(!d||p==null||f.tagName!=="pre")return;const m=f.children[0];if(!m||m.type!=="element"||m.tagName!=="code"||!m.properties)return;const g=m.properties.className,y=Array.isArray(g)?g.find(A=>typeof A=="string"&&A.startsWith(Ii)):void 0;let b=typeof y=="string"?y.slice(Ii.length):o;if(!b)return;l&&!n.includes(b)&&(b=l);const w=Qd(m),k=s?.get(w);if(k){d.children.splice(p,1,...k);return}const _=m.data?.meta??m.properties.metastring?.toString()??"",C=i?.(_,f,h)||{},S={...c,lang:b,meta:{...c.meta,...C,__raw:_}};r&&(S.transformers||(S.transformers=[]),S.transformers.push({name:"rehype-shiki:code-language-class",code(A){return this.addClassToHast(A,`${Ii}${b}`),A}}));try{const A=t.codeToHast(w,S);s?.set(w,A.children),d.children.splice(p,1,...A.children)}catch(A){if(u)u(A);else throw A}})}}a(sm,"rehypeShikiFromHighlighter");const om=a(function(t={}){const e=("themes"in t?Object.values(t.themes):[t.theme]).filter(Boolean),n=t.langs||Object.keys(Oo);let r;return async i=>(r||(r=Jd({themes:e,langs:n}).then(o=>sm.call(this,o,t))),(await r)(i))},"rehypeShiki"),ot={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};ot.defaultMerge;function am(t,e){return e}a(am,"defaultMetaDataUpdater");function lm(t,e){return t.filter(n=>n!==void 0)}a(lm,"defaultFilterValues");var Ma;(function(t){t[t.NOT=0]="NOT",t[t.RECORD=1]="RECORD",t[t.ARRAY=2]="ARRAY",t[t.SET=3]="SET",t[t.MAP=4]="MAP",t[t.OTHER=5]="OTHER"})(Ma||(Ma={}));function $a(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:fm(t)?1:t instanceof Set?3:t instanceof Map?4:5}a($a,"getObjectType");function um(t){const e=new Set;for(const n of t)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(r);return e}a(um,"getKeys");function cm(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}a(cm,"objectHasProperty");function Ba(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}a(Ba,"getIterableOfIterables");const qa=new Set(["[object Object]","[object Module]"]);function fm(t){if(!qa.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!qa.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}a(fm,"isRecord");function hm(t,e,n){const r={};for(const i of um(t)){const s=[];for(const u of t)cm(u,i)&&s.push(u[i]);if(s.length===0)continue;const o=e.metaDataUpdater(n,{key:i,parents:t}),l=za(s,e,o);l!==ot.skip&&(i==="__proto__"?Object.defineProperty(r,i,{value:l,configurable:!0,enumerable:!0,writable:!0}):r[i]=l)}return r}a(hm,"mergeRecords$1");function pm(t){return t.flat()}a(pm,"mergeArrays$1");function dm(t){return new Set(Ba(t))}a(dm,"mergeSets$1");function mm(t){return new Map(Ba(t))}a(mm,"mergeMaps$1");function gm(t){return t.at(-1)}a(gm,"mergeOthers$1");const pr={mergeRecords:hm,mergeArrays:pm,mergeSets:dm,mergeMaps:mm,mergeOthers:gm};function Ne(...t){return ym({})(...t)}a(Ne,"deepmerge");function ym(t,e){const n=bm(t,r);function r(...i){return za(i,n,e)}return a(r,"customizedDeepmerge"),r}a(ym,"deepmergeCustom");function bm(t,e){return{defaultMergeFunctions:pr,mergeFunctions:{...pr,...Object.fromEntries(Object.entries(t).filter(([n,r])=>Object.hasOwn(pr,n)).map(([n,r])=>r===!1?[n,pr.mergeOthers]:[n,r]))},metaDataUpdater:t.metaDataUpdater??am,deepmerge:e,useImplicitDefaultMerging:t.enableImplicitDefaultMerging??!1,filterValues:t.filterValues===!1?void 0:t.filterValues??lm,actions:ot}}a(bm,"getUtils");function za(t,e,n){const r=e.filterValues?.(t,n)??t;if(r.length===0)return;if(r.length===1)return Li(r,e,n);const i=$a(r[0]);if(i!==0&&i!==5){for(let s=1;s<r.length;s++)if($a(r[s])!==i)return Li(r,e,n)}switch(i){case 1:return wm(r,e,n);case 2:return km(r,e,n);case 3:return Sm(r,e,n);case 4:return xm(r,e,n);default:return Li(r,e,n)}}a(za,"mergeUnknowns");function wm(t,e,n){const r=e.mergeFunctions.mergeRecords(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):r}a(wm,"mergeRecords");function km(t,e,n){const r=e.mergeFunctions.mergeArrays(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):r}a(km,"mergeArrays");function Sm(t,e,n){const r=e.mergeFunctions.mergeSets(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):r}a(Sm,"mergeSets");function xm(t,e,n){const r=e.mergeFunctions.mergeMaps(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):r}a(xm,"mergeMaps");function Li(t,e,n){const r=e.mergeFunctions.mergeOthers(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):r}a(Li,"mergeOthers");const Oi=a(function(t,e,n){const r=st(n);if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<t.children.length;)if(r(t.children[e],e,t))return t.children[e]},"findAfter"),yt=a(function(t){if(t==null)return Cm;if(typeof t=="string")return _m(t);if(typeof t=="object")return vm(t);if(typeof t=="function")return Pi(t);throw new Error("Expected function, string, or array as `test`")},"convertElement");function vm(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=yt(t[n]);return Pi(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}a(vm,"anyFactory");function _m(t){return Pi(e);function e(n){return n.tagName===t}}a(_m,"tagNameFactory");function Pi(t){return e;function e(n,r,i){return!!(Nm(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}a(Pi,"castFactory");function Cm(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="element"&&"tagName"in t&&typeof t.tagName=="string")}a(Cm,"element$1");function Nm(t){return t!==null&&typeof t=="object"&&"type"in t&&"tagName"in t}a(Nm,"looksLikeAnElement");const Ua=/\n/g,ja=/[\t ]+/g,Di=yt("br"),Ga=yt(Dm),Am=yt("p"),Ha=yt("tr"),Em=yt(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Pm,Rm]),Va=yt(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Tm(t,e){const n={},r="children"in t?t.children:[],i=Va(t),s=Ya(t,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];(t.type==="text"||t.type==="comment")&&o.push(...Ka(t,{whitespace:s,breakBefore:!0,breakAfter:!0}));let l=-1;for(;++l<r.length;)o.push(...Wa(r[l],t,{whitespace:s,breakBefore:l?void 0:i,breakAfter:l<r.length-1?Di(r[l+1]):i}));const u=[];let c;for(l=-1;++l<o.length;){const h=o[l];typeof h=="number"?c!==void 0&&h>c&&(c=h):h&&(c!==void 0&&c>-1&&u.push(`
|
|
23
|
-
`.repeat(c)||" "),c=-1,u.push(h))}return u.join("")}a(
|
|
24
|
-
`:Am(t)?(l=2,u=2):Va(t)&&(l=1,u=1);++s<i.length;)o=o.concat(Wa(i[s],t,{whitespace:r,breakBefore:s?void 0:l,breakAfter:s<i.length-1?Di(i[s+1]):u}));return Ga(t)&&Oi(e,t,Ga)&&o.push(" "),l&&o.unshift(l),u&&o.push(u),o}a(Im,"collectElement");function Ka(t,e){const n=String(t.value),r=[],i=[];let s=0;for(;s<=n.length;){Ua.lastIndex=s;const u=Ua.exec(n),c=u&&"index"in u?u.index:n.length;r.push(Om(n.slice(s,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?e.breakBefore:!0,c===n.length?e.breakAfter:!0)),s=c+1}let o=-1,l;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),l=void 0):r[o]?(typeof l=="number"&&i.push(l),i.push(r[o]),l=0):(o===0||o===r.length-1)&&i.push(0);return i}a(Ka,"collectText");function Lm(t){return[String(t.value)]}a(Lm,"collectPreText");function Om(t,e,n){const r=[];let i=0,s;for(;i<t.length;){ja.lastIndex=i;const o=ja.exec(t);s=o?o.index:t.length,!i&&!s&&o&&!e&&r.push(""),i!==s&&r.push(t.slice(i,s)),i=o?s+o[0].length:s}return i!==s&&!n&&r.push(""),r.join(" ")}a(Om,"trimAndCollapseSpacesAndTabs");function Ya(t,e){if(t.type==="element"){const n=t.properties||{};switch(t.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":e.whitespace;case"textarea":return"pre-wrap"}}return e.whitespace}a(Ya,"inferWhitespace");function Pm(t){return!!(t.properties||{}).hidden}a(Pm,"hidden");function Dm(t){return t.tagName==="td"||t.tagName==="th"}a(Dm,"isCell");function Rm(t){return t.tagName==="dialog"&&!(t.properties||{}).open}a(Rm,"closedDialog");const Fm=/^\[if[ \t\f\n\r]+[^\]]+]|<!\[endif]$/;function Mm(t){return t.type==="comment"&&Fm.test(t.value)}a(Mm,"isConditionalComment");const $m={};function Bm(t){const e=t||$m;return function(n){ee(n,"comment",function(r,i,s){if(typeof i=="number"&&s&&(e.removeConditional||!Mm(r)))return s.children.splice(i,1),i})}}a(Bm,"rehypeRemoveComments");const qm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let vn=class{static{a(this,"Schema")}constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}};vn.prototype.property={},vn.prototype.normal={},vn.prototype.space=null;function Ja(t,e){const n={},r={};let i=-1;for(;++i<t.length;)Object.assign(n,t[i].property),Object.assign(r,t[i].normal);return new vn(n,r,e)}a(Ja,"merge");function Ri(t){return t.toLowerCase()}a(Ri,"normalize$1");class Te{static{a(this,"Info")}constructor(e,n){this.property=e,this.attribute=n}}Te.prototype.space=null,Te.prototype.boolean=!1,Te.prototype.booleanish=!1,Te.prototype.overloadedBoolean=!1,Te.prototype.number=!1,Te.prototype.commaSeparated=!1,Te.prototype.spaceSeparated=!1,Te.prototype.commaOrSpaceSeparated=!1,Te.prototype.mustUseProperty=!1,Te.prototype.defined=!1;let zm=0;const $=bt(),ie=bt(),Qa=bt(),L=bt(),X=bt(),zt=bt(),Ae=bt();function bt(){return 2**++zm}a(bt,"increment");var Fi=Object.freeze({__proto__:null,boolean:$,booleanish:ie,commaOrSpaceSeparated:Ae,commaSeparated:zt,number:L,overloadedBoolean:Qa,spaceSeparated:X});const Mi=Object.keys(Fi);class $i extends Te{static{a(this,"DefinedInfo")}constructor(e,n,r,i){let s=-1;if(super(e,n),Xa(this,"space",i),typeof r=="number")for(;++s<Mi.length;){const o=Mi[s];Xa(this,Mi[s],(r&Fi[o])===Fi[o])}}}$i.prototype.defined=!0;function Xa(t,e,n){n&&(t[e]=n)}a(Xa,"mark");const Um={}.hasOwnProperty;function Ut(t){const e={},n={};let r;for(r in t.properties)if(Um.call(t.properties,r)){const i=t.properties[r],s=new $i(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),e[r]=s,n[Ri(r)]=r,n[Ri(s.attribute)]=r}return new vn(e,n,t.space)}a(Ut,"create$1");const Za=Ut({space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),el=Ut({space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function tl(t,e){return e in t?t[e]:e}a(tl,"caseSensitiveTransform");function nl(t,e){return tl(t,e.toLowerCase())}a(nl,"caseInsensitiveTransform");const rl=Ut({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:nl,properties:{xmlns:null,xmlnsXLink:null}}),il=Ut({transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ie,ariaAutoComplete:null,ariaBusy:ie,ariaChecked:ie,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:X,ariaCurrent:null,ariaDescribedBy:X,ariaDetails:null,ariaDisabled:ie,ariaDropEffect:X,ariaErrorMessage:null,ariaExpanded:ie,ariaFlowTo:X,ariaGrabbed:ie,ariaHasPopup:null,ariaHidden:ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:X,ariaLevel:L,ariaLive:null,ariaModal:ie,ariaMultiLine:ie,ariaMultiSelectable:ie,ariaOrientation:null,ariaOwns:X,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:ie,ariaReadOnly:ie,ariaRelevant:null,ariaRequired:ie,ariaRoleDescription:X,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:ie,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null}}),jm=Ut({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:nl,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zt,acceptCharset:X,accessKey:X,action:null,allow:null,allowFullScreen:$,allowPaymentRequest:$,allowUserMedia:$,alt:null,as:null,async:$,autoCapitalize:null,autoComplete:X,autoFocus:$,autoPlay:$,blocking:X,capture:null,charSet:null,checked:$,cite:null,className:X,cols:L,colSpan:null,content:null,contentEditable:ie,controls:$,controlsList:X,coords:L|zt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$,defer:$,dir:null,dirName:null,disabled:$,download:Qa,draggable:ie,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$,formTarget:null,headers:X,height:L,hidden:$,high:L,href:null,hrefLang:null,htmlFor:X,httpEquiv:X,id:null,imageSizes:null,imageSrcSet:null,inert:$,inputMode:null,integrity:null,is:null,isMap:$,itemId:null,itemProp:X,itemRef:X,itemScope:$,itemType:X,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,multiple:$,muted:$,name:null,nonce:null,noModule:$,noValidate:$,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$,optimum:L,pattern:null,ping:X,placeholder:null,playsInline:$,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$,referrerPolicy:null,rel:X,required:$,reversed:$,rows:L,rowSpan:L,sandbox:X,scope:null,scoped:$,seamless:$,selected:$,shadowRootClonable:$,shadowRootDelegatesFocus:$,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:ie,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:$,useMap:null,value:ie,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:X,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$,declare:$,event:null,face:null,frame:null,frameBorder:null,hSpace:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:$,noHref:$,noShade:$,noWrap:$,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:ie,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$,disableRemotePlayback:$,prefix:null,property:null,results:L,security:null,unselectable:null}}),Gm=Ut({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:tl,properties:{about:Ae,accentHeight:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:X,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:$,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zt,g2:zt,glyphName:zt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:Ae,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:L,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:X,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ae,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ae,rev:Ae,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ae,requiredFeatures:Ae,requiredFonts:Ae,requiredFormats:Ae,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:Ae,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ae,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ae,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Hm=/^data[-\w.:]+$/i,sl=/-[a-z]/g,Vm=/[A-Z]/g;function Wm(t,e){const n=Ri(e);let r=e,i=Te;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Hm.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(sl,Ym);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!sl.test(s)){let o=s.replace(Vm,Km);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=$i}return new i(r,e)}a(Wm,"find");function Km(t){return"-"+t.toLowerCase()}a(Km,"kebab");function Ym(t){return t.charAt(1).toUpperCase()}a(Ym,"camelcase");const Jm=Ja([el,Za,rl,il,jm],"html"),ol=Ja([el,Za,rl,il,Gm],"svg"),al={}.hasOwnProperty;function Qm(t,e){const n=e||{};function r(i,...s){let o=r.invalid;const l=r.handlers;if(i&&al.call(i,t)){const u=String(i[t]);o=al.call(l,u)?l[u]:r.unknown}if(o)return o.call(this,i,...s)}return a(r,"one"),r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}a(Qm,"zwitch");const Xm=/["&'<>`]/g,Zm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eg=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tg=/[|\\{}()[\]^$+*?.]/g,ll=new WeakMap;function ng(t,e){if(t=t.replace(e.subset?rg(e.subset):Xm,r),e.subset||e.escapeOnly)return t;return t.replace(Zm,n).replace(eg,r);function n(i,s,o){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function r(i,s,o){return e.format(i.charCodeAt(0),o.charCodeAt(s+1),e)}}a(ng,"core");function rg(t){let e=ll.get(t);return e||(e=ig(t),ll.set(t,e)),e}a(rg,"charactersToExpressionCached");function ig(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(tg,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}a(ig,"charactersToExpression");const sg=/[\dA-Fa-f]/;function og(t,e,n){const r="&#x"+t.toString(16).toUpperCase();return n&&e&&!sg.test(String.fromCharCode(e))?r:r+";"}a(og,"toHexadecimal");const ag=/\d/;function lg(t,e,n){const r="&#"+String(t);return n&&e&&!ag.test(String.fromCharCode(e))?r:r+";"}a(lg,"toDecimal");const ug=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Bi={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"},cg=["cent","copy","divide","gt","lt","not","para","times"],ul={}.hasOwnProperty,qi={};let dr;for(dr in Bi)ul.call(Bi,dr)&&(qi[Bi[dr]]=dr);const fg=/[^\dA-Za-z]/;function hg(t,e,n,r){const i=String.fromCharCode(t);if(ul.call(qi,i)){const s=qi[i],o="&"+s;return n&&ug.includes(s)&&!cg.includes(s)&&(!r||e&&e!==61&&fg.test(String.fromCharCode(e)))?o:o+";"}return""}a(hg,"toNamed");function pg(t,e,n){let r=og(t,e,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=hg(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=lg(t,e,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}a(pg,"formatSmart");function jt(t,e){return ng(t,Object.assign({format:pg},e))}a(jt,"stringifyEntities");const dg=/^>|^->|<!--|-->|--!>|<!-$/g,mg=[">"],gg=["<",">"];function yg(t,e,n,r){return r.settings.bogusComments?"<?"+jt(t.value,Object.assign({},r.settings.characterReferences,{subset:mg}))+">":"<!--"+t.value.replace(dg,i)+"-->";function i(s){return jt(s,Object.assign({},r.settings.characterReferences,{subset:gg}))}}a(yg,"comment");function bg(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}a(bg,"doctype");function mr(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}a(mr,"ccount");function wg(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}a(wg,"stringify$3");function kg(t){return t.join(" ").trim()}a(kg,"stringify$2");const Sg=/[ \t\n\f\r]/g;function zi(t){return typeof t=="object"?t.type==="text"?cl(t.value):!1:cl(t)}a(zi,"whitespace");function cl(t){return t.replace(Sg,"")===""}a(cl,"empty");const ae=hl(1),fl=hl(-1),xg=[];function hl(t){return e;function e(n,r,i){const s=n?n.children:xg;let o=(r||0)+t,l=s[o];if(!i)for(;l&&zi(l);)o+=t,l=s[o];return l}}a(hl,"siblings");const vg={}.hasOwnProperty;function pl(t){return e;function e(n,r,i){return vg.call(t,n.tagName)&&t[n.tagName](n,r,i)}}a(pl,"omission");const Ui=pl({body:Cg,caption:ji,colgroup:ji,dd:Tg,dt:Eg,head:ji,html:_g,li:Ag,optgroup:Ig,option:Lg,p:Ng,rp:dl,rt:dl,tbody:Pg,td:ml,tfoot:Dg,th:ml,thead:Og,tr:Rg});function ji(t,e,n){const r=ae(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&zi(r.value.charAt(0)))}a(ji,"headOrColgroupOrCaption");function _g(t,e,n){const r=ae(n,e);return!r||r.type!=="comment"}a(_g,"html$3");function Cg(t,e,n){const r=ae(n,e);return!r||r.type!=="comment"}a(Cg,"body$1");function Ng(t,e,n){const r=ae(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}a(Ng,"p");function Ag(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&r.tagName==="li"}a(Ag,"li");function Eg(t,e,n){const r=ae(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}a(Eg,"dt");function Tg(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}a(Tg,"dd");function dl(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}a(dl,"rubyElement");function Ig(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}a(Ig,"optgroup");function Lg(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}a(Lg,"option");function Og(t,e,n){const r=ae(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}a(Og,"thead");function Pg(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}a(Pg,"tbody$1");function Dg(t,e,n){return!ae(n,e)}a(Dg,"tfoot");function Rg(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&r.tagName==="tr"}a(Rg,"tr");function ml(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}a(ml,"cells");const Fg=pl({body:Bg,colgroup:qg,head:$g,html:Mg,tbody:zg});function Mg(t){const e=ae(t,-1);return!e||e.type!=="comment"}a(Mg,"html$2");function $g(t){const e=t.children,n=[];let r=-1;for(;++r<e.length;){const i=e[r];if(i.type==="element"&&(i.tagName==="title"||i.tagName==="base")){if(n.includes(i.tagName))return!1;n.push(i.tagName)}}return e.length>0}a($g,"head");function Bg(t){const e=ae(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&zi(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}a(Bg,"body");function qg(t,e,n){const r=fl(n,e),i=ae(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Ui(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}a(qg,"colgroup");function zg(t,e,n){const r=fl(n,e),i=ae(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Ui(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}a(zg,"tbody");const gr={name:[[`
|
|
22
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function md(t,e,n,r){const i=r.schema,s=i.space==="svg"?!1:r.settings.omitOptionalTags;let o=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase());const l=[];let u;i.space==="html"&&t.tagName==="svg"&&(r.schema=ka);const c=gd(r,t.properties),h=r.all(i.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=i,h&&(o=!1),(c||!s||!ud(t,e,n))&&(l.push("<",t.tagName,c?" "+c:""),o&&(i.space==="svg"||r.settings.closeSelfClosing)&&(u=c.charAt(c.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(h),!o&&(!s||!Ni(t,e,n))&&l.push("</"+t.tagName+">"),l.join("")}a(md,"element$2");function gd(t,e){const n=[];let r=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const s=yd(t,i,e[i]);s&&n.push(s)}}for(;++r<n.length;){const s=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}a(gd,"serializeAttributes$1");function yd(t,e,n){const r=Ep(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,s=t.settings.allowDangerousCharacters?0:1;let o=t.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean&&typeof n!="string")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=qt(r.attribute,Object.assign({},t.settings.characterReferences,{subset:cr.name[i][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Vp:Wp)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?u:(t.settings.preferUnquoted&&(l=qt(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:cr.unquoted[i][s]}))),l!==n&&(t.settings.quoteSmart&&va(n,o)>va(n,t.alternative)&&(o=t.alternative),l=o+qt(n,Object.assign({},t.settings.characterReferences,{subset:(o==="'"?cr.single:cr.double)[i][s],attribute:!0}))+o),u+(l&&"="+l))}a(yd,"serializeAttribute$1");const bd=["<","&"];function Ia(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:qt(t.value,Object.assign({},r.settings.characterReferences,{subset:bd}))}a(Ia,"text$6");function wd(t,e,n,r){return r.settings.allowDangerousHtml?t.value:Ia(t,e,n,r)}a(wd,"raw$1");function kd(t,e,n,r){return r.all(t)}a(kd,"root$3");const Sd=Op("type",{invalid:xd,unknown:vd,handlers:{comment:Gp,doctype:Hp,element:md,raw:wd,root:kd,text:Ia}});function xd(t){throw new Error("Expected node, not `"+t+"`")}a(xd,"invalid$1");function vd(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}a(vd,"unknown$1");const _d={},Cd={},Nd=[];function Ad(t,e){const n=_d,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Ed,all:Td,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Sp,characterReferences:n.characterReferences||Cd,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?ka:Lp,quote:r,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}a(Ad,"toHtml$1");function Ed(t,e,n){return Sd(t,e,n,this)}a(Ed,"one$3");function Td(t){const e=[],n=t&&t.children||Nd;let r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}a(Td,"all$3");function Id(t,e,n){const r={meta:{},options:n,codeToHast:(s,o)=>lr(t,s,o),codeToTokens:(s,o)=>or(t,s,o)};let i=Ad(lr(t,e,n,r));for(const s of ar(n))i=s.postprocess?.call(r,i,n)||i;return i}a(Id,"codeToHtml");async function Ld(t){let e,n;const r={};function i(g){n=g,r.HEAPU8=new Uint8Array(g),r.HEAPU32=new Uint32Array(g)}a(i,"updateGlobalBufferAndViews");function s(){return typeof performance<"u"?performance.now():Date.now()}a(s,"_emscripten_get_now");function o(g,y,b){r.HEAPU8.copyWithin(g,y,y+b)}a(o,"_emscripten_memcpy_big");function l(){return 2147483648}a(l,"getHeapMax");function u(g){try{return e.grow(g-n.byteLength+65535>>>16),i(e.buffer),1}catch{}}a(u,"emscripten_realloc_buffer");function c(g){const y=r.HEAPU8.length;g=g>>>0;const b=l();if(g>b)return!1;const w=a((k,_)=>k+(_-k%_)%_,"alignUp");for(let k=1;k<=4;k*=2){let _=y*(1+.2/k);_=Math.min(_,g+100663296);const C=Math.min(b,w(Math.max(g,_),65536));if(u(C))return!0}return!1}a(c,"_emscripten_resize_heap");const h=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(g,y,b=1024){const w=y+b;let k=y;for(;g[k]&&!(k>=w);)++k;if(k-y>16&&g.buffer&&h)return h.decode(g.subarray(y,k));let _="";for(;y<k;){let C=g[y++];if(!(C&128)){_+=String.fromCharCode(C);continue}const S=g[y++]&63;if((C&224)===192){_+=String.fromCharCode((C&31)<<6|S);continue}const A=g[y++]&63;if((C&240)===224?C=(C&15)<<12|S<<6|A:C=(C&7)<<18|S<<12|A<<6|g[y++]&63,C<65536)_+=String.fromCharCode(C);else{const E=C-65536;_+=String.fromCharCode(55296|E>>10,56320|E&1023)}}return _}a(f,"UTF8ArrayToString");function p(g,y){return g?f(r.HEAPU8,g,y):""}a(p,"UTF8ToString");const d={emscripten_get_now:s,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function m(){const y=await t({env:d,wasi_snapshot_preview1:d});e=y.memory,i(e.buffer),Object.assign(r,y),r.UTF8ToString=p}return a(m,"createWasm"),await m(),r}a(Ld,"main");let ue=null,Od=!1;function Pd(t){throw new le(t.UTF8ToString(t.getLastOnigError()))}a(Pd,"throwLastOnigError");class ei{static{a(this,"UtfString")}static _utf8ByteLength(e){let n=0;for(let r=0,i=e.length;r<i;r++){const s=e.charCodeAt(r);let o=s,l=!1;if(s>=55296&&s<=56319&&r+1<i){const u=e.charCodeAt(r+1);u>=56320&&u<=57343&&(o=(s-55296<<10)+65536|u-56320,l=!0)}o<=127?n+=1:o<=2047?n+=2:o<=65535?n+=3:n+=4,l&&r++}return n}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(e){const n=e.length,r=ei._utf8ByteLength(e),i=r!==n,s=i?new Uint32Array(n+1):null;i&&(s[n]=r);const o=i?new Uint32Array(r+1):null;i&&(o[r]=n);const l=new Uint8Array(r);let u=0;for(let c=0;c<n;c++){const h=e.charCodeAt(c);let f=h,p=!1;if(h>=55296&&h<=56319&&c+1<n){const d=e.charCodeAt(c+1);d>=56320&&d<=57343&&(f=(h-55296<<10)+65536|d-56320,p=!0)}i&&(s[c]=u,p&&(s[c+1]=u),f<=127?o[u+0]=c:f<=2047?(o[u+0]=c,o[u+1]=c):f<=65535?(o[u+0]=c,o[u+1]=c,o[u+2]=c):(o[u+0]=c,o[u+1]=c,o[u+2]=c,o[u+3]=c)),f<=127?l[u++]=f:f<=2047?(l[u++]=192|(f&1984)>>>6,l[u++]=128|(f&63)>>>0):f<=65535?(l[u++]=224|(f&61440)>>>12,l[u++]=128|(f&4032)>>>6,l[u++]=128|(f&63)>>>0):(l[u++]=240|(f&1835008)>>>18,l[u++]=128|(f&258048)>>>12,l[u++]=128|(f&4032)>>>6,l[u++]=128|(f&63)>>>0),p&&c++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=o}createString(e){const n=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,n),n}}class Fe{static{a(this,"OnigString")}static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++Fe.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(e){if(!ue)throw new le("Must invoke loadWasm first.");this._onigBinding=ue,this.content=e;const n=new ei(e);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Fe._sharedPtrInUse?(Fe._sharedPtr||(Fe._sharedPtr=ue.omalloc(1e4)),Fe._sharedPtrInUse=!0,ue.HEAPU8.set(n.utf8Value,Fe._sharedPtr),this.ptr=Fe._sharedPtr):this.ptr=n.createString(ue)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===Fe._sharedPtr?Fe._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class Dd{static{a(this,"OnigScanner")}_onigBinding;_ptr;constructor(e){if(!ue)throw new le("Must invoke loadWasm first.");const n=[],r=[];for(let l=0,u=e.length;l<u;l++){const c=new ei(e[l]);n[l]=c.createString(ue),r[l]=c.utf8Length}const i=ue.omalloc(4*e.length);ue.HEAPU32.set(n,i/4);const s=ue.omalloc(4*e.length);ue.HEAPU32.set(r,s/4);const o=ue.createOnigScanner(i,s,e.length);for(let l=0,u=e.length;l<u;l++)ue.ofree(n[l]);ue.ofree(s),ue.ofree(i),o===0&&Pd(ue),this._onigBinding=ue,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,n,r){let i=Od,s=0;if(typeof r=="number"?(r&8&&(i=!0),s=r):typeof r=="boolean"&&(i=r),typeof e=="string"){e=new Fe(e);const o=this._findNextMatchSync(e,n,i,s);return e.dispose(),o}return this._findNextMatchSync(e,n,i,s)}_findNextMatchSync(e,n,r,i){const s=this._onigBinding;let o;if(r?o=s.findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),i):o=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),i),o===0)return null;const l=s.HEAPU32;let u=o/4;const c=l[u++],h=l[u++],f=[];for(let p=0;p<h;p++){const d=e.convertUtf8OffsetToUtf16(l[u++]),m=e.convertUtf8OffsetToUtf16(l[u++]);f[p]={start:d,end:m,length:m-d}}return{index:c,captureIndices:f}}}function Rd(t){return typeof t.instantiator=="function"}a(Rd,"isInstantiatorOptionsObject");function Fd(t){return typeof t.default=="function"}a(Fd,"isInstantiatorModule");function Md(t){return typeof t.data<"u"}a(Md,"isDataOptionsObject");function $d(t){return typeof Response<"u"&&t instanceof Response}a($d,"isResponse");function Bd(t){return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&Buffer.isBuffer?.(t)||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}a(Bd,"isArrayBuffer");let fr;function qd(t){if(fr)return fr;async function e(){ue=await Ld(async n=>{let r=t;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),Rd(r)?r=await r.instantiator(n):Fd(r)?r=await r.default(n):(Md(r)&&(r=r.data),$d(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await zd(r)(n):r=await Ud(r)(n):Bd(r)?r=await Ei(r)(n):r instanceof WebAssembly.Module?r=await Ei(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Ei(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return a(e,"_load"),fr=e(),fr}a(qd,"loadWasm");function Ei(t){return e=>WebAssembly.instantiate(t,e)}a(Ei,"_makeArrayBufferLoader");function zd(t){return e=>WebAssembly.instantiateStreaming(t,e)}a(zd,"_makeResponseStreamingLoader");function Ud(t){return async e=>{const n=await t.arrayBuffer();return WebAssembly.instantiate(n,e)}}a(Ud,"_makeResponseNonStreamingLoader");function jd(t){return new Fe(t)}a(jd,"createOnigString");function Gd(t){return new Dd(t)}a(Gd,"createOnigScanner");const La={light:"#333333",dark:"#bbbbbb"},Oa={light:"#fffffe",dark:"#1e1e1e"},Pa="__shiki_resolved";function Da(t){if(t?.[Pa])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:r}=e;if(!n||!r){const l=e.settings?e.settings.find(u=>!u.name&&!u.scope):void 0;l?.settings?.foreground&&(r=l.settings.foreground),l?.settings?.background&&(n=l.settings.background),!r&&e?.colors?.["editor.foreground"]&&(r=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),r||(r=e.type==="light"?La.light:La.dark),n||(n=e.type==="light"?Oa.light:Oa.dark),e.fg=r,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0;const s=new Map;function o(l){if(s.has(l))return s.get(l);i+=1;const u=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${u}`]?o(l):(s.set(l,u),u)}a(o,"getReplacementColor"),e.settings=e.settings.map(l=>{const u=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),c=l.settings?.background&&!l.settings.background.startsWith("#");if(!u&&!c)return l;const h={...l,settings:{...l.settings}};if(u){const f=o(l.settings.foreground);e.colorReplacements[f]=l.settings.foreground,h.settings.foreground=f}if(c){const f=o(l.settings.background);e.colorReplacements[f]=l.settings.background,h.settings.background=f}return h});for(const l of Object.keys(e.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!e.colors[l]?.startsWith("#")){const u=o(e.colors[l]);e.colorReplacements[u]=e.colors[l],e.colors[l]=u}return Object.defineProperty(e,Pa,{enumerable:!1,writable:!1,value:!0}),e}a(Da,"normalizeTheme");class Hd extends Xh{static{a(this,"Registry")}_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,n,r,i={}){super(e),this._resolver=e,this._themes=n,this._langs=r,this._alias=i,n.forEach(s=>this.loadTheme(s)),r.forEach(s=>this.loadLanguage(s))}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const n=Da(e);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let n=this._textmateThemeCache.get(e);n||(n=nr.createFromRawTheme(e),this._textmateThemeCache.set(e,n)),this._syncRegistry.setTheme(n)}getGrammar(e){if(this._alias[e]){const n=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],n.has(e))throw new le(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return this._resolvedGrammars.get(e)}async loadLanguage(e){if(this.getGrammar(e.name))return;const n=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=await this.loadGrammarWithConfiguration(e.scopeName,1,r);if(this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(s=>{this._alias[s]=e.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),await this.loadLanguage(this._langMap.get(s.name))}async init(){this._themes.map(e=>this.loadTheme(e)),await this.loadLanguages(this._langs)}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}async loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const n=Array.from(this._langGraph.entries()),r=n.filter(([i,s])=>!s);if(r.length){const i=n.filter(([s,o])=>o&&o.embeddedLangs?.some(l=>r.map(([u])=>u).includes(l))).filter(s=>!r.includes(s));throw new le(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${i.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[i,s]of n)this._resolver.addLanguage(s);for(const[i,s]of n)await this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(const n of e.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class Vd{static{a(this,"Resolver")}_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLibPromise;constructor(e,n){this._onigLibPromise=e,n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLibPromise}getLangRegistration(e){return this._langs.get(e)}async loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(n=>{this._langs.set(n,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(e.scopeName)})}getInjections(e){const n=e.split(".");let r=[];for(let i=1;i<=n.length;i++){const s=n.slice(0,i).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let Wd,xn=0;async function Kd(t={}){xn+=1,t.warnings!==!1&&xn>=10&&xn%10===0&&console.warn(`[Shiki] ${xn} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;async function n(k){return Promise.resolve(typeof k=="function"?k():k).then(_=>_.default||_)}a(n,"normalizeGetter");async function r(k){return Array.from(new Set((await Promise.all(k.filter(_=>!ta(_)).map(async _=>await n(_).then(C=>Array.isArray(C)?C:[C])))).flat()))}a(r,"resolveLangs");const i=t.loadWasm||Wd,[s,o]=await Promise.all([Promise.all((t.themes||[]).map(n)).then(k=>k.map(Da)),r(t.langs||[]),i?qd(i):void 0]),l=new Vd(Promise.resolve({createOnigScanner(k){return Gd(k)},createOnigString(k){return jd(k)}}),o),u=new Hd(l,s,o,t.langAlias);await u.init();let c;function h(k){b();const _=u.getGrammar(typeof k=="string"?k:k.name);if(!_)throw new le(`Language \`${k}\` not found, you may need to load it first`);return _}a(h,"getLanguage");function f(k){if(k==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const _=u.getTheme(k);if(!_)throw new le(`Theme \`${k}\` not found, you may need to load it first`);return _}a(f,"getTheme");function p(k){b();const _=f(k);c!==k&&(u.setTheme(_),c=k);const C=u.getColorMap();return{theme:_,colorMap:C}}a(p,"setTheme");function d(){return b(),u.getLoadedThemes()}a(d,"getLoadedThemes");function m(){return b(),u.getLoadedLanguages()}a(m,"getLoadedLanguages");async function g(...k){b(),await u.loadLanguages(await r(k))}a(g,"loadLanguage");async function y(...k){b(),await Promise.all(k.map(async _=>ra(_)?null:u.loadTheme(await n(_))))}a(y,"loadTheme");function b(){if(e)throw new le("Shiki instance has been disposed")}a(b,"ensureNotDisposed");function w(){e||(e=!0,u.dispose(),xn-=1)}return a(w,"dispose"),{setTheme:p,getTheme:f,getLanguage:h,getLoadedThemes:d,getLoadedLanguages:m,loadLanguage:g,loadTheme:y,dispose:w,[Symbol.dispose]:w}}a(Kd,"createShikiInternal");async function Yd(t={}){const e=await Kd(t);return{codeToTokensBase:(n,r)=>bi(e,n,r),codeToTokensWithThemes:(n,r)=>ua(e,n,r),codeToTokens:(n,r)=>or(e,n,r),codeToHast:(n,r)=>lr(e,n,r),codeToHtml:(n,r)=>Id(e,n,r),...e,getInternalContext:()=>e}}a(Yd,"createHighlighterCore");function Jd(t,e,n){async function r(i){function s(h){if(typeof h=="string"){if(ta(h))return[];const f=t[h];if(!f)throw new le(`Language \`${h}\` is not included in this bundle. You may want to load it from external source.`);return f}return h}a(s,"resolveLang");function o(h){if(ra(h))return"none";if(typeof h=="string"){const f=e[h];if(!f)throw new le(`Theme \`${h}\` is not included in this bundle. You may want to load it from external source.`);return f}return h}a(o,"resolveTheme");const l=(i.themes??[]).map(h=>o(h)),u=(i.langs??[]).map(h=>s(h)),c=await Yd({...i,themes:l,langs:u,loadWasm:n});return{...c,loadLanguage(...h){return c.loadLanguage(...h.map(s))},loadTheme(...h){return c.loadTheme(...h.map(o))}}}return a(r,"createHighlighter"),r}a(Jd,"createdBundledHighlighter");const Qd=Jd(Po,mh,ph);function Xd(t){return"children"in t?Ra(t):"value"in t?t.value:""}a(Xd,"toString$2");function Zd(t){return t.type==="text"?t.value:"children"in t?Ra(t):""}a(Zd,"one$2");function Ra(t){let e=-1;const n=[];for(;++e<t.children.length;)n[e]=Zd(t.children[e]);return n.join("")}a(Ra,"all$2");const st=a(function(t){if(t==null)return rm;if(typeof t=="function")return hr(t);if(typeof t=="object")return Array.isArray(t)?em(t):tm(t);if(typeof t=="string")return nm(t);throw new Error("Expected function, string, or object as test")},"convert");function em(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=st(t[n]);return hr(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}a(em,"anyFactory$1");function tm(t){const e=t;return hr(n);function n(r){const i=r;let s;for(s in t)if(i[s]!==e[s])return!1;return!0}}a(tm,"propsFactory");function nm(t){return hr(e);function e(n){return n&&n.type===t}}a(nm,"typeFactory");function hr(t){return e;function e(n,r,i){return!!(im(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}a(hr,"castFactory$1");function rm(){return!0}a(rm,"ok$1");function im(t){return t!==null&&typeof t=="object"&&"type"in t}a(im,"looksLikeANode");function WN(t){return t}a(WN,"color");const Fa=[],Ce=!0,He=!1,Ti="skip";function Ma(t,e,n,r){let i;typeof e=="function"&&typeof n!="function"?(r=n,n=e):i=e;const s=st(i),o=r?-1:1;l(t,void 0,[])();function l(u,c,h){const f=u&&typeof u=="object"?u:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=Fa,m,g,y;if((!e||s(u,c,h[h.length-1]||void 0))&&(d=sm(n(u,h)),d[0]===He))return d;if("children"in u&&u.children){const b=u;if(b.children&&d[0]!==Ti)for(g=(r?b.children.length:-1)+o,y=h.concat(b);g>-1&&g<b.children.length;){const w=b.children[g];if(m=l(w,g,y)(),m[0]===He)return m;g=typeof m[1]=="number"?m[1]:g+o}}return d}}a(l,"factory")}a(Ma,"visitParents");function sm(t){return Array.isArray(t)?t:typeof t=="number"?[Ce,t]:t==null?Fa:[t]}a(sm,"toResult");function ee(t,e,n,r){let i,s,o;typeof e=="function"&&typeof n!="function"?(s=void 0,o=e,i=n):(s=e,o=n,i=r),Ma(t,s,l,i);function l(u,c){const h=c[c.length-1],f=h?h.children.indexOf(u):void 0;return o(u,f,h)}a(l,"overload")}a(ee,"visit$1");const Ii="language-";function om(t,e){const n=t.getLoadedLanguages(),{addLanguageClass:r=!1,parseMetaString:i,cache:s,defaultLanguage:o,fallbackLanguage:l,onError:u,...c}=e;return function(h){ee(h,"element",(f,p,d)=>{if(!d||p==null||f.tagName!=="pre")return;const m=f.children[0];if(!m||m.type!=="element"||m.tagName!=="code"||!m.properties)return;const g=m.properties.className,y=Array.isArray(g)?g.find(A=>typeof A=="string"&&A.startsWith(Ii)):void 0;let b=typeof y=="string"?y.slice(Ii.length):o;if(!b)return;l&&!n.includes(b)&&(b=l);const w=Xd(m),k=s?.get(w);if(k){d.children.splice(p,1,...k);return}const _=m.data?.meta??m.properties.metastring?.toString()??"",C=i?.(_,f,h)||{},S={...c,lang:b,meta:{...c.meta,...C,__raw:_}};r&&(S.transformers||(S.transformers=[]),S.transformers.push({name:"rehype-shiki:code-language-class",code(A){return this.addClassToHast(A,`${Ii}${b}`),A}}));try{const A=t.codeToHast(w,S);s?.set(w,A.children),d.children.splice(p,1,...A.children)}catch(A){if(u)u(A);else throw A}})}}a(om,"rehypeShikiFromHighlighter");const am=a(function(t={}){const e=("themes"in t?Object.values(t.themes):[t.theme]).filter(Boolean),n=t.langs||Object.keys(Po);let r;return async i=>(r||(r=Qd({themes:e,langs:n}).then(o=>om.call(this,o,t))),(await r)(i))},"rehypeShiki"),ot={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};ot.defaultMerge;function lm(t,e){return e}a(lm,"defaultMetaDataUpdater");function um(t,e){return t.filter(n=>n!==void 0)}a(um,"defaultFilterValues");var $a;(function(t){t[t.NOT=0]="NOT",t[t.RECORD=1]="RECORD",t[t.ARRAY=2]="ARRAY",t[t.SET=3]="SET",t[t.MAP=4]="MAP",t[t.OTHER=5]="OTHER"})($a||($a={}));function Ba(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:hm(t)?1:t instanceof Set?3:t instanceof Map?4:5}a(Ba,"getObjectType");function cm(t){const e=new Set;for(const n of t)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(r);return e}a(cm,"getKeys");function fm(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}a(fm,"objectHasProperty");function qa(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}a(qa,"getIterableOfIterables");const za=new Set(["[object Object]","[object Module]"]);function hm(t){if(!za.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!za.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}a(hm,"isRecord");function pm(t,e,n){const r={};for(const i of cm(t)){const s=[];for(const u of t)fm(u,i)&&s.push(u[i]);if(s.length===0)continue;const o=e.metaDataUpdater(n,{key:i,parents:t}),l=Ua(s,e,o);l!==ot.skip&&(i==="__proto__"?Object.defineProperty(r,i,{value:l,configurable:!0,enumerable:!0,writable:!0}):r[i]=l)}return r}a(pm,"mergeRecords$1");function dm(t){return t.flat()}a(dm,"mergeArrays$1");function mm(t){return new Set(qa(t))}a(mm,"mergeSets$1");function gm(t){return new Map(qa(t))}a(gm,"mergeMaps$1");function ym(t){return t.at(-1)}a(ym,"mergeOthers$1");const pr={mergeRecords:pm,mergeArrays:dm,mergeSets:mm,mergeMaps:gm,mergeOthers:ym};function Ne(...t){return bm({})(...t)}a(Ne,"deepmerge");function bm(t,e){const n=wm(t,r);function r(...i){return Ua(i,n,e)}return a(r,"customizedDeepmerge"),r}a(bm,"deepmergeCustom");function wm(t,e){return{defaultMergeFunctions:pr,mergeFunctions:{...pr,...Object.fromEntries(Object.entries(t).filter(([n,r])=>Object.hasOwn(pr,n)).map(([n,r])=>r===!1?[n,pr.mergeOthers]:[n,r]))},metaDataUpdater:t.metaDataUpdater??lm,deepmerge:e,useImplicitDefaultMerging:t.enableImplicitDefaultMerging??!1,filterValues:t.filterValues===!1?void 0:t.filterValues??um,actions:ot}}a(wm,"getUtils");function Ua(t,e,n){const r=e.filterValues?.(t,n)??t;if(r.length===0)return;if(r.length===1)return Li(r,e,n);const i=Ba(r[0]);if(i!==0&&i!==5){for(let s=1;s<r.length;s++)if(Ba(r[s])!==i)return Li(r,e,n)}switch(i){case 1:return km(r,e,n);case 2:return Sm(r,e,n);case 3:return xm(r,e,n);case 4:return vm(r,e,n);default:return Li(r,e,n)}}a(Ua,"mergeUnknowns");function km(t,e,n){const r=e.mergeFunctions.mergeRecords(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):r}a(km,"mergeRecords");function Sm(t,e,n){const r=e.mergeFunctions.mergeArrays(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):r}a(Sm,"mergeArrays");function xm(t,e,n){const r=e.mergeFunctions.mergeSets(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):r}a(xm,"mergeSets");function vm(t,e,n){const r=e.mergeFunctions.mergeMaps(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):r}a(vm,"mergeMaps");function Li(t,e,n){const r=e.mergeFunctions.mergeOthers(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):r}a(Li,"mergeOthers");const Oi=a(function(t,e,n){const r=st(n);if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<t.children.length;)if(r(t.children[e],e,t))return t.children[e]},"findAfter"),yt=a(function(t){if(t==null)return Nm;if(typeof t=="string")return Cm(t);if(typeof t=="object")return _m(t);if(typeof t=="function")return Pi(t);throw new Error("Expected function, string, or array as `test`")},"convertElement");function _m(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=yt(t[n]);return Pi(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}a(_m,"anyFactory");function Cm(t){return Pi(e);function e(n){return n.tagName===t}}a(Cm,"tagNameFactory");function Pi(t){return e;function e(n,r,i){return!!(Am(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}a(Pi,"castFactory");function Nm(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="element"&&"tagName"in t&&typeof t.tagName=="string")}a(Nm,"element$1");function Am(t){return t!==null&&typeof t=="object"&&"type"in t&&"tagName"in t}a(Am,"looksLikeAnElement");const ja=/\n/g,Ga=/[\t ]+/g,Di=yt("br"),Ha=yt(Rm),Em=yt("p"),Va=yt("tr"),Tm=yt(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Dm,Fm]),Wa=yt(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Im(t,e){const n={},r="children"in t?t.children:[],i=Wa(t),s=Ja(t,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];(t.type==="text"||t.type==="comment")&&o.push(...Ya(t,{whitespace:s,breakBefore:!0,breakAfter:!0}));let l=-1;for(;++l<r.length;)o.push(...Ka(r[l],t,{whitespace:s,breakBefore:l?void 0:i,breakAfter:l<r.length-1?Di(r[l+1]):i}));const u=[];let c;for(l=-1;++l<o.length;){const h=o[l];typeof h=="number"?c!==void 0&&h>c&&(c=h):h&&(c!==void 0&&c>-1&&u.push(`
|
|
23
|
+
`.repeat(c)||" "),c=-1,u.push(h))}return u.join("")}a(Im,"toText");function Ka(t,e,n){return t.type==="element"?Lm(t,e,n):t.type==="text"?n.whitespace==="normal"?Ya(t,n):Om(t):[]}a(Ka,"renderedTextCollection");function Lm(t,e,n){const r=Ja(t,n),i=t.children||[];let s=-1,o=[];if(Tm(t))return o;let l,u;for(Di(t)||Va(t)&&Oi(e,t,Va)?u=`
|
|
24
|
+
`:Em(t)?(l=2,u=2):Wa(t)&&(l=1,u=1);++s<i.length;)o=o.concat(Ka(i[s],t,{whitespace:r,breakBefore:s?void 0:l,breakAfter:s<i.length-1?Di(i[s+1]):u}));return Ha(t)&&Oi(e,t,Ha)&&o.push(" "),l&&o.unshift(l),u&&o.push(u),o}a(Lm,"collectElement");function Ya(t,e){const n=String(t.value),r=[],i=[];let s=0;for(;s<=n.length;){ja.lastIndex=s;const u=ja.exec(n),c=u&&"index"in u?u.index:n.length;r.push(Pm(n.slice(s,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?e.breakBefore:!0,c===n.length?e.breakAfter:!0)),s=c+1}let o=-1,l;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),l=void 0):r[o]?(typeof l=="number"&&i.push(l),i.push(r[o]),l=0):(o===0||o===r.length-1)&&i.push(0);return i}a(Ya,"collectText");function Om(t){return[String(t.value)]}a(Om,"collectPreText");function Pm(t,e,n){const r=[];let i=0,s;for(;i<t.length;){Ga.lastIndex=i;const o=Ga.exec(t);s=o?o.index:t.length,!i&&!s&&o&&!e&&r.push(""),i!==s&&r.push(t.slice(i,s)),i=o?s+o[0].length:s}return i!==s&&!n&&r.push(""),r.join(" ")}a(Pm,"trimAndCollapseSpacesAndTabs");function Ja(t,e){if(t.type==="element"){const n=t.properties||{};switch(t.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":e.whitespace;case"textarea":return"pre-wrap"}}return e.whitespace}a(Ja,"inferWhitespace");function Dm(t){return!!(t.properties||{}).hidden}a(Dm,"hidden");function Rm(t){return t.tagName==="td"||t.tagName==="th"}a(Rm,"isCell");function Fm(t){return t.tagName==="dialog"&&!(t.properties||{}).open}a(Fm,"closedDialog");const Mm=/^\[if[ \t\f\n\r]+[^\]]+]|<!\[endif]$/;function $m(t){return t.type==="comment"&&Mm.test(t.value)}a($m,"isConditionalComment");const Bm={};function qm(t){const e=t||Bm;return function(n){ee(n,"comment",function(r,i,s){if(typeof i=="number"&&s&&(e.removeConditional||!$m(r)))return s.children.splice(i,1),i})}}a(qm,"rehypeRemoveComments");const zm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let vn=class{static{a(this,"Schema")}constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}};vn.prototype.property={},vn.prototype.normal={},vn.prototype.space=null;function Qa(t,e){const n={},r={};let i=-1;for(;++i<t.length;)Object.assign(n,t[i].property),Object.assign(r,t[i].normal);return new vn(n,r,e)}a(Qa,"merge");function Ri(t){return t.toLowerCase()}a(Ri,"normalize$1");class Te{static{a(this,"Info")}constructor(e,n){this.property=e,this.attribute=n}}Te.prototype.space=null,Te.prototype.boolean=!1,Te.prototype.booleanish=!1,Te.prototype.overloadedBoolean=!1,Te.prototype.number=!1,Te.prototype.commaSeparated=!1,Te.prototype.spaceSeparated=!1,Te.prototype.commaOrSpaceSeparated=!1,Te.prototype.mustUseProperty=!1,Te.prototype.defined=!1;let Um=0;const $=bt(),ie=bt(),Xa=bt(),L=bt(),X=bt(),zt=bt(),Ae=bt();function bt(){return 2**++Um}a(bt,"increment");var Fi=Object.freeze({__proto__:null,boolean:$,booleanish:ie,commaOrSpaceSeparated:Ae,commaSeparated:zt,number:L,overloadedBoolean:Xa,spaceSeparated:X});const Mi=Object.keys(Fi);class $i extends Te{static{a(this,"DefinedInfo")}constructor(e,n,r,i){let s=-1;if(super(e,n),Za(this,"space",i),typeof r=="number")for(;++s<Mi.length;){const o=Mi[s];Za(this,Mi[s],(r&Fi[o])===Fi[o])}}}$i.prototype.defined=!0;function Za(t,e,n){n&&(t[e]=n)}a(Za,"mark");const jm={}.hasOwnProperty;function Ut(t){const e={},n={};let r;for(r in t.properties)if(jm.call(t.properties,r)){const i=t.properties[r],s=new $i(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),e[r]=s,n[Ri(r)]=r,n[Ri(s.attribute)]=r}return new vn(e,n,t.space)}a(Ut,"create$1");const el=Ut({space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),tl=Ut({space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function nl(t,e){return e in t?t[e]:e}a(nl,"caseSensitiveTransform");function rl(t,e){return nl(t,e.toLowerCase())}a(rl,"caseInsensitiveTransform");const il=Ut({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:rl,properties:{xmlns:null,xmlnsXLink:null}}),sl=Ut({transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ie,ariaAutoComplete:null,ariaBusy:ie,ariaChecked:ie,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:X,ariaCurrent:null,ariaDescribedBy:X,ariaDetails:null,ariaDisabled:ie,ariaDropEffect:X,ariaErrorMessage:null,ariaExpanded:ie,ariaFlowTo:X,ariaGrabbed:ie,ariaHasPopup:null,ariaHidden:ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:X,ariaLevel:L,ariaLive:null,ariaModal:ie,ariaMultiLine:ie,ariaMultiSelectable:ie,ariaOrientation:null,ariaOwns:X,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:ie,ariaReadOnly:ie,ariaRelevant:null,ariaRequired:ie,ariaRoleDescription:X,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:ie,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null}}),Gm=Ut({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:rl,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zt,acceptCharset:X,accessKey:X,action:null,allow:null,allowFullScreen:$,allowPaymentRequest:$,allowUserMedia:$,alt:null,as:null,async:$,autoCapitalize:null,autoComplete:X,autoFocus:$,autoPlay:$,blocking:X,capture:null,charSet:null,checked:$,cite:null,className:X,cols:L,colSpan:null,content:null,contentEditable:ie,controls:$,controlsList:X,coords:L|zt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$,defer:$,dir:null,dirName:null,disabled:$,download:Xa,draggable:ie,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$,formTarget:null,headers:X,height:L,hidden:$,high:L,href:null,hrefLang:null,htmlFor:X,httpEquiv:X,id:null,imageSizes:null,imageSrcSet:null,inert:$,inputMode:null,integrity:null,is:null,isMap:$,itemId:null,itemProp:X,itemRef:X,itemScope:$,itemType:X,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,multiple:$,muted:$,name:null,nonce:null,noModule:$,noValidate:$,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$,optimum:L,pattern:null,ping:X,placeholder:null,playsInline:$,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$,referrerPolicy:null,rel:X,required:$,reversed:$,rows:L,rowSpan:L,sandbox:X,scope:null,scoped:$,seamless:$,selected:$,shadowRootClonable:$,shadowRootDelegatesFocus:$,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:ie,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:$,useMap:null,value:ie,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:X,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$,declare:$,event:null,face:null,frame:null,frameBorder:null,hSpace:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:$,noHref:$,noShade:$,noWrap:$,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:ie,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$,disableRemotePlayback:$,prefix:null,property:null,results:L,security:null,unselectable:null}}),Hm=Ut({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:nl,properties:{about:Ae,accentHeight:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:X,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:$,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zt,g2:zt,glyphName:zt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:Ae,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:L,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:X,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ae,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ae,rev:Ae,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ae,requiredFeatures:Ae,requiredFonts:Ae,requiredFormats:Ae,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:Ae,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ae,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ae,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Vm=/^data[-\w.:]+$/i,ol=/-[a-z]/g,Wm=/[A-Z]/g;function Km(t,e){const n=Ri(e);let r=e,i=Te;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Vm.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(ol,Jm);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!ol.test(s)){let o=s.replace(Wm,Ym);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=$i}return new i(r,e)}a(Km,"find");function Ym(t){return"-"+t.toLowerCase()}a(Ym,"kebab");function Jm(t){return t.charAt(1).toUpperCase()}a(Jm,"camelcase");const Qm=Qa([tl,el,il,sl,Gm],"html"),al=Qa([tl,el,il,sl,Hm],"svg"),ll={}.hasOwnProperty;function Xm(t,e){const n=e||{};function r(i,...s){let o=r.invalid;const l=r.handlers;if(i&&ll.call(i,t)){const u=String(i[t]);o=ll.call(l,u)?l[u]:r.unknown}if(o)return o.call(this,i,...s)}return a(r,"one"),r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}a(Xm,"zwitch");const Zm=/["&'<>`]/g,eg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tg=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ng=/[|\\{}()[\]^$+*?.]/g,ul=new WeakMap;function rg(t,e){if(t=t.replace(e.subset?ig(e.subset):Zm,r),e.subset||e.escapeOnly)return t;return t.replace(eg,n).replace(tg,r);function n(i,s,o){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function r(i,s,o){return e.format(i.charCodeAt(0),o.charCodeAt(s+1),e)}}a(rg,"core");function ig(t){let e=ul.get(t);return e||(e=sg(t),ul.set(t,e)),e}a(ig,"charactersToExpressionCached");function sg(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(ng,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}a(sg,"charactersToExpression");const og=/[\dA-Fa-f]/;function ag(t,e,n){const r="&#x"+t.toString(16).toUpperCase();return n&&e&&!og.test(String.fromCharCode(e))?r:r+";"}a(ag,"toHexadecimal");const lg=/\d/;function ug(t,e,n){const r="&#"+String(t);return n&&e&&!lg.test(String.fromCharCode(e))?r:r+";"}a(ug,"toDecimal");const cg=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Bi={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"},fg=["cent","copy","divide","gt","lt","not","para","times"],cl={}.hasOwnProperty,qi={};let dr;for(dr in Bi)cl.call(Bi,dr)&&(qi[Bi[dr]]=dr);const hg=/[^\dA-Za-z]/;function pg(t,e,n,r){const i=String.fromCharCode(t);if(cl.call(qi,i)){const s=qi[i],o="&"+s;return n&&cg.includes(s)&&!fg.includes(s)&&(!r||e&&e!==61&&hg.test(String.fromCharCode(e)))?o:o+";"}return""}a(pg,"toNamed");function dg(t,e,n){let r=ag(t,e,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=pg(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=ug(t,e,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}a(dg,"formatSmart");function jt(t,e){return rg(t,Object.assign({format:dg},e))}a(jt,"stringifyEntities");const mg=/^>|^->|<!--|-->|--!>|<!-$/g,gg=[">"],yg=["<",">"];function bg(t,e,n,r){return r.settings.bogusComments?"<?"+jt(t.value,Object.assign({},r.settings.characterReferences,{subset:gg}))+">":"<!--"+t.value.replace(mg,i)+"-->";function i(s){return jt(s,Object.assign({},r.settings.characterReferences,{subset:yg}))}}a(bg,"comment");function wg(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}a(wg,"doctype");function mr(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}a(mr,"ccount");function kg(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}a(kg,"stringify$3");function Sg(t){return t.join(" ").trim()}a(Sg,"stringify$2");const xg=/[ \t\n\f\r]/g;function zi(t){return typeof t=="object"?t.type==="text"?fl(t.value):!1:fl(t)}a(zi,"whitespace");function fl(t){return t.replace(xg,"")===""}a(fl,"empty");const ae=pl(1),hl=pl(-1),vg=[];function pl(t){return e;function e(n,r,i){const s=n?n.children:vg;let o=(r||0)+t,l=s[o];if(!i)for(;l&&zi(l);)o+=t,l=s[o];return l}}a(pl,"siblings");const _g={}.hasOwnProperty;function dl(t){return e;function e(n,r,i){return _g.call(t,n.tagName)&&t[n.tagName](n,r,i)}}a(dl,"omission");const Ui=dl({body:Ng,caption:ji,colgroup:ji,dd:Ig,dt:Tg,head:ji,html:Cg,li:Eg,optgroup:Lg,option:Og,p:Ag,rp:ml,rt:ml,tbody:Dg,td:gl,tfoot:Rg,th:gl,thead:Pg,tr:Fg});function ji(t,e,n){const r=ae(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&zi(r.value.charAt(0)))}a(ji,"headOrColgroupOrCaption");function Cg(t,e,n){const r=ae(n,e);return!r||r.type!=="comment"}a(Cg,"html$3");function Ng(t,e,n){const r=ae(n,e);return!r||r.type!=="comment"}a(Ng,"body$1");function Ag(t,e,n){const r=ae(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}a(Ag,"p");function Eg(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&r.tagName==="li"}a(Eg,"li");function Tg(t,e,n){const r=ae(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}a(Tg,"dt");function Ig(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}a(Ig,"dd");function ml(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}a(ml,"rubyElement");function Lg(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}a(Lg,"optgroup");function Og(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}a(Og,"option");function Pg(t,e,n){const r=ae(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}a(Pg,"thead");function Dg(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}a(Dg,"tbody$1");function Rg(t,e,n){return!ae(n,e)}a(Rg,"tfoot");function Fg(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&r.tagName==="tr"}a(Fg,"tr");function gl(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}a(gl,"cells");const Mg=dl({body:qg,colgroup:zg,head:Bg,html:$g,tbody:Ug});function $g(t){const e=ae(t,-1);return!e||e.type!=="comment"}a($g,"html$2");function Bg(t){const e=t.children,n=[];let r=-1;for(;++r<e.length;){const i=e[r];if(i.type==="element"&&(i.tagName==="title"||i.tagName==="base")){if(n.includes(i.tagName))return!1;n.push(i.tagName)}}return e.length>0}a(Bg,"head");function qg(t){const e=ae(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&zi(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}a(qg,"body");function zg(t,e,n){const r=hl(n,e),i=ae(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Ui(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}a(zg,"colgroup");function Ug(t,e,n){const r=hl(n,e),i=ae(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Ui(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}a(Ug,"tbody");const gr={name:[[`
|
|
25
25
|
\f\r &/=>`.split(""),`
|
|
26
26
|
\f\r "&'/=>\``.split("")],[`\0
|
|
27
27
|
\f\r "&'/<=>`.split(""),`\0
|
|
@@ -29,18 +29,18 @@ var Cf=Object.defineProperty;var a=(t,e)=>Cf(t,"name",{value:e,configurable:!0})
|
|
|
29
29
|
\f\r &>`.split(""),`\0
|
|
30
30
|
\f\r "&'<=>\``.split("")],[`\0
|
|
31
31
|
\f\r "&'<=>\``.split(""),`\0
|
|
32
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function
|
|
33
|
-
`}]}a(
|
|
34
|
-
`:"",r={};e.lang&&(r.className=["language-"+e.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(i.data={meta:e.meta}),t.patch(e,i),i=t.applyData(e,i),i={type:"element",tagName:"pre",properties:{},children:[i]},t.patch(e,i),i}a(
|
|
32
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function jg(t,e,n,r){const i=r.schema,s=i.space==="svg"?!1:r.settings.omitOptionalTags;let o=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase());const l=[];let u;i.space==="html"&&t.tagName==="svg"&&(r.schema=al);const c=Gg(r,t.properties),h=r.all(i.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=i,h&&(o=!1),(c||!s||!Mg(t,e,n))&&(l.push("<",t.tagName,c?" "+c:""),o&&(i.space==="svg"||r.settings.closeSelfClosing)&&(u=c.charAt(c.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(h),!o&&(!s||!Ui(t,e,n))&&l.push("</"+t.tagName+">"),l.join("")}a(jg,"element");function Gg(t,e){const n=[];let r=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const s=Hg(t,i,e[i]);s&&n.push(s)}}for(;++r<n.length;){const s=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}a(Gg,"serializeAttributes");function Hg(t,e,n){const r=Km(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,s=t.settings.allowDangerousCharacters?0:1;let o=t.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean&&typeof n!="string")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=jt(r.attribute,Object.assign({},t.settings.characterReferences,{subset:gr.name[i][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?kg:Sg)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?u:(t.settings.preferUnquoted&&(l=jt(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:gr.unquoted[i][s]}))),l!==n&&(t.settings.quoteSmart&&mr(n,o)>mr(n,t.alternative)&&(o=t.alternative),l=o+jt(n,Object.assign({},t.settings.characterReferences,{subset:(o==="'"?gr.single:gr.double)[i][s],attribute:!0}))+o),u+(l&&"="+l))}a(Hg,"serializeAttribute");const Vg=["<","&"];function yl(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:jt(t.value,Object.assign({},r.settings.characterReferences,{subset:Vg}))}a(yl,"text$5");function Wg(t,e,n,r){return r.settings.allowDangerousHtml?t.value:yl(t,e,n,r)}a(Wg,"raw");function Kg(t,e,n,r){return r.all(t)}a(Kg,"root$2");const Yg=Xm("type",{invalid:Jg,unknown:Qg,handlers:{comment:bg,doctype:wg,element:jg,raw:Wg,root:Kg,text:yl}});function Jg(t){throw new Error("Expected node, not `"+t+"`")}a(Jg,"invalid");function Qg(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}a(Qg,"unknown");const Xg={},Zg={},ey=[];function ty(t,e){const n=e||Xg,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:ny,all:ry,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||zm,characterReferences:n.characterReferences||Zg,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?al:Qm,quote:r,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}a(ty,"toHtml");function ny(t,e,n){return Yg(t,e,n,this)}a(ny,"one$1");function ry(t){const e=[],n=t&&t.children||ey;let r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}a(ry,"all$1");function iy(t){const e=this,n={...e.data("settings"),...t};e.compiler=r;function r(i){return ty(i,n)}a(r,"compiler")}a(iy,"rehypeStringify");function sy(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}a(sy,"blockquote$1");function oy(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
|
|
33
|
+
`}]}a(oy,"hardBreak$1");function ay(t,e){const n=e.value?e.value+`
|
|
34
|
+
`:"",r={};e.lang&&(r.className=["language-"+e.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(i.data={meta:e.meta}),t.patch(e,i),i=t.applyData(e,i),i={type:"element",tagName:"pre",properties:{},children:[i]},t.patch(e,i),i}a(ay,"code$2");function ly(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}a(ly,"strikethrough");function uy(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}a(uy,"emphasis$2");const ye=at(/[A-Za-z]/),me=at(/[\dA-Za-z]/),cy=at(/[#-'*+\--9=?A-Z^-~]/);function yr(t){return t!==null&&(t<32||t===127)}a(yr,"asciiControl");const Gi=at(/\d/),fy=at(/[\dA-Fa-f]/),hy=at(/[!-/:-@[-`{-~]/);function F(t){return t!==null&&t<-2}a(F,"markdownLineEnding");function J(t){return t!==null&&(t<0||t===32)}a(J,"markdownLineEndingOrSpace");function q(t){return t===-2||t===-1||t===32}a(q,"markdownSpace");const br=at(/\p{P}|\p{S}/u),wt=at(/\s/);function at(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}a(at,"regexCheck");function Gt(t){const e=[];let n=-1,r=0,i=0;for(;++n<t.length;){const s=t.charCodeAt(n);let o="";if(s===37&&me(t.charCodeAt(n+1))&&me(t.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const l=t.charCodeAt(n+1);s<56320&&l>56319&&l<57344?(o=String.fromCharCode(s,l),i=1):o="\uFFFD"}else o=String.fromCharCode(s);o&&(e.push(t.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return e.join("")+t.slice(r)}a(Gt,"normalizeUri");function py(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),i=Gt(r.toLowerCase()),s=t.footnoteOrder.indexOf(r);let o,l=t.footnoteCounts.get(r);l===void 0?(l=0,t.footnoteOrder.push(r),o=t.footnoteOrder.length):o=s+1,l+=1,t.footnoteCounts.set(r,l);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};t.patch(e,u);const c={type:"element",tagName:"sup",properties:{},children:[u]};return t.patch(e,c),t.applyData(e,c)}a(py,"footnoteReference$1");function dy(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}a(dy,"heading$1");function my(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}a(my,"html$1");function bl(t,e){const n=e.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const i=t.all(e),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}a(bl,"revert");function gy(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return bl(t,e);const i={src:Gt(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,s),t.applyData(e,s)}a(gy,"imageReference$1");function yy(t,e){const n={src:Gt(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)}a(yy,"image$1");function by(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)}a(by,"inlineCode$1");function wy(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return bl(t,e);const i={href:Gt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,s),t.applyData(e,s)}a(wy,"linkReference$1");function ky(t,e){const n={href:Gt(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}a(ky,"link$1");function Sy(t,e,n){const r=t.all(e),i=n?xy(n):wl(e),s={},o=[];if(typeof e.checked=="boolean"){const h=r[0];let f;h&&h.type==="element"&&h.tagName==="p"?f=h:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const h=r[l];(i||l!==0||h.type!=="element"||h.tagName!=="p")&&o.push({type:"text",value:`
|
|
35
35
|
`}),h.type==="element"&&h.tagName==="p"&&!i?o.push(...h.children):o.push(h)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`
|
|
36
|
-
`});const c={type:"element",tagName:"li",properties:s,children:o};return t.patch(e,c),t.applyData(e,c)}a(
|
|
36
|
+
`});const c={type:"element",tagName:"li",properties:s,children:o};return t.patch(e,c),t.applyData(e,c)}a(Sy,"listItem$1");function xy(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=wl(n[r])}return e}a(xy,"listLoose");function wl(t){const e=t.spread;return e??t.children.length>1}a(wl,"listItemLoose");function vy(t,e){const n={},r=t.all(e);let i=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,s),t.applyData(e,s)}a(vy,"list$2");function _y(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}a(_y,"paragraph$1");function Cy(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}a(Cy,"root$1");function Ny(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}a(Ny,"strong$1");const kl=xl("end"),Sl=xl("start");function xl(t){return e;function e(n){const r=n&&n.position&&n.position[t]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}a(xl,"point$2");function Ay(t){const e=Sl(t),n=kl(t);if(e&&n)return{start:e,end:n}}a(Ay,"position$1");function Ey(t,e){const n=t.all(e),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},l=Sl(e.children[1]),u=kl(e.children[e.children.length-1]);l&&u&&(o.position={start:l,end:u}),i.push(o)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(i,!0)};return t.patch(e,s),t.applyData(e,s)}a(Ey,"table");function Ty(t,e,n){const r=n?n.children:void 0,s=(r?r.indexOf(e):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:e.children.length;let u=-1;const c=[];for(;++u<l;){const f=e.children[u],p={},d=o?o[u]:void 0;d&&(p.align=d);let m={type:"element",tagName:s,properties:p,children:[]};f&&(m.children=t.all(f),t.patch(f,m),m=t.applyData(f,m)),c.push(m)}const h={type:"element",tagName:"tr",properties:{},children:t.wrap(c,!0)};return t.patch(e,h),t.applyData(e,h)}a(Ty,"tableRow");function Iy(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}a(Iy,"tableCell");const vl=9,_l=32;function Ly(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),i=0;const s=[];for(;r;)s.push(Cl(e.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(e);return s.push(Cl(e.slice(i),i>0,!1)),s.join("")}a(Ly,"trimLines");function Cl(t,e,n){let r=0,i=t.length;if(e){let s=t.codePointAt(r);for(;s===vl||s===_l;)r++,s=t.codePointAt(r)}if(n){let s=t.codePointAt(i-1);for(;s===vl||s===_l;)i--,s=t.codePointAt(i-1)}return i>r?t.slice(r,i):""}a(Cl,"trimLine");function Oy(t,e){const n={type:"text",value:Ly(String(e.value))};return t.patch(e,n),t.applyData(e,n)}a(Oy,"text$4");function Py(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}a(Py,"thematicBreak$2");const Dy={blockquote:sy,break:oy,code:ay,delete:ly,emphasis:uy,footnoteReference:py,heading:dy,html:my,imageReference:gy,image:yy,inlineCode:by,linkReference:wy,link:ky,listItem:Sy,list:vy,paragraph:_y,root:Cy,strong:Ny,table:Ey,tableCell:Iy,tableRow:Ty,text:Oy,thematicBreak:Py,toml:wr,yaml:wr,definition:wr,footnoteDefinition:wr};function wr(){}a(wr,"ignore");function YN(){}a(YN,"ok");const Nl=-1,kr=0,Sr=1,xr=2,Hi=3,Vi=4,Wi=5,Ki=6,Al=7,El=8,Tl=typeof self=="object"?self:globalThis,Ry=a((t,e)=>{const n=a((i,s)=>(t.set(s,i),i),"as"),r=a(i=>{if(t.has(i))return t.get(i);const[s,o]=e[i];switch(s){case kr:case Nl:return n(o,i);case Sr:{const l=n([],i);for(const u of o)l.push(r(u));return l}case xr:{const l=n({},i);for(const[u,c]of o)l[r(u)]=r(c);return l}case Hi:return n(new Date(o),i);case Vi:{const{source:l,flags:u}=o;return n(new RegExp(l,u),i)}case Wi:{const l=n(new Map,i);for(const[u,c]of o)l.set(r(u),r(c));return l}case Ki:{const l=n(new Set,i);for(const u of o)l.add(r(u));return l}case Al:{const{name:l,message:u}=o;return n(new Tl[l](u),i)}case El:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i)}return n(new Tl[s](o),i)},"unpair");return r},"deserializer"),Il=a(t=>Ry(new Map,t)(0),"deserialize"),Ht="",{toString:Fy}={},{keys:My}=Object,_n=a(t=>{const e=typeof t;if(e!=="object"||!t)return[kr,e];const n=Fy.call(t).slice(8,-1);switch(n){case"Array":return[Sr,Ht];case"Object":return[xr,Ht];case"Date":return[Hi,Ht];case"RegExp":return[Vi,Ht];case"Map":return[Wi,Ht];case"Set":return[Ki,Ht]}return n.includes("Array")?[Sr,n]:n.includes("Error")?[Al,n]:[xr,n]},"typeOf"),vr=a(([t,e])=>t===kr&&(e==="function"||e==="symbol"),"shouldSkip"),$y=a((t,e,n,r)=>{const i=a((o,l)=>{const u=r.push(o)-1;return n.set(l,u),u},"as"),s=a(o=>{if(n.has(o))return n.get(o);let[l,u]=_n(o);switch(l){case kr:{let h=o;switch(u){case"bigint":l=El,h=o.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+u);h=null;break;case"undefined":return i([Nl],o)}return i([l,h],o)}case Sr:{if(u)return i([u,[...o]],o);const h=[],f=i([l,h],o);for(const p of o)h.push(s(p));return f}case xr:{if(u)switch(u){case"BigInt":return i([u,o.toString()],o);case"Boolean":case"Number":case"String":return i([u,o.valueOf()],o)}if(e&&"toJSON"in o)return s(o.toJSON());const h=[],f=i([l,h],o);for(const p of My(o))(t||!vr(_n(o[p])))&&h.push([s(p),s(o[p])]);return f}case Hi:return i([l,o.toISOString()],o);case Vi:{const{source:h,flags:f}=o;return i([l,{source:h,flags:f}],o)}case Wi:{const h=[],f=i([l,h],o);for(const[p,d]of o)(t||!(vr(_n(p))||vr(_n(d))))&&h.push([s(p),s(d)]);return f}case Ki:{const h=[],f=i([l,h],o);for(const p of o)(t||!vr(_n(p)))&&h.push(s(p));return f}}const{message:c}=o;return i([l,{name:u,message:c}],o)},"pair");return s},"serializer"),Ll=a((t,{json:e,lossy:n}={})=>{const r=[];return $y(!(e||n),!!e,new Map,r)(t),r},"serialize$1");var _r=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?Il(Ll(t,e)):structuredClone(t):(t,e)=>Il(Ll(t,e));function By(t,e){const n=[{type:"text",value:"\u21A9"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}a(By,"defaultFootnoteBackContent");function qy(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}a(qy,"defaultFootnoteBackLabel");function zy(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||By,r=t.options.footnoteBackLabel||qy,i=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",o=t.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let u=-1;for(;++u<t.footnoteOrder.length;){const c=t.footnoteById.get(t.footnoteOrder[u]);if(!c)continue;const h=t.all(c),f=String(c.identifier).toUpperCase(),p=Gt(f.toLowerCase());let d=0;const m=[],g=t.footnoteCounts.get(f);for(;g!==void 0&&++d<=g;){m.length>0&&m.push({type:"text",value:" "});let w=typeof n=="string"?n:n(u,d);typeof w=="string"&&(w={type:"text",value:w}),m.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,d),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const y=h[h.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const w=y.children[y.children.length-1];w&&w.type==="text"?w.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...m)}else h.push(...m);const b={type:"element",tagName:"li",properties:{id:e+"fn-"+p},children:t.wrap(h,!0)};t.patch(c,b),l.push(b)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{..._r(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
37
37
|
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(l,!0)},{type:"text",value:`
|
|
38
|
-
`}]}}a(
|
|
38
|
+
`}]}}a(zy,"footer");const Yi={}.hasOwnProperty,Uy={};function jy(t,e){const n=e||Uy,r=new Map,i=new Map,s=new Map,o={...Dy,...n.handlers},l={all:c,applyData:Hy,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:o,one:u,options:n,patch:Gy,wrap:Wy};return ee(t,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const f=h.type==="definition"?r:i,p=String(h.identifier).toUpperCase();f.has(p)||f.set(p,h)}}),l;function u(h,f){const p=h.type,d=l.handlers[p];if(Yi.call(l.handlers,p)&&d)return d(l,h,f);if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in h){const{children:g,...y}=h,b=_r(y);return b.children=l.all(h),b}return _r(h)}return(l.options.unknownHandler||Vy)(l,h,f)}a(u,"one");function c(h){const f=[];if("children"in h){const p=h.children;let d=-1;for(;++d<p.length;){const m=l.one(p[d],h);if(m){if(d&&p[d-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Ol(m.value)),!Array.isArray(m)&&m.type==="element")){const g=m.children[0];g&&g.type==="text"&&(g.value=Ol(g.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}a(c,"all")}a(jy,"createState");function Gy(t,e){t.position&&(e.position=Ay(t))}a(Gy,"patch");function Hy(t,e){let n=e;if(t&&t.data){const r=t.data.hName,i=t.data.hChildren,s=t.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,_r(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}a(Hy,"applyData");function Vy(t,e){const n=e.data||{},r="value"in e&&!(Yi.call(n,"hProperties")||Yi.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}a(Vy,"defaultUnknownHandler");function Wy(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:`
|
|
39
39
|
`});++r<t.length;)r&&n.push({type:"text",value:`
|
|
40
40
|
`}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:`
|
|
41
|
-
`}),n}a(
|
|
42
|
-
`},i),s}a(Ol,"toHast");function Wy(t,e){return t&&"run"in t?async function(n,r){const i=Ol(n,{file:r,...e});await t.run(i,r)}:function(n,r){return Ol(n,{file:r,...e||t})}}a(Wy,"remarkRehype");function Pl(t){if(t)throw t}a(Pl,"bail");function Ji(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}a(Ji,"getDefaultExportFromCjs");var Cr=Object.prototype.hasOwnProperty,Dl=Object.prototype.toString,Rl=Object.defineProperty,Fl=Object.getOwnPropertyDescriptor,Ml=a(function(e){return typeof Array.isArray=="function"?Array.isArray(e):Dl.call(e)==="[object Array]"},"isArray"),$l=a(function(e){if(!e||Dl.call(e)!=="[object Object]")return!1;var n=Cr.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Cr.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;var i;for(i in e);return typeof i>"u"||Cr.call(e,i)},"isPlainObject"),Bl=a(function(e,n){Rl&&n.name==="__proto__"?Rl(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},"setProperty"),ql=a(function(e,n){if(n==="__proto__")if(Cr.call(e,n)){if(Fl)return Fl(e,n).value}else return;return e[n]},"getProperty"),Ky=a(function t(){var e,n,r,i,s,o,l=arguments[0],u=1,c=arguments.length,h=!1;for(typeof l=="boolean"&&(h=l,l=arguments[1]||{},u=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});u<c;++u)if(e=arguments[u],e!=null)for(n in e)r=ql(l,n),i=ql(e,n),l!==i&&(h&&i&&($l(i)||(s=Ml(i)))?(s?(s=!1,o=r&&Ml(r)?r:[]):o=r&&$l(r)?r:{},Bl(l,{name:n,newValue:t(h,o,i)})):typeof i<"u"&&Bl(l,{name:n,newValue:i}));return l},"extend"),Qi=Ji(Ky);function Xi(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}a(Xi,"isPlainObject");function Yy(){const t=[],e={run:n,use:r};return e;function n(...i){let s=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...i);function l(u,...c){const h=t[++s];let f=-1;if(u){o(u);return}for(;++f<i.length;)(c[f]===null||c[f]===void 0)&&(c[f]=i[f]);i=c,h?Jy(h,l)(...c):o(null,...c)}a(l,"next")}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}a(Yy,"trough");function Jy(t,e){let n;return r;function r(...o){const l=t.length>o.length;let u;l&&o.push(i);try{u=t.apply(this,o)}catch(c){const h=c;if(l&&n)throw h;return i(h)}l||(u&&u.then&&typeof u.then=="function"?u.then(s,i):u instanceof Error?i(u):s(u))}function i(o,...l){n||(n=!0,e(o,...l))}function s(o){i(null,o)}}a(Jy,"wrap");function Cn(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?zl(t.position):"start"in t||"end"in t?zl(t):"line"in t||"column"in t?Zi(t):""}a(Cn,"stringifyPosition");function Zi(t){return Ul(t&&t.line)+":"+Ul(t&&t.column)}a(Zi,"point$1");function zl(t){return Zi(t&&t.start)+"-"+Zi(t&&t.end)}a(zl,"position");function Ul(t){return t&&typeof t=="number"?t:1}a(Ul,"index$1");class Se extends Error{static{a(this,"VFileMessage")}constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof e=="string"?i=e:!s.cause&&e&&(o=!0,i=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=l?l.line:void 0,this.name=Cn(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}Se.prototype.file="",Se.prototype.name="",Se.prototype.reason="",Se.prototype.message="",Se.prototype.stack="",Se.prototype.column=void 0,Se.prototype.line=void 0,Se.prototype.ancestors=void 0,Se.prototype.cause=void 0,Se.prototype.fatal=void 0,Se.prototype.place=void 0,Se.prototype.ruleId=void 0,Se.prototype.source=void 0;const Ve={basename:Qy,dirname:Xy,extname:Zy,join:eb,sep:"/"};function Qy(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Nn(t);let n=0,r=-1,i=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":t.slice(n,r)}if(e===t)return"";let o=-1,l=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),l>-1&&(t.codePointAt(i)===e.codePointAt(l--)?l<0&&(r=i):(l=-1,r=o));return n===r?r=o:r<0&&(r=t.length),t.slice(n,r)}a(Qy,"basename");function Xy(t){if(Nn(t),t.length===0)return".";let e=-1,n=t.length,r;for(;--n;)if(t.codePointAt(n)===47){if(r){e=n;break}}else r||(r=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}a(Xy,"dirname");function Zy(t){Nn(t);let e=t.length,n=-1,r=0,i=-1,s=0,o;for(;e--;){const l=t.codePointAt(e);if(l===47){if(o){r=e+1;break}continue}n<0&&(o=!0,n=e+1),l===46?i<0?i=e:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":t.slice(i,n)}a(Zy,"extname");function eb(...t){let e=-1,n;for(;++e<t.length;)Nn(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":tb(n)}a(eb,"join");function tb(t){Nn(t);const e=t.codePointAt(0)===47;let n=nb(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}a(tb,"normalize");function nb(t,e){let n="",r=0,i=-1,s=0,o=-1,l,u;for(;++o<=t.length;){if(o<t.length)l=t.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}e&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+t.slice(i+1,o):n=t.slice(i+1,o),r=o-i-1;i=o,s=0}else l===46&&s>-1?s++:s=-1}return n}a(nb,"normalizeString");function Nn(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}a(Nn,"assertPath$1");const rb={cwd:ib};function ib(){return"/"}a(ib,"cwd");function es(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}a(es,"isUrl");function sb(t){if(typeof t=="string")t=new URL(t);else if(!es(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return ob(t)}a(sb,"urlToPath");function ob(t){if(t.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=t.pathname;let n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const r=e.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}a(ob,"getPathFromURLPosix");const ts=["history","path","basename","stem","extname","dirname"];class ab{static{a(this,"VFile")}constructor(e){let n;e?es(e)?n={path:e}:typeof e=="string"||lb(e)?n={value:e}:n=e:n={},this.cwd=rb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ts.length;){const s=ts[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)ts.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Ve.basename(this.path):void 0}set basename(e){rs(e,"basename"),ns(e,"basename"),this.path=Ve.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Ve.dirname(this.path):void 0}set dirname(e){jl(this.basename,"dirname"),this.path=Ve.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Ve.extname(this.path):void 0}set extname(e){if(ns(e,"extname"),jl(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ve.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){es(e)&&(e=sb(e)),rs(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Ve.basename(this.path,this.extname):void 0}set stem(e){rs(e,"stem"),ns(e,"stem"),this.path=Ve.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){const i=this.message(e,n,r);throw i.fatal=!0,i}info(e,n,r){const i=this.message(e,n,r);return i.fatal=void 0,i}message(e,n,r){const i=new Se(e,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function ns(t,e){if(t&&t.includes(Ve.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Ve.sep+"`")}a(ns,"assertPart");function rs(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}a(rs,"assertNonEmpty");function jl(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}a(jl,"assertPath");function lb(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}a(lb,"isUint8Array$1");const ub=a(function(t){const r=this.constructor.prototype,i=r[t],s=a(function(){return i.apply(s,arguments)},"apply");return Object.setPrototypeOf(s,r),s},"CallableInstance"),cb={}.hasOwnProperty;class lo extends ub{static{a(this,"Processor")}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Yy()}copy(){const e=new lo;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];e.use(...r)}return e.data(Qi(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(as("data",this.frozen),this.namespace[e]=n,this):cb.call(this.namespace,e)&&this.namespace[e]||void 0:e?(as("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(e,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=Nr(e),r=this.parser||this.Parser;return ss("parse",r),r(String(n),n)}process(e,n){const r=this;return this.freeze(),ss("process",this.parser||this.Parser),os("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){const l=Nr(e),u=r.parse(l);r.run(u,l,function(h,f,p){if(h||!f||!p)return c(h);const d=f,m=r.stringify(d,p);hb(m)?p.value=m:p.result=m,c(h,p)});function c(h,f){h||!f?o(h):s?s(f):n(void 0,f)}a(c,"realDone")}a(i,"executor")}processSync(e){let n=!1,r;return this.freeze(),ss("processSync",this.parser||this.Parser),os("processSync",this.compiler||this.Compiler),this.process(e,i),Hl("processSync","process",n),r;function i(s,o){n=!0,Pl(s),r=o}a(i,"realDone")}run(e,n,r){Gl(e),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,l){const u=Nr(n);i.run(e,u,c);function c(h,f,p){const d=f||e;h?l(h):o?o(d):r(void 0,d,p)}a(c,"realDone")}a(s,"executor")}runSync(e,n){let r=!1,i;return this.run(e,n,s),Hl("runSync","run",r),i;function s(o,l){Pl(o),i=l,r=!0}a(s,"realDone")}stringify(e,n){this.freeze();const r=Nr(n),i=this.compiler||this.Compiler;return os("stringify",i),Gl(e),i(e,r)}use(e,...n){const r=this.attachers,i=this.namespace;if(as("use",this.frozen),e!=null)if(typeof e=="function")u(e,n);else if(typeof e=="object")Array.isArray(e)?l(e):o(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function s(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...f]=c;u(h,f)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(c.plugins),c.settings&&(i.settings=Qi(!0,i.settings,c.settings))}function l(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const f=c[h];s(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,h){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===c){p=f;break}if(p===-1)r.push([c,...h]);else if(h.length>0){let[d,...m]=h;const g=r[p][1];Xi(g)&&Xi(d)&&(d=Qi(!0,g,d)),r[p]=[c,d,...m]}}}}const is=new lo().freeze();function ss(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}a(ss,"assertParser");function os(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}a(os,"assertCompiler");function as(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}a(as,"assertUnfrozen");function Gl(t){if(!Xi(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}a(Gl,"assertNode");function Hl(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}a(Hl,"assertDone");function Nr(t){return fb(t)?t:new ab(t)}a(Nr,"vfile");function fb(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}a(fb,"looksLikeAVFile");function hb(t){return typeof t=="string"||pb(t)}a(hb,"looksLikeAValue");function pb(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}a(pb,"isUint8Array");const ls=is().use(Wy).use(Bm).use(Nf).use(om,{themes:{dark:"github-dark",light:"github-light"}}).use(ry),db={...ge};async function Vt(t,e){if(t===void 0)return"";const{basePath:n,cssClassNames:r,cwd:i,fetchAdapter:s=dn(),fileAdapter:o=await Ft(),namespace:l,syncMediaAssets:u,useEmptyPlaceholder:c}=Ne(db,e??{}),h=await ls.run(t),f=ls.stringify(h).trim(),p=f.length===0;if(r===void 0||p&&!c)return f;const d=p?Mf:h,m=V("root",[V("element",{properties:{className:r.map(b=>Pf(b))},tagName:"div"},d.children)]),g=[];if(u!=="off"){const b=W.process_cwd;W.setCWD(i),ee(m,"element",(w,k,_)=>{if(_===void 0||k===void 0||w.tagName!=="img")return Ce;if(typeof w.properties.src!="string"||w.properties?.src?.trim().length===0)return console.warn("Image has no src"),Ce;const C=oh(w.properties.src);if(C==="unsupportedProtocolUrl")return console.warn(`Unsupported URL protocol for media asset: "${w.properties.src}"`),Ce;if(u==="local"&&C==="remoteHttpUrl"||u==="remote"&&(C==="localFileUrl"||C==="localFilePath"))return Ce;const S=C==="remoteHttpUrl"?w.properties.src:C==="localFilePath"?No(decodeURIComponent(w.properties.src),{basePath:n,cwd:i}):decodeURIComponent(sh(w.properties.src));g.push(async()=>{const A=await lh(S,l,o,s),E=await Io(S,s);if(E===void 0){console.warn(`Could not determine extension for ${String(w.properties.src)}`);return}["unknown",...si].includes(E)?(w.properties.src=A,w.properties.className=["yanki-media","yanki-media-image"],w.properties["data-src-original"]=S):oi.includes(E)?_.children.splice(k,1,V("element",{properties:{className:["yanki-media","yanki-media-audio-video"],"data-alt-text":w.properties.alt,"data-filename":A,"data-src-original":S},tagName:"span"},[V("text",`[sound:${A}]`)])):console.warn(`Unsupported media format: ${E} for ${String(w.properties.src)}`)})});for(const w of g)await w();W.setCWD(b)}return ee(m,"element",(b,w,k)=>{if(k===void 0)return Ce;if(b.tagName==="mjx-container"){const _=k.children.indexOf(b);return k.children.splice(_+1,0,V("element",{properties:{style:"display: none;"},tagName:"span"},[V("text","Not empty")])),He}}),ls.stringify(m).trim()}a(Vt,"mdastToHtml");const Vl=is().use(Af,{fragment:!0});function mb(t){const e=Vl.parse(t);return Tm(e)}a(mb,"htmlToPlainText");function us(t){return mb(t).split(`
|
|
43
|
-
`).map(n=>n.trim()).find(n=>n.length>0)??""}a(us,"getFirstLineOfHtmlAsPlainText");function Ar(t){const e=
|
|
41
|
+
`}),n}a(Wy,"wrap$1");function Ol(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}a(Ol,"trimMarkdownSpaceStart");function Pl(t,e){const n=jy(t,e),r=n.one(t,void 0),i=zy(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
|
|
42
|
+
`},i),s}a(Pl,"toHast");function Ky(t,e){return t&&"run"in t?async function(n,r){const i=Pl(n,{file:r,...e});await t.run(i,r)}:function(n,r){return Pl(n,{file:r,...e||t})}}a(Ky,"remarkRehype");function Dl(t){if(t)throw t}a(Dl,"bail");function Ji(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}a(Ji,"getDefaultExportFromCjs");var Cr=Object.prototype.hasOwnProperty,Rl=Object.prototype.toString,Fl=Object.defineProperty,Ml=Object.getOwnPropertyDescriptor,$l=a(function(e){return typeof Array.isArray=="function"?Array.isArray(e):Rl.call(e)==="[object Array]"},"isArray"),Bl=a(function(e){if(!e||Rl.call(e)!=="[object Object]")return!1;var n=Cr.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Cr.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;var i;for(i in e);return typeof i>"u"||Cr.call(e,i)},"isPlainObject"),ql=a(function(e,n){Fl&&n.name==="__proto__"?Fl(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},"setProperty"),zl=a(function(e,n){if(n==="__proto__")if(Cr.call(e,n)){if(Ml)return Ml(e,n).value}else return;return e[n]},"getProperty"),Yy=a(function t(){var e,n,r,i,s,o,l=arguments[0],u=1,c=arguments.length,h=!1;for(typeof l=="boolean"&&(h=l,l=arguments[1]||{},u=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});u<c;++u)if(e=arguments[u],e!=null)for(n in e)r=zl(l,n),i=zl(e,n),l!==i&&(h&&i&&(Bl(i)||(s=$l(i)))?(s?(s=!1,o=r&&$l(r)?r:[]):o=r&&Bl(r)?r:{},ql(l,{name:n,newValue:t(h,o,i)})):typeof i<"u"&&ql(l,{name:n,newValue:i}));return l},"extend"),Qi=Ji(Yy);function Xi(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}a(Xi,"isPlainObject");function Jy(){const t=[],e={run:n,use:r};return e;function n(...i){let s=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...i);function l(u,...c){const h=t[++s];let f=-1;if(u){o(u);return}for(;++f<i.length;)(c[f]===null||c[f]===void 0)&&(c[f]=i[f]);i=c,h?Qy(h,l)(...c):o(null,...c)}a(l,"next")}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}a(Jy,"trough");function Qy(t,e){let n;return r;function r(...o){const l=t.length>o.length;let u;l&&o.push(i);try{u=t.apply(this,o)}catch(c){const h=c;if(l&&n)throw h;return i(h)}l||(u&&u.then&&typeof u.then=="function"?u.then(s,i):u instanceof Error?i(u):s(u))}function i(o,...l){n||(n=!0,e(o,...l))}function s(o){i(null,o)}}a(Qy,"wrap");function Cn(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Ul(t.position):"start"in t||"end"in t?Ul(t):"line"in t||"column"in t?Zi(t):""}a(Cn,"stringifyPosition");function Zi(t){return jl(t&&t.line)+":"+jl(t&&t.column)}a(Zi,"point$1");function Ul(t){return Zi(t&&t.start)+"-"+Zi(t&&t.end)}a(Ul,"position");function jl(t){return t&&typeof t=="number"?t:1}a(jl,"index$1");class Se extends Error{static{a(this,"VFileMessage")}constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof e=="string"?i=e:!s.cause&&e&&(o=!0,i=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=l?l.line:void 0,this.name=Cn(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}Se.prototype.file="",Se.prototype.name="",Se.prototype.reason="",Se.prototype.message="",Se.prototype.stack="",Se.prototype.column=void 0,Se.prototype.line=void 0,Se.prototype.ancestors=void 0,Se.prototype.cause=void 0,Se.prototype.fatal=void 0,Se.prototype.place=void 0,Se.prototype.ruleId=void 0,Se.prototype.source=void 0;const Ve={basename:Xy,dirname:Zy,extname:eb,join:tb,sep:"/"};function Xy(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Nn(t);let n=0,r=-1,i=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":t.slice(n,r)}if(e===t)return"";let o=-1,l=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),l>-1&&(t.codePointAt(i)===e.codePointAt(l--)?l<0&&(r=i):(l=-1,r=o));return n===r?r=o:r<0&&(r=t.length),t.slice(n,r)}a(Xy,"basename");function Zy(t){if(Nn(t),t.length===0)return".";let e=-1,n=t.length,r;for(;--n;)if(t.codePointAt(n)===47){if(r){e=n;break}}else r||(r=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}a(Zy,"dirname");function eb(t){Nn(t);let e=t.length,n=-1,r=0,i=-1,s=0,o;for(;e--;){const l=t.codePointAt(e);if(l===47){if(o){r=e+1;break}continue}n<0&&(o=!0,n=e+1),l===46?i<0?i=e:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":t.slice(i,n)}a(eb,"extname");function tb(...t){let e=-1,n;for(;++e<t.length;)Nn(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":nb(n)}a(tb,"join");function nb(t){Nn(t);const e=t.codePointAt(0)===47;let n=rb(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}a(nb,"normalize");function rb(t,e){let n="",r=0,i=-1,s=0,o=-1,l,u;for(;++o<=t.length;){if(o<t.length)l=t.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}e&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+t.slice(i+1,o):n=t.slice(i+1,o),r=o-i-1;i=o,s=0}else l===46&&s>-1?s++:s=-1}return n}a(rb,"normalizeString");function Nn(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}a(Nn,"assertPath$1");const ib={cwd:sb};function sb(){return"/"}a(sb,"cwd");function es(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}a(es,"isUrl");function ob(t){if(typeof t=="string")t=new URL(t);else if(!es(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return ab(t)}a(ob,"urlToPath");function ab(t){if(t.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=t.pathname;let n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const r=e.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}a(ab,"getPathFromURLPosix");const ts=["history","path","basename","stem","extname","dirname"];class lb{static{a(this,"VFile")}constructor(e){let n;e?es(e)?n={path:e}:typeof e=="string"||ub(e)?n={value:e}:n=e:n={},this.cwd=ib.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ts.length;){const s=ts[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)ts.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Ve.basename(this.path):void 0}set basename(e){rs(e,"basename"),ns(e,"basename"),this.path=Ve.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Ve.dirname(this.path):void 0}set dirname(e){Gl(this.basename,"dirname"),this.path=Ve.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Ve.extname(this.path):void 0}set extname(e){if(ns(e,"extname"),Gl(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ve.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){es(e)&&(e=ob(e)),rs(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Ve.basename(this.path,this.extname):void 0}set stem(e){rs(e,"stem"),ns(e,"stem"),this.path=Ve.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){const i=this.message(e,n,r);throw i.fatal=!0,i}info(e,n,r){const i=this.message(e,n,r);return i.fatal=void 0,i}message(e,n,r){const i=new Se(e,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function ns(t,e){if(t&&t.includes(Ve.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Ve.sep+"`")}a(ns,"assertPart");function rs(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}a(rs,"assertNonEmpty");function Gl(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}a(Gl,"assertPath");function ub(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}a(ub,"isUint8Array$1");const cb=a(function(t){const r=this.constructor.prototype,i=r[t],s=a(function(){return i.apply(s,arguments)},"apply");return Object.setPrototypeOf(s,r),s},"CallableInstance"),fb={}.hasOwnProperty;class uo extends cb{static{a(this,"Processor")}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Jy()}copy(){const e=new uo;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];e.use(...r)}return e.data(Qi(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(as("data",this.frozen),this.namespace[e]=n,this):fb.call(this.namespace,e)&&this.namespace[e]||void 0:e?(as("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(e,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=Nr(e),r=this.parser||this.Parser;return ss("parse",r),r(String(n),n)}process(e,n){const r=this;return this.freeze(),ss("process",this.parser||this.Parser),os("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){const l=Nr(e),u=r.parse(l);r.run(u,l,function(h,f,p){if(h||!f||!p)return c(h);const d=f,m=r.stringify(d,p);pb(m)?p.value=m:p.result=m,c(h,p)});function c(h,f){h||!f?o(h):s?s(f):n(void 0,f)}a(c,"realDone")}a(i,"executor")}processSync(e){let n=!1,r;return this.freeze(),ss("processSync",this.parser||this.Parser),os("processSync",this.compiler||this.Compiler),this.process(e,i),Vl("processSync","process",n),r;function i(s,o){n=!0,Dl(s),r=o}a(i,"realDone")}run(e,n,r){Hl(e),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,l){const u=Nr(n);i.run(e,u,c);function c(h,f,p){const d=f||e;h?l(h):o?o(d):r(void 0,d,p)}a(c,"realDone")}a(s,"executor")}runSync(e,n){let r=!1,i;return this.run(e,n,s),Vl("runSync","run",r),i;function s(o,l){Dl(o),i=l,r=!0}a(s,"realDone")}stringify(e,n){this.freeze();const r=Nr(n),i=this.compiler||this.Compiler;return os("stringify",i),Hl(e),i(e,r)}use(e,...n){const r=this.attachers,i=this.namespace;if(as("use",this.frozen),e!=null)if(typeof e=="function")u(e,n);else if(typeof e=="object")Array.isArray(e)?l(e):o(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function s(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...f]=c;u(h,f)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(c.plugins),c.settings&&(i.settings=Qi(!0,i.settings,c.settings))}function l(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const f=c[h];s(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,h){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===c){p=f;break}if(p===-1)r.push([c,...h]);else if(h.length>0){let[d,...m]=h;const g=r[p][1];Xi(g)&&Xi(d)&&(d=Qi(!0,g,d)),r[p]=[c,d,...m]}}}}const is=new uo().freeze();function ss(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}a(ss,"assertParser");function os(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}a(os,"assertCompiler");function as(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}a(as,"assertUnfrozen");function Hl(t){if(!Xi(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}a(Hl,"assertNode");function Vl(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}a(Vl,"assertDone");function Nr(t){return hb(t)?t:new lb(t)}a(Nr,"vfile");function hb(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}a(hb,"looksLikeAVFile");function pb(t){return typeof t=="string"||db(t)}a(pb,"looksLikeAValue");function db(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}a(db,"isUint8Array");const ls=is().use(Ky).use(qm).use(Af).use(am,{themes:{dark:"github-dark",light:"github-light"}}).use(iy),mb={...ge};async function Vt(t,e){if(t===void 0)return"";const{basePath:n,cssClassNames:r,cwd:i,fetchAdapter:s=dn(),fileAdapter:o=await Ft(),namespace:l,syncMediaAssets:u,useEmptyPlaceholder:c}=Ne(mb,e??{}),h=await ls.run(t),f=ls.stringify(h).trim(),p=f.length===0;if(r===void 0||p&&!c)return f;const d=p?$f:h,m=V("root",[V("element",{properties:{className:r.map(b=>Df(b))},tagName:"div"},d.children)]),g=[];if(u!=="off"){const b=W.process_cwd;W.setCWD(i),ee(m,"element",(w,k,_)=>{if(_===void 0||k===void 0||w.tagName!=="img")return Ce;if(typeof w.properties.src!="string"||w.properties?.src?.trim().length===0)return console.warn("Image has no src"),Ce;const C=ah(w.properties.src);if(C==="unsupportedProtocolUrl")return console.warn(`Unsupported URL protocol for media asset: "${w.properties.src}"`),Ce;if(u==="local"&&C==="remoteHttpUrl"||u==="remote"&&(C==="localFileUrl"||C==="localFilePath"))return Ce;const S=C==="remoteHttpUrl"?w.properties.src:C==="localFilePath"?Ao(decodeURIComponent(w.properties.src),{basePath:n,cwd:i}):decodeURIComponent(oh(w.properties.src));g.push(async()=>{const A=await uh(S,l,o,s),E=await Lo(S,s);if(E===void 0){console.warn(`Could not determine extension for ${String(w.properties.src)}`);return}["unknown",...si].includes(E)?(w.properties.src=A,w.properties.className=["yanki-media","yanki-media-image"],w.properties["data-src-original"]=S):oi.includes(E)?_.children.splice(k,1,V("element",{properties:{className:["yanki-media","yanki-media-audio-video"],"data-alt-text":w.properties.alt,"data-filename":A,"data-src-original":S},tagName:"span"},[V("text",`[sound:${A}]`)])):console.warn(`Unsupported media format: ${E} for ${String(w.properties.src)}`)})});for(const w of g)await w();W.setCWD(b)}return ee(m,"element",(b,w,k)=>{if(k===void 0)return Ce;if(b.tagName==="mjx-container"){const _=k.children.indexOf(b);return k.children.splice(_+1,0,V("element",{properties:{style:"display: none;"},tagName:"span"},[V("text","Not empty")])),He}}),ls.stringify(m).trim()}a(Vt,"mdastToHtml");const Wl=is().use(Ef,{fragment:!0});function gb(t){const e=Wl.parse(t);return Im(e)}a(gb,"htmlToPlainText");function us(t){return gb(t).split(`
|
|
43
|
+
`).map(n=>n.trim()).find(n=>n.length>0)??""}a(us,"getFirstLineOfHtmlAsPlainText");function Ar(t){const e=Wl.parse(t),n=[];return ee(e,"element",r=>{if(r.tagName==="img"||r.tagName==="span"){const i=r.properties?.src??r.properties?.dataFilename,s=r.properties?.dataSrcOriginal;i!==void 0&&s!==void 0&&typeof i=="string"&&typeof s=="string"?n.push({filename:i,originalSrc:s}):r.tagName==="img"&&r.properties?.src}}),n}a(Ar,"extractMediaFromHtml");const cs=[{cardTemplates:[{Back:`{{FrontSide}}
|
|
44
44
|
|
|
45
45
|
<hr id=answer>
|
|
46
46
|
|
|
@@ -59,70 +59,71 @@ var Cf=Object.defineProperty;var a=(t,e)=>Cf(t,"name",{value:e,configurable:!0})
|
|
|
59
59
|
|
|
60
60
|
{{type:Back}}`,Front:`{{Front}}
|
|
61
61
|
|
|
62
|
-
{{type:Back}}`,YankiNamespace:"{{YankiNamespace}}"}],inOrderFields:["Front","Back","YankiNamespace"],modelName:"Yanki - Basic (type in the answer)"}],Er=cs.map(t=>t.modelName);async function
|
|
62
|
+
{{type:Back}}`,YankiNamespace:"{{YankiNamespace}}"}],inOrderFields:["Front","Back","YankiNamespace"],modelName:"Yanki - Basic (type in the answer)"}],Er=cs.map(t=>t.modelName);async function Kl(t,e,n=!1){if(n)return;const r=[];for(const i of e)i.noteId!==void 0&&r.push(i.noteId);await t.note.deleteNotes({notes:r})}a(Kl,"deleteNotes");async function yb(t,e,n=!1){if(e.noteId===void 0)throw new Error("Note ID is undefined");n||await t.note.updateNoteModel({note:{...e,id:e.noteId,tags:e.tags??[]}})}a(yb,"updateNoteModel");async function fs(t,e,n){if(e.noteId!==void 0)throw new Error("Note already has an ID");if(n)return 0;const r=await t.note.addNote({note:{...e,options:{allowDuplicate:!0}}}).catch(async i=>{if(i instanceof Error){if(i.message===`model was not found: ${e.modelName}`){const s=cs.find(o=>o.modelName===e.modelName);if(s===void 0)throw new Error(`Model not found: ${e.modelName}`);return await t.model.createModel(s),fs(t,e,n)}if(i.message===`deck was not found: ${e.deckName}`){if(e.deckName==="")throw new Error("Deck name is empty");return await t.deck.createDeck({deck:e.deckName}),fs(t,e,n)}throw i}else throw new TypeError("Unknown error")});if(r===null)throw new Error("Note creation failed");return await Xl(t,e,n),r}a(fs,"addNote");async function bb(t,e,n,r){if(e.noteId===void 0)throw new Error("Local note ID is undefined");if(n.cards===void 0)throw new Error("Remote note cards are undefined");let i=!1;if((!Sb(e.tags??[],n.tags??[])||!wb(e.fields,n.fields))&&(r||(await t.note.updateNote({note:{...e,id:e.noteId}}),kb(e.fields,n.fields)||await Xl(t,e,r)),i=!0),e.deckName!==n.deckName){if(e.deckName==="")throw new Error("Local deck name is empty");r||await t.deck.changeDeck({cards:n.cards,deck:e.deckName}),i=!0}return i}a(bb,"updateNote");function wb(t,e){const n=["Front","Back"];for(const r of n)if(t[r]!==e[r])return!1;return!0}a(wb,"areFieldsEqual");function kb(t,e){const n=Ar(`${t.Front}
|
|
63
63
|
${t.Back}`).map(({filename:i})=>i).sort(),r=Ar(`${e.Front}
|
|
64
|
-
${e.Back}`).map(({filename:i})=>i).sort();if(n.length!==r.length)return!1;for(const[i,s]of n.entries())if(s!==r[i])return!1;return!0}a(
|
|
65
|
-
${e.fields.Back}`),i=[];for(const{filename:s,originalSrc:o}of r)if((await t.media.getMediaFilesNames({pattern:s})).length===0){if(!n){const u=await t.media.storeMediaFile(gn(o)?{deleteExisting:!0,filename:s,url:o}:{deleteExisting:!0,filename:s,path:o});s!==u&&console.warn(`Anki media filename mismatch: Expected: "${s}" -> Received: "${u}"`)}
|
|
66
|
-
${u
|
|
67
|
-
`)}a(
|
|
68
|
-
`)}a(jk,"formatListResult");function ru(){return/[<>:"/\\|?*\u0000-\u001F]/g}a(ru,"filenameReservedRegex");function Gk(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}a(Gk,"windowsReservedNameRegex");const Hk=100,Vk=/^\.+(\\|\/)|^\.+$/,Wk=/\.+$/;function Kk(t,e={}){const n=/[\u0000-\u001F\u0080-\u009F]/g,r=/([<>:"/\\|?*\u0000-\u001F]){2,}/g;if(typeof t!="string")throw new TypeError("Expected a string");const i=e.replacement===void 0?"!":e.replacement;if(ru().test(i)&&n.test(i))throw new Error("Replacement string cannot contain reserved filename characters");i.length>0&&(t=t.replace(r,"$1")),t=t.normalize("NFD"),t=t.replace(Vk,i),t=t.replace(ru(),i),t=t.replace(n,i),t=t.replace(Wk,""),i.length>0&&(!(t[0]===".")&&t[0]==="."&&(t=i+t),t[t.length-1]==="."&&(t+=i)),t=Gk().test(t)?t+i:t;const s=typeof e.maxLength=="number"?e.maxLength:Hk;if(t.length>s){const o=t.lastIndexOf(".");if(o===-1)t=t.slice(0,s);else{const l=t.slice(0,o),u=t.slice(o);t=l.slice(0,Math.max(1,s-u.length))+u}}return t}a(Kk,"filenamify");const Yk="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Jk=128;let kt,Kt;function Qk(t){!kt||kt.length<t?(kt=Buffer.allocUnsafe(t*Jk),go.getRandomValues(kt),Kt=0):Kt+t>kt.length&&(go.getRandomValues(kt),Kt=0),Kt+=t}a(Qk,"fillPool");function Xk(t=21){Qk(t-=0);let e="";for(let n=Kt-t;n<Kt;n++)e+=Yk[kt[n]&63];return e}a(Xk,"nanoid");function Zk(t,e,n){if(e==="off")throw new Error("manageFilenames must not be off");switch(t.modelName){case"Yanki - Basic":case"Yanki - Basic (and reversed card)":case"Yanki - Basic (type in the answer)":{const r=Dt(lt(t.fields.Front).replace(Kn,"").replace(Yn,"")),i=Dt(lt(t.fields.Back).replace(Kn,"").replace(Yn,""));switch(e){case"prompt":return lt(r??i??"",n);case"response":return lt(i??r??"",n)}}case"Yanki - Cloze":{const r=Dt(lt(t.fields.Front).replace(Kn,"").replace(Yn,""));if(r===void 0)return lt("",n);const i=Dt(r.split("{{").at(0)??""),s=Dt(/{{\w\d*::([^:}]+)/.exec(r)?.at(0)),o=Dt(r.split("}}").at(1)?.split("{{").at(0)??"");switch(e){case"prompt":return lt(i??o??s??"",n);case"response":return lt(s??i??o??"",n)}}}}a(Zk,"getSafeTitleForNote");function lt(t,e){let n=Kk(us(t).trim(),{maxLength:Number.MAX_SAFE_INTEGER,replacement:" "}).replaceAll(/\s+/g," ").trim();if(n.length===0&&(n=Yn),e===void 0)return n;const r=Math.min(e,ko-12);return ri(n,r)}a(lt,"getSafeFilename");function e1(t,e){let n=ds(t,1),r=2;for(;e.includes(n.toLowerCase());)n=ds(t,r),r++;return n}a(e1,"getUniqueFilePath");function t1(t,e){const n=ds(t,2);return e.includes(n.toLowerCase())?t:iu(t)}a(t1,"auditUniqueFilePath");function iu(t){const e=t.endsWith(".")||t.endsWith(")")?void 0:W.extname(t),n=W.basename(t,e).replace(/\s\(\d+\)$/,"");return W.join(W.dirname(t),`${n}${e??""}`)}a(iu,"stripFilenameIncrement");function ds(t,e){const n=W.extname(t),r=W.basename(t,n),i=`${iu(r)} (${e})`;return W.join(W.dirname(t),`${i}${n}`)}a(ds,"appendFilenameIncrement");function n1(t){return`${t}-${Xk(8)}`}a(n1,"getTemporarilyUniqueFilePath");function su(t,e,n){const i=st((n||{}).ignore||[]),s=r1(e);let o=-1;for(;++o<s.length;)Fa(t,"text",l);function l(c,h){let f=-1,p;for(;++f<h.length;){const d=h[f],m=p?p.children:void 0;if(i(d,m?m.indexOf(d):void 0,p))return;p=d}if(p)return u(c,h)}a(l,"visitor");function u(c,h){const f=h[h.length-1],p=s[o][0],d=s[o][1];let m=0;const y=f.children.indexOf(c);let b=!1,w=[];p.lastIndex=0;let k=p.exec(c.value);for(;k;){const _=k.index,C={index:k.index,input:k.input,stack:[...h,c]};let S=d(...k,C);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?p.lastIndex=_+1:(m!==_&&w.push({type:"text",value:c.value.slice(m,_)}),Array.isArray(S)?w.push(...S):S&&w.push(S),m=_+k[0].length,b=!0),!p.global)break;k=p.exec(c.value)}return b?(m<c.value.length&&w.push({type:"text",value:c.value.slice(m)}),f.children.splice(y,1,...w)):w=[c],y+w.length}a(u,"handler")}a(su,"findAndReplace");function r1(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<n.length;){const i=n[r];e.push([i1(i[0]),s1(i[1])])}return e}a(r1,"toPairs");function i1(t){return typeof t=="string"?new RegExp(mn(t),"g"):t}a(i1,"toExpression");function s1(t){return typeof t=="function"?t:function(){return t}}a(s1,"toFunction");const o1=a(function(t={}){const{automaticAlias:e=!1,obsidianVault:n}=t;return function(r){su(r,[[/!\[\[([^\]]+)]]/g,function(i,s){const[o,l]=s.split("|");return V("image",{altText:l,url:gn(o)?o:encodeURI(o)})}],[/\[\[([^\]]+)]]/g,function(i,s){let[o,l]=s.split("|");const u=o.split("#")?.at(-1);return l??=e?u??o.split("/").pop():o,o=n?`obsidian://open?vault=${encodeURIComponent(n)}&file=${encodeURIComponent(o)}.md`:gn(o)?o:encodeURI(o),V("link",{url:o},[V("text",l)])}]],{ignore:["link","image"]})}},"plugin$2"),a1=a(function(t,e,n,r,i){const s=st(r),o=[];if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index for start")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index for start");if(typeof n=="number"){if(n<0||n===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index for end")}else if(n=t.children.indexOf(n),n<0)throw new Error("Expected child node or index for end");for(;++e<n;)s(t.children[e],e,t)&&o.push(t.children[e]);return o},"findAllBetween"),l1=a(function(t,e,n){const r=st(n),i=[];let s=-1;if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(e>t.children.length&&(e=t.children.length);++s<e;)r(t.children[s],s,t)&&i.push(t.children[s]);return i},"findAllBefore"),u1=a(function(t,e,n){const r=st(n),i=[];if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<t.children.length;)r(t.children[e],e,t)&&i.push(t.children[e]);return i},"findAllAfter"),ou={a:"amber",b:"blue",c:"cyan",d:"brown",e:"espresso",f:"fuchsia",g:"green",h:"hotpink",i:"indigo",j:"jade",k:"kiwi",l:"lime",m:"magenta",n:"navyblue",o:"orange",p:"purple",q:"pink",r:"red",s:"silver",t:"teal",u:"umber",v:"violet",w:"white",x:"gray",y:"yellow",z:"black"},c1={dictionary:ou,markerTagName:"mark",markerClassName:"flexible-marker",actionForEmptyContent:"mark"},f1=/=([a-z]?)=(?![\s=])([\s\S]*?)(?<![\s=])==/,h1=/=([a-z]?)=(?![\s=])([\s\S]*?)(?<![\s=])==/g,p1=/=([a-z]?)=(?![\s]|=+\s)/,d1=/=([a-z]?)=(?![\s]|=+\s)/g,m1=/(?<!\s|\s=|\s==|\s===|\s====)==/,g1=/(?<!\s|\s=|\s==|\s===|\s====)==/g,y1=/=([a-z]?)=\s*==/,au=/=([a-z]?)=\s*==/g;function b1(t){return t.filter(e=>!!e)}a(b1,"clsx");const w1=a(t=>{const e=Object.assign({},c1,t);t?.dictionary&&Object.keys(t.dictionary).length&&(e.dictionary=Object.assign({},ou,t.dictionary));const n=a((l,u)=>{let c;const h=l?e.dictionary[l]:void 0,f=typeof e.markerTagName=="string"?e.markerTagName:e.markerTagName(h),p=typeof e.markerClassName=="function"?e.markerClassName(h):b1([e.markerClassName,!l&&`${e.markerClassName}-default`,h&&`${e.markerClassName}-${h}`,!u.length&&`${e.markerClassName}-empty`]);return e.markerProperties&&(c=e.markerProperties(h),Object.entries(c).forEach(([d,m])=>{(typeof m=="string"&&m===""||Array.isArray(m)&&m.length===0)&&c&&(c[d]=void 0),d==="className"&&delete c?.className})),{type:"mark",children:u,data:{hName:f,hProperties:{className:p,...c&&{...c}}}}},"constructMarkNode"),r=a(function(l,u,c){if(!c||typeof u>"u"||!f1.test(l.value))return;const h=[],f=l.value;let p="",d=0,m=0;const g=Array.from(f.matchAll(h1));for(let y=0;y<g.length;y++){const b=g[y],[w,k,_]=b,C=b.index,S=w.length,A=d+m;if(d=C,m=S,C>A){const P=f.substring(A,C),N=V("text",P);h.push(N)}const E=n(k,[{type:"text",value:_.trim()}]);h.push(E),p=f.slice(C+S)}if(p){const y=V("text",p);h.push(y)}h.length&&c.children.splice(u,1,...h)},"visitorFirst"),i=a(function(l,u,c){if(!c||typeof u>"u"||!p1.test(l.value))return;const h=l,f=Oi(c,h,function(R){return R.type==="text"&&m1.test(R.value)});if(!f)return;const p=l1(c,h),d=a1(c,h,f),m=u1(c,f),g=h.value,y=Array.from(g.matchAll(d1))[0],[b,w]=y,k=b.length,_=y.index;if(_>0){const R=g.substring(0,_),O=V("text",R);p.push(O)}if(g.length>_+k){const R=g.slice(_+k),O=V("text",R);d.unshift(O)}const C=f.value,S=Array.from(C.matchAll(g1))[0],[A]=S,E=A.length,P=S.index;if(P>0){const R=C.substring(0,P),O=V("text",R);d.push(O)}if(C.length>P+E){const R=C.slice(P+E),O=V("text",R);m.unshift(O)}const N=n(w,d);return c.children=[...p,N,...m],u},"visitorSecond"),s=a(function(l,u,c){if(!c||typeof u>"u"||!y1.test(l.value))return;if(e.actionForEmptyContent==="remove")return l.value=l.value.replaceAll(au,""),l.value.trim()===""?[Ti,u]:Ce;const h=[],f=l.value;let p="",d=0,m=0;const g=Array.from(f.matchAll(au));for(let y=0;y<g.length;y++){const b=g[y],[w,k]=b,_=b.index,C=w.length,S=d+m;if(d=_,m=C,_>S){const E=f.substring(S,_),P=V("text",E);h.push(P)}const A=n(k,[]);h.push(A),p=f.slice(_+C)}if(p){const y=V("text",p);h.push(y)}h.length&&c.children.splice(u,1,...h)},"visitorThird");return a(l=>{if(ee(l,"text",r),ee(l,"text",i),e.actionForEmptyContent!=="keep"&&ee(l,"text",s),e.equalityOperator){const u=new RegExp(e.equalityOperator,"gi");ee(l,"text",c=>{c.value=c.value.replaceAll(u,"==")})}},"transformer")},"plugin$1");var lu={exports:{}};(function(t){(function(){var e;e=t.exports=i,e.format=i,e.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}a(n,"printf");function r(s,o){return i.apply(null,[s].concat(o))}a(r,"vsprintf");function i(s){for(var o=1,l=[].slice.call(arguments),u=0,c=s.length,h="",f,p=!1,d,m,g=!1,y,b=a(function(){return l[o++]},"nextArg"),w=a(function(){for(var k="";/\d/.test(s[u]);)k+=s[u++],f=s[u];return k.length>0?parseInt(k):null},"slurpNumber");u<c;++u)if(f=s[u],p)switch(p=!1,f=="."?(g=!1,f=s[++u]):f=="0"&&s[u+1]=="."?(g=!0,u+=2,f=s[u]):g=!0,y=w(),f){case"b":h+=parseInt(b(),10).toString(2);break;case"c":d=b(),typeof d=="string"||d instanceof String?h+=d:h+=String.fromCharCode(parseInt(d,10));break;case"d":h+=parseInt(b(),10);break;case"f":m=String(parseFloat(b()).toFixed(y||6)),h+=g?m:m.replace(/^0/,"");break;case"j":h+=JSON.stringify(b());break;case"o":h+="0"+parseInt(b(),10).toString(8);break;case"s":h+=b();break;case"x":h+="0x"+parseInt(b(),10).toString(16);break;case"X":h+="0x"+parseInt(b(),10).toString(16).toUpperCase();break;default:h+=f;break}else f==="%"?p=!0:h+=f;return h}a(i,"format")})()})(lu);var k1=lu.exports,S1=Ji(k1);const Tr=Object.assign(St(Error),{eval:St(EvalError),range:St(RangeError),reference:St(ReferenceError),syntax:St(SyntaxError),type:St(TypeError),uri:St(URIError)});function St(t){return e.displayName=t.displayName||t.name,e;function e(n,...r){const i=n&&S1(n,...r);return new t(i)}a(e,"FormattedError")}a(St,"create");const Ir={}.hasOwnProperty,uu={yaml:"-",toml:"+"};function ms(t){const e=[];let n=-1;const r=Array.isArray(t)?t:t?[t]:["yaml"];for(;++n<r.length;)e[n]=x1(r[n]);return e}a(ms,"toMatters");function x1(t){let e=t;if(typeof e=="string"){if(!Ir.call(uu,e))throw Tr("Missing matter definition for `%s`",e);e={type:e,marker:uu[e]}}else if(typeof e!="object")throw Tr("Expected matter to be an object, not `%j`",e);if(!Ir.call(e,"type"))throw Tr("Missing `type` in matter `%j`",e);if(!Ir.call(e,"fence")&&!Ir.call(e,"marker"))throw Tr("Missing `marker` or `fence` in matter `%j`",e);return e}a(x1,"matter");function v1(t){const e=ms(t),n={};let r=-1;for(;++r<e.length;){const i=e[r],s=gs(i,"open").charCodeAt(0),o=_1(i),l=n[s];Array.isArray(l)?l.push(o):n[s]=[o]}return{flow:n}}a(v1,"frontmatter");function _1(t){const e=t.anywhere,n=t.type,r=n+"Fence",i=r+"Sequence",s=n+"Value",o={tokenize:h,partial:!0};let l,u=0;return{tokenize:c,concrete:!0};function c(f,p,d){const m=this;return g;function g(A){const E=m.now();return E.column===1&&(E.line===1||e)&&(l=gs(t,"open"),u=0,A===l.charCodeAt(u))?(f.enter(n),f.enter(r),f.enter(i),y(A)):d(A)}function y(A){return u===l.length?(f.exit(i),q(A)?(f.enter("whitespace"),b(A)):w(A)):A===l.charCodeAt(u++)?(f.consume(A),y):d(A)}function b(A){return q(A)?(f.consume(A),b):(f.exit("whitespace"),w(A))}function w(A){return F(A)?(f.exit(r),f.enter("lineEnding"),f.consume(A),f.exit("lineEnding"),l=gs(t,"close"),u=0,f.attempt(o,S,k)):d(A)}function k(A){return A===null||F(A)?C(A):(f.enter(s),_(A))}function _(A){return A===null||F(A)?(f.exit(s),C(A)):(f.consume(A),_)}function C(A){return A===null?d(A):(f.enter("lineEnding"),f.consume(A),f.exit("lineEnding"),f.attempt(o,S,k))}function S(A){return f.exit(n),p(A)}}function h(f,p,d){let m=0;return g;function g(k){return k===l.charCodeAt(m)?(f.enter(r),f.enter(i),y(k)):d(k)}function y(k){return m===l.length?(f.exit(i),q(k)?(f.enter("whitespace"),b(k)):w(k)):k===l.charCodeAt(m++)?(f.consume(k),y):d(k)}function b(k){return q(k)?(f.consume(k),b):(f.exit("whitespace"),w(k))}function w(k){return k===null||F(k)?(f.exit(r),p(k)):d(k)}}}a(_1,"createConstruct");function gs(t,e){return t.marker?cu(t.marker,e).repeat(3):cu(t.fence,e)}a(gs,"fence$1");function cu(t,e){return typeof t=="string"?t:t[e]}a(cu,"pick$1");function C1(t){const e=ms(t),n={},r={};let i=-1;for(;++i<e.length;){const s=e[i];n[s.type]=N1(s),r[s.type]=A1,r[s.type+"Value"]=E1}return{enter:n,exit:r}}a(C1,"frontmatterFromMarkdown");function N1(t){return e;function e(n){this.enter({type:t.type,value:""},n),this.buffer()}}a(N1,"opener");function A1(t){const e=this.resume(),n=this.stack[this.stack.length-1];this.exit(t),n.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}a(A1,"close");function E1(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}a(E1,"value");function T1(t){const e=[],n={},r=ms(t);let i=-1;for(;++i<r.length;){const s=r[i];n[s.type]=I1(s);const o=ys(s,"open");e.push({atBreak:!0,character:o.charAt(0),after:mn(o.charAt(1))})}return{unsafe:e,handlers:n}}a(T1,"frontmatterToMarkdown");function I1(t){const e=ys(t,"open"),n=ys(t,"close");return r;function r(i){return e+(i.value?`
|
|
64
|
+
${e.Back}`).map(({filename:i})=>i).sort();if(n.length!==r.length)return!1;for(const[i,s]of n.entries())if(s!==r[i])return!1;return!0}a(kb,"areMediaElementsEqual");function Sb(t,e){if(t.length!==e.length)return!1;for(const[n,r]of t.entries())if(r!==e[n])return!1;return!0}a(Sb,"areTagsEqual");async function hs(t,e=ge.namespace){const n=await t.note.findNotes({query:`"YankiNamespace:${e}"`});return await Yl(t,n)}a(hs,"getRemoteNotes");async function Yl(t,e){const n=await t.note.notesInfo({notes:e}),r=[];if(n.every(l=>l.noteId===void 0))return Array.from({length:n.length}).fill(void 0);const i=n.flatMap(l=>l.cards??[]),s=await t.deck.getDecks({cards:i}),o=new Map;for(const[l,u]of Object.entries(s))for(const c of u)o.set(c,l);for(const l of n){if(l.noteId===void 0){r.push(void 0);continue}const u=new Set;for(const c of l.cards){const h=o.get(c);if(h===void 0)throw new Error(`No deck found for card ${c}`);u.add(h)}if(u.size===0)throw new Error(`No decks found for note ${l.noteId}`);if(u.size>1)throw new Error(`Multiple decks found for note ${l.noteId}`);if(!Er.includes(l.modelName))throw new Error(`Unknown model name ${l.modelName} for note ${l.noteId}`);r.push({cards:l.cards,deckName:[...u][0],fields:{Back:l.fields.Back.value??"",Front:l.fields.Front.value??"",YankiNamespace:l.fields.YankiNamespace.value??""},modelName:l.modelName,noteId:l.noteId,tags:l.tags})}return r}a(Yl,"getRemoteNotesById");async function Jl(t,e,n,r){const i=[...new Set(e.map(f=>f.deckName))].filter(Boolean),o=[...new Set(n.map(f=>f.deckName))].filter(Boolean).filter(f=>!i.includes(f)),l=[];for(const f of o){const p=f.split("::");if(p.length!==1)for(;p.length>1;){p.pop();const d=p.join("::");if(i.some(m=>d.includes(m)))break;l.push(d)}}const u=[...new Set([...o,...l])],c=await t.deck.getDeckStats({decks:u}),h=Object.values(c).reduce((f,p,d)=>{const m=u[d];if(r){const g=n.filter(b=>b.deckName===m).length,y=e.filter(b=>b.deckName===m).length;p.total_in_deck===g&&y===0&&!f.includes(m)&&f.push(m)}else p.total_in_deck===0&&!f.includes(m)&&f.push(m);return f},[]);return r||await t.deck.deleteDecks({cardsToo:!0,decks:h}),h}a(Jl,"deleteOrphanedDecks");async function Ql(t,e,n,r){let i;try{const{css:s}=await t.model.modelStyling({modelName:e});i=s}catch(s){if(s instanceof Error){if(s.message===`model was not found: ${e}`){const o=cs.find(l=>l.modelName===e);if(o===void 0)throw new Error(`Model not found: ${e}`);return r?!1:(await t.model.createModel(o),Ql(t,o.modelName,n,r))}throw s}else throw new TypeError("Unknown error")}return i!==void 0&&i===n?!1:(r||await t.model.updateModelStyling({model:{css:n,name:e}}),!0)}a(Ql,"updateModelStyle");async function xb(t,e=Er[0]){const{css:n}=await t.model.modelStyling({modelName:e});return n}a(xb,"getModelStyle");async function Xl(t,e,n){const r=Ar(`${e.fields.Front}
|
|
65
|
+
${e.fields.Back}`),i=[];for(const{filename:s,originalSrc:o}of r)if((await t.media.getMediaFilesNames({pattern:s})).length===0){if(!n)try{const u=await t.media.storeMediaFile(gn(o)?{deleteExisting:!0,filename:s,url:o}:{deleteExisting:!0,filename:s,path:o});s!==u&&console.warn(`Anki media filename mismatch: Expected: "${s}" -> Received: "${u}"`)}catch(u){console.warn(`Anki could not store media file: "${s}"
|
|
66
|
+
${String(u)}`)}i.push({filename:s,originalSrc:o})}return i}a(Xl,"uploadMediaForNote");async function Zl(t,e,n,r){if(r)return[];const i=To(n),s=[];for(const u of e){const c=Ar(`${u.fields.Front}
|
|
67
|
+
${u.fields.Back}`);for(const{filename:h}of c)s.push(h)}const o=await t.media.getMediaFilesNames({pattern:`${i}-*`}),l=[];for(const u of o)s.includes(u)||(await t.media.deleteMediaFile({filename:u}),l.push(u));return l}a(Zl,"deleteUnusedMedia");async function An(t){try{const{permission:e}=await t.miscellaneous.requestPermission();if(e==="denied")throw new Error('Permission denied, please add this source to the "webCorsOriginList" in the Anki-Connect add-on configuration options.');return"granted"}catch(e){if(e instanceof Error&&(e.message==="fetch failed"||e.message==="net::ERR_CONNECTION_REFUSED"))return"ankiUnreachable";throw e}}a(An,"requestPermission");async function ps(t){try{await t.miscellaneous.sync()}catch{console.warn("Could not sync to AnkiWeb.")}}a(ps,"syncToAnkiWeb");var vb="addenda",_b="aircraft",Cb="algae",Nb="alumnae",Ab="alumni",Eb="alveoli",Tb="amoebae",Ib="analyses",Lb="antennae",Ob="antitheses",Pb="apices",Db="appendices",Rb="automata",Fb="axes",Mb="bacilli",$b="bacteria",Bb="bacula",qb="barracks",zb="bases",Ub="beaux",jb="bison",Gb="buffalo",Hb="bureaus",Vb="cacti",Wb="calves",Kb="carcinomata",Yb="carp",Jb="censuses",Qb="chassis",Xb="cherubim",Zb="children",e0="cloacae",t0="cod",n0="codices",r0="concerti",i0="consortia",s0="corpora",o0="crises",a0="criteria",l0="curricula",u0="cystomata",c0="data",f0="deer",h0="diagnoses",p0="dice",d0="dwarfs",m0="echoes",g0="elves",y0="elk",b0="ellipses",w0="embargoes",k0="emphases",S0="errata",x0="fezes",v0="firmware",_0="fish",C0="foci",N0="feet",A0="formulae",E0="fungi",T0="gallows",I0="genera",L0="glomeruli",O0="geese",P0="graffiti",D0="grouse",R0="halves",F0="hamuli",M0="heroes",$0="hippopotami",B0="hooves",q0="hovercraft",z0="hypotheses",U0="ilia",j0="incubi",G0="indices",H0="interstitia",V0="kakapo",W0="knives",K0="larvae",Y0="leaves",J0="libretti",Q0="lives",X0="loaves",Z0="loculi",ew="loci",tw="lice",nw="men",rw="matrices",iw="means",sw="measles",ow="media",aw="media",lw="memoranda",uw="millennia",cw="minutiae",fw="moose",hw="mice",pw="nebulae",dw="nemeses",mw="neuroses",gw="news",yw="nucleoli",bw="nuclei",ww="oases",kw="occipita",Sw="offspring",xw="omphaloi",vw="opera",_w="ova",Cw="oxen",Nw="paralyses",Aw="parentheses",Ew="people",Tw="phenomena",Iw="phyla",Lw="pike",Ow="polyhedra",Pw="potatoes",Dw="primi",Rw="prognoses",Fw="quizzes",Mw="radii",$w="referenda",Bw="salmon",qw="scarves",zw="scrota",Uw="selves",jw="seminomata",Gw="series",Hw="sheep",Vw="shelves",Ww="shrimp",Kw="simulacra",Yw="soliloquies",Jw="spacecraft",Qw="species",Xw="spectra",Zw="squid",ek="stimuli",tk="strata",nk="swine",rk="syconia",ik="syllabi",sk="symposia",ok="synopses",ak="syntheses",lk="tableaus",uk="testes",ck="those",fk="theses",hk="thieves",pk="thrombi",dk="tomatoes",mk="teeth",gk="tori",yk="trout",bk="tuna",wk="umbilici",kk="uteri",Sk="vertebrae",xk="vertices",vk="vetoes",_k="vitae",Ck="vortices",Nk="watercraft",Ak="wharves",Ek="wives",Tk="wolves",Ik="women",Lk={addendum:vb,aircraft:_b,alga:Cb,alumna:Nb,alumnus:Ab,alveolus:Eb,amoeba:Tb,analysis:Ib,antenna:Lb,antithesis:Ob,apex:Pb,appendix:Db,automaton:Rb,axis:Fb,bacillus:Mb,bacterium:$b,baculum:Bb,barracks:qb,basis:zb,beau:Ub,bison:jb,buffalo:Gb,bureau:Hb,cactus:Vb,calf:Wb,carcinoma:Kb,carp:Yb,census:Jb,chassis:Qb,cherub:Xb,child:Zb,ch\u00E2teau:"ch\xE2teaus",cloaca:e0,cod:t0,codex:n0,concerto:r0,consortium:i0,corpus:s0,crisis:o0,criterion:a0,curriculum:l0,cystoma:u0,datum:c0,deer:f0,diagnosis:h0,die:p0,dwarf:d0,echo:m0,elf:g0,elk:y0,ellipsis:b0,embargo:w0,emphasis:k0,erratum:S0,"faux pas":"faux pas",fez:x0,firmware:v0,fish:_0,focus:C0,foot:N0,formula:A0,fungus:E0,gallows:T0,genus:I0,glomerulus:L0,goose:O0,graffito:P0,grouse:D0,half:R0,hamulus:F0,hero:M0,hippopotamus:$0,hoof:B0,hovercraft:q0,hypothesis:z0,iliac:U0,incubus:j0,index:G0,interstitium:H0,kakapo:V0,knife:W0,larva:K0,leaf:Y0,libretto:J0,life:Q0,loaf:X0,loculus:Z0,locus:ew,louse:tw,man:nw,matrix:rw,means:iw,measles:sw,media:ow,medium:aw,memorandum:lw,millennium:uw,minutia:cw,moose:fw,mouse:hw,nebula:pw,nemesis:dw,neurosis:mw,news:gw,nucleolus:yw,nucleus:bw,oasis:ww,occiput:kw,offspring:Sw,omphalos:xw,opus:vw,ovum:_w,ox:Cw,paralysis:Nw,parenthesis:Aw,person:Ew,phenomenon:Tw,phylum:Iw,pike:Lw,polyhedron:Ow,potato:Pw,primus:Dw,prognosis:Rw,quiz:Fw,radius:Mw,referendum:$w,salmon:Bw,scarf:qw,scrotum:zw,self:Uw,seminoma:jw,series:Gw,sheep:Hw,shelf:Vw,shrimp:Ww,simulacrum:Kw,soliloquy:Yw,spacecraft:Jw,species:Qw,spectrum:Xw,squid:Zw,stimulus:ek,stratum:tk,swine:nk,syconium:rk,syllabus:ik,symposium:sk,synopsis:ok,synthesis:ak,tableau:lk,testis:uk,that:ck,thesis:fk,thief:hk,this:"these",thrombus:pk,tomato:dk,tooth:mk,torus:gk,trout:yk,tuna:bk,umbilicus:wk,uterus:kk,vertebra:Sk,vertex:xk,veto:vk,vita:_k,vortex:Ck,watercraft:Nk,wharf:Ak,wife:Ek,wolf:Tk,woman:Ik};const Ok=Lk;var Pk=new Map(Object.entries(Ok)),eu=Ji(Pk);function Wt(t,e,n){if(typeof e=="number"&&(n=e),eu.has(t.toLowerCase())){e=eu.get(t.toLowerCase());const r=t.charAt(0);r===r.toUpperCase()&&(e=r+e.slice(1)),t===t.toUpperCase()&&(e=e.toUpperCase())}else typeof e!="string"&&(e=(t.replace(/(?:s|x|z|ch|sh)$/i,"$&e").replace(/([^aeiou])y$/i,"$1ie")+"s").replace(/i?e?s$/i,r=>t.slice(-1)===t.slice(-1).toLowerCase()?r.toLowerCase():r.toUpperCase()));return Math.abs(n)===1?t:e}a(Wt,"plur");const tu=a(t=>Number.isFinite(t)?t:0,"toZeroIfInfinity");function Dk(t){return{days:Math.trunc(t/864e5),hours:Math.trunc(t/36e5%24),minutes:Math.trunc(t/6e4%60),seconds:Math.trunc(t/1e3%60),milliseconds:Math.trunc(t%1e3),microseconds:Math.trunc(tu(t*1e3)%1e3),nanoseconds:Math.trunc(tu(t*1e6)%1e3)}}a(Dk,"parseNumber");function Rk(t){return{days:t/86400000n,hours:t/3600000n%24n,minutes:t/60000n%60n,seconds:t/1000n%60n,milliseconds:t%1000n,microseconds:0n,nanoseconds:0n}}a(Rk,"parseBigint");function Fk(t){switch(typeof t){case"number":{if(Number.isFinite(t))return Dk(t);break}case"bigint":return Rk(t)}throw new TypeError("Expected a finite number or bigint")}a(Fk,"parseMilliseconds");const Mk=a(t=>t===0||t===0n,"isZero"),$k=a((t,e)=>e===1||e===1n?t:`${t}s`,"pluralize"),Bk=1e-7,qk=24n*60n*60n*1000n;function ds(t,e){const n=typeof t=="bigint";if(!n&&!Number.isFinite(t))throw new TypeError("Expected a finite number or bigint");e={...e},e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.unitCount=1,e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let r=[];const i=a((c,h)=>{const f=Math.floor(c*10**h+Bk);return(Math.round(f)/10**h).toFixed(h)},"floorDecimals"),s=a((c,h,f,p)=>{if(!((r.length===0||!e.colonNotation)&&Mk(c)&&!(e.colonNotation&&f==="m"))){if(p=p??String(c),e.colonNotation){const d=p.includes(".")?p.split(".")[0].length:p.length,m=r.length>0?2:1;p="0".repeat(Math.max(0,m-d))+p}else p+=e.verbose?" "+$k(h,c):f;r.push(p)}},"add"),o=Fk(t),l=BigInt(o.days);if(s(l/365n,"year","y"),s(l%365n,"day","d"),s(Number(o.hours),"hour","h"),s(Number(o.minutes),"minute","m"),e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3){const c=Number(o.seconds),h=Number(o.milliseconds),f=Number(o.microseconds),p=Number(o.nanoseconds);if(s(c,"second","s"),e.formatSubMilliseconds)s(h,"millisecond","ms"),s(f,"microsecond","\xB5s"),s(p,"nanosecond","ns");else{const d=h+f/1e3+p/1e6,m=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,g=d>=1?Math.round(d):Math.ceil(d),y=m?d.toFixed(m):g;s(Number.parseFloat(y),"millisecond","ms",y)}}else{const c=(n?Number(t%qk):t)/1e3%60,h=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,f=i(c,h),p=e.keepDecimalsOnWholeSeconds?f:f.replace(/\.0+$/,"");s(Number.parseFloat(p),"second","s",p)}if(r.length===0)return"0"+(e.verbose?" milliseconds":"ms");const u=e.colonNotation?":":" ";return typeof e.unitCount=="number"&&(r=r.slice(0,Math.max(e.unitCount,1))),r.join(u)}a(ds,"prettyMilliseconds");const nu={...ge};async function zk(t){const e=performance.now(),{ankiConnectOptions:n,ankiWeb:r,dryRun:i,namespace:s}=Ne(nu,t??{}),o=pt(s,!0),l=new pn(n);if(await An(l)==="ankiUnreachable")throw new Error("Anki is unreachable. Is Anki running?");const c=await hs(l,o);await Kl(l,c,i);const h=await Jl(l,[],c,i),f=await Zl(l,[],o,i),p=c.length>0||h.length>0;return!i&&r&&(p||ii)&&await ps(l),{ankiWeb:r,deletedDecks:h,deletedMedia:f,deletedNotes:c,dryRun:i,duration:performance.now()-e,namespace:o}}a(zk,"cleanNotes");function Uk(t,e=!1){const n=t.deletedDecks.length,r=t.deletedNotes.length,i=t.deletedMedia.length;if(n===0&&r===0&&i===0)return"Nothing to delete";const s=[];if(s.push(`${t.dryRun?"Will":"Successfully"} deleted ${r} ${Wt("note",r)}, ${n} ${Wt("deck",n)}, and ${i} media ${Wt("asset",i)} from Anki${t.dryRun?"":` in ${ds(t.duration)}`}.`),e){if(r>0){s.push("",t.dryRun?"Notes to delete:":"Deleted notes:");for(const o of t.deletedNotes){const l=ri(us(o.fields.Front),50);s.push(` Note ID ${o.noteId} ${l}`)}}if(n>0){s.push("",t.dryRun?"Decks to delete:":"Deleted decks:");for(const o of t.deletedDecks)s.push(` ${o}`)}if(i>0){s.push("",t.dryRun?"Media assets to delete:":"Deleted media assets:");for(const o of t.deletedMedia)s.push(` ${o}`)}}return s.join(`
|
|
68
|
+
`)}a(Uk,"formatCleanResult");const ru={...ge};async function jk(t){const e=performance.now(),{ankiConnectOptions:n,namespace:r}=Ne(ru,t??{}),i=pt(r,!0),s=new pn(n);if(await An(s)==="ankiUnreachable")throw new Error("Anki is unreachable. Is Anki running?");const l=await hs(s,i);return{duration:performance.now()-e,namespace:i,notes:l}}a(jk,"listNotes");function Gk(t){if(t.notes.length===0)return"No notes found.";const e=[];for(const n of t.notes){const r=ri(us(n.fields.Front),50);e.push(`Note ID ${n.noteId} ${r}`)}return e.join(`
|
|
69
|
+
`)}a(Gk,"formatListResult");function iu(){return/[<>:"/\\|?*\u0000-\u001F]/g}a(iu,"filenameReservedRegex");function Hk(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}a(Hk,"windowsReservedNameRegex");const Vk=100,Wk=/^\.+(\\|\/)|^\.+$/,Kk=/\.+$/;function Yk(t,e={}){const n=/[\u0000-\u001F\u0080-\u009F]/g,r=/([<>:"/\\|?*\u0000-\u001F]){2,}/g;if(typeof t!="string")throw new TypeError("Expected a string");const i=e.replacement===void 0?"!":e.replacement;if(iu().test(i)&&n.test(i))throw new Error("Replacement string cannot contain reserved filename characters");i.length>0&&(t=t.replace(r,"$1")),t=t.normalize("NFD"),t=t.replace(Wk,i),t=t.replace(iu(),i),t=t.replace(n,i),t=t.replace(Kk,""),i.length>0&&(!(t[0]===".")&&t[0]==="."&&(t=i+t),t[t.length-1]==="."&&(t+=i)),t=Hk().test(t)?t+i:t;const s=typeof e.maxLength=="number"?e.maxLength:Vk;if(t.length>s){const o=t.lastIndexOf(".");if(o===-1)t=t.slice(0,s);else{const l=t.slice(0,o),u=t.slice(o);t=l.slice(0,Math.max(1,s-u.length))+u}}return t}a(Yk,"filenamify");const Jk="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Qk=128;let kt,Kt;function Xk(t){!kt||kt.length<t?(kt=Buffer.allocUnsafe(t*Qk),yo.getRandomValues(kt),Kt=0):Kt+t>kt.length&&(yo.getRandomValues(kt),Kt=0),Kt+=t}a(Xk,"fillPool");function Zk(t=21){Xk(t-=0);let e="";for(let n=Kt-t;n<Kt;n++)e+=Jk[kt[n]&63];return e}a(Zk,"nanoid");function e1(t,e,n){if(e==="off")throw new Error("manageFilenames must not be off");switch(t.modelName){case"Yanki - Basic":case"Yanki - Basic (and reversed card)":case"Yanki - Basic (type in the answer)":{const r=Dt(lt(t.fields.Front).replace(Kn,"").replace(Yn,"")),i=Dt(lt(t.fields.Back).replace(Kn,"").replace(Yn,""));switch(e){case"prompt":return lt(r??i??"",n);case"response":return lt(i??r??"",n)}}case"Yanki - Cloze":{const r=Dt(lt(t.fields.Front).replace(Kn,"").replace(Yn,""));if(r===void 0)return lt("",n);const i=Dt(r.split("{{").at(0)??""),s=Dt(/{{\w\d*::([^:}]+)/.exec(r)?.at(0)),o=Dt(r.split("}}").at(1)?.split("{{").at(0)??"");switch(e){case"prompt":return lt(i??o??s??"",n);case"response":return lt(s??i??o??"",n)}}}}a(e1,"getSafeTitleForNote");function lt(t,e){let n=Yk(us(t).trim(),{maxLength:Number.MAX_SAFE_INTEGER,replacement:" "}).replaceAll(/\s+/g," ").trim();if(n.length===0&&(n=Yn),e===void 0)return n;const r=Math.min(e,So-12);return ri(n,r)}a(lt,"getSafeFilename");function t1(t,e){let n=ms(t,1),r=2;for(;e.includes(n.toLowerCase());)n=ms(t,r),r++;return n}a(t1,"getUniqueFilePath");function n1(t,e){const n=ms(t,2);return e.includes(n.toLowerCase())?t:su(t)}a(n1,"auditUniqueFilePath");function su(t){const e=t.endsWith(".")||t.endsWith(")")?void 0:W.extname(t),n=W.basename(t,e).replace(/\s\(\d+\)$/,"");return W.join(W.dirname(t),`${n}${e??""}`)}a(su,"stripFilenameIncrement");function ms(t,e){const n=W.extname(t),r=W.basename(t,n),i=`${su(r)} (${e})`;return W.join(W.dirname(t),`${i}${n}`)}a(ms,"appendFilenameIncrement");function r1(t){return`${t}-${Zk(8)}`}a(r1,"getTemporarilyUniqueFilePath");function ou(t,e,n){const i=st((n||{}).ignore||[]),s=i1(e);let o=-1;for(;++o<s.length;)Ma(t,"text",l);function l(c,h){let f=-1,p;for(;++f<h.length;){const d=h[f],m=p?p.children:void 0;if(i(d,m?m.indexOf(d):void 0,p))return;p=d}if(p)return u(c,h)}a(l,"visitor");function u(c,h){const f=h[h.length-1],p=s[o][0],d=s[o][1];let m=0;const y=f.children.indexOf(c);let b=!1,w=[];p.lastIndex=0;let k=p.exec(c.value);for(;k;){const _=k.index,C={index:k.index,input:k.input,stack:[...h,c]};let S=d(...k,C);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?p.lastIndex=_+1:(m!==_&&w.push({type:"text",value:c.value.slice(m,_)}),Array.isArray(S)?w.push(...S):S&&w.push(S),m=_+k[0].length,b=!0),!p.global)break;k=p.exec(c.value)}return b?(m<c.value.length&&w.push({type:"text",value:c.value.slice(m)}),f.children.splice(y,1,...w)):w=[c],y+w.length}a(u,"handler")}a(ou,"findAndReplace");function i1(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<n.length;){const i=n[r];e.push([s1(i[0]),o1(i[1])])}return e}a(i1,"toPairs");function s1(t){return typeof t=="string"?new RegExp(mn(t),"g"):t}a(s1,"toExpression");function o1(t){return typeof t=="function"?t:function(){return t}}a(o1,"toFunction");const a1=a(function(t={}){const{automaticAlias:e=!1,obsidianVault:n}=t;return function(r){ou(r,[[/!\[\[([^\]]+)]]/g,function(i,s){const[o,l]=s.split("|");return V("image",{altText:l,url:gn(o)?o:encodeURI(o)})}],[/\[\[([^\]]+)]]/g,function(i,s){let[o,l]=s.split("|");const u=o.split("#")?.at(-1);return l??=e?u??o.split("/").pop():o,o=n?`obsidian://open?vault=${encodeURIComponent(n)}&file=${encodeURIComponent(o)}.md`:gn(o)?o:encodeURI(o),V("link",{url:o},[V("text",l)])}]],{ignore:["link","image"]})}},"plugin$2"),l1=a(function(t,e,n,r,i){const s=st(r),o=[];if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index for start")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index for start");if(typeof n=="number"){if(n<0||n===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index for end")}else if(n=t.children.indexOf(n),n<0)throw new Error("Expected child node or index for end");for(;++e<n;)s(t.children[e],e,t)&&o.push(t.children[e]);return o},"findAllBetween"),u1=a(function(t,e,n){const r=st(n),i=[];let s=-1;if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(e>t.children.length&&(e=t.children.length);++s<e;)r(t.children[s],s,t)&&i.push(t.children[s]);return i},"findAllBefore"),c1=a(function(t,e,n){const r=st(n),i=[];if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<t.children.length;)r(t.children[e],e,t)&&i.push(t.children[e]);return i},"findAllAfter"),au={a:"amber",b:"blue",c:"cyan",d:"brown",e:"espresso",f:"fuchsia",g:"green",h:"hotpink",i:"indigo",j:"jade",k:"kiwi",l:"lime",m:"magenta",n:"navyblue",o:"orange",p:"purple",q:"pink",r:"red",s:"silver",t:"teal",u:"umber",v:"violet",w:"white",x:"gray",y:"yellow",z:"black"},f1={dictionary:au,markerTagName:"mark",markerClassName:"flexible-marker",actionForEmptyContent:"mark"},h1=/=([a-z]?)=(?![\s=])([\s\S]*?)(?<![\s=])==/,p1=/=([a-z]?)=(?![\s=])([\s\S]*?)(?<![\s=])==/g,d1=/=([a-z]?)=(?![\s]|=+\s)/,m1=/=([a-z]?)=(?![\s]|=+\s)/g,g1=/(?<!\s|\s=|\s==|\s===|\s====)==/,y1=/(?<!\s|\s=|\s==|\s===|\s====)==/g,b1=/=([a-z]?)=\s*==/,lu=/=([a-z]?)=\s*==/g;function w1(t){return t.filter(e=>!!e)}a(w1,"clsx");const k1=a(t=>{const e=Object.assign({},f1,t);t?.dictionary&&Object.keys(t.dictionary).length&&(e.dictionary=Object.assign({},au,t.dictionary));const n=a((l,u)=>{let c;const h=l?e.dictionary[l]:void 0,f=typeof e.markerTagName=="string"?e.markerTagName:e.markerTagName(h),p=typeof e.markerClassName=="function"?e.markerClassName(h):w1([e.markerClassName,!l&&`${e.markerClassName}-default`,h&&`${e.markerClassName}-${h}`,!u.length&&`${e.markerClassName}-empty`]);return e.markerProperties&&(c=e.markerProperties(h),Object.entries(c).forEach(([d,m])=>{(typeof m=="string"&&m===""||Array.isArray(m)&&m.length===0)&&c&&(c[d]=void 0),d==="className"&&delete c?.className})),{type:"mark",children:u,data:{hName:f,hProperties:{className:p,...c&&{...c}}}}},"constructMarkNode"),r=a(function(l,u,c){if(!c||typeof u>"u"||!h1.test(l.value))return;const h=[],f=l.value;let p="",d=0,m=0;const g=Array.from(f.matchAll(p1));for(let y=0;y<g.length;y++){const b=g[y],[w,k,_]=b,C=b.index,S=w.length,A=d+m;if(d=C,m=S,C>A){const P=f.substring(A,C),N=V("text",P);h.push(N)}const E=n(k,[{type:"text",value:_.trim()}]);h.push(E),p=f.slice(C+S)}if(p){const y=V("text",p);h.push(y)}h.length&&c.children.splice(u,1,...h)},"visitorFirst"),i=a(function(l,u,c){if(!c||typeof u>"u"||!d1.test(l.value))return;const h=l,f=Oi(c,h,function(R){return R.type==="text"&&g1.test(R.value)});if(!f)return;const p=u1(c,h),d=l1(c,h,f),m=c1(c,f),g=h.value,y=Array.from(g.matchAll(m1))[0],[b,w]=y,k=b.length,_=y.index;if(_>0){const R=g.substring(0,_),O=V("text",R);p.push(O)}if(g.length>_+k){const R=g.slice(_+k),O=V("text",R);d.unshift(O)}const C=f.value,S=Array.from(C.matchAll(y1))[0],[A]=S,E=A.length,P=S.index;if(P>0){const R=C.substring(0,P),O=V("text",R);d.push(O)}if(C.length>P+E){const R=C.slice(P+E),O=V("text",R);m.unshift(O)}const N=n(w,d);return c.children=[...p,N,...m],u},"visitorSecond"),s=a(function(l,u,c){if(!c||typeof u>"u"||!b1.test(l.value))return;if(e.actionForEmptyContent==="remove")return l.value=l.value.replaceAll(lu,""),l.value.trim()===""?[Ti,u]:Ce;const h=[],f=l.value;let p="",d=0,m=0;const g=Array.from(f.matchAll(lu));for(let y=0;y<g.length;y++){const b=g[y],[w,k]=b,_=b.index,C=w.length,S=d+m;if(d=_,m=C,_>S){const E=f.substring(S,_),P=V("text",E);h.push(P)}const A=n(k,[]);h.push(A),p=f.slice(_+C)}if(p){const y=V("text",p);h.push(y)}h.length&&c.children.splice(u,1,...h)},"visitorThird");return a(l=>{if(ee(l,"text",r),ee(l,"text",i),e.actionForEmptyContent!=="keep"&&ee(l,"text",s),e.equalityOperator){const u=new RegExp(e.equalityOperator,"gi");ee(l,"text",c=>{c.value=c.value.replaceAll(u,"==")})}},"transformer")},"plugin$1");var uu={exports:{}};(function(t){(function(){var e;e=t.exports=i,e.format=i,e.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}a(n,"printf");function r(s,o){return i.apply(null,[s].concat(o))}a(r,"vsprintf");function i(s){for(var o=1,l=[].slice.call(arguments),u=0,c=s.length,h="",f,p=!1,d,m,g=!1,y,b=a(function(){return l[o++]},"nextArg"),w=a(function(){for(var k="";/\d/.test(s[u]);)k+=s[u++],f=s[u];return k.length>0?parseInt(k):null},"slurpNumber");u<c;++u)if(f=s[u],p)switch(p=!1,f=="."?(g=!1,f=s[++u]):f=="0"&&s[u+1]=="."?(g=!0,u+=2,f=s[u]):g=!0,y=w(),f){case"b":h+=parseInt(b(),10).toString(2);break;case"c":d=b(),typeof d=="string"||d instanceof String?h+=d:h+=String.fromCharCode(parseInt(d,10));break;case"d":h+=parseInt(b(),10);break;case"f":m=String(parseFloat(b()).toFixed(y||6)),h+=g?m:m.replace(/^0/,"");break;case"j":h+=JSON.stringify(b());break;case"o":h+="0"+parseInt(b(),10).toString(8);break;case"s":h+=b();break;case"x":h+="0x"+parseInt(b(),10).toString(16);break;case"X":h+="0x"+parseInt(b(),10).toString(16).toUpperCase();break;default:h+=f;break}else f==="%"?p=!0:h+=f;return h}a(i,"format")})()})(uu);var S1=uu.exports,x1=Ji(S1);const Tr=Object.assign(St(Error),{eval:St(EvalError),range:St(RangeError),reference:St(ReferenceError),syntax:St(SyntaxError),type:St(TypeError),uri:St(URIError)});function St(t){return e.displayName=t.displayName||t.name,e;function e(n,...r){const i=n&&x1(n,...r);return new t(i)}a(e,"FormattedError")}a(St,"create");const Ir={}.hasOwnProperty,cu={yaml:"-",toml:"+"};function gs(t){const e=[];let n=-1;const r=Array.isArray(t)?t:t?[t]:["yaml"];for(;++n<r.length;)e[n]=v1(r[n]);return e}a(gs,"toMatters");function v1(t){let e=t;if(typeof e=="string"){if(!Ir.call(cu,e))throw Tr("Missing matter definition for `%s`",e);e={type:e,marker:cu[e]}}else if(typeof e!="object")throw Tr("Expected matter to be an object, not `%j`",e);if(!Ir.call(e,"type"))throw Tr("Missing `type` in matter `%j`",e);if(!Ir.call(e,"fence")&&!Ir.call(e,"marker"))throw Tr("Missing `marker` or `fence` in matter `%j`",e);return e}a(v1,"matter");function _1(t){const e=gs(t),n={};let r=-1;for(;++r<e.length;){const i=e[r],s=ys(i,"open").charCodeAt(0),o=C1(i),l=n[s];Array.isArray(l)?l.push(o):n[s]=[o]}return{flow:n}}a(_1,"frontmatter");function C1(t){const e=t.anywhere,n=t.type,r=n+"Fence",i=r+"Sequence",s=n+"Value",o={tokenize:h,partial:!0};let l,u=0;return{tokenize:c,concrete:!0};function c(f,p,d){const m=this;return g;function g(A){const E=m.now();return E.column===1&&(E.line===1||e)&&(l=ys(t,"open"),u=0,A===l.charCodeAt(u))?(f.enter(n),f.enter(r),f.enter(i),y(A)):d(A)}function y(A){return u===l.length?(f.exit(i),q(A)?(f.enter("whitespace"),b(A)):w(A)):A===l.charCodeAt(u++)?(f.consume(A),y):d(A)}function b(A){return q(A)?(f.consume(A),b):(f.exit("whitespace"),w(A))}function w(A){return F(A)?(f.exit(r),f.enter("lineEnding"),f.consume(A),f.exit("lineEnding"),l=ys(t,"close"),u=0,f.attempt(o,S,k)):d(A)}function k(A){return A===null||F(A)?C(A):(f.enter(s),_(A))}function _(A){return A===null||F(A)?(f.exit(s),C(A)):(f.consume(A),_)}function C(A){return A===null?d(A):(f.enter("lineEnding"),f.consume(A),f.exit("lineEnding"),f.attempt(o,S,k))}function S(A){return f.exit(n),p(A)}}function h(f,p,d){let m=0;return g;function g(k){return k===l.charCodeAt(m)?(f.enter(r),f.enter(i),y(k)):d(k)}function y(k){return m===l.length?(f.exit(i),q(k)?(f.enter("whitespace"),b(k)):w(k)):k===l.charCodeAt(m++)?(f.consume(k),y):d(k)}function b(k){return q(k)?(f.consume(k),b):(f.exit("whitespace"),w(k))}function w(k){return k===null||F(k)?(f.exit(r),p(k)):d(k)}}}a(C1,"createConstruct");function ys(t,e){return t.marker?fu(t.marker,e).repeat(3):fu(t.fence,e)}a(ys,"fence$1");function fu(t,e){return typeof t=="string"?t:t[e]}a(fu,"pick$1");function N1(t){const e=gs(t),n={},r={};let i=-1;for(;++i<e.length;){const s=e[i];n[s.type]=A1(s),r[s.type]=E1,r[s.type+"Value"]=T1}return{enter:n,exit:r}}a(N1,"frontmatterFromMarkdown");function A1(t){return e;function e(n){this.enter({type:t.type,value:""},n),this.buffer()}}a(A1,"opener");function E1(t){const e=this.resume(),n=this.stack[this.stack.length-1];this.exit(t),n.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}a(E1,"close");function T1(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}a(T1,"value");function I1(t){const e=[],n={},r=gs(t);let i=-1;for(;++i<r.length;){const s=r[i];n[s.type]=L1(s);const o=bs(s,"open");e.push({atBreak:!0,character:o.charAt(0),after:mn(o.charAt(1))})}return{unsafe:e,handlers:n}}a(I1,"frontmatterToMarkdown");function L1(t){const e=bs(t,"open"),n=bs(t,"close");return r;function r(i){return e+(i.value?`
|
|
69
70
|
`+i.value:"")+`
|
|
70
|
-
`+n}}a(
|
|
71
|
-
`)}a(
|
|
72
|
-
`&&
|
|
73
|
-
`}a(
|
|
71
|
+
`+n}}a(L1,"handler");function bs(t,e){return t.marker?hu(t.marker,e).repeat(3):hu(t.fence,e)}a(bs,"fence");function hu(t,e){return typeof t=="string"?t:t[e]}a(hu,"pick");const O1="yaml";function P1(t){const e=this,n=t||O1,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(_1(n)),s.push(N1(n)),o.push(I1(n))}a(P1,"remarkFrontmatter");const ws="phrasing",ks=["autolink","link","image","label"];function D1(){return{transforms:[z1],enter:{literalAutolink:F1,literalAutolinkEmail:Ss,literalAutolinkHttp:Ss,literalAutolinkWww:Ss},exit:{literalAutolink:q1,literalAutolinkEmail:B1,literalAutolinkHttp:M1,literalAutolinkWww:$1}}}a(D1,"gfmAutolinkLiteralFromMarkdown");function R1(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ws,notInConstruct:ks},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ws,notInConstruct:ks},{character:":",before:"[ps]",after:"\\/",inConstruct:ws,notInConstruct:ks}]}}a(R1,"gfmAutolinkLiteralToMarkdown");function F1(t){this.enter({type:"link",title:null,url:"",children:[]},t)}a(F1,"enterLiteralAutolink");function Ss(t){this.config.enter.autolinkProtocol.call(this,t)}a(Ss,"enterLiteralAutolinkValue");function M1(t){this.config.exit.autolinkProtocol.call(this,t)}a(M1,"exitLiteralAutolinkHttp");function $1(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}a($1,"exitLiteralAutolinkWww");function B1(t){this.config.exit.autolinkEmail.call(this,t)}a(B1,"exitLiteralAutolinkEmail");function q1(t){this.exit(t)}a(q1,"exitLiteralAutolink");function z1(t){ou(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,U1],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,j1]],{ignore:["link","linkReference"]})}a(z1,"transformGfmAutolinkLiterals");function U1(t,e,n,r,i){let s="";if(!pu(i)||(/^w/i.test(e)&&(n=e+n,e="",s="http://"),!G1(n)))return!1;const o=H1(n+r);if(!o[0])return!1;const l={type:"link",title:null,url:s+e+o[0],children:[{type:"text",value:e+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}a(U1,"findUrl");function j1(t,e,n,r){return!pu(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}a(j1,"findEmail");function G1(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}a(G1,"isCorrectDomain");function H1(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],r=n.indexOf(")");const i=mr(t,"(");let s=mr(t,")");for(;r!==-1&&i>s;)t+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[t,n]}a(H1,"splitUrl");function pu(t,e){const n=t.input.charCodeAt(t.index-1);return(t.index===0||wt(n)||br(n))&&(!e||n!==47)}a(pu,"previous$2");function Ue(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}a(Ue,"normalizeIdentifier"),du.peek=nS;function V1(){return{enter:{gfmFootnoteDefinition:K1,gfmFootnoteDefinitionLabelString:Y1,gfmFootnoteCall:X1,gfmFootnoteCallString:Z1},exit:{gfmFootnoteDefinition:Q1,gfmFootnoteDefinitionLabelString:J1,gfmFootnoteCall:tS,gfmFootnoteCallString:eS}}}a(V1,"gfmFootnoteFromMarkdown");function W1(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:rS,footnoteReference:du}}}a(W1,"gfmFootnoteToMarkdown");function K1(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}a(K1,"enterFootnoteDefinition");function Y1(){this.buffer()}a(Y1,"enterFootnoteDefinitionLabelString");function J1(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=e,n.identifier=Ue(this.sliceSerialize(t)).toLowerCase()}a(J1,"exitFootnoteDefinitionLabelString");function Q1(t){this.exit(t)}a(Q1,"exitFootnoteDefinition");function X1(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}a(X1,"enterFootnoteCall");function Z1(){this.buffer()}a(Z1,"enterFootnoteCallString");function eS(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=e,n.identifier=Ue(this.sliceSerialize(t)).toLowerCase()}a(eS,"exitFootnoteCallString");function tS(t){this.exit(t)}a(tS,"exitFootnoteCall");function du(t,e,n,r){const i=n.createTracker(r);let s=i.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return s+=i.move(n.safe(n.associationId(t),{...i.current(),before:s,after:"]"})),l(),o(),s+=i.move("]"),s}a(du,"footnoteReference");function nS(){return"["}a(nS,"footnoteReferencePeek");function rS(t,e,n,r){const i=n.createTracker(r);let s=i.move("[^");const o=n.enter("footnoteDefinition"),l=n.enter("label");return s+=i.move(n.safe(n.associationId(t),{...i.current(),before:s,after:"]"})),l(),s+=i.move("]:"+(t.children&&t.children.length>0?" ":"")),i.shift(4),s+=i.move(n.indentLines(n.containerFlow(t,i.current()),iS)),o(),s}a(rS,"footnoteDefinition");function iS(t,e,n){return e===0?t:(n?"":" ")+t}a(iS,"map$3");const sS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];mu.peek=cS;function oS(){return{canContainEols:["delete"],enter:{strikethrough:lS},exit:{strikethrough:uS}}}a(oS,"gfmStrikethroughFromMarkdown");function aS(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:sS}],handlers:{delete:mu}}}a(aS,"gfmStrikethroughToMarkdown");function lS(t){this.enter({type:"delete",children:[]},t)}a(lS,"enterStrikethrough");function uS(t){this.exit(t)}a(uS,"exitStrikethrough");function mu(t,e,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(t,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),s(),o}a(mu,"handleDelete");function cS(){return"~"}a(cS,"peekDelete");function fS(t,e={}){const n=(e.align||[]).concat(),r=e.stringLength||pS,i=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<t.length;){const m=[],g=[];let y=-1;for(t[c].length>u&&(u=t[c].length);++y<t[c].length;){const b=hS(t[c][y]);if(e.alignDelimiters!==!1){const w=r(b);g[y]=w,(l[y]===void 0||w>l[y])&&(l[y]=w)}m.push(b)}s[c]=m,o[c]=g}let h=-1;if(typeof n=="object"&&"length"in n)for(;++h<u;)i[h]=gu(n[h]);else{const m=gu(n);for(;++h<u;)i[h]=m}h=-1;const f=[],p=[];for(;++h<u;){const m=i[h];let g="",y="";m===99?(g=":",y=":"):m===108?g=":":m===114&&(y=":");let b=e.alignDelimiters===!1?1:Math.max(1,l[h]-g.length-y.length);const w=g+"-".repeat(b)+y;e.alignDelimiters!==!1&&(b=g.length+b+y.length,b>l[h]&&(l[h]=b),p[h]=b),f[h]=w}s.splice(1,0,f),o.splice(1,0,p),c=-1;const d=[];for(;++c<s.length;){const m=s[c],g=o[c];h=-1;const y=[];for(;++h<u;){const b=m[h]||"";let w="",k="";if(e.alignDelimiters!==!1){const _=l[h]-(g[h]||0),C=i[h];C===114?w=" ".repeat(_):C===99?_%2?(w=" ".repeat(_/2+.5),k=" ".repeat(_/2-.5)):(w=" ".repeat(_/2),k=w):k=" ".repeat(_)}e.delimiterStart!==!1&&!h&&y.push("|"),e.padding!==!1&&!(e.alignDelimiters===!1&&b==="")&&(e.delimiterStart!==!1||h)&&y.push(" "),e.alignDelimiters!==!1&&y.push(w),y.push(b),e.alignDelimiters!==!1&&y.push(k),e.padding!==!1&&y.push(" "),(e.delimiterEnd!==!1||h!==u-1)&&y.push("|")}d.push(e.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return d.join(`
|
|
72
|
+
`)}a(fS,"markdownTable");function hS(t){return t==null?"":String(t)}a(hS,"serialize");function pS(t){return t.length}a(pS,"defaultStringLength");function gu(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}a(gu,"toAlignment");function dS(t,e,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(t,s.current()),mS);return i(),o}a(dS,"blockquote");function mS(t,e,n){return">"+(n?"":" ")+t}a(mS,"map$2");function gS(t,e){return yu(t,e.inConstruct,!0)&&!yu(t,e.notInConstruct,!1)}a(gS,"patternInScope");function yu(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}a(yu,"listInScope");function bu(t,e,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
73
|
+
`&&gS(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
74
|
+
`}a(bu,"hardBreak");function wu(t,e){const n=String(t);let r=n.indexOf(e),i=r,s=0,o=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>o&&(o=s):s=1,i=r+e.length,r=n.indexOf(e,i);return o}a(wu,"longestStreak");function yS(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}a(yS,"formatCodeAsIndented");function bS(t){const e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}a(bS,"checkFence");function wS(t,e,n,r){const i=bS(n),s=t.value||"",o=i==="`"?"GraveAccent":"Tilde";if(yS(t,n)){const f=n.enter("codeIndented"),p=n.indentLines(s,kS);return f(),p}const l=n.createTracker(r),u=i.repeat(Math.max(wu(s,i)+1,3)),c=n.enter("codeFenced");let h=l.move(u);if(t.lang){const f=n.enter(`codeFencedLang${o}`);h+=l.move(n.safe(t.lang,{before:h,after:" ",encode:["`"],...l.current()})),f()}if(t.lang&&t.meta){const f=n.enter(`codeFencedMeta${o}`);h+=l.move(" "),h+=l.move(n.safe(t.meta,{before:h,after:`
|
|
74
75
|
`,encode:["`"],...l.current()})),f()}return h+=l.move(`
|
|
75
76
|
`),s&&(h+=l.move(s+`
|
|
76
|
-
`)),h+=l.move(u),c(),h}a(
|
|
77
|
-
`,...u.current()}))),l(),t.title&&(l=n.enter(`title${s}`),c+=u.move(" "+i),c+=u.move(n.safe(t.title,{before:c,after:i,...u.current()})),c+=u.move(i),l()),o(),c}a(
|
|
77
|
+
`)),h+=l.move(u),c(),h}a(wS,"code$1");function kS(t,e,n){return(n?"":" ")+t}a(kS,"map$1");function xs(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}a(xs,"checkQuote");function SS(t,e,n,r){const i=xs(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const u=n.createTracker(r);let c=u.move("[");return c+=u.move(n.safe(n.associationId(t),{before:c,after:"]",...u.current()})),c+=u.move("]: "),l(),!t.url||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(t.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=n.enter("destinationRaw"),c+=u.move(n.safe(t.url,{before:c,after:t.title?" ":`
|
|
78
|
+
`,...u.current()}))),l(),t.title&&(l=n.enter(`title${s}`),c+=u.move(" "+i),c+=u.move(n.safe(t.title,{before:c,after:i,...u.current()})),c+=u.move(i),l()),o(),c}a(SS,"definition$1");function xS(t){const e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}a(xS,"checkEmphasis"),ku.peek=vS;function ku(t,e,n,r){const i=xS(n),s=n.enter("emphasis"),o=n.createTracker(r);let l=o.move(i);return l+=o.move(n.containerPhrasing(t,{before:l,after:i,...o.current()})),l+=o.move(i),s(),l}a(ku,"emphasis");function vS(t,e,n){return n.options.emphasis||"*"}a(vS,"emphasisPeek");const _S={};function vs(t,e){const n=_S,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Su(t,r,i)}a(vs,"toString");function Su(t,e,n){if(CS(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return xu(t.children,e,n)}return Array.isArray(t)?xu(t,e,n):""}a(Su,"one");function xu(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=Su(t[i],e,n);return r.join("")}a(xu,"all");function CS(t){return!!(t&&typeof t=="object")}a(CS,"node");function NS(t,e){let n=!1;return ee(t,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,He}),!!((!t.depth||t.depth<3)&&vs(t)&&(e.options.setext||n))}a(NS,"formatHeadingAsSetext");function AS(t,e,n,r){const i=Math.max(Math.min(6,t.depth||1),1),s=n.createTracker(r);if(NS(t,n)){const h=n.enter("headingSetext"),f=n.enter("phrasing"),p=n.containerPhrasing(t,{...s.current(),before:`
|
|
78
79
|
`,after:`
|
|
79
80
|
`});return f(),h(),p+`
|
|
80
81
|
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
81
82
|
`))+1))}const o="#".repeat(i),l=n.enter("headingAtx"),u=n.enter("phrasing");s.move(o+" ");let c=n.containerPhrasing(t,{before:"# ",after:`
|
|
82
|
-
`,...s.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),u(),l(),c}a(NS,"heading"),xu.peek=AS;function xu(t){return t.value||""}a(xu,"html");function AS(){return"<"}a(AS,"htmlPeek"),vu.peek=ES;function vu(t,e,n,r){const i=Ss(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const u=n.createTracker(r);let c=u.move("![");return c+=u.move(n.safe(t.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(t.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=n.enter("destinationRaw"),c+=u.move(n.safe(t.url,{before:c,after:t.title?" ":")",...u.current()}))),l(),t.title&&(l=n.enter(`title${s}`),c+=u.move(" "+i),c+=u.move(n.safe(t.title,{before:c,after:i,...u.current()})),c+=u.move(i),l()),c+=u.move(")"),o(),c}a(vu,"image");function ES(){return"!"}a(ES,"imagePeek"),_u.peek=TS;function _u(t,e,n,r){const i=t.referenceType,s=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");const c=n.safe(t.alt,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),o();const h=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(t),{before:u,after:"]",...l.current()});return o(),n.stack=h,s(),i==="full"||!c||c!==f?u+=l.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}a(_u,"imageReference");function TS(){return"!"}a(TS,"imageReferencePeek"),Cu.peek=IS;function Cu(t,e,n){let r=t.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const o=n.unsafe[s],l=n.compilePattern(o);let u;if(o.atBreak)for(;u=l.exec(r);){let c=u.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(u.index+1)}}return i+r+i}a(Cu,"inlineCode");function IS(){return"`"}a(IS,"inlineCodePeek");function Nu(t,e){const n=xs(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}a(Nu,"formatLinkAsAutolink"),Au.peek=LS;function Au(t,e,n,r){const i=Ss(n),s=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let l,u;if(Nu(t,n)){const h=n.stack;n.stack=[],l=n.enter("autolink");let f=o.move("<");return f+=o.move(n.containerPhrasing(t,{before:f,after:">",...o.current()})),f+=o.move(">"),l(),n.stack=h,f}l=n.enter("link"),u=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(t,{before:c,after:"](",...o.current()})),c+=o.move("]("),u(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(u=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(t.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(u=n.enter("destinationRaw"),c+=o.move(n.safe(t.url,{before:c,after:t.title?" ":")",...o.current()}))),u(),t.title&&(u=n.enter(`title${s}`),c+=o.move(" "+i),c+=o.move(n.safe(t.title,{before:c,after:i,...o.current()})),c+=o.move(i),u()),c+=o.move(")"),l(),c}a(Au,"link");function LS(t,e,n){return Nu(t,n)?"<":"["}a(LS,"linkPeek"),Eu.peek=OS;function Eu(t,e,n,r){const i=t.referenceType,s=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");const c=n.containerPhrasing(t,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),o();const h=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(t),{before:u,after:"]",...l.current()});return o(),n.stack=h,s(),i==="full"||!c||c!==f?u+=l.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}a(Eu,"linkReference");function OS(){return"["}a(OS,"linkReferencePeek");function vs(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}a(vs,"checkBullet");function PS(t){const e=vs(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}a(PS,"checkBulletOther");function DS(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}a(DS,"checkBulletOrdered");function Tu(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}a(Tu,"checkRule");function RS(t,e,n,r){const i=n.enter("list"),s=n.bulletCurrent;let o=t.ordered?DS(n):vs(n);const l=t.ordered?o==="."?")":".":PS(n);let u=e&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!t.ordered){const h=t.children?t.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Tu(n)===o&&h){let f=-1;for(;++f<t.children.length;){const p=t.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=l),n.bulletCurrent=o;const c=n.containerFlow(t,r);return n.bulletLastUsed=o,n.bulletCurrent=s,i(),c}a(RS,"list$1");function FS(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}a(FS,"checkListItemIndent");function MS(t,e,n,r){const i=FS(n);let s=n.bulletCurrent||vs(n);e&&e.type==="list"&&e.ordered&&(s=(typeof e.start=="number"&&e.start>-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+s);let o=s.length+1;(i==="tab"||i==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(r);l.move(s+" ".repeat(o-s.length)),l.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(t,l.current()),h);return u(),c;function h(f,p,d){return p?(d?"":" ".repeat(o))+f:(d?s:s+" ".repeat(o-s.length))+f}a(h,"map")}a(MS,"listItem");function $S(t,e,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(t,r);return s(),i(),o}a($S,"paragraph");const BS=st(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function qS(t,e,n,r){return(t.children.some(function(o){return BS(o)})?n.containerPhrasing:n.containerFlow).call(n,t,r)}a(qS,"root");function zS(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}a(zS,"checkStrong"),Iu.peek=US;function Iu(t,e,n,r){const i=zS(n),s=n.enter("strong"),o=n.createTracker(r);let l=o.move(i+i);return l+=o.move(n.containerPhrasing(t,{before:l,after:i,...o.current()})),l+=o.move(i+i),s(),l}a(Iu,"strong");function US(t,e,n){return n.options.strong||"*"}a(US,"strongPeek");function jS(t,e,n,r){return n.safe(t.value,r)}a(jS,"text$3");function GS(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}a(GS,"checkRuleRepetition");function HS(t,e,n){const r=(Tu(n)+(n.options.ruleSpaces?" ":"")).repeat(GS(n));return n.options.ruleSpaces?r.slice(0,-1):r}a(HS,"thematicBreak$1");const Lu={blockquote:pS,break:yu,code:bS,definition:kS,emphasis:wu,hardBreak:yu,heading:NS,html:xu,image:vu,imageReference:_u,inlineCode:Cu,link:Au,linkReference:Eu,list:RS,listItem:MS,paragraph:$S,root:qS,strong:Iu,text:jS,thematicBreak:HS},Ou={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
83
|
-
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},VS={}.hasOwnProperty;function _s(t){return VS.call(Ou,t)?Ou[t]:!1}a(_s,"decodeNamedCharacterReference");function Pu(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}a(Pu,"decodeNumericCharacterReference");const WS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function KS(t){return t.replace(WS,YS)}a(KS,"decodeString");function YS(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return Pu(n.slice(s?2:1),s?16:10)}return _s(n)||t}a(YS,"decode");function JS(){return{enter:{table:QS,tableData:Du,tableHeader:Du,tableRow:ZS},exit:{codeText:ex,table:XS,tableData:Cs,tableHeader:Cs,tableRow:Cs}}}a(JS,"gfmTableFromMarkdown");function QS(t){const e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}a(QS,"enterTable");function XS(t){this.exit(t),this.data.inTable=void 0}a(XS,"exitTable");function ZS(t){this.enter({type:"tableRow",children:[]},t)}a(ZS,"enterRow");function Cs(t){this.exit(t)}a(Cs,"exit$1");function Du(t){this.enter({type:"tableCell",children:[]},t)}a(Du,"enterCell");function ex(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,tx));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}a(ex,"exitCodeText");function tx(t,e){return e==="|"?e:t}a(tx,"replace");function nx(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,i=e.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
83
|
+
`,...s.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),u(),l(),c}a(AS,"heading"),vu.peek=ES;function vu(t){return t.value||""}a(vu,"html");function ES(){return"<"}a(ES,"htmlPeek"),_u.peek=TS;function _u(t,e,n,r){const i=xs(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const u=n.createTracker(r);let c=u.move("![");return c+=u.move(n.safe(t.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(t.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=n.enter("destinationRaw"),c+=u.move(n.safe(t.url,{before:c,after:t.title?" ":")",...u.current()}))),l(),t.title&&(l=n.enter(`title${s}`),c+=u.move(" "+i),c+=u.move(n.safe(t.title,{before:c,after:i,...u.current()})),c+=u.move(i),l()),c+=u.move(")"),o(),c}a(_u,"image");function TS(){return"!"}a(TS,"imagePeek"),Cu.peek=IS;function Cu(t,e,n,r){const i=t.referenceType,s=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");const c=n.safe(t.alt,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),o();const h=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(t),{before:u,after:"]",...l.current()});return o(),n.stack=h,s(),i==="full"||!c||c!==f?u+=l.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}a(Cu,"imageReference");function IS(){return"!"}a(IS,"imageReferencePeek"),Nu.peek=LS;function Nu(t,e,n){let r=t.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const o=n.unsafe[s],l=n.compilePattern(o);let u;if(o.atBreak)for(;u=l.exec(r);){let c=u.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(u.index+1)}}return i+r+i}a(Nu,"inlineCode");function LS(){return"`"}a(LS,"inlineCodePeek");function Au(t,e){const n=vs(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}a(Au,"formatLinkAsAutolink"),Eu.peek=OS;function Eu(t,e,n,r){const i=xs(n),s=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let l,u;if(Au(t,n)){const h=n.stack;n.stack=[],l=n.enter("autolink");let f=o.move("<");return f+=o.move(n.containerPhrasing(t,{before:f,after:">",...o.current()})),f+=o.move(">"),l(),n.stack=h,f}l=n.enter("link"),u=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(t,{before:c,after:"](",...o.current()})),c+=o.move("]("),u(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(u=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(t.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(u=n.enter("destinationRaw"),c+=o.move(n.safe(t.url,{before:c,after:t.title?" ":")",...o.current()}))),u(),t.title&&(u=n.enter(`title${s}`),c+=o.move(" "+i),c+=o.move(n.safe(t.title,{before:c,after:i,...o.current()})),c+=o.move(i),u()),c+=o.move(")"),l(),c}a(Eu,"link");function OS(t,e,n){return Au(t,n)?"<":"["}a(OS,"linkPeek"),Tu.peek=PS;function Tu(t,e,n,r){const i=t.referenceType,s=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");const c=n.containerPhrasing(t,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),o();const h=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(t),{before:u,after:"]",...l.current()});return o(),n.stack=h,s(),i==="full"||!c||c!==f?u+=l.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}a(Tu,"linkReference");function PS(){return"["}a(PS,"linkReferencePeek");function _s(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}a(_s,"checkBullet");function DS(t){const e=_s(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}a(DS,"checkBulletOther");function RS(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}a(RS,"checkBulletOrdered");function Iu(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}a(Iu,"checkRule");function FS(t,e,n,r){const i=n.enter("list"),s=n.bulletCurrent;let o=t.ordered?RS(n):_s(n);const l=t.ordered?o==="."?")":".":DS(n);let u=e&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!t.ordered){const h=t.children?t.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Iu(n)===o&&h){let f=-1;for(;++f<t.children.length;){const p=t.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=l),n.bulletCurrent=o;const c=n.containerFlow(t,r);return n.bulletLastUsed=o,n.bulletCurrent=s,i(),c}a(FS,"list$1");function MS(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}a(MS,"checkListItemIndent");function $S(t,e,n,r){const i=MS(n);let s=n.bulletCurrent||_s(n);e&&e.type==="list"&&e.ordered&&(s=(typeof e.start=="number"&&e.start>-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+s);let o=s.length+1;(i==="tab"||i==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(r);l.move(s+" ".repeat(o-s.length)),l.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(t,l.current()),h);return u(),c;function h(f,p,d){return p?(d?"":" ".repeat(o))+f:(d?s:s+" ".repeat(o-s.length))+f}a(h,"map")}a($S,"listItem");function BS(t,e,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(t,r);return s(),i(),o}a(BS,"paragraph");const qS=st(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function zS(t,e,n,r){return(t.children.some(function(o){return qS(o)})?n.containerPhrasing:n.containerFlow).call(n,t,r)}a(zS,"root");function US(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}a(US,"checkStrong"),Lu.peek=jS;function Lu(t,e,n,r){const i=US(n),s=n.enter("strong"),o=n.createTracker(r);let l=o.move(i+i);return l+=o.move(n.containerPhrasing(t,{before:l,after:i,...o.current()})),l+=o.move(i+i),s(),l}a(Lu,"strong");function jS(t,e,n){return n.options.strong||"*"}a(jS,"strongPeek");function GS(t,e,n,r){return n.safe(t.value,r)}a(GS,"text$3");function HS(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}a(HS,"checkRuleRepetition");function VS(t,e,n){const r=(Iu(n)+(n.options.ruleSpaces?" ":"")).repeat(HS(n));return n.options.ruleSpaces?r.slice(0,-1):r}a(VS,"thematicBreak$1");const Ou={blockquote:dS,break:bu,code:wS,definition:SS,emphasis:ku,hardBreak:bu,heading:AS,html:vu,image:_u,imageReference:Cu,inlineCode:Nu,link:Eu,linkReference:Tu,list:FS,listItem:$S,paragraph:BS,root:zS,strong:Lu,text:GS,thematicBreak:VS},Pu={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
84
|
+
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},WS={}.hasOwnProperty;function Cs(t){return WS.call(Pu,t)?Pu[t]:!1}a(Cs,"decodeNamedCharacterReference");function Du(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}a(Du,"decodeNumericCharacterReference");const KS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function YS(t){return t.replace(KS,JS)}a(YS,"decodeString");function JS(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return Du(n.slice(s?2:1),s?16:10)}return Cs(n)||t}a(JS,"decode");function QS(){return{enter:{table:XS,tableData:Ru,tableHeader:Ru,tableRow:ex},exit:{codeText:tx,table:ZS,tableData:Ns,tableHeader:Ns,tableRow:Ns}}}a(QS,"gfmTableFromMarkdown");function XS(t){const e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}a(XS,"enterTable");function ZS(t){this.exit(t),this.data.inTable=void 0}a(ZS,"exitTable");function ex(t){this.enter({type:"tableRow",children:[]},t)}a(ex,"enterRow");function Ns(t){this.exit(t)}a(Ns,"exit$1");function Ru(t){this.enter({type:"tableCell",children:[]},t)}a(Ru,"enterCell");function tx(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,nx));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}a(tx,"exitCodeText");function nx(t,e){return e==="|"?e:t}a(nx,"replace");function rx(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,i=e.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
84
85
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:u,tableRow:l}};function o(d,m,g,y){return c(h(d,g,y),d.align)}function l(d,m,g,y){const b=f(d,g,y),w=c([b]);return w.slice(0,w.indexOf(`
|
|
85
|
-
`))}function u(d,m,g,y){const b=g.enter("tableCell"),w=g.enter("phrasing"),k=g.containerPhrasing(d,{...y,before:s,after:s});return w(),b(),k}function c(d,m){return cS(d,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function h(d,m,g){const y=d.children;let b=-1;const w=[],k=m.enter("table");for(;++b<y.length;)w[b]=f(y[b],m,g);return k(),w}function f(d,m,g){const y=d.children;let b=-1;const w=[],k=m.enter("tableRow");for(;++b<y.length;)w[b]=u(y[b],d,m,g);return k(),w}function p(d,m,g){let y=Lu.inlineCode(d,m,g);return g.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}a(nx,"gfmTableToMarkdown");function rx(){return{exit:{taskListCheckValueChecked:Ru,taskListCheckValueUnchecked:Ru,paragraph:sx}}}a(rx,"gfmTaskListItemFromMarkdown");function ix(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ox}}}a(ix,"gfmTaskListItemToMarkdown");function Ru(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}a(Ru,"exitCheck");function sx(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=e.children;let s=-1,o;for(;++s<i.length;){const l=i[s];if(l.type==="paragraph"){o=l;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(t)}a(sx,"exitParagraphWithTaskListItem");function ox(t,e,n,r){const i=t.children[0],s=typeof t.checked=="boolean"&&i&&i.type==="paragraph",o="["+(t.checked?"x":" ")+"] ",l=n.createTracker(r);s&&l.move(o);let u=Lu.listItem(t,e,n,{...r,...l.current()});return s&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(h){return h+o}a(c,"check")}a(ox,"listItemWithTaskListItem");function ax(){return[P1(),H1(),sS(),JS(),rx()]}a(ax,"gfmFromMarkdown");function lx(t){return{extensions:[D1(),V1(),oS(),nx(t),ix()]}}a(lx,"gfmToMarkdown");function Ie(t,e,n,r){const i=t.length;let s=0,o;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(e,0),t.splice(...o),s+=1e4,e+=1e4}a(Ie,"splice");function Le(t,e){return t.length>0?(Ie(t,t.length,0,e),t):e}a(Le,"push");const Fu={}.hasOwnProperty;function Mu(t){const e={};let n=-1;for(;++n<t.length;)ux(e,t[n]);return e}a(Mu,"combineExtensions");function ux(t,e){let n;for(n in e){const i=(Fu.call(t,n)?t[n]:void 0)||(t[n]={}),s=e[n];let o;if(s)for(o in s){Fu.call(i,o)||(i[o]=[]);const l=s[o];cx(i[o],Array.isArray(l)?l:l?[l]:[])}}}a(ux,"syntaxExtension");function cx(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);Ie(t,0,0,r)}a(cx,"constructs");const fx={tokenize:yx,partial:!0},$u={tokenize:bx,partial:!0},Bu={tokenize:wx,partial:!0},qu={tokenize:kx,partial:!0},hx={tokenize:Sx,partial:!0},zu={tokenize:mx,previous:ju},Uu={tokenize:gx,previous:Gu},Ze={tokenize:dx,previous:Hu},We={};function px(){return{text:We}}a(px,"gfmAutolinkLiteral");let xt=48;for(;xt<123;)We[xt]=Ze,xt++,xt===58?xt=65:xt===91&&(xt=97);We[43]=Ze,We[45]=Ze,We[46]=Ze,We[95]=Ze,We[72]=[Ze,Uu],We[104]=[Ze,Uu],We[87]=[Ze,zu],We[119]=[Ze,zu];function dx(t,e,n){const r=this;let i,s;return o;function o(f){return!Ns(f)||!Hu.call(r,r.previous)||As(r.events)?n(f):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),l(f))}function l(f){return Ns(f)?(t.consume(f),l):f===64?(t.consume(f),u):n(f)}function u(f){return f===46?t.check(hx,h,c)(f):f===45||f===95||me(f)?(s=!0,t.consume(f),u):h(f)}function c(f){return t.consume(f),i=!0,u}function h(f){return s&&i&&ye(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(f)):n(f)}}a(dx,"tokenizeEmailAutolink");function mx(t,e,n){const r=this;return i;function i(o){return o!==87&&o!==119||!ju.call(r,r.previous)||As(r.events)?n(o):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(fx,t.attempt($u,t.attempt(Bu,s),n),n)(o))}function s(o){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(o)}}a(mx,"tokenizeWwwAutolink");function gx(t,e,n){const r=this;let i="",s=!1;return o;function o(f){return(f===72||f===104)&&Gu.call(r,r.previous)&&!As(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),t.consume(f),l):n(f)}function l(f){if(ye(f)&&i.length<5)return i+=String.fromCodePoint(f),t.consume(f),l;if(f===58){const p=i.toLowerCase();if(p==="http"||p==="https")return t.consume(f),u}return n(f)}function u(f){return f===47?(t.consume(f),s?c:(s=!0,u)):n(f)}function c(f){return f===null||yr(f)||J(f)||wt(f)||br(f)?n(f):t.attempt($u,t.attempt(Bu,h),n)(f)}function h(f){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(f)}}a(gx,"tokenizeProtocolAutolink");function yx(t,e,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,t.consume(o),i):o===46&&r===3?(t.consume(o),s):n(o)}function s(o){return o===null?n(o):e(o)}}a(yx,"tokenizeWwwPrefix");function bx(t,e,n){let r,i,s;return o;function o(c){return c===46||c===95?t.check(qu,u,l)(c):c===null||J(c)||wt(c)||c!==45&&br(c)?u(c):(s=!0,t.consume(c),o)}function l(c){return c===95?r=!0:(i=r,r=void 0),t.consume(c),o}function u(c){return i||r||!s?n(c):e(c)}}a(bx,"tokenizeDomain");function wx(t,e){let n=0,r=0;return i;function i(o){return o===40?(n++,t.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?t.check(qu,e,s)(o):o===null||J(o)||wt(o)?e(o):(t.consume(o),i)}function s(o){return o===41&&r++,t.consume(o),i}}a(wx,"tokenizePath");function kx(t,e,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(t.consume(l),r):l===38?(t.consume(l),s):l===93?(t.consume(l),i):l===60||l===null||J(l)||wt(l)?e(l):n(l)}function i(l){return l===null||l===40||l===91||J(l)||wt(l)?e(l):r(l)}function s(l){return ye(l)?o(l):n(l)}function o(l){return l===59?(t.consume(l),r):ye(l)?(t.consume(l),o):n(l)}}a(kx,"tokenizeTrail");function Sx(t,e,n){return r;function r(s){return t.consume(s),i}function i(s){return me(s)?n(s):e(s)}}a(Sx,"tokenizeEmailDomainDotTrail");function ju(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||J(t)}a(ju,"previousWww");function Gu(t){return!ye(t)}a(Gu,"previousProtocol");function Hu(t){return!(t===47||Ns(t))}a(Hu,"previousEmail");function Ns(t){return t===43||t===45||t===46||t===95||me(t)}a(Ns,"gfmAtext");function As(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}a(As,"previousUnbalanced");function Lr(t){if(t===null||J(t)||wt(t))return 1;if(br(t))return 2}a(Lr,"classifyCharacter");function Or(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const s=t[i].resolveAll;s&&!r.includes(s)&&(e=s(e,n),r.push(s))}return e}a(Or,"resolveAll");const Es={name:"attention",tokenize:vx,resolveAll:xx};function xx(t,e){let n=-1,r,i,s,o,l,u,c,h;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;u=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const f=Object.assign({},t[r][1].end),p=Object.assign({},t[n][1].start);Vu(f,-u),Vu(p,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},t[r][1].end)},l={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[n][1].start),end:p},s={type:u>1?"strongText":"emphasisText",start:Object.assign({},t[r][1].end),end:Object.assign({},t[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},t[r][1].end=Object.assign({},o.start),t[n][1].start=Object.assign({},l.end),c=[],t[r][1].end.offset-t[r][1].start.offset&&(c=Le(c,[["enter",t[r][1],e],["exit",t[r][1],e]])),c=Le(c,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",s,e]]),c=Le(c,Or(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),c=Le(c,[["exit",s,e],["enter",l,e],["exit",l,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(h=2,c=Le(c,[["enter",t[n][1],e],["exit",t[n][1],e]])):h=0,Ie(t,r-1,n-r+3,c),n=r+c.length-h-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}a(xx,"resolveAllAttention");function vx(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Lr(r);let s;return o;function o(u){return s=u,t.enter("attentionSequence"),l(u)}function l(u){if(u===s)return t.consume(u),l;const c=t.exit("attentionSequence"),h=Lr(u),f=!h||h===2&&i||n.includes(u),p=!i||i===2&&h||n.includes(r);return c._open=!!(s===42?f:f&&(i||!p)),c._close=!!(s===42?p:p&&(h||!f)),e(u)}}a(vx,"tokenizeAttention");function Vu(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}a(Vu,"movePoint");const _x={name:"autolink",tokenize:Cx};function Cx(t,e,n){let r=0;return i;function i(d){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(d){return ye(d)?(t.consume(d),o):d===64?n(d):c(d)}function o(d){return d===43||d===45||d===46||me(d)?(r=1,l(d)):c(d)}function l(d){return d===58?(t.consume(d),r=0,u):(d===43||d===45||d===46||me(d))&&r++<32?(t.consume(d),l):(r=0,c(d))}function u(d){return d===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.exit("autolink"),e):d===null||d===32||d===60||yr(d)?n(d):(t.consume(d),u)}function c(d){return d===64?(t.consume(d),h):uy(d)?(t.consume(d),c):n(d)}function h(d){return me(d)?f(d):n(d)}function f(d){return d===46?(t.consume(d),r=0,h):d===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.exit("autolink"),e):p(d)}function p(d){if((d===45||me(d))&&r++<63){const m=d===45?p:f;return t.consume(d),m}return n(d)}}a(Cx,"tokenizeAutolink");function U(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(u){return q(u)?(t.enter(n),l(u)):e(u)}function l(u){return q(u)&&s++<i?(t.consume(u),l):(t.exit(n),e(u))}}a(U,"factorySpace");const En={tokenize:Nx,partial:!0};function Nx(t,e,n){return r;function r(s){return q(s)?U(t,i,"linePrefix")(s):i(s)}function i(s){return s===null||F(s)?e(s):n(s)}}a(Nx,"tokenizeBlankLine");const Wu={name:"blockQuote",tokenize:Ax,continuation:{tokenize:Ex},exit:Tx};function Ax(t,e,n){const r=this;return i;function i(o){if(o===62){const l=r.containerState;return l.open||(t.enter("blockQuote",{_container:!0}),l.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),s}return n(o)}function s(o){return q(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(o))}}a(Ax,"tokenizeBlockQuoteStart");function Ex(t,e,n){const r=this;return i;function i(o){return q(o)?U(t,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return t.attempt(Wu,e,n)(o)}}a(Ex,"tokenizeBlockQuoteContinuation");function Tx(t){t.exit("blockQuote")}a(Tx,"exit");const Ku={name:"characterEscape",tokenize:Ix};function Ix(t,e,n){return r;function r(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),i}function i(s){return fy(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(s)}}a(Ix,"tokenizeCharacterEscape");const Yu={name:"characterReference",tokenize:Lx};function Lx(t,e,n){const r=this;let i=0,s,o;return l;function l(f){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),u}function u(f){return f===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(f),t.exit("characterReferenceMarkerNumeric"),c):(t.enter("characterReferenceValue"),s=31,o=me,h(f))}function c(f){return f===88||f===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(f),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,o=cy,h):(t.enter("characterReferenceValue"),s=7,o=Gi,h(f))}function h(f){if(f===59&&i){const p=t.exit("characterReferenceValue");return o===me&&!_s(r.sliceSerialize(p))?n(f):(t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return o(f)&&i++<s?(t.consume(f),h):n(f)}}a(Lx,"tokenizeCharacterReference");const Ju={tokenize:Px,partial:!0},Qu={name:"codeFenced",tokenize:Ox,concrete:!0};function Ox(t,e,n){const r=this,i={tokenize:C,partial:!0};let s=0,o=0,l;return u;function u(S){return c(S)}function c(S){const A=r.events[r.events.length-1];return s=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,l=S,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),h(S)}function h(S){return S===l?(o++,t.consume(S),h):o<3?n(S):(t.exit("codeFencedFenceSequence"),q(S)?U(t,f,"whitespace")(S):f(S))}function f(S){return S===null||F(S)?(t.exit("codeFencedFence"),r.interrupt?e(S):t.check(Ju,g,_)(S)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||F(S)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),f(S)):q(S)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),U(t,d,"whitespace")(S)):S===96&&S===l?n(S):(t.consume(S),p)}function d(S){return S===null||F(S)?f(S):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||F(S)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),f(S)):S===96&&S===l?n(S):(t.consume(S),m)}function g(S){return t.attempt(i,_,y)(S)}function y(S){return t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),b}function b(S){return s>0&&q(S)?U(t,w,"linePrefix",s+1)(S):w(S)}function w(S){return S===null||F(S)?t.check(Ju,g,_)(S):(t.enter("codeFlowValue"),k(S))}function k(S){return S===null||F(S)?(t.exit("codeFlowValue"),w(S)):(t.consume(S),k)}function _(S){return t.exit("codeFenced"),e(S)}function C(S,A,E){let P=0;return N;function N(j){return S.enter("lineEnding"),S.consume(j),S.exit("lineEnding"),R}function R(j){return S.enter("codeFencedFence"),q(j)?U(S,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):O(j)}function O(j){return j===l?(S.enter("codeFencedFenceSequence"),H(j)):E(j)}function H(j){return j===l?(P++,S.consume(j),H):P>=o?(S.exit("codeFencedFenceSequence"),q(j)?U(S,K,"whitespace")(j):K(j)):E(j)}function K(j){return j===null||F(j)?(S.exit("codeFencedFence"),A(j)):E(j)}}}a(Ox,"tokenizeCodeFenced");function Px(t,e,n){const r=this;return i;function i(o){return o===null?n(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}a(Px,"tokenizeNonLazyContinuation$1");const Ts={name:"codeIndented",tokenize:Rx},Dx={tokenize:Fx,partial:!0};function Rx(t,e,n){const r=this;return i;function i(c){return t.enter("codeIndented"),U(t,s,"linePrefix",5)(c)}function s(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):F(c)?t.attempt(Dx,o,u)(c):(t.enter("codeFlowValue"),l(c))}function l(c){return c===null||F(c)?(t.exit("codeFlowValue"),o(c)):(t.consume(c),l)}function u(c){return t.exit("codeIndented"),e(c)}}a(Rx,"tokenizeCodeIndented");function Fx(t,e,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):F(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i):U(t,s,"linePrefix",5)(o)}function s(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?e(o):F(o)?i(o):n(o)}}a(Fx,"tokenizeFurtherStart");const Mx={name:"codeText",tokenize:qx,resolve:$x,previous:Bx};function $x(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}a($x,"resolveCodeText");function Bx(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}a(Bx,"previous$1");function qx(t,e,n){let r=0,i,s;return o;function o(f){return t.enter("codeText"),t.enter("codeTextSequence"),l(f)}function l(f){return f===96?(t.consume(f),r++,l):(t.exit("codeTextSequence"),u(f))}function u(f){return f===null?n(f):f===32?(t.enter("space"),t.consume(f),t.exit("space"),u):f===96?(s=t.enter("codeTextSequence"),i=0,h(f)):F(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),u):(t.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||F(f)?(t.exit("codeTextData"),u(f)):(t.consume(f),c)}function h(f){return f===96?(t.consume(f),i++,h):i===r?(t.exit("codeTextSequence"),t.exit("codeText"),e(f)):(s.type="codeTextData",c(f))}}a(qx,"tokenizeCodeText");class zx{static{a(this,"SpliceBuffer")}constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const i=n||0;this.setCursor(Math.trunc(e));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Tn(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Tn(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Tn(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Tn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Tn(this.left,n.reverse())}}}function Tn(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}a(Tn,"chunkedPush");function Xu(t){const e={};let n=-1,r,i,s,o,l,u,c;const h=new zx(t);for(;++n<h.length;){for(;n in e;)n=e[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,Ux(h,n)),n=e[n],c=!0);else if(r[1]._container){for(s=n,i=void 0;s--&&(o=h.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);i&&(r[1].end=Object.assign({},h.get(i)[1].start),l=h.slice(i,n),l.unshift(r),h.splice(i,n-i+1,l))}}return Ie(t,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}a(Xu,"subtokenize");function Ux(t,e){const n=t.get(e)[1],r=t.get(e)[2];let i=e-1;const s=[],o=n._tokenizer||r.parser[n.contentType](n.start),l=o.events,u=[],c={};let h,f,p=-1,d=n,m=0,g=0;const y=[g];for(;d;){for(;t.get(++i)[1]!==d;);s.push(i),d._tokenizer||(h=r.sliceStream(d),d.next||h.push(null),f&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(h),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++p<l.length;)l[p][0]==="exit"&&l[p-1][0]==="enter"&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(g=p+1,y.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),p=y.length;p--;){const b=l.slice(y[p],y[p+1]),w=s.pop();u.push([w,w+b.length-1]),t.splice(w,2,b)}for(u.reverse(),p=-1;++p<u.length;)c[m+u[p][0]]=m+u[p][1],m+=u[p][1]-u[p][0]-1;return c}a(Ux,"subcontent");const jx={tokenize:Vx,resolve:Hx},Gx={tokenize:Wx,partial:!0};function Hx(t){return Xu(t),t}a(Hx,"resolveContent");function Vx(t,e){let n;return r;function r(l){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?s(l):F(l)?t.check(Gx,o,s)(l):(t.consume(l),i)}function s(l){return t.exit("chunkContent"),t.exit("content"),e(l)}function o(l){return t.consume(l),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}a(Vx,"tokenizeContent");function Wx(t,e,n){const r=this;return i;function i(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),U(t,s,"linePrefix")}function s(o){if(o===null||F(o))return n(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?e(o):t.interrupt(r.parser.constructs.flow,n,e)(o)}}a(Wx,"tokenizeContinuation");function Zu(t,e,n,r,i,s,o,l,u){const c=u||Number.POSITIVE_INFINITY;let h=0;return f;function f(b){return b===60?(t.enter(r),t.enter(i),t.enter(s),t.consume(b),t.exit(s),p):b===null||b===32||b===41||yr(b)?n(b):(t.enter(r),t.enter(o),t.enter(l),t.enter("chunkString",{contentType:"string"}),g(b))}function p(b){return b===62?(t.enter(s),t.consume(b),t.exit(s),t.exit(i),t.exit(r),e):(t.enter(l),t.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===62?(t.exit("chunkString"),t.exit(l),p(b)):b===null||b===60||F(b)?n(b):(t.consume(b),b===92?m:d)}function m(b){return b===60||b===62||b===92?(t.consume(b),d):d(b)}function g(b){return!h&&(b===null||b===41||J(b))?(t.exit("chunkString"),t.exit(l),t.exit(o),t.exit(r),e(b)):h<c&&b===40?(t.consume(b),h++,g):b===41?(t.consume(b),h--,g):b===null||b===32||b===40||yr(b)?n(b):(t.consume(b),b===92?y:g)}function y(b){return b===40||b===41||b===92?(t.consume(b),g):g(b)}}a(Zu,"factoryDestination");function ec(t,e,n,r,i,s){const o=this;let l=0,u;return c;function c(d){return t.enter(r),t.enter(i),t.consume(d),t.exit(i),t.enter(s),h}function h(d){return l>999||d===null||d===91||d===93&&!u||d===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):d===93?(t.exit(s),t.enter(i),t.consume(d),t.exit(i),t.exit(r),e):F(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),h):(t.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||F(d)||l++>999?(t.exit("chunkString"),h(d)):(t.consume(d),u||(u=!q(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(t.consume(d),l++,f):f(d)}}a(ec,"factoryLabel");function tc(t,e,n,r,i,s){let o;return l;function l(p){return p===34||p===39||p===40?(t.enter(r),t.enter(i),t.consume(p),t.exit(i),o=p===40?41:p,u):n(p)}function u(p){return p===o?(t.enter(i),t.consume(p),t.exit(i),t.exit(r),e):(t.enter(s),c(p))}function c(p){return p===o?(t.exit(s),u(o)):p===null?n(p):F(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),U(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===o||p===null||F(p)?(t.exit("chunkString"),c(p)):(t.consume(p),p===92?f:h)}function f(p){return p===o||p===92?(t.consume(p),h):h(p)}}a(tc,"factoryTitle");function In(t,e){let n;return r;function r(i){return F(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):q(i)?U(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}a(In,"factoryWhitespace");const Kx={name:"definition",tokenize:Jx},Yx={tokenize:Qx,partial:!0};function Jx(t,e,n){const r=this;let i;return s;function s(d){return t.enter("definition"),o(d)}function o(d){return ec.call(r,t,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function l(d){return i=Ue(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(t.enter("definitionMarker"),t.consume(d),t.exit("definitionMarker"),u):n(d)}function u(d){return J(d)?In(t,c)(d):c(d)}function c(d){return Zu(t,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function h(d){return t.attempt(Yx,f,f)(d)}function f(d){return q(d)?U(t,p,"whitespace")(d):p(d)}function p(d){return d===null||F(d)?(t.exit("definition"),r.parser.defined.push(i),e(d)):n(d)}}a(Jx,"tokenizeDefinition");function Qx(t,e,n){return r;function r(l){return J(l)?In(t,i)(l):n(l)}function i(l){return tc(t,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return q(l)?U(t,o,"whitespace")(l):o(l)}function o(l){return l===null||F(l)?e(l):n(l)}}a(Qx,"tokenizeTitleBefore");const Xx={name:"hardBreakEscape",tokenize:Zx};function Zx(t,e,n){return r;function r(s){return t.enter("hardBreakEscape"),t.consume(s),i}function i(s){return F(s)?(t.exit("hardBreakEscape"),e(s)):n(s)}}a(Zx,"tokenizeHardBreakEscape");const ev={name:"headingAtx",tokenize:nv,resolve:tv};function tv(t,e){let n=t.length-2,r=3,i,s;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},s={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},Ie(t,r,n-r+1,[["enter",i,e],["enter",s,e],["exit",s,e],["exit",i,e]])),t}a(tv,"resolveHeadingAtx");function nv(t,e,n){let r=0;return i;function i(h){return t.enter("atxHeading"),s(h)}function s(h){return t.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&r++<6?(t.consume(h),o):h===null||J(h)?(t.exit("atxHeadingSequence"),l(h)):n(h)}function l(h){return h===35?(t.enter("atxHeadingSequence"),u(h)):h===null||F(h)?(t.exit("atxHeading"),e(h)):q(h)?U(t,l,"whitespace")(h):(t.enter("atxHeadingText"),c(h))}function u(h){return h===35?(t.consume(h),u):(t.exit("atxHeadingSequence"),l(h))}function c(h){return h===null||h===35||J(h)?(t.exit("atxHeadingText"),l(h)):(t.consume(h),c)}}a(nv,"tokenizeHeadingAtx");const rv=["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"],nc=["pre","script","style","textarea"],iv={name:"htmlFlow",tokenize:lv,resolveTo:av,concrete:!0},sv={tokenize:cv,partial:!0},ov={tokenize:uv,partial:!0};function av(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}a(av,"resolveToHtmlFlow");function lv(t,e,n){const r=this;let i,s,o,l,u;return c;function c(v){return h(v)}function h(v){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(v),f}function f(v){return v===33?(t.consume(v),p):v===47?(t.consume(v),s=!0,g):v===63?(t.consume(v),i=3,r.interrupt?e:x):ye(v)?(t.consume(v),o=String.fromCharCode(v),y):n(v)}function p(v){return v===45?(t.consume(v),i=2,d):v===91?(t.consume(v),i=5,l=0,m):ye(v)?(t.consume(v),i=4,r.interrupt?e:x):n(v)}function d(v){return v===45?(t.consume(v),r.interrupt?e:x):n(v)}function m(v){const Be="CDATA[";return v===Be.charCodeAt(l++)?(t.consume(v),l===Be.length?r.interrupt?e:O:m):n(v)}function g(v){return ye(v)?(t.consume(v),o=String.fromCharCode(v),y):n(v)}function y(v){if(v===null||v===47||v===62||J(v)){const Be=v===47,ft=o.toLowerCase();return!Be&&!s&&nc.includes(ft)?(i=1,r.interrupt?e(v):O(v)):rv.includes(o.toLowerCase())?(i=6,Be?(t.consume(v),b):r.interrupt?e(v):O(v)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(v):s?w(v):k(v))}return v===45||me(v)?(t.consume(v),o+=String.fromCharCode(v),y):n(v)}function b(v){return v===62?(t.consume(v),r.interrupt?e:O):n(v)}function w(v){return q(v)?(t.consume(v),w):N(v)}function k(v){return v===47?(t.consume(v),N):v===58||v===95||ye(v)?(t.consume(v),_):q(v)?(t.consume(v),k):N(v)}function _(v){return v===45||v===46||v===58||v===95||me(v)?(t.consume(v),_):C(v)}function C(v){return v===61?(t.consume(v),S):q(v)?(t.consume(v),C):k(v)}function S(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(t.consume(v),u=v,A):q(v)?(t.consume(v),S):E(v)}function A(v){return v===u?(t.consume(v),u=null,P):v===null||F(v)?n(v):(t.consume(v),A)}function E(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||J(v)?C(v):(t.consume(v),E)}function P(v){return v===47||v===62||q(v)?k(v):n(v)}function N(v){return v===62?(t.consume(v),R):n(v)}function R(v){return v===null||F(v)?O(v):q(v)?(t.consume(v),R):n(v)}function O(v){return v===45&&i===2?(t.consume(v),de):v===60&&i===1?(t.consume(v),fe):v===62&&i===4?(t.consume(v),$e):v===63&&i===3?(t.consume(v),x):v===93&&i===5?(t.consume(v),Ye):F(v)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(sv,Je,H)(v)):v===null||F(v)?(t.exit("htmlFlowData"),H(v)):(t.consume(v),O)}function H(v){return t.check(ov,K,Je)(v)}function K(v){return t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),j}function j(v){return v===null||F(v)?H(v):(t.enter("htmlFlowData"),O(v))}function de(v){return v===45?(t.consume(v),x):O(v)}function fe(v){return v===47?(t.consume(v),o="",Me):O(v)}function Me(v){if(v===62){const Be=o.toLowerCase();return nc.includes(Be)?(t.consume(v),$e):O(v)}return ye(v)&&o.length<8?(t.consume(v),o+=String.fromCharCode(v),Me):O(v)}function Ye(v){return v===93?(t.consume(v),x):O(v)}function x(v){return v===62?(t.consume(v),$e):v===45&&i===2?(t.consume(v),x):O(v)}function $e(v){return v===null||F(v)?(t.exit("htmlFlowData"),Je(v)):(t.consume(v),$e)}function Je(v){return t.exit("htmlFlow"),e(v)}}a(lv,"tokenizeHtmlFlow");function uv(t,e,n){const r=this;return i;function i(o){return F(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}a(uv,"tokenizeNonLazyContinuationStart");function cv(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(En,e,n)}}a(cv,"tokenizeBlankLineBefore");const fv={name:"htmlText",tokenize:hv};function hv(t,e,n){const r=this;let i,s,o;return l;function l(x){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(x),u}function u(x){return x===33?(t.consume(x),c):x===47?(t.consume(x),C):x===63?(t.consume(x),k):ye(x)?(t.consume(x),E):n(x)}function c(x){return x===45?(t.consume(x),h):x===91?(t.consume(x),s=0,m):ye(x)?(t.consume(x),w):n(x)}function h(x){return x===45?(t.consume(x),d):n(x)}function f(x){return x===null?n(x):x===45?(t.consume(x),p):F(x)?(o=f,fe(x)):(t.consume(x),f)}function p(x){return x===45?(t.consume(x),d):f(x)}function d(x){return x===62?de(x):x===45?p(x):f(x)}function m(x){const $e="CDATA[";return x===$e.charCodeAt(s++)?(t.consume(x),s===$e.length?g:m):n(x)}function g(x){return x===null?n(x):x===93?(t.consume(x),y):F(x)?(o=g,fe(x)):(t.consume(x),g)}function y(x){return x===93?(t.consume(x),b):g(x)}function b(x){return x===62?de(x):x===93?(t.consume(x),b):g(x)}function w(x){return x===null||x===62?de(x):F(x)?(o=w,fe(x)):(t.consume(x),w)}function k(x){return x===null?n(x):x===63?(t.consume(x),_):F(x)?(o=k,fe(x)):(t.consume(x),k)}function _(x){return x===62?de(x):k(x)}function C(x){return ye(x)?(t.consume(x),S):n(x)}function S(x){return x===45||me(x)?(t.consume(x),S):A(x)}function A(x){return F(x)?(o=A,fe(x)):q(x)?(t.consume(x),A):de(x)}function E(x){return x===45||me(x)?(t.consume(x),E):x===47||x===62||J(x)?P(x):n(x)}function P(x){return x===47?(t.consume(x),de):x===58||x===95||ye(x)?(t.consume(x),N):F(x)?(o=P,fe(x)):q(x)?(t.consume(x),P):de(x)}function N(x){return x===45||x===46||x===58||x===95||me(x)?(t.consume(x),N):R(x)}function R(x){return x===61?(t.consume(x),O):F(x)?(o=R,fe(x)):q(x)?(t.consume(x),R):P(x)}function O(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(t.consume(x),i=x,H):F(x)?(o=O,fe(x)):q(x)?(t.consume(x),O):(t.consume(x),K)}function H(x){return x===i?(t.consume(x),i=void 0,j):x===null?n(x):F(x)?(o=H,fe(x)):(t.consume(x),H)}function K(x){return x===null||x===34||x===39||x===60||x===61||x===96?n(x):x===47||x===62||J(x)?P(x):(t.consume(x),K)}function j(x){return x===47||x===62||J(x)?P(x):n(x)}function de(x){return x===62?(t.consume(x),t.exit("htmlTextData"),t.exit("htmlText"),e):n(x)}function fe(x){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),Me}function Me(x){return q(x)?U(t,Ye,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):Ye(x)}function Ye(x){return t.enter("htmlTextData"),o(x)}}a(hv,"tokenizeHtmlText");const Is={name:"labelEnd",tokenize:bv,resolveTo:yv,resolveAll:gv},pv={tokenize:wv},dv={tokenize:kv},mv={tokenize:Sv};function gv(t){let e=-1;for(;++e<t.length;){const n=t[e][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(t.splice(e+1,n.type==="labelImage"?4:2),n.type="data",e++)}return t}a(gv,"resolveAllLabelEnd");function yv(t,e){let n=t.length,r=0,i,s,o,l;for(;n--;)if(i=t[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const u={type:t[s][1].type==="labelLink"?"link":"image",start:Object.assign({},t[s][1].start),end:Object.assign({},t[t.length-1][1].end)},c={type:"label",start:Object.assign({},t[s][1].start),end:Object.assign({},t[o][1].end)},h={type:"labelText",start:Object.assign({},t[s+r+2][1].end),end:Object.assign({},t[o-2][1].start)};return l=[["enter",u,e],["enter",c,e]],l=Le(l,t.slice(s+1,s+r+3)),l=Le(l,[["enter",h,e]]),l=Le(l,Or(e.parser.constructs.insideSpan.null,t.slice(s+r+4,o-3),e)),l=Le(l,[["exit",h,e],t[o-2],t[o-1],["exit",c,e]]),l=Le(l,t.slice(o+1)),l=Le(l,[["exit",u,e]]),Ie(t,s,t.length,l),t}a(yv,"resolveToLabelEnd");function bv(t,e,n){const r=this;let i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return l;function l(p){return s?s._inactive?f(p):(o=r.parser.defined.includes(Ue(r.sliceSerialize({start:s.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelEnd"),u):n(p)}function u(p){return p===40?t.attempt(pv,h,o?h:f)(p):p===91?t.attempt(dv,h,o?c:f)(p):o?h(p):f(p)}function c(p){return t.attempt(mv,h,f)(p)}function h(p){return e(p)}function f(p){return s._balanced=!0,n(p)}}a(bv,"tokenizeLabelEnd");function wv(t,e,n){return r;function r(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),i}function i(f){return J(f)?In(t,s)(f):s(f)}function s(f){return f===41?h(f):Zu(t,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return J(f)?In(t,u)(f):h(f)}function l(f){return n(f)}function u(f){return f===34||f===39||f===40?tc(t,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):h(f)}function c(f){return J(f)?In(t,h)(f):h(f)}function h(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),e):n(f)}}a(wv,"tokenizeResource");function kv(t,e,n){const r=this;return i;function i(l){return ec.call(r,t,s,o,"reference","referenceMarker","referenceString")(l)}function s(l){return r.parser.defined.includes(Ue(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(l):n(l)}function o(l){return n(l)}}a(kv,"tokenizeReferenceFull");function Sv(t,e,n){return r;function r(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),i}function i(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):n(s)}}a(Sv,"tokenizeReferenceCollapsed");const xv={name:"labelStartImage",tokenize:vv,resolveAll:Is.resolveAll};function vv(t,e,n){const r=this;return i;function i(l){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(l),t.exit("labelImageMarker"),s}function s(l){return l===91?(t.enter("labelMarker"),t.consume(l),t.exit("labelMarker"),t.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):e(l)}}a(vv,"tokenizeLabelStartImage");const _v={name:"labelStartLink",tokenize:Cv,resolveAll:Is.resolveAll};function Cv(t,e,n){const r=this;return i;function i(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):e(o)}}a(Cv,"tokenizeLabelStartLink");const Ls={name:"lineEnding",tokenize:Nv};function Nv(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),U(t,e,"linePrefix")}}a(Nv,"tokenizeLineEnding");const Pr={name:"thematicBreak",tokenize:Av};function Av(t,e,n){let r=0,i;return s;function s(c){return t.enter("thematicBreak"),o(c)}function o(c){return i=c,l(c)}function l(c){return c===i?(t.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||F(c))?(t.exit("thematicBreak"),e(c)):n(c)}function u(c){return c===i?(t.consume(c),r++,u):(t.exit("thematicBreakSequence"),q(c)?U(t,l,"whitespace")(c):l(c))}}a(Av,"tokenizeThematicBreak");const xe={name:"list",tokenize:Iv,continuation:{tokenize:Lv},exit:Pv},Ev={tokenize:Dv,partial:!0},Tv={tokenize:Ov,partial:!0};function Iv(t,e,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(d){const m=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Gi(d)){if(r.containerState.type||(r.containerState.type=m,t.enter(m,{_container:!0})),m==="listUnordered")return t.enter("listItemPrefix"),d===42||d===45?t.check(Pr,n,c)(d):c(d);if(!r.interrupt||d===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),u(d)}return n(d)}function u(d){return Gi(d)&&++o<10?(t.consume(d),u):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(t.exit("listItemValue"),c(d)):n(d)}function c(d){return t.enter("listItemMarker"),t.consume(d),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,t.check(En,r.interrupt?n:h,t.attempt(Ev,p,f))}function h(d){return r.containerState.initialBlankLine=!0,s++,p(d)}function f(d){return q(d)?(t.enter("listItemPrefixWhitespace"),t.consume(d),t.exit("listItemPrefixWhitespace"),p):n(d)}function p(d){return r.containerState.size=s+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(d)}}a(Iv,"tokenizeListStart");function Lv(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(En,i,s);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,U(t,e,"listItemIndent",r.containerState.size+1)(l)}a(i,"onBlank");function s(l){return r.containerState.furtherBlankLines||!q(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(Tv,e,o)(l))}a(s,"notBlank");function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,U(t,t.attempt(xe,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}a(o,"notInCurrentItem")}a(Lv,"tokenizeListContinuation");function Ov(t,e,n){const r=this;return U(t,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(s):n(s)}}a(Ov,"tokenizeIndent$1");function Pv(t){t.exit(this.containerState.type)}a(Pv,"tokenizeListEnd");function Dv(t,e,n){const r=this;return U(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const o=r.events[r.events.length-1];return!q(s)&&o&&o[1].type==="listItemPrefixWhitespace"?e(s):n(s)}}a(Dv,"tokenizeListItemPrefixWhitespace");const rc={name:"setextUnderline",tokenize:Fv,resolveTo:Rv};function Rv(t,e){let n=t.length,r,i,s;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!s&&t[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:Object.assign({},t[i][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[i][1].type="setextHeadingText",s?(t.splice(i,0,["enter",o,e]),t.splice(s+1,0,["exit",t[r][1],e]),t[r][1].end=Object.assign({},t[s][1].end)):t[r][1]=o,t.push(["exit",o,e]),t}a(Rv,"resolveToSetextUnderline");function Fv(t,e,n){const r=this;let i;return s;function s(c){let h=r.events.length,f;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){f=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(t.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return t.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===i?(t.consume(c),l):(t.exit("setextHeadingLineSequence"),q(c)?U(t,u,"lineSuffix")(c):u(c))}function u(c){return c===null||F(c)?(t.exit("setextHeadingLine"),e(c)):n(c)}}a(Fv,"tokenizeSetextUnderline");const Mv={tokenize:Hv,partial:!0};function $v(){return{document:{91:{tokenize:Uv,continuation:{tokenize:jv},exit:Gv}},text:{91:{tokenize:zv},93:{add:"after",tokenize:Bv,resolveTo:qv}}}}a($v,"gfmFootnote");function Bv(t,e,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!o||!o._balanced)return n(u);const c=Ue(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!s.includes(c.slice(1))?n(u):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(u),t.exit("gfmFootnoteCallLabelMarker"),e(u))}}a(Bv,"tokenizePotentialGfmFootnoteCall");function qv(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},t[t.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",i,e],["exit",i,e],["enter",s,e],["enter",o,e],["exit",o,e],["exit",s,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...l),t}a(qv,"resolveToPotentialGfmFootnoteCall");function zv(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,o;return l;function l(f){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(t.enter("gfmFootnoteCallMarker"),t.consume(f),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(f){if(s>999||f===93&&!o||f===null||f===91||J(f))return n(f);if(f===93){t.exit("chunkString");const p=t.exit("gfmFootnoteCallString");return i.includes(Ue(r.sliceSerialize(p)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(f)}return J(f)||(o=!0),s++,t.consume(f),f===92?h:c}function h(f){return f===91||f===92||f===93?(t.consume(f),s++,c):c(f)}}a(zv,"tokenizeGfmFootnoteCall");function Uv(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,l;return u;function u(m){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",h):n(m)}function h(m){if(o>999||m===93&&!l||m===null||m===91||J(m))return n(m);if(m===93){t.exit("chunkString");const g=t.exit("gfmFootnoteDefinitionLabelString");return s=Ue(r.sliceSerialize(g)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),p}return J(m)||(l=!0),o++,t.consume(m),m===92?f:h}function f(m){return m===91||m===92||m===93?(t.consume(m),o++,h):h(m)}function p(m){return m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),i.includes(s)||i.push(s),U(t,d,"gfmFootnoteDefinitionWhitespace")):n(m)}function d(m){return e(m)}}a(Uv,"tokenizeDefinitionStart");function jv(t,e,n){return t.check(En,e,t.attempt(Mv,e,n))}a(jv,"tokenizeDefinitionContinuation");function Gv(t){t.exit("gfmFootnoteDefinition")}a(Gv,"gfmFootnoteDefinitionEnd");function Hv(t,e,n){const r=this;return U(t,i,"gfmFootnoteDefinitionIndent",5);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?e(s):n(s)}}a(Hv,"tokenizeIndent");function Vv(t){let n=(t||{}).singleTilde;const r={tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,l){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let c=u;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[u][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[u][1].end)},f={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[u][1].start)},p=[["enter",h,l],["enter",o[c][1],l],["exit",o[c][1],l],["enter",f,l]],d=l.parser.constructs.insideSpan.null;d&&Ie(p,p.length,0,Or(d,o.slice(c+1,u),l)),Ie(p,p.length,0,[["exit",f,l],["enter",o[u][1],l],["exit",o[u][1],l],["exit",h,l]]),Ie(o,c-1,u-c+3,p),u=c+p.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}a(i,"resolveAllStrikethrough");function s(o,l,u){const c=this.previous,h=this.events;let f=0;return p;function p(m){return c===126&&h[h.length-1][1].type!=="characterEscape"?u(m):(o.enter("strikethroughSequenceTemporary"),d(m))}function d(m){const g=Lr(c);if(m===126)return f>1?u(m):(o.consume(m),f++,d);if(f<2&&!n)return u(m);const y=o.exit("strikethroughSequenceTemporary"),b=Lr(m);return y._open=!b||b===2&&!!g,y._close=!g||g===2&&!!b,l(m)}}a(s,"tokenizeStrikethrough")}a(Vv,"gfmStrikethrough");class Wv{static{a(this,"EditMap")}constructor(){this.map=[]}add(e,n,r){Kv(this,e,n,r)}consume(e){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];r.push([...e]),e.length=0;let i=r.pop();for(;i;)e.push(...i),i=r.pop();this.map.length=0}}function Kv(t,e,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=n,t.map[i][2].push(...r);return}i+=1}t.map.push([e,n,r])}}a(Kv,"addImpl");function Yv(t,e){let n=!1;const r=[];for(;e<t.length;){const i=t[e];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return r}a(Yv,"gfmTableAlign");function Jv(){return{flow:{null:{tokenize:Qv,resolveAll:Xv}}}}a(Jv,"gfmTable");function Qv(t,e,n){const r=this;let i=0,s=0,o;return l;function l(N){let R=r.events.length-1;for(;R>-1;){const K=r.events[R][1].type;if(K==="lineEnding"||K==="linePrefix")R--;else break}const O=R>-1?r.events[R][1].type:null,H=O==="tableHead"||O==="tableRow"?S:u;return H===S&&r.parser.lazy[r.now().line]?n(N):H(N)}function u(N){return t.enter("tableHead"),t.enter("tableRow"),c(N)}function c(N){return N===124||(o=!0,s+=1),h(N)}function h(N){return N===null?n(N):F(N)?s>1?(s=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),d):n(N):q(N)?U(t,h,"whitespace")(N):(s+=1,o&&(o=!1,i+=1),N===124?(t.enter("tableCellDivider"),t.consume(N),t.exit("tableCellDivider"),o=!0,h):(t.enter("data"),f(N)))}function f(N){return N===null||N===124||J(N)?(t.exit("data"),h(N)):(t.consume(N),N===92?p:f)}function p(N){return N===92||N===124?(t.consume(N),f):f(N)}function d(N){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(N):(t.enter("tableDelimiterRow"),o=!1,q(N)?U(t,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):m(N))}function m(N){return N===45||N===58?y(N):N===124?(o=!0,t.enter("tableCellDivider"),t.consume(N),t.exit("tableCellDivider"),g):C(N)}function g(N){return q(N)?U(t,y,"whitespace")(N):y(N)}function y(N){return N===58?(s+=1,o=!0,t.enter("tableDelimiterMarker"),t.consume(N),t.exit("tableDelimiterMarker"),b):N===45?(s+=1,b(N)):N===null||F(N)?_(N):C(N)}function b(N){return N===45?(t.enter("tableDelimiterFiller"),w(N)):C(N)}function w(N){return N===45?(t.consume(N),w):N===58?(o=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(N),t.exit("tableDelimiterMarker"),k):(t.exit("tableDelimiterFiller"),k(N))}function k(N){return q(N)?U(t,_,"whitespace")(N):_(N)}function _(N){return N===124?m(N):N===null||F(N)?!o||i!==s?C(N):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(N)):C(N)}function C(N){return n(N)}function S(N){return t.enter("tableRow"),A(N)}function A(N){return N===124?(t.enter("tableCellDivider"),t.consume(N),t.exit("tableCellDivider"),A):N===null||F(N)?(t.exit("tableRow"),e(N)):q(N)?U(t,A,"whitespace")(N):(t.enter("data"),E(N))}function E(N){return N===null||N===124||J(N)?(t.exit("data"),A(N)):(t.consume(N),N===92?P:E)}function P(N){return N===92||N===124?(t.consume(N),E):E(N)}}a(Qv,"tokenizeTable");function Xv(t,e){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],l=!1,u=0,c,h,f;const p=new Wv;for(;++n<t.length;){const d=t[n],m=d[1];d[0]==="enter"?m.type==="tableHead"?(l=!1,u!==0&&(ic(p,e,u,c,h),h=void 0,u=0),c={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",c,e]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,f=void 0,s=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,h={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",h,e]])),i=m.type==="tableDelimiterRow"?2:h?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],f=Dr(p,e,s,i,void 0,f),s=[0,0,0,0]),o[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],f=Dr(p,e,s,i,void 0,f)),s=o,o=[s[1],n,0,0])):m.type==="tableHead"?(l=!0,u=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(u=n,s[1]!==0?(o[0]=o[1],f=Dr(p,e,s,i,n,f)):o[1]!==0&&(f=Dr(p,e,o,i,n,f)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=n)}for(u!==0&&ic(p,e,u,c,h),p.consume(e.events),n=-1;++n<e.events.length;){const d=e.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=Yv(e.events,n))}return t}a(Xv,"resolveTable");function Dr(t,e,n,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(s.end=Object.assign({},Yt(e.events,n[0])),t.add(n[0],0,[["exit",s,e]]));const u=Yt(e.events,n[1]);if(s={type:o,start:Object.assign({},u),end:Object.assign({},u)},t.add(n[1],0,[["enter",s,e]]),n[2]!==0){const c=Yt(e.events,n[2]),h=Yt(e.events,n[3]),f={type:l,start:Object.assign({},c),end:Object.assign({},h)};if(t.add(n[2],0,[["enter",f,e]]),r!==2){const p=e.events[n[2]],d=e.events[n[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,g=n[3]-n[2]-1;t.add(m,g,[])}}t.add(n[3]+1,0,[["exit",f,e]])}return i!==void 0&&(s.end=Object.assign({},Yt(e.events,i)),t.add(i,0,[["exit",s,e]]),s=void 0),s}a(Dr,"flushCell");function ic(t,e,n,r,i){const s=[],o=Yt(e.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,e])),r.end=Object.assign({},o),s.push(["exit",r,e]),t.add(n+1,0,s)}a(ic,"flushTableEnd");function Yt(t,e){const n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}a(Yt,"getPoint");const Zv={tokenize:t_};function e_(){return{text:{91:Zv}}}a(e_,"gfmTaskListItem");function t_(t,e,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),s)}function s(u){return J(u)?(t.enter("taskListCheckValueUnchecked"),t.consume(u),t.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(t.enter("taskListCheckValueChecked"),t.consume(u),t.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),l):n(u)}function l(u){return F(u)?e(u):q(u)?t.check({tokenize:n_},e,n)(u):n(u)}}a(t_,"tokenizeTasklistCheck");function n_(t,e,n){return U(t,r,"whitespace");function r(i){return i===null?n(i):e(i)}}a(n_,"spaceThenNonSpace");function r_(t){return Mu([px(),$v(),Vv(t),Jv(),e_()])}a(r_,"gfm");const i_={};function s_(t){const e=this,n=t||i_,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(r_(n)),s.push(ax()),o.push(lx(n))}a(s_,"remarkGfm");const Os={classNameMaps:{block:"admonition",title:"admonition-title"},titleFilter:["[!NOTE]","[!IMPORTANT]","[!WARNING]","[!TIP]","[!CAUTION]"],titleTextMap:t=>({displayTitle:t.substring(2,t.length-1),checkedTitle:t.substring(2,t.length-1)}),dataMaps:{block:t=>t,title:t=>t},titleKeepTrailingWhitespaces:!1,legacyTitle:!1},o_={...Os,titleFilter:["Note","Warning"],titleTextMap:t=>({displayTitle:t,checkedTitle:t}),legacyTitle:!1,titleLift:!1,titleLiftWhitespaces:()=>"",titleUnwrap:!1};function Ln(t){return e=>{const n=typeof t=="function"?t(e):t;return typeof n=="object"?n.join(" "):n}}a(Ln,"classNameMap");function Ps(t){return e=>typeof t=="function"?t(e):t.includes(e)}a(Ps,"nameFilter");const a_=a(t=>e=>{if(e.type!="blockquote")return;const n=e;if(n.children.length<=0||n.children[0].type!="paragraph")return;const r=n.children[0];if(r.children.length<=0||r.children[0].type!="strong")return;const i=r.children[0];if(i.children.length!=1||i.children[0].type!="text")return;const s=i.children[0],o=s.value;if(!Ps(t.titleFilter)(o))return;const{displayTitle:l,checkedTitle:u}=t.titleTextMap(o);if(s.value=l,n.data=t.dataMaps.block({...n.data,hProperties:{className:Ln(t.classNameMaps.block)(u)}}),i.data=t.dataMaps.title({...i.data,hProperties:{className:Ln(t.classNameMaps.title)(u)}}),t.titleLift){const c=r.children.splice(0,1)[0];let h;t.titleUnwrap?h={type:"paragraph",children:[{type:"text",value:l}],data:t.dataMaps.title({hProperties:{className:Ln(t.classNameMaps.title)(u)}})}:h={type:"paragraph",children:[c]},n.children.unshift(h);const f=r;if(f.children.length>0&&f.children[0].type=="text"){const p=f.children[0],m=/^[ \t\n\v\f\r]*/.exec(p.value),g=m?m[0]:"";p.value=t.titleLiftWhitespaces(g)+p.value.slice(g.length)}}},"handleNode$1"),l_=a(function(...t){const e=t.reduce((r,i)=>({...r,...i}),{}),n=e?.legacyTitle??Os.legacyTitle;return r=>{ee(r,n?a_({...o_,...e}):u_({...Os,...e}))}},"plugin"),u_=a(t=>e=>{if(e.type!="blockquote")return;const n=e;if(n.children[0]?.type!="paragraph")return;const r=n.children[0];if(r.children[0]?.type!="text")return;const i=r.children[0];let s;const o=i.value.indexOf(`
|
|
86
|
-
`);if(o<0){if(r.children.length>1)if(r.children.at(1)?.type=="break")r.children.splice(1,1);else return;if(s=i.value,!
|
|
87
|
-
`,inConstruct:"mathFlowMeta"},{character:"$",after:e?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(s,o,l,u){const c=s.value||"",h=l.createTracker(u),f="$".repeat(Math.max(
|
|
86
|
+
`))}function u(d,m,g,y){const b=g.enter("tableCell"),w=g.enter("phrasing"),k=g.containerPhrasing(d,{...y,before:s,after:s});return w(),b(),k}function c(d,m){return fS(d,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function h(d,m,g){const y=d.children;let b=-1;const w=[],k=m.enter("table");for(;++b<y.length;)w[b]=f(y[b],m,g);return k(),w}function f(d,m,g){const y=d.children;let b=-1;const w=[],k=m.enter("tableRow");for(;++b<y.length;)w[b]=u(y[b],d,m,g);return k(),w}function p(d,m,g){let y=Ou.inlineCode(d,m,g);return g.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}a(rx,"gfmTableToMarkdown");function ix(){return{exit:{taskListCheckValueChecked:Fu,taskListCheckValueUnchecked:Fu,paragraph:ox}}}a(ix,"gfmTaskListItemFromMarkdown");function sx(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ax}}}a(sx,"gfmTaskListItemToMarkdown");function Fu(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}a(Fu,"exitCheck");function ox(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=e.children;let s=-1,o;for(;++s<i.length;){const l=i[s];if(l.type==="paragraph"){o=l;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(t)}a(ox,"exitParagraphWithTaskListItem");function ax(t,e,n,r){const i=t.children[0],s=typeof t.checked=="boolean"&&i&&i.type==="paragraph",o="["+(t.checked?"x":" ")+"] ",l=n.createTracker(r);s&&l.move(o);let u=Ou.listItem(t,e,n,{...r,...l.current()});return s&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(h){return h+o}a(c,"check")}a(ax,"listItemWithTaskListItem");function lx(){return[D1(),V1(),oS(),QS(),ix()]}a(lx,"gfmFromMarkdown");function ux(t){return{extensions:[R1(),W1(),aS(),rx(t),sx()]}}a(ux,"gfmToMarkdown");function Ie(t,e,n,r){const i=t.length;let s=0,o;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(e,0),t.splice(...o),s+=1e4,e+=1e4}a(Ie,"splice");function Le(t,e){return t.length>0?(Ie(t,t.length,0,e),t):e}a(Le,"push");const Mu={}.hasOwnProperty;function $u(t){const e={};let n=-1;for(;++n<t.length;)cx(e,t[n]);return e}a($u,"combineExtensions");function cx(t,e){let n;for(n in e){const i=(Mu.call(t,n)?t[n]:void 0)||(t[n]={}),s=e[n];let o;if(s)for(o in s){Mu.call(i,o)||(i[o]=[]);const l=s[o];fx(i[o],Array.isArray(l)?l:l?[l]:[])}}}a(cx,"syntaxExtension");function fx(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);Ie(t,0,0,r)}a(fx,"constructs");const hx={tokenize:bx,partial:!0},Bu={tokenize:wx,partial:!0},qu={tokenize:kx,partial:!0},zu={tokenize:Sx,partial:!0},px={tokenize:xx,partial:!0},Uu={tokenize:gx,previous:Gu},ju={tokenize:yx,previous:Hu},Ze={tokenize:mx,previous:Vu},We={};function dx(){return{text:We}}a(dx,"gfmAutolinkLiteral");let xt=48;for(;xt<123;)We[xt]=Ze,xt++,xt===58?xt=65:xt===91&&(xt=97);We[43]=Ze,We[45]=Ze,We[46]=Ze,We[95]=Ze,We[72]=[Ze,ju],We[104]=[Ze,ju],We[87]=[Ze,Uu],We[119]=[Ze,Uu];function mx(t,e,n){const r=this;let i,s;return o;function o(f){return!As(f)||!Vu.call(r,r.previous)||Es(r.events)?n(f):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),l(f))}function l(f){return As(f)?(t.consume(f),l):f===64?(t.consume(f),u):n(f)}function u(f){return f===46?t.check(px,h,c)(f):f===45||f===95||me(f)?(s=!0,t.consume(f),u):h(f)}function c(f){return t.consume(f),i=!0,u}function h(f){return s&&i&&ye(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(f)):n(f)}}a(mx,"tokenizeEmailAutolink");function gx(t,e,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Gu.call(r,r.previous)||Es(r.events)?n(o):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(hx,t.attempt(Bu,t.attempt(qu,s),n),n)(o))}function s(o){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(o)}}a(gx,"tokenizeWwwAutolink");function yx(t,e,n){const r=this;let i="",s=!1;return o;function o(f){return(f===72||f===104)&&Hu.call(r,r.previous)&&!Es(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),t.consume(f),l):n(f)}function l(f){if(ye(f)&&i.length<5)return i+=String.fromCodePoint(f),t.consume(f),l;if(f===58){const p=i.toLowerCase();if(p==="http"||p==="https")return t.consume(f),u}return n(f)}function u(f){return f===47?(t.consume(f),s?c:(s=!0,u)):n(f)}function c(f){return f===null||yr(f)||J(f)||wt(f)||br(f)?n(f):t.attempt(Bu,t.attempt(qu,h),n)(f)}function h(f){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(f)}}a(yx,"tokenizeProtocolAutolink");function bx(t,e,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,t.consume(o),i):o===46&&r===3?(t.consume(o),s):n(o)}function s(o){return o===null?n(o):e(o)}}a(bx,"tokenizeWwwPrefix");function wx(t,e,n){let r,i,s;return o;function o(c){return c===46||c===95?t.check(zu,u,l)(c):c===null||J(c)||wt(c)||c!==45&&br(c)?u(c):(s=!0,t.consume(c),o)}function l(c){return c===95?r=!0:(i=r,r=void 0),t.consume(c),o}function u(c){return i||r||!s?n(c):e(c)}}a(wx,"tokenizeDomain");function kx(t,e){let n=0,r=0;return i;function i(o){return o===40?(n++,t.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?t.check(zu,e,s)(o):o===null||J(o)||wt(o)?e(o):(t.consume(o),i)}function s(o){return o===41&&r++,t.consume(o),i}}a(kx,"tokenizePath");function Sx(t,e,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(t.consume(l),r):l===38?(t.consume(l),s):l===93?(t.consume(l),i):l===60||l===null||J(l)||wt(l)?e(l):n(l)}function i(l){return l===null||l===40||l===91||J(l)||wt(l)?e(l):r(l)}function s(l){return ye(l)?o(l):n(l)}function o(l){return l===59?(t.consume(l),r):ye(l)?(t.consume(l),o):n(l)}}a(Sx,"tokenizeTrail");function xx(t,e,n){return r;function r(s){return t.consume(s),i}function i(s){return me(s)?n(s):e(s)}}a(xx,"tokenizeEmailDomainDotTrail");function Gu(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||J(t)}a(Gu,"previousWww");function Hu(t){return!ye(t)}a(Hu,"previousProtocol");function Vu(t){return!(t===47||As(t))}a(Vu,"previousEmail");function As(t){return t===43||t===45||t===46||t===95||me(t)}a(As,"gfmAtext");function Es(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}a(Es,"previousUnbalanced");function Lr(t){if(t===null||J(t)||wt(t))return 1;if(br(t))return 2}a(Lr,"classifyCharacter");function Or(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const s=t[i].resolveAll;s&&!r.includes(s)&&(e=s(e,n),r.push(s))}return e}a(Or,"resolveAll");const Ts={name:"attention",tokenize:_x,resolveAll:vx};function vx(t,e){let n=-1,r,i,s,o,l,u,c,h;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;u=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const f=Object.assign({},t[r][1].end),p=Object.assign({},t[n][1].start);Wu(f,-u),Wu(p,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},t[r][1].end)},l={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[n][1].start),end:p},s={type:u>1?"strongText":"emphasisText",start:Object.assign({},t[r][1].end),end:Object.assign({},t[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},t[r][1].end=Object.assign({},o.start),t[n][1].start=Object.assign({},l.end),c=[],t[r][1].end.offset-t[r][1].start.offset&&(c=Le(c,[["enter",t[r][1],e],["exit",t[r][1],e]])),c=Le(c,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",s,e]]),c=Le(c,Or(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),c=Le(c,[["exit",s,e],["enter",l,e],["exit",l,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(h=2,c=Le(c,[["enter",t[n][1],e],["exit",t[n][1],e]])):h=0,Ie(t,r-1,n-r+3,c),n=r+c.length-h-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}a(vx,"resolveAllAttention");function _x(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Lr(r);let s;return o;function o(u){return s=u,t.enter("attentionSequence"),l(u)}function l(u){if(u===s)return t.consume(u),l;const c=t.exit("attentionSequence"),h=Lr(u),f=!h||h===2&&i||n.includes(u),p=!i||i===2&&h||n.includes(r);return c._open=!!(s===42?f:f&&(i||!p)),c._close=!!(s===42?p:p&&(h||!f)),e(u)}}a(_x,"tokenizeAttention");function Wu(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}a(Wu,"movePoint");const Cx={name:"autolink",tokenize:Nx};function Nx(t,e,n){let r=0;return i;function i(d){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(d){return ye(d)?(t.consume(d),o):d===64?n(d):c(d)}function o(d){return d===43||d===45||d===46||me(d)?(r=1,l(d)):c(d)}function l(d){return d===58?(t.consume(d),r=0,u):(d===43||d===45||d===46||me(d))&&r++<32?(t.consume(d),l):(r=0,c(d))}function u(d){return d===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.exit("autolink"),e):d===null||d===32||d===60||yr(d)?n(d):(t.consume(d),u)}function c(d){return d===64?(t.consume(d),h):cy(d)?(t.consume(d),c):n(d)}function h(d){return me(d)?f(d):n(d)}function f(d){return d===46?(t.consume(d),r=0,h):d===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.exit("autolink"),e):p(d)}function p(d){if((d===45||me(d))&&r++<63){const m=d===45?p:f;return t.consume(d),m}return n(d)}}a(Nx,"tokenizeAutolink");function U(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(u){return q(u)?(t.enter(n),l(u)):e(u)}function l(u){return q(u)&&s++<i?(t.consume(u),l):(t.exit(n),e(u))}}a(U,"factorySpace");const En={tokenize:Ax,partial:!0};function Ax(t,e,n){return r;function r(s){return q(s)?U(t,i,"linePrefix")(s):i(s)}function i(s){return s===null||F(s)?e(s):n(s)}}a(Ax,"tokenizeBlankLine");const Ku={name:"blockQuote",tokenize:Ex,continuation:{tokenize:Tx},exit:Ix};function Ex(t,e,n){const r=this;return i;function i(o){if(o===62){const l=r.containerState;return l.open||(t.enter("blockQuote",{_container:!0}),l.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),s}return n(o)}function s(o){return q(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(o))}}a(Ex,"tokenizeBlockQuoteStart");function Tx(t,e,n){const r=this;return i;function i(o){return q(o)?U(t,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return t.attempt(Ku,e,n)(o)}}a(Tx,"tokenizeBlockQuoteContinuation");function Ix(t){t.exit("blockQuote")}a(Ix,"exit");const Yu={name:"characterEscape",tokenize:Lx};function Lx(t,e,n){return r;function r(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),i}function i(s){return hy(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(s)}}a(Lx,"tokenizeCharacterEscape");const Ju={name:"characterReference",tokenize:Ox};function Ox(t,e,n){const r=this;let i=0,s,o;return l;function l(f){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),u}function u(f){return f===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(f),t.exit("characterReferenceMarkerNumeric"),c):(t.enter("characterReferenceValue"),s=31,o=me,h(f))}function c(f){return f===88||f===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(f),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,o=fy,h):(t.enter("characterReferenceValue"),s=7,o=Gi,h(f))}function h(f){if(f===59&&i){const p=t.exit("characterReferenceValue");return o===me&&!Cs(r.sliceSerialize(p))?n(f):(t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return o(f)&&i++<s?(t.consume(f),h):n(f)}}a(Ox,"tokenizeCharacterReference");const Qu={tokenize:Dx,partial:!0},Xu={name:"codeFenced",tokenize:Px,concrete:!0};function Px(t,e,n){const r=this,i={tokenize:C,partial:!0};let s=0,o=0,l;return u;function u(S){return c(S)}function c(S){const A=r.events[r.events.length-1];return s=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,l=S,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),h(S)}function h(S){return S===l?(o++,t.consume(S),h):o<3?n(S):(t.exit("codeFencedFenceSequence"),q(S)?U(t,f,"whitespace")(S):f(S))}function f(S){return S===null||F(S)?(t.exit("codeFencedFence"),r.interrupt?e(S):t.check(Qu,g,_)(S)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||F(S)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),f(S)):q(S)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),U(t,d,"whitespace")(S)):S===96&&S===l?n(S):(t.consume(S),p)}function d(S){return S===null||F(S)?f(S):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||F(S)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),f(S)):S===96&&S===l?n(S):(t.consume(S),m)}function g(S){return t.attempt(i,_,y)(S)}function y(S){return t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),b}function b(S){return s>0&&q(S)?U(t,w,"linePrefix",s+1)(S):w(S)}function w(S){return S===null||F(S)?t.check(Qu,g,_)(S):(t.enter("codeFlowValue"),k(S))}function k(S){return S===null||F(S)?(t.exit("codeFlowValue"),w(S)):(t.consume(S),k)}function _(S){return t.exit("codeFenced"),e(S)}function C(S,A,E){let P=0;return N;function N(j){return S.enter("lineEnding"),S.consume(j),S.exit("lineEnding"),R}function R(j){return S.enter("codeFencedFence"),q(j)?U(S,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):O(j)}function O(j){return j===l?(S.enter("codeFencedFenceSequence"),H(j)):E(j)}function H(j){return j===l?(P++,S.consume(j),H):P>=o?(S.exit("codeFencedFenceSequence"),q(j)?U(S,K,"whitespace")(j):K(j)):E(j)}function K(j){return j===null||F(j)?(S.exit("codeFencedFence"),A(j)):E(j)}}}a(Px,"tokenizeCodeFenced");function Dx(t,e,n){const r=this;return i;function i(o){return o===null?n(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}a(Dx,"tokenizeNonLazyContinuation$1");const Is={name:"codeIndented",tokenize:Fx},Rx={tokenize:Mx,partial:!0};function Fx(t,e,n){const r=this;return i;function i(c){return t.enter("codeIndented"),U(t,s,"linePrefix",5)(c)}function s(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):F(c)?t.attempt(Rx,o,u)(c):(t.enter("codeFlowValue"),l(c))}function l(c){return c===null||F(c)?(t.exit("codeFlowValue"),o(c)):(t.consume(c),l)}function u(c){return t.exit("codeIndented"),e(c)}}a(Fx,"tokenizeCodeIndented");function Mx(t,e,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):F(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i):U(t,s,"linePrefix",5)(o)}function s(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?e(o):F(o)?i(o):n(o)}}a(Mx,"tokenizeFurtherStart");const $x={name:"codeText",tokenize:zx,resolve:Bx,previous:qx};function Bx(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}a(Bx,"resolveCodeText");function qx(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}a(qx,"previous$1");function zx(t,e,n){let r=0,i,s;return o;function o(f){return t.enter("codeText"),t.enter("codeTextSequence"),l(f)}function l(f){return f===96?(t.consume(f),r++,l):(t.exit("codeTextSequence"),u(f))}function u(f){return f===null?n(f):f===32?(t.enter("space"),t.consume(f),t.exit("space"),u):f===96?(s=t.enter("codeTextSequence"),i=0,h(f)):F(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),u):(t.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||F(f)?(t.exit("codeTextData"),u(f)):(t.consume(f),c)}function h(f){return f===96?(t.consume(f),i++,h):i===r?(t.exit("codeTextSequence"),t.exit("codeText"),e(f)):(s.type="codeTextData",c(f))}}a(zx,"tokenizeCodeText");class Ux{static{a(this,"SpliceBuffer")}constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const i=n||0;this.setCursor(Math.trunc(e));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Tn(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Tn(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Tn(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Tn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Tn(this.left,n.reverse())}}}function Tn(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}a(Tn,"chunkedPush");function Zu(t){const e={};let n=-1,r,i,s,o,l,u,c;const h=new Ux(t);for(;++n<h.length;){for(;n in e;)n=e[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,jx(h,n)),n=e[n],c=!0);else if(r[1]._container){for(s=n,i=void 0;s--&&(o=h.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);i&&(r[1].end=Object.assign({},h.get(i)[1].start),l=h.slice(i,n),l.unshift(r),h.splice(i,n-i+1,l))}}return Ie(t,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}a(Zu,"subtokenize");function jx(t,e){const n=t.get(e)[1],r=t.get(e)[2];let i=e-1;const s=[],o=n._tokenizer||r.parser[n.contentType](n.start),l=o.events,u=[],c={};let h,f,p=-1,d=n,m=0,g=0;const y=[g];for(;d;){for(;t.get(++i)[1]!==d;);s.push(i),d._tokenizer||(h=r.sliceStream(d),d.next||h.push(null),f&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(h),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++p<l.length;)l[p][0]==="exit"&&l[p-1][0]==="enter"&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(g=p+1,y.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),p=y.length;p--;){const b=l.slice(y[p],y[p+1]),w=s.pop();u.push([w,w+b.length-1]),t.splice(w,2,b)}for(u.reverse(),p=-1;++p<u.length;)c[m+u[p][0]]=m+u[p][1],m+=u[p][1]-u[p][0]-1;return c}a(jx,"subcontent");const Gx={tokenize:Wx,resolve:Vx},Hx={tokenize:Kx,partial:!0};function Vx(t){return Zu(t),t}a(Vx,"resolveContent");function Wx(t,e){let n;return r;function r(l){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?s(l):F(l)?t.check(Hx,o,s)(l):(t.consume(l),i)}function s(l){return t.exit("chunkContent"),t.exit("content"),e(l)}function o(l){return t.consume(l),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}a(Wx,"tokenizeContent");function Kx(t,e,n){const r=this;return i;function i(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),U(t,s,"linePrefix")}function s(o){if(o===null||F(o))return n(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?e(o):t.interrupt(r.parser.constructs.flow,n,e)(o)}}a(Kx,"tokenizeContinuation");function ec(t,e,n,r,i,s,o,l,u){const c=u||Number.POSITIVE_INFINITY;let h=0;return f;function f(b){return b===60?(t.enter(r),t.enter(i),t.enter(s),t.consume(b),t.exit(s),p):b===null||b===32||b===41||yr(b)?n(b):(t.enter(r),t.enter(o),t.enter(l),t.enter("chunkString",{contentType:"string"}),g(b))}function p(b){return b===62?(t.enter(s),t.consume(b),t.exit(s),t.exit(i),t.exit(r),e):(t.enter(l),t.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===62?(t.exit("chunkString"),t.exit(l),p(b)):b===null||b===60||F(b)?n(b):(t.consume(b),b===92?m:d)}function m(b){return b===60||b===62||b===92?(t.consume(b),d):d(b)}function g(b){return!h&&(b===null||b===41||J(b))?(t.exit("chunkString"),t.exit(l),t.exit(o),t.exit(r),e(b)):h<c&&b===40?(t.consume(b),h++,g):b===41?(t.consume(b),h--,g):b===null||b===32||b===40||yr(b)?n(b):(t.consume(b),b===92?y:g)}function y(b){return b===40||b===41||b===92?(t.consume(b),g):g(b)}}a(ec,"factoryDestination");function tc(t,e,n,r,i,s){const o=this;let l=0,u;return c;function c(d){return t.enter(r),t.enter(i),t.consume(d),t.exit(i),t.enter(s),h}function h(d){return l>999||d===null||d===91||d===93&&!u||d===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):d===93?(t.exit(s),t.enter(i),t.consume(d),t.exit(i),t.exit(r),e):F(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),h):(t.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||F(d)||l++>999?(t.exit("chunkString"),h(d)):(t.consume(d),u||(u=!q(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(t.consume(d),l++,f):f(d)}}a(tc,"factoryLabel");function nc(t,e,n,r,i,s){let o;return l;function l(p){return p===34||p===39||p===40?(t.enter(r),t.enter(i),t.consume(p),t.exit(i),o=p===40?41:p,u):n(p)}function u(p){return p===o?(t.enter(i),t.consume(p),t.exit(i),t.exit(r),e):(t.enter(s),c(p))}function c(p){return p===o?(t.exit(s),u(o)):p===null?n(p):F(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),U(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===o||p===null||F(p)?(t.exit("chunkString"),c(p)):(t.consume(p),p===92?f:h)}function f(p){return p===o||p===92?(t.consume(p),h):h(p)}}a(nc,"factoryTitle");function In(t,e){let n;return r;function r(i){return F(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):q(i)?U(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}a(In,"factoryWhitespace");const Yx={name:"definition",tokenize:Qx},Jx={tokenize:Xx,partial:!0};function Qx(t,e,n){const r=this;let i;return s;function s(d){return t.enter("definition"),o(d)}function o(d){return tc.call(r,t,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function l(d){return i=Ue(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(t.enter("definitionMarker"),t.consume(d),t.exit("definitionMarker"),u):n(d)}function u(d){return J(d)?In(t,c)(d):c(d)}function c(d){return ec(t,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function h(d){return t.attempt(Jx,f,f)(d)}function f(d){return q(d)?U(t,p,"whitespace")(d):p(d)}function p(d){return d===null||F(d)?(t.exit("definition"),r.parser.defined.push(i),e(d)):n(d)}}a(Qx,"tokenizeDefinition");function Xx(t,e,n){return r;function r(l){return J(l)?In(t,i)(l):n(l)}function i(l){return nc(t,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return q(l)?U(t,o,"whitespace")(l):o(l)}function o(l){return l===null||F(l)?e(l):n(l)}}a(Xx,"tokenizeTitleBefore");const Zx={name:"hardBreakEscape",tokenize:ev};function ev(t,e,n){return r;function r(s){return t.enter("hardBreakEscape"),t.consume(s),i}function i(s){return F(s)?(t.exit("hardBreakEscape"),e(s)):n(s)}}a(ev,"tokenizeHardBreakEscape");const tv={name:"headingAtx",tokenize:rv,resolve:nv};function nv(t,e){let n=t.length-2,r=3,i,s;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},s={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},Ie(t,r,n-r+1,[["enter",i,e],["enter",s,e],["exit",s,e],["exit",i,e]])),t}a(nv,"resolveHeadingAtx");function rv(t,e,n){let r=0;return i;function i(h){return t.enter("atxHeading"),s(h)}function s(h){return t.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&r++<6?(t.consume(h),o):h===null||J(h)?(t.exit("atxHeadingSequence"),l(h)):n(h)}function l(h){return h===35?(t.enter("atxHeadingSequence"),u(h)):h===null||F(h)?(t.exit("atxHeading"),e(h)):q(h)?U(t,l,"whitespace")(h):(t.enter("atxHeadingText"),c(h))}function u(h){return h===35?(t.consume(h),u):(t.exit("atxHeadingSequence"),l(h))}function c(h){return h===null||h===35||J(h)?(t.exit("atxHeadingText"),l(h)):(t.consume(h),c)}}a(rv,"tokenizeHeadingAtx");const iv=["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"],rc=["pre","script","style","textarea"],sv={name:"htmlFlow",tokenize:uv,resolveTo:lv,concrete:!0},ov={tokenize:fv,partial:!0},av={tokenize:cv,partial:!0};function lv(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}a(lv,"resolveToHtmlFlow");function uv(t,e,n){const r=this;let i,s,o,l,u;return c;function c(v){return h(v)}function h(v){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(v),f}function f(v){return v===33?(t.consume(v),p):v===47?(t.consume(v),s=!0,g):v===63?(t.consume(v),i=3,r.interrupt?e:x):ye(v)?(t.consume(v),o=String.fromCharCode(v),y):n(v)}function p(v){return v===45?(t.consume(v),i=2,d):v===91?(t.consume(v),i=5,l=0,m):ye(v)?(t.consume(v),i=4,r.interrupt?e:x):n(v)}function d(v){return v===45?(t.consume(v),r.interrupt?e:x):n(v)}function m(v){const Be="CDATA[";return v===Be.charCodeAt(l++)?(t.consume(v),l===Be.length?r.interrupt?e:O:m):n(v)}function g(v){return ye(v)?(t.consume(v),o=String.fromCharCode(v),y):n(v)}function y(v){if(v===null||v===47||v===62||J(v)){const Be=v===47,ft=o.toLowerCase();return!Be&&!s&&rc.includes(ft)?(i=1,r.interrupt?e(v):O(v)):iv.includes(o.toLowerCase())?(i=6,Be?(t.consume(v),b):r.interrupt?e(v):O(v)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(v):s?w(v):k(v))}return v===45||me(v)?(t.consume(v),o+=String.fromCharCode(v),y):n(v)}function b(v){return v===62?(t.consume(v),r.interrupt?e:O):n(v)}function w(v){return q(v)?(t.consume(v),w):N(v)}function k(v){return v===47?(t.consume(v),N):v===58||v===95||ye(v)?(t.consume(v),_):q(v)?(t.consume(v),k):N(v)}function _(v){return v===45||v===46||v===58||v===95||me(v)?(t.consume(v),_):C(v)}function C(v){return v===61?(t.consume(v),S):q(v)?(t.consume(v),C):k(v)}function S(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(t.consume(v),u=v,A):q(v)?(t.consume(v),S):E(v)}function A(v){return v===u?(t.consume(v),u=null,P):v===null||F(v)?n(v):(t.consume(v),A)}function E(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||J(v)?C(v):(t.consume(v),E)}function P(v){return v===47||v===62||q(v)?k(v):n(v)}function N(v){return v===62?(t.consume(v),R):n(v)}function R(v){return v===null||F(v)?O(v):q(v)?(t.consume(v),R):n(v)}function O(v){return v===45&&i===2?(t.consume(v),de):v===60&&i===1?(t.consume(v),fe):v===62&&i===4?(t.consume(v),$e):v===63&&i===3?(t.consume(v),x):v===93&&i===5?(t.consume(v),Ye):F(v)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(ov,Je,H)(v)):v===null||F(v)?(t.exit("htmlFlowData"),H(v)):(t.consume(v),O)}function H(v){return t.check(av,K,Je)(v)}function K(v){return t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),j}function j(v){return v===null||F(v)?H(v):(t.enter("htmlFlowData"),O(v))}function de(v){return v===45?(t.consume(v),x):O(v)}function fe(v){return v===47?(t.consume(v),o="",Me):O(v)}function Me(v){if(v===62){const Be=o.toLowerCase();return rc.includes(Be)?(t.consume(v),$e):O(v)}return ye(v)&&o.length<8?(t.consume(v),o+=String.fromCharCode(v),Me):O(v)}function Ye(v){return v===93?(t.consume(v),x):O(v)}function x(v){return v===62?(t.consume(v),$e):v===45&&i===2?(t.consume(v),x):O(v)}function $e(v){return v===null||F(v)?(t.exit("htmlFlowData"),Je(v)):(t.consume(v),$e)}function Je(v){return t.exit("htmlFlow"),e(v)}}a(uv,"tokenizeHtmlFlow");function cv(t,e,n){const r=this;return i;function i(o){return F(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}a(cv,"tokenizeNonLazyContinuationStart");function fv(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(En,e,n)}}a(fv,"tokenizeBlankLineBefore");const hv={name:"htmlText",tokenize:pv};function pv(t,e,n){const r=this;let i,s,o;return l;function l(x){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(x),u}function u(x){return x===33?(t.consume(x),c):x===47?(t.consume(x),C):x===63?(t.consume(x),k):ye(x)?(t.consume(x),E):n(x)}function c(x){return x===45?(t.consume(x),h):x===91?(t.consume(x),s=0,m):ye(x)?(t.consume(x),w):n(x)}function h(x){return x===45?(t.consume(x),d):n(x)}function f(x){return x===null?n(x):x===45?(t.consume(x),p):F(x)?(o=f,fe(x)):(t.consume(x),f)}function p(x){return x===45?(t.consume(x),d):f(x)}function d(x){return x===62?de(x):x===45?p(x):f(x)}function m(x){const $e="CDATA[";return x===$e.charCodeAt(s++)?(t.consume(x),s===$e.length?g:m):n(x)}function g(x){return x===null?n(x):x===93?(t.consume(x),y):F(x)?(o=g,fe(x)):(t.consume(x),g)}function y(x){return x===93?(t.consume(x),b):g(x)}function b(x){return x===62?de(x):x===93?(t.consume(x),b):g(x)}function w(x){return x===null||x===62?de(x):F(x)?(o=w,fe(x)):(t.consume(x),w)}function k(x){return x===null?n(x):x===63?(t.consume(x),_):F(x)?(o=k,fe(x)):(t.consume(x),k)}function _(x){return x===62?de(x):k(x)}function C(x){return ye(x)?(t.consume(x),S):n(x)}function S(x){return x===45||me(x)?(t.consume(x),S):A(x)}function A(x){return F(x)?(o=A,fe(x)):q(x)?(t.consume(x),A):de(x)}function E(x){return x===45||me(x)?(t.consume(x),E):x===47||x===62||J(x)?P(x):n(x)}function P(x){return x===47?(t.consume(x),de):x===58||x===95||ye(x)?(t.consume(x),N):F(x)?(o=P,fe(x)):q(x)?(t.consume(x),P):de(x)}function N(x){return x===45||x===46||x===58||x===95||me(x)?(t.consume(x),N):R(x)}function R(x){return x===61?(t.consume(x),O):F(x)?(o=R,fe(x)):q(x)?(t.consume(x),R):P(x)}function O(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(t.consume(x),i=x,H):F(x)?(o=O,fe(x)):q(x)?(t.consume(x),O):(t.consume(x),K)}function H(x){return x===i?(t.consume(x),i=void 0,j):x===null?n(x):F(x)?(o=H,fe(x)):(t.consume(x),H)}function K(x){return x===null||x===34||x===39||x===60||x===61||x===96?n(x):x===47||x===62||J(x)?P(x):(t.consume(x),K)}function j(x){return x===47||x===62||J(x)?P(x):n(x)}function de(x){return x===62?(t.consume(x),t.exit("htmlTextData"),t.exit("htmlText"),e):n(x)}function fe(x){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),Me}function Me(x){return q(x)?U(t,Ye,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):Ye(x)}function Ye(x){return t.enter("htmlTextData"),o(x)}}a(pv,"tokenizeHtmlText");const Ls={name:"labelEnd",tokenize:wv,resolveTo:bv,resolveAll:yv},dv={tokenize:kv},mv={tokenize:Sv},gv={tokenize:xv};function yv(t){let e=-1;for(;++e<t.length;){const n=t[e][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(t.splice(e+1,n.type==="labelImage"?4:2),n.type="data",e++)}return t}a(yv,"resolveAllLabelEnd");function bv(t,e){let n=t.length,r=0,i,s,o,l;for(;n--;)if(i=t[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const u={type:t[s][1].type==="labelLink"?"link":"image",start:Object.assign({},t[s][1].start),end:Object.assign({},t[t.length-1][1].end)},c={type:"label",start:Object.assign({},t[s][1].start),end:Object.assign({},t[o][1].end)},h={type:"labelText",start:Object.assign({},t[s+r+2][1].end),end:Object.assign({},t[o-2][1].start)};return l=[["enter",u,e],["enter",c,e]],l=Le(l,t.slice(s+1,s+r+3)),l=Le(l,[["enter",h,e]]),l=Le(l,Or(e.parser.constructs.insideSpan.null,t.slice(s+r+4,o-3),e)),l=Le(l,[["exit",h,e],t[o-2],t[o-1],["exit",c,e]]),l=Le(l,t.slice(o+1)),l=Le(l,[["exit",u,e]]),Ie(t,s,t.length,l),t}a(bv,"resolveToLabelEnd");function wv(t,e,n){const r=this;let i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return l;function l(p){return s?s._inactive?f(p):(o=r.parser.defined.includes(Ue(r.sliceSerialize({start:s.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelEnd"),u):n(p)}function u(p){return p===40?t.attempt(dv,h,o?h:f)(p):p===91?t.attempt(mv,h,o?c:f)(p):o?h(p):f(p)}function c(p){return t.attempt(gv,h,f)(p)}function h(p){return e(p)}function f(p){return s._balanced=!0,n(p)}}a(wv,"tokenizeLabelEnd");function kv(t,e,n){return r;function r(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),i}function i(f){return J(f)?In(t,s)(f):s(f)}function s(f){return f===41?h(f):ec(t,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return J(f)?In(t,u)(f):h(f)}function l(f){return n(f)}function u(f){return f===34||f===39||f===40?nc(t,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):h(f)}function c(f){return J(f)?In(t,h)(f):h(f)}function h(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),e):n(f)}}a(kv,"tokenizeResource");function Sv(t,e,n){const r=this;return i;function i(l){return tc.call(r,t,s,o,"reference","referenceMarker","referenceString")(l)}function s(l){return r.parser.defined.includes(Ue(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(l):n(l)}function o(l){return n(l)}}a(Sv,"tokenizeReferenceFull");function xv(t,e,n){return r;function r(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),i}function i(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):n(s)}}a(xv,"tokenizeReferenceCollapsed");const vv={name:"labelStartImage",tokenize:_v,resolveAll:Ls.resolveAll};function _v(t,e,n){const r=this;return i;function i(l){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(l),t.exit("labelImageMarker"),s}function s(l){return l===91?(t.enter("labelMarker"),t.consume(l),t.exit("labelMarker"),t.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):e(l)}}a(_v,"tokenizeLabelStartImage");const Cv={name:"labelStartLink",tokenize:Nv,resolveAll:Ls.resolveAll};function Nv(t,e,n){const r=this;return i;function i(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):e(o)}}a(Nv,"tokenizeLabelStartLink");const Os={name:"lineEnding",tokenize:Av};function Av(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),U(t,e,"linePrefix")}}a(Av,"tokenizeLineEnding");const Pr={name:"thematicBreak",tokenize:Ev};function Ev(t,e,n){let r=0,i;return s;function s(c){return t.enter("thematicBreak"),o(c)}function o(c){return i=c,l(c)}function l(c){return c===i?(t.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||F(c))?(t.exit("thematicBreak"),e(c)):n(c)}function u(c){return c===i?(t.consume(c),r++,u):(t.exit("thematicBreakSequence"),q(c)?U(t,l,"whitespace")(c):l(c))}}a(Ev,"tokenizeThematicBreak");const xe={name:"list",tokenize:Lv,continuation:{tokenize:Ov},exit:Dv},Tv={tokenize:Rv,partial:!0},Iv={tokenize:Pv,partial:!0};function Lv(t,e,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(d){const m=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Gi(d)){if(r.containerState.type||(r.containerState.type=m,t.enter(m,{_container:!0})),m==="listUnordered")return t.enter("listItemPrefix"),d===42||d===45?t.check(Pr,n,c)(d):c(d);if(!r.interrupt||d===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),u(d)}return n(d)}function u(d){return Gi(d)&&++o<10?(t.consume(d),u):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(t.exit("listItemValue"),c(d)):n(d)}function c(d){return t.enter("listItemMarker"),t.consume(d),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,t.check(En,r.interrupt?n:h,t.attempt(Tv,p,f))}function h(d){return r.containerState.initialBlankLine=!0,s++,p(d)}function f(d){return q(d)?(t.enter("listItemPrefixWhitespace"),t.consume(d),t.exit("listItemPrefixWhitespace"),p):n(d)}function p(d){return r.containerState.size=s+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(d)}}a(Lv,"tokenizeListStart");function Ov(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(En,i,s);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,U(t,e,"listItemIndent",r.containerState.size+1)(l)}a(i,"onBlank");function s(l){return r.containerState.furtherBlankLines||!q(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(Iv,e,o)(l))}a(s,"notBlank");function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,U(t,t.attempt(xe,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}a(o,"notInCurrentItem")}a(Ov,"tokenizeListContinuation");function Pv(t,e,n){const r=this;return U(t,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(s):n(s)}}a(Pv,"tokenizeIndent$1");function Dv(t){t.exit(this.containerState.type)}a(Dv,"tokenizeListEnd");function Rv(t,e,n){const r=this;return U(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const o=r.events[r.events.length-1];return!q(s)&&o&&o[1].type==="listItemPrefixWhitespace"?e(s):n(s)}}a(Rv,"tokenizeListItemPrefixWhitespace");const ic={name:"setextUnderline",tokenize:Mv,resolveTo:Fv};function Fv(t,e){let n=t.length,r,i,s;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!s&&t[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:Object.assign({},t[i][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[i][1].type="setextHeadingText",s?(t.splice(i,0,["enter",o,e]),t.splice(s+1,0,["exit",t[r][1],e]),t[r][1].end=Object.assign({},t[s][1].end)):t[r][1]=o,t.push(["exit",o,e]),t}a(Fv,"resolveToSetextUnderline");function Mv(t,e,n){const r=this;let i;return s;function s(c){let h=r.events.length,f;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){f=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(t.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return t.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===i?(t.consume(c),l):(t.exit("setextHeadingLineSequence"),q(c)?U(t,u,"lineSuffix")(c):u(c))}function u(c){return c===null||F(c)?(t.exit("setextHeadingLine"),e(c)):n(c)}}a(Mv,"tokenizeSetextUnderline");const $v={tokenize:Vv,partial:!0};function Bv(){return{document:{91:{tokenize:jv,continuation:{tokenize:Gv},exit:Hv}},text:{91:{tokenize:Uv},93:{add:"after",tokenize:qv,resolveTo:zv}}}}a(Bv,"gfmFootnote");function qv(t,e,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!o||!o._balanced)return n(u);const c=Ue(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!s.includes(c.slice(1))?n(u):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(u),t.exit("gfmFootnoteCallLabelMarker"),e(u))}}a(qv,"tokenizePotentialGfmFootnoteCall");function zv(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},t[t.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",i,e],["exit",i,e],["enter",s,e],["enter",o,e],["exit",o,e],["exit",s,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...l),t}a(zv,"resolveToPotentialGfmFootnoteCall");function Uv(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,o;return l;function l(f){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(t.enter("gfmFootnoteCallMarker"),t.consume(f),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(f){if(s>999||f===93&&!o||f===null||f===91||J(f))return n(f);if(f===93){t.exit("chunkString");const p=t.exit("gfmFootnoteCallString");return i.includes(Ue(r.sliceSerialize(p)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(f)}return J(f)||(o=!0),s++,t.consume(f),f===92?h:c}function h(f){return f===91||f===92||f===93?(t.consume(f),s++,c):c(f)}}a(Uv,"tokenizeGfmFootnoteCall");function jv(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,l;return u;function u(m){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",h):n(m)}function h(m){if(o>999||m===93&&!l||m===null||m===91||J(m))return n(m);if(m===93){t.exit("chunkString");const g=t.exit("gfmFootnoteDefinitionLabelString");return s=Ue(r.sliceSerialize(g)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),p}return J(m)||(l=!0),o++,t.consume(m),m===92?f:h}function f(m){return m===91||m===92||m===93?(t.consume(m),o++,h):h(m)}function p(m){return m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),i.includes(s)||i.push(s),U(t,d,"gfmFootnoteDefinitionWhitespace")):n(m)}function d(m){return e(m)}}a(jv,"tokenizeDefinitionStart");function Gv(t,e,n){return t.check(En,e,t.attempt($v,e,n))}a(Gv,"tokenizeDefinitionContinuation");function Hv(t){t.exit("gfmFootnoteDefinition")}a(Hv,"gfmFootnoteDefinitionEnd");function Vv(t,e,n){const r=this;return U(t,i,"gfmFootnoteDefinitionIndent",5);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?e(s):n(s)}}a(Vv,"tokenizeIndent");function Wv(t){let n=(t||{}).singleTilde;const r={tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,l){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let c=u;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[u][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[u][1].end)},f={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[u][1].start)},p=[["enter",h,l],["enter",o[c][1],l],["exit",o[c][1],l],["enter",f,l]],d=l.parser.constructs.insideSpan.null;d&&Ie(p,p.length,0,Or(d,o.slice(c+1,u),l)),Ie(p,p.length,0,[["exit",f,l],["enter",o[u][1],l],["exit",o[u][1],l],["exit",h,l]]),Ie(o,c-1,u-c+3,p),u=c+p.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}a(i,"resolveAllStrikethrough");function s(o,l,u){const c=this.previous,h=this.events;let f=0;return p;function p(m){return c===126&&h[h.length-1][1].type!=="characterEscape"?u(m):(o.enter("strikethroughSequenceTemporary"),d(m))}function d(m){const g=Lr(c);if(m===126)return f>1?u(m):(o.consume(m),f++,d);if(f<2&&!n)return u(m);const y=o.exit("strikethroughSequenceTemporary"),b=Lr(m);return y._open=!b||b===2&&!!g,y._close=!g||g===2&&!!b,l(m)}}a(s,"tokenizeStrikethrough")}a(Wv,"gfmStrikethrough");class Kv{static{a(this,"EditMap")}constructor(){this.map=[]}add(e,n,r){Yv(this,e,n,r)}consume(e){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];r.push([...e]),e.length=0;let i=r.pop();for(;i;)e.push(...i),i=r.pop();this.map.length=0}}function Yv(t,e,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=n,t.map[i][2].push(...r);return}i+=1}t.map.push([e,n,r])}}a(Yv,"addImpl");function Jv(t,e){let n=!1;const r=[];for(;e<t.length;){const i=t[e];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return r}a(Jv,"gfmTableAlign");function Qv(){return{flow:{null:{tokenize:Xv,resolveAll:Zv}}}}a(Qv,"gfmTable");function Xv(t,e,n){const r=this;let i=0,s=0,o;return l;function l(N){let R=r.events.length-1;for(;R>-1;){const K=r.events[R][1].type;if(K==="lineEnding"||K==="linePrefix")R--;else break}const O=R>-1?r.events[R][1].type:null,H=O==="tableHead"||O==="tableRow"?S:u;return H===S&&r.parser.lazy[r.now().line]?n(N):H(N)}function u(N){return t.enter("tableHead"),t.enter("tableRow"),c(N)}function c(N){return N===124||(o=!0,s+=1),h(N)}function h(N){return N===null?n(N):F(N)?s>1?(s=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),d):n(N):q(N)?U(t,h,"whitespace")(N):(s+=1,o&&(o=!1,i+=1),N===124?(t.enter("tableCellDivider"),t.consume(N),t.exit("tableCellDivider"),o=!0,h):(t.enter("data"),f(N)))}function f(N){return N===null||N===124||J(N)?(t.exit("data"),h(N)):(t.consume(N),N===92?p:f)}function p(N){return N===92||N===124?(t.consume(N),f):f(N)}function d(N){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(N):(t.enter("tableDelimiterRow"),o=!1,q(N)?U(t,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):m(N))}function m(N){return N===45||N===58?y(N):N===124?(o=!0,t.enter("tableCellDivider"),t.consume(N),t.exit("tableCellDivider"),g):C(N)}function g(N){return q(N)?U(t,y,"whitespace")(N):y(N)}function y(N){return N===58?(s+=1,o=!0,t.enter("tableDelimiterMarker"),t.consume(N),t.exit("tableDelimiterMarker"),b):N===45?(s+=1,b(N)):N===null||F(N)?_(N):C(N)}function b(N){return N===45?(t.enter("tableDelimiterFiller"),w(N)):C(N)}function w(N){return N===45?(t.consume(N),w):N===58?(o=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(N),t.exit("tableDelimiterMarker"),k):(t.exit("tableDelimiterFiller"),k(N))}function k(N){return q(N)?U(t,_,"whitespace")(N):_(N)}function _(N){return N===124?m(N):N===null||F(N)?!o||i!==s?C(N):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(N)):C(N)}function C(N){return n(N)}function S(N){return t.enter("tableRow"),A(N)}function A(N){return N===124?(t.enter("tableCellDivider"),t.consume(N),t.exit("tableCellDivider"),A):N===null||F(N)?(t.exit("tableRow"),e(N)):q(N)?U(t,A,"whitespace")(N):(t.enter("data"),E(N))}function E(N){return N===null||N===124||J(N)?(t.exit("data"),A(N)):(t.consume(N),N===92?P:E)}function P(N){return N===92||N===124?(t.consume(N),E):E(N)}}a(Xv,"tokenizeTable");function Zv(t,e){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],l=!1,u=0,c,h,f;const p=new Kv;for(;++n<t.length;){const d=t[n],m=d[1];d[0]==="enter"?m.type==="tableHead"?(l=!1,u!==0&&(sc(p,e,u,c,h),h=void 0,u=0),c={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",c,e]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,f=void 0,s=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,h={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",h,e]])),i=m.type==="tableDelimiterRow"?2:h?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],f=Dr(p,e,s,i,void 0,f),s=[0,0,0,0]),o[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],f=Dr(p,e,s,i,void 0,f)),s=o,o=[s[1],n,0,0])):m.type==="tableHead"?(l=!0,u=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(u=n,s[1]!==0?(o[0]=o[1],f=Dr(p,e,s,i,n,f)):o[1]!==0&&(f=Dr(p,e,o,i,n,f)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=n)}for(u!==0&&sc(p,e,u,c,h),p.consume(e.events),n=-1;++n<e.events.length;){const d=e.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=Jv(e.events,n))}return t}a(Zv,"resolveTable");function Dr(t,e,n,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(s.end=Object.assign({},Yt(e.events,n[0])),t.add(n[0],0,[["exit",s,e]]));const u=Yt(e.events,n[1]);if(s={type:o,start:Object.assign({},u),end:Object.assign({},u)},t.add(n[1],0,[["enter",s,e]]),n[2]!==0){const c=Yt(e.events,n[2]),h=Yt(e.events,n[3]),f={type:l,start:Object.assign({},c),end:Object.assign({},h)};if(t.add(n[2],0,[["enter",f,e]]),r!==2){const p=e.events[n[2]],d=e.events[n[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,g=n[3]-n[2]-1;t.add(m,g,[])}}t.add(n[3]+1,0,[["exit",f,e]])}return i!==void 0&&(s.end=Object.assign({},Yt(e.events,i)),t.add(i,0,[["exit",s,e]]),s=void 0),s}a(Dr,"flushCell");function sc(t,e,n,r,i){const s=[],o=Yt(e.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,e])),r.end=Object.assign({},o),s.push(["exit",r,e]),t.add(n+1,0,s)}a(sc,"flushTableEnd");function Yt(t,e){const n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}a(Yt,"getPoint");const e_={tokenize:n_};function t_(){return{text:{91:e_}}}a(t_,"gfmTaskListItem");function n_(t,e,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),s)}function s(u){return J(u)?(t.enter("taskListCheckValueUnchecked"),t.consume(u),t.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(t.enter("taskListCheckValueChecked"),t.consume(u),t.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),l):n(u)}function l(u){return F(u)?e(u):q(u)?t.check({tokenize:r_},e,n)(u):n(u)}}a(n_,"tokenizeTasklistCheck");function r_(t,e,n){return U(t,r,"whitespace");function r(i){return i===null?n(i):e(i)}}a(r_,"spaceThenNonSpace");function i_(t){return $u([dx(),Bv(),Wv(t),Qv(),t_()])}a(i_,"gfm");const s_={};function o_(t){const e=this,n=t||s_,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(i_(n)),s.push(lx()),o.push(ux(n))}a(o_,"remarkGfm");const Ps={classNameMaps:{block:"admonition",title:"admonition-title"},titleFilter:["[!NOTE]","[!IMPORTANT]","[!WARNING]","[!TIP]","[!CAUTION]"],titleTextMap:t=>({displayTitle:t.substring(2,t.length-1),checkedTitle:t.substring(2,t.length-1)}),dataMaps:{block:t=>t,title:t=>t},titleKeepTrailingWhitespaces:!1,legacyTitle:!1},a_={...Ps,titleFilter:["Note","Warning"],titleTextMap:t=>({displayTitle:t,checkedTitle:t}),legacyTitle:!1,titleLift:!1,titleLiftWhitespaces:()=>"",titleUnwrap:!1};function Ln(t){return e=>{const n=typeof t=="function"?t(e):t;return typeof n=="object"?n.join(" "):n}}a(Ln,"classNameMap");function Ds(t){return e=>typeof t=="function"?t(e):t.includes(e)}a(Ds,"nameFilter");const l_=a(t=>e=>{if(e.type!="blockquote")return;const n=e;if(n.children.length<=0||n.children[0].type!="paragraph")return;const r=n.children[0];if(r.children.length<=0||r.children[0].type!="strong")return;const i=r.children[0];if(i.children.length!=1||i.children[0].type!="text")return;const s=i.children[0],o=s.value;if(!Ds(t.titleFilter)(o))return;const{displayTitle:l,checkedTitle:u}=t.titleTextMap(o);if(s.value=l,n.data=t.dataMaps.block({...n.data,hProperties:{className:Ln(t.classNameMaps.block)(u)}}),i.data=t.dataMaps.title({...i.data,hProperties:{className:Ln(t.classNameMaps.title)(u)}}),t.titleLift){const c=r.children.splice(0,1)[0];let h;t.titleUnwrap?h={type:"paragraph",children:[{type:"text",value:l}],data:t.dataMaps.title({hProperties:{className:Ln(t.classNameMaps.title)(u)}})}:h={type:"paragraph",children:[c]},n.children.unshift(h);const f=r;if(f.children.length>0&&f.children[0].type=="text"){const p=f.children[0],m=/^[ \t\n\v\f\r]*/.exec(p.value),g=m?m[0]:"";p.value=t.titleLiftWhitespaces(g)+p.value.slice(g.length)}}},"handleNode$1"),u_=a(function(...t){const e=t.reduce((r,i)=>({...r,...i}),{}),n=e?.legacyTitle??Ps.legacyTitle;return r=>{ee(r,n?l_({...a_,...e}):c_({...Ps,...e}))}},"plugin"),c_=a(t=>e=>{if(e.type!="blockquote")return;const n=e;if(n.children[0]?.type!="paragraph")return;const r=n.children[0];if(r.children[0]?.type!="text")return;const i=r.children[0];let s;const o=i.value.indexOf(`
|
|
87
|
+
`);if(o<0){if(r.children.length>1)if(r.children.at(1)?.type=="break")r.children.splice(1,1);else return;if(s=i.value,!Ds(t.titleFilter)(s))return;r.children.shift()}else{const f=i.value.substring(o+1);s=i.value.substring(0,o);const p=/[ \t\v\f\r]+$/.exec(s);if(p&&!t.titleKeepTrailingWhitespaces&&(s=s.substring(0,s.length-p[0].length)),!Ds(t.titleFilter)(s))return;i.value=f}const{displayTitle:l,checkedTitle:u}=t.titleTextMap(s),h={type:"paragraph",children:[{type:"text",value:l}],data:t.dataMaps.title({hProperties:{className:Ln(t.classNameMaps.title)(u)}})};n.children.unshift(h),n.data=t.dataMaps.block({...n.data,hProperties:{className:Ln(t.classNameMaps.block)(u)},hName:"div"})},"handleNode");function f_(){return{enter:{mathFlow:t,mathFlowFenceMeta:e,mathText:s},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:l,mathText:o,mathTextData:l}};function t(u){const c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},u)}function e(){this.buffer()}function n(){const u=this.resume(),c=this.stack[this.stack.length-1];c.type,c.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),h=this.stack[this.stack.length-1];h.type,this.exit(u),h.value=c;const f=h.data.hChildren[0];f.type,f.tagName,f.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function s(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function o(u){const c=this.resume(),h=this.stack[this.stack.length-1];h.type,this.exit(u),h.value=c,h.data.hChildren.push({type:"text",value:c})}function l(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}a(f_,"mathFromMarkdown");function h_(t){let e=(t||{}).singleDollarTextMath;return e==null&&(e=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
88
|
+
`,inConstruct:"mathFlowMeta"},{character:"$",after:e?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(s,o,l,u){const c=s.value||"",h=l.createTracker(u),f="$".repeat(Math.max(wu(c,"$")+1,2)),p=l.enter("mathFlow");let d=h.move(f);if(s.meta){const m=l.enter("mathFlowMeta");d+=h.move(l.safe(s.meta,{after:`
|
|
88
89
|
`,before:d,encode:["$"],...h.current()})),m()}return d+=h.move(`
|
|
89
90
|
`),c&&(d+=h.move(c+`
|
|
90
|
-
`)),d+=h.move(f),p(),d}a(n,"math");function r(s,o,l){let u=s.value||"",c=1;for(e||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(u);)c++;const h="$".repeat(c);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let f=-1;for(;++f<l.unsafe.length;){const p=l.unsafe[f];if(!p.atBreak)continue;const d=l.compilePattern(p);let m;for(;m=d.exec(u);){let g=m.index;u.codePointAt(g)===10&&u.codePointAt(g-1)===13&&g--,u=u.slice(0,g)+" "+u.slice(m.index+1)}}return h+u+h}a(r,"inlineMath");function i(){return"$"}a(i,"inlineMathPeek")}a(f_,"mathToMarkdown");const h_={tokenize:p_,concrete:!0},sc={tokenize:d_,partial:!0};function p_(t,e,n){const r=this,i=r.events[r.events.length-1],s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let o=0;return l;function l(w){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),u(w)}function u(w){return w===36?(t.consume(w),o++,u):o<2?n(w):(t.exit("mathFlowFenceSequence"),U(t,c,"whitespace")(w))}function c(w){return w===null||F(w)?f(w):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||F(w)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),f(w)):w===36?n(w):(t.consume(w),h)}function f(w){return t.exit("mathFlowFence"),r.interrupt?e(w):t.attempt(sc,p,y)(w)}function p(w){return t.attempt({tokenize:b,partial:!0},y,d)(w)}function d(w){return(s?U(t,m,"linePrefix",s+1):m)(w)}function m(w){return w===null?y(w):F(w)?t.attempt(sc,p,y)(w):(t.enter("mathFlowValue"),g(w))}function g(w){return w===null||F(w)?(t.exit("mathFlowValue"),m(w)):(t.consume(w),g)}function y(w){return t.exit("mathFlow"),e(w)}function b(w,k,_){let C=0;return U(w,S,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function S(P){return w.enter("mathFlowFence"),w.enter("mathFlowFenceSequence"),A(P)}function A(P){return P===36?(C++,w.consume(P),A):C<o?_(P):(w.exit("mathFlowFenceSequence"),U(w,E,"whitespace")(P))}function E(P){return P===null||F(P)?(w.exit("mathFlowFence"),k(P)):_(P)}}}a(p_,"tokenizeMathFenced");function d_(t,e,n){const r=this;return i;function i(o){return o===null?e(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}a(d_,"tokenizeNonLazyContinuation");function m_(t){let n=(t||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:g_,previous:y_};function r(i,s,o){let l=0,u,c;return h;function h(g){return i.enter("mathText"),i.enter("mathTextSequence"),f(g)}function f(g){return g===36?(i.consume(g),l++,f):l<2&&!n?o(g):(i.exit("mathTextSequence"),p(g))}function p(g){return g===null?o(g):g===36?(c=i.enter("mathTextSequence"),u=0,m(g)):g===32?(i.enter("space"),i.consume(g),i.exit("space"),p):F(g)?(i.enter("lineEnding"),i.consume(g),i.exit("lineEnding"),p):(i.enter("mathTextData"),d(g))}function d(g){return g===null||g===32||g===36||F(g)?(i.exit("mathTextData"),p(g)):(i.consume(g),d)}function m(g){return g===36?(i.consume(g),u++,m):u===l?(i.exit("mathTextSequence"),i.exit("mathText"),s(g)):(c.type="mathTextData",d(g))}}a(r,"tokenizeMathText")}a(m_,"mathText");function g_(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="mathTextData"){t[e][1].type="mathTextPadding",t[n][1].type="mathTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="mathTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}a(g_,"resolveMathText");function y_(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}a(y_,"previous");function b_(t){return{flow:{36:h_},text:{36:m_(t)}}}a(b_,"math");const w_={};function k_(t){const e=this,n=t||w_,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(b_(n)),s.push(c_()),o.push(f_(n))}a(k_,"remarkMath");const S_={tokenize:x_};function x_(t){const e=t.attempt(this.parser.constructs.contentInitial,r,i);let n;return e;function r(l){if(l===null){t.consume(l);return}return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),U(t,e,"linePrefix")}function i(l){return t.enter("paragraph"),s(l)}function s(l){const u=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,o(l)}function o(l){if(l===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(l);return}return F(l)?(t.consume(l),t.exit("chunkText"),s):(t.consume(l),o)}}a(x_,"initializeContent");const v_={tokenize:__},oc={tokenize:C_};function __(t){const e=this,n=[];let r=0,i,s,o;return l;function l(k){if(r<n.length){const _=n[r];return e.containerState=_[1],t.attempt(_[0].continuation,u,c)(k)}return c(k)}function u(k){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&w();const _=e.events.length;let C=_,S;for(;C--;)if(e.events[C][0]==="exit"&&e.events[C][1].type==="chunkFlow"){S=e.events[C][1].end;break}b(r);let A=_;for(;A<e.events.length;)e.events[A][1].end=Object.assign({},S),A++;return Ie(e.events,C+1,0,e.events.slice(_)),e.events.length=A,c(k)}return l(k)}function c(k){if(r===n.length){if(!i)return p(k);if(i.currentConstruct&&i.currentConstruct.concrete)return m(k);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(oc,h,f)(k)}function h(k){return i&&w(),b(r),p(k)}function f(k){return e.parser.lazy[e.now().line]=r!==n.length,o=e.now().offset,m(k)}function p(k){return e.containerState={},t.attempt(oc,d,m)(k)}function d(k){return r++,n.push([e.currentConstruct,e.containerState]),p(k)}function m(k){if(k===null){i&&w(),b(0),t.consume(k);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:i}),g(k)}function g(k){if(k===null){y(t.exit("chunkFlow"),!0),b(0),t.consume(k);return}return F(k)?(t.consume(k),y(t.exit("chunkFlow")),r=0,e.interrupt=void 0,l):(t.consume(k),g)}function y(k,_){const C=e.sliceStream(k);if(_&&C.push(null),k.previous=s,s&&(s.next=k),s=k,i.defineSkip(k.start),i.write(C),e.parser.lazy[k.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<o&&(!i.events[S][1].end||i.events[S][1].end.offset>o))return;const A=e.events.length;let E=A,P,N;for(;E--;)if(e.events[E][0]==="exit"&&e.events[E][1].type==="chunkFlow"){if(P){N=e.events[E][1].end;break}P=!0}for(b(r),S=A;S<e.events.length;)e.events[S][1].end=Object.assign({},N),S++;Ie(e.events,E+1,0,e.events.slice(A)),e.events.length=S}}function b(k){let _=n.length;for(;_-- >k;){const C=n[_];e.containerState=C[1],C[0].exit.call(e,t)}n.length=k}function w(){i.write([null]),s=void 0,i=void 0,e.containerState._closeFlow=void 0}}a(__,"initializeDocument");function C_(t,e,n){return U(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}a(C_,"tokenizeContainer");const N_={tokenize:A_};function A_(t){const e=this,n=t.attempt(En,r,t.attempt(this.parser.constructs.flowInitial,i,U(t,t.attempt(this.parser.constructs.flow,i,t.attempt(jx,i)),"linePrefix")));return n;function r(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,n}}a(A_,"initializeFlow");const E_={resolveAll:lc()},T_=ac("string"),I_=ac("text");function ac(t){return{tokenize:e,resolveAll:lc(t==="text"?L_:void 0)};function e(n){const r=this,i=this.parser.constructs[t],s=n.attempt(i,o,l);return o;function o(h){return c(h)?s(h):l(h)}function l(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),u}function u(h){return c(h)?(n.exit("data"),s(h)):(n.consume(h),u)}function c(h){if(h===null)return!0;const f=i[h];let p=-1;if(f)for(;++p<f.length;){const d=f[p];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}a(ac,"initializeFactory");function lc(t){return e;function e(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return t?t(n,r):n}}a(lc,"createResolver");function L_(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],i=e.sliceStream(r);let s=i.length,o=-1,l=0,u;for(;s--;){const c=i[s];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(c===-2)u=!0,l++;else if(c!==-1){s++;break}}if(l){const c={type:n===t.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+s,_bufferIndex:s?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(t.splice(n,0,["enter",c,e],["exit",c,e]),n+=2)}n++}return t}a(L_,"resolveAllLineSuffixes");function O_(t,e,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},s=[];let o=[],l=[];const u={consume:w,enter:k,exit:_,attempt:A(C),check:A(S),interrupt:A(S,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:d,sliceSerialize:p,now:m,defineSkip:g,write:f};let h=e.tokenize.call(c,u);return e.resolveAll&&s.push(e),c;function f(R){return o=Le(o,R),y(),o[o.length-1]!==null?[]:(E(e,0),c.events=Or(s,c.events,c),c.events)}a(f,"write");function p(R,O){return D_(d(R),O)}a(p,"sliceSerialize");function d(R){return P_(o,R)}a(d,"sliceStream");function m(){const{line:R,column:O,offset:H,_index:K,_bufferIndex:j}=r;return{line:R,column:O,offset:H,_index:K,_bufferIndex:j}}a(m,"now");function g(R){i[R.line]=R.column,N()}a(g,"defineSkip");function y(){let R;for(;r._index<o.length;){const O=o[r._index];if(typeof O=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<O.length;)b(O.charCodeAt(r._bufferIndex));else b(O)}}a(y,"main");function b(R){h=h(R)}a(b,"go");function w(R){F(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,N()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=R}a(w,"consume");function k(R,O){const H=O||{};return H.type=R,H.start=m(),c.events.push(["enter",H,c]),l.push(H),H}a(k,"enter");function _(R){const O=l.pop();return O.end=m(),c.events.push(["exit",O,c]),O}a(_,"exit");function C(R,O){E(R,O.from)}a(C,"onsuccessfulconstruct");function S(R,O){O.restore()}a(S,"onsuccessfulcheck");function A(R,O){return H;function H(K,j,de){let fe,Me,Ye,x;return Array.isArray(K)?Je(K):"tokenize"in K?Je([K]):$e(K);function $e(he){return cn;function cn(rt){const Lt=rt!==null&&he[rt],Ot=rt!==null&&he.null,Vn=[...Array.isArray(Lt)?Lt:Lt?[Lt]:[],...Array.isArray(Ot)?Ot:Ot?[Ot]:[]];return Je(Vn)(rt)}}function Je(he){return fe=he,Me=0,he.length===0?de:v(he[Me])}function v(he){return cn;function cn(rt){return x=P(),Ye=he,he.partial||(c.currentConstruct=he),he.name&&c.parser.constructs.disable.null.includes(he.name)?ft():he.tokenize.call(O?Object.assign(Object.create(c),O):c,u,Be,ft)(rt)}}function Be(he){return R(Ye,x),j}function ft(he){return x.restore(),++Me<fe.length?v(fe[Me]):de}}}a(A,"constructFactory");function E(R,O){R.resolveAll&&!s.includes(R)&&s.push(R),R.resolve&&Ie(c.events,O,c.events.length-O,R.resolve(c.events.slice(O),c)),R.resolveTo&&(c.events=R.resolveTo(c.events,c))}a(E,"addResult");function P(){const R=m(),O=c.previous,H=c.currentConstruct,K=c.events.length,j=Array.from(l);return{restore:de,from:K};function de(){r=R,c.previous=O,c.currentConstruct=H,c.events.length=K,l=j,N()}}a(P,"store");function N(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}a(N,"accountForPotentialSkip")}a(O_,"createTokenizer");function P_(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,s=e.end._bufferIndex;let o;if(n===i)o=[t[n].slice(r,s)];else{if(o=t.slice(n,i),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}s>0&&o.push(t[i].slice(0,s))}return o}a(P_,"sliceChunks");function D_(t,e){let n=-1;const r=[];let i;for(;++n<t.length;){const s=t[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
|
|
91
|
+
`)),d+=h.move(f),p(),d}a(n,"math");function r(s,o,l){let u=s.value||"",c=1;for(e||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(u);)c++;const h="$".repeat(c);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let f=-1;for(;++f<l.unsafe.length;){const p=l.unsafe[f];if(!p.atBreak)continue;const d=l.compilePattern(p);let m;for(;m=d.exec(u);){let g=m.index;u.codePointAt(g)===10&&u.codePointAt(g-1)===13&&g--,u=u.slice(0,g)+" "+u.slice(m.index+1)}}return h+u+h}a(r,"inlineMath");function i(){return"$"}a(i,"inlineMathPeek")}a(h_,"mathToMarkdown");const p_={tokenize:d_,concrete:!0},oc={tokenize:m_,partial:!0};function d_(t,e,n){const r=this,i=r.events[r.events.length-1],s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let o=0;return l;function l(w){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),u(w)}function u(w){return w===36?(t.consume(w),o++,u):o<2?n(w):(t.exit("mathFlowFenceSequence"),U(t,c,"whitespace")(w))}function c(w){return w===null||F(w)?f(w):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||F(w)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),f(w)):w===36?n(w):(t.consume(w),h)}function f(w){return t.exit("mathFlowFence"),r.interrupt?e(w):t.attempt(oc,p,y)(w)}function p(w){return t.attempt({tokenize:b,partial:!0},y,d)(w)}function d(w){return(s?U(t,m,"linePrefix",s+1):m)(w)}function m(w){return w===null?y(w):F(w)?t.attempt(oc,p,y)(w):(t.enter("mathFlowValue"),g(w))}function g(w){return w===null||F(w)?(t.exit("mathFlowValue"),m(w)):(t.consume(w),g)}function y(w){return t.exit("mathFlow"),e(w)}function b(w,k,_){let C=0;return U(w,S,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function S(P){return w.enter("mathFlowFence"),w.enter("mathFlowFenceSequence"),A(P)}function A(P){return P===36?(C++,w.consume(P),A):C<o?_(P):(w.exit("mathFlowFenceSequence"),U(w,E,"whitespace")(P))}function E(P){return P===null||F(P)?(w.exit("mathFlowFence"),k(P)):_(P)}}}a(d_,"tokenizeMathFenced");function m_(t,e,n){const r=this;return i;function i(o){return o===null?e(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}a(m_,"tokenizeNonLazyContinuation");function g_(t){let n=(t||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:y_,previous:b_};function r(i,s,o){let l=0,u,c;return h;function h(g){return i.enter("mathText"),i.enter("mathTextSequence"),f(g)}function f(g){return g===36?(i.consume(g),l++,f):l<2&&!n?o(g):(i.exit("mathTextSequence"),p(g))}function p(g){return g===null?o(g):g===36?(c=i.enter("mathTextSequence"),u=0,m(g)):g===32?(i.enter("space"),i.consume(g),i.exit("space"),p):F(g)?(i.enter("lineEnding"),i.consume(g),i.exit("lineEnding"),p):(i.enter("mathTextData"),d(g))}function d(g){return g===null||g===32||g===36||F(g)?(i.exit("mathTextData"),p(g)):(i.consume(g),d)}function m(g){return g===36?(i.consume(g),u++,m):u===l?(i.exit("mathTextSequence"),i.exit("mathText"),s(g)):(c.type="mathTextData",d(g))}}a(r,"tokenizeMathText")}a(g_,"mathText");function y_(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="mathTextData"){t[e][1].type="mathTextPadding",t[n][1].type="mathTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="mathTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}a(y_,"resolveMathText");function b_(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}a(b_,"previous");function w_(t){return{flow:{36:p_},text:{36:g_(t)}}}a(w_,"math");const k_={};function S_(t){const e=this,n=t||k_,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(w_(n)),s.push(f_()),o.push(h_(n))}a(S_,"remarkMath");const x_={tokenize:v_};function v_(t){const e=t.attempt(this.parser.constructs.contentInitial,r,i);let n;return e;function r(l){if(l===null){t.consume(l);return}return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),U(t,e,"linePrefix")}function i(l){return t.enter("paragraph"),s(l)}function s(l){const u=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,o(l)}function o(l){if(l===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(l);return}return F(l)?(t.consume(l),t.exit("chunkText"),s):(t.consume(l),o)}}a(v_,"initializeContent");const __={tokenize:C_},ac={tokenize:N_};function C_(t){const e=this,n=[];let r=0,i,s,o;return l;function l(k){if(r<n.length){const _=n[r];return e.containerState=_[1],t.attempt(_[0].continuation,u,c)(k)}return c(k)}function u(k){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&w();const _=e.events.length;let C=_,S;for(;C--;)if(e.events[C][0]==="exit"&&e.events[C][1].type==="chunkFlow"){S=e.events[C][1].end;break}b(r);let A=_;for(;A<e.events.length;)e.events[A][1].end=Object.assign({},S),A++;return Ie(e.events,C+1,0,e.events.slice(_)),e.events.length=A,c(k)}return l(k)}function c(k){if(r===n.length){if(!i)return p(k);if(i.currentConstruct&&i.currentConstruct.concrete)return m(k);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(ac,h,f)(k)}function h(k){return i&&w(),b(r),p(k)}function f(k){return e.parser.lazy[e.now().line]=r!==n.length,o=e.now().offset,m(k)}function p(k){return e.containerState={},t.attempt(ac,d,m)(k)}function d(k){return r++,n.push([e.currentConstruct,e.containerState]),p(k)}function m(k){if(k===null){i&&w(),b(0),t.consume(k);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:i}),g(k)}function g(k){if(k===null){y(t.exit("chunkFlow"),!0),b(0),t.consume(k);return}return F(k)?(t.consume(k),y(t.exit("chunkFlow")),r=0,e.interrupt=void 0,l):(t.consume(k),g)}function y(k,_){const C=e.sliceStream(k);if(_&&C.push(null),k.previous=s,s&&(s.next=k),s=k,i.defineSkip(k.start),i.write(C),e.parser.lazy[k.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<o&&(!i.events[S][1].end||i.events[S][1].end.offset>o))return;const A=e.events.length;let E=A,P,N;for(;E--;)if(e.events[E][0]==="exit"&&e.events[E][1].type==="chunkFlow"){if(P){N=e.events[E][1].end;break}P=!0}for(b(r),S=A;S<e.events.length;)e.events[S][1].end=Object.assign({},N),S++;Ie(e.events,E+1,0,e.events.slice(A)),e.events.length=S}}function b(k){let _=n.length;for(;_-- >k;){const C=n[_];e.containerState=C[1],C[0].exit.call(e,t)}n.length=k}function w(){i.write([null]),s=void 0,i=void 0,e.containerState._closeFlow=void 0}}a(C_,"initializeDocument");function N_(t,e,n){return U(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}a(N_,"tokenizeContainer");const A_={tokenize:E_};function E_(t){const e=this,n=t.attempt(En,r,t.attempt(this.parser.constructs.flowInitial,i,U(t,t.attempt(this.parser.constructs.flow,i,t.attempt(Gx,i)),"linePrefix")));return n;function r(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,n}}a(E_,"initializeFlow");const T_={resolveAll:uc()},I_=lc("string"),L_=lc("text");function lc(t){return{tokenize:e,resolveAll:uc(t==="text"?O_:void 0)};function e(n){const r=this,i=this.parser.constructs[t],s=n.attempt(i,o,l);return o;function o(h){return c(h)?s(h):l(h)}function l(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),u}function u(h){return c(h)?(n.exit("data"),s(h)):(n.consume(h),u)}function c(h){if(h===null)return!0;const f=i[h];let p=-1;if(f)for(;++p<f.length;){const d=f[p];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}a(lc,"initializeFactory");function uc(t){return e;function e(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return t?t(n,r):n}}a(uc,"createResolver");function O_(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],i=e.sliceStream(r);let s=i.length,o=-1,l=0,u;for(;s--;){const c=i[s];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(c===-2)u=!0,l++;else if(c!==-1){s++;break}}if(l){const c={type:n===t.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+s,_bufferIndex:s?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(t.splice(n,0,["enter",c,e],["exit",c,e]),n+=2)}n++}return t}a(O_,"resolveAllLineSuffixes");function P_(t,e,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},s=[];let o=[],l=[];const u={consume:w,enter:k,exit:_,attempt:A(C),check:A(S),interrupt:A(S,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:d,sliceSerialize:p,now:m,defineSkip:g,write:f};let h=e.tokenize.call(c,u);return e.resolveAll&&s.push(e),c;function f(R){return o=Le(o,R),y(),o[o.length-1]!==null?[]:(E(e,0),c.events=Or(s,c.events,c),c.events)}a(f,"write");function p(R,O){return R_(d(R),O)}a(p,"sliceSerialize");function d(R){return D_(o,R)}a(d,"sliceStream");function m(){const{line:R,column:O,offset:H,_index:K,_bufferIndex:j}=r;return{line:R,column:O,offset:H,_index:K,_bufferIndex:j}}a(m,"now");function g(R){i[R.line]=R.column,N()}a(g,"defineSkip");function y(){let R;for(;r._index<o.length;){const O=o[r._index];if(typeof O=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<O.length;)b(O.charCodeAt(r._bufferIndex));else b(O)}}a(y,"main");function b(R){h=h(R)}a(b,"go");function w(R){F(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,N()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=R}a(w,"consume");function k(R,O){const H=O||{};return H.type=R,H.start=m(),c.events.push(["enter",H,c]),l.push(H),H}a(k,"enter");function _(R){const O=l.pop();return O.end=m(),c.events.push(["exit",O,c]),O}a(_,"exit");function C(R,O){E(R,O.from)}a(C,"onsuccessfulconstruct");function S(R,O){O.restore()}a(S,"onsuccessfulcheck");function A(R,O){return H;function H(K,j,de){let fe,Me,Ye,x;return Array.isArray(K)?Je(K):"tokenize"in K?Je([K]):$e(K);function $e(he){return cn;function cn(rt){const Lt=rt!==null&&he[rt],Ot=rt!==null&&he.null,Vn=[...Array.isArray(Lt)?Lt:Lt?[Lt]:[],...Array.isArray(Ot)?Ot:Ot?[Ot]:[]];return Je(Vn)(rt)}}function Je(he){return fe=he,Me=0,he.length===0?de:v(he[Me])}function v(he){return cn;function cn(rt){return x=P(),Ye=he,he.partial||(c.currentConstruct=he),he.name&&c.parser.constructs.disable.null.includes(he.name)?ft():he.tokenize.call(O?Object.assign(Object.create(c),O):c,u,Be,ft)(rt)}}function Be(he){return R(Ye,x),j}function ft(he){return x.restore(),++Me<fe.length?v(fe[Me]):de}}}a(A,"constructFactory");function E(R,O){R.resolveAll&&!s.includes(R)&&s.push(R),R.resolve&&Ie(c.events,O,c.events.length-O,R.resolve(c.events.slice(O),c)),R.resolveTo&&(c.events=R.resolveTo(c.events,c))}a(E,"addResult");function P(){const R=m(),O=c.previous,H=c.currentConstruct,K=c.events.length,j=Array.from(l);return{restore:de,from:K};function de(){r=R,c.previous=O,c.currentConstruct=H,c.events.length=K,l=j,N()}}a(P,"store");function N(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}a(N,"accountForPotentialSkip")}a(P_,"createTokenizer");function D_(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,s=e.end._bufferIndex;let o;if(n===i)o=[t[n].slice(r,s)];else{if(o=t.slice(n,i),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}s>0&&o.push(t[i].slice(0,s))}return o}a(D_,"sliceChunks");function R_(t,e){let n=-1;const r=[];let i;for(;++n<t.length;){const s=t[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
|
|
91
92
|
`;break}case-3:{o=`\r
|
|
92
|
-
`;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}a(D_,"serializeChunks");const R_={42:xe,43:xe,45:xe,48:xe,49:xe,50:xe,51:xe,52:xe,53:xe,54:xe,55:xe,56:xe,57:xe,62:Wu},F_={91:Kx},M_={[-2]:Ts,[-1]:Ts,32:Ts},$_={35:ev,42:Pr,45:[rc,Pr],60:iv,61:rc,95:Pr,96:Qu,126:Qu},B_={38:Yu,92:Ku},q_={[-5]:Ls,[-4]:Ls,[-3]:Ls,33:xv,38:Yu,42:Es,60:[_x,fv],91:_v,92:[Xx,Ku],93:Is,95:Es,96:Mx},z_={null:[Es,E_]},U_={null:[42,95]},j_={null:[]};var G_=Object.freeze({__proto__:null,attentionMarkers:U_,contentInitial:F_,disable:j_,document:R_,flow:$_,flowInitial:M_,insideSpan:z_,string:B_,text:q_});function H_(t){const n=Mu([G_,...(t||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(S_),document:i(v_),flow:i(N_),string:i(T_),text:i(I_)};return r;function i(s){return o;function o(l){return O_(r,s,l)}}}a(H_,"parse$1");function V_(t){for(;!Xu(t););return t}a(V_,"postprocess");const uc=/[\0\t\n\r]/g;function W_(){let t=1,e="",n=!0,r;return i;function i(s,o,l){const u=[];let c,h,f,p,d;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),f=0,e="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(uc.lastIndex=f,c=uc.exec(s),p=c&&c.index!==void 0?c.index:s.length,d=s.charCodeAt(p),!c){e=s.slice(f);break}if(d===10&&f===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),f<p&&(u.push(s.slice(f,p)),t+=p-f),d){case 0:{u.push(65533),t++;break}case 9:{for(h=Math.ceil(t/4)*4,u.push(-2);t++<h;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:r=!0,t=1}f=p+1}return l&&(r&&u.push(-5),e&&u.push(e),u.push(null)),u}}a(W_,"preprocess");const cc={}.hasOwnProperty;function K_(t,e,n){return typeof e!="string"&&(n=e,e=void 0),Y_(n)(V_(H_(n).document().write(W_()(t,e,!0))))}a(K_,"fromMarkdown");function Y_(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(po),autolinkProtocol:P,autolinkEmail:P,atxHeading:s(co),blockQuote:s(Ot),characterEscape:P,characterReference:P,codeFenced:s(Vn),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(Vn,o),codeText:s(gf,o),codeTextData:P,data:P,codeFlowValue:P,definition:s(yf),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(bf),hardBreakEscape:s(fo),hardBreakTrailing:s(fo),htmlFlow:s(ho,o),htmlFlowData:P,htmlText:s(ho,o),htmlTextData:P,image:s(wf),label:o,link:s(po),listItem:s(kf),listItemValue:p,listOrdered:s(mo,f),listUnordered:s(mo),paragraph:s(Sf),reference:v,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(co),strong:s(xf),thematicBreak:s(_f)},exit:{atxHeading:u(),atxHeadingSequence:C,autolink:u(),autolinkEmail:Lt,autolinkProtocol:rt,blockQuote:u(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:ft,characterReferenceMarkerNumeric:ft,characterReferenceValue:he,characterReference:cn,codeFenced:u(y),codeFencedFence:g,codeFencedFenceInfo:d,codeFencedFenceMeta:m,codeFlowValue:N,codeIndented:u(b),codeText:u(j),codeTextData:N,data:N,definition:u(),definitionDestinationString:_,definitionLabelString:w,definitionTitleString:k,emphasis:u(),hardBreakEscape:u(O),hardBreakTrailing:u(O),htmlFlow:u(H),htmlFlowData:N,htmlText:u(K),htmlTextData:N,image:u(fe),label:Ye,labelText:Me,lineEnding:R,link:u(de),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Be,resourceDestinationString:x,resourceTitleString:$e,resource:Je,setextHeading:u(E),setextHeadingLineSequence:A,setextHeadingText:S,strong:u(),thematicBreak:u()}};fc(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(T){let D={type:"root",children:[]};const M={stack:[D],tokenStack:[],config:e,enter:l,exit:c,buffer:o,resume:h,data:n},G=[];let Y=-1;for(;++Y<T.length;)if(T[Y][1].type==="listOrdered"||T[Y][1].type==="listUnordered")if(T[Y][0]==="enter")G.push(Y);else{const qe=G.pop();Y=i(T,qe,Y)}for(Y=-1;++Y<T.length;){const qe=e[T[Y][0]];cc.call(qe,T[Y][1].type)&&qe[T[Y][1].type].call(Object.assign({sliceSerialize:T[Y][2].sliceSerialize},M),T[Y][1])}if(M.tokenStack.length>0){const qe=M.tokenStack[M.tokenStack.length-1];(qe[1]||hc).call(M,void 0,qe[0])}for(D.position={start:ut(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:ut(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},Y=-1;++Y<e.transforms.length;)D=e.transforms[Y](D)||D;return D}function i(T,D,M){let G=D-1,Y=-1,qe=!1,ht,Qe,fn,hn;for(;++G<=M;){const ve=T[G];switch(ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ve[0]==="enter"?Y++:Y--,hn=void 0;break}case"lineEndingBlank":{ve[0]==="enter"&&(ht&&!hn&&!Y&&!fn&&(fn=G),hn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:hn=void 0}if(!Y&&ve[0]==="enter"&&ve[1].type==="listItemPrefix"||Y===-1&&ve[0]==="exit"&&(ve[1].type==="listUnordered"||ve[1].type==="listOrdered")){if(ht){let Pt=G;for(Qe=void 0;Pt--;){const Xe=T[Pt];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;Qe&&(T[Qe][1].type="lineEndingBlank",qe=!0),Xe[1].type="lineEnding",Qe=Pt}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}fn&&(!Qe||fn<Qe)&&(ht._spread=!0),ht.end=Object.assign({},Qe?T[Qe][1].start:ve[1].end),T.splice(Qe||G,0,["exit",ht,ve[2]]),G++,M++}if(ve[1].type==="listItemPrefix"){const Pt={type:"listItem",_spread:!1,start:Object.assign({},ve[1].start),end:void 0};ht=Pt,T.splice(G,0,["enter",Pt,ve[2]]),G++,M++,fn=void 0,hn=!0}}}return T[D][1]._spread=qe,M}function s(T,D){return M;function M(G){l.call(this,T(G),G),D&&D.call(this,G)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(T,D,M){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([D,M]),T.position={start:ut(D.start),end:void 0}}function u(T){return D;function D(M){T&&T.call(this,M),c.call(this,M)}}function c(T,D){const M=this.stack.pop(),G=this.tokenStack.pop();if(G)G[0].type!==T.type&&(D?D.call(this,T,G[0]):(G[1]||hc).call(this,T,G[0]));else throw new Error("Cannot close `"+T.type+"` ("+Cn({start:T.start,end:T.end})+"): it\u2019s not open");M.position.end=ut(T.end)}function h(){return xs(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(T){if(this.data.expectingFirstListItemValue){const D=this.stack[this.stack.length-2];D.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function d(){const T=this.resume(),D=this.stack[this.stack.length-1];D.lang=T}function m(){const T=this.resume(),D=this.stack[this.stack.length-1];D.meta=T}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T.replace(/(\r?\n|\r)$/g,"")}function w(T){const D=this.resume(),M=this.stack[this.stack.length-1];M.label=D,M.identifier=Ue(this.sliceSerialize(T)).toLowerCase()}function k(){const T=this.resume(),D=this.stack[this.stack.length-1];D.title=T}function _(){const T=this.resume(),D=this.stack[this.stack.length-1];D.url=T}function C(T){const D=this.stack[this.stack.length-1];if(!D.depth){const M=this.sliceSerialize(T).length;D.depth=M}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function A(T){const D=this.stack[this.stack.length-1];D.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function P(T){const M=this.stack[this.stack.length-1].children;let G=M[M.length-1];(!G||G.type!=="text")&&(G=vf(),G.position={start:ut(T.start),end:void 0},M.push(G)),this.stack.push(G)}function N(T){const D=this.stack.pop();D.value+=this.sliceSerialize(T),D.position.end=ut(T.end)}function R(T){const D=this.stack[this.stack.length-1];if(this.data.atHardBreak){const M=D.children[D.children.length-1];M.position.end=ut(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(D.type)&&(P.call(this,T),N.call(this,T))}function O(){this.data.atHardBreak=!0}function H(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T}function K(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T}function j(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T}function de(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=D,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function fe(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=D,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function Me(T){const D=this.sliceSerialize(T),M=this.stack[this.stack.length-2];M.label=KS(D),M.identifier=Ue(D).toLowerCase()}function Ye(){const T=this.stack[this.stack.length-1],D=this.resume(),M=this.stack[this.stack.length-1];if(this.data.inReference=!0,M.type==="link"){const G=T.children;M.children=G}else M.alt=D}function x(){const T=this.resume(),D=this.stack[this.stack.length-1];D.url=T}function $e(){const T=this.resume(),D=this.stack[this.stack.length-1];D.title=T}function Je(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function Be(T){const D=this.resume(),M=this.stack[this.stack.length-1];M.label=D,M.identifier=Ue(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function ft(T){this.data.characterReferenceType=T.type}function he(T){const D=this.sliceSerialize(T),M=this.data.characterReferenceType;let G;M?(G=Pu(D,M==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):G=_s(D);const Y=this.stack[this.stack.length-1];Y.value+=G}function cn(T){const D=this.stack.pop();D.position.end=ut(T.end)}function rt(T){N.call(this,T);const D=this.stack[this.stack.length-1];D.url=this.sliceSerialize(T)}function Lt(T){N.call(this,T);const D=this.stack[this.stack.length-1];D.url="mailto:"+this.sliceSerialize(T)}function Ot(){return{type:"blockquote",children:[]}}function Vn(){return{type:"code",lang:null,meta:null,value:""}}function gf(){return{type:"inlineCode",value:""}}function yf(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function bf(){return{type:"emphasis",children:[]}}function co(){return{type:"heading",depth:0,children:[]}}function fo(){return{type:"break"}}function ho(){return{type:"html",value:""}}function wf(){return{type:"image",title:null,url:"",alt:null}}function po(){return{type:"link",title:null,url:"",children:[]}}function mo(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function kf(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Sf(){return{type:"paragraph",children:[]}}function xf(){return{type:"strong",children:[]}}function vf(){return{type:"text",value:""}}function _f(){return{type:"thematicBreak"}}}a(Y_,"compiler");function ut(t){return{line:t.line,column:t.column,offset:t.offset}}a(ut,"point");function fc(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?fc(t,r):J_(t,r)}}a(fc,"configure");function J_(t,e){let n;for(n in e)if(cc.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}a(J_,"extension");function hc(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Cn({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Cn({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Cn({start:e.start,end:e.end})+") is still open")}a(hc,"defaultOnError");function Q_(t){const e=this;e.parser=n;function n(r){return K_(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}a(n,"parser")}a(Q_,"remarkParse");const Ds=Symbol.for("yaml.alias"),Rs=Symbol.for("yaml.document"),ct=Symbol.for("yaml.map"),pc=Symbol.for("yaml.pair"),et=Symbol.for("yaml.scalar"),Jt=Symbol.for("yaml.seq"),Oe=Symbol.for("yaml.node.type"),Qt=a(t=>!!t&&typeof t=="object"&&t[Oe]===Ds,"isAlias"),Rr=a(t=>!!t&&typeof t=="object"&&t[Oe]===Rs,"isDocument"),On=a(t=>!!t&&typeof t=="object"&&t[Oe]===ct,"isMap"),te=a(t=>!!t&&typeof t=="object"&&t[Oe]===pc,"isPair"),Z=a(t=>!!t&&typeof t=="object"&&t[Oe]===et,"isScalar"),Pn=a(t=>!!t&&typeof t=="object"&&t[Oe]===Jt,"isSeq");function ne(t){if(t&&typeof t=="object")switch(t[Oe]){case ct:case Jt:return!0}return!1}a(ne,"isCollection");function se(t){if(t&&typeof t=="object")switch(t[Oe]){case Ds:case ct:case et:case Jt:return!0}return!1}a(se,"isNode");const X_=a(t=>(Z(t)||ne(t))&&!!t.anchor,"hasAnchor"),vt=Symbol("break visit"),Z_=Symbol("skip children"),Dn=Symbol("remove node");function _t(t,e){const n=eC(e);Rr(t)?Xt(null,t.contents,n,Object.freeze([t]))===Dn&&(t.contents=null):Xt(null,t,n,Object.freeze([]))}a(_t,"visit"),_t.BREAK=vt,_t.SKIP=Z_,_t.REMOVE=Dn;function Xt(t,e,n,r){const i=tC(t,e,n,r);if(se(i)||te(i))return nC(t,r,i),Xt(t,i,n,r);if(typeof i!="symbol"){if(ne(e)){r=Object.freeze(r.concat(e));for(let s=0;s<e.items.length;++s){const o=Xt(s,e.items[s],n,r);if(typeof o=="number")s=o-1;else{if(o===vt)return vt;o===Dn&&(e.items.splice(s,1),s-=1)}}}else if(te(e)){r=Object.freeze(r.concat(e));const s=Xt("key",e.key,n,r);if(s===vt)return vt;s===Dn&&(e.key=null);const o=Xt("value",e.value,n,r);if(o===vt)return vt;o===Dn&&(e.value=null)}}return i}a(Xt,"visit_");function eC(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}a(eC,"initVisitor");function tC(t,e,n,r){if(typeof n=="function")return n(t,e,r);if(On(e))return n.Map?.(t,e,r);if(Pn(e))return n.Seq?.(t,e,r);if(te(e))return n.Pair?.(t,e,r);if(Z(e))return n.Scalar?.(t,e,r);if(Qt(e))return n.Alias?.(t,e,r)}a(tC,"callVisitor");function nC(t,e,n){const r=e[e.length-1];if(ne(r))r.items[t]=n;else if(te(r))t==="key"?r.key=n:r.value=n;else if(Rr(r))r.contents=n;else{const i=Qt(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}a(nC,"replaceNode");const rC={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},iC=a(t=>t.replace(/[!,[\]{}]/g,e=>rC[e]),"escapeTagName");class ke{static{a(this,"Directives")}constructor(e,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ke.defaultYaml,e),this.tags=Object.assign({},ke.defaultTags,n)}clone(){const e=new ke(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new ke(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ke.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ke.defaultTags);break}return e}add(e,n){this.atNextDocument&&(this.yaml={explicit:ke.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ke.defaultTags),this.atNextDocument=!1);const r=e.trim().split(/[ \t]+/),i=r.shift();switch(i){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[s,o]=r;return this.tags[s]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const o=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,o),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,n){if(e==="!")return"!";if(e[0]!=="!")return n(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(n(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&n("Verbatim tags must end with a >"),o)}const[,r,i]=e.match(/^(.*!)([^!]*)$/s);i||n(`The ${e} tag has no suffix`);const s=this.tags[r];if(s)try{return s+decodeURIComponent(i)}catch(o){return n(String(o)),null}return r==="!"?e:(n(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[n,r]of Object.entries(this.tags))if(e.startsWith(r))return n+iC(e.substring(r.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let i;if(e&&r.length>0&&se(e.contents)){const s={};_t(e.contents,(o,l)=>{se(l)&&l.tag&&(s[l.tag]=!0)}),i=Object.keys(s)}else i=[];for(const[s,o]of r)s==="!!"&&o==="tag:yaml.org,2002:"||(!e||i.some(l=>l.startsWith(o)))&&n.push(`%TAG ${s} ${o}`);return n.join(`
|
|
93
|
-
`)}}ke.defaultYaml={explicit:!1,version:"1.2"},ke.defaultTags={"!!":"tag:yaml.org,2002:"};function
|
|
93
|
+
`;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}a(R_,"serializeChunks");const F_={42:xe,43:xe,45:xe,48:xe,49:xe,50:xe,51:xe,52:xe,53:xe,54:xe,55:xe,56:xe,57:xe,62:Ku},M_={91:Yx},$_={[-2]:Is,[-1]:Is,32:Is},B_={35:tv,42:Pr,45:[ic,Pr],60:sv,61:ic,95:Pr,96:Xu,126:Xu},q_={38:Ju,92:Yu},z_={[-5]:Os,[-4]:Os,[-3]:Os,33:vv,38:Ju,42:Ts,60:[Cx,hv],91:Cv,92:[Zx,Yu],93:Ls,95:Ts,96:$x},U_={null:[Ts,T_]},j_={null:[42,95]},G_={null:[]};var H_=Object.freeze({__proto__:null,attentionMarkers:j_,contentInitial:M_,disable:G_,document:F_,flow:B_,flowInitial:$_,insideSpan:U_,string:q_,text:z_});function V_(t){const n=$u([H_,...(t||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(x_),document:i(__),flow:i(A_),string:i(I_),text:i(L_)};return r;function i(s){return o;function o(l){return P_(r,s,l)}}}a(V_,"parse$1");function W_(t){for(;!Zu(t););return t}a(W_,"postprocess");const cc=/[\0\t\n\r]/g;function K_(){let t=1,e="",n=!0,r;return i;function i(s,o,l){const u=[];let c,h,f,p,d;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),f=0,e="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(cc.lastIndex=f,c=cc.exec(s),p=c&&c.index!==void 0?c.index:s.length,d=s.charCodeAt(p),!c){e=s.slice(f);break}if(d===10&&f===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),f<p&&(u.push(s.slice(f,p)),t+=p-f),d){case 0:{u.push(65533),t++;break}case 9:{for(h=Math.ceil(t/4)*4,u.push(-2);t++<h;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:r=!0,t=1}f=p+1}return l&&(r&&u.push(-5),e&&u.push(e),u.push(null)),u}}a(K_,"preprocess");const fc={}.hasOwnProperty;function Y_(t,e,n){return typeof e!="string"&&(n=e,e=void 0),J_(n)(W_(V_(n).document().write(K_()(t,e,!0))))}a(Y_,"fromMarkdown");function J_(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(mo),autolinkProtocol:P,autolinkEmail:P,atxHeading:s(fo),blockQuote:s(Ot),characterEscape:P,characterReference:P,codeFenced:s(Vn),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(Vn,o),codeText:s(yf,o),codeTextData:P,data:P,codeFlowValue:P,definition:s(bf),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(wf),hardBreakEscape:s(ho),hardBreakTrailing:s(ho),htmlFlow:s(po,o),htmlFlowData:P,htmlText:s(po,o),htmlTextData:P,image:s(kf),label:o,link:s(mo),listItem:s(Sf),listItemValue:p,listOrdered:s(go,f),listUnordered:s(go),paragraph:s(xf),reference:v,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(fo),strong:s(vf),thematicBreak:s(Cf)},exit:{atxHeading:u(),atxHeadingSequence:C,autolink:u(),autolinkEmail:Lt,autolinkProtocol:rt,blockQuote:u(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:ft,characterReferenceMarkerNumeric:ft,characterReferenceValue:he,characterReference:cn,codeFenced:u(y),codeFencedFence:g,codeFencedFenceInfo:d,codeFencedFenceMeta:m,codeFlowValue:N,codeIndented:u(b),codeText:u(j),codeTextData:N,data:N,definition:u(),definitionDestinationString:_,definitionLabelString:w,definitionTitleString:k,emphasis:u(),hardBreakEscape:u(O),hardBreakTrailing:u(O),htmlFlow:u(H),htmlFlowData:N,htmlText:u(K),htmlTextData:N,image:u(fe),label:Ye,labelText:Me,lineEnding:R,link:u(de),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Be,resourceDestinationString:x,resourceTitleString:$e,resource:Je,setextHeading:u(E),setextHeadingLineSequence:A,setextHeadingText:S,strong:u(),thematicBreak:u()}};hc(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(T){let D={type:"root",children:[]};const M={stack:[D],tokenStack:[],config:e,enter:l,exit:c,buffer:o,resume:h,data:n},G=[];let Y=-1;for(;++Y<T.length;)if(T[Y][1].type==="listOrdered"||T[Y][1].type==="listUnordered")if(T[Y][0]==="enter")G.push(Y);else{const qe=G.pop();Y=i(T,qe,Y)}for(Y=-1;++Y<T.length;){const qe=e[T[Y][0]];fc.call(qe,T[Y][1].type)&&qe[T[Y][1].type].call(Object.assign({sliceSerialize:T[Y][2].sliceSerialize},M),T[Y][1])}if(M.tokenStack.length>0){const qe=M.tokenStack[M.tokenStack.length-1];(qe[1]||pc).call(M,void 0,qe[0])}for(D.position={start:ut(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:ut(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},Y=-1;++Y<e.transforms.length;)D=e.transforms[Y](D)||D;return D}function i(T,D,M){let G=D-1,Y=-1,qe=!1,ht,Qe,fn,hn;for(;++G<=M;){const ve=T[G];switch(ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ve[0]==="enter"?Y++:Y--,hn=void 0;break}case"lineEndingBlank":{ve[0]==="enter"&&(ht&&!hn&&!Y&&!fn&&(fn=G),hn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:hn=void 0}if(!Y&&ve[0]==="enter"&&ve[1].type==="listItemPrefix"||Y===-1&&ve[0]==="exit"&&(ve[1].type==="listUnordered"||ve[1].type==="listOrdered")){if(ht){let Pt=G;for(Qe=void 0;Pt--;){const Xe=T[Pt];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;Qe&&(T[Qe][1].type="lineEndingBlank",qe=!0),Xe[1].type="lineEnding",Qe=Pt}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}fn&&(!Qe||fn<Qe)&&(ht._spread=!0),ht.end=Object.assign({},Qe?T[Qe][1].start:ve[1].end),T.splice(Qe||G,0,["exit",ht,ve[2]]),G++,M++}if(ve[1].type==="listItemPrefix"){const Pt={type:"listItem",_spread:!1,start:Object.assign({},ve[1].start),end:void 0};ht=Pt,T.splice(G,0,["enter",Pt,ve[2]]),G++,M++,fn=void 0,hn=!0}}}return T[D][1]._spread=qe,M}function s(T,D){return M;function M(G){l.call(this,T(G),G),D&&D.call(this,G)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(T,D,M){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([D,M]),T.position={start:ut(D.start),end:void 0}}function u(T){return D;function D(M){T&&T.call(this,M),c.call(this,M)}}function c(T,D){const M=this.stack.pop(),G=this.tokenStack.pop();if(G)G[0].type!==T.type&&(D?D.call(this,T,G[0]):(G[1]||pc).call(this,T,G[0]));else throw new Error("Cannot close `"+T.type+"` ("+Cn({start:T.start,end:T.end})+"): it\u2019s not open");M.position.end=ut(T.end)}function h(){return vs(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(T){if(this.data.expectingFirstListItemValue){const D=this.stack[this.stack.length-2];D.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function d(){const T=this.resume(),D=this.stack[this.stack.length-1];D.lang=T}function m(){const T=this.resume(),D=this.stack[this.stack.length-1];D.meta=T}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T.replace(/(\r?\n|\r)$/g,"")}function w(T){const D=this.resume(),M=this.stack[this.stack.length-1];M.label=D,M.identifier=Ue(this.sliceSerialize(T)).toLowerCase()}function k(){const T=this.resume(),D=this.stack[this.stack.length-1];D.title=T}function _(){const T=this.resume(),D=this.stack[this.stack.length-1];D.url=T}function C(T){const D=this.stack[this.stack.length-1];if(!D.depth){const M=this.sliceSerialize(T).length;D.depth=M}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function A(T){const D=this.stack[this.stack.length-1];D.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function P(T){const M=this.stack[this.stack.length-1].children;let G=M[M.length-1];(!G||G.type!=="text")&&(G=_f(),G.position={start:ut(T.start),end:void 0},M.push(G)),this.stack.push(G)}function N(T){const D=this.stack.pop();D.value+=this.sliceSerialize(T),D.position.end=ut(T.end)}function R(T){const D=this.stack[this.stack.length-1];if(this.data.atHardBreak){const M=D.children[D.children.length-1];M.position.end=ut(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(D.type)&&(P.call(this,T),N.call(this,T))}function O(){this.data.atHardBreak=!0}function H(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T}function K(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T}function j(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T}function de(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=D,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function fe(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=D,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function Me(T){const D=this.sliceSerialize(T),M=this.stack[this.stack.length-2];M.label=YS(D),M.identifier=Ue(D).toLowerCase()}function Ye(){const T=this.stack[this.stack.length-1],D=this.resume(),M=this.stack[this.stack.length-1];if(this.data.inReference=!0,M.type==="link"){const G=T.children;M.children=G}else M.alt=D}function x(){const T=this.resume(),D=this.stack[this.stack.length-1];D.url=T}function $e(){const T=this.resume(),D=this.stack[this.stack.length-1];D.title=T}function Je(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function Be(T){const D=this.resume(),M=this.stack[this.stack.length-1];M.label=D,M.identifier=Ue(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function ft(T){this.data.characterReferenceType=T.type}function he(T){const D=this.sliceSerialize(T),M=this.data.characterReferenceType;let G;M?(G=Du(D,M==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):G=Cs(D);const Y=this.stack[this.stack.length-1];Y.value+=G}function cn(T){const D=this.stack.pop();D.position.end=ut(T.end)}function rt(T){N.call(this,T);const D=this.stack[this.stack.length-1];D.url=this.sliceSerialize(T)}function Lt(T){N.call(this,T);const D=this.stack[this.stack.length-1];D.url="mailto:"+this.sliceSerialize(T)}function Ot(){return{type:"blockquote",children:[]}}function Vn(){return{type:"code",lang:null,meta:null,value:""}}function yf(){return{type:"inlineCode",value:""}}function bf(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function wf(){return{type:"emphasis",children:[]}}function fo(){return{type:"heading",depth:0,children:[]}}function ho(){return{type:"break"}}function po(){return{type:"html",value:""}}function kf(){return{type:"image",title:null,url:"",alt:null}}function mo(){return{type:"link",title:null,url:"",children:[]}}function go(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Sf(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function xf(){return{type:"paragraph",children:[]}}function vf(){return{type:"strong",children:[]}}function _f(){return{type:"text",value:""}}function Cf(){return{type:"thematicBreak"}}}a(J_,"compiler");function ut(t){return{line:t.line,column:t.column,offset:t.offset}}a(ut,"point");function hc(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?hc(t,r):Q_(t,r)}}a(hc,"configure");function Q_(t,e){let n;for(n in e)if(fc.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}a(Q_,"extension");function pc(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Cn({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Cn({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Cn({start:e.start,end:e.end})+") is still open")}a(pc,"defaultOnError");function X_(t){const e=this;e.parser=n;function n(r){return Y_(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}a(n,"parser")}a(X_,"remarkParse");const Rs=Symbol.for("yaml.alias"),Fs=Symbol.for("yaml.document"),ct=Symbol.for("yaml.map"),dc=Symbol.for("yaml.pair"),et=Symbol.for("yaml.scalar"),Jt=Symbol.for("yaml.seq"),Oe=Symbol.for("yaml.node.type"),Qt=a(t=>!!t&&typeof t=="object"&&t[Oe]===Rs,"isAlias"),Rr=a(t=>!!t&&typeof t=="object"&&t[Oe]===Fs,"isDocument"),On=a(t=>!!t&&typeof t=="object"&&t[Oe]===ct,"isMap"),te=a(t=>!!t&&typeof t=="object"&&t[Oe]===dc,"isPair"),Z=a(t=>!!t&&typeof t=="object"&&t[Oe]===et,"isScalar"),Pn=a(t=>!!t&&typeof t=="object"&&t[Oe]===Jt,"isSeq");function ne(t){if(t&&typeof t=="object")switch(t[Oe]){case ct:case Jt:return!0}return!1}a(ne,"isCollection");function se(t){if(t&&typeof t=="object")switch(t[Oe]){case Rs:case ct:case et:case Jt:return!0}return!1}a(se,"isNode");const Z_=a(t=>(Z(t)||ne(t))&&!!t.anchor,"hasAnchor"),vt=Symbol("break visit"),eC=Symbol("skip children"),Dn=Symbol("remove node");function _t(t,e){const n=tC(e);Rr(t)?Xt(null,t.contents,n,Object.freeze([t]))===Dn&&(t.contents=null):Xt(null,t,n,Object.freeze([]))}a(_t,"visit"),_t.BREAK=vt,_t.SKIP=eC,_t.REMOVE=Dn;function Xt(t,e,n,r){const i=nC(t,e,n,r);if(se(i)||te(i))return rC(t,r,i),Xt(t,i,n,r);if(typeof i!="symbol"){if(ne(e)){r=Object.freeze(r.concat(e));for(let s=0;s<e.items.length;++s){const o=Xt(s,e.items[s],n,r);if(typeof o=="number")s=o-1;else{if(o===vt)return vt;o===Dn&&(e.items.splice(s,1),s-=1)}}}else if(te(e)){r=Object.freeze(r.concat(e));const s=Xt("key",e.key,n,r);if(s===vt)return vt;s===Dn&&(e.key=null);const o=Xt("value",e.value,n,r);if(o===vt)return vt;o===Dn&&(e.value=null)}}return i}a(Xt,"visit_");function tC(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}a(tC,"initVisitor");function nC(t,e,n,r){if(typeof n=="function")return n(t,e,r);if(On(e))return n.Map?.(t,e,r);if(Pn(e))return n.Seq?.(t,e,r);if(te(e))return n.Pair?.(t,e,r);if(Z(e))return n.Scalar?.(t,e,r);if(Qt(e))return n.Alias?.(t,e,r)}a(nC,"callVisitor");function rC(t,e,n){const r=e[e.length-1];if(ne(r))r.items[t]=n;else if(te(r))t==="key"?r.key=n:r.value=n;else if(Rr(r))r.contents=n;else{const i=Qt(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}a(rC,"replaceNode");const iC={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},sC=a(t=>t.replace(/[!,[\]{}]/g,e=>iC[e]),"escapeTagName");class ke{static{a(this,"Directives")}constructor(e,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ke.defaultYaml,e),this.tags=Object.assign({},ke.defaultTags,n)}clone(){const e=new ke(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new ke(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ke.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ke.defaultTags);break}return e}add(e,n){this.atNextDocument&&(this.yaml={explicit:ke.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ke.defaultTags),this.atNextDocument=!1);const r=e.trim().split(/[ \t]+/),i=r.shift();switch(i){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[s,o]=r;return this.tags[s]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const o=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,o),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,n){if(e==="!")return"!";if(e[0]!=="!")return n(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(n(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&n("Verbatim tags must end with a >"),o)}const[,r,i]=e.match(/^(.*!)([^!]*)$/s);i||n(`The ${e} tag has no suffix`);const s=this.tags[r];if(s)try{return s+decodeURIComponent(i)}catch(o){return n(String(o)),null}return r==="!"?e:(n(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[n,r]of Object.entries(this.tags))if(e.startsWith(r))return n+sC(e.substring(r.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let i;if(e&&r.length>0&&se(e.contents)){const s={};_t(e.contents,(o,l)=>{se(l)&&l.tag&&(s[l.tag]=!0)}),i=Object.keys(s)}else i=[];for(const[s,o]of r)s==="!!"&&o==="tag:yaml.org,2002:"||(!e||i.some(l=>l.startsWith(o)))&&n.push(`%TAG ${s} ${o}`);return n.join(`
|
|
94
|
+
`)}}ke.defaultYaml={explicit:!1,version:"1.2"},ke.defaultTags={"!!":"tag:yaml.org,2002:"};function mc(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(n)}return!0}a(mc,"anchorIsValid");function gc(t){const e=new Set;return _t(t,{Value(n,r){r.anchor&&e.add(r.anchor)}}),e}a(gc,"anchorNames");function yc(t,e){for(let n=1;;++n){const r=`${t}${n}`;if(!e.has(r))return r}}a(yc,"findNewAnchor");function oC(t,e){const n=[],r=new Map;let i=null;return{onAnchor:s=>{n.push(s),i||(i=gc(t));const o=yc(e,i);return i.add(o),o},setAnchors:()=>{for(const s of n){const o=r.get(s);if(typeof o=="object"&&o.anchor&&(Z(o.node)||ne(o.node)))o.node.anchor=o.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=s,l}}},sourceObjects:r}}a(oC,"createNodeAnchors");function Zt(t,e,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,s=r.length;i<s;++i){const o=r[i],l=Zt(t,r,String(i),o);l===void 0?delete r[i]:l!==o&&(r[i]=l)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const s=r.get(i),o=Zt(t,r,i,s);o===void 0?r.delete(i):o!==s&&r.set(i,o)}else if(r instanceof Set)for(const i of Array.from(r)){const s=Zt(t,r,i,i);s===void 0?r.delete(i):s!==i&&(r.delete(i),r.add(s))}else for(const[i,s]of Object.entries(r)){const o=Zt(t,r,i,s);o===void 0?delete r[i]:o!==s&&(r[i]=o)}return t.call(e,n,r)}a(Zt,"applyReviver");function Pe(t,e,n){if(Array.isArray(t))return t.map((r,i)=>Pe(r,String(i),n));if(t&&typeof t.toJSON=="function"){if(!n||!Z_(t))return t.toJSON(e,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(t,r),n.onCreate=s=>{r.res=s,delete n.onCreate};const i=t.toJSON(e,n);return n.onCreate&&n.onCreate(i),i}return typeof t=="bigint"&&!n?.keep?Number(t):t}a(Pe,"toJS");class Ms{static{a(this,"NodeBase")}constructor(e){Object.defineProperty(this,Oe,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:s}={}){if(!Rr(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=Pe(this,"",o);if(typeof i=="function")for(const{count:u,res:c}of o.anchors.values())i(c,u);return typeof s=="function"?Zt(s,{"":l},"",l):l}}class $s extends Ms{static{a(this,"Alias")}constructor(e){super(Rs),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let n;return _t(e,{Node:(r,i)=>{if(i===this)return _t.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(e,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:s}=n,o=this.resolve(i);if(!o){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(u)}let l=r.get(o);if(l||(Pe(o,null,n),l=r.get(o)),!l||l.res===void 0){const u="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(u)}if(s>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=Fr(i,o,r)),l.count*l.aliasCount>s)){const u="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(u)}return l.res}toString(e,n,r){const i=`*${this.source}`;if(e){if(mc(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${i} `}return i}}function Fr(t,e,n){if(Qt(e)){const r=e.resolve(t),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(ne(e)){let r=0;for(const i of e.items){const s=Fr(t,i,n);s>r&&(r=s)}return r}else if(te(e)){const r=Fr(t,e.key,n),i=Fr(t,e.value,n);return Math.max(r,i)}return 1}a(Fr,"getAliasCount");const bc=a(t=>!t||typeof t!="function"&&typeof t!="object","isScalarValue");class z extends Ms{static{a(this,"Scalar")}constructor(e){super(et),this.value=e}toJSON(e,n){return n?.keep?this.value:Pe(this.value,e,n)}toString(){return String(this.value)}}z.BLOCK_FOLDED="BLOCK_FOLDED",z.BLOCK_LITERAL="BLOCK_LITERAL",z.PLAIN="PLAIN",z.QUOTE_DOUBLE="QUOTE_DOUBLE",z.QUOTE_SINGLE="QUOTE_SINGLE";const aC="tag:yaml.org,2002:";function lC(t,e,n){if(e){const r=n.filter(s=>s.tag===e),i=r.find(s=>!s.format)??r[0];if(!i)throw new Error(`Tag ${e} not found`);return i}return n.find(r=>r.identify?.(t)&&!r.format)}a(lC,"findTagObject");function Rn(t,e,n){if(Rr(t)&&(t=t.contents),se(t))return t;if(te(t)){const f=n.schema[ct].createNode?.(n.schema,null,n);return f.items.push(t),f}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:s,schema:o,sourceObjects:l}=n;let u;if(r&&t&&typeof t=="object"){if(u=l.get(t),u)return u.anchor||(u.anchor=i(t)),new $s(u.anchor);u={anchor:null,node:null},l.set(t,u)}e?.startsWith("!!")&&(e=aC+e.slice(2));let c=lC(t,e,o.tags);if(!c){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){const f=new z(t);return u&&(u.node=f),f}c=t instanceof Map?o[ct]:Symbol.iterator in Object(t)?o[Jt]:o[ct]}s&&(s(c),delete n.onTagObj);const h=c?.createNode?c.createNode(n.schema,t,n):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(n.schema,t,n):new z(t);return e?h.tag=e:c.default||(h.tag=c.tag),u&&(u.node=h),h}a(Rn,"createNode");function Mr(t,e,n){let r=n;for(let i=e.length-1;i>=0;--i){const s=e[i];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const o=[];o[s]=r,r=o}else r=new Map([[s,r]])}return Rn(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}a(Mr,"collectionFromPath");const Fn=a(t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done,"isEmptyPath");class Bs extends Ms{static{a(this,"Collection")}constructor(e,n){super(e),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(e){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(n.schema=e),n.items=n.items.map(r=>se(r)||te(r)?r.clone(e):r),this.range&&(n.range=this.range.slice()),n}addIn(e,n){if(Fn(e))this.add(n);else{const[r,...i]=e,s=this.get(r,!0);if(ne(s))s.addIn(i,n);else if(s===void 0&&this.schema)this.set(r,Mr(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(e){const[n,...r]=e;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(ne(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(e,n){const[r,...i]=e,s=this.get(r,!0);return i.length===0?!n&&Z(s)?s.value:s:ne(s)?s.getIn(i,n):void 0}hasAllNullValues(e){return this.items.every(n=>{if(!te(n))return!1;const r=n.value;return r==null||e&&Z(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){const[n,...r]=e;if(r.length===0)return this.has(n);const i=this.get(n,!0);return ne(i)?i.hasIn(r):!1}setIn(e,n){const[r,...i]=e;if(i.length===0)this.set(r,n);else{const s=this.get(r,!0);if(ne(s))s.setIn(i,n);else if(s===void 0&&this.schema)this.set(r,Mr(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}Bs.maxFlowStringSingleLineLength=60;const uC=a(t=>t.replace(/^(?!$)(?: $)?/gm,"#"),"stringifyComment");function tt(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}a(tt,"indentComment");const Ct=a((t,e,n)=>t.endsWith(`
|
|
94
95
|
`)?tt(n,e):n.includes(`
|
|
95
96
|
`)?`
|
|
96
|
-
`+tt(n,e):(t.endsWith(" ")?"":" ")+n,"lineComment"),
|
|
97
|
-
`)n===
|
|
97
|
+
`+tt(n,e):(t.endsWith(" ")?"":" ")+n,"lineComment"),wc="flow",qs="block",$r="quoted";function Br(t,e,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:l}={}){if(!i||i<0)return t;const u=Math.max(1+s,1+i-e.length);if(t.length<=u)return t;const c=[],h={};let f=i-e.length;typeof r=="number"&&(r>i-Math.max(2,s)?c.push(0):f=i-r);let p,d,m=!1,g=-1,y=-1,b=-1;n===qs&&(g=kc(t,g,e.length),g!==-1&&(f=g+u));for(let k;k=t[g+=1];){if(n===$r&&k==="\\"){switch(y=g,t[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}b=g}if(k===`
|
|
98
|
+
`)n===qs&&(g=kc(t,g,e.length)),f=g+e.length+u,p=void 0;else{if(k===" "&&d&&d!==" "&&d!==`
|
|
98
99
|
`&&d!==" "){const _=t[g+1];_&&_!==" "&&_!==`
|
|
99
100
|
`&&_!==" "&&(p=g)}if(g>=f)if(p)c.push(p),f=p+u,p=void 0;else if(n===$r){for(;d===" "||d===" ";)d=k,k=t[g+=1],m=!0;const _=g>b+1?g-2:y-1;if(h[_])return t;c.push(_),h[_]=!0,f=_+u,p=void 0}else m=!0}d=k}if(m&&l&&l(),c.length===0)return t;o&&o();let w=t.slice(0,c[0]);for(let k=0;k<c.length;++k){const _=c[k],C=c[k+1]||t.length;_===0?w=`
|
|
100
101
|
${e}${t.slice(0,C)}`:(n===$r&&h[_]&&(w+=`${t[_]}\\`),w+=`
|
|
101
|
-
${e}${t.slice(_+1,C)}`)}return w}a(Br,"foldFlowLines");function
|
|
102
|
-
`);r=e,i=e+1,s=t[i]}return r}a(
|
|
103
|
-
`){if(s-o>r)return!0;if(o=s+1,i-o<=r)return!1}return!0}a(
|
|
102
|
+
${e}${t.slice(_+1,C)}`)}return w}a(Br,"foldFlowLines");function kc(t,e,n){let r=e,i=e+1,s=t[i];for(;s===" "||s===" ";)if(e<i+n)s=t[++e];else{do s=t[++e];while(s&&s!==`
|
|
103
|
+
`);r=e,i=e+1,s=t[i]}return r}a(kc,"consumeMoreIndentedLines");const qr=a((t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),"getFoldOptions"),zr=a(t=>/^(%|---|\.\.\.)/m.test(t),"containsDocumentMarker");function cC(t,e,n){if(!e||e<0)return!1;const r=e-n,i=t.length;if(i<=r)return!1;for(let s=0,o=0;s<i;++s)if(t[s]===`
|
|
104
|
+
`){if(s-o>r)return!0;if(o=s+1,i-o<=r)return!1}return!0}a(cC,"lineLengthOverLimit");function Mn(t,e){const n=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=e,i=e.options.doubleQuotedMinMultiLineLength,s=e.indent||(zr(t)?" ":"");let o="",l=0;for(let u=0,c=n[u];c;c=n[++u])if(c===" "&&n[u+1]==="\\"&&n[u+2]==="n"&&(o+=n.slice(l,u)+"\\ ",u+=1,l=u,c="\\"),c==="\\")switch(n[u+1]){case"u":{o+=n.slice(l,u);const h=n.substr(u+2,4);switch(h){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:h.substr(0,2)==="00"?o+="\\x"+h.substr(2):o+=n.substr(u,6)}u+=5,l=u+1}break;case"n":if(r||n[u+2]==='"'||n.length<i)u+=1;else{for(o+=n.slice(l,u)+`
|
|
104
105
|
|
|
105
106
|
`;n[u+2]==="\\"&&n[u+3]==="n"&&n[u+4]!=='"';)o+=`
|
|
106
|
-
`,u+=2;o+=s,n[u+2]===" "&&(o+="\\"),u+=1,l=u+1}break;default:u+=1}return o=l?o+n.slice(l):n,r?o:Br(o,s,$r,qr(e,!1))}a(Mn,"doubleQuotedString");function
|
|
107
|
+
`,u+=2;o+=s,n[u+2]===" "&&(o+="\\"),u+=1,l=u+1}break;default:u+=1}return o=l?o+n.slice(l):n,r?o:Br(o,s,$r,qr(e,!1))}a(Mn,"doubleQuotedString");function zs(t,e){if(e.options.singleQuote===!1||e.implicitKey&&t.includes(`
|
|
107
108
|
`)||/[ \t]\n|\n[ \t]/.test(t))return Mn(t,e);const n=e.indent||(zr(t)?" ":""),r="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
108
|
-
${n}`)+"'";return e.implicitKey?r:Br(r,n,
|
|
109
|
+
${n}`)+"'";return e.implicitKey?r:Br(r,n,wc,qr(e,!1))}a(zs,"singleQuotedString");function en(t,e){const{singleQuote:n}=e.options;let r;if(n===!1)r=Mn;else{const i=t.includes('"'),s=t.includes("'");i&&!s?r=zs:s&&!i?r=Mn:r=n?zs:Mn}return r(t,e)}a(en,"quotedString");let Us;try{Us=new RegExp(`(^|(?<!
|
|
109
110
|
))
|
|
110
111
|
+(?!
|
|
111
|
-
|$)`,"g")}catch{
|
|
112
|
+
|$)`,"g")}catch{Us=/\n+(?!\n|$)/g}function Ur({comment:t,type:e,value:n},r,i,s){const{blockQuote:o,commentString:l,lineWidth:u}=r.options;if(!o||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return en(n,r);const c=r.indent||(r.forceBlockIndent||zr(n)?" ":""),h=o==="literal"?!0:o==="folded"||e===z.BLOCK_FOLDED?!1:e===z.BLOCK_LITERAL?!0:!cC(n,u,c.length);if(!n)return h?`|
|
|
112
113
|
`:`>
|
|
113
114
|
`;let f,p;for(p=n.length;p>0;--p){const S=n[p-1];if(S!==`
|
|
114
115
|
`&&S!==" "&&S!==" ")break}let d=n.substring(p);const m=d.indexOf(`
|
|
115
116
|
`);m===-1?f="-":n===d||m!==d.length-1?(f="+",s&&s()):f="",d&&(n=n.slice(0,-d.length),d[d.length-1]===`
|
|
116
|
-
`&&(d=d.slice(0,-1)),d=d.replace(
|
|
117
|
+
`&&(d=d.slice(0,-1)),d=d.replace(Us,`$&${c}`));let g=!1,y,b=-1;for(y=0;y<n.length;++y){const S=n[y];if(S===" ")g=!0;else if(S===`
|
|
117
118
|
`)b=y;else break}let w=n.substring(0,b<y?b+1:y);w&&(n=n.substring(w.length),w=w.replace(/\n+/g,`$&${c}`));let _=(h?"|":">")+(g?c?"2":"1":"")+f;if(t&&(_+=" "+l(t.replace(/ ?[\r\n]+/g," ")),i&&i()),h)return n=n.replace(/\n+/g,`$&${c}`),`${_}
|
|
118
119
|
${c}${w}${n}${d}`;n=n.replace(/\n+/g,`
|
|
119
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);const C=Br(`${w}${n}${d}`,c,
|
|
120
|
-
${c}${C}`}a(Ur,"blockString");function
|
|
120
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);const C=Br(`${w}${n}${d}`,c,qs,qr(r,!0));return`${_}
|
|
121
|
+
${c}${C}`}a(Ur,"blockString");function fC(t,e,n,r){const{type:i,value:s}=t,{actualString:o,implicitKey:l,indent:u,indentStep:c,inFlow:h}=e;if(l&&s.includes(`
|
|
121
122
|
`)||h&&/[[\]{},]/.test(s))return en(s,e);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||h||!s.includes(`
|
|
122
123
|
`)?en(s,e):Ur(t,e,n,r);if(!l&&!h&&i!==z.PLAIN&&s.includes(`
|
|
123
124
|
`))return Ur(t,e,n,r);if(zr(s)){if(u==="")return e.forceBlockIndent=!0,Ur(t,e,n,r);if(l&&u===c)return en(s,e)}const f=s.replace(/\n+/g,`$&
|
|
124
|
-
${u}`);if(o){const p=a(g=>g.default&&g.tag!=="tag:yaml.org,2002:str"&&g.test?.test(f),"test"),{compat:d,tags:m}=e.doc.schema;if(m.some(p)||d?.some(p))return en(s,e)}return l?f:Br(f,u,
|
|
125
|
-
${e.indent}${l}`:l}a(tn,"stringify$1");function
|
|
125
|
+
${u}`);if(o){const p=a(g=>g.default&&g.tag!=="tag:yaml.org,2002:str"&&g.test?.test(f),"test"),{compat:d,tags:m}=e.doc.schema;if(m.some(p)||d?.some(p))return en(s,e)}return l?f:Br(f,u,wc,qr(e,!1))}a(fC,"plainString");function js(t,e,n,r){const{implicitKey:i,inFlow:s}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)});let{type:l}=t;l!==z.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(l=z.QUOTE_DOUBLE);const u=a(h=>{switch(h){case z.BLOCK_FOLDED:case z.BLOCK_LITERAL:return i||s?en(o.value,e):Ur(o,e,n,r);case z.QUOTE_DOUBLE:return Mn(o.value,e);case z.QUOTE_SINGLE:return zs(o.value,e);case z.PLAIN:return fC(o,e,n,r);default:return null}},"_stringify");let c=u(l);if(c===null){const{defaultKeyType:h,defaultStringType:f}=e.options,p=i&&h||f;if(c=u(p),c===null)throw new Error(`Unsupported default string type ${p}`)}return c}a(js,"stringifyString");function Sc(t,e){const n=Object.assign({blockQuote:!0,commentString:uC,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:t,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}a(Sc,"createStringifyContext");function hC(t,e){if(e.tag){const i=t.filter(s=>s.tag===e.tag);if(i.length>0)return i.find(s=>s.format===e.format)??i[0]}let n,r;if(Z(e)){r=e.value;const i=t.filter(s=>s.identify?.(r));n=i.find(s=>s.format===e.format)??i.find(s=>!s.format)}else r=e,n=t.find(i=>i.nodeClass&&r instanceof i.nodeClass);if(!n){const i=r?.constructor?.name??typeof r;throw new Error(`Tag not resolved for ${i} value`)}return n}a(hC,"getTagObject");function pC(t,e,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],s=(Z(t)||ne(t))&&t.anchor;s&&mc(s)&&(n.add(s),i.push(`&${s}`));const o=t.tag?t.tag:e.default?null:e.tag;return o&&i.push(r.directives.tagString(o)),i.join(" ")}a(pC,"stringifyProps");function tn(t,e,n,r){if(te(t))return t.toString(e,n,r);if(Qt(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let i;const s=se(t)?t:e.doc.createNode(t,{onTagObj:u=>i=u});i||(i=hC(e.doc.schema.tags,s));const o=pC(s,i,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);const l=typeof i.stringify=="function"?i.stringify(s,e,n,r):Z(s)?js(s,e,n,r):s.toString(e,n,r);return o?Z(s)||l[0]==="{"||l[0]==="["?`${o} ${l}`:`${o}
|
|
126
|
+
${e.indent}${l}`:l}a(tn,"stringify$1");function dC({key:t,value:e},n,r,i){const{allNullValues:s,doc:o,indent:l,indentStep:u,options:{commentString:c,indentSeq:h,simpleKeys:f}}=n;let p=se(t)&&t.comment||null;if(f){if(p)throw new Error("With simple keys, key nodes cannot have comments");if(ne(t)||!se(t)&&typeof t=="object"){const A="With simple keys, collection cannot be used as a key value";throw new Error(A)}}let d=!f&&(!t||p&&e==null&&!n.inFlow||ne(t)||(Z(t)?t.type===z.BLOCK_FOLDED||t.type===z.BLOCK_LITERAL:typeof t=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!d&&(f||!s),indent:l+u});let m=!1,g=!1,y=tn(t,n,()=>m=!0,()=>g=!0);if(!d&&!n.inFlow&&y.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(n.inFlow){if(s||e==null)return m&&r&&r(),y===""?"?":d?`? ${y}`:y}else if(s&&!f||e==null&&d)return y=`? ${y}`,p&&!m?y+=Ct(y,n.indent,c(p)):g&&i&&i(),y;m&&(p=null),d?(p&&(y+=Ct(y,n.indent,c(p))),y=`? ${y}
|
|
126
127
|
${l}:`):(y=`${y}:`,p&&(y+=Ct(y,n.indent,c(p))));let b,w,k;se(e)?(b=!!e.spaceBefore,w=e.commentBefore,k=e.comment):(b=!1,w=null,k=null,e&&typeof e=="object"&&(e=o.createNode(e))),n.implicitKey=!1,!d&&!p&&Z(e)&&(n.indentAtStart=y.length+1),g=!1,!h&&u.length>=2&&!n.inFlow&&!d&&Pn(e)&&!e.flow&&!e.tag&&!e.anchor&&(n.indent=n.indent.substring(2));let _=!1;const C=tn(e,n,()=>_=!0,()=>g=!0);let S=" ";if(p||b||w){if(S=b?`
|
|
127
128
|
`:"",w){const A=c(w);S+=`
|
|
128
129
|
${tt(A,n.indent)}`}C===""&&!n.inFlow?S===`
|
|
@@ -132,32 +133,32 @@ ${tt(A,n.indent)}`}C===""&&!n.inFlow?S===`
|
|
|
132
133
|
${n.indent}`}else if(!d&&ne(e)){const A=C[0],E=C.indexOf(`
|
|
133
134
|
`),P=E!==-1,N=n.inFlow??e.flow??e.items.length===0;if(P||!N){let R=!1;if(P&&(A==="&"||A==="!")){let O=C.indexOf(" ");A==="&"&&O!==-1&&O<E&&C[O+1]==="!"&&(O=C.indexOf(" ",O+1)),(O===-1||E<O)&&(R=!0)}R||(S=`
|
|
134
135
|
${n.indent}`)}}else(C===""||C[0]===`
|
|
135
|
-
`)&&(S="");return y+=S+C,n.inFlow?_&&r&&r():k&&!_?y+=Ct(y,n.indent,c(k)):g&&i&&i(),y}a(
|
|
136
|
+
`)&&(S="");return y+=S+C,n.inFlow?_&&r&&r():k&&!_?y+=Ct(y,n.indent,c(k)):g&&i&&i(),y}a(dC,"stringifyPair");function xc(t,e){(t==="debug"||t==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(e):console.warn(e))}a(xc,"warn");const vc="<<";function _c(t,e,{key:n,value:r}){if(t?.doc.schema.merge&&mC(n))if(r=Qt(r)?r.resolve(t.doc):r,Pn(r))for(const i of r.items)Gs(t,e,i);else if(Array.isArray(r))for(const i of r)Gs(t,e,i);else Gs(t,e,r);else{const i=Pe(n,"",t);if(e instanceof Map)e.set(i,Pe(r,i,t));else if(e instanceof Set)e.add(i);else{const s=gC(n,i,t),o=Pe(r,s,t);s in e?Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[s]=o}}return e}a(_c,"addPairToJSMap");const mC=a(t=>t===vc||Z(t)&&t.value===vc&&(!t.type||t.type===z.PLAIN),"isMergeKey");function Gs(t,e,n){const r=t&&Qt(n)?n.resolve(t.doc):n;if(!On(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,t,Map);for(const[s,o]of i)e instanceof Map?e.has(s)||e.set(s,o):e instanceof Set?e.add(s):Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}a(Gs,"mergeToJSMap");function gC(t,e,n){if(e===null)return"";if(typeof e!="object")return String(e);if(se(t)&&n?.doc){const r=Sc(n.doc,{});r.anchors=new Set;for(const s of n.anchors.keys())r.anchors.add(s.anchor);r.inFlow=!0,r.inStringifyKey=!0;const i=t.toString(r);if(!n.mapKeyWarned){let s=JSON.stringify(i);s.length>40&&(s=s.substring(0,36)+'..."'),xc(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(e)}a(gC,"stringifyKey");function Hs(t,e,n){const r=Rn(t,void 0,n),i=Rn(e,void 0,n);return new be(r,i)}a(Hs,"createPair");class be{static{a(this,"Pair")}constructor(e,n=null){Object.defineProperty(this,Oe,{value:dc}),this.key=e,this.value=n}clone(e){let{key:n,value:r}=this;return se(n)&&(n=n.clone(e)),se(r)&&(r=r.clone(e)),new be(n,r)}toJSON(e,n){const r=n?.mapAsMap?new Map:{};return _c(n,r,this)}toString(e,n,r){return e?.doc?dC(this,e,n,r):JSON.stringify(this)}}function Cc(t,e,n){return(e.inFlow??t.flow?bC:yC)(t,e,n)}a(Cc,"stringifyCollection");function yC({comment:t,items:e},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:o,onComment:l}){const{indent:u,options:{commentString:c}}=n,h=Object.assign({},n,{indent:s,type:null});let f=!1;const p=[];for(let m=0;m<e.length;++m){const g=e[m];let y=null;if(se(g))!f&&g.spaceBefore&&p.push(""),jr(n,p,g.commentBefore,f),g.comment&&(y=g.comment);else if(te(g)){const w=se(g.key)?g.key:null;w&&(!f&&w.spaceBefore&&p.push(""),jr(n,p,w.commentBefore,f))}f=!1;let b=tn(g,h,()=>y=null,()=>f=!0);y&&(b+=Ct(b,s,c(y))),f&&y&&(f=!1),p.push(r+b)}let d;if(p.length===0)d=i.start+i.end;else{d=p[0];for(let m=1;m<p.length;++m){const g=p[m];d+=g?`
|
|
136
137
|
${u}${g}`:`
|
|
137
138
|
`}}return t?(d+=`
|
|
138
|
-
`+tt(c(t),u),l&&l()):f&&o&&o(),d}a(
|
|
139
|
+
`+tt(c(t),u),l&&l()):f&&o&&o(),d}a(yC,"stringifyBlockCollection");function bC({items:t},e,{flowChars:n,itemIndent:r}){const{indent:i,indentStep:s,flowCollectionPadding:o,options:{commentString:l}}=e;r+=s;const u=Object.assign({},e,{indent:r,inFlow:!0,type:null});let c=!1,h=0;const f=[];for(let m=0;m<t.length;++m){const g=t[m];let y=null;if(se(g))g.spaceBefore&&f.push(""),jr(e,f,g.commentBefore,!1),g.comment&&(y=g.comment);else if(te(g)){const w=se(g.key)?g.key:null;w&&(w.spaceBefore&&f.push(""),jr(e,f,w.commentBefore,!1),w.comment&&(c=!0));const k=se(g.value)?g.value:null;k?(k.comment&&(y=k.comment),k.commentBefore&&(c=!0)):g.value==null&&w?.comment&&(y=w.comment)}y&&(c=!0);let b=tn(g,u,()=>y=null);m<t.length-1&&(b+=","),y&&(b+=Ct(b,r,l(y))),!c&&(f.length>h||b.includes(`
|
|
139
140
|
`))&&(c=!0),f.push(b),h=f.length}const{start:p,end:d}=n;if(f.length===0)return p+d;if(!c){const m=f.reduce((g,y)=>g+y.length+2,2);c=e.options.lineWidth>0&&m>e.options.lineWidth}if(c){let m=p;for(const g of f)m+=g?`
|
|
140
141
|
${s}${i}${g}`:`
|
|
141
142
|
`;return`${m}
|
|
142
|
-
${i}${d}`}else return`${p}${o}${f.join(" ")}${o}${d}`}a(
|
|
143
|
-
`:" ")}return
|
|
143
|
+
${i}${d}`}else return`${p}${o}${f.join(" ")}${o}${d}`}a(bC,"stringifyFlowCollection");function jr({indent:t,options:{commentString:e}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const s=tt(e(r),t);n.push(s.trimStart())}}a(jr,"addCommentBefore");function Nt(t,e){const n=Z(e)?e.value:e;for(const r of t)if(te(r)&&(r.key===e||r.key===n||Z(r.key)&&r.key.value===n))return r}a(Nt,"findPair");class De extends Bs{static{a(this,"YAMLMap")}static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(ct,e),this.items=[]}static from(e,n,r){const{keepUndefined:i,replacer:s}=r,o=new this(e),l=a((u,c)=>{if(typeof s=="function")c=s.call(n,u,c);else if(Array.isArray(s)&&!s.includes(u))return;(c!==void 0||i)&&o.items.push(Hs(u,c,r))},"add");if(n instanceof Map)for(const[u,c]of n)l(u,c);else if(n&&typeof n=="object")for(const u of Object.keys(n))l(u,n[u]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,n){let r;te(e)?r=e:!e||typeof e!="object"||!("key"in e)?r=new be(e,e?.value):r=new be(e.key,e.value);const i=Nt(this.items,r.key),s=this.schema?.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);Z(i.value)&&bc(r.value)?i.value.value=r.value:i.value=r.value}else if(s){const o=this.items.findIndex(l=>s(r,l)<0);o===-1?this.items.push(r):this.items.splice(o,0,r)}else this.items.push(r)}delete(e){const n=Nt(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){const i=Nt(this.items,e)?.value;return(!n&&Z(i)?i.value:i)??void 0}has(e){return!!Nt(this.items,e)}set(e,n){this.add(new be(e,n),!0)}toJSON(e,n,r){const i=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(i);for(const s of this.items)_c(n,i,s);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(const i of this.items)if(!te(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Cc(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:n})}}const nn={collection:"map",default:!0,nodeClass:De,tag:"tag:yaml.org,2002:map",resolve(t,e){return On(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,n)=>De.from(t,e,n)};class At extends Bs{static{a(this,"YAMLSeq")}static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Jt,e),this.items=[]}add(e){this.items.push(e)}delete(e){const n=Gr(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){const r=Gr(e);if(typeof r!="number")return;const i=this.items[r];return!n&&Z(i)?i.value:i}has(e){const n=Gr(e);return typeof n=="number"&&n<this.items.length}set(e,n){const r=Gr(e);if(typeof r!="number")throw new Error(`Expected a valid index, not ${e}.`);const i=this.items[r];Z(i)&&bc(n)?i.value=n:this.items[r]=n}toJSON(e,n){const r=[];n?.onCreate&&n.onCreate(r);let i=0;for(const s of this.items)r.push(Pe(s,String(i++),n));return r}toString(e,n,r){return e?Cc(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(e,n,r){const{replacer:i}=r,s=new this(e);if(n&&Symbol.iterator in Object(n)){let o=0;for(let l of n){if(typeof i=="function"){const u=n instanceof Set?l:String(o++);l=i.call(n,u,l)}s.items.push(Rn(l,void 0,r))}}return s}}function Gr(t){let e=Z(t)?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}a(Gr,"asItemIndex");const rn={collection:"seq",default:!0,nodeClass:At,tag:"tag:yaml.org,2002:seq",resolve(t,e){return Pn(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,n)=>At.from(t,e,n)},Hr={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),js(t,e,n,r)}},Vr={identify:t=>t==null,createNode:()=>new z(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new z(null),stringify:({source:t},e)=>typeof t=="string"&&Vr.test.test(t)?t:e.options.nullStr},Vs={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new z(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e},n){if(t&&Vs.test.test(t)){const r=t[0]==="t"||t[0]==="T";if(e===r)return t}return e?n.options.trueStr:n.options.falseStr}};function je({format:t,minFractionDigits:e,tag:n,value:r}){if(typeof r=="bigint")return String(r);const i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(r);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let o=s.indexOf(".");o<0&&(o=s.length,s+=".");let l=e-(s.length-o-1);for(;l-- >0;)s+="0"}return s}a(je,"stringifyNumber");const Nc={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:je},Ac={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():je(t)}},Ec={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){const e=new z(parseFloat(t)),n=t.indexOf(".");return n!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-n-1),e},stringify:je},Wr=a(t=>typeof t=="bigint"||Number.isInteger(t),"intIdentify$2"),Ws=a((t,e,n,{intAsBigInt:r})=>r?BigInt(t):parseInt(t.substring(e),n),"intResolve$1");function Tc(t,e,n){const{value:r}=t;return Wr(r)&&r>=0?n+r.toString(e):je(t)}a(Tc,"intStringify$1");const Ic={identify:t=>Wr(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,n)=>Ws(t,2,8,n),stringify:t=>Tc(t,8,"0o")},Lc={identify:Wr,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,n)=>Ws(t,0,10,n),stringify:je},Oc={identify:t=>Wr(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,n)=>Ws(t,2,16,n),stringify:t=>Tc(t,16,"0x")},wC=[nn,rn,Hr,Vr,Vs,Ic,Lc,Oc,Nc,Ac,Ec];function Pc(t){return typeof t=="bigint"||Number.isInteger(t)}a(Pc,"intIdentify$1");const Kr=a(({value:t})=>JSON.stringify(t),"stringifyJSON"),kC=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:Kr},{identify:t=>t==null,createNode:()=>new z(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Kr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:Kr},{identify:Pc,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:n})=>n?BigInt(t):parseInt(t,10),stringify:({value:t})=>Pc(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:Kr}],SC={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},xC=[nn,rn].concat(kC,SC),Ks={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof Buffer=="function")return Buffer.from(t,"base64");if(typeof atob=="function"){const n=atob(t.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:n},r,i,s){const o=n;let l;if(typeof Buffer=="function")l=o instanceof Buffer?o.toString("base64"):Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let u="";for(let c=0;c<o.length;++c)u+=String.fromCharCode(o[c]);l=btoa(u)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=z.BLOCK_LITERAL),e!==z.QUOTE_DOUBLE){const u=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(l.length/u),h=new Array(c);for(let f=0,p=0;f<c;++f,p+=u)h[f]=l.substr(p,u);l=h.join(e===z.BLOCK_LITERAL?`
|
|
144
|
+
`:" ")}return js({comment:t,type:e,value:l},r,i,s)}};function Dc(t,e){if(Pn(t))for(let n=0;n<t.items.length;++n){let r=t.items[n];if(!te(r)){if(On(r)){r.items.length>1&&e("Each pair must have its own sequence indicator");const i=r.items[0]||new be(new z(null));if(r.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${r.commentBefore}
|
|
144
145
|
${i.key.commentBefore}`:r.commentBefore),r.comment){const s=i.value??i.key;s.comment=s.comment?`${r.comment}
|
|
145
|
-
${s.comment}`:r.comment}r=i}t.items[n]=te(r)?r:new be(r)}}else e("Expected a sequence for this tag");return t}a(
|
|
146
|
+
${s.comment}`:r.comment}r=i}t.items[n]=te(r)?r:new be(r)}}else e("Expected a sequence for this tag");return t}a(Dc,"resolvePairs");function Rc(t,e,n){const{replacer:r}=n,i=new At(t);i.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof r=="function"&&(o=r.call(e,String(s++),o));let l,u;if(Array.isArray(o))if(o.length===2)l=o[0],u=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)l=c[0],u=o[l];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else l=o;i.items.push(Hs(l,u,n))}return i}a(Rc,"createPairs");const Ys={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Dc,createNode:Rc};class ln extends At{static{a(this,"YAMLOMap")}constructor(){super(),this.add=De.prototype.add.bind(this),this.delete=De.prototype.delete.bind(this),this.get=De.prototype.get.bind(this),this.has=De.prototype.has.bind(this),this.set=De.prototype.set.bind(this),this.tag=ln.tag}toJSON(e,n){if(!n)return super.toJSON(e);const r=new Map;n?.onCreate&&n.onCreate(r);for(const i of this.items){let s,o;if(te(i)?(s=Pe(i.key,"",n),o=Pe(i.value,s,n)):s=Pe(i,"",n),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,o)}return r}static from(e,n,r){const i=Rc(e,n,r),s=new this;return s.items=i.items,s}}ln.tag="tag:yaml.org,2002:omap";const Js={collection:"seq",identify:t=>t instanceof Map,nodeClass:ln,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){const n=Dc(t,e),r=[];for(const{key:i}of n.items)Z(i)&&(r.includes(i.value)?e(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new ln,n)},createNode:(t,e,n)=>ln.from(t,e,n)};function Fc({value:t,source:e},n){return e&&(t?Mc:$c).test.test(e)?e:t?n.options.trueStr:n.options.falseStr}a(Fc,"boolStringify");const Mc={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new z(!0),stringify:Fc},$c={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new z(!1),stringify:Fc},vC={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:je},_C={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():je(t)}},CC={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){const e=new z(parseFloat(t.replace(/_/g,""))),n=t.indexOf(".");if(n!==-1){const r=t.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(e.minFractionDigits=r.length)}return e},stringify:je},$n=a(t=>typeof t=="bigint"||Number.isInteger(t),"intIdentify");function Yr(t,e,n,{intAsBigInt:r}){const i=t[0];if((i==="-"||i==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),r){switch(n){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}const o=BigInt(t);return i==="-"?BigInt(-1)*o:o}const s=parseInt(t,n);return i==="-"?-1*s:s}a(Yr,"intResolve");function Qs(t,e,n){const{value:r}=t;if($n(r)){const i=r.toString(e);return r<0?"-"+n+i.substr(1):n+i}return je(t)}a(Qs,"intStringify");const NC={identify:$n,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,n)=>Yr(t,2,2,n),stringify:t=>Qs(t,2,"0b")},AC={identify:$n,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,n)=>Yr(t,1,8,n),stringify:t=>Qs(t,8,"0")},EC={identify:$n,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,n)=>Yr(t,0,10,n),stringify:je},TC={identify:$n,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,n)=>Yr(t,2,16,n),stringify:t=>Qs(t,16,"0x")};class un extends De{static{a(this,"YAMLSet")}constructor(e){super(e),this.tag=un.tag}add(e){let n;te(e)?n=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?n=new be(e.key,null):n=new be(e,null),Nt(this.items,n.key)||this.items.push(n)}get(e,n){const r=Nt(this.items,e);return!n&&te(r)?Z(r.key)?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=Nt(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new be(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(e,n,r){const{replacer:i}=r,s=new this(e);if(n&&Symbol.iterator in Object(n))for(let o of n)typeof i=="function"&&(o=i.call(n,o,o)),s.items.push(Hs(o,null,r));return s}}un.tag="tag:yaml.org,2002:set";const Xs={collection:"map",identify:t=>t instanceof Set,nodeClass:un,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,n)=>un.from(t,e,n),resolve(t,e){if(On(t)){if(t.hasAllNullValues(!0))return Object.assign(new un,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};function Zs(t,e){const n=t[0],r=n==="-"||n==="+"?t.substring(1):t,i=a(o=>e?BigInt(o):Number(o),"num"),s=r.replace(/_/g,"").split(":").reduce((o,l)=>o*i(60)+i(l),i(0));return n==="-"?i(-1)*s:s}a(Zs,"parseSexagesimal");function Bc(t){let{value:e}=t,n=a(o=>o,"num");if(typeof e=="bigint")n=a(o=>BigInt(o),"num");else if(isNaN(e)||!isFinite(e))return je(t);let r="";e<0&&(r="-",e*=n(-1));const i=n(60),s=[e%i];return e<60?s.unshift(0):(e=(e-s[0])/i,s.unshift(e%i),e>=60&&(e=(e-s[0])/i,s.unshift(e))),r+s.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}a(Bc,"stringifySexagesimal");const qc={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:n})=>Zs(t,n),stringify:Bc},zc={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>Zs(t,!1),stringify:Bc},Jr={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){const e=t.match(Jr.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,s,o,l]=e.map(Number),u=e[7]?Number((e[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,i,s||0,o||0,l||0,u);const h=e[8];if(h&&h!=="Z"){let f=Zs(h,!1);Math.abs(f)<30&&(f*=60),c-=6e4*f}return new Date(c)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},Uc=[nn,rn,Hr,Vr,Mc,$c,NC,AC,EC,TC,vC,_C,CC,Ks,Js,Ys,Xs,qc,zc,Jr],jc=new Map([["core",wC],["failsafe",[nn,rn,Hr]],["json",xC],["yaml11",Uc],["yaml-1.1",Uc]]),Gc={binary:Ks,bool:Vs,float:Ec,floatExp:Ac,floatNaN:Nc,floatTime:zc,int:Lc,intHex:Oc,intOct:Ic,intTime:qc,map:nn,null:Vr,omap:Js,pairs:Ys,seq:rn,set:Xs,timestamp:Jr},IC={"tag:yaml.org,2002:binary":Ks,"tag:yaml.org,2002:omap":Js,"tag:yaml.org,2002:pairs":Ys,"tag:yaml.org,2002:set":Xs,"tag:yaml.org,2002:timestamp":Jr};function eo(t,e){let n=jc.get(e);if(!n)if(Array.isArray(t))n=[];else{const r=Array.from(jc.keys()).filter(i=>i!=="yaml11").map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`)}if(Array.isArray(t))for(const r of t)n=n.concat(r);else typeof t=="function"&&(n=t(n.slice()));return n.map(r=>{if(typeof r!="string")return r;const i=Gc[r];if(i)return i;const s=Object.keys(Gc).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}a(eo,"getTags");const LC=a((t,e)=>t.key<e.key?-1:t.key>e.key?1:0,"sortMapEntriesByKey");class co{static{a(this,"Schema")}constructor({compat:e,customTags:n,merge:r,resolveKnownTags:i,schema:s,sortMapEntries:o,toStringDefaults:l}){this.compat=Array.isArray(e)?eo(e,"compat"):e?eo(null,e):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=i?IC:{},this.tags=eo(n,this.name),this.toStringOptions=l??null,Object.defineProperty(this,ct,{value:nn}),Object.defineProperty(this,et,{value:Hr}),Object.defineProperty(this,Jt,{value:rn}),this.sortMapEntries=typeof o=="function"?o:o===!0?LC:null}clone(){const e=Object.create(co.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function OC(t,e){const n=[];let r=e.directives===!0;if(e.directives!==!1&&t.directives){const u=t.directives.toString(t);u?(n.push(u),r=!0):t.directives.docStart&&(r=!0)}r&&n.push("---");const i=Sc(t,e),{commentString:s}=i.options;if(t.commentBefore){n.length!==1&&n.unshift("");const u=s(t.commentBefore);n.unshift(tt(u,""))}let o=!1,l=null;if(t.contents){if(se(t.contents)){if(t.contents.spaceBefore&&r&&n.push(""),t.contents.commentBefore){const h=s(t.contents.commentBefore);n.push(tt(h,""))}i.forceBlockIndent=!!t.comment,l=t.contents.comment}const u=l?void 0:()=>o=!0;let c=tn(t.contents,i,()=>l=null,u);l&&(c+=Ct(c,"",s(l))),(c[0]==="|"||c[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(tn(t.contents,i));if(t.directives?.docEnd)if(t.comment){const u=s(t.comment);u.includes(`
|
|
146
147
|
`)?(n.push("..."),n.push(tt(u,""))):n.push(`... ${u}`)}else n.push("...");else{let u=t.comment;u&&o&&(u=u.replace(/^\n+/,"")),u&&((!o||l)&&n[n.length-1]!==""&&n.push(""),n.push(tt(s(u),"")))}return n.join(`
|
|
147
148
|
`)+`
|
|
148
|
-
`}a(
|
|
149
|
+
`}a(OC,"stringifyDocument");class Hn{static{a(this,"Document")}constructor(e,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Oe,{value:Fs});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:o}=s;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new ke({version:o}),this.setSchema(o,r),this.contents=e===void 0?null:this.createNode(e,i,r)}clone(){const e=Object.create(Hn.prototype,{[Oe]:{value:Fs}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=se(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){sn(this.contents)&&this.contents.add(e)}addIn(e,n){sn(this.contents)&&this.contents.addIn(e,n)}createAlias(e,n){if(!e.anchor){const r=gc(this);e.anchor=!n||r.has(n)?yc(n||"a",r):n}return new $s(e.anchor)}createNode(e,n,r){let i;if(typeof n=="function")e=n.call({"":e},"",e),i=n;else if(Array.isArray(n)){const y=a(w=>typeof w=="number"||w instanceof String||w instanceof Number,"keyToStr"),b=n.filter(y).map(String);b.length>0&&(n=n.concat(b)),i=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:o,flow:l,keepUndefined:u,onTagObj:c,tag:h}=r??{},{onAnchor:f,setAnchors:p,sourceObjects:d}=oC(this,o||"a"),m={aliasDuplicateObjects:s??!0,keepUndefined:u??!1,onAnchor:f,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:d},g=Rn(e,h,m);return l&&ne(g)&&(g.flow=!0),p(),g}createPair(e,n,r={}){const i=this.createNode(e,null,r),s=this.createNode(n,null,r);return new be(i,s)}delete(e){return sn(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Fn(e)?this.contents==null?!1:(this.contents=null,!0):sn(this.contents)?this.contents.deleteIn(e):!1}get(e,n){return ne(this.contents)?this.contents.get(e,n):void 0}getIn(e,n){return Fn(e)?!n&&Z(this.contents)?this.contents.value:this.contents:ne(this.contents)?this.contents.getIn(e,n):void 0}has(e){return ne(this.contents)?this.contents.has(e):!1}hasIn(e){return Fn(e)?this.contents!==void 0:ne(this.contents)?this.contents.hasIn(e):!1}set(e,n){this.contents==null?this.contents=Mr(this.schema,[e],n):sn(this.contents)&&this.contents.set(e,n)}setIn(e,n){Fn(e)?this.contents=n:this.contents==null?this.contents=Mr(this.schema,Array.from(e),n):sn(this.contents)&&this.contents.setIn(e,n)}setSchema(e,n={}){typeof e=="number"&&(e=String(e));let r;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ke({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new ke({version:e}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const i=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new co(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:n,mapAsMap:r,maxAliasCount:i,onAnchor:s,reviver:o}={}){const l={anchors:new Map,doc:this,keep:!e,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},u=Pe(this.contents,n??"",l);if(typeof s=="function")for(const{count:c,res:h}of l.anchors.values())s(h,c);return typeof o=="function"?Zt(o,{"":u},"",u):u}toJSON(e,n){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:n})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const n=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return OC(this,e)}}function sn(t){if(ne(t))return!0;throw new Error("Expected a YAML collection as document contents")}a(sn,"assertCollection");class Hc extends Error{static{a(this,"YAMLError")}constructor(e,n,r,i){super(),this.name=e,this.code=r,this.message=i,this.pos=n}}class Bn extends Hc{static{a(this,"YAMLParseError")}constructor(e,n,r){super("YAMLParseError",e,n,r)}}class PC extends Hc{static{a(this,"YAMLWarning")}constructor(e,n,r){super("YAMLWarning",e,n,r)}}const Vc=a((t,e)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>e.linePos(l));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let s=i-1,o=t.substring(e.lineStarts[r-1],e.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){const l=Math.min(s-39,o.length-79);o="\u2026"+o.substring(l),s-=l-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),r>1&&/^ *$/.test(o.substring(0,s))){let l=t.substring(e.lineStarts[r-2],e.lineStarts[r-1]);l.length>80&&(l=l.substring(0,79)+`\u2026
|
|
149
150
|
`),o=l+o}if(/[^ ]/.test(o)){let l=1;const u=n.linePos[1];u&&u.line===r&&u.col>i&&(l=Math.max(1,Math.min(u.col-i,80-s)));const c=" ".repeat(s)+"^".repeat(l);n.message+=`:
|
|
150
151
|
|
|
151
152
|
${o}
|
|
152
153
|
${c}
|
|
153
154
|
`}},"prettifyError");function on(t,{flow:e,indicator:n,next:r,offset:i,onError:s,parentIndent:o,startOnNewline:l}){let u=!1,c=l,h=l,f="",p="",d=!1,m=!1,g=!1,y=null,b=null,w=null,k=null,_=null,C=null;for(const E of t)switch(g&&(E.type!=="space"&&E.type!=="newline"&&E.type!=="comma"&&s(E.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),y&&(c&&E.type!=="comment"&&E.type!=="newline"&&s(y,"TAB_AS_INDENT","Tabs are not allowed as indentation"),y=null),E.type){case"space":!e&&(n!=="doc-start"||r?.type!=="flow-collection")&&E.source.includes(" ")&&(y=E),h=!0;break;case"comment":{h||s(E,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const P=E.source.substring(1)||" ";f?f+=p+P:f=P,p="",c=!1;break}case"newline":c?f?f+=E.source:u=!0:p+=E.source,c=!0,d=!0,(b||w)&&(m=!0),h=!0;break;case"anchor":b&&s(E,"MULTIPLE_ANCHORS","A node can have at most one anchor"),E.source.endsWith(":")&&s(E.offset+E.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),b=E,C===null&&(C=E.offset),c=!1,h=!1,g=!0;break;case"tag":{w&&s(E,"MULTIPLE_TAGS","A node can have at most one tag"),w=E,C===null&&(C=E.offset),c=!1,h=!1,g=!0;break}case n:(b||w)&&s(E,"BAD_PROP_ORDER",`Anchors and tags must be after the ${E.source} indicator`),_&&s(E,"UNEXPECTED_TOKEN",`Unexpected ${E.source} in ${e??"collection"}`),_=E,c=n==="seq-item-ind"||n==="explicit-key-ind",h=!1;break;case"comma":if(e){k&&s(E,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),k=E,c=!1,h=!1;break}default:s(E,"UNEXPECTED_TOKEN",`Unexpected ${E.type} token`),c=!1,h=!1}const S=t[t.length-1],A=S?S.offset+S.source.length:i;return g&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y&&(c&&y.indent<=o||r?.type==="block-map"||r?.type==="block-seq")&&s(y,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:k,found:_,spaceBefore:u,comment:f,hasNewline:d,hasNewlineAfterProp:m,anchor:b,tag:w,end:A,start:C??A}}a(on,"resolveProps");function qn(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(`
|
|
154
|
-
`))return!0;if(t.end){for(const e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of t.items){for(const n of e.start)if(n.type==="newline")return!0;if(e.sep){for(const n of e.sep)if(n.type==="newline")return!0}if(qn(e.key)||qn(e.value))return!0}return!1;default:return!0}}a(qn,"containsNewline");function
|
|
155
|
-
`+g.comment:l.comment=g.comment);continue}(g.hasNewlineAfterProp||qn(p))&&i(p??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else g.found?.indent!==r.indent&&i(u,"BAD_INDENT",
|
|
156
|
-
`+k.comment:w.comment=k.comment);const _=new be(w);n.options.keepSourceTokens&&(_.srcToken=h),l.items.push(_)}}return c&&c<u&&i(c,"IMPOSSIBLE","Map comment with trailing content"),l.range=[r.offset,u,c??u],l}a(
|
|
155
|
+
`))return!0;if(t.end){for(const e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of t.items){for(const n of e.start)if(n.type==="newline")return!0;if(e.sep){for(const n of e.sep)if(n.type==="newline")return!0}if(qn(e.key)||qn(e.value))return!0}return!1;default:return!0}}a(qn,"containsNewline");function to(t,e,n){if(e?.type==="flow-collection"){const r=e.end[0];r.indent===t&&(r.source==="]"||r.source==="}")&&qn(e)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}a(to,"flowIndentCheck");function Wc(t,e,n){const{uniqueKeys:r}=t.options;if(r===!1)return!1;const i=typeof r=="function"?r:(s,o)=>s===o||Z(s)&&Z(o)&&s.value===o.value&&!(s.value==="<<"&&t.schema.merge);return e.some(s=>i(s.key,n))}a(Wc,"mapIncludes");const Kc="All mapping items must start at the same column";function DC({composeNode:t,composeEmptyNode:e},n,r,i,s){const o=s?.nodeClass??De,l=new o(n.schema);n.atRoot&&(n.atRoot=!1);let u=r.offset,c=null;for(const h of r.items){const{start:f,key:p,sep:d,value:m}=h,g=on(f,{indicator:"explicit-key-ind",next:p??d?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!0}),y=!g.found;if(y){if(p&&(p.type==="block-seq"?i(u,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==r.indent&&i(u,"BAD_INDENT",Kc)),!g.anchor&&!g.tag&&!d){c=g.end,g.comment&&(l.comment?l.comment+=`
|
|
156
|
+
`+g.comment:l.comment=g.comment);continue}(g.hasNewlineAfterProp||qn(p))&&i(p??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else g.found?.indent!==r.indent&&i(u,"BAD_INDENT",Kc);const b=g.end,w=p?t(n,p,g,i):e(n,b,f,null,g,i);n.schema.compat&&to(r.indent,p,i),Wc(n,l.items,w)&&i(b,"DUPLICATE_KEY","Map keys must be unique");const k=on(d??[],{indicator:"map-value-ind",next:m,offset:w.range[2],onError:i,parentIndent:r.indent,startOnNewline:!p||p.type==="block-scalar"});if(u=k.end,k.found){y&&(m?.type==="block-map"&&!k.hasNewline&&i(u,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&g.start<k.found.offset-1024&&i(w.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const _=m?t(n,m,k,i):e(n,u,d,null,k,i);n.schema.compat&&to(r.indent,m,i),u=_.range[2];const C=new be(w,_);n.options.keepSourceTokens&&(C.srcToken=h),l.items.push(C)}else{y&&i(w.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),k.comment&&(w.comment?w.comment+=`
|
|
157
|
+
`+k.comment:w.comment=k.comment);const _=new be(w);n.options.keepSourceTokens&&(_.srcToken=h),l.items.push(_)}}return c&&c<u&&i(c,"IMPOSSIBLE","Map comment with trailing content"),l.range=[r.offset,u,c??u],l}a(DC,"resolveBlockMap");function RC({composeNode:t,composeEmptyNode:e},n,r,i,s){const o=s?.nodeClass??At,l=new o(n.schema);n.atRoot&&(n.atRoot=!1);let u=r.offset,c=null;for(const{start:h,value:f}of r.items){const p=on(h,{indicator:"seq-item-ind",next:f,offset:u,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!p.found)if(p.anchor||p.tag||f)f&&f.type==="block-seq"?i(p.end,"BAD_INDENT","All sequence items must start at the same column"):i(u,"MISSING_CHAR","Sequence item without - indicator");else{c=p.end,p.comment&&(l.comment=p.comment);continue}const d=f?t(n,f,p,i):e(n,p.end,h,null,p,i);n.schema.compat&&to(r.indent,f,i),u=d.range[2],l.items.push(d)}return l.range=[r.offset,u,c??u],l}a(RC,"resolveBlockSeq");function zn(t,e,n,r){let i="";if(t){let s=!1,o="";for(const l of t){const{source:u,type:c}=l;switch(c){case"space":s=!0;break;case"comment":{n&&!s&&r(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const h=u.substring(1)||" ";i?i+=o+h:i=h,o="";break}case"newline":i&&(o+=u),s=!0;break;default:r(l,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=u.length}}return{comment:i,offset:e}}a(zn,"resolveEnd");const no="Block collections are not allowed within flow collections",ro=a(t=>t&&(t.type==="block-map"||t.type==="block-seq"),"isBlock");function FC({composeNode:t,composeEmptyNode:e},n,r,i,s){const o=r.start.source==="{",l=o?"flow map":"flow sequence",u=s?.nodeClass??(o?De:At),c=new u(n.schema);c.flow=!0;const h=n.atRoot;h&&(n.atRoot=!1);let f=r.offset+r.start.source.length;for(let y=0;y<r.items.length;++y){const b=r.items[y],{start:w,key:k,sep:_,value:C}=b,S=on(w,{flow:l,indicator:"explicit-key-ind",next:k??_?.[0],offset:f,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!S.found){if(!S.anchor&&!S.tag&&!_&&!C){y===0&&S.comma?i(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):y<r.items.length-1&&i(S.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),S.comment&&(c.comment?c.comment+=`
|
|
157
158
|
`+S.comment:c.comment=S.comment),f=S.end;continue}!o&&n.options.strict&&qn(k)&&i(k,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(y===0)S.comma&&i(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(S.comma||i(S.start,"MISSING_CHAR",`Missing , between ${l} items`),S.comment){let A="";e:for(const E of w)switch(E.type){case"comma":case"space":break;case"comment":A=E.source.substring(1);break e;default:break e}if(A){let E=c.items[c.items.length-1];te(E)&&(E=E.value??E.key),E.comment?E.comment+=`
|
|
158
|
-
`+A:E.comment=A,S.comment=S.comment.substring(A.length+1)}}if(!o&&!_&&!S.found){const A=C?t(n,C,S,i):e(n,S.end,_,null,S,i);c.items.push(A),f=A.range[2],
|
|
159
|
-
`+P.comment:E.comment=P.comment);const R=new be(E,N);if(n.options.keepSourceTokens&&(R.srcToken=b),o){const O=c;
|
|
160
|
-
`+y.comment:c.comment=y.comment),c.range=[r.offset,g,y.offset]}else c.range=[r.offset,g,g];return c}a(
|
|
159
|
+
`+A:E.comment=A,S.comment=S.comment.substring(A.length+1)}}if(!o&&!_&&!S.found){const A=C?t(n,C,S,i):e(n,S.end,_,null,S,i);c.items.push(A),f=A.range[2],ro(C)&&i(A.range,"BLOCK_IN_FLOW",no)}else{const A=S.end,E=k?t(n,k,S,i):e(n,A,w,null,S,i);ro(k)&&i(E.range,"BLOCK_IN_FLOW",no);const P=on(_??[],{flow:l,indicator:"map-value-ind",next:C,offset:E.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(P.found){if(!o&&!S.found&&n.options.strict){if(_)for(const O of _){if(O===P.found)break;if(O.type==="newline"){i(O,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}S.start<P.found.offset-1024&&i(P.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else C&&("source"in C&&C.source&&C.source[0]===":"?i(C,"MISSING_CHAR",`Missing space after : in ${l}`):i(P.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const N=C?t(n,C,P,i):P.found?e(n,P.end,_,null,P,i):null;N?ro(C)&&i(N.range,"BLOCK_IN_FLOW",no):P.comment&&(E.comment?E.comment+=`
|
|
160
|
+
`+P.comment:E.comment=P.comment);const R=new be(E,N);if(n.options.keepSourceTokens&&(R.srcToken=b),o){const O=c;Wc(n,O.items,E)&&i(A,"DUPLICATE_KEY","Map keys must be unique"),O.items.push(R)}else{const O=new De(n.schema);O.flow=!0,O.items.push(R),c.items.push(O)}f=N?N.range[2]:P.end}}const p=o?"}":"]",[d,...m]=r.end;let g=f;if(d&&d.source===p)g=d.offset+d.source.length;else{const y=l[0].toUpperCase()+l.substring(1),b=h?`${y} must end with a ${p}`:`${y} in block collection must be sufficiently indented and end with a ${p}`;i(f,h?"MISSING_CHAR":"BAD_INDENT",b),d&&d.source.length!==1&&m.unshift(d)}if(m.length>0){const y=zn(m,g,n.options.strict,i);y.comment&&(c.comment?c.comment+=`
|
|
161
|
+
`+y.comment:c.comment=y.comment),c.range=[r.offset,g,y.offset]}else c.range=[r.offset,g,g];return c}a(FC,"resolveFlowCollection");function io(t,e,n,r,i,s){const o=n.type==="block-map"?DC(t,e,n,r,s):n.type==="block-seq"?RC(t,e,n,r,s):FC(t,e,n,r,s),l=o.constructor;return i==="!"||i===l.tagName?(o.tag=l.tagName,o):(i&&(o.tag=i),o)}a(io,"resolveCollection");function MC(t,e,n,r,i){const s=r?e.directives.tagName(r.source,f=>i(r,"TAG_RESOLVE_FAILED",f)):null,o=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!r||!s||s==="!"||s===De.tagName&&o==="map"||s===At.tagName&&o==="seq"||!o)return io(t,e,n,i,s);let l=e.schema.tags.find(f=>f.tag===s&&f.collection===o);if(!l){const f=e.schema.knownTags[s];if(f&&f.collection===o)e.schema.tags.push(Object.assign({},f,{default:!1})),l=f;else return f?.collection?i(r,"BAD_COLLECTION_TYPE",`${f.tag} used for ${o} collection, but expects ${f.collection}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),io(t,e,n,i,s)}const u=io(t,e,n,i,s,l),c=l.resolve?.(u,f=>i(r,"TAG_RESOLVE_FAILED",f),e.options)??u,h=se(c)?c:new z(c);return h.range=u.range,h.tag=s,l?.format&&(h.format=l.format),h}a(MC,"composeCollection");function $C(t,e,n){const r=e.offset,i=BC(e,t.options.strict,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const s=i.mode===">"?z.BLOCK_FOLDED:z.BLOCK_LITERAL,o=e.source?qC(e.source):[];let l=o.length;for(let g=o.length-1;g>=0;--g){const y=o[g][1];if(y===""||y==="\r")l=g;else break}if(l===0){const g=i.chomp==="+"&&o.length>0?`
|
|
161
162
|
`.repeat(Math.max(1,o.length-1)):"";let y=r+i.length;return e.source&&(y+=e.source.length),{value:g,type:s,comment:i.comment,range:[r,y,y]}}let u=e.indent+i.indent,c=e.offset+i.length,h=0;for(let g=0;g<l;++g){const[y,b]=o[g];if(b===""||b==="\r")i.indent===0&&y.length>u&&(u=y.length);else{y.length<u&&n(c+y.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(u=y.length),h=g,u===0&&!t.atRoot&&n(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=y.length+b.length+1}for(let g=o.length-1;g>=l;--g)o[g][0].length>u&&(l=g+1);let f="",p="",d=!1;for(let g=0;g<h;++g)f+=o[g][0].slice(u)+`
|
|
162
163
|
`;for(let g=h;g<l;++g){let[y,b]=o[g];c+=y.length+b.length+1;const w=b[b.length-1]==="\r";if(w&&(b=b.slice(0,-1)),b&&y.length<u){const _=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(c-b.length-(w?2:1),"BAD_INDENT",_),y=""}s===z.BLOCK_LITERAL?(f+=p+y.slice(u)+b,p=`
|
|
163
164
|
`):y.length>u||b[0]===" "?(p===" "?p=`
|
|
@@ -172,59 +173,57 @@ ${c}
|
|
|
172
173
|
`+o[g][0].slice(u);f[f.length-1]!==`
|
|
173
174
|
`&&(f+=`
|
|
174
175
|
`);break;default:f+=`
|
|
175
|
-
`}const m=r+i.length+e.source.length;return{value:f,type:s,comment:i.comment,range:[r,m,m]}}a(
|
|
176
|
+
`}const m=r+i.length+e.source.length;return{value:f,type:s,comment:i.comment,range:[r,m,m]}}a($C,"resolveBlockScalar");function BC({offset:t,props:e},n,r){if(e[0].type!=="block-scalar-header")return r(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=e[0],s=i[0];let o=0,l="",u=-1;for(let p=1;p<i.length;++p){const d=i[p];if(!l&&(d==="-"||d==="+"))l=d;else{const m=Number(d);!o&&m?o=m:u===-1&&(u=t+p)}}u!==-1&&r(u,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,h="",f=i.length;for(let p=1;p<e.length;++p){const d=e[p];switch(d.type){case"space":c=!0;case"newline":f+=d.source.length;break;case"comment":n&&!c&&r(d,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=d.source.length,h=d.source.substring(1);break;case"error":r(d,"UNEXPECTED_TOKEN",d.message),f+=d.source.length;break;default:{const m=`Unexpected token in block scalar header: ${d.type}`;r(d,"UNEXPECTED_TOKEN",m);const g=d.source;g&&typeof g=="string"&&(f+=g.length)}}}return{mode:s,indent:o,chomp:l,comment:h,length:f}}a(BC,"parseBlockScalarHeader");function qC(t){const e=t.split(/\n( *)/),n=e[0],r=n.match(/^( *)/),s=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let o=1;o<e.length;o+=2)s.push([e[o],e[o+1]]);return s}a(qC,"splitLines");function zC(t,e,n){const{offset:r,type:i,source:s,end:o}=t;let l,u;const c=a((p,d,m)=>n(r+p,d,m),"_onError");switch(i){case"scalar":l=z.PLAIN,u=UC(s,c);break;case"single-quoted-scalar":l=z.QUOTE_SINGLE,u=jC(s,c);break;case"double-quoted-scalar":l=z.QUOTE_DOUBLE,u=GC(s,c);break;default:return n(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const h=r+s.length,f=zn(o,h,e,n);return{value:u,type:l,comment:f.comment,range:[r,h,f.offset]}}a(zC,"resolveFlowScalar");function UC(t,e){let n="";switch(t[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${t[0]}`;break}case"@":case"`":{n=`reserved character ${t[0]}`;break}}return n&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Yc(t)}a(UC,"plainValue");function jC(t,e){return(t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),Yc(t.slice(1,-1)).replace(/''/g,"'")}a(jC,"singleQuotedValue");function Yc(t){let e,n;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
176
177
|
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
177
178
|
`,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=e.exec(t);if(!r)return t;let i=r[1],s=" ",o=e.lastIndex;for(n.lastIndex=o;r=n.exec(t);)r[1]===""?s===`
|
|
178
179
|
`?i+=s:s=`
|
|
179
|
-
`:(i+=s+r[1],s=" "),o=n.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=o,r=l.exec(t),i+s+(r?.[1]??"")}a(
|
|
180
|
+
`:(i+=s+r[1],s=" "),o=n.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=o,r=l.exec(t),i+s+(r?.[1]??"")}a(Yc,"foldLines");function GC(t,e){let n="";for(let r=1;r<t.length-1;++r){const i=t[r];if(!(i==="\r"&&t[r+1]===`
|
|
180
181
|
`))if(i===`
|
|
181
|
-
`){const{fold:s,offset:o}=
|
|
182
|
+
`){const{fold:s,offset:o}=HC(t,r);n+=s,r=o}else if(i==="\\"){let s=t[++r];const o=VC[s];if(o)n+=o;else if(s===`
|
|
182
183
|
`)for(s=t[r+1];s===" "||s===" ";)s=t[++r+1];else if(s==="\r"&&t[r+1]===`
|
|
183
|
-
`)for(s=t[++r+1];s===" "||s===" ";)s=t[++r+1];else if(s==="x"||s==="u"||s==="U"){const l={x:2,u:4,U:8}[s];n+=
|
|
184
|
+
`)for(s=t[++r+1];s===" "||s===" ";)s=t[++r+1];else if(s==="x"||s==="u"||s==="U"){const l={x:2,u:4,U:8}[s];n+=WC(t,r+1,l,e),r+=l}else{const l=t.substr(r-1,2);e(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),n+=l}}else if(i===" "||i===" "){const s=r;let o=t[r+1];for(;o===" "||o===" ";)o=t[++r+1];o!==`
|
|
184
185
|
`&&!(o==="\r"&&t[r+2]===`
|
|
185
|
-
`)&&(n+=r>s?t.slice(s,r+1):i)}else n+=i}return(t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),n}a(
|
|
186
|
+
`)&&(n+=r>s?t.slice(s,r+1):i)}else n+=i}return(t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),n}a(GC,"doubleQuotedValue");function HC(t,e){let n="",r=t[e+1];for(;(r===" "||r===" "||r===`
|
|
186
187
|
`||r==="\r")&&!(r==="\r"&&t[e+2]!==`
|
|
187
188
|
`);)r===`
|
|
188
189
|
`&&(n+=`
|
|
189
|
-
`),e+=1,r=t[e+1];return n||(n=" "),{fold:n,offset:e}}a(
|
|
190
|
-
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function
|
|
190
|
+
`),e+=1,r=t[e+1];return n||(n=" "),{fold:n,offset:e}}a(HC,"foldNewline");const VC={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
191
|
+
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function WC(t,e,n,r){const i=t.substr(e,n),o=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){const l=t.substr(e-2,n+2);return r(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(o)}a(WC,"parseCharCode");function Jc(t,e,n,r){const{value:i,type:s,comment:o,range:l}=e.type==="block-scalar"?$C(t,e,r):zC(e,t.options.strict,r),u=n?t.directives.tagName(n.source,f=>r(n,"TAG_RESOLVE_FAILED",f)):null,c=n&&u?KC(t.schema,i,u,n,r):e.type==="scalar"?YC(t,i,e,r):t.schema[et];let h;try{const f=c.resolve(i,p=>r(n??e,"TAG_RESOLVE_FAILED",p),t.options);h=Z(f)?f:new z(f)}catch(f){const p=f instanceof Error?f.message:String(f);r(n??e,"TAG_RESOLVE_FAILED",p),h=new z(i)}return h.range=l,h.source=i,s&&(h.type=s),u&&(h.tag=u),c.format&&(h.format=c.format),o&&(h.comment=o),h}a(Jc,"composeScalar");function KC(t,e,n,r,i){if(n==="!")return t[et];const s=[];for(const l of t.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)s.push(l);else return l;for(const l of s)if(l.test?.test(e))return l;const o=t.knownTags[n];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),t[et])}a(KC,"findScalarTagByName");function YC({directives:t,schema:e},n,r,i){const s=e.tags.find(o=>o.default&&o.test?.test(n))||e[et];if(e.compat){const o=e.compat.find(l=>l.default&&l.test?.test(n))??e[et];if(s.tag!==o.tag){const l=t.tagString(s.tag),u=t.tagString(o.tag),c=`Value may be parsed as either ${l} or ${u}`;i(r,"TAG_RESOLVE_FAILED",c,!0)}}return s}a(YC,"findScalarTagByTest");function JC(t,e,n){if(e){n===null&&(n=e.length);for(let r=n-1;r>=0;--r){let i=e[r];switch(i.type){case"space":case"comment":case"newline":t-=i.source.length;continue}for(i=e[++r];i?.type==="space";)t+=i.source.length,i=e[++r];break}}return t}a(JC,"emptyScalarPosition");const QC={composeNode:Qc,composeEmptyNode:so};function Qc(t,e,n,r){const{spaceBefore:i,comment:s,anchor:o,tag:l}=n;let u,c=!0;switch(e.type){case"alias":u=XC(t,e,r),(o||l)&&r(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=Jc(t,e,l,r),o&&(u.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=MC(QC,t,e,l,r),o&&(u.anchor=o.source.substring(1));break;default:{const h=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;r(e,"UNEXPECTED_TOKEN",h),u=so(t,e.offset,void 0,null,n,r),c=!1}}return o&&u.anchor===""&&r(o,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(u.spaceBefore=!0),s&&(e.type==="scalar"&&e.source===""?u.comment=s:u.commentBefore=s),t.options.keepSourceTokens&&c&&(u.srcToken=e),u}a(Qc,"composeNode");function so(t,e,n,r,{spaceBefore:i,comment:s,anchor:o,tag:l,end:u},c){const h={type:"scalar",offset:JC(e,n,r),indent:-1,source:""},f=Jc(t,h,l,c);return o&&(f.anchor=o.source.substring(1),f.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(f.spaceBefore=!0),s&&(f.comment=s,f.range[2]=u),f}a(so,"composeEmptyNode");function XC({options:t},{offset:e,source:n,end:r},i){const s=new $s(n.substring(1));s.source===""&&i(e,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(e+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=e+n.length,l=zn(r,o,t.strict,i);return s.range=[e,o,l.offset],l.comment&&(s.comment=l.comment),s}a(XC,"composeAlias");function ZC(t,e,{offset:n,start:r,value:i,end:s},o){const l=Object.assign({_directives:e},t),u=new Hn(void 0,l),c={atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},h=on(r,{indicator:"doc-start",next:i??s?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});h.found&&(u.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!h.hasNewline&&o(h.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=i?Qc(c,i,h,o):so(c,h.end,r,null,h,o);const f=u.contents.range[2],p=zn(s,f,!1,o);return p.comment&&(u.comment=p.comment),u.range=[n,f,p.offset],u}a(ZC,"composeDoc");function Un(t){if(typeof t=="number")return[t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];const{offset:e,source:n}=t;return[e,e+(typeof n=="string"?n.length:1)]}a(Un,"getErrorPos");function Xc(t){let e="",n=!1,r=!1;for(let i=0;i<t.length;++i){const s=t[i];switch(s[0]){case"#":e+=(e===""?"":r?`
|
|
191
192
|
|
|
192
193
|
`:`
|
|
193
|
-
`)+(s.substring(1)||" "),n=!0,r=!1;break;case"%":t[i+1]?.[0]!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:e,afterEmptyLine:r}}a(
|
|
194
|
+
`)+(s.substring(1)||" "),n=!0,r=!1;break;case"%":t[i+1]?.[0]!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:e,afterEmptyLine:r}}a(Xc,"parsePrelude");class eN{static{a(this,"Composer")}constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,s)=>{const o=Un(n);s?this.warnings.push(new PC(o,r,i)):this.errors.push(new Bn(o,r,i))},this.directives=new ke({version:e.version||"1.2"}),this.options=e}decorate(e,n){const{comment:r,afterEmptyLine:i}=Xc(this.prelude);if(r){const s=e.contents;if(n)e.comment=e.comment?`${e.comment}
|
|
194
195
|
${r}`:r;else if(i||e.directives.docStart||!s)e.commentBefore=r;else if(ne(s)&&!s.flow&&s.items.length>0){let o=s.items[0];te(o)&&(o=o.key);const l=o.commentBefore;o.commentBefore=l?`${r}
|
|
195
196
|
${l}`:r}else{const o=s.commentBefore;s.commentBefore=o?`${r}
|
|
196
|
-
${o}`:r}}n?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:
|
|
197
|
-
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Bn(Un(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const r=Object.assign({_directives:this.directives},this.options),i=new Hn(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}}const
|
|
197
|
+
${o}`:r}}n?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Xc(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,n=!1,r=-1){for(const i of e)yield*this.next(i);yield*this.end(n,r)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(n,r,i)=>{const s=Un(e);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,i)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const n=ZC(this.options,this.directives,e,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const n=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,r=new Bn(Un(e),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new Bn(Un(e),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=zn(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
|
|
198
|
+
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Bn(Un(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const r=Object.assign({_directives:this.directives},this.options),i=new Hn(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}}const Zc="\uFEFF",ef="",tf="",oo="";function tN(t){switch(t){case Zc:return"byte-order-mark";case ef:return"doc-mode";case tf:return"flow-error-end";case oo:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
198
199
|
`:case`\r
|
|
199
|
-
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}a(
|
|
200
|
-
`:case"\r":case" ":return!0;default:return!1}}a(Re,"isEmpty");const
|
|
201
|
-
\r `),
|
|
200
|
+
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}a(tN,"tokenType");function Re(t){switch(t){case void 0:case" ":case`
|
|
201
|
+
`:case"\r":case" ":return!0;default:return!1}}a(Re,"isEmpty");const nf=new Set("0123456789ABCDEFabcdef"),nN=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Qr=new Set(",[]{}"),rN=new Set(` ,[]{}
|
|
202
|
+
\r `),ao=a(t=>!t||rN.has(t),"isNotAnchorChar");class iN{static{a(this,"Lexer")}constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,n=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos,n=this.buffer[e];for(;n===" "||n===" ";)n=this.buffer[++e];return!n||n==="#"||n===`
|
|
202
203
|
`?!0:n==="\r"?this.buffer[e+1]===`
|
|
203
204
|
`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let n=this.buffer[e];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+e];if(n==="\r"){const i=this.buffer[r+e+1];if(i===`
|
|
204
205
|
`||!i&&!this.atEnd)return e+r+1}return n===`
|
|
205
206
|
`||r>=this.indentNext||!n&&!this.atEnd?e+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(e,3);if((r==="---"||r==="...")&&Re(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
|
|
206
|
-
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===
|
|
207
|
+
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===Zc&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let n=e.length,r=e.indexOf("#");for(;r!==-1;){const s=e[r-1];if(s===" "||s===" "){n=r-1;break}else r=e.indexOf("#",r+1)}for(;;){const s=e[n-1];if(s===" "||s===" ")n-=1;else break}const i=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-n),yield*this.pushNewline(),"stream"}return yield ef,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if(n==="---"&&Re(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Re(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Re(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&Re(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(e[n]){case"#":yield*this.pushCount(e.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(ao),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,n,r=-1;do e=yield*this.pushNewline(),e>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(e+n>0);const i=this.getLine();if(i===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&i[0]!=="#"||r===0&&(i.startsWith("---")||i.startsWith("..."))&&Re(i[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield tf,yield*this.parseLineStart();let s=0;for(;i[s]===",";)s+=yield*this.pushCount(1),s+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s+=yield*this.pushIndicators(),i[s]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-s),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(ao),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||Re(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let n=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let s=0;for(;this.buffer[n-1-s]==="\\";)s+=1;if(s%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let i=r.indexOf(`
|
|
207
208
|
`,this.pos);if(i!==-1){for(;i!==-1;){const s=this.continueScalar(i+1);if(s===-1)break;i=r.indexOf(`
|
|
208
209
|
`,s)}i!==-1&&(n=i-(r[i-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const n=this.buffer[++e];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Re(n)||n==="#")}*parseBlockScalar(){let e=this.pos-1,n=0,r;e:for(let s=this.pos;r=this.buffer[s];++s)switch(r){case" ":n+=1;break;case`
|
|
209
210
|
`:e=s,n=0;break;case"\r":{const o=this.buffer[s+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
|
|
210
211
|
`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const s=this.continueScalar(e+1);if(s===-1)break;e=this.buffer.indexOf(`
|
|
211
212
|
`,s)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let i=e+1;for(r=this.buffer[i];r===" ";)r=this.buffer[++i];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
|
|
212
213
|
`;)r=this.buffer[++i];e=i-1}else if(!this.blockScalarKeep)do{let s=e-1,o=this.buffer[s];o==="\r"&&(o=this.buffer[--s]);const l=s;for(;o===" ";)o=this.buffer[--s];if(o===`
|
|
213
|
-
`&&s>=this.pos&&s+1+n>l)e=s;else break}while(!0);return yield
|
|
214
|
+
`&&s>=this.pos&&s+1+n>l)e=s;else break}while(!0);return yield oo,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,i;for(;i=this.buffer[++r];)if(i===":"){const s=this.buffer[r+1];if(Re(s)||e&&Qr.has(s))break;n=r}else if(Re(i)){let s=this.buffer[r+1];if(i==="\r"&&(s===`
|
|
214
215
|
`?(r+=1,i=`
|
|
215
216
|
`,s=this.buffer[r+1]):n=r),s==="#"||e&&Qr.has(s))break;if(i===`
|
|
216
|
-
`){const o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2)}}else{if(e&&Qr.has(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield
|
|
217
|
+
`){const o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2)}}else{if(e&&Qr.has(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield oo,yield*this.pushToIndex(n+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,n){const r=this.buffer.slice(this.pos,e);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(ao))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,n=this.charAt(1);if(Re(n)||e&&Qr.has(n))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,n=this.buffer[e];for(;!Re(n)&&n!==">";)n=this.buffer[++e];return yield*this.pushToIndex(n===">"?e+1:e,!1)}else{let e=this.pos+1,n=this.buffer[e];for(;n;)if(nN.has(n))n=this.buffer[++e];else if(n==="%"&&nf.has(this.buffer[e+1])&&nf.has(this.buffer[e+2]))n=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
|
|
217
218
|
`?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
|
|
218
|
-
`?yield*this.pushCount(2):0}*pushSpaces(e){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||e&&r===" ");const i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(e){let n=this.pos,r=this.buffer[n];for(;!e(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class
|
|
219
|
+
`?yield*this.pushCount(2):0}*pushSpaces(e){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||e&&r===" ");const i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(e){let n=this.pos,r=this.buffer[n];for(;!e(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class sN{static{a(this,"LineCounter")}constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let n=0,r=this.lineStarts.length;for(;n<r;){const s=n+r>>1;this.lineStarts[s]<e?n=s+1:r=s}if(this.lineStarts[n]===e)return{line:n+1,col:1};if(n===0)return{line:0,col:e};const i=this.lineStarts[n-1];return{line:n,col:e-i+1}}}}function Et(t,e){for(let n=0;n<t.length;++n)if(t[n].type===e)return!0;return!1}a(Et,"includesToken");function rf(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}a(rf,"findNonEmptyIndex");function sf(t){switch(t?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}a(sf,"isFlowToken");function Xr(t){switch(t.type){case"document":return t.start;case"block-map":{const e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return[]}}a(Xr,"getPrevProps");function an(t){if(t.length===0)return[];let e=t.length;e:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;t[++e]?.type==="space";);return t.splice(e,t.length)}a(an,"getFirstKeyStartProps");function of(t){if(t.start.type==="flow-seq-start")for(const e of t.items)e.sep&&!e.value&&!Et(e.start,"explicit-key-ind")&&!Et(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,sf(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}a(of,"fixFlowSeqItems");class oN{static{a(this,"Parser")}constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new iN,this.onNewLine=e}*parse(e,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(e,n))yield*this.next(r);n||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const n=tN(e);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const r=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const n=e??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&of(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const i=r.items[r.items.length-1];if(i.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=n;else{Object.assign(i,{key:n,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{const i=r.items[r.items.length-1];i.value?r.items.push({start:[],value:n}):i.value=n;break}case"flow-collection":{const i=r.items[r.items.length-1];!i||i.value?r.items.push({start:[],key:n,sep:[]}):i.sep?i.value=n:Object.assign(i,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const i=n.items[n.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&rf(i.start)===-1&&(n.indent===0||i.start.every(s=>s.type!=="comment"||s.indent<n.indent))&&(r.type==="document"?r.end=i.start:r.items.push({start:i.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{rf(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const n=Xr(this.peek(2)),r=an(n);let i;e.end?(i=e.end,i.push(this.sourceToken),delete e.end):i=[this.sourceToken];const s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
|
|
219
220
|
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
220
|
-
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){const i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const r=!this.onKeyLine&&this.indent===e.indent,i=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(i&&n.sep&&!n.value){const o=[];for(let l=0;l<n.sep.length;++l){const u=n.sep[l];switch(u.type){case"newline":o.push(l);break;case"space":break;case"comment":u.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(s=n.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(s.push(this.sourceToken),e.items.push({start:s}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):i||n.value?(s.push(this.sourceToken),e.items.push({start:s,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Et(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(
|
|
221
|
+
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){const i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const r=!this.onKeyLine&&this.indent===e.indent,i=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(i&&n.sep&&!n.value){const o=[];for(let l=0;l<n.sep.length;++l){const u=n.sep[l];switch(u.type){case"newline":o.push(l);break;case"space":break;case"comment":u.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(s=n.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(s.push(this.sourceToken),e.items.push({start:s}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):i||n.value?(s.push(this.sourceToken),e.items.push({start:s,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Et(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(sf(n.key)&&!Et(n.sep,"newline")){const o=an(n.start),l=n.key,u=n.sep;u.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:l,sep:u}]})}else s.length>0?n.sep=n.sep.concat(s,this.sourceToken):n.sep.push(this.sourceToken);else if(Et(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const o=an(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?e.items.push({start:s,key:null,sep:[this.sourceToken]}):Et(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);i||n.value?(e.items.push({start:s,key:o,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(o):(Object.assign(n,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(e);if(o){r&&o.type!=="block-seq"&&e.items.push({start:s}),this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;n.value||Et(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>e.indent){const r=this.startBlockValue(e);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const n=e.items[e.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?e.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?e.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===e.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const i=Xr(r),s=an(i);of(e);const o=e.end.splice(1,e.end.length);o.push(this.sourceToken);const l={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let n=this.source.indexOf(`
|
|
221
222
|
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
222
|
-
`,n)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Xr(e),r=an(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Xr(e),r=an(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function oN(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new iN||null,prettyErrors:e}}a(oN,"parseOptions");function aN(t,e={}){const{lineCounter:n,prettyErrors:r}=oN(e),i=new sN(n?.addNewLine),s=new ZC(e);let o=null;for(const l of s.compose(i.parse(t),!0,t.length))if(!o)o=l;else if(o.options.logLevel!=="silent"){o.errors.push(new Bn(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(o.errors.forEach(Hc(t,n)),o.warnings.forEach(Hc(t,n))),o}a(aN,"parseDocument");function of(t,e,n){let r;const i=aN(t,n);if(!i)return null;if(i.warnings.forEach(s=>Sc(i.options.logLevel,s)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}a(of,"parse");function af(t,e,n){let r=null;if(typeof e=="function"||Array.isArray(e)?r=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(t===void 0){const{keepUndefined:i}=n??e??{};if(!i)return}return new Hn(t,r,n).toString(n)}a(af,"stringify");const lN={...ge};async function uN(t,e){const{obsidianVault:n}=Ne(lN,e??{}),r=is().use(Q_).use(O1,[{anywhere:!1,marker:"-",type:"yaml"}]).use(o1,{automaticAlias:!0,obsidianVault:n}).use(s_,{singleTilde:!1}).use(k_).use(l_).use(w1);return r.run(r.parse(t))}a(uN,"getAstFromMarkdown");function cN(t,e){return ee(t,e,(n,r,i)=>{if(i&&r!==void 0)return i.children.splice(r,1),He}),t}a(cN,"deleteFirstNodeOfType");function fN(t){let e=1;return ee(t,"delete",(n,r,i)=>{if(i===void 0||r===void 0||!("children"in n))return Ce;const s=n.children.at(-1),o=n.children.length>1&&s?.type==="emphasis"?[V("text",`{{c${e}::`),...n.children.slice(0,-1),V("text","::"),...n.children.slice(-1),V("text","}}")]:[V("text",`{{c${e}::`),...n.children,V("text","}}")];i.children.splice(r,1,...o),e+=1}),t}a(fN,"replaceDeleteNodesWithClozeMarkup");function lf(t){let e,n=!1;if(ee(t,"thematicBreak",(s,o,l)=>o===void 0||l===void 0?Ce:(e=o,l.children[o+1]?.type==="thematicBreak"&&(n=!0),He)),e===void 0)return[t,void 0];const r={children:t.children.slice(0,e),type:"root"},i={children:t.children.slice(e+(n?2:1)),type:"root"};return[r,i]}a(lf,"splitTreeAtThematicBreak");function hN(t){let e;if(ee(t,r=>{if(r.type==="thematicBreak")return e=void 0,He;if(r.type==="delete")return e="Yanki - Cloze",He}),e!==void 0)return e;if(!dN(t)&&mN(t))return"Yanki - Basic (type in the answer)";let n;return ee(t,"thematicBreak",(r,i,s)=>{if(s===null||i===null)return Ce;e=n?.type==="thematicBreak"&&r.type==="thematicBreak"?"Yanki - Basic (and reversed card)":"Yanki - Basic",n=r}),e??"Yanki - Basic"}a(hN,"getYankiModelNameFromTree");function pN(t){let e;if(ee(t,"yaml",r=>"value"in r?(e=r.value,He):Ce),!e)return{};const n=of(e);if(!n)throw new Error("Could not parse frontmatter");return n}a(pN,"getFrontmatterFromTree");function dN(t){let e=!1;return ee(t,"thematicBreak",()=>(e=!0,He)),e}a(dN,"hasThematicBreak");function mN(t){let e,n=0;return ee(t,r=>{if(r.type==="text"&&r.value.trim()!=="")e=r,n++;else if(r.type==="emphasis"&&r.children.some(i=>i.type==="text"&&i.value.trim()!==""))return e=r,n++,Ti}),e!==void 0&&e.type==="emphasis"&&n>1}a(mN,"isLastVisibleNodeEmphasisWithOthers");function gN(t){let e,n,r;if(ee(t,"emphasis",(i,s,o)=>{if(o===void 0||s===void 0||i.type!=="emphasis")return Ce;e=i,n=o,r=s}),n&&e&&typeof r=="number")return n.children.splice(r,1),e}a(gN,"removeLastEmphasis");const uf={namespaceValidationAndSanitization:!0,...ge};async function cf(t,e){const{basePath:n,cwd:r,fetchAdapter:i=dn(),fileAdapter:s=await Ft(),namespace:o,namespaceValidationAndSanitization:l,obsidianVault:u,syncMediaAssets:c}=Ne(uf,e??{}),h=l?pt(o):o;let f=await uN(t,{obsidianVault:u});const p=hN(f),d=pN(f);f=cN(f,"yaml");let m="",g="";switch(p){case"Yanki - Basic":case"Yanki - Basic (and reversed card)":{const[b,w]=lf(f);m=await Vt(b,{basePath:n,cssClassNames:[Rt,`namespace-${h}`,"front",`model-${p}`],cwd:r,fetchAdapter:i,fileAdapter:s,namespace:h,syncMediaAssets:c,useEmptyPlaceholder:!0}),g=await Vt(w,{basePath:n,cssClassNames:[Rt,`namespace-${h}`,"back",`model-${p}`],cwd:r,fetchAdapter:i,fileAdapter:s,namespace:h,syncMediaAssets:c,useEmptyPlaceholder:!0});break}case"Yanki - Cloze":{f=fN(f);const[b,w]=lf(f);m=await Vt(b,{basePath:n,cssClassNames:[Rt,`namespace-${h}`,"front",`model-${p}`],cwd:r,fetchAdapter:i,fileAdapter:s,namespace:h,syncMediaAssets:c,useEmptyPlaceholder:!0}),g=await Vt(w,{basePath:n,cssClassNames:[Rt,`namespace-${h}`,"back",`model-${p}`],cwd:r,fetchAdapter:i,fileAdapter:s,namespace:h,syncMediaAssets:c,useEmptyPlaceholder:!1});break}case"Yanki - Basic (type in the answer)":{const b=gN(f);if(b===void 0)throw new Error("Could not find emphasis in Basic (type in the answer) note AST.");const w=f,k=V("root",V("paragraph",b.children));m=await Vt(w,{basePath:n,cssClassNames:[Rt,`namespace-${h}`,"front",`model-${p}`],cwd:r,fetchAdapter:i,fileAdapter:s,namespace:h,syncMediaAssets:c,useEmptyPlaceholder:!0}),g=await Vt(k,{basePath:n,cssClassNames:[Rt,`namespace-${h}`,"back",`model-${p}`],cwd:r,fetchAdapter:i,fileAdapter:s,namespace:h,syncMediaAssets:c,useEmptyPlaceholder:!1});break}}return{deckName:"",fields:{Back:g,Front:m,YankiNamespace:h},modelName:p,noteId:d.noteId??void 0,tags:d.tags??[]}}a(cf,"getNoteFromMarkdown");const yN={...ge};async function ff(t,e){const{basePath:n,fetchAdapter:r=dn(),fileAdapter:i=await Ft(),namespace:s,obsidianVault:o,syncMediaAssets:l}=Ne(yN,e??{}),u=pt(s);t.sort((f,p)=>f.localeCompare(p));const c=wN(t,{basePath:n}),h=[];for(const[f,p]of t.entries()){const d=await i.readFile(p),m=await cf(d,{basePath:n,cwd:W.dirname(p),fetchAdapter:r,fileAdapter:i,namespace:u,namespaceValidationAndSanitization:!1,obsidianVault:o,syncMediaAssets:l});m.deckName===""&&(m.deckName=c[f]),h.push({filePath:p,filePathOriginal:p,markdown:d,note:m})}return h}a(ff,"loadLocalNotes");const bN={...ge,mode:"common-root"};function wN(t,e){const{basePath:n,cwd:r,mode:i}=Ne(bN,e??{}),s=t.map(h=>W.dirname(No(h,{basePath:n,cwd:r})).split(W.sep)),o=s.reduce((h,f)=>h.filter((d,m)=>d===f[m])),l=s.some(h=>h.at(-1)===o.at(-1)),u=i==="common-parent"||l?1:0;return s.map(h=>h.slice(o.length-u).join("::"))}a(wN,"getDeckNamesFromFilePaths");const kN={...ge};async function hf(t,e){const{dryRun:n,fileAdapter:r=await Ft(),manageFilenames:i,maxFilenameLength:s}=Ne(kN,e??{});if(i!=="off"){const o=[];for(const u of t){const{filePath:c,note:h}=u;if(c===void 0)throw new Error("File path is undefined");const f=Zk(h,i,s),p=W.join(W.dirname(c),`${f}${W.extname(c)}`),d=e1(p,o);u.filePath=d,o.push(d.toLowerCase())}for(const u of t){const{filePath:c}=u;if(c===void 0)throw new Error("File path is undefined");u.filePath=t1(c,o)}const l=new Map;for(const u of t){const{filePath:c,filePathOriginal:h}=u;if(h===void 0)throw new Error("Original file path is undefined.");if(c===void 0)throw new Error("File path is undefined.");if(c===h)continue;let f=c;t.some(({filePath:p,filePathOriginal:d})=>p!==c&&d?.toLowerCase()===c.toLowerCase())&&(f=n1(c),l.set(f,c)),n||await r.rename(h,f)}for(const[u,c]of l)n||await r.rename(u,c)}return t.sort((o,l)=>o.filePath.localeCompare(l.filePath)),t}a(hf,"renameNotes");const pf={...ge};async function SN(t,e){const{basePath:n,dryRun:r,fetchAdapter:i=dn(),fileAdapter:s=await Ft(),manageFilenames:o,maxFilenameLength:l,namespace:u,obsidianVault:c,syncMediaAssets:h}=Ne(pf,e??{}),f=pt(u),p=await ff(t,{basePath:n,fetchAdapter:i,fileAdapter:s,namespace:f,obsidianVault:c,syncMediaAssets:h}),d=await hf(p,{dryRun:r,fileAdapter:s,manageFilenames:o,maxFilenameLength:l});return{dryRun:r,notes:d}}a(SN,"renameFiles");const ao={css:Rf,...ge},xN={...ge};async function vN(t){const{ankiConnectOptions:e}=Ne(ao,t??{}),n=new pn(e);if(await An(n)==="ankiUnreachable")throw new Error("Anki is unreachable. Is Anki running?");const i=new Set;for(const s of Er){const o=await Sb(n,s);i.add(o)}if(i.size===0)throw new Error("No CSS found in any Yanki model.");if(i.size>1)throw new Error("Expected all Yanki models to have identical CSS.");return[...i][0]}a(vN,"getStyle");async function _N(t){const e=performance.now(),{ankiConnectOptions:n,ankiWeb:r,css:i,dryRun:s}=Ne(ao,t??{}),o=new pn(n);if(await An(o)==="ankiUnreachable")throw new Error("Anki is unreachable. Is Anki running?");const u=[];for(const h of Er){const f=await Jl(o,h,i,s);u.push({action:f?"updated":"unchanged",name:h})}const c=u.some(h=>h.action!=="unchanged");return!s&&r&&(c||ii)&&await o.miscellaneous.sync(),{ankiWeb:r,dryRun:s,duration:performance.now()-e,models:u}}a(_N,"setStyle");function CN(t,e=!1){const n=[],r=t.models.filter(s=>s.action==="unchanged"),i=t.models.filter(s=>s.action==="updated");if(n.push(`${t.dryRun?"Will":"Successfully"} update ${i.length} ${Wt("model",i.length)} and left ${r.length} ${Wt("model",r.length)} unchanged${t.dryRun?"":` in ${ps(t.duration)}`}.`),e){if(i.length>0){n.push("",t.dryRun?"Models to update:":"Updated models:");for(const s of i)n.push(` ${s.name}`)}if(r.length>0){n.push("",t.dryRun?"Models unchanged:":"Unchanged models:");for(const s of r)n.push(` ${s.name}`)}}return n.join(`
|
|
223
|
-
`)}a(
|
|
224
|
-
`);if(n===void 0||r===void 0)return e===void 0?t:["---",af({noteId:e}).trim(),`---
|
|
223
|
+
`,n)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Xr(e),r=an(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Xr(e),r=an(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function aN(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new sN||null,prettyErrors:e}}a(aN,"parseOptions");function lN(t,e={}){const{lineCounter:n,prettyErrors:r}=aN(e),i=new oN(n?.addNewLine),s=new eN(e);let o=null;for(const l of s.compose(i.parse(t),!0,t.length))if(!o)o=l;else if(o.options.logLevel!=="silent"){o.errors.push(new Bn(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(o.errors.forEach(Vc(t,n)),o.warnings.forEach(Vc(t,n))),o}a(lN,"parseDocument");function af(t,e,n){let r;const i=lN(t,n);if(!i)return null;if(i.warnings.forEach(s=>xc(i.options.logLevel,s)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}a(af,"parse");function lf(t,e,n){let r=null;if(typeof e=="function"||Array.isArray(e)?r=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(t===void 0){const{keepUndefined:i}=n??e??{};if(!i)return}return new Hn(t,r,n).toString(n)}a(lf,"stringify");const uN={...ge};async function cN(t,e){const{obsidianVault:n}=Ne(uN,e??{}),r=is().use(X_).use(P1,[{anywhere:!1,marker:"-",type:"yaml"}]).use(a1,{automaticAlias:!0,obsidianVault:n}).use(o_,{singleTilde:!1}).use(S_).use(u_).use(k1);return r.run(r.parse(t))}a(cN,"getAstFromMarkdown");function fN(t,e){return ee(t,e,(n,r,i)=>{if(i&&r!==void 0)return i.children.splice(r,1),He}),t}a(fN,"deleteFirstNodeOfType");function hN(t){let e=1;return ee(t,"delete",(n,r,i)=>{if(i===void 0||r===void 0||!("children"in n))return Ce;const s=n.children.at(-1),o=n.children.length>1&&s?.type==="emphasis"?[V("text",`{{c${e}::`),...n.children.slice(0,-1),V("text","::"),...n.children.slice(-1),V("text","}}")]:[V("text",`{{c${e}::`),...n.children,V("text","}}")];i.children.splice(r,1,...o),e+=1}),t}a(hN,"replaceDeleteNodesWithClozeMarkup");function uf(t){let e,n=!1;if(ee(t,"thematicBreak",(s,o,l)=>o===void 0||l===void 0?Ce:(e=o,l.children[o+1]?.type==="thematicBreak"&&(n=!0),He)),e===void 0)return[t,void 0];const r={children:t.children.slice(0,e),type:"root"},i={children:t.children.slice(e+(n?2:1)),type:"root"};return[r,i]}a(uf,"splitTreeAtThematicBreak");function pN(t){let e;if(ee(t,r=>{if(r.type==="thematicBreak")return e=void 0,He;if(r.type==="delete")return e="Yanki - Cloze",He}),e!==void 0)return e;if(!mN(t)&&gN(t))return"Yanki - Basic (type in the answer)";let n;return ee(t,"thematicBreak",(r,i,s)=>{if(s===null||i===null)return Ce;e=n?.type==="thematicBreak"&&r.type==="thematicBreak"?"Yanki - Basic (and reversed card)":"Yanki - Basic",n=r}),e??"Yanki - Basic"}a(pN,"getYankiModelNameFromTree");function dN(t){let e;if(ee(t,"yaml",r=>"value"in r?(e=r.value,He):Ce),!e)return{};const n=af(e);if(!n)throw new Error("Could not parse frontmatter");return n}a(dN,"getFrontmatterFromTree");function mN(t){let e=!1;return ee(t,"thematicBreak",()=>(e=!0,He)),e}a(mN,"hasThematicBreak");function gN(t){let e,n=0;return ee(t,r=>{if(r.type==="text"&&r.value.trim()!=="")e=r,n++;else if(r.type==="emphasis"&&r.children.some(i=>i.type==="text"&&i.value.trim()!==""))return e=r,n++,Ti}),e!==void 0&&e.type==="emphasis"&&n>1}a(gN,"isLastVisibleNodeEmphasisWithOthers");function yN(t){let e,n,r;if(ee(t,"emphasis",(i,s,o)=>{if(o===void 0||s===void 0||i.type!=="emphasis")return Ce;e=i,n=o,r=s}),n&&e&&typeof r=="number")return n.children.splice(r,1),e}a(yN,"removeLastEmphasis");const cf={namespaceValidationAndSanitization:!0,...ge};async function ff(t,e){const{basePath:n,cwd:r,fetchAdapter:i=dn(),fileAdapter:s=await Ft(),namespace:o,namespaceValidationAndSanitization:l,obsidianVault:u,syncMediaAssets:c}=Ne(cf,e??{}),h=l?pt(o):o;let f=await cN(t,{obsidianVault:u});const p=pN(f),d=dN(f);f=fN(f,"yaml");let m="",g="";switch(p){case"Yanki - Basic":case"Yanki - Basic (and reversed card)":{const[b,w]=uf(f);m=await Vt(b,{basePath:n,cssClassNames:[Rt,`namespace-${h}`,"front",`model-${p}`],cwd:r,fetchAdapter:i,fileAdapter:s,namespace:h,syncMediaAssets:c,useEmptyPlaceholder:!0}),g=await Vt(w,{basePath:n,cssClassNames:[Rt,`namespace-${h}`,"back",`model-${p}`],cwd:r,fetchAdapter:i,fileAdapter:s,namespace:h,syncMediaAssets:c,useEmptyPlaceholder:!0});break}case"Yanki - Cloze":{f=hN(f);const[b,w]=uf(f);m=await Vt(b,{basePath:n,cssClassNames:[Rt,`namespace-${h}`,"front",`model-${p}`],cwd:r,fetchAdapter:i,fileAdapter:s,namespace:h,syncMediaAssets:c,useEmptyPlaceholder:!0}),g=await Vt(w,{basePath:n,cssClassNames:[Rt,`namespace-${h}`,"back",`model-${p}`],cwd:r,fetchAdapter:i,fileAdapter:s,namespace:h,syncMediaAssets:c,useEmptyPlaceholder:!1});break}case"Yanki - Basic (type in the answer)":{const b=yN(f);if(b===void 0)throw new Error("Could not find emphasis in Basic (type in the answer) note AST.");const w=f,k=V("root",V("paragraph",b.children));m=await Vt(w,{basePath:n,cssClassNames:[Rt,`namespace-${h}`,"front",`model-${p}`],cwd:r,fetchAdapter:i,fileAdapter:s,namespace:h,syncMediaAssets:c,useEmptyPlaceholder:!0}),g=await Vt(k,{basePath:n,cssClassNames:[Rt,`namespace-${h}`,"back",`model-${p}`],cwd:r,fetchAdapter:i,fileAdapter:s,namespace:h,syncMediaAssets:c,useEmptyPlaceholder:!1});break}}return{deckName:"",fields:{Back:g,Front:m,YankiNamespace:h},modelName:p,noteId:d.noteId??void 0,tags:d.tags??[]}}a(ff,"getNoteFromMarkdown");const bN={...ge};async function hf(t,e){const{basePath:n,fetchAdapter:r=dn(),fileAdapter:i=await Ft(),namespace:s,obsidianVault:o,syncMediaAssets:l}=Ne(bN,e??{}),u=pt(s);t.sort((f,p)=>f.localeCompare(p));const c=kN(t,{basePath:n}),h=[];for(const[f,p]of t.entries()){const d=await i.readFile(p),m=await ff(d,{basePath:n,cwd:W.dirname(p),fetchAdapter:r,fileAdapter:i,namespace:u,namespaceValidationAndSanitization:!1,obsidianVault:o,syncMediaAssets:l});m.deckName===""&&(m.deckName=c[f]),h.push({filePath:p,filePathOriginal:p,markdown:d,note:m})}return h}a(hf,"loadLocalNotes");const wN={...ge,mode:"common-root"};function kN(t,e){const{basePath:n,cwd:r,mode:i}=Ne(wN,e??{}),s=t.map(h=>W.dirname(Ao(h,{basePath:n,cwd:r})).split(W.sep)),o=s.reduce((h,f)=>h.filter((d,m)=>d===f[m])),l=s.some(h=>h.at(-1)===o.at(-1)),u=i==="common-parent"||l?1:0;return s.map(h=>h.slice(o.length-u).join("::"))}a(kN,"getDeckNamesFromFilePaths");const SN={...ge};async function pf(t,e){const{dryRun:n,fileAdapter:r=await Ft(),manageFilenames:i,maxFilenameLength:s}=Ne(SN,e??{});if(i!=="off"){const o=[];for(const u of t){const{filePath:c,note:h}=u;if(c===void 0)throw new Error("File path is undefined");const f=e1(h,i,s),p=W.join(W.dirname(c),`${f}${W.extname(c)}`),d=t1(p,o);u.filePath=d,o.push(d.toLowerCase())}for(const u of t){const{filePath:c}=u;if(c===void 0)throw new Error("File path is undefined");u.filePath=n1(c,o)}const l=new Map;for(const u of t){const{filePath:c,filePathOriginal:h}=u;if(h===void 0)throw new Error("Original file path is undefined.");if(c===void 0)throw new Error("File path is undefined.");if(c===h)continue;let f=c;t.some(({filePath:p,filePathOriginal:d})=>p!==c&&d?.toLowerCase()===c.toLowerCase())&&(f=r1(c),l.set(f,c)),n||await r.rename(h,f)}for(const[u,c]of l)n||await r.rename(u,c)}return t.sort((o,l)=>o.filePath.localeCompare(l.filePath)),t}a(pf,"renameNotes");const df={...ge};async function xN(t,e){const{basePath:n,dryRun:r,fetchAdapter:i=dn(),fileAdapter:s=await Ft(),manageFilenames:o,maxFilenameLength:l,namespace:u,obsidianVault:c,syncMediaAssets:h}=Ne(df,e??{}),f=pt(u),p=await hf(t,{basePath:n,fetchAdapter:i,fileAdapter:s,namespace:f,obsidianVault:c,syncMediaAssets:h}),d=await pf(p,{dryRun:r,fileAdapter:s,manageFilenames:o,maxFilenameLength:l});return{dryRun:r,notes:d}}a(xN,"renameFiles");const lo={css:Ff,...ge},vN={...ge};async function _N(t){const{ankiConnectOptions:e}=Ne(lo,t??{}),n=new pn(e);if(await An(n)==="ankiUnreachable")throw new Error("Anki is unreachable. Is Anki running?");const i=new Set;for(const s of Er){const o=await xb(n,s);i.add(o)}if(i.size===0)throw new Error("No CSS found in any Yanki model.");if(i.size>1)throw new Error("Expected all Yanki models to have identical CSS.");return[...i][0]}a(_N,"getStyle");async function CN(t){const e=performance.now(),{ankiConnectOptions:n,ankiWeb:r,css:i,dryRun:s}=Ne(lo,t??{}),o=new pn(n);if(await An(o)==="ankiUnreachable")throw new Error("Anki is unreachable. Is Anki running?");const u=[];for(const h of Er){const f=await Ql(o,h,i,s);u.push({action:f?"updated":"unchanged",name:h})}const c=u.some(h=>h.action!=="unchanged");return!s&&r&&(c||ii)&&await ps(o),{ankiWeb:r,dryRun:s,duration:performance.now()-e,models:u}}a(CN,"setStyle");function NN(t,e=!1){const n=[],r=t.models.filter(s=>s.action==="unchanged"),i=t.models.filter(s=>s.action==="updated");if(n.push(`${t.dryRun?"Will":"Successfully"} update ${i.length} ${Wt("model",i.length)} and left ${r.length} ${Wt("model",r.length)} unchanged${t.dryRun?"":` in ${ds(t.duration)}`}.`),e){if(i.length>0){n.push("",t.dryRun?"Models to update:":"Updated models:");for(const s of i)n.push(` ${s.name}`)}if(r.length>0){n.push("",t.dryRun?"Models unchanged:":"Unchanged models:");for(const s of r)n.push(` ${s.name}`)}}return n.join(`
|
|
224
|
+
`)}a(NN,"formatSetStyleResult");async function AN(t,e){const[n,r]=EN(t),i=t.split(/\r?\n/);if(n===void 0||r===void 0)return e===void 0?t:["---",lf({noteId:e}).trim(),`---
|
|
225
225
|
`,...i].join(`
|
|
226
226
|
`);const s=i.slice(n+1,r).join(`
|
|
227
|
-
`),o=await
|
|
228
|
-
`)}a(
|
|
229
|
-
`)
|
|
230
|
-
`)}a(ON,"formatSyncFilesResult");export{nu as a,jk as b,qk as c,tu as d,pf as e,zk as f,xN as g,ao as h,CN as i,vN as j,mf as k,Uk as l,ON as m,LN as n,uf as o,cf as p,Of as q,SN as r,_N as s,ge as t,Lf as u};
|
|
227
|
+
`),o=await af(s)??{};e===void 0?delete o.noteId:o.noteId=e;const l=lf(o,{lineWidth:0}).trim();return[...i.slice(0,n+1),l,...i.slice(r)].join(`
|
|
228
|
+
`)}a(AN,"setNoteIdInFrontmatter");function EN(t){const e=t.split(/\r?\n/);if(!e.join("").trim().startsWith("---"))return[void 0,void 0];const n=e.findIndex(i=>i.startsWith("---")),r=e.findIndex((i,s)=>s>n&&i.startsWith("---"));return n===-1||r===-1?[void 0,void 0]:[n,r]}a(EN,"getFrontmatterRange");const mf={...ge};async function TN(t,e){const n=performance.now(),{ankiConnectOptions:r,ankiWeb:i,dryRun:s,namespace:o}=Ne(mf,e??{}),l=pt(o),u=[],c=new pn(r);if(await An(c)==="ankiUnreachable")return{ankiWeb:i,deletedDecks:[],deletedMedia:[],dryRun:s,duration:performance.now()-n,namespace:l,synced:t.map(_=>({action:"ankiUnreachable",note:_}))};const f=await hs(c,l),p=f.filter(_=>!t.some(C=>C.noteId===_?.noteId));await Kl(c,p,s);for(const _ of p)u.push({action:"deleted",note:_});for(const _ of t)_.deckName===""&&(_.deckName=Mf);for(const _ of t){if(_.noteId===void 0)continue;const C=IN(t,_.noteId);if(C.length<=1)continue;const S=f.find(E=>E?.noteId===_.noteId),A=LN(C,S);for(const E of C)E!==A&&(E.noteId=void 0)}const d=t.map(_=>_.noteId).map(_=>_??-1),m=await Yl(c,d);for(const[_,C]of m.entries()){const S=t[_];if(C===void 0||S.fields.YankiNamespace!==C.fields.YankiNamespace){const A=await fs(c,{...S,noteId:void 0},s);u.push({action:"created",note:{...S,noteId:A}})}else if(S.modelName===C.modelName){const A=await bb(c,S,C,s);u.push({action:A?"updated":"unchanged",note:S})}else{if(C.noteId===void 0)throw new Error("Remote note ID is undefined");await yb(c,S,s),u.push({action:"updated",note:S})}}const g=[],y=[];for(const _ of u)_.action==="deleted"?y.push(_.note):g.push(_.note);const b=await Jl(c,g,f,s),w=await Zl(c,g,l,s),k=b.length>0||u.some(_=>_.action!=="unchanged");return!s&&i&&(k||ii)&&await ps(c),{ankiWeb:i,deletedDecks:b,deletedMedia:w,dryRun:s,duration:performance.now()-n,namespace:l,synced:u}}a(TN,"syncNotes");function IN(t,e){return t.filter(n=>n.noteId===void 0?!1:n.noteId===e)}a(IN,"findNotesWithDuplicateIds");function LN(t,e){return t.find(n=>n.fields.Front===e?.fields.Front&&n.fields.Back===e?.fields.Back)??t[0]}a(LN,"selectNoteToKeep");const gf={...ge,...mf};async function ON(t,e){const n=performance.now(),{ankiConnectOptions:r,ankiWeb:i,basePath:s,dryRun:o,fetchAdapter:l=dn(),fileAdapter:u=await Ft(),manageFilenames:c,maxFilenameLength:h,namespace:f,obsidianVault:p,syncMediaAssets:d}=Ne(gf,e??{}),m=pt(f),g=await hf(t,{basePath:s,fetchAdapter:l,fileAdapter:u,namespace:m,obsidianVault:p,syncMediaAssets:d}),y=await pf(g,{dryRun:o,fileAdapter:u,manageFilenames:c,maxFilenameLength:h}),b=y.map(E=>E.note),{deletedDecks:w,deletedMedia:k,synced:_}=await TN(b,{ankiConnectOptions:r,ankiWeb:i,dryRun:o,namespace:m}),C=_.filter(E=>E.action!=="deleted");for(const[E,P]of y.entries()){const N=C[E];if((P.note.noteId===void 0||P.note.noteId!==N.note.noteId)&&N.action!=="ankiUnreachable"){const R=await AN(P.markdown,N.note.noteId);await u.writeFile(P.filePath,R)}N.filePath=P.filePath,N.filePathOriginal=P.filePathOriginal}const A=[..._.filter(E=>E.action==="deleted").map(E=>({action:"deleted",filePath:void 0,filePathOriginal:void 0,note:E.note})),...C].sort((E,P)=>(E.filePath??"").localeCompare(P.filePath??""));return{ankiWeb:i,deletedDecks:w,deletedMedia:k,dryRun:o,duration:performance.now()-n,namespace:m,synced:A}}a(ON,"syncFiles");function PN(t,e=!1){const n=[],{synced:r}=t,i=r.reduce((u,c)=>(u[c.action]=(u[c.action]||0)+1,u),{}),s=r.filter(u=>u.action!=="deleted").length,o=r.filter(u=>u.filePath!==u.filePathOriginal).length,l=i.ankiUnreachable>0;if(n.push(`${t.dryRun?"Will sync":l?"Failed to sync":"Successfully synced"} ${s} ${Wt("note",s)} to Anki${t.dryRun?"":` in ${ds(t.duration)}`}.`),e){n.push("",t.dryRun?"Sync Plan Summary:":"Sync Summary:");for(const[u,c]of Object.entries(i))n.push(` ${ni(u)}: ${c}`);o>0&&n.push("",`Local notes renamed: ${o}`),t.deletedDecks.length>0&&n.push("",`Decks pruned: ${t.deletedDecks.length}`),t.deletedMedia.length>0&&n.push("",`Media assets deleted: ${t.deletedMedia.length}`),n.push("",t.dryRun?"Sync Plan Details:":"Sync Details:");for(const{action:u,filePath:c,note:h}of r)c===void 0?n.push(` Note ID ${h.noteId} ${ni(u)} (From Anki)`):n.push(` Note ID ${h.noteId} ${ni(u)} ${c}`)}return n.join(`
|
|
229
|
+
`)}a(PN,"formatSyncFilesResult");export{ru as a,Gk as b,zk as c,nu as d,df as e,Uk as f,vN as g,lo as h,NN as i,_N as j,gf as k,jk as l,PN as m,ON as n,cf as o,ff as p,Pf as q,xN as r,CN as s,ge as t,Of as u};
|