@arcforge/axon 2.0.54 → 2.0.55

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.
Files changed (2) hide show
  1. package/app.js +6 -6
  2. package/package.json +1 -1
package/app.js CHANGED
@@ -2410,7 +2410,7 @@ it("completes the example task", () => {
2410
2410
  expect(true).toBe(true)
2411
2411
  })
2412
2412
  `;var Dmn=Kn(()=>{zd();YD()});import{dirname as DCi,join as Hha,resolve as Jha}from"path";function xmn(e){function a(A){let o=Jha(A);if(!Lu.exists(Hha(o,"bench.config.ts")))throw Rr("BENCH_NOT_FOUND",{context:{path:o}});return Qmn({root:o,cloud:e.cloud,tests:e.tests})}return{open:a,discover(A){return Ilt({root:process.cwd()}).list(A)},find(A=process.cwd()){let o=Jha(A);while(!0){if(Lu.exists(Hha(o,"bench.config.ts")))return o;let c=DCi(o);if(c===o)return null;o=c}},async create(A){let o=await kmn({name:A.name,dir:A.dir??process.cwd()}),c=a(o);return await c.prepare(),c}}}var Oha=Kn(()=>{zd();YD();wmn();Dmn();gmn()});var $ha=Kn(()=>{Oha();wmn();Dmn()});import{createHash as xCi}from"crypto";import{existsSync as vCi}from"fs";import{mkdir as FCi,readFile as SCi,readdir as NCi,rm as zha,writeFile as MCi}from"fs/promises";import{basename as GCi,join as tba,resolve as Wha}from"path";function nba(e){async function a(o,c,p={}){if(!o)throw Error("clone requires a module identifier, for example: axon clone @axon/arxiv");let{name:d,version:h}=Vha(o),B=await e.cloud.registry.modules.resolve(d,h),E=Wha(c,p.dir??Zha(B.name));return await eba(await Xha(B.downloadUrl),E),await e.prepare(E),{...B,root:E}}async function A(o,c,p={}){if(!p.as)throw Error("fork requires --as <package-name>, for example: axon fork @axon/arxiv --as @you/arxiv");if(!o)throw Error("fork requires a module identifier, for example: axon fork @axon/arxiv --as @you/arxiv");let{name:d,version:h}=Vha(o),B=await e.cloud.registry.modules.resolve(d,h),E=Wha(c,p.dir??Zha(p.as));await eba(await Xha(B.downloadUrl),E);let k={...B,root:E},v=tba(k.root,"package.json"),F=JSON.parse(await SCi(v,"utf-8")),T=F.axon&&typeof F.axon==="object"&&!Array.isArray(F.axon)?F.axon:{};return F.name=p.as,F.version="0.1.0",F.axon={...T,forkedFrom:{name:k.name,version:k.version}},await MCi(v,JSON.stringify(F,null,2)+`
2413
- `),await e.prepare(E),{...k,name:p.as,version:"0.1.0"}}return{clone:a,fork:A}}function Zha(e){return GCi(e)}function Vha(e){let a=e.startsWith("@")?e.slice(1):e,A=a.indexOf("@");if(A===-1)return{name:e,version:void 0};return{name:`${e.startsWith("@")?"@":""}${a.slice(0,A)}`,version:a.slice(A+1)||void 0}}async function Xha(e){let a=await fetch(e);if(!a.ok)throw Error(`MODULE_DOWNLOAD_FAILED: ${a.status} ${a.statusText}`);return a.arrayBuffer()}async function eba(e,a){let A=!1;if(vCi(a)){if((await NCi(a)).length>0)throw Error(`CLONE_TARGET_EXISTS: ${a} is not empty`)}else await FCi(a,{recursive:!0}),A=!0;let o=tba(a,`.axon-clone-${xCi("sha256").update(new Uint8Array(e)).digest("hex")}.tar.gz`);try{await Bun.write(o,e);let c=await Bun.$`tar -xzf ${o} -C ${a}`.quiet().nothrow();if(c.exitCode!==0)throw Error(`MODULE_EXTRACT_FAILED: ${c.stderr.toString().trim()}`)}catch(c){if(A)await zha(a,{recursive:!0,force:!0});throw c}finally{await zha(o,{force:!0})}}var aba=()=>{};var N6e=gr((hrr,Aba)=>{var LCi=Number.MAX_SAFE_INTEGER||9007199254740991,TCi=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Aba.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:LCi,RELEASE_TYPES:TCi,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var klt=gr((brr,iba)=>{var qCi=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};iba.exports=qCi});var M6e=gr((kte,rba)=>{var{MAX_SAFE_COMPONENT_LENGTH:vmn,MAX_SAFE_BUILD_LENGTH:RCi,MAX_LENGTH:UCi}=N6e(),KCi=klt();kte=rba.exports={};var YCi=kte.re=[],PCi=kte.safeRe=[],sg=kte.src=[],jCi=kte.safeSrc=[],cg=kte.t={},HCi=0,Fmn="[a-zA-Z0-9-]",JCi=[["\\s",1],["\\d",UCi],[Fmn,RCi]],OCi=(e)=>{for(let[a,A]of JCi)e=e.split(`${a}*`).join(`${a}{0,${A}}`).split(`${a}+`).join(`${a}{1,${A}}`);return e},Vb=(e,a,A)=>{let o=OCi(a),c=HCi++;KCi(e,c,a),cg[e]=c,sg[c]=a,jCi[c]=o,YCi[c]=new RegExp(a,A?"g":void 0),PCi[c]=new RegExp(o,A?"g":void 0)};Vb("NUMERICIDENTIFIER","0|[1-9]\\d*");Vb("NUMERICIDENTIFIERLOOSE","\\d+");Vb("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Fmn}*`);Vb("MAINVERSION",`(${sg[cg.NUMERICIDENTIFIER]})\\.(${sg[cg.NUMERICIDENTIFIER]})\\.(${sg[cg.NUMERICIDENTIFIER]})`);Vb("MAINVERSIONLOOSE",`(${sg[cg.NUMERICIDENTIFIERLOOSE]})\\.(${sg[cg.NUMERICIDENTIFIERLOOSE]})\\.(${sg[cg.NUMERICIDENTIFIERLOOSE]})`);Vb("PRERELEASEIDENTIFIER",`(?:${sg[cg.NONNUMERICIDENTIFIER]}|${sg[cg.NUMERICIDENTIFIER]})`);Vb("PRERELEASEIDENTIFIERLOOSE",`(?:${sg[cg.NONNUMERICIDENTIFIER]}|${sg[cg.NUMERICIDENTIFIERLOOSE]})`);Vb("PRERELEASE",`(?:-(${sg[cg.PRERELEASEIDENTIFIER]}(?:\\.${sg[cg.PRERELEASEIDENTIFIER]})*))`);Vb("PRERELEASELOOSE",`(?:-?(${sg[cg.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${sg[cg.PRERELEASEIDENTIFIERLOOSE]})*))`);Vb("BUILDIDENTIFIER",`${Fmn}+`);Vb("BUILD",`(?:\\+(${sg[cg.BUILDIDENTIFIER]}(?:\\.${sg[cg.BUILDIDENTIFIER]})*))`);Vb("FULLPLAIN",`v?${sg[cg.MAINVERSION]}${sg[cg.PRERELEASE]}?${sg[cg.BUILD]}?`);Vb("FULL",`^${sg[cg.FULLPLAIN]}$`);Vb("LOOSEPLAIN",`[v=\\s]*${sg[cg.MAINVERSIONLOOSE]}${sg[cg.PRERELEASELOOSE]}?${sg[cg.BUILD]}?`);Vb("LOOSE",`^${sg[cg.LOOSEPLAIN]}$`);Vb("GTLT","((?:<|>)?=?)");Vb("XRANGEIDENTIFIERLOOSE",`${sg[cg.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Vb("XRANGEIDENTIFIER",`${sg[cg.NUMERICIDENTIFIER]}|x|X|\\*`);Vb("XRANGEPLAIN",`[v=\\s]*(${sg[cg.XRANGEIDENTIFIER]})(?:\\.(${sg[cg.XRANGEIDENTIFIER]})(?:\\.(${sg[cg.XRANGEIDENTIFIER]})(?:${sg[cg.PRERELEASE]})?${sg[cg.BUILD]}?)?)?`);Vb("XRANGEPLAINLOOSE",`[v=\\s]*(${sg[cg.XRANGEIDENTIFIERLOOSE]})(?:\\.(${sg[cg.XRANGEIDENTIFIERLOOSE]})(?:\\.(${sg[cg.XRANGEIDENTIFIERLOOSE]})(?:${sg[cg.PRERELEASELOOSE]})?${sg[cg.BUILD]}?)?)?`);Vb("XRANGE",`^${sg[cg.GTLT]}\\s*${sg[cg.XRANGEPLAIN]}$`);Vb("XRANGELOOSE",`^${sg[cg.GTLT]}\\s*${sg[cg.XRANGEPLAINLOOSE]}$`);Vb("COERCEPLAIN",`(^|[^\\d])(\\d{1,${vmn}})(?:\\.(\\d{1,${vmn}}))?(?:\\.(\\d{1,${vmn}}))?`);Vb("COERCE",`${sg[cg.COERCEPLAIN]}(?:$|[^\\d])`);Vb("COERCEFULL",sg[cg.COERCEPLAIN]+`(?:${sg[cg.PRERELEASE]})?(?:${sg[cg.BUILD]})?(?:$|[^\\d])`);Vb("COERCERTL",sg[cg.COERCE],!0);Vb("COERCERTLFULL",sg[cg.COERCEFULL],!0);Vb("LONETILDE","(?:~>?)");Vb("TILDETRIM",`(\\s*)${sg[cg.LONETILDE]}\\s+`,!0);kte.tildeTrimReplace="$1~";Vb("TILDE",`^${sg[cg.LONETILDE]}${sg[cg.XRANGEPLAIN]}$`);Vb("TILDELOOSE",`^${sg[cg.LONETILDE]}${sg[cg.XRANGEPLAINLOOSE]}$`);Vb("LONECARET","(?:\\^)");Vb("CARETTRIM",`(\\s*)${sg[cg.LONECARET]}\\s+`,!0);kte.caretTrimReplace="$1^";Vb("CARET",`^${sg[cg.LONECARET]}${sg[cg.XRANGEPLAIN]}$`);Vb("CARETLOOSE",`^${sg[cg.LONECARET]}${sg[cg.XRANGEPLAINLOOSE]}$`);Vb("COMPARATORLOOSE",`^${sg[cg.GTLT]}\\s*(${sg[cg.LOOSEPLAIN]})$|^$`);Vb("COMPARATOR",`^${sg[cg.GTLT]}\\s*(${sg[cg.FULLPLAIN]})$|^$`);Vb("COMPARATORTRIM",`(\\s*)${sg[cg.GTLT]}\\s*(${sg[cg.LOOSEPLAIN]}|${sg[cg.XRANGEPLAIN]})`,!0);kte.comparatorTrimReplace="$1$2$3";Vb("HYPHENRANGE",`^\\s*(${sg[cg.XRANGEPLAIN]})\\s+-\\s+(${sg[cg.XRANGEPLAIN]})\\s*$`);Vb("HYPHENRANGELOOSE",`^\\s*(${sg[cg.XRANGEPLAINLOOSE]})\\s+-\\s+(${sg[cg.XRANGEPLAINLOOSE]})\\s*$`);Vb("STAR","(<|>)?=?\\s*\\*");Vb("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Vb("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var DEt=gr((Crr,oba)=>{var $Ci=Object.freeze({loose:!0}),zCi=Object.freeze({}),WCi=(e)=>{if(!e)return zCi;if(typeof e!=="object")return $Ci;return e};oba.exports=WCi});var Smn=gr((Brr,uba)=>{var sba=/^[0-9]+$/,cba=(e,a)=>{if(typeof e==="number"&&typeof a==="number")return e===a?0:e<a?-1:1;let A=sba.test(e),o=sba.test(a);if(A&&o)e=+e,a=+a;return e===a?0:A&&!o?-1:o&&!A?1:e<a?-1:1},ZCi=(e,a)=>cba(a,e);uba.exports={compareIdentifiers:cba,rcompareIdentifiers:ZCi}});var GM=gr((Irr,pba)=>{var xEt=klt(),{MAX_LENGTH:lba,MAX_SAFE_INTEGER:vEt}=N6e(),{safeRe:FEt,t:SEt}=M6e(),VCi=DEt(),{compareIdentifiers:Nmn}=Smn(),XCi=(e,a)=>{let A=a.split(".");if(A.length>e.length)return!1;for(let o=0;o<A.length;o++)if(Nmn(e[o],A[o])!==0)return!1;return!0};class oee{constructor(e,a){if(a=VCi(a),e instanceof oee)if(e.loose===!!a.loose&&e.includePrerelease===!!a.includePrerelease)return e;else e=e.version;else if(typeof e!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>lba)throw TypeError(`version is longer than ${lba} characters`);xEt("SemVer",e,a),this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease;let A=e.trim().match(a.loose?FEt[SEt.LOOSE]:FEt[SEt.FULL]);if(!A)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+A[1],this.minor=+A[2],this.patch=+A[3],this.major>vEt||this.major<0)throw TypeError("Invalid major version");if(this.minor>vEt||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>vEt||this.patch<0)throw TypeError("Invalid patch version");if(!A[4])this.prerelease=[];else this.prerelease=A[4].split(".").map((o)=>{if(/^[0-9]+$/.test(o)){let c=+o;if(c>=0&&c<vEt)return c}return o});this.build=A[5]?A[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(e){if(xEt("SemVer.compare",this.version,this.options,e),!(e instanceof oee)){if(typeof e==="string"&&e===this.version)return 0;e=new oee(e,this.options)}if(e.version===this.version)return 0;return this.compareMain(e)||this.comparePre(e)}compareMain(e){if(!(e instanceof oee))e=new oee(e,this.options);if(this.major<e.major)return-1;if(this.major>e.major)return 1;if(this.minor<e.minor)return-1;if(this.minor>e.minor)return 1;if(this.patch<e.patch)return-1;if(this.patch>e.patch)return 1;return 0}comparePre(e){if(!(e instanceof oee))e=new oee(e,this.options);if(this.prerelease.length&&!e.prerelease.length)return-1;else if(!this.prerelease.length&&e.prerelease.length)return 1;else if(!this.prerelease.length&&!e.prerelease.length)return 0;let a=0;do{let A=this.prerelease[a],o=e.prerelease[a];if(xEt("prerelease compare",a,A,o),A===void 0&&o===void 0)return 0;else if(o===void 0)return 1;else if(A===void 0)return-1;else if(A===o)continue;else return Nmn(A,o)}while(++a)}compareBuild(e){if(!(e instanceof oee))e=new oee(e,this.options);let a=0;do{let A=this.build[a],o=e.build[a];if(xEt("build compare",a,A,o),A===void 0&&o===void 0)return 0;else if(o===void 0)return 1;else if(A===void 0)return-1;else if(A===o)continue;else return Nmn(A,o)}while(++a)}inc(e,a,A){if(e.startsWith("pre")){if(!a&&A===!1)throw Error("invalid increment argument: identifier is empty");if(a){let o=`-${a}`.match(this.options.loose?FEt[SEt.PRERELEASELOOSE]:FEt[SEt.PRERELEASE]);if(!o||o[1]!==a)throw Error(`invalid identifier: ${a}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",a,A);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",a,A);break;case"prepatch":this.prerelease.length=0,this.inc("patch",a,A),this.inc("pre",a,A);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",a,A);this.inc("pre",a,A);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let o=Number(A)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let c=this.prerelease.length;while(--c>=0)if(typeof this.prerelease[c]==="number")this.prerelease[c]++,c=-2;if(c===-1){if(a===this.prerelease.join(".")&&A===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(a){let c=[a,o];if(A===!1)c=[a];if(XCi(this.prerelease,a)){let p=this.prerelease[a.split(".").length];if(isNaN(p))this.prerelease=c}else this.prerelease=c}break}default:throw Error(`invalid increment argument: ${e}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}pba.exports=oee});var Nhe=gr((yrr,dba)=>{var gba=GM(),eBi=(e,a,A=!1)=>{if(e instanceof gba)return e;try{return new gba(e,a)}catch(o){if(!A)return null;throw o}};dba.exports=eBi});var fba=gr((Err,mba)=>{var tBi=Nhe(),nBi=(e,a)=>{let A=tBi(e,a);return A?A.version:null};mba.exports=nBi});var bba=gr((_rr,hba)=>{var aBi=Nhe(),ABi=(e,a)=>{let A=aBi(e.trim().replace(/^[=v]+/,""),a);return A?A.version:null};hba.exports=ABi});var Iba=gr((Qrr,Bba)=>{var Cba=GM(),iBi=(e,a,A,o,c)=>{if(typeof A==="string")c=o,o=A,A=void 0;try{return new Cba(e instanceof Cba?e.version:e,A).inc(a,o,c).version}catch(p){return null}};Bba.exports=iBi});var _ba=gr((wrr,Eba)=>{var yba=Nhe(),rBi=(e,a)=>{let A=yba(e,null,!0),o=yba(a,null,!0),c=A.compare(o);if(c===0)return null;let p=c>0,d=p?A:o,h=p?o:A,B=!!d.prerelease.length;if(!!h.prerelease.length&&!B){if(!h.patch&&!h.minor)return"major";if(h.compareMain(d)===0){if(h.minor&&!h.patch)return"minor";return"patch"}}let k=B?"pre":"";if(A.major!==o.major)return k+"major";if(A.minor!==o.minor)return k+"minor";if(A.patch!==o.patch)return k+"patch";return"prerelease"};Eba.exports=rBi});var wba=gr((krr,Qba)=>{var oBi=GM(),sBi=(e,a)=>new oBi(e,a).major;Qba.exports=sBi});var Dba=gr((Drr,kba)=>{var cBi=GM(),uBi=(e,a)=>new cBi(e,a).minor;kba.exports=uBi});var vba=gr((xrr,xba)=>{var lBi=GM(),pBi=(e,a)=>new lBi(e,a).patch;xba.exports=pBi});var Sba=gr((vrr,Fba)=>{var gBi=Nhe(),dBi=(e,a)=>{let A=gBi(e,a);return A&&A.prerelease.length?A.prerelease:null};Fba.exports=dBi});var JH=gr((Frr,Mba)=>{var Nba=GM(),mBi=(e,a,A)=>new Nba(e,A).compare(new Nba(a,A));Mba.exports=mBi});var Lba=gr((Srr,Gba)=>{var fBi=JH(),hBi=(e,a,A)=>fBi(a,e,A);Gba.exports=hBi});var qba=gr((Nrr,Tba)=>{var bBi=JH(),CBi=(e,a)=>bBi(e,a,!0);Tba.exports=CBi});var NEt=gr((Mrr,Uba)=>{var Rba=GM(),BBi=(e,a,A)=>{let o=new Rba(e,A),c=new Rba(a,A);return o.compare(c)||o.compareBuild(c)};Uba.exports=BBi});var Yba=gr((Grr,Kba)=>{var IBi=NEt(),yBi=(e,a)=>e.sort((A,o)=>IBi(A,o,a));Kba.exports=yBi});var jba=gr((Lrr,Pba)=>{var EBi=NEt(),_Bi=(e,a)=>e.sort((A,o)=>EBi(o,A,a));Pba.exports=_Bi});var Dlt=gr((Trr,Hba)=>{var QBi=JH(),wBi=(e,a,A)=>QBi(e,a,A)>0;Hba.exports=wBi});var MEt=gr((qrr,Jba)=>{var kBi=JH(),DBi=(e,a,A)=>kBi(e,a,A)<0;Jba.exports=DBi});var Mmn=gr((Rrr,Oba)=>{var xBi=JH(),vBi=(e,a,A)=>xBi(e,a,A)===0;Oba.exports=vBi});var Gmn=gr((Urr,$ba)=>{var FBi=JH(),SBi=(e,a,A)=>FBi(e,a,A)!==0;$ba.exports=SBi});var GEt=gr((Krr,zba)=>{var NBi=JH(),MBi=(e,a,A)=>NBi(e,a,A)>=0;zba.exports=MBi});var LEt=gr((Yrr,Wba)=>{var GBi=JH(),LBi=(e,a,A)=>GBi(e,a,A)<=0;Wba.exports=LBi});var Lmn=gr((Prr,Zba)=>{var TBi=Mmn(),qBi=Gmn(),RBi=Dlt(),UBi=GEt(),KBi=MEt(),YBi=LEt(),PBi=(e,a,A,o)=>{switch(a){case"===":if(typeof e==="object")e=e.version;if(typeof A==="object")A=A.version;return e===A;case"!==":if(typeof e==="object")e=e.version;if(typeof A==="object")A=A.version;return e!==A;case"":case"=":case"==":return TBi(e,A,o);case"!=":return qBi(e,A,o);case">":return RBi(e,A,o);case">=":return UBi(e,A,o);case"<":return KBi(e,A,o);case"<=":return YBi(e,A,o);default:throw TypeError(`Invalid operator: ${a}`)}};Zba.exports=PBi});var Xba=gr((jrr,Vba)=>{var jBi=GM(),HBi=Nhe(),{safeRe:TEt,t:qEt}=M6e(),JBi=(e,a)=>{if(e instanceof jBi)return e;if(typeof e==="number")e=String(e);if(typeof e!=="string")return null;a=a||{};let A=null;if(!a.rtl)A=e.match(a.includePrerelease?TEt[qEt.COERCEFULL]:TEt[qEt.COERCE]);else{let B=a.includePrerelease?TEt[qEt.COERCERTLFULL]:TEt[qEt.COERCERTL],E;while((E=B.exec(e))&&(!A||A.index+A[0].length!==e.length)){if(!A||E.index+E[0].length!==A.index+A[0].length)A=E;B.lastIndex=E.index+E[1].length+E[2].length}B.lastIndex=-1}if(A===null)return null;let o=A[2],c=A[3]||"0",p=A[4]||"0",d=a.includePrerelease&&A[5]?`-${A[5]}`:"",h=a.includePrerelease&&A[6]?`+${A[6]}`:"";return HBi(`${o}.${c}.${p}${d}${h}`,a)};Vba.exports=JBi});var tCa=gr((Hrr,eCa)=>{var OBi=Nhe(),$Bi=N6e(),zBi=GM(),WBi=(e,a,A)=>{if(!$Bi.RELEASE_TYPES.includes(a))return null;let o=ZBi(e,A);return o&&VBi(o,a)},ZBi=(e,a)=>{let A=e instanceof zBi?e.version:e;return OBi(A,a)},VBi=(e,a)=>{if(XBi(a))return e.version;switch(e.prerelease=[],a){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0;break}return e.format()},XBi=(e)=>{return e.startsWith("pre")};eCa.exports=WBi});var ACa=gr((Jrr,aCa)=>{class nCa{constructor(){this.max=1000,this.map=new Map}get(e){let a=this.map.get(e);if(a===void 0)return;else return this.map.delete(e),this.map.set(e,a),a}delete(e){return this.map.delete(e)}set(e,a){if(!this.delete(e)&&a!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(e,a)}return this}}aCa.exports=nCa});var OH=gr((Orr,sCa)=>{var eIi=/\s+/g;class xlt{constructor(e,a){if(a=nIi(a),e instanceof xlt)if(e.loose===!!a.loose&&e.includePrerelease===!!a.includePrerelease)return e;else return new xlt(e.raw,a);if(e instanceof Tmn)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease,this.raw=e.trim().replace(eIi," "),this.set=this.raw.split("||").map((A)=>this.parseRange(A.trim())).filter((A)=>A.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let A=this.set[0];if(this.set=this.set.filter((o)=>!rCa(o[0])),this.set.length===0)this.set=[A];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&lIi(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){if(e>0)this.formatted+="||";let a=this.set[e];for(let A=0;A<a.length;A++){if(A>0)this.formatted+=" ";this.formatted+=a[A].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(uIi,"");let A=((this.options.includePrerelease&&sIi)|(this.options.loose&&cIi))+":"+e,o=iCa.get(A);if(o)return o;let c=this.options.loose,p=c?$q[LM.HYPHENRANGELOOSE]:$q[LM.HYPHENRANGE];e=e.replace(p,yIi(this.options.includePrerelease)),jD("hyphen replace",e),e=e.replace($q[LM.COMPARATORTRIM],iIi),jD("comparator trim",e),e=e.replace($q[LM.TILDETRIM],rIi),jD("tilde trim",e),e=e.replace($q[LM.CARETTRIM],oIi),jD("caret trim",e);let d=e.split(" ").map((k)=>pIi(k,this.options)).join(" ").split(/\s+/).map((k)=>IIi(k,this.options));if(c)d=d.filter((k)=>{return jD("loose invalid filter",k,this.options),!!k.match($q[LM.COMPARATORLOOSE])});jD("range list",d);let h=new Map,B=d.map((k)=>new Tmn(k,this.options));for(let k of B){if(rCa(k))return[k];h.set(k.value,k)}if(h.size>1&&h.has(""))h.delete("");let E=[...h.values()];return iCa.set(A,E),E}intersects(e,a){if(!(e instanceof xlt))throw TypeError("a Range is required");return this.set.some((A)=>{return oCa(A,a)&&e.set.some((o)=>{return oCa(o,a)&&A.every((c)=>{return o.every((p)=>{return c.intersects(p,a)})})})})}test(e){if(!e)return!1;if(typeof e==="string")try{e=new aIi(e,this.options)}catch(a){return!1}for(let a=0;a<this.set.length;a++)if(EIi(this.set[a],e,this.options))return!0;return!1}}sCa.exports=xlt;var tIi=ACa(),iCa=new tIi,nIi=DEt(),Tmn=vlt(),jD=klt(),aIi=GM(),{safeRe:$q,src:AIi,t:LM,comparatorTrimReplace:iIi,tildeTrimReplace:rIi,caretTrimReplace:oIi}=M6e(),{FLAG_INCLUDE_PRERELEASE:sIi,FLAG_LOOSE:cIi}=N6e(),uIi=new RegExp(AIi[LM.BUILD],"g"),rCa=(e)=>e.value==="<0.0.0-0",lIi=(e)=>e.value==="",oCa=(e,a)=>{let A=!0,o=e.slice(),c=o.pop();while(A&&o.length)A=o.every((p)=>{return c.intersects(p,a)}),c=o.pop();return A},pIi=(e,a)=>{return e=e.replace($q[LM.BUILD],""),jD("comp",e,a),e=fIi(e,a),jD("caret",e),e=dIi(e,a),jD("tildes",e),e=bIi(e,a),jD("xrange",e),e=BIi(e,a),jD("stars",e),e},J8=(e)=>!e||e.toLowerCase()==="x"||e==="*",gIi=(e,a,A)=>J8(e)&&!J8(a)||J8(a)&&A&&!J8(A),dIi=(e,a)=>{return e.trim().split(/\s+/).map((A)=>mIi(A,a)).join(" ")},mIi=(e,a)=>{let A=a.loose?$q[LM.TILDELOOSE]:$q[LM.TILDE],o=a.includePrerelease?"-0":"";return e.replace(A,(c,p,d,h,B)=>{jD("tilde",e,c,p,d,h,B);let E;if(J8(p))E="";else if(J8(d))E=`>=${p}.0.0${o} <${+p+1}.0.0-0`;else if(J8(h))E=`>=${p}.${d}.0${o} <${p}.${+d+1}.0-0`;else if(B)jD("replaceTilde pr",B),E=`>=${p}.${d}.${h}-${B} <${p}.${+d+1}.0-0`;else E=`>=${p}.${d}.${h} <${p}.${+d+1}.0-0`;return jD("tilde return",E),E})},fIi=(e,a)=>{return e.trim().split(/\s+/).map((A)=>hIi(A,a)).join(" ")},hIi=(e,a)=>{jD("caret",e,a);let A=a.loose?$q[LM.CARETLOOSE]:$q[LM.CARET],o=a.includePrerelease?"-0":"";return e.replace(A,(c,p,d,h,B)=>{jD("caret",e,c,p,d,h,B);let E;if(J8(p))E="";else if(J8(d))E=`>=${p}.0.0${o} <${+p+1}.0.0-0`;else if(J8(h))if(p==="0")E=`>=${p}.${d}.0${o} <${p}.${+d+1}.0-0`;else E=`>=${p}.${d}.0${o} <${+p+1}.0.0-0`;else if(B)if(jD("replaceCaret pr",B),p==="0")if(d==="0")E=`>=${p}.${d}.${h}-${B} <${p}.${d}.${+h+1}-0`;else E=`>=${p}.${d}.${h}-${B} <${p}.${+d+1}.0-0`;else E=`>=${p}.${d}.${h}-${B} <${+p+1}.0.0-0`;else if(jD("no pr"),p==="0")if(d==="0")E=`>=${p}.${d}.${h} <${p}.${d}.${+h+1}-0`;else E=`>=${p}.${d}.${h} <${p}.${+d+1}.0-0`;else E=`>=${p}.${d}.${h} <${+p+1}.0.0-0`;return jD("caret return",E),E})},bIi=(e,a)=>{return jD("replaceXRanges",e,a),e.split(/\s+/).map((A)=>CIi(A,a)).join(" ")},CIi=(e,a)=>{e=e.trim();let A=a.loose?$q[LM.XRANGELOOSE]:$q[LM.XRANGE];return e.replace(A,(o,c,p,d,h,B)=>{if(jD("xRange",e,o,c,p,d,h,B),gIi(p,d,h))return e;let E=J8(p),k=E||J8(d),v=k||J8(h),F=v;if(c==="="&&F)c="";if(B=a.includePrerelease?"-0":"",E)if(c===">"||c==="<")o="<0.0.0-0";else o="*";else if(c&&F){if(k)d=0;if(h=0,c===">")if(c=">=",k)p=+p+1,d=0,h=0;else d=+d+1,h=0;else if(c==="<=")if(c="<",k)p=+p+1;else d=+d+1;if(c==="<")B="-0";o=`${c+p}.${d}.${h}${B}`}else if(k)o=`>=${p}.0.0${B} <${+p+1}.0.0-0`;else if(v)o=`>=${p}.${d}.0${B} <${p}.${+d+1}.0-0`;return jD("xRange return",o),o})},BIi=(e,a)=>{return jD("replaceStars",e,a),e.trim().replace($q[LM.STAR],"")},IIi=(e,a)=>{return jD("replaceGTE0",e,a),e.trim().replace($q[a.includePrerelease?LM.GTE0PRE:LM.GTE0],"")},yIi=(e)=>(a,A,o,c,p,d,h,B,E,k,v,F)=>{if(J8(o))A="";else if(J8(c))A=`>=${o}.0.0${e?"-0":""}`;else if(J8(p))A=`>=${o}.${c}.0${e?"-0":""}`;else if(d)A=`>=${A}`;else A=`>=${A}${e?"-0":""}`;if(J8(E))B="";else if(J8(k))B=`<${+E+1}.0.0-0`;else if(J8(v))B=`<${E}.${+k+1}.0-0`;else if(F)B=`<=${E}.${k}.${v}-${F}`;else if(e)B=`<${E}.${k}.${+v+1}-0`;else B=`<=${B}`;return`${A} ${B}`.trim()},EIi=(e,a,A)=>{for(let o=0;o<e.length;o++)if(!e[o].test(a))return!1;if(a.prerelease.length&&!A.includePrerelease){for(let o=0;o<e.length;o++){if(jD(e[o].semver),e[o].semver===Tmn.ANY)continue;if(e[o].semver.prerelease.length>0){let c=e[o].semver;if(c.major===a.major&&c.minor===a.minor&&c.patch===a.patch)return!0}}return!1}return!0}});var vlt=gr(($rr,dCa)=>{var Flt=Symbol("SemVer ANY");class REt{static get ANY(){return Flt}constructor(e,a){if(a=cCa(a),e instanceof REt)if(e.loose===!!a.loose)return e;else e=e.value;if(e=e.trim().split(/\s+/).join(" "),Rmn("comparator",e,a),this.options=a,this.loose=!!a.loose,this.parse(e),this.semver===Flt)this.value="";else this.value=this.operator+this.semver.version;Rmn("comp",this)}parse(e){let a=this.options.loose?uCa[lCa.COMPARATORLOOSE]:uCa[lCa.COMPARATOR],A=e.match(a);if(!A)throw TypeError(`Invalid comparator: ${e}`);if(this.operator=A[1]!==void 0?A[1]:"",this.operator==="=")this.operator="";if(!A[2])this.semver=Flt;else this.semver=new pCa(A[2],this.options.loose)}toString(){return this.value}test(e){if(Rmn("Comparator.test",e,this.options.loose),this.semver===Flt||e===Flt)return!0;if(typeof e==="string")try{e=new pCa(e,this.options)}catch(a){return!1}return qmn(e,this.operator,this.semver,this.options)}intersects(e,a){if(!(e instanceof REt))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new gCa(e.value,a).test(this.value)}else if(e.operator===""){if(e.value==="")return!0;return new gCa(this.value,a).test(e.semver)}if(a=cCa(a),a.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0"))return!1;if(!a.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&e.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&e.operator.startsWith("<"))return!0;if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("="))return!0;if(qmn(this.semver,"<",e.semver,a)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))return!0;if(qmn(this.semver,">",e.semver,a)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))return!0;return!1}}dCa.exports=REt;var cCa=DEt(),{safeRe:uCa,t:lCa}=M6e(),qmn=Lmn(),Rmn=klt(),pCa=GM(),gCa=OH()});var Slt=gr((zrr,mCa)=>{var _Ii=OH(),QIi=(e,a,A)=>{try{a=new _Ii(a,A)}catch(o){return!1}return a.test(e)};mCa.exports=QIi});var hCa=gr((Wrr,fCa)=>{var wIi=OH(),kIi=(e,a)=>new wIi(e,a).set.map((A)=>A.map((o)=>o.value).join(" ").trim().split(" "));fCa.exports=kIi});var CCa=gr((Zrr,bCa)=>{var DIi=GM(),xIi=OH(),vIi=(e,a,A)=>{let o=null,c=null,p=null;try{p=new xIi(a,A)}catch(d){return null}return e.forEach((d)=>{if(p.test(d)){if(!o||c.compare(d)===-1)o=d,c=new DIi(o,A)}}),o};bCa.exports=vIi});var ICa=gr((Vrr,BCa)=>{var FIi=GM(),SIi=OH(),NIi=(e,a,A)=>{let o=null,c=null,p=null;try{p=new SIi(a,A)}catch(d){return null}return e.forEach((d)=>{if(p.test(d)){if(!o||c.compare(d)===1)o=d,c=new FIi(o,A)}}),o};BCa.exports=NIi});var _Ca=gr((Xrr,ECa)=>{var Umn=GM(),MIi=OH(),yCa=Dlt(),GIi=(e,a)=>{e=new MIi(e,a);let A=new Umn("0.0.0");if(e.test(A))return A;if(A=new Umn("0.0.0-0"),e.test(A))return A;A=null;for(let o=0;o<e.set.length;++o){let c=e.set[o],p=null;if(c.forEach((d)=>{let h=new Umn(d.semver.version);switch(d.operator){case">":if(h.prerelease.length===0)h.patch++;else h.prerelease.push(0);h.raw=h.format();case"":case">=":if(!p||yCa(h,p))p=h;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${d.operator}`)}}),p&&(!A||yCa(A,p)))A=p}if(A&&e.test(A))return A;return null};ECa.exports=GIi});var wCa=gr((eor,QCa)=>{var LIi=OH(),TIi=(e,a)=>{try{return new LIi(e,a).range||"*"}catch(A){return null}};QCa.exports=TIi});var UEt=gr((tor,vCa)=>{var qIi=GM(),xCa=vlt(),{ANY:RIi}=xCa,UIi=OH(),KIi=Slt(),kCa=Dlt(),DCa=MEt(),YIi=LEt(),PIi=GEt(),jIi=(e,a,A,o)=>{e=new qIi(e,o),a=new UIi(a,o);let c,p,d,h,B;switch(A){case">":c=kCa,p=YIi,d=DCa,h=">",B=">=";break;case"<":c=DCa,p=PIi,d=kCa,h="<",B="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(KIi(e,a,o))return!1;for(let E=0;E<a.set.length;++E){let k=a.set[E],v=null,F=null;if(k.forEach((T)=>{if(T.semver===RIi)T=new xCa(">=0.0.0");if(v=v||T,F=F||T,c(T.semver,v.semver,o))v=T;else if(d(T.semver,F.semver,o))F=T}),v.operator===h||v.operator===B)return!1;if((!F.operator||F.operator===h)&&p(e,F.semver))return!1;else if(F.operator===B&&d(e,F.semver))return!1}return!0};vCa.exports=jIi});var SCa=gr((nor,FCa)=>{var HIi=UEt(),JIi=(e,a,A)=>HIi(e,a,">",A);FCa.exports=JIi});var MCa=gr((aor,NCa)=>{var OIi=UEt(),$Ii=(e,a,A)=>OIi(e,a,"<",A);NCa.exports=$Ii});var TCa=gr((Aor,LCa)=>{var GCa=OH(),zIi=(e,a,A)=>{return e=new GCa(e,A),a=new GCa(a,A),e.intersects(a,A)};LCa.exports=zIi});var RCa=gr((ior,qCa)=>{var WIi=Slt(),ZIi=JH();qCa.exports=(e,a,A)=>{let o=[],c=null,p=null,d=e.sort((k,v)=>ZIi(k,v,A));for(let k of d)if(WIi(k,a,A)){if(p=k,!c)c=k}else{if(p)o.push([c,p]);p=null,c=null}if(c)o.push([c,null]);let h=[];for(let[k,v]of o)if(k===v)h.push(k);else if(!v&&k===d[0])h.push("*");else if(!v)h.push(`>=${k}`);else if(k===d[0])h.push(`<=${v}`);else h.push(`${k} - ${v}`);let B=h.join(" || "),E=typeof a.raw==="string"?a.raw:String(a);return B.length<E.length?B:a}});var HCa=gr((ror,jCa)=>{var UCa=OH(),Pmn=vlt(),{ANY:Kmn}=Pmn,Ymn=Slt(),jmn=JH(),VIi=(e,a,A={})=>{if(e===a)return!0;e=new UCa(e,A),a=new UCa(a,A);let o=!1;e:for(let c of e.set){for(let p of a.set){let d=eyi(c,p,A);if(o=o||d!==null,d)continue e}if(o)return!1}return!0},XIi=[new Pmn(">=0.0.0-0")],KCa=[new Pmn(">=0.0.0")],eyi=(e,a,A)=>{if(e===a)return!0;if(e.length===1&&e[0].semver===Kmn)if(a.length===1&&a[0].semver===Kmn)return!0;else if(A.includePrerelease)e=XIi;else e=KCa;if(a.length===1&&a[0].semver===Kmn)if(A.includePrerelease)return!0;else a=KCa;let o=new Set,c,p;for(let T of e)if(T.operator===">"||T.operator===">=")c=YCa(c,T,A);else if(T.operator==="<"||T.operator==="<=")p=PCa(p,T,A);else o.add(T.semver);if(o.size>1)return null;let d;if(c&&p){if(d=jmn(c.semver,p.semver,A),d>0)return null;else if(d===0&&(c.operator!==">="||p.operator!=="<="))return null}for(let T of o){if(c&&!Ymn(T,String(c),A))return null;if(p&&!Ymn(T,String(p),A))return null;for(let K of a)if(!Ymn(T,String(K),A))return!1;return!0}let h,B,E,k,v=p&&!A.includePrerelease&&p.semver.prerelease.length?p.semver:!1,F=c&&!A.includePrerelease&&c.semver.prerelease.length?c.semver:!1;if(v&&v.prerelease.length===1&&p.operator==="<"&&v.prerelease[0]===0)v=!1;for(let T of a){if(k=k||T.operator===">"||T.operator===">=",E=E||T.operator==="<"||T.operator==="<=",c){if(F){if(T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===F.major&&T.semver.minor===F.minor&&T.semver.patch===F.patch)F=!1}if(T.operator===">"||T.operator===">="){if(h=YCa(c,T,A),h===T&&h!==c)return!1}else if(c.operator===">="&&!T.test(c.semver))return!1}if(p){if(v){if(T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===v.major&&T.semver.minor===v.minor&&T.semver.patch===v.patch)v=!1}if(T.operator==="<"||T.operator==="<="){if(B=PCa(p,T,A),B===T&&B!==p)return!1}else if(p.operator==="<="&&!T.test(p.semver))return!1}if(!T.operator&&(p||c)&&d!==0)return!1}if(c&&E&&!p&&d!==0)return!1;if(p&&k&&!c&&d!==0)return!1;if(F||v)return!1;return!0},YCa=(e,a,A)=>{if(!e)return a;let o=jmn(e.semver,a.semver,A);return o>0?e:o<0?a:a.operator===">"&&e.operator===">="?a:e},PCa=(e,a,A)=>{if(!e)return a;let o=jmn(e.semver,a.semver,A);return o<0?e:o>0?a:a.operator==="<"&&e.operator==="<="?a:e};jCa.exports=VIi});var zCa=gr((oor,$Ca)=>{var Hmn=M6e(),JCa=N6e(),tyi=GM(),OCa=Smn(),nyi=Nhe(),ayi=fba(),Ayi=bba(),iyi=Iba(),ryi=_ba(),oyi=wba(),syi=Dba(),cyi=vba(),uyi=Sba(),lyi=JH(),pyi=Lba(),gyi=qba(),dyi=NEt(),myi=Yba(),fyi=jba(),hyi=Dlt(),byi=MEt(),Cyi=Mmn(),Byi=Gmn(),Iyi=GEt(),yyi=LEt(),Eyi=Lmn(),_yi=Xba(),Qyi=tCa(),wyi=vlt(),kyi=OH(),Dyi=Slt(),xyi=hCa(),vyi=CCa(),Fyi=ICa(),Syi=_Ca(),Nyi=wCa(),Myi=UEt(),Gyi=SCa(),Lyi=MCa(),Tyi=TCa(),qyi=RCa(),Ryi=HCa();$Ca.exports={parse:nyi,valid:ayi,clean:Ayi,inc:iyi,diff:ryi,major:oyi,minor:syi,patch:cyi,prerelease:uyi,compare:lyi,rcompare:pyi,compareLoose:gyi,compareBuild:dyi,sort:myi,rsort:fyi,gt:hyi,lt:byi,eq:Cyi,neq:Byi,gte:Iyi,lte:yyi,cmp:Eyi,coerce:_yi,truncate:Qyi,Comparator:wyi,Range:kyi,satisfies:Dyi,toComparators:xyi,maxSatisfying:vyi,minSatisfying:Fyi,minVersion:Syi,validRange:Nyi,outside:Myi,gtr:Gyi,ltr:Lyi,intersects:Tyi,simplifyRange:qyi,subset:Ryi,SemVer:tyi,re:Hmn.re,src:Hmn.src,tokens:Hmn.t,SEMVER_SPEC_VERSION:JCa.SEMVER_SPEC_VERSION,RELEASE_TYPES:JCa.RELEASE_TYPES,compareIdentifiers:OCa.compareIdentifiers,rcompareIdentifiers:OCa.rcompareIdentifiers}});var KEt;var Jmn=Kn(()=>{KEt={name:"@arcforge/axon",version:"2.0.54",description:"coding agent cli",module:"index.ts",type:"module",scripts:{dev:"vterm dev","dev:local":"vterm dev --dotenv .env.local",tail:"vterm tail",prepare:"vterm prepare",build:"vterm build",deploy:"vterm deploy","deploy:patch":"npm version patch && npm publish","deploy:minor":"npm version minor && npm publish","deploy:major":"npm version major && npm publish",test:"bun test","test:watch":"bun test --watch"},dependencies:{"@arcforge/vterm":"workspace:*","@arclabs/cloud":"workspace:*","@arclabs/repo":"workspace:*","@arclabs/tools":"workspace:*","@axon/capsule":"workspace:*","@axon/core":"workspace:*","@axon/engines":"workspace:*","@axon/err":"workspace:*","@axon/theme":"workspace:*","@axon/types":"workspace:*","@axon/vstr":"workspace:*",arcline:"workspace:*","@vue/compiler-sfc":"3.5.39",chalk:"^5.6.2","fft.js":"^4.0.4","markdown-it":"^14.3.0",open:"^11.0.0",semver:"^7.7.4"},devDependencies:{"@types/bun":"latest","@types/markdown-it":"^14.1.2","@vue/typescript-plugin":"^3.2.5",postgres:"^3.4.5"},peerDependencies:{typescript:"^5"},bin:{axon:"./bin/axon"}}});var YEt=75,WCa="AXON_UPDATE_REQUEST";import{existsSync as Kyi,realpathSync as Yyi}from"fs";import{mkdir as Pyi,rename as jyi,writeFile as Hyi}from"fs/promises";import{dirname as ZCa,join as Jyi}from"path";function Omn(e){let a=e.currentVersion??KEt.version,A=process.argv[1]??import.meta.path,o=e.helperPath??Oyi(A),c=e.bunPath??process.execPath,p=e.axonPath??Bun.which("axon")??"axon",d=e.requestPath??process.env[WCa];function h(){return Kyi(o)&&Boolean(d)}async function B(k,v={}){if(!Nlt.valid(a))throw Error(`UPDATE_CURRENT_VERSION_INVALID: ${a}`);let F=await e.cloud.cloud.releases.axon(k,v);if(F.package!=="@arcforge/axon"||F.channel!=="latest"||!Nlt.valid(F.version))throw Error("UPDATE_RELEASE_INVALID");return{status:Nlt.gt(F.version,a)?"available":"current",current:a,latest:F.version}}async function E(k){let v=await B(k,{fresh:!0});if(v.status==="current")return v;if(!h())throw Error("UPDATE_UNAVAILABLE_IN_DEVELOPMENT");e.store.update.state.set({status:"pending",from:v.current,to:v.latest,updatedAt:new Date().toISOString()});try{let F={from:v.current,to:v.latest,bun:c,axon:p,state:e.store.update.statePath};if(!d)throw Error("UPDATE_SUPERVISOR_UNAVAILABLE");await Pyi(ZCa(d),{recursive:!0});let T=`${d}.${process.pid}.tmp`;await Hyi(T,JSON.stringify(F,null,2)+`
2413
+ `),await e.prepare(E),{...k,name:p.as,version:"0.1.0"}}return{clone:a,fork:A}}function Zha(e){return GCi(e)}function Vha(e){let a=e.startsWith("@")?e.slice(1):e,A=a.indexOf("@");if(A===-1)return{name:e,version:void 0};return{name:`${e.startsWith("@")?"@":""}${a.slice(0,A)}`,version:a.slice(A+1)||void 0}}async function Xha(e){let a=await fetch(e);if(!a.ok)throw Error(`MODULE_DOWNLOAD_FAILED: ${a.status} ${a.statusText}`);return a.arrayBuffer()}async function eba(e,a){let A=!1;if(vCi(a)){if((await NCi(a)).length>0)throw Error(`CLONE_TARGET_EXISTS: ${a} is not empty`)}else await FCi(a,{recursive:!0}),A=!0;let o=tba(a,`.axon-clone-${xCi("sha256").update(new Uint8Array(e)).digest("hex")}.tar.gz`);try{await Bun.write(o,e);let c=await Bun.$`tar -xzf ${o} -C ${a}`.quiet().nothrow();if(c.exitCode!==0)throw Error(`MODULE_EXTRACT_FAILED: ${c.stderr.toString().trim()}`)}catch(c){if(A)await zha(a,{recursive:!0,force:!0});throw c}finally{await zha(o,{force:!0})}}var aba=()=>{};var N6e=gr((hrr,Aba)=>{var LCi=Number.MAX_SAFE_INTEGER||9007199254740991,TCi=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Aba.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:LCi,RELEASE_TYPES:TCi,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var klt=gr((brr,iba)=>{var qCi=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};iba.exports=qCi});var M6e=gr((kte,rba)=>{var{MAX_SAFE_COMPONENT_LENGTH:vmn,MAX_SAFE_BUILD_LENGTH:RCi,MAX_LENGTH:UCi}=N6e(),KCi=klt();kte=rba.exports={};var YCi=kte.re=[],PCi=kte.safeRe=[],sg=kte.src=[],jCi=kte.safeSrc=[],cg=kte.t={},HCi=0,Fmn="[a-zA-Z0-9-]",JCi=[["\\s",1],["\\d",UCi],[Fmn,RCi]],OCi=(e)=>{for(let[a,A]of JCi)e=e.split(`${a}*`).join(`${a}{0,${A}}`).split(`${a}+`).join(`${a}{1,${A}}`);return e},Vb=(e,a,A)=>{let o=OCi(a),c=HCi++;KCi(e,c,a),cg[e]=c,sg[c]=a,jCi[c]=o,YCi[c]=new RegExp(a,A?"g":void 0),PCi[c]=new RegExp(o,A?"g":void 0)};Vb("NUMERICIDENTIFIER","0|[1-9]\\d*");Vb("NUMERICIDENTIFIERLOOSE","\\d+");Vb("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Fmn}*`);Vb("MAINVERSION",`(${sg[cg.NUMERICIDENTIFIER]})\\.(${sg[cg.NUMERICIDENTIFIER]})\\.(${sg[cg.NUMERICIDENTIFIER]})`);Vb("MAINVERSIONLOOSE",`(${sg[cg.NUMERICIDENTIFIERLOOSE]})\\.(${sg[cg.NUMERICIDENTIFIERLOOSE]})\\.(${sg[cg.NUMERICIDENTIFIERLOOSE]})`);Vb("PRERELEASEIDENTIFIER",`(?:${sg[cg.NONNUMERICIDENTIFIER]}|${sg[cg.NUMERICIDENTIFIER]})`);Vb("PRERELEASEIDENTIFIERLOOSE",`(?:${sg[cg.NONNUMERICIDENTIFIER]}|${sg[cg.NUMERICIDENTIFIERLOOSE]})`);Vb("PRERELEASE",`(?:-(${sg[cg.PRERELEASEIDENTIFIER]}(?:\\.${sg[cg.PRERELEASEIDENTIFIER]})*))`);Vb("PRERELEASELOOSE",`(?:-?(${sg[cg.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${sg[cg.PRERELEASEIDENTIFIERLOOSE]})*))`);Vb("BUILDIDENTIFIER",`${Fmn}+`);Vb("BUILD",`(?:\\+(${sg[cg.BUILDIDENTIFIER]}(?:\\.${sg[cg.BUILDIDENTIFIER]})*))`);Vb("FULLPLAIN",`v?${sg[cg.MAINVERSION]}${sg[cg.PRERELEASE]}?${sg[cg.BUILD]}?`);Vb("FULL",`^${sg[cg.FULLPLAIN]}$`);Vb("LOOSEPLAIN",`[v=\\s]*${sg[cg.MAINVERSIONLOOSE]}${sg[cg.PRERELEASELOOSE]}?${sg[cg.BUILD]}?`);Vb("LOOSE",`^${sg[cg.LOOSEPLAIN]}$`);Vb("GTLT","((?:<|>)?=?)");Vb("XRANGEIDENTIFIERLOOSE",`${sg[cg.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Vb("XRANGEIDENTIFIER",`${sg[cg.NUMERICIDENTIFIER]}|x|X|\\*`);Vb("XRANGEPLAIN",`[v=\\s]*(${sg[cg.XRANGEIDENTIFIER]})(?:\\.(${sg[cg.XRANGEIDENTIFIER]})(?:\\.(${sg[cg.XRANGEIDENTIFIER]})(?:${sg[cg.PRERELEASE]})?${sg[cg.BUILD]}?)?)?`);Vb("XRANGEPLAINLOOSE",`[v=\\s]*(${sg[cg.XRANGEIDENTIFIERLOOSE]})(?:\\.(${sg[cg.XRANGEIDENTIFIERLOOSE]})(?:\\.(${sg[cg.XRANGEIDENTIFIERLOOSE]})(?:${sg[cg.PRERELEASELOOSE]})?${sg[cg.BUILD]}?)?)?`);Vb("XRANGE",`^${sg[cg.GTLT]}\\s*${sg[cg.XRANGEPLAIN]}$`);Vb("XRANGELOOSE",`^${sg[cg.GTLT]}\\s*${sg[cg.XRANGEPLAINLOOSE]}$`);Vb("COERCEPLAIN",`(^|[^\\d])(\\d{1,${vmn}})(?:\\.(\\d{1,${vmn}}))?(?:\\.(\\d{1,${vmn}}))?`);Vb("COERCE",`${sg[cg.COERCEPLAIN]}(?:$|[^\\d])`);Vb("COERCEFULL",sg[cg.COERCEPLAIN]+`(?:${sg[cg.PRERELEASE]})?(?:${sg[cg.BUILD]})?(?:$|[^\\d])`);Vb("COERCERTL",sg[cg.COERCE],!0);Vb("COERCERTLFULL",sg[cg.COERCEFULL],!0);Vb("LONETILDE","(?:~>?)");Vb("TILDETRIM",`(\\s*)${sg[cg.LONETILDE]}\\s+`,!0);kte.tildeTrimReplace="$1~";Vb("TILDE",`^${sg[cg.LONETILDE]}${sg[cg.XRANGEPLAIN]}$`);Vb("TILDELOOSE",`^${sg[cg.LONETILDE]}${sg[cg.XRANGEPLAINLOOSE]}$`);Vb("LONECARET","(?:\\^)");Vb("CARETTRIM",`(\\s*)${sg[cg.LONECARET]}\\s+`,!0);kte.caretTrimReplace="$1^";Vb("CARET",`^${sg[cg.LONECARET]}${sg[cg.XRANGEPLAIN]}$`);Vb("CARETLOOSE",`^${sg[cg.LONECARET]}${sg[cg.XRANGEPLAINLOOSE]}$`);Vb("COMPARATORLOOSE",`^${sg[cg.GTLT]}\\s*(${sg[cg.LOOSEPLAIN]})$|^$`);Vb("COMPARATOR",`^${sg[cg.GTLT]}\\s*(${sg[cg.FULLPLAIN]})$|^$`);Vb("COMPARATORTRIM",`(\\s*)${sg[cg.GTLT]}\\s*(${sg[cg.LOOSEPLAIN]}|${sg[cg.XRANGEPLAIN]})`,!0);kte.comparatorTrimReplace="$1$2$3";Vb("HYPHENRANGE",`^\\s*(${sg[cg.XRANGEPLAIN]})\\s+-\\s+(${sg[cg.XRANGEPLAIN]})\\s*$`);Vb("HYPHENRANGELOOSE",`^\\s*(${sg[cg.XRANGEPLAINLOOSE]})\\s+-\\s+(${sg[cg.XRANGEPLAINLOOSE]})\\s*$`);Vb("STAR","(<|>)?=?\\s*\\*");Vb("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Vb("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var DEt=gr((Crr,oba)=>{var $Ci=Object.freeze({loose:!0}),zCi=Object.freeze({}),WCi=(e)=>{if(!e)return zCi;if(typeof e!=="object")return $Ci;return e};oba.exports=WCi});var Smn=gr((Brr,uba)=>{var sba=/^[0-9]+$/,cba=(e,a)=>{if(typeof e==="number"&&typeof a==="number")return e===a?0:e<a?-1:1;let A=sba.test(e),o=sba.test(a);if(A&&o)e=+e,a=+a;return e===a?0:A&&!o?-1:o&&!A?1:e<a?-1:1},ZCi=(e,a)=>cba(a,e);uba.exports={compareIdentifiers:cba,rcompareIdentifiers:ZCi}});var GM=gr((Irr,pba)=>{var xEt=klt(),{MAX_LENGTH:lba,MAX_SAFE_INTEGER:vEt}=N6e(),{safeRe:FEt,t:SEt}=M6e(),VCi=DEt(),{compareIdentifiers:Nmn}=Smn(),XCi=(e,a)=>{let A=a.split(".");if(A.length>e.length)return!1;for(let o=0;o<A.length;o++)if(Nmn(e[o],A[o])!==0)return!1;return!0};class oee{constructor(e,a){if(a=VCi(a),e instanceof oee)if(e.loose===!!a.loose&&e.includePrerelease===!!a.includePrerelease)return e;else e=e.version;else if(typeof e!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>lba)throw TypeError(`version is longer than ${lba} characters`);xEt("SemVer",e,a),this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease;let A=e.trim().match(a.loose?FEt[SEt.LOOSE]:FEt[SEt.FULL]);if(!A)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+A[1],this.minor=+A[2],this.patch=+A[3],this.major>vEt||this.major<0)throw TypeError("Invalid major version");if(this.minor>vEt||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>vEt||this.patch<0)throw TypeError("Invalid patch version");if(!A[4])this.prerelease=[];else this.prerelease=A[4].split(".").map((o)=>{if(/^[0-9]+$/.test(o)){let c=+o;if(c>=0&&c<vEt)return c}return o});this.build=A[5]?A[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(e){if(xEt("SemVer.compare",this.version,this.options,e),!(e instanceof oee)){if(typeof e==="string"&&e===this.version)return 0;e=new oee(e,this.options)}if(e.version===this.version)return 0;return this.compareMain(e)||this.comparePre(e)}compareMain(e){if(!(e instanceof oee))e=new oee(e,this.options);if(this.major<e.major)return-1;if(this.major>e.major)return 1;if(this.minor<e.minor)return-1;if(this.minor>e.minor)return 1;if(this.patch<e.patch)return-1;if(this.patch>e.patch)return 1;return 0}comparePre(e){if(!(e instanceof oee))e=new oee(e,this.options);if(this.prerelease.length&&!e.prerelease.length)return-1;else if(!this.prerelease.length&&e.prerelease.length)return 1;else if(!this.prerelease.length&&!e.prerelease.length)return 0;let a=0;do{let A=this.prerelease[a],o=e.prerelease[a];if(xEt("prerelease compare",a,A,o),A===void 0&&o===void 0)return 0;else if(o===void 0)return 1;else if(A===void 0)return-1;else if(A===o)continue;else return Nmn(A,o)}while(++a)}compareBuild(e){if(!(e instanceof oee))e=new oee(e,this.options);let a=0;do{let A=this.build[a],o=e.build[a];if(xEt("build compare",a,A,o),A===void 0&&o===void 0)return 0;else if(o===void 0)return 1;else if(A===void 0)return-1;else if(A===o)continue;else return Nmn(A,o)}while(++a)}inc(e,a,A){if(e.startsWith("pre")){if(!a&&A===!1)throw Error("invalid increment argument: identifier is empty");if(a){let o=`-${a}`.match(this.options.loose?FEt[SEt.PRERELEASELOOSE]:FEt[SEt.PRERELEASE]);if(!o||o[1]!==a)throw Error(`invalid identifier: ${a}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",a,A);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",a,A);break;case"prepatch":this.prerelease.length=0,this.inc("patch",a,A),this.inc("pre",a,A);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",a,A);this.inc("pre",a,A);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let o=Number(A)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let c=this.prerelease.length;while(--c>=0)if(typeof this.prerelease[c]==="number")this.prerelease[c]++,c=-2;if(c===-1){if(a===this.prerelease.join(".")&&A===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(a){let c=[a,o];if(A===!1)c=[a];if(XCi(this.prerelease,a)){let p=this.prerelease[a.split(".").length];if(isNaN(p))this.prerelease=c}else this.prerelease=c}break}default:throw Error(`invalid increment argument: ${e}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}pba.exports=oee});var Nhe=gr((yrr,dba)=>{var gba=GM(),eBi=(e,a,A=!1)=>{if(e instanceof gba)return e;try{return new gba(e,a)}catch(o){if(!A)return null;throw o}};dba.exports=eBi});var fba=gr((Err,mba)=>{var tBi=Nhe(),nBi=(e,a)=>{let A=tBi(e,a);return A?A.version:null};mba.exports=nBi});var bba=gr((_rr,hba)=>{var aBi=Nhe(),ABi=(e,a)=>{let A=aBi(e.trim().replace(/^[=v]+/,""),a);return A?A.version:null};hba.exports=ABi});var Iba=gr((Qrr,Bba)=>{var Cba=GM(),iBi=(e,a,A,o,c)=>{if(typeof A==="string")c=o,o=A,A=void 0;try{return new Cba(e instanceof Cba?e.version:e,A).inc(a,o,c).version}catch(p){return null}};Bba.exports=iBi});var _ba=gr((wrr,Eba)=>{var yba=Nhe(),rBi=(e,a)=>{let A=yba(e,null,!0),o=yba(a,null,!0),c=A.compare(o);if(c===0)return null;let p=c>0,d=p?A:o,h=p?o:A,B=!!d.prerelease.length;if(!!h.prerelease.length&&!B){if(!h.patch&&!h.minor)return"major";if(h.compareMain(d)===0){if(h.minor&&!h.patch)return"minor";return"patch"}}let k=B?"pre":"";if(A.major!==o.major)return k+"major";if(A.minor!==o.minor)return k+"minor";if(A.patch!==o.patch)return k+"patch";return"prerelease"};Eba.exports=rBi});var wba=gr((krr,Qba)=>{var oBi=GM(),sBi=(e,a)=>new oBi(e,a).major;Qba.exports=sBi});var Dba=gr((Drr,kba)=>{var cBi=GM(),uBi=(e,a)=>new cBi(e,a).minor;kba.exports=uBi});var vba=gr((xrr,xba)=>{var lBi=GM(),pBi=(e,a)=>new lBi(e,a).patch;xba.exports=pBi});var Sba=gr((vrr,Fba)=>{var gBi=Nhe(),dBi=(e,a)=>{let A=gBi(e,a);return A&&A.prerelease.length?A.prerelease:null};Fba.exports=dBi});var JH=gr((Frr,Mba)=>{var Nba=GM(),mBi=(e,a,A)=>new Nba(e,A).compare(new Nba(a,A));Mba.exports=mBi});var Lba=gr((Srr,Gba)=>{var fBi=JH(),hBi=(e,a,A)=>fBi(a,e,A);Gba.exports=hBi});var qba=gr((Nrr,Tba)=>{var bBi=JH(),CBi=(e,a)=>bBi(e,a,!0);Tba.exports=CBi});var NEt=gr((Mrr,Uba)=>{var Rba=GM(),BBi=(e,a,A)=>{let o=new Rba(e,A),c=new Rba(a,A);return o.compare(c)||o.compareBuild(c)};Uba.exports=BBi});var Yba=gr((Grr,Kba)=>{var IBi=NEt(),yBi=(e,a)=>e.sort((A,o)=>IBi(A,o,a));Kba.exports=yBi});var jba=gr((Lrr,Pba)=>{var EBi=NEt(),_Bi=(e,a)=>e.sort((A,o)=>EBi(o,A,a));Pba.exports=_Bi});var Dlt=gr((Trr,Hba)=>{var QBi=JH(),wBi=(e,a,A)=>QBi(e,a,A)>0;Hba.exports=wBi});var MEt=gr((qrr,Jba)=>{var kBi=JH(),DBi=(e,a,A)=>kBi(e,a,A)<0;Jba.exports=DBi});var Mmn=gr((Rrr,Oba)=>{var xBi=JH(),vBi=(e,a,A)=>xBi(e,a,A)===0;Oba.exports=vBi});var Gmn=gr((Urr,$ba)=>{var FBi=JH(),SBi=(e,a,A)=>FBi(e,a,A)!==0;$ba.exports=SBi});var GEt=gr((Krr,zba)=>{var NBi=JH(),MBi=(e,a,A)=>NBi(e,a,A)>=0;zba.exports=MBi});var LEt=gr((Yrr,Wba)=>{var GBi=JH(),LBi=(e,a,A)=>GBi(e,a,A)<=0;Wba.exports=LBi});var Lmn=gr((Prr,Zba)=>{var TBi=Mmn(),qBi=Gmn(),RBi=Dlt(),UBi=GEt(),KBi=MEt(),YBi=LEt(),PBi=(e,a,A,o)=>{switch(a){case"===":if(typeof e==="object")e=e.version;if(typeof A==="object")A=A.version;return e===A;case"!==":if(typeof e==="object")e=e.version;if(typeof A==="object")A=A.version;return e!==A;case"":case"=":case"==":return TBi(e,A,o);case"!=":return qBi(e,A,o);case">":return RBi(e,A,o);case">=":return UBi(e,A,o);case"<":return KBi(e,A,o);case"<=":return YBi(e,A,o);default:throw TypeError(`Invalid operator: ${a}`)}};Zba.exports=PBi});var Xba=gr((jrr,Vba)=>{var jBi=GM(),HBi=Nhe(),{safeRe:TEt,t:qEt}=M6e(),JBi=(e,a)=>{if(e instanceof jBi)return e;if(typeof e==="number")e=String(e);if(typeof e!=="string")return null;a=a||{};let A=null;if(!a.rtl)A=e.match(a.includePrerelease?TEt[qEt.COERCEFULL]:TEt[qEt.COERCE]);else{let B=a.includePrerelease?TEt[qEt.COERCERTLFULL]:TEt[qEt.COERCERTL],E;while((E=B.exec(e))&&(!A||A.index+A[0].length!==e.length)){if(!A||E.index+E[0].length!==A.index+A[0].length)A=E;B.lastIndex=E.index+E[1].length+E[2].length}B.lastIndex=-1}if(A===null)return null;let o=A[2],c=A[3]||"0",p=A[4]||"0",d=a.includePrerelease&&A[5]?`-${A[5]}`:"",h=a.includePrerelease&&A[6]?`+${A[6]}`:"";return HBi(`${o}.${c}.${p}${d}${h}`,a)};Vba.exports=JBi});var tCa=gr((Hrr,eCa)=>{var OBi=Nhe(),$Bi=N6e(),zBi=GM(),WBi=(e,a,A)=>{if(!$Bi.RELEASE_TYPES.includes(a))return null;let o=ZBi(e,A);return o&&VBi(o,a)},ZBi=(e,a)=>{let A=e instanceof zBi?e.version:e;return OBi(A,a)},VBi=(e,a)=>{if(XBi(a))return e.version;switch(e.prerelease=[],a){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0;break}return e.format()},XBi=(e)=>{return e.startsWith("pre")};eCa.exports=WBi});var ACa=gr((Jrr,aCa)=>{class nCa{constructor(){this.max=1000,this.map=new Map}get(e){let a=this.map.get(e);if(a===void 0)return;else return this.map.delete(e),this.map.set(e,a),a}delete(e){return this.map.delete(e)}set(e,a){if(!this.delete(e)&&a!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(e,a)}return this}}aCa.exports=nCa});var OH=gr((Orr,sCa)=>{var eIi=/\s+/g;class xlt{constructor(e,a){if(a=nIi(a),e instanceof xlt)if(e.loose===!!a.loose&&e.includePrerelease===!!a.includePrerelease)return e;else return new xlt(e.raw,a);if(e instanceof Tmn)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease,this.raw=e.trim().replace(eIi," "),this.set=this.raw.split("||").map((A)=>this.parseRange(A.trim())).filter((A)=>A.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let A=this.set[0];if(this.set=this.set.filter((o)=>!rCa(o[0])),this.set.length===0)this.set=[A];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&lIi(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){if(e>0)this.formatted+="||";let a=this.set[e];for(let A=0;A<a.length;A++){if(A>0)this.formatted+=" ";this.formatted+=a[A].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(uIi,"");let A=((this.options.includePrerelease&&sIi)|(this.options.loose&&cIi))+":"+e,o=iCa.get(A);if(o)return o;let c=this.options.loose,p=c?$q[LM.HYPHENRANGELOOSE]:$q[LM.HYPHENRANGE];e=e.replace(p,yIi(this.options.includePrerelease)),jD("hyphen replace",e),e=e.replace($q[LM.COMPARATORTRIM],iIi),jD("comparator trim",e),e=e.replace($q[LM.TILDETRIM],rIi),jD("tilde trim",e),e=e.replace($q[LM.CARETTRIM],oIi),jD("caret trim",e);let d=e.split(" ").map((k)=>pIi(k,this.options)).join(" ").split(/\s+/).map((k)=>IIi(k,this.options));if(c)d=d.filter((k)=>{return jD("loose invalid filter",k,this.options),!!k.match($q[LM.COMPARATORLOOSE])});jD("range list",d);let h=new Map,B=d.map((k)=>new Tmn(k,this.options));for(let k of B){if(rCa(k))return[k];h.set(k.value,k)}if(h.size>1&&h.has(""))h.delete("");let E=[...h.values()];return iCa.set(A,E),E}intersects(e,a){if(!(e instanceof xlt))throw TypeError("a Range is required");return this.set.some((A)=>{return oCa(A,a)&&e.set.some((o)=>{return oCa(o,a)&&A.every((c)=>{return o.every((p)=>{return c.intersects(p,a)})})})})}test(e){if(!e)return!1;if(typeof e==="string")try{e=new aIi(e,this.options)}catch(a){return!1}for(let a=0;a<this.set.length;a++)if(EIi(this.set[a],e,this.options))return!0;return!1}}sCa.exports=xlt;var tIi=ACa(),iCa=new tIi,nIi=DEt(),Tmn=vlt(),jD=klt(),aIi=GM(),{safeRe:$q,src:AIi,t:LM,comparatorTrimReplace:iIi,tildeTrimReplace:rIi,caretTrimReplace:oIi}=M6e(),{FLAG_INCLUDE_PRERELEASE:sIi,FLAG_LOOSE:cIi}=N6e(),uIi=new RegExp(AIi[LM.BUILD],"g"),rCa=(e)=>e.value==="<0.0.0-0",lIi=(e)=>e.value==="",oCa=(e,a)=>{let A=!0,o=e.slice(),c=o.pop();while(A&&o.length)A=o.every((p)=>{return c.intersects(p,a)}),c=o.pop();return A},pIi=(e,a)=>{return e=e.replace($q[LM.BUILD],""),jD("comp",e,a),e=fIi(e,a),jD("caret",e),e=dIi(e,a),jD("tildes",e),e=bIi(e,a),jD("xrange",e),e=BIi(e,a),jD("stars",e),e},J8=(e)=>!e||e.toLowerCase()==="x"||e==="*",gIi=(e,a,A)=>J8(e)&&!J8(a)||J8(a)&&A&&!J8(A),dIi=(e,a)=>{return e.trim().split(/\s+/).map((A)=>mIi(A,a)).join(" ")},mIi=(e,a)=>{let A=a.loose?$q[LM.TILDELOOSE]:$q[LM.TILDE],o=a.includePrerelease?"-0":"";return e.replace(A,(c,p,d,h,B)=>{jD("tilde",e,c,p,d,h,B);let E;if(J8(p))E="";else if(J8(d))E=`>=${p}.0.0${o} <${+p+1}.0.0-0`;else if(J8(h))E=`>=${p}.${d}.0${o} <${p}.${+d+1}.0-0`;else if(B)jD("replaceTilde pr",B),E=`>=${p}.${d}.${h}-${B} <${p}.${+d+1}.0-0`;else E=`>=${p}.${d}.${h} <${p}.${+d+1}.0-0`;return jD("tilde return",E),E})},fIi=(e,a)=>{return e.trim().split(/\s+/).map((A)=>hIi(A,a)).join(" ")},hIi=(e,a)=>{jD("caret",e,a);let A=a.loose?$q[LM.CARETLOOSE]:$q[LM.CARET],o=a.includePrerelease?"-0":"";return e.replace(A,(c,p,d,h,B)=>{jD("caret",e,c,p,d,h,B);let E;if(J8(p))E="";else if(J8(d))E=`>=${p}.0.0${o} <${+p+1}.0.0-0`;else if(J8(h))if(p==="0")E=`>=${p}.${d}.0${o} <${p}.${+d+1}.0-0`;else E=`>=${p}.${d}.0${o} <${+p+1}.0.0-0`;else if(B)if(jD("replaceCaret pr",B),p==="0")if(d==="0")E=`>=${p}.${d}.${h}-${B} <${p}.${d}.${+h+1}-0`;else E=`>=${p}.${d}.${h}-${B} <${p}.${+d+1}.0-0`;else E=`>=${p}.${d}.${h}-${B} <${+p+1}.0.0-0`;else if(jD("no pr"),p==="0")if(d==="0")E=`>=${p}.${d}.${h} <${p}.${d}.${+h+1}-0`;else E=`>=${p}.${d}.${h} <${p}.${+d+1}.0-0`;else E=`>=${p}.${d}.${h} <${+p+1}.0.0-0`;return jD("caret return",E),E})},bIi=(e,a)=>{return jD("replaceXRanges",e,a),e.split(/\s+/).map((A)=>CIi(A,a)).join(" ")},CIi=(e,a)=>{e=e.trim();let A=a.loose?$q[LM.XRANGELOOSE]:$q[LM.XRANGE];return e.replace(A,(o,c,p,d,h,B)=>{if(jD("xRange",e,o,c,p,d,h,B),gIi(p,d,h))return e;let E=J8(p),k=E||J8(d),v=k||J8(h),F=v;if(c==="="&&F)c="";if(B=a.includePrerelease?"-0":"",E)if(c===">"||c==="<")o="<0.0.0-0";else o="*";else if(c&&F){if(k)d=0;if(h=0,c===">")if(c=">=",k)p=+p+1,d=0,h=0;else d=+d+1,h=0;else if(c==="<=")if(c="<",k)p=+p+1;else d=+d+1;if(c==="<")B="-0";o=`${c+p}.${d}.${h}${B}`}else if(k)o=`>=${p}.0.0${B} <${+p+1}.0.0-0`;else if(v)o=`>=${p}.${d}.0${B} <${p}.${+d+1}.0-0`;return jD("xRange return",o),o})},BIi=(e,a)=>{return jD("replaceStars",e,a),e.trim().replace($q[LM.STAR],"")},IIi=(e,a)=>{return jD("replaceGTE0",e,a),e.trim().replace($q[a.includePrerelease?LM.GTE0PRE:LM.GTE0],"")},yIi=(e)=>(a,A,o,c,p,d,h,B,E,k,v,F)=>{if(J8(o))A="";else if(J8(c))A=`>=${o}.0.0${e?"-0":""}`;else if(J8(p))A=`>=${o}.${c}.0${e?"-0":""}`;else if(d)A=`>=${A}`;else A=`>=${A}${e?"-0":""}`;if(J8(E))B="";else if(J8(k))B=`<${+E+1}.0.0-0`;else if(J8(v))B=`<${E}.${+k+1}.0-0`;else if(F)B=`<=${E}.${k}.${v}-${F}`;else if(e)B=`<${E}.${k}.${+v+1}-0`;else B=`<=${B}`;return`${A} ${B}`.trim()},EIi=(e,a,A)=>{for(let o=0;o<e.length;o++)if(!e[o].test(a))return!1;if(a.prerelease.length&&!A.includePrerelease){for(let o=0;o<e.length;o++){if(jD(e[o].semver),e[o].semver===Tmn.ANY)continue;if(e[o].semver.prerelease.length>0){let c=e[o].semver;if(c.major===a.major&&c.minor===a.minor&&c.patch===a.patch)return!0}}return!1}return!0}});var vlt=gr(($rr,dCa)=>{var Flt=Symbol("SemVer ANY");class REt{static get ANY(){return Flt}constructor(e,a){if(a=cCa(a),e instanceof REt)if(e.loose===!!a.loose)return e;else e=e.value;if(e=e.trim().split(/\s+/).join(" "),Rmn("comparator",e,a),this.options=a,this.loose=!!a.loose,this.parse(e),this.semver===Flt)this.value="";else this.value=this.operator+this.semver.version;Rmn("comp",this)}parse(e){let a=this.options.loose?uCa[lCa.COMPARATORLOOSE]:uCa[lCa.COMPARATOR],A=e.match(a);if(!A)throw TypeError(`Invalid comparator: ${e}`);if(this.operator=A[1]!==void 0?A[1]:"",this.operator==="=")this.operator="";if(!A[2])this.semver=Flt;else this.semver=new pCa(A[2],this.options.loose)}toString(){return this.value}test(e){if(Rmn("Comparator.test",e,this.options.loose),this.semver===Flt||e===Flt)return!0;if(typeof e==="string")try{e=new pCa(e,this.options)}catch(a){return!1}return qmn(e,this.operator,this.semver,this.options)}intersects(e,a){if(!(e instanceof REt))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new gCa(e.value,a).test(this.value)}else if(e.operator===""){if(e.value==="")return!0;return new gCa(this.value,a).test(e.semver)}if(a=cCa(a),a.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0"))return!1;if(!a.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&e.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&e.operator.startsWith("<"))return!0;if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("="))return!0;if(qmn(this.semver,"<",e.semver,a)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))return!0;if(qmn(this.semver,">",e.semver,a)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))return!0;return!1}}dCa.exports=REt;var cCa=DEt(),{safeRe:uCa,t:lCa}=M6e(),qmn=Lmn(),Rmn=klt(),pCa=GM(),gCa=OH()});var Slt=gr((zrr,mCa)=>{var _Ii=OH(),QIi=(e,a,A)=>{try{a=new _Ii(a,A)}catch(o){return!1}return a.test(e)};mCa.exports=QIi});var hCa=gr((Wrr,fCa)=>{var wIi=OH(),kIi=(e,a)=>new wIi(e,a).set.map((A)=>A.map((o)=>o.value).join(" ").trim().split(" "));fCa.exports=kIi});var CCa=gr((Zrr,bCa)=>{var DIi=GM(),xIi=OH(),vIi=(e,a,A)=>{let o=null,c=null,p=null;try{p=new xIi(a,A)}catch(d){return null}return e.forEach((d)=>{if(p.test(d)){if(!o||c.compare(d)===-1)o=d,c=new DIi(o,A)}}),o};bCa.exports=vIi});var ICa=gr((Vrr,BCa)=>{var FIi=GM(),SIi=OH(),NIi=(e,a,A)=>{let o=null,c=null,p=null;try{p=new SIi(a,A)}catch(d){return null}return e.forEach((d)=>{if(p.test(d)){if(!o||c.compare(d)===1)o=d,c=new FIi(o,A)}}),o};BCa.exports=NIi});var _Ca=gr((Xrr,ECa)=>{var Umn=GM(),MIi=OH(),yCa=Dlt(),GIi=(e,a)=>{e=new MIi(e,a);let A=new Umn("0.0.0");if(e.test(A))return A;if(A=new Umn("0.0.0-0"),e.test(A))return A;A=null;for(let o=0;o<e.set.length;++o){let c=e.set[o],p=null;if(c.forEach((d)=>{let h=new Umn(d.semver.version);switch(d.operator){case">":if(h.prerelease.length===0)h.patch++;else h.prerelease.push(0);h.raw=h.format();case"":case">=":if(!p||yCa(h,p))p=h;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${d.operator}`)}}),p&&(!A||yCa(A,p)))A=p}if(A&&e.test(A))return A;return null};ECa.exports=GIi});var wCa=gr((eor,QCa)=>{var LIi=OH(),TIi=(e,a)=>{try{return new LIi(e,a).range||"*"}catch(A){return null}};QCa.exports=TIi});var UEt=gr((tor,vCa)=>{var qIi=GM(),xCa=vlt(),{ANY:RIi}=xCa,UIi=OH(),KIi=Slt(),kCa=Dlt(),DCa=MEt(),YIi=LEt(),PIi=GEt(),jIi=(e,a,A,o)=>{e=new qIi(e,o),a=new UIi(a,o);let c,p,d,h,B;switch(A){case">":c=kCa,p=YIi,d=DCa,h=">",B=">=";break;case"<":c=DCa,p=PIi,d=kCa,h="<",B="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(KIi(e,a,o))return!1;for(let E=0;E<a.set.length;++E){let k=a.set[E],v=null,F=null;if(k.forEach((T)=>{if(T.semver===RIi)T=new xCa(">=0.0.0");if(v=v||T,F=F||T,c(T.semver,v.semver,o))v=T;else if(d(T.semver,F.semver,o))F=T}),v.operator===h||v.operator===B)return!1;if((!F.operator||F.operator===h)&&p(e,F.semver))return!1;else if(F.operator===B&&d(e,F.semver))return!1}return!0};vCa.exports=jIi});var SCa=gr((nor,FCa)=>{var HIi=UEt(),JIi=(e,a,A)=>HIi(e,a,">",A);FCa.exports=JIi});var MCa=gr((aor,NCa)=>{var OIi=UEt(),$Ii=(e,a,A)=>OIi(e,a,"<",A);NCa.exports=$Ii});var TCa=gr((Aor,LCa)=>{var GCa=OH(),zIi=(e,a,A)=>{return e=new GCa(e,A),a=new GCa(a,A),e.intersects(a,A)};LCa.exports=zIi});var RCa=gr((ior,qCa)=>{var WIi=Slt(),ZIi=JH();qCa.exports=(e,a,A)=>{let o=[],c=null,p=null,d=e.sort((k,v)=>ZIi(k,v,A));for(let k of d)if(WIi(k,a,A)){if(p=k,!c)c=k}else{if(p)o.push([c,p]);p=null,c=null}if(c)o.push([c,null]);let h=[];for(let[k,v]of o)if(k===v)h.push(k);else if(!v&&k===d[0])h.push("*");else if(!v)h.push(`>=${k}`);else if(k===d[0])h.push(`<=${v}`);else h.push(`${k} - ${v}`);let B=h.join(" || "),E=typeof a.raw==="string"?a.raw:String(a);return B.length<E.length?B:a}});var HCa=gr((ror,jCa)=>{var UCa=OH(),Pmn=vlt(),{ANY:Kmn}=Pmn,Ymn=Slt(),jmn=JH(),VIi=(e,a,A={})=>{if(e===a)return!0;e=new UCa(e,A),a=new UCa(a,A);let o=!1;e:for(let c of e.set){for(let p of a.set){let d=eyi(c,p,A);if(o=o||d!==null,d)continue e}if(o)return!1}return!0},XIi=[new Pmn(">=0.0.0-0")],KCa=[new Pmn(">=0.0.0")],eyi=(e,a,A)=>{if(e===a)return!0;if(e.length===1&&e[0].semver===Kmn)if(a.length===1&&a[0].semver===Kmn)return!0;else if(A.includePrerelease)e=XIi;else e=KCa;if(a.length===1&&a[0].semver===Kmn)if(A.includePrerelease)return!0;else a=KCa;let o=new Set,c,p;for(let T of e)if(T.operator===">"||T.operator===">=")c=YCa(c,T,A);else if(T.operator==="<"||T.operator==="<=")p=PCa(p,T,A);else o.add(T.semver);if(o.size>1)return null;let d;if(c&&p){if(d=jmn(c.semver,p.semver,A),d>0)return null;else if(d===0&&(c.operator!==">="||p.operator!=="<="))return null}for(let T of o){if(c&&!Ymn(T,String(c),A))return null;if(p&&!Ymn(T,String(p),A))return null;for(let K of a)if(!Ymn(T,String(K),A))return!1;return!0}let h,B,E,k,v=p&&!A.includePrerelease&&p.semver.prerelease.length?p.semver:!1,F=c&&!A.includePrerelease&&c.semver.prerelease.length?c.semver:!1;if(v&&v.prerelease.length===1&&p.operator==="<"&&v.prerelease[0]===0)v=!1;for(let T of a){if(k=k||T.operator===">"||T.operator===">=",E=E||T.operator==="<"||T.operator==="<=",c){if(F){if(T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===F.major&&T.semver.minor===F.minor&&T.semver.patch===F.patch)F=!1}if(T.operator===">"||T.operator===">="){if(h=YCa(c,T,A),h===T&&h!==c)return!1}else if(c.operator===">="&&!T.test(c.semver))return!1}if(p){if(v){if(T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===v.major&&T.semver.minor===v.minor&&T.semver.patch===v.patch)v=!1}if(T.operator==="<"||T.operator==="<="){if(B=PCa(p,T,A),B===T&&B!==p)return!1}else if(p.operator==="<="&&!T.test(p.semver))return!1}if(!T.operator&&(p||c)&&d!==0)return!1}if(c&&E&&!p&&d!==0)return!1;if(p&&k&&!c&&d!==0)return!1;if(F||v)return!1;return!0},YCa=(e,a,A)=>{if(!e)return a;let o=jmn(e.semver,a.semver,A);return o>0?e:o<0?a:a.operator===">"&&e.operator===">="?a:e},PCa=(e,a,A)=>{if(!e)return a;let o=jmn(e.semver,a.semver,A);return o<0?e:o>0?a:a.operator==="<"&&e.operator==="<="?a:e};jCa.exports=VIi});var zCa=gr((oor,$Ca)=>{var Hmn=M6e(),JCa=N6e(),tyi=GM(),OCa=Smn(),nyi=Nhe(),ayi=fba(),Ayi=bba(),iyi=Iba(),ryi=_ba(),oyi=wba(),syi=Dba(),cyi=vba(),uyi=Sba(),lyi=JH(),pyi=Lba(),gyi=qba(),dyi=NEt(),myi=Yba(),fyi=jba(),hyi=Dlt(),byi=MEt(),Cyi=Mmn(),Byi=Gmn(),Iyi=GEt(),yyi=LEt(),Eyi=Lmn(),_yi=Xba(),Qyi=tCa(),wyi=vlt(),kyi=OH(),Dyi=Slt(),xyi=hCa(),vyi=CCa(),Fyi=ICa(),Syi=_Ca(),Nyi=wCa(),Myi=UEt(),Gyi=SCa(),Lyi=MCa(),Tyi=TCa(),qyi=RCa(),Ryi=HCa();$Ca.exports={parse:nyi,valid:ayi,clean:Ayi,inc:iyi,diff:ryi,major:oyi,minor:syi,patch:cyi,prerelease:uyi,compare:lyi,rcompare:pyi,compareLoose:gyi,compareBuild:dyi,sort:myi,rsort:fyi,gt:hyi,lt:byi,eq:Cyi,neq:Byi,gte:Iyi,lte:yyi,cmp:Eyi,coerce:_yi,truncate:Qyi,Comparator:wyi,Range:kyi,satisfies:Dyi,toComparators:xyi,maxSatisfying:vyi,minSatisfying:Fyi,minVersion:Syi,validRange:Nyi,outside:Myi,gtr:Gyi,ltr:Lyi,intersects:Tyi,simplifyRange:qyi,subset:Ryi,SemVer:tyi,re:Hmn.re,src:Hmn.src,tokens:Hmn.t,SEMVER_SPEC_VERSION:JCa.SEMVER_SPEC_VERSION,RELEASE_TYPES:JCa.RELEASE_TYPES,compareIdentifiers:OCa.compareIdentifiers,rcompareIdentifiers:OCa.rcompareIdentifiers}});var KEt;var Jmn=Kn(()=>{KEt={name:"@arcforge/axon",version:"2.0.55",description:"coding agent cli",module:"index.ts",type:"module",scripts:{dev:"vterm dev","dev:local":"vterm dev --dotenv .env.local",tail:"vterm tail",prepare:"vterm prepare",build:"vterm build",deploy:"vterm deploy","deploy:patch":"npm version patch && npm publish","deploy:minor":"npm version minor && npm publish","deploy:major":"npm version major && npm publish",test:"bun test","test:watch":"bun test --watch"},dependencies:{"@arcforge/vterm":"workspace:*","@arclabs/cloud":"workspace:*","@arclabs/repo":"workspace:*","@arclabs/tools":"workspace:*","@axon/capsule":"workspace:*","@axon/core":"workspace:*","@axon/engines":"workspace:*","@axon/err":"workspace:*","@axon/theme":"workspace:*","@axon/types":"workspace:*","@axon/vstr":"workspace:*",arcline:"workspace:*","@vue/compiler-sfc":"3.5.39",chalk:"^5.6.2","fft.js":"^4.0.4","markdown-it":"^14.3.0",open:"^11.0.0",semver:"^7.7.4"},devDependencies:{"@types/bun":"latest","@types/markdown-it":"^14.1.2","@vue/typescript-plugin":"^3.2.5",postgres:"^3.4.5"},peerDependencies:{typescript:"^5"},bin:{axon:"./bin/axon"}}});var YEt=75,WCa="AXON_UPDATE_REQUEST";import{existsSync as Kyi,realpathSync as Yyi}from"fs";import{mkdir as Pyi,rename as jyi,writeFile as Hyi}from"fs/promises";import{dirname as ZCa,join as Jyi}from"path";function Omn(e){let a=e.currentVersion??KEt.version,A=process.argv[1]??import.meta.path,o=e.helperPath??Oyi(A),c=e.bunPath??process.execPath,p=e.axonPath??Bun.which("axon")??"axon",d=e.requestPath??process.env[WCa];function h(){return Kyi(o)&&Boolean(d)}async function B(k,v={}){if(!Nlt.valid(a))throw Error(`UPDATE_CURRENT_VERSION_INVALID: ${a}`);let F=await e.cloud.cloud.releases.axon(k,v);if(F.package!=="@arcforge/axon"||F.channel!=="latest"||!Nlt.valid(F.version))throw Error("UPDATE_RELEASE_INVALID");return{status:Nlt.gt(F.version,a)?"available":"current",current:a,latest:F.version}}async function E(k){let v=await B(k,{fresh:!0});if(v.status==="current")return v;if(!h())throw Error("UPDATE_UNAVAILABLE_IN_DEVELOPMENT");e.store.update.state.set({status:"pending",from:v.current,to:v.latest,updatedAt:new Date().toISOString()});try{let F={from:v.current,to:v.latest,bun:c,axon:p,state:e.store.update.statePath};if(!d)throw Error("UPDATE_SUPERVISOR_UNAVAILABLE");await Pyi(ZCa(d),{recursive:!0});let T=`${d}.${process.pid}.tmp`;await Hyi(T,JSON.stringify(F,null,2)+`
2414
2414
  `,"utf-8"),await jyi(T,d)}catch(F){throw e.store.update.state.set({status:"failed",from:v.current,to:v.latest,updatedAt:new Date().toISOString(),error:F instanceof Error?F.message:String(F)}),F}return v}return{currentVersion:a,supported:h,check:B,handoff:E}}function Oyi(e){return Jyi(ZCa($yi(e)),"update-helper.js")}function $yi(e){try{return Yyi(e)}catch{return e}}var Nlt;var VCa=Kn(()=>{Jmn();Nlt=$d(zCa(),1)});var XCa=Kn(()=>{VCa()});import{homedir as eBa}from"os";import{join as tBa,resolve as zyi}from"path";function Mlt(e={}){let a=zyi(e.cwd??process.cwd()),A=Zyi(e.distribution),o=qun({root:e.store??A.storeRoot}),c=Lia({store:o,...A.baseUrl?{baseUrl:A.baseUrl}:{},environmentCredentials:A.environmentCredentials,validateCredentials:A.validateCredentials}),p=rAa(),d=fAa(),h=umn({cloud:c.client}),B=Bha({store:o,projects:h,cloud:c.client,cwd:a}),E=Emn(),k=xmn({cloud:c.client,tests:E}),v=nba({cloud:c.client,async prepare(T){let K=await h.open(T);if(K.kind!=="module")throw Error(`CLONE_NOT_MODULE: ${T} is not a module project`);await K.prepare()}}),F=Omn({cloud:c.client,store:o});return{cloud:c,store:o,projects:h,agents:B,benches:k,registry:v,tests:E,mic:d,updates:F}}function Zyi(e=Wyi){if(e==="production")return{storeRoot:tBa(eBa(),".axon"),baseUrl:vIt,environmentCredentials:!1,validateCredentials:!0};return{storeRoot:tBa(eBa(),".axon-dev"),environmentCredentials:!0,validateCredentials:!1}}var Wyi="production";var nBa=Kn(()=>{iAa();Uun();Tia();pha();Iha();$ha();_mn();aba();XCa();WX()});var $mn=Kn(()=>{nBa()});function C0i(){let e=new Map;for(let[a,A]of Object.entries(s1)){for(let[o,c]of Object.entries(A))s1[o]={open:`\x1B[${c[0]}m`,close:`\x1B[${c[1]}m`},A[o]=s1[o],e.set(c[0],c[1]);Object.defineProperty(s1,a,{value:A,enumerable:!1})}return Object.defineProperty(s1,"codes",{value:e,enumerable:!1}),s1.color.close="\x1B[39m",s1.bgColor.close="\x1B[49m",s1.color.ansi=REa(),s1.color.ansi256=UEa(),s1.color.ansi16m=KEa(),s1.bgColor.ansi=REa(10),s1.bgColor.ansi256=UEa(10),s1.bgColor.ansi16m=KEa(10),Object.defineProperties(s1,{rgbToAnsi256:{value(a,A,o){if(a===A&&A===o){if(a<8)return 16;if(a>248)return 231;return Math.round((a-8)/247*24)+232}return 16+36*Math.round(a/255*5)+6*Math.round(A/255*5)+Math.round(o/255*5)},enumerable:!1},hexToRgb:{value(a){let A=/[a-f\d]{6}|[a-f\d]{3}/i.exec(a.toString(16));if(!A)return[0,0,0];let[o]=A;if(o.length===3)o=[...o].map((p)=>p+p).join("");let c=Number.parseInt(o,16);return[c>>16&255,c>>8&255,c&255]},enumerable:!1},hexToAnsi256:{value:(a)=>s1.rgbToAnsi256(...s1.hexToRgb(a)),enumerable:!1},ansi256ToAnsi:{value(a){if(a<8)return 30+a;if(a<16)return 90+(a-8);let A,o,c;if(a>=232)A=((a-232)*10+8)/255,o=A,c=A;else{a-=16;let h=a%36;A=Math.floor(a/36)/5,o=Math.floor(h/6)/5,c=h%6/5}let p=Math.max(A,o,c)*2;if(p===0)return 30;let d=30+(Math.round(c)<<2|Math.round(o)<<1|Math.round(A));if(p===2)d+=60;return d},enumerable:!1},rgbToAnsi:{value:(a,A,o)=>s1.ansi256ToAnsi(s1.rgbToAnsi256(a,A,o)),enumerable:!1},hexToAnsi:{value:(a)=>s1.ansi256ToAnsi(s1.hexToAnsi256(a)),enumerable:!1}}),s1}var REa=(e=0)=>(a)=>`\x1B[${a+e}m`,UEa=(e=0)=>(a)=>`\x1B[${38+e};5;${a}m`,KEa=(e=0)=>(a,A,o)=>`\x1B[${38+e};2;${a};${A};${o}m`,s1,rfr,h0i,b0i,ofr,B0i,pee;var YEa=Kn(()=>{s1={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},rfr=Object.keys(s1.modifier),h0i=Object.keys(s1.color),b0i=Object.keys(s1.bgColor),ofr=[...h0i,...b0i];B0i=C0i(),pee=B0i});import qhn from"process";import I0i from"os";import PEa from"tty";function WH(e,a=globalThis.Deno?globalThis.Deno.args:qhn.argv){let A=e.startsWith("-")?"":e.length===1?"-":"--",o=a.indexOf(A+e),c=a.indexOf("--");return o!==-1&&(c===-1||o<c)}function y0i(){if("FORCE_COLOR"in c1){if(c1.FORCE_COLOR==="true")return 1;if(c1.FORCE_COLOR==="false")return 0;return c1.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(c1.FORCE_COLOR,10),3)}}function E0i(e){if(e===0)return!1;return{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function _0i(e,{streamIsTTY:a,sniffFlags:A=!0}={}){let o=y0i();if(o!==void 0)G_t=o;let c=A?G_t:o;if(c===0)return 0;if(A){if(WH("color=16m")||WH("color=full")||WH("color=truecolor"))return 3;if(WH("color=256"))return 2}if("TF_BUILD"in c1&&"AGENT_NAME"in c1)return 1;if(e&&!a&&c===void 0)return 0;let p=c||0;if(c1.TERM==="dumb")return p;if(qhn.platform==="win32"){let d=I0i.release().split(".");if(Number(d[0])>=10&&Number(d[2])>=10586)return Number(d[2])>=14931?3:2;return 1}if("CI"in c1){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((d)=>(d in c1)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((d)=>(d in c1))||c1.CI_NAME==="codeship")return 1;return p}if("TEAMCITY_VERSION"in c1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c1.TEAMCITY_VERSION)?1:0;if(c1.COLORTERM==="truecolor")return 3;if(c1.TERM==="xterm-kitty")return 3;if(c1.TERM==="xterm-ghostty")return 3;if(c1.TERM==="wezterm")return 3;if("TERM_PROGRAM"in c1){let d=Number.parseInt((c1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c1.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(c1.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c1.TERM))return 1;if("COLORTERM"in c1)return 1;return p}function jEa(e,a={}){let A=_0i(e,{streamIsTTY:e&&e.isTTY,...a});return E0i(A)}var c1,G_t,Q0i,HEa;var JEa=Kn(()=>{({env:c1}=qhn);if(WH("no-color")||WH("no-colors")||WH("color=false")||WH("color=never"))G_t=0;else if(WH("color")||WH("colors")||WH("color=true")||WH("color=always"))G_t=1;Q0i={stdout:jEa({isTTY:PEa.isatty(1)}),stderr:jEa({isTTY:PEa.isatty(2)})},HEa=Q0i});function OEa(e,a,A){let o=e.indexOf(a);if(o===-1)return e;let c=a.length,p=0,d="";do d+=e.slice(p,o)+a+A,p=o+c,o=e.indexOf(a,p);while(o!==-1);return d+=e.slice(p),d}function $Ea(e,a,A,o){let c=0,p="";do{let d=e[o-1]==="\r";p+=e.slice(c,d?o-1:o)+a+(d?`\r
2415
2415
  `:`
2416
2416
  `)+A,c=o+1,o=e.indexOf(`
@@ -2550,7 +2550,7 @@ tell application "System Events" to get value of property list item "CFBundleNam
2550
2550
  `:">",p};Y6e.prototype.renderInline=function(e,a,A){let o="",c=this.rules;for(let p=0,d=e.length;p<d;p++){let h=e[p].type;if(typeof c[h]<"u")o+=c[h](e,p,a,A,this);else o+=this.renderToken(e,p,a)}return o};Y6e.prototype.renderInlineAsText=function(e,a,A){let o="";for(let c=0,p=e.length;c<p;c++)switch(e[c].type){case"text":o+=e[c].content;break;case"image":o+=this.renderInlineAsText(e[c].children,a,A);break;case"html_inline":case"html_block":o+=e[c].content;break;case"softbreak":case"hardbreak":o+=`
2551
2551
  `;break;default:}return o};Y6e.prototype.render=function(e,a,A){let o="",c=this.rules;for(let p=0,d=e.length;p<d;p++){let h=e[p].type;if(h==="inline")o+=this.renderInline(e[p].children,a,A);else if(typeof c[h]<"u")o+=c[h](e,p,a,A,this);else o+=this.renderToken(e,p,a,A)}return o};var MIa=Y6e;function see(){this.__rules__=[],this.__cache__=null}see.prototype.__find__=function(e){for(let a=0;a<this.__rules__.length;a++)if(this.__rules__[a].name===e)return a;return-1};see.prototype.__compile__=function(){let e=this,a=[""];e.__rules__.forEach(function(A){if(!A.enabled)return;A.alt.forEach(function(o){if(a.indexOf(o)<0)a.push(o)})}),e.__cache__={},a.forEach(function(A){e.__cache__[A]=[],e.__rules__.forEach(function(o){if(!o.enabled)return;if(A&&o.alt.indexOf(A)<0)return;e.__cache__[A].push(o.fn)})})};see.prototype.at=function(e,a,A){let o=this.__find__(e),c=A||{};if(o===-1)throw Error("Parser rule not found: "+e);this.__rules__[o].fn=a,this.__rules__[o].alt=c.alt||[],this.__cache__=null};see.prototype.before=function(e,a,A,o){let c=this.__find__(e),p=o||{};if(c===-1)throw Error("Parser rule not found: "+e);this.__rules__.splice(c,0,{name:a,enabled:!0,fn:A,alt:p.alt||[]}),this.__cache__=null};see.prototype.after=function(e,a,A,o){let c=this.__find__(e),p=o||{};if(c===-1)throw Error("Parser rule not found: "+e);this.__rules__.splice(c+1,0,{name:a,enabled:!0,fn:A,alt:p.alt||[]}),this.__cache__=null};see.prototype.push=function(e,a,A){let o=A||{};this.__rules__.push({name:e,enabled:!0,fn:a,alt:o.alt||[]}),this.__cache__=null};see.prototype.enable=function(e,a){if(!Array.isArray(e))e=[e];let A=[];return e.forEach(function(o){let c=this.__find__(o);if(c<0){if(a)return;throw Error("Rules manager: invalid rule name "+o)}this.__rules__[c].enabled=!0,A.push(o)},this),this.__cache__=null,A};see.prototype.enableOnly=function(e,a){if(!Array.isArray(e))e=[e];this.__rules__.forEach(function(A){A.enabled=!1}),this.enable(e,a)};see.prototype.disable=function(e,a){if(!Array.isArray(e))e=[e];let A=[];return e.forEach(function(o){let c=this.__find__(o);if(c<0){if(a)return;throw Error("Rules manager: invalid rule name "+o)}this.__rules__[c].enabled=!1,A.push(o)},this),this.__cache__=null,A};see.prototype.getRules=function(e){if(this.__cache__===null)this.__compile__();return this.__cache__[e]||[]};var l3e=see;function P6e(e,a,A){this.type=e,this.tag=a,this.attrs=null,this.map=null,this.nesting=A,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}P6e.prototype.attrIndex=function(a){if(!this.attrs)return-1;let A=this.attrs;for(let o=0,c=A.length;o<c;o++)if(A[o][0]===a)return o;return-1};P6e.prototype.attrPush=function(a){if(this.attrs)this.attrs.push(a);else this.attrs=[a]};P6e.prototype.attrSet=function(a,A){let o=this.attrIndex(a),c=[a,A];if(o<0)this.attrPush(c);else this.attrs[o]=c};P6e.prototype.attrGet=function(a){let A=this.attrIndex(a),o=null;if(A>=0)o=this.attrs[A][1];return o};P6e.prototype.attrJoin=function(a,A){let o=this.attrIndex(a);if(o<0)this.attrPush([a,A]);else this.attrs[o][1]=this.attrs[o][1]+" "+A};var ime=P6e;function GIa(e,a,A){this.src=e,this.env=A,this.tokens=[],this.inlineMode=!1,this.md=a}GIa.prototype.Token=ime;var LIa=GIa;var K_i=/\r\n?|\n/g,Y_i=/\0/g;function vfn(e){let a;a=e.src.replace(K_i,`
2552
2552
  `),a=a.replace(Y_i,"\uFFFD"),e.src=a}function Ffn(e){let a;if(e.inlineMode)a=new e.Token("inline","",0),a.content=e.src,a.map=[0,1],a.children=[],e.tokens.push(a);else e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Sfn(e){let a=e.tokens;for(let A=0,o=a.length;A<o;A++){let c=a[A];if(c.type==="inline")e.md.inline.parse(c.content,e.md,e.env,c.children)}}function P_i(e){return/^<a[>\s]/i.test(e)}function j_i(e){return/^<\/a\s*>/i.test(e)}function Nfn(e){let a=e.tokens;if(!e.md.options.linkify)return;for(let A=0,o=a.length;A<o;A++){if(a[A].type!=="inline"||!e.md.linkify.pretest(a[A].content))continue;let c=a[A].children,p=0;for(let d=c.length-1;d>=0;d--){let h=c[d];if(h.type==="link_close"){d--;while(c[d].level!==h.level&&c[d].type!=="link_open")d--;continue}if(h.type==="html_inline"){if(P_i(h.content)&&p>0)p--;if(j_i(h.content))p++}if(p>0)continue;if(h.type==="text"&&e.md.linkify.test(h.content)){let B=h.content,E=e.md.linkify.match(B),k=[],v=h.level,F=0;if(E.length>0&&E[0].index===0&&d>0&&c[d-1].type==="text_special")E=E.slice(1);for(let T=0;T<E.length;T++){let K=E[T].url,P=e.md.normalizeLink(K);if(!e.md.validateLink(P))continue;let te=E[T].text;if(!E[T].schema)te=e.md.normalizeLinkText("http://"+te).replace(/^http:\/\//,"");else if(E[T].schema==="mailto:"&&!/^mailto:/i.test(te))te=e.md.normalizeLinkText("mailto:"+te).replace(/^mailto:/,"");else te=e.md.normalizeLinkText(te);let ue=E[T].index;if(ue>F){let Ne=new e.Token("text","",0);Ne.content=B.slice(F,ue),Ne.level=v,k.push(Ne)}let ge=new e.Token("link_open","a",1);ge.attrs=[["href",P]],ge.level=v++,ge.markup="linkify",ge.info="auto",k.push(ge);let me=new e.Token("text","",0);me.content=te,me.level=v,k.push(me);let ve=new e.Token("link_close","a",-1);ve.level=--v,ve.markup="linkify",ve.info="auto",k.push(ve),F=E[T].lastIndex}if(F<B.length){let T=new e.Token("text","",0);T.content=B.slice(F),T.level=v,k.push(T)}a[A].children=c=_fn(c,d,k)}}}}var TIa=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,H_i=/\((c|tm|r)\)/i,J_i=/\((c|tm|r)\)/ig,O_i={c:"\xA9",r:"\xAE",tm:"\u2122"};function $_i(e,a){return O_i[a.toLowerCase()]}function z_i(e){let a=0;for(let A=e.length-1;A>=0;A--){let o=e[A];if(o.type==="text"&&!a)o.content=o.content.replace(J_i,$_i);if(o.type==="link_open"&&o.info==="auto")a--;if(o.type==="link_close"&&o.info==="auto")a++}}function W_i(e){let a=0;for(let A=e.length-1;A>=0;A--){let o=e[A];if(o.type==="text"&&!a){if(TIa.test(o.content))o.content=o.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")}if(o.type==="link_open"&&o.info==="auto")a--;if(o.type==="link_close"&&o.info==="auto")a++}}function Mfn(e){let a;if(!e.md.options.typographer)return;for(a=e.tokens.length-1;a>=0;a--){if(e.tokens[a].type!=="inline")continue;if(H_i.test(e.tokens[a].content))z_i(e.tokens[a].children);if(TIa.test(e.tokens[a].content))W_i(e.tokens[a].children)}}var Z_i=/['"]/,qIa=/['"]/g,RIa="\u2019";function b_t(e,a,A,o){if(!e[a])e[a]=[];e[a].push({pos:A,ch:o})}function V_i(e,a){let A="",o=0;a.sort((c,p)=>c.pos-p.pos);for(let c=0;c<a.length;c++){let p=a[c];A+=e.slice(o,p.pos)+p.ch,o=p.pos+1}return A+e.slice(o)}function X_i(e,a){let A,o=[],c={};for(let p=0;p<e.length;p++){let d=e[p],h=e[p].level;for(A=o.length-1;A>=0;A--)if(o[A].level<=h)break;if(o.length=A+1,d.type!=="text")continue;let B=d.content,E=0,k=B.length;e:while(E<k){qIa.lastIndex=E;let v=qIa.exec(B);if(!v)break;let F=!0,T=!0;E=v.index+1;let K=v[0]==="'",P=32;if(v.index-1>=0)P=B.charCodeAt(v.index-1);else for(A=p-1;A>=0;A--){if(e[A].type==="softbreak"||e[A].type==="hardbreak")break;if(!e[A].content)continue;P=e[A].content.charCodeAt(e[A].content.length-1);break}let te=32;if(E<k)te=B.charCodeAt(E);else for(A=p+1;A<e.length;A++){if(e[A].type==="softbreak"||e[A].type==="hardbreak")break;if(!e[A].content)continue;te=e[A].content.charCodeAt(0);break}let ue=s3e(P)||o3e(P),ge=s3e(te)||o3e(te),me=r3e(P),ve=r3e(te);if(ve)F=!1;else if(ge){if(!(me||ue))F=!1}if(me)T=!1;else if(ue){if(!(ve||ge))T=!1}if(te===34&&v[0]==='"'){if(P>=48&&P<=57)T=F=!1}if(F&&T)F=ue,T=ge;if(!F&&!T){if(K)b_t(c,p,v.index,RIa);continue}if(T)for(A=o.length-1;A>=0;A--){let Ne=o[A];if(o[A].level<h)break;if(Ne.single===K&&o[A].level===h){Ne=o[A];let he,xe;if(K)he=a.md.options.quotes[2],xe=a.md.options.quotes[3];else he=a.md.options.quotes[0],xe=a.md.options.quotes[1];b_t(c,p,v.index,xe),b_t(c,Ne.token,Ne.pos,he),o.length=A;continue e}}if(F)o.push({token:p,pos:v.index,single:K,level:h});else if(T&&K)b_t(c,p,v.index,RIa)}}Object.keys(c).forEach(function(p){e[p].content=V_i(e[p].content,c[p])})}function Gfn(e){if(!e.md.options.typographer)return;for(let a=e.tokens.length-1;a>=0;a--){if(e.tokens[a].type!=="inline"||!Z_i.test(e.tokens[a].content))continue;X_i(e.tokens[a].children,e)}}function Lfn(e){let a,A,o=e.tokens,c=o.length;for(let p=0;p<c;p++){if(o[p].type!=="inline")continue;let d=o[p].children,h=d.length;for(a=0;a<h;a++)if(d[a].type==="text_special")d[a].type="text";for(a=A=0;a<h;a++)if(d[a].type==="text"&&a+1<h&&d[a+1].type==="text")d[a+1].content=d[a].content+d[a+1].content;else{if(a!==A)d[A]=d[a];A++}if(a!==A)d.length=A}}var Tfn=[["normalize",vfn],["block",Ffn],["inline",Sfn],["linkify",Nfn],["replacements",Mfn],["smartquotes",Gfn],["text_join",Lfn]];function qfn(){this.ruler=new l3e;for(let e=0;e<Tfn.length;e++)this.ruler.push(Tfn[e][0],Tfn[e][1])}qfn.prototype.process=function(e){let a=this.ruler.getRules("");for(let A=0,o=a.length;A<o;A++)a[A](e)};qfn.prototype.State=LIa;var UIa=qfn;function Ste(e,a,A,o){this.src=e,this.md=a,this.env=A,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let c=this.src;for(let p=0,d=0,h=0,B=0,E=c.length,k=!1;d<E;d++){let v=c.charCodeAt(d);if(!k)if(bI(v)){if(h++,v===9)B+=4-B%4;else B++;continue}else k=!0;if(v===10||d===E-1){if(v!==10)d++;this.bMarks.push(p),this.eMarks.push(d),this.tShift.push(h),this.sCount.push(B),this.bsCount.push(0),k=!1,h=0,B=0,p=d+1}}this.bMarks.push(c.length),this.eMarks.push(c.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ste.prototype.push=function(e,a,A){let o=new ime(e,a,A);if(o.block=!0,A<0)this.level--;if(o.level=this.level,A>0)this.level++;return this.tokens.push(o),o};Ste.prototype.isEmpty=function(a){return this.bMarks[a]+this.tShift[a]>=this.eMarks[a]};Ste.prototype.skipEmptyLines=function(a){for(let A=this.lineMax;a<A;a++)if(this.bMarks[a]+this.tShift[a]<this.eMarks[a])break;return a};Ste.prototype.skipSpaces=function(a){for(let A=this.src.length;a<A;a++){let o=this.src.charCodeAt(a);if(!bI(o))break}return a};Ste.prototype.skipSpacesBack=function(a,A){if(a<=A)return a;while(a>A)if(!bI(this.src.charCodeAt(--a)))return a+1;return a};Ste.prototype.skipChars=function(a,A){for(let o=this.src.length;a<o;a++)if(this.src.charCodeAt(a)!==A)break;return a};Ste.prototype.skipCharsBack=function(a,A,o){if(a<=o)return a;while(a>o)if(A!==this.src.charCodeAt(--a))return a+1;return a};Ste.prototype.getLines=function(a,A,o,c){if(a>=A)return"";let p=Array(A-a);for(let d=0,h=a;h<A;h++,d++){let B=0,E=this.bMarks[h],k=E,v;if(h+1<A||c)v=this.eMarks[h]+1;else v=this.eMarks[h];while(k<v&&B<o){let F=this.src.charCodeAt(k);if(bI(F))if(F===9)B+=4-(B+this.bsCount[h])%4;else B++;else if(k-E<this.tShift[h])B++;else break;k++}if(B>o)p[d]=Array(B-o+1).join(" ")+this.src.slice(k,v);else p[d]=this.src.slice(k,v)}return p.join("")};Ste.prototype.Token=ime;var KIa=Ste;var eQi=65536;function Rfn(e,a){let A=e.bMarks[a]+e.tShift[a],o=e.eMarks[a];return e.src.slice(A,o)}function YIa(e){let a=[],A=e.length,o=0,c=e.charCodeAt(o),p=!1,d=0,h="";while(o<A){if(c===124)if(!p)a.push(h+e.substring(d,o)),h="",d=o+1;else h+=e.substring(d,o-1),d=o;p=c===92,o++,c=e.charCodeAt(o)}return a.push(h+e.substring(d)),a}function Ufn(e,a,A,o){if(a+2>A)return!1;let c=a+1;if(e.sCount[c]<e.blkIndent)return!1;if(e.sCount[c]-e.blkIndent>=4)return!1;let p=e.bMarks[c]+e.tShift[c];if(p>=e.eMarks[c])return!1;let d=e.src.charCodeAt(p++);if(d!==124&&d!==45&&d!==58)return!1;if(p>=e.eMarks[c])return!1;let h=e.src.charCodeAt(p++);if(h!==124&&h!==45&&h!==58&&!bI(h))return!1;if(d===45&&bI(h))return!1;while(p<e.eMarks[c]){let ve=e.src.charCodeAt(p);if(ve!==124&&ve!==45&&ve!==58&&!bI(ve))return!1;p++}let B=Rfn(e,a+1),E=B.split("|"),k=[];for(let ve=0;ve<E.length;ve++){let Ne=E[ve].trim();if(!Ne)if(ve===0||ve===E.length-1)continue;else return!1;if(!/^:?-+:?$/.test(Ne))return!1;if(Ne.charCodeAt(Ne.length-1)===58)k.push(Ne.charCodeAt(0)===58?"center":"right");else if(Ne.charCodeAt(0)===58)k.push("left");else k.push("")}if(B=Rfn(e,a).trim(),B.indexOf("|")===-1)return!1;if(e.sCount[a]-e.blkIndent>=4)return!1;if(E=YIa(B),E.length&&E[0]==="")E.shift();if(E.length&&E[E.length-1]==="")E.pop();let v=E.length;if(v===0||v!==k.length)return!1;if(o)return!0;let F=e.parentType;e.parentType="table";let T=e.md.block.ruler.getRules("blockquote"),K=e.push("table_open","table",1),P=[a,0];K.map=P;let te=e.push("thead_open","thead",1);te.map=[a,a+1];let ue=e.push("tr_open","tr",1);ue.map=[a,a+1];for(let ve=0;ve<E.length;ve++){let Ne=e.push("th_open","th",1);if(k[ve])Ne.attrs=[["style","text-align:"+k[ve]]];let he=e.push("inline","",0);he.content=E[ve].trim(),he.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let ge,me=0;for(c=a+2;c<A;c++){if(e.sCount[c]<e.blkIndent)break;let ve=!1;for(let he=0,xe=T.length;he<xe;he++)if(T[he](e,c,A,!0)){ve=!0;break}if(ve)break;if(B=Rfn(e,c).trim(),!B)break;if(e.sCount[c]-e.blkIndent>=4)break;if(E=YIa(B),E.length&&E[0]==="")E.shift();if(E.length&&E[E.length-1]==="")E.pop();if(me+=v-E.length,me>eQi)break;if(c===a+2){let he=e.push("tbody_open","tbody",1);he.map=ge=[a+2,0]}let Ne=e.push("tr_open","tr",1);Ne.map=[c,c+1];for(let he=0;he<v;he++){let xe=e.push("td_open","td",1);if(k[he])xe.attrs=[["style","text-align:"+k[he]]];let Oe=e.push("inline","",0);Oe.content=E[he]?E[he].trim():"",Oe.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}if(ge)e.push("tbody_close","tbody",-1),ge[1]=c;return e.push("table_close","table",-1),P[1]=c,e.parentType=F,e.line=c,!0}function Kfn(e,a,A){if(e.sCount[a]-e.blkIndent<4)return!1;let o=a+1,c=o;while(o<A){if(e.isEmpty(o)){o++;continue}if(e.sCount[o]-e.blkIndent>=4){o++,c=o;continue}break}e.line=c;let p=e.push("code_block","code",0);return p.content=e.getLines(a,c,4+e.blkIndent,!1)+`
2553
- `,p.map=[a,e.line],!0}function Yfn(e,a,A,o){let c=e.bMarks[a]+e.tShift[a],p=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(c+3>p)return!1;let d=e.src.charCodeAt(c);if(d!==126&&d!==96)return!1;let h=c;c=e.skipChars(c,d);let B=c-h;if(B<3)return!1;let E=e.src.slice(h,c),k=e.src.slice(c,p);if(d===96){if(k.indexOf(String.fromCharCode(d))>=0)return!1}if(o)return!0;let v=a,F=!1;for(;;){if(v++,v>=A)break;if(c=h=e.bMarks[v]+e.tShift[v],p=e.eMarks[v],c<p&&e.sCount[v]<e.blkIndent)break;if(e.src.charCodeAt(c)!==d)continue;if(e.sCount[v]-e.blkIndent>=4)continue;if(c=e.skipChars(c,d),c-h<B)continue;if(c=e.skipSpaces(c),c<p)continue;F=!0;break}B=e.sCount[a],e.line=v+(F?1:0);let T=e.push("fence","code",0);return T.info=k,T.content=e.getLines(a+1,v,B,!0),T.markup=E,T.map=[a,e.line],!0}function Pfn(e,a,A,o){let c=e.bMarks[a]+e.tShift[a],p=e.eMarks[a],d=e.lineMax;if(e.sCount[a]-e.blkIndent>=4)return!1;if(e.src.charCodeAt(c)!==62)return!1;if(o)return!0;let h=[],B=[],E=[],k=[],v=e.md.block.ruler.getRules("blockquote"),F=e.parentType;e.parentType="blockquote";let T=!1,K;for(K=a;K<A;K++){let me=e.sCount[K]<e.blkIndent;if(c=e.bMarks[K]+e.tShift[K],p=e.eMarks[K],c>=p)break;if(e.src.charCodeAt(c++)===62&&!me){let Ne=e.sCount[K]+1,he,xe;if(e.src.charCodeAt(c)===32)c++,Ne++,xe=!1,he=!0;else if(e.src.charCodeAt(c)===9)if(he=!0,(e.bsCount[K]+Ne)%4===3)c++,Ne++,xe=!1;else xe=!0;else he=!1;let Oe=Ne;h.push(e.bMarks[K]),e.bMarks[K]=c;while(c<p){let st=e.src.charCodeAt(c);if(bI(st))if(st===9)Oe+=4-(Oe+e.bsCount[K]+(xe?1:0))%4;else Oe++;else break;c++}T=c>=p,B.push(e.bsCount[K]),e.bsCount[K]=e.sCount[K]+1+(he?1:0),E.push(e.sCount[K]),e.sCount[K]=Oe-Ne,k.push(e.tShift[K]),e.tShift[K]=c-e.bMarks[K];continue}if(T)break;let ve=!1;for(let Ne=0,he=v.length;Ne<he;Ne++)if(v[Ne](e,K,A,!0)){ve=!0;break}if(ve){if(e.lineMax=K,e.blkIndent!==0)h.push(e.bMarks[K]),B.push(e.bsCount[K]),k.push(e.tShift[K]),E.push(e.sCount[K]),e.sCount[K]-=e.blkIndent;break}h.push(e.bMarks[K]),B.push(e.bsCount[K]),k.push(e.tShift[K]),E.push(e.sCount[K]),e.sCount[K]=-1}let P=e.blkIndent;e.blkIndent=0;let te=e.push("blockquote_open","blockquote",1);te.markup=">";let ue=[a,0];te.map=ue,e.md.block.tokenize(e,a,K);let ge=e.push("blockquote_close","blockquote",-1);ge.markup=">",e.lineMax=d,e.parentType=F,ue[1]=e.line;for(let me=0;me<k.length;me++)e.bMarks[me+a]=h[me],e.tShift[me+a]=k[me],e.sCount[me+a]=E[me],e.bsCount[me+a]=B[me];return e.blkIndent=P,!0}function jfn(e,a,A,o){let c=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;let p=e.bMarks[a]+e.tShift[a],d=e.src.charCodeAt(p++);if(d!==42&&d!==45&&d!==95)return!1;let h=1;while(p<c){let E=e.src.charCodeAt(p++);if(E!==d&&!bI(E))return!1;if(E===d)h++}if(h<3)return!1;if(o)return!0;e.line=a+1;let B=e.push("hr","hr",0);return B.map=[a,e.line],B.markup=Array(h+1).join(String.fromCharCode(d)),!0}function PIa(e,a){let A=e.eMarks[a],o=e.bMarks[a]+e.tShift[a],c=e.src.charCodeAt(o++);if(c!==42&&c!==45&&c!==43)return-1;if(o<A){let p=e.src.charCodeAt(o);if(!bI(p))return-1}return o}function jIa(e,a){let A=e.bMarks[a]+e.tShift[a],o=e.eMarks[a],c=A;if(c+1>=o)return-1;let p=e.src.charCodeAt(c++);if(p<48||p>57)return-1;for(;;){if(c>=o)return-1;if(p=e.src.charCodeAt(c++),p>=48&&p<=57){if(c-A>=10)return-1;continue}if(p===41||p===46)break;return-1}if(c<o){if(p=e.src.charCodeAt(c),!bI(p))return-1}return c}function tQi(e,a){let A=e.level+2;for(let o=a+2,c=e.tokens.length-2;o<c;o++)if(e.tokens[o].level===A&&e.tokens[o].type==="paragraph_open")e.tokens[o+2].hidden=!0,e.tokens[o].hidden=!0,o+=2}function Hfn(e,a,A,o){let c,p,d,h,B=a,E=!0;if(e.sCount[B]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[B]-e.listIndent>=4&&e.sCount[B]<e.blkIndent)return!1;let k=!1;if(o&&e.parentType==="paragraph"){if(e.sCount[B]>=e.blkIndent)k=!0}let v,F,T;if((T=jIa(e,B))>=0){if(v=!0,d=e.bMarks[B]+e.tShift[B],F=Number(e.src.slice(d,T-1)),k&&F!==1)return!1}else if((T=PIa(e,B))>=0)v=!1;else return!1;if(k){if(e.skipSpaces(T)>=e.eMarks[B])return!1}if(o)return!0;let K=e.src.charCodeAt(T-1),P=e.tokens.length;if(v){if(h=e.push("ordered_list_open","ol",1),F!==1)h.attrs=[["start",F]]}else h=e.push("bullet_list_open","ul",1);let te=[B,0];h.map=te,h.markup=String.fromCharCode(K);let ue=!1,ge=e.md.block.ruler.getRules("list"),me=e.parentType;e.parentType="list";while(B<A){p=T,c=e.eMarks[B];let ve=e.sCount[B]+T-(e.bMarks[B]+e.tShift[B]),Ne=ve;while(p<c){let Tt=e.src.charCodeAt(p);if(Tt===9)Ne+=4-(Ne+e.bsCount[B])%4;else if(Tt===32)Ne++;else break;p++}let he=p,xe;if(he>=c)xe=1;else xe=Ne-ve;if(xe>4)xe=1;let Oe=ve+xe;h=e.push("list_item_open","li",1),h.markup=String.fromCharCode(K);let st=[B,0];if(h.map=st,v)h.info=e.src.slice(d,T-1);let Ct=e.tight,ct=e.tShift[B],pt=e.sCount[B],Gt=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=Oe,e.tight=!0,e.tShift[B]=he-e.bMarks[B],e.sCount[B]=Ne,he>=c&&e.isEmpty(B+1))e.line=Math.min(e.line+2,A);else e.md.block.tokenize(e,B,A,!0);if(!e.tight||ue)E=!1;if(ue=e.line-B>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=Gt,e.tShift[B]=ct,e.sCount[B]=pt,e.tight=Ct,h=e.push("list_item_close","li",-1),h.markup=String.fromCharCode(K),B=e.line,st[1]=B,B>=A)break;if(e.sCount[B]<e.blkIndent)break;if(e.sCount[B]-e.blkIndent>=4)break;let Ve=!1;for(let Tt=0,Mn=ge.length;Tt<Mn;Tt++)if(ge[Tt](e,B,A,!0)){Ve=!0;break}if(Ve)break;if(v){if(T=jIa(e,B),T<0)break;d=e.bMarks[B]+e.tShift[B]}else if(T=PIa(e,B),T<0)break;if(K!==e.src.charCodeAt(T-1))break}if(v)h=e.push("ordered_list_close","ol",-1);else h=e.push("bullet_list_close","ul",-1);if(h.markup=String.fromCharCode(K),te[1]=B,e.line=B,e.parentType=me,E)tQi(e,P);return!0}function Jfn(e,a,A,o){let c=e.bMarks[a]+e.tShift[a],p=e.eMarks[a],d=a+1;if(e.sCount[a]-e.blkIndent>=4)return!1;if(e.src.charCodeAt(c)!==91)return!1;function h(ge){let me=e.lineMax;if(ge>=me||e.isEmpty(ge))return null;let ve=!1;if(e.sCount[ge]-e.blkIndent>3)ve=!0;if(e.sCount[ge]<0)ve=!0;if(!ve){let xe=e.md.block.ruler.getRules("reference"),Oe=e.parentType;e.parentType="reference";let st=!1;for(let Ct=0,ct=xe.length;Ct<ct;Ct++)if(xe[Ct](e,ge,me,!0)){st=!0;break}if(e.parentType=Oe,st)return null}let Ne=e.bMarks[ge]+e.tShift[ge],he=e.eMarks[ge];return e.src.slice(Ne,he+1)}let B=e.src.slice(c,p+1);p=B.length;let E=-1;for(c=1;c<p;c++){let ge=B.charCodeAt(c);if(ge===91)return!1;else if(ge===93){E=c;break}else if(ge===10){let me=h(d);if(me!==null)B+=me,p=B.length,d++}else if(ge===92){if(c++,c<p&&B.charCodeAt(c)===10){let me=h(d);if(me!==null)B+=me,p=B.length,d++}}}if(E<0||B.charCodeAt(E+1)!==58)return!1;for(c=E+2;c<p;c++){let ge=B.charCodeAt(c);if(ge===10){let me=h(d);if(me!==null)B+=me,p=B.length,d++}else if(bI(ge));else break}let k=e.md.helpers.parseLinkDestination(B,c,p);if(!k.ok)return!1;let v=e.md.normalizeLink(k.str);if(!e.md.validateLink(v))return!1;c=k.pos;let F=c,T=d,K=c;for(;c<p;c++){let ge=B.charCodeAt(c);if(ge===10){let me=h(d);if(me!==null)B+=me,p=B.length,d++}else if(bI(ge));else break}let P=e.md.helpers.parseLinkTitle(B,c,p);while(P.can_continue){let ge=h(d);if(ge===null)break;B+=ge,c=p,p=B.length,d++,P=e.md.helpers.parseLinkTitle(B,c,p,P)}let te;if(c<p&&K!==c&&P.ok)te=P.str,c=P.pos;else te="",c=F,d=T;while(c<p){let ge=B.charCodeAt(c);if(!bI(ge))break;c++}if(c<p&&B.charCodeAt(c)!==10){if(te){te="",c=F,d=T;while(c<p){let ge=B.charCodeAt(c);if(!bI(ge))break;c++}}}if(c<p&&B.charCodeAt(c)!==10)return!1;let ue=c3e(B.slice(1,E));if(!ue)return!1;if(o)return!0;if(typeof e.env.references>"u")e.env.references={};if(typeof e.env.references[ue]>"u")e.env.references[ue]={title:te,href:v};return e.line=d,!0}var HIa=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];var nQi=`(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*")`,aQi="(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*"+nQi+")?)",JIa="<[A-Za-z][A-Za-z0-9\\-]*"+aQi+"*\\s*\\/?>";var OIa=new RegExp("^(?:"+JIa+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),$Ia=new RegExp("^(?:"+JIa+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)");var p3e=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+HIa.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp($Ia.source+"\\s*$"),/^$/,!1]];function Ofn(e,a,A,o){let c=e.bMarks[a]+e.tShift[a],p=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(e.src.charCodeAt(c)!==60)return!1;let d=e.src.slice(c,p),h=0;for(;h<p3e.length;h++)if(p3e[h][0].test(d))break;if(h===p3e.length)return!1;if(o)return p3e[h][2];let B=a+1,E=p3e[h][1].test("");if(!p3e[h][1].test(d))for(;B<A;B++){if(e.sCount[B]<e.blkIndent){if(E||!e.isEmpty(B))break}if(c=e.bMarks[B]+e.tShift[B],p=e.eMarks[B],d=e.src.slice(c,p),p3e[h][1].test(d)){if(d.length!==0)B++;break}}e.line=B;let k=e.push("html_block","",0);return k.map=[a,B],k.content=e.getLines(a,B,e.blkIndent,!0),!0}function $fn(e,a,A,o){let c=e.bMarks[a]+e.tShift[a],p=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;let d=e.src.charCodeAt(c);if(d!==35||c>=p)return!1;let h=1;d=e.src.charCodeAt(++c);while(d===35&&c<p&&h<=6)h++,d=e.src.charCodeAt(++c);if(h>6||c<p&&!bI(d))return!1;if(o)return!0;p=e.skipSpacesBack(p,c);let B=e.skipCharsBack(p,35,c);if(B>c&&bI(e.src.charCodeAt(B-1)))p=B;e.line=a+1;let E=e.push("heading_open","h"+String(h),1);E.markup="########".slice(0,h),E.map=[a,e.line];let k=e.push("inline","",0);k.content=u3e(e.src.slice(c,p)),k.map=[a,e.line],k.children=[];let v=e.push("heading_close","h"+String(h),-1);return v.markup="########".slice(0,h),!0}function zfn(e,a,A){let o=e.md.block.ruler.getRules("paragraph");if(e.sCount[a]-e.blkIndent>=4)return!1;let c=e.parentType;e.parentType="paragraph";let p=0,d,h=a+1;for(;h<A&&!e.isEmpty(h);h++){if(e.sCount[h]-e.blkIndent>3)continue;if(e.sCount[h]>=e.blkIndent){let T=e.bMarks[h]+e.tShift[h],K=e.eMarks[h];if(T<K){if(d=e.src.charCodeAt(T),d===45||d===61){if(T=e.skipChars(T,d),T=e.skipSpaces(T),T>=K){p=d===61?1:2;break}}}}if(e.sCount[h]<0)continue;let F=!1;for(let T=0,K=o.length;T<K;T++)if(o[T](e,h,A,!0)){F=!0;break}if(F)break}if(!p)return e.parentType=c,!1;let B=u3e(e.getLines(a,h,e.blkIndent,!1));e.line=h+1;let E=e.push("heading_open","h"+String(p),1);E.markup=String.fromCharCode(d),E.map=[a,e.line];let k=e.push("inline","",0);k.content=B,k.map=[a,e.line-1],k.children=[];let v=e.push("heading_close","h"+String(p),-1);return v.markup=String.fromCharCode(d),e.parentType=c,!0}function Wfn(e,a,A){let o=e.md.block.ruler.getRules("paragraph"),c=e.parentType,p=a+1;e.parentType="paragraph";for(;p<A&&!e.isEmpty(p);p++){if(e.sCount[p]-e.blkIndent>3)continue;if(e.sCount[p]<0)continue;let E=!1;for(let k=0,v=o.length;k<v;k++)if(o[k](e,p,A,!0)){E=!0;break}if(E)break}let d=u3e(e.getLines(a,p,e.blkIndent,!1));e.line=p;let h=e.push("paragraph_open","p",1);h.map=[a,e.line];let B=e.push("inline","",0);return B.content=d,B.map=[a,e.line],B.children=[],e.push("paragraph_close","p",-1),e.parentType=c,!0}var C_t=[["table",Ufn,["paragraph","reference"]],["code",Kfn],["fence",Yfn,["paragraph","reference","blockquote","list"]],["blockquote",Pfn,["paragraph","reference","blockquote","list"]],["hr",jfn,["paragraph","reference","blockquote","list"]],["list",Hfn,["paragraph","reference","blockquote"]],["reference",Jfn],["html_block",Ofn,["paragraph","reference","blockquote"]],["heading",$fn,["paragraph","reference","blockquote"]],["lheading",zfn],["paragraph",Wfn]];function B_t(){this.ruler=new l3e;for(let e=0;e<C_t.length;e++)this.ruler.push(C_t[e][0],C_t[e][1],{alt:(C_t[e][2]||[]).slice()})}B_t.prototype.tokenize=function(e,a,A){let o=this.ruler.getRules(""),c=o.length,p=e.md.options.maxNesting,d=a,h=!1;while(d<A){if(e.line=d=e.skipEmptyLines(d),d>=A)break;if(e.sCount[d]<e.blkIndent)break;if(e.level>=p){e.line=A;break}let B=e.line,E=!1;for(let k=0;k<c;k++)if(E=o[k](e,d,A,!1),E){if(B>=e.line)throw Error("block rule didn't increment state.line");break}if(!E)throw Error("none of the block rules matched");if(e.tight=!h,e.isEmpty(e.line-1))h=!0;if(d=e.line,d<A&&e.isEmpty(d))h=!0,d++,e.line=d}};B_t.prototype.parse=function(e,a,A,o){if(!e)return;let c=new this.State(e,a,A,o);this.tokenize(c,c.line,c.lineMax)};B_t.prototype.State=KIa;var zIa=B_t;function jlt(e,a,A,o){this.src=e,this.env=A,this.md=a,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}jlt.prototype.pushPending=function(){let e=new ime("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};jlt.prototype.push=function(e,a,A){if(this.pending)this.pushPending();let o=new ime(e,a,A),c=null;if(A<0)this.level--,this.delimiters=this._prev_delimiters.pop();if(o.level=this.level,A>0)this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],c={delimiters:this.delimiters};return this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(c),o};jlt.prototype.scanDelims=function(e,a){let A=this.posMax,o=this.src.charCodeAt(e),c;if(e===0)c=32;else if(e===1){if(c=this.src.charCodeAt(0),(c&63488)===55296)c=65533}else if(c=this.src.charCodeAt(e-1),(c&64512)===56320){let te=this.src.charCodeAt(e-2);c=(te&64512)===55296?65536+(te-55296<<10)+(c-56320):65533}else if((c&64512)===55296)c=65533;let p=e;while(p<A&&this.src.charCodeAt(p)===o)p++;let d=p-e,h=p<A?this.src.charCodeAt(p):32;if((h&64512)===55296){let te=this.src.charCodeAt(p+1);h=(te&64512)===56320?65536+(h-55296<<10)+(te-56320):65533}else if((h&64512)===56320)h=65533;let B=s3e(c)||o3e(c),E=s3e(h)||o3e(h),k=r3e(c),v=r3e(h),F=!v&&(!E||k||B),T=!k&&(!B||v||E);return{can_open:F&&(a||!T||B),can_close:T&&(a||!F||E),length:d}};jlt.prototype.Token=ime;var WIa=jlt;function AQi(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Zfn(e,a){let A=e.pos;while(A<e.posMax&&!AQi(e.src.charCodeAt(A)))A++;if(A===e.pos)return!1;if(!a)e.pending+=e.src.slice(e.pos,A);return e.pos=A,!0}var iQi=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Vfn(e,a){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;let{pos:A,posMax:o}=e;if(A+3>o)return!1;if(e.src.charCodeAt(A)!==58)return!1;if(e.src.charCodeAt(A+1)!==47)return!1;if(e.src.charCodeAt(A+2)!==47)return!1;let c=e.pending.match(iQi);if(!c)return!1;let p=c[1],d=e.md.linkify.matchAtStart(e.src.slice(A-p.length));if(!d)return!1;let h=d.url;if(h.length<=p.length)return!1;let B=h.length;while(B>0&&h.charCodeAt(B-1)===42)B--;if(B!==h.length)h=h.slice(0,B);let E=e.md.normalizeLink(h);if(!e.md.validateLink(E))return!1;if(!a){e.pending=e.pending.slice(0,-p.length);let k=e.push("link_open","a",1);k.attrs=[["href",E]],k.markup="linkify",k.info="auto";let v=e.push("text","",0);v.content=e.md.normalizeLinkText(h);let F=e.push("link_close","a",-1);F.markup="linkify",F.info="auto"}return e.pos+=h.length-p.length,!0}function Xfn(e,a){let A=e.pos;if(e.src.charCodeAt(A)!==10)return!1;let o=e.pending.length-1,c=e.posMax;if(!a)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){let p=o-1;while(p>=1&&e.pending.charCodeAt(p-1)===32)p--;e.pending=e.pending.slice(0,p),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);A++;while(A<c&&bI(e.src.charCodeAt(A)))A++;return e.pos=A,!0}var ehn=[];for(let e=0;e<256;e++)ehn.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ehn[e.charCodeAt(0)]=1});function thn(e,a){let{pos:A,posMax:o}=e;if(e.src.charCodeAt(A)!==92)return!1;if(A++,A>=o)return!1;let c=e.src.charCodeAt(A);if(c===10){if(!a)e.push("hardbreak","br",0);A++;while(A<o){if(c=e.src.charCodeAt(A),!bI(c))break;A++}return e.pos=A,!0}if(c===32){if(!a){let h=e.push("text_special","",0);h.content="\\",h.markup="\\",h.info="escape"}return e.pos=A,!0}let p=e.src[A];if(c>=55296&&c<=56319&&A+1<o){let h=e.src.charCodeAt(A+1);if(h>=56320&&h<=57343)p+=e.src[A+1],A++}let d="\\"+p;if(!a){let h=e.push("text_special","",0);if(c<256&&ehn[c]!==0)h.content=p;else h.content=d;h.markup=d,h.info="escape"}return e.pos=A+1,!0}function nhn(e,a){let A=e.pos;if(e.src.charCodeAt(A)!==96)return!1;let c=A;A++;let p=e.posMax;while(A<p&&e.src.charCodeAt(A)===96)A++;let d=e.src.slice(c,A),h=d.length;if(e.backticksScanned&&(e.backticks[h]||0)<=c){if(!a)e.pending+=d;return e.pos+=h,!0}let B=A,E;while((E=e.src.indexOf("`",B))!==-1){B=E+1;while(B<p&&e.src.charCodeAt(B)===96)B++;let k=B-E;if(k===h){if(!a){let v=e.push("code_inline","code",0);v.markup=d,v.content=e.src.slice(A,E).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=B,!0}e.backticks[k]=E}if(e.backticksScanned=!0,!a)e.pending+=d;return e.pos+=h,!0}function rQi(e,a){let A=e.pos,o=e.src.charCodeAt(A);if(a)return!1;if(o!==126)return!1;let c=e.scanDelims(e.pos,!0),p=c.length,d=String.fromCharCode(o);if(p<2)return!1;let h;if(p%2)h=e.push("text","",0),h.content=d,p--;for(let B=0;B<p;B+=2)h=e.push("text","",0),h.content=d+d,e.delimiters.push({marker:o,length:0,token:e.tokens.length-1,end:-1,open:c.can_open,close:c.can_close});return e.pos+=c.length,!0}function ZIa(e,a){let A,o=[],c=a.length;for(let p=0;p<c;p++){let d=a[p];if(d.marker!==126)continue;if(d.end===-1)continue;let h=a[d.end];if(A=e.tokens[d.token],A.type="s_open",A.tag="s",A.nesting=1,A.markup="~~",A.content="",A=e.tokens[h.token],A.type="s_close",A.tag="s",A.nesting=-1,A.markup="~~",A.content="",e.tokens[h.token-1].type==="text"&&e.tokens[h.token-1].content==="~")o.push(h.token-1)}while(o.length){let p=o.pop(),d=p+1;while(d<e.tokens.length&&e.tokens[d].type==="s_close")d++;if(d--,p!==d)A=e.tokens[d],e.tokens[d]=e.tokens[p],e.tokens[p]=A}}function oQi(e){let a=e.tokens_meta,A=e.tokens_meta.length;ZIa(e,e.delimiters);for(let o=0;o<A;o++)if(a[o]&&a[o].delimiters)ZIa(e,a[o].delimiters)}var ahn={tokenize:rQi,postProcess:oQi};function sQi(e,a){let A=e.pos,o=e.src.charCodeAt(A);if(a)return!1;if(o!==95&&o!==42)return!1;let c=e.scanDelims(e.pos,o===42);for(let p=0;p<c.length;p++){let d=e.push("text","",0);d.content=String.fromCharCode(o),e.delimiters.push({marker:o,length:c.length,token:e.tokens.length-1,end:-1,open:c.can_open,close:c.can_close})}return e.pos+=c.length,!0}function VIa(e,a){let A=a.length;for(let o=A-1;o>=0;o--){let c=a[o];if(c.marker!==95&&c.marker!==42)continue;if(c.end===-1)continue;let p=a[c.end],d=o>0&&a[o-1].end===c.end+1&&a[o-1].marker===c.marker&&a[o-1].token===c.token-1&&a[c.end+1].token===p.token+1,h=String.fromCharCode(c.marker),B=e.tokens[c.token];B.type=d?"strong_open":"em_open",B.tag=d?"strong":"em",B.nesting=1,B.markup=d?h+h:h,B.content="";let E=e.tokens[p.token];if(E.type=d?"strong_close":"em_close",E.tag=d?"strong":"em",E.nesting=-1,E.markup=d?h+h:h,E.content="",d)e.tokens[a[o-1].token].content="",e.tokens[a[c.end+1].token].content="",o--}}function cQi(e){let a=e.tokens_meta,A=e.tokens_meta.length;VIa(e,e.delimiters);for(let o=0;o<A;o++)if(a[o]&&a[o].delimiters)VIa(e,a[o].delimiters)}var Ahn={tokenize:sQi,postProcess:cQi};function ihn(e,a){let A,o,c,p,d="",h="",B=e.pos,E=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let{pos:k,posMax:v}=e,F=e.pos+1,T=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(T<0)return!1;let K=T+1;if(K<v&&e.src.charCodeAt(K)===40){E=!1,K++;for(;K<v;K++)if(A=e.src.charCodeAt(K),!bI(A)&&A!==10)break;if(K>=v)return!1;if(B=K,c=e.md.helpers.parseLinkDestination(e.src,K,e.posMax),c.ok){if(d=e.md.normalizeLink(c.str),e.md.validateLink(d))K=c.pos;else d="";B=K;for(;K<v;K++)if(A=e.src.charCodeAt(K),!bI(A)&&A!==10)break;if(c=e.md.helpers.parseLinkTitle(e.src,K,e.posMax),K<v&&B!==K&&c.ok){h=c.str,K=c.pos;for(;K<v;K++)if(A=e.src.charCodeAt(K),!bI(A)&&A!==10)break}}if(K>=v||e.src.charCodeAt(K)!==41)E=!0;K++}if(E){if(typeof e.env.references>"u")return!1;if(K<v&&e.src.charCodeAt(K)===91)if(B=K+1,K=e.md.helpers.parseLinkLabel(e,K),K>=0)o=e.src.slice(B,K++);else K=T+1;else K=T+1;if(!o)o=e.src.slice(F,T);if(p=e.env.references[c3e(o)],!p)return e.pos=k,!1;d=p.href,h=p.title}if(!a){e.pos=F,e.posMax=T;let P=e.push("link_open","a",1),te=[["href",d]];if(P.attrs=te,h)te.push(["title",h]);e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=K,e.posMax=v,!0}function rhn(e,a){let A,o,c,p,d,h,B,E,k="",v=e.pos,F=e.posMax;if(e.src.charCodeAt(e.pos)!==33)return!1;if(e.src.charCodeAt(e.pos+1)!==91)return!1;let T=e.pos+2,K=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(K<0)return!1;if(p=K+1,p<F&&e.src.charCodeAt(p)===40){p++;for(;p<F;p++)if(A=e.src.charCodeAt(p),!bI(A)&&A!==10)break;if(p>=F)return!1;if(E=p,h=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),h.ok)if(k=e.md.normalizeLink(h.str),e.md.validateLink(k))p=h.pos;else k="";E=p;for(;p<F;p++)if(A=e.src.charCodeAt(p),!bI(A)&&A!==10)break;if(h=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<F&&E!==p&&h.ok){B=h.str,p=h.pos;for(;p<F;p++)if(A=e.src.charCodeAt(p),!bI(A)&&A!==10)break}else B="";if(p>=F||e.src.charCodeAt(p)!==41)return e.pos=v,!1;p++}else{if(typeof e.env.references>"u")return!1;if(p<F&&e.src.charCodeAt(p)===91)if(E=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0)c=e.src.slice(E,p++);else p=K+1;else p=K+1;if(!c)c=e.src.slice(T,K);if(d=e.env.references[c3e(c)],!d)return e.pos=v,!1;k=d.href,B=d.title}if(!a){o=e.src.slice(T,K);let P=[];e.md.inline.parse(o,e.md,e.env,P);let te=e.push("image","img",0),ue=[["src",k],["alt",""]];if(te.attrs=ue,te.children=P,te.content=o,B)ue.push(["title",B])}return e.pos=p,e.posMax=F,!0}var uQi=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,lQi=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function ohn(e,a){let A=e.pos;if(e.src.charCodeAt(A)!==60)return!1;let{pos:o,posMax:c}=e;for(;;){if(++A>=c)return!1;let d=e.src.charCodeAt(A);if(d===60)return!1;if(d===62)break}let p=e.src.slice(o+1,A);if(lQi.test(p)){let d=e.md.normalizeLink(p);if(!e.md.validateLink(d))return!1;if(!a){let h=e.push("link_open","a",1);h.attrs=[["href",d]],h.markup="autolink",h.info="auto";let B=e.push("text","",0);B.content=e.md.normalizeLinkText(p);let E=e.push("link_close","a",-1);E.markup="autolink",E.info="auto"}return e.pos+=p.length+2,!0}if(uQi.test(p)){let d=e.md.normalizeLink("mailto:"+p);if(!e.md.validateLink(d))return!1;if(!a){let h=e.push("link_open","a",1);h.attrs=[["href",d]],h.markup="autolink",h.info="auto";let B=e.push("text","",0);B.content=e.md.normalizeLinkText(p);let E=e.push("link_close","a",-1);E.markup="autolink",E.info="auto"}return e.pos+=p.length+2,!0}return!1}function pQi(e){return/^<a[>\s]/i.test(e)}function gQi(e){return/^<\/a\s*>/i.test(e)}function dQi(e){let a=e|32;return a>=97&&a<=122}function shn(e,a){if(!e.md.options.html)return!1;let{posMax:A,pos:o}=e;if(e.src.charCodeAt(o)!==60||o+2>=A)return!1;let c=e.src.charCodeAt(o+1);if(c!==33&&c!==63&&c!==47&&!dQi(c))return!1;let p=e.src.slice(o).match(OIa);if(!p)return!1;if(!a){let d=e.push("html_inline","",0);if(d.content=p[0],pQi(d.content))e.linkLevel++;if(gQi(d.content))e.linkLevel--}return e.pos+=p[0].length,!0}var mQi=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,fQi=/^&([a-z][a-z0-9]{1,31});/i;function chn(e,a){let{pos:A,posMax:o}=e;if(e.src.charCodeAt(A)!==38)return!1;if(A+1>=o)return!1;if(e.src.charCodeAt(A+1)===35){let p=e.src.slice(A).match(mQi);if(p){if(!a){let d=p[1][0].toLowerCase()==="x"?parseInt(p[1].slice(1),16):parseInt(p[1],10),h=e.push("text_special","",0);h.content=h_t(d)?K6e(d):K6e(65533),h.markup=p[0],h.info="entity"}return e.pos+=p[0].length,!0}}else{let p=e.src.slice(A).match(fQi);if(p){let d=Plt(p[0]);if(d!==p[0]){if(!a){let h=e.push("text_special","",0);h.content=d,h.markup=p[0],h.info="entity"}return e.pos+=p[0].length,!0}}}return!1}function XIa(e){let a={},A=e.length;if(!A)return;let o=0,c=-2,p=[];for(let d=0;d<A;d++){let h=e[d];if(p.push(0),e[o].marker!==h.marker||c!==h.token-1)o=d;if(c=h.token,h.length=h.length||0,!h.close)continue;if(!a.hasOwnProperty(h.marker))a[h.marker]=[-1,-1,-1,-1,-1,-1];let B=a[h.marker][(h.open?3:0)+h.length%3],E=o-p[o]-1,k=E;for(;E>B;E-=p[E]+1){let v=e[E];if(v.marker!==h.marker)continue;if(v.open&&v.end<0){let F=!1;if(v.close||h.open){if((v.length+h.length)%3===0){if(v.length%3!==0||h.length%3!==0)F=!0}}if(!F){let T=E>0&&!e[E-1].open?p[E-1]+1:0;p[d]=d-E+T,p[E]=T,h.open=!1,v.end=d,v.close=!1,k=-1,c=-2;break}}}if(k!==-1)a[h.marker][(h.open?3:0)+(h.length||0)%3]=k}}function uhn(e){let a=e.tokens_meta,A=e.tokens_meta.length;XIa(e.delimiters);for(let o=0;o<A;o++)if(a[o]&&a[o].delimiters)XIa(a[o].delimiters)}function lhn(e){let a,A,o=0,c=e.tokens,p=e.tokens.length;for(a=A=0;a<p;a++){if(c[a].nesting<0)o--;if(c[a].level=o,c[a].nesting>0)o++;if(c[a].type==="text"&&a+1<p&&c[a+1].type==="text")c[a+1].content=c[a].content+c[a+1].content;else{if(a!==A)c[A]=c[a];A++}}if(a!==A)c.length=A}var phn=[["text",Zfn],["linkify",Vfn],["newline",Xfn],["escape",thn],["backticks",nhn],["strikethrough",ahn.tokenize],["emphasis",Ahn.tokenize],["link",ihn],["image",rhn],["autolink",ohn],["html_inline",shn],["entity",chn]],ghn=[["balance_pairs",uhn],["strikethrough",ahn.postProcess],["emphasis",Ahn.postProcess],["fragments_join",lhn]];function Hlt(){this.ruler=new l3e;for(let e=0;e<phn.length;e++)this.ruler.push(phn[e][0],phn[e][1]);this.ruler2=new l3e;for(let e=0;e<ghn.length;e++)this.ruler2.push(ghn[e][0],ghn[e][1])}Hlt.prototype.skipToken=function(e){let a=e.pos,A=this.ruler.getRules(""),o=A.length,c=e.md.options.maxNesting,p=e.cache;if(typeof p[a]<"u"){e.pos=p[a];return}let d=!1;if(e.level<c){for(let h=0;h<o;h++)if(e.level++,d=A[h](e,!0),e.level--,d){if(a>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;if(!d)e.pos++;p[a]=e.pos};Hlt.prototype.tokenize=function(e){let a=this.ruler.getRules(""),A=a.length,o=e.posMax,c=e.md.options.maxNesting;while(e.pos<o){let p=e.pos,d=!1;if(e.level<c){for(let h=0;h<A;h++)if(d=a[h](e,!1),d){if(p>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(d){if(e.pos>=o)break;continue}e.pending+=e.src[e.pos++]}if(e.pending)e.pushPending()};Hlt.prototype.parse=function(e,a,A,o){let c=new this.State(e,a,A,o);this.tokenize(c);let p=this.ruler2.getRules(""),d=p.length;for(let h=0;h<d;h++)p[h](c)};Hlt.prototype.State=WIa;var eya=Hlt;function dhn(e){let a={};e=e||{},a.src_Any=p_t.source,a.src_Cc=g_t.source,a.src_Z=m_t.source,a.src_P=R6e.source,a.src_ZPCc=[a.src_Z,a.src_P,a.src_Cc].join("|"),a.src_ZCc=[a.src_Z,a.src_Cc].join("|");let A="[><\uFF5C]";return a.src_pseudo_letter=`(?:(?!${A}|${a.src_ZPCc})${a.src_Any})`,a.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",a.src_auth=`(?:(?:(?!${a.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,a.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",a.src_host_terminator=`(?=$|${A}|${a.src_ZPCc})(?!${e["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${a.src_ZPCc}))`,a.src_path=`(?:[/?#](?:(?!${a.src_ZCc}|${A}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${a.src_ZCc}|\\]).)*\\]|\\((?:(?!${a.src_ZCc}|[)]).)*\\)|\\{(?:(?!${a.src_ZCc}|[}]).)*\\}|\\"(?:(?!${a.src_ZCc}|["]).)+\\"|\\'(?:(?!${a.src_ZCc}|[']).)+\\'|\\'(?=${a.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${a.src_ZCc}|[.]|$)|`+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${a.src_ZCc}|$)|;(?!${a.src_ZCc}|$)|\\!+(?!${a.src_ZCc}|[!]|$)|\\?(?!${a.src_ZCc}|[?]|$))+|\\/)?`,a.src_email_name="[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\\"\\.a-zA-Z0-9_]{0,63}",a.src_xn="xn--[a-z0-9\\-]{1,59}",a.src_domain_root="(?:"+a.src_xn+`|${a.src_pseudo_letter}{1,63})`,a.src_domain="(?:"+a.src_xn+`|(?:${a.src_pseudo_letter})|(?:${a.src_pseudo_letter}(?:-|${a.src_pseudo_letter}){0,61}${a.src_pseudo_letter}))`,a.src_host=`(?:(?:(?:(?:${a.src_domain})\\.)*${a.src_domain}))`,a.tpl_host_fuzzy="(?:"+a.src_ip4+`|(?:(?:(?:${a.src_domain})\\.)+(?:%TLDS%)))`,a.tpl_host_no_ip_fuzzy=`(?:(?:(?:${a.src_domain})\\.)+(?:%TLDS%))`,a.src_host_strict=a.src_host+a.src_host_terminator,a.tpl_host_fuzzy_strict=a.tpl_host_fuzzy+a.src_host_terminator,a.src_host_port_strict=a.src_host+a.src_port+a.src_host_terminator,a.tpl_host_port_fuzzy_strict=a.tpl_host_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_port_no_ip_fuzzy_strict=a.tpl_host_no_ip_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${a.src_ZPCc}|>|$))`,a.tpl_email_fuzzy=`(^|${A}|"|\\(|${a.src_ZCc})(${a.src_email_name}@${a.tpl_host_fuzzy_strict})`,a.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uFF5C]|${a.src_ZPCc}))`+`((?![$+<=>^\`|\uFF5C])${a.tpl_host_port_fuzzy_strict}${a.src_path})`,a.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uFF5C]|${a.src_ZPCc}))`+`((?![$+<=>^\`|\uFF5C])${a.tpl_host_port_no_ip_fuzzy_strict}${a.src_path})`,a}function mhn(e){return Array.prototype.slice.call(arguments,1).forEach(function(A){if(!A)return;Object.keys(A).forEach(function(o){e[o]=A[o]})}),e}function y_t(e){return Object.prototype.toString.call(e)}function hQi(e){return y_t(e)==="[object String]"}function bQi(e){return y_t(e)==="[object Object]"}function CQi(e){return y_t(e)==="[object RegExp]"}function tya(e){return y_t(e)==="[object Function]"}function BQi(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var aya={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function IQi(e){return Object.keys(e||{}).reduce(function(a,A){return a||aya.hasOwnProperty(A)},!1)}var yQi={"http:":{validate:function(e,a,A){let o=e.slice(a);if(!A.re.http)A.re.http=new RegExp(`^\\/\\/${A.re.src_auth}${A.re.src_host_port_strict}${A.re.src_path}`,"i");if(A.re.http.test(o))return o.match(A.re.http)[0].length;return 0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,a,A){let o=e.slice(a);if(!A.re.no_http)A.re.no_http=new RegExp("^"+A.re.src_auth+`(?:localhost|(?:(?:${A.re.src_domain})\\.)+${A.re.src_domain_root})`+A.re.src_port+A.re.src_host_terminator+A.re.src_path,"i");if(A.re.no_http.test(o)){if(a>=3&&e[a-3]===":")return 0;if(a>=3&&e[a-3]==="/")return 0;return o.match(A.re.no_http)[0].length}return 0}},"mailto:":{validate:function(e,a,A){let o=e.slice(a);if(!A.re.mailto)A.re.mailto=new RegExp(`^${A.re.src_email_name}@${A.re.src_host_strict}`,"i");if(A.re.mailto.test(o))return o.match(A.re.mailto)[0].length;return 0}}},EQi="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",_Qi="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function QQi(e){return function(a,A){let o=a.slice(A);if(e.test(o))return o.match(e)[0].length;return 0}}function nya(){return function(e,a){a.normalize(e)}}function I_t(e){let a=e.re=dhn(e.__opts__),A=e.__tlds__.slice();if(e.onCompile(),!e.__tlds_replaced__)A.push(EQi);A.push(a.src_xn),a.src_tlds=A.join("|");function o(h){return h.replace("%TLDS%",a.src_tlds)}a.email_fuzzy=RegExp(o(a.tpl_email_fuzzy),"i"),a.email_fuzzy_global=RegExp(o(a.tpl_email_fuzzy),"ig"),a.link_fuzzy=RegExp(o(a.tpl_link_fuzzy),"i"),a.link_fuzzy_global=RegExp(o(a.tpl_link_fuzzy),"ig"),a.link_no_ip_fuzzy=RegExp(o(a.tpl_link_no_ip_fuzzy),"i"),a.link_no_ip_fuzzy_global=RegExp(o(a.tpl_link_no_ip_fuzzy),"ig"),a.host_fuzzy_test=RegExp(o(a.tpl_host_fuzzy_test),"i");let c=[];e.__compiled__={};function p(h,B){throw Error(`(LinkifyIt) Invalid schema "${h}": ${B}`)}Object.keys(e.__schemas__).forEach(function(h){let B=e.__schemas__[h];if(B===null)return;let E={validate:null,link:null};if(e.__compiled__[h]=E,bQi(B)){if(CQi(B.validate))E.validate=QQi(B.validate);else if(tya(B.validate))E.validate=B.validate;else p(h,B);if(tya(B.normalize))E.normalize=B.normalize;else if(!B.normalize)E.normalize=nya();else p(h,B);return}if(hQi(B)){c.push(h);return}p(h,B)}),c.forEach(function(h){if(!e.__compiled__[e.__schemas__[h]])return;e.__compiled__[h].validate=e.__compiled__[e.__schemas__[h]].validate,e.__compiled__[h].normalize=e.__compiled__[e.__schemas__[h]].normalize}),e.__compiled__[""]={validate:null,normalize:nya()};let d=Object.keys(e.__compiled__).filter(function(h){return h.length>0&&e.__compiled__[h]}).map(BQi).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uFF5C]|${a.src_ZPCc}))(${d})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uFF5C]|${a.src_ZPCc}))(${d})`,"ig"),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,"i"),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,"i")}function Aya(e,a,A,o){let c=e.slice(A,o);this.schema=a.toLowerCase(),this.index=A,this.lastIndex=o,this.raw=c,this.text=c,this.url=c}function Ej(e,a){if(!(this instanceof Ej))return new Ej(e,a);if(!a){if(IQi(e))a=e,e={}}this.__opts__=mhn({},aya,a),this.__schemas__=mhn({},yQi,e),this.__compiled__={},this.__tlds__=_Qi,this.__tlds_replaced__=!1,this.re={},I_t(this)}Ej.prototype.add=function(a,A){return this.__schemas__[a]=A,I_t(this),this};Ej.prototype.set=function(a){return this.__opts__=mhn(this.__opts__,a),this};Ej.prototype.test=function(a){if(!a.length)return!1;let A,o;if(this.re.schema_test.test(a)){o=this.re.schema_search,o.lastIndex=0;while((A=o.exec(a))!==null)if(this.testSchemaAt(a,A[2],o.lastIndex))return!0}if(this.__opts__.fuzzyLink&&this.__compiled__["http:"]){if(a.search(this.re.host_fuzzy_test)>=0){if(a.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null)return!0}}if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]){if(a.indexOf("@")>=0){if(a.match(this.re.email_fuzzy)!==null)return!0}}return!1};Ej.prototype.pretest=function(a){return this.re.pretest.test(a)};Ej.prototype.testSchemaAt=function(a,A,o){if(!this.__compiled__[A.toLowerCase()])return 0;return this.__compiled__[A.toLowerCase()].validate(a,o,this)};Ej.prototype.match=function(a){let A=[],o=[],c=[],p=[],d,h,B;function E(F,T){if(!F)return T;if(!T)return F;if(F.index!==T.index)return F.index<T.index?F:T;return F.lastIndex>=T.lastIndex?F:T}if(!a.length)return null;if(this.re.schema_test.test(a)){B=this.re.schema_search,B.lastIndex=0;while((d=B.exec(a))!==null)if(h=this.testSchemaAt(a,d[2],B.lastIndex),h)o.push({schema:d[2],index:d.index+d[1].length,lastIndex:d.index+d[0].length+h})}if(this.__opts__.fuzzyLink&&this.__compiled__["http:"]){B=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,B.lastIndex=0;while((d=B.exec(a))!==null)c.push({schema:"",index:d.index+d[1].length,lastIndex:d.index+d[0].length})}if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]){B=this.re.email_fuzzy_global,B.lastIndex=0;while((d=B.exec(a))!==null)p.push({schema:"mailto:",index:d.index+d[1].length,lastIndex:d.index+d[0].length})}let k=[0,0,0],v=0;for(;;){let F=[o[k[0]],p[k[1]],c[k[2]]],T=E(E(F[0],F[1]),F[2]);if(!T)break;if(T===F[0])k[0]++;else if(T===F[1])k[1]++;else k[2]++;if(T.index<v)continue;let K=new Aya(a,T.schema,T.index,T.lastIndex);this.__compiled__[K.schema].normalize(K,this),A.push(K),v=T.lastIndex}if(A.length)return A;return null};Ej.prototype.matchAtStart=function(a){if(!a.length)return null;let A=this.re.schema_at_start.exec(a);if(!A)return null;let o=this.testSchemaAt(a,A[2],A[0].length);if(!o)return null;let c=new Aya(a,A[2],A.index+A[1].length,A.index+A[0].length+o);return this.__compiled__[c.schema].normalize(c,this),c};Ej.prototype.tlds=function(a,A){if(a=Array.isArray(a)?a:[a],!A)return this.__tlds__=a.slice(),this.__tlds_replaced__=!0,I_t(this),this;return this.__tlds__=this.__tlds__.concat(a).sort().filter(function(o,c,p){return o!==p[c-1]}).reverse(),I_t(this),this};Ej.prototype.normalize=function(a){if(!a.schema)a.url=`http://${a.url}`;if(a.schema==="mailto:"&&!/^mailto:/i.test(a.url))a.url=`mailto:${a.url}`};Ej.prototype.onCompile=function(){};var iya=Ej;var wQi=/^xn--/,kQi=/[^\0-\x7F]/,DQi=/[\x2E\u3002\uFF0E\uFF61]/g,xQi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var Nte=Math.floor,fhn=String.fromCharCode;function Rhe(e){throw RangeError(xQi[e])}function vQi(e,a){let A=[],o=e.length;while(o--)A[o]=a(e[o]);return A}function oya(e,a){let A=e.split("@"),o="";if(A.length>1)o=A[0]+"@",e=A[1];e=e.replace(DQi,".");let c=e.split("."),p=vQi(c,a).join(".");return o+p}function sya(e){let a=[],A=0,o=e.length;while(A<o){let c=e.charCodeAt(A++);if(c>=55296&&c<=56319&&A<o){let p=e.charCodeAt(A++);if((p&64512)==56320)a.push(((c&1023)<<10)+(p&1023)+65536);else a.push(c),A--}else a.push(c)}return a}var FQi=(e)=>String.fromCodePoint(...e),SQi=function(e){if(e>=48&&e<58)return 26+(e-48);if(e>=65&&e<91)return e-65;if(e>=97&&e<123)return e-97;return 36},rya=function(e,a){return e+22+75*(e<26)-((a!=0)<<5)},cya=function(e,a,A){let o=0;e=A?Nte(e/700):e>>1,e+=Nte(e/a);for(;e>455;o+=36)e=Nte(e/35);return Nte(o+36*e/(e+38))},uya=function(e){let a=[],A=e.length,o=0,c=128,p=72,d=e.lastIndexOf("-");if(d<0)d=0;for(let h=0;h<d;++h){if(e.charCodeAt(h)>=128)Rhe("not-basic");a.push(e.charCodeAt(h))}for(let h=d>0?d+1:0;h<A;){let B=o;for(let k=1,v=36;;v+=36){if(h>=A)Rhe("invalid-input");let F=SQi(e.charCodeAt(h++));if(F>=36)Rhe("invalid-input");if(F>Nte((2147483647-o)/k))Rhe("overflow");o+=F*k;let T=v<=p?1:v>=p+26?26:v-p;if(F<T)break;let K=36-T;if(k>Nte(2147483647/K))Rhe("overflow");k*=K}let E=a.length+1;if(p=cya(o-B,E,B==0),Nte(o/E)>2147483647-c)Rhe("overflow");c+=Nte(o/E),o%=E,a.splice(o++,0,c)}return String.fromCodePoint(...a)},lya=function(e){let a=[];e=sya(e);let A=e.length,o=128,c=0,p=72;for(let B of e)if(B<128)a.push(fhn(B));let d=a.length,h=d;if(d)a.push("-");while(h<A){let B=2147483647;for(let k of e)if(k>=o&&k<B)B=k;let E=h+1;if(B-o>Nte((2147483647-c)/E))Rhe("overflow");c+=(B-o)*E,o=B;for(let k of e){if(k<o&&++c>2147483647)Rhe("overflow");if(k===o){let v=c;for(let F=36;;F+=36){let T=F<=p?1:F>=p+26?26:F-p;if(v<T)break;let K=v-T,P=36-T;a.push(fhn(rya(T+K%P,0))),v=Nte(K/P)}a.push(fhn(rya(v,0))),p=cya(c,E,h===d),c=0,++h}}++c,++o}return a.join("")},NQi=function(e){return oya(e,function(a){return wQi.test(a)?uya(a.slice(4).toLowerCase()):a})},MQi=function(e){return oya(e,function(a){return kQi.test(a)?"xn--"+lya(a):a})},GQi={version:"2.3.1",ucs2:{decode:sya,encode:FQi},decode:uya,encode:lya,toASCII:MQi,toUnicode:NQi};var hhn=GQi;var pya={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}};var gya={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}};var dya={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}};var LQi={default:pya,zero:gya,commonmark:dya},TQi=/^(vbscript|javascript|file|data):/,qQi=/^data:image\/(gif|png|jpeg|webp);/;function RQi(e){let a=e.trim().toLowerCase();return TQi.test(a)?qQi.test(a):!0}var mya=["http:","https:","mailto:"];function UQi(e){let a=Klt(e,!0);if(a.hostname){if(!a.protocol||mya.indexOf(a.protocol)>=0)try{a.hostname=hhn.toASCII(a.hostname)}catch(A){}}return c_t(q6e(a))}function KQi(e){let a=Klt(e,!0);if(a.hostname){if(!a.protocol||mya.indexOf(a.protocol)>=0)try{a.hostname=hhn.toUnicode(a.hostname)}catch(A){}}return Ult(q6e(a),Ult.defaultChars+"%")}function zH(e,a){if(!(this instanceof zH))return new zH(e,a);if(!a){if(!f_t(e))a=e||{},e="default"}if(this.inline=new eya,this.block=new zIa,this.core=new UIa,this.renderer=new MIa,this.linkify=new iya,this.validateLink=RQi,this.normalizeLink=UQi,this.normalizeLinkText=KQi,this.utils=Qfn,this.helpers=U6e({},xfn),this.options={},this.configure(e),a)this.set(a)}zH.prototype.set=function(e){return U6e(this.options,e),this};zH.prototype.configure=function(e){let a=this;if(f_t(e)){let A=e;if(e=LQi[A],!e)throw Error('Wrong `markdown-it` preset "'+A+'", check name')}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");if(e.options)a.set(e.options);if(e.components)Object.keys(e.components).forEach(function(A){if(e.components[A].rules)a[A].ruler.enableOnly(e.components[A].rules);if(e.components[A].rules2)a[A].ruler2.enableOnly(e.components[A].rules2)});return this};zH.prototype.enable=function(e,a){let A=[];if(!Array.isArray(e))e=[e];["core","block","inline"].forEach(function(c){A=A.concat(this[c].ruler.enable(e,!0))},this),A=A.concat(this.inline.ruler2.enable(e,!0));let o=e.filter(function(c){return A.indexOf(c)<0});if(o.length&&!a)throw Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};zH.prototype.disable=function(e,a){let A=[];if(!Array.isArray(e))e=[e];["core","block","inline"].forEach(function(c){A=A.concat(this[c].ruler.disable(e,!0))},this),A=A.concat(this.inline.ruler2.disable(e,!0));let o=e.filter(function(c){return A.indexOf(c)<0});if(o.length&&!a)throw Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};zH.prototype.use=function(e){let a=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,a),this};zH.prototype.parse=function(e,a){if(typeof e!=="string")throw Error("Input data should be a String");let A=new this.core.State(e,this,a);return this.core.process(A),A.tokens};zH.prototype.render=function(e,a){return a=a||{},this.renderer.render(this.parse(e,a),this.options,a)};zH.prototype.parseInline=function(e,a){let A=new this.core.State(e,this,a);return A.inlineMode=!0,this.core.process(A),A.tokens};zH.prototype.renderInline=function(e,a){return a=a||{},this.renderer.render(this.parseInline(e,a),this.options,a)};var bhn=zH;var YQi=wm.defineComponent,BU=wm.toDisplayString,PQi=wm.createElementVNode;var jQi=wm.createCommentVNode,J0=wm.openBlock,O0=wm.createElementBlock;var j6e=wm.renderList,g3e=wm.Fragment;var fya=wm.normalizeStyle;var HQi=wm.unref;var hya={"data-v-1c696509\x00.axon-markdown":{display:"flex",flexDirection:"column",gap:1,width:"100%",marginBottom:1},"data-v-1c696509\x00.h":{width:"100%",flexShrink:0,flexGrow:0},"data-v-1c696509\x00.h1":{visualStyles:{fg:"#7cceff"}},"data-v-1c696509\x00.h2":{visualStyles:{fg:"#5bb8ee"}},"data-v-1c696509\x00.h3":{visualStyles:{fg:"#4aa8dd"}},"data-v-1c696509\x00.h4":{visualStyles:{fg:"#3a98cc"}},"data-v-1c696509\x00.h5":{visualStyles:{fg:"#2a88bb"}},"data-v-1c696509\x00.h6":{visualStyles:{fg:"#1a78aa"}},"data-v-1c696509\x00.p":{width:"100%",flexShrink:0,flexGrow:0},"data-v-1c696509\x00.blockquote":{width:"100%",visualStyles:{fg:"#8899aa"},flexShrink:0,flexGrow:0},"data-v-1c696509\x00.list":{display:"flex",flexDirection:"column",width:"100%",flexShrink:0,flexGrow:0},"data-v-1c696509\x00.list-item":{width:"100%",flexShrink:0,flexGrow:0},"data-v-1c696509\x00.table":{display:"flex",flexDirection:"column",width:"100%",flexShrink:0,flexGrow:0},"data-v-1c696509\x00.table-row":{display:"flex",flexDirection:"row",gap:1},"data-v-1c696509\x00.table-header":{visualStyles:{fg:"#5bb8ee"}},"data-v-1c696509\x00.table-cell":{width:24},"data-v-1c696509\x00.code-block":{width:"100%",flexShrink:0,flexGrow:0},"data-v-1c696509\x00.rule":{flexShrink:0,flexGrow:0,borderBottomWidth:1,borderBottomColor:"#2a3a4a"}},bya=YQi({__name:"markdown",props:{text:{type:String,required:!0}},setup(e){let a=e,A=new bhn({html:!1,linkify:!1,typographer:!1});function o(d){if(!d?.children)return d?.content??"";let h="";for(let B of d.children)if(B.type==="text"||B.type==="code_inline")h+=B.content;else if(B.type==="softbreak"||B.type==="hardbreak")h+=" ";return h}function c(d){let h=A.parse(d,{}),B=[],E=0;while(E<h.length){let k=h[E];if(k.type==="heading_open"){let v=Number(k.tag.slice(1)),F=h[E+1];B.push({kind:"heading",level:v,text:o(F)}),E+=3;continue}if(k.type==="paragraph_open"){let v=h[E+1];B.push({kind:"paragraph",text:o(v)}),E+=3;continue}if(k.type==="blockquote_open"){let v=[];E++;while(h[E]&&h[E].type!=="blockquote_close"){if(h[E].type==="inline")v.push(o(h[E]));E++}E++,B.push({kind:"blockquote",text:v.join(" ")});continue}if(k.type==="bullet_list_open"||k.type==="ordered_list_open"){let v=k.type==="ordered_list_open",F=v?"ordered_list_close":"bullet_list_close",T=[],K=0;E++;while(h[E]&&h[E].type!==F){if(h[E].type==="list_item_open"){K++;let P=Math.min(Math.floor((h[E].level??0)/2),2);E++;let te=[];while(h[E]&&h[E].type!=="list_item_close"){if(h[E].type==="inline")te.push(o(h[E]));E++}T.push({text:te.join(" "),depth:P,index:K})}E++}E++,B.push({kind:"list",ordered:v,items:T});continue}if(k.type==="table_open"){let v=[],F=[];E++;while(h[E]&&h[E].type!=="table_close")if(h[E].type==="thead_open"){E++;while(h[E]&&h[E].type!=="thead_close"){if(h[E].type==="inline")v.push(o(h[E]));E++}}else if(h[E].type==="tbody_open"){E++;while(h[E]&&h[E].type!=="tbody_close"){if(h[E].type==="tr_open"){E++;let T=[];while(h[E]&&h[E].type!=="tr_close"){if(h[E].type==="inline")T.push(o(h[E]));E++}F.push(T)}E++}}else E++;E++,B.push({kind:"table",headers:v,rows:F});continue}if(k.type==="fence"||k.type==="code_block"){B.push({kind:"code",lang:k.info.trim()||"text",code:k.content.replace(/\n$/,"")}),E++;continue}if(k.type==="hr"){B.push({kind:"rule"}),E++;continue}E++}return B}let p=wm.computed(()=>c(a.text));return(d,h)=>{return J0(),O0("div",{class:"axon-markdown"},[(J0(!0),O0(g3e,null,j6e(HQi(p),(B,E)=>{return J0(),O0(g3e,{key:`${B.kind}-${E}`},[B.kind==="heading"&&B.level===1?(J0(),O0("h1",{key:0,class:"h h1"},BU(B.text),1)):B.kind==="heading"&&B.level===2?(J0(),O0("h2",{key:1,class:"h h2"},BU(B.text),1)):B.kind==="heading"&&B.level===3?(J0(),O0("h3",{key:2,class:"h h3"},BU(B.text),1)):B.kind==="heading"&&B.level===4?(J0(),O0("h4",{key:3,class:"h h4"},BU(B.text),1)):B.kind==="heading"&&B.level===5?(J0(),O0("h5",{key:4,class:"h h5"},BU(B.text),1)):B.kind==="heading"&&B.level===6?(J0(),O0("h6",{key:5,class:"h h6"},BU(B.text),1)):B.kind==="paragraph"?(J0(),O0("p",{key:6,class:"p"},BU(B.text),1)):B.kind==="blockquote"?(J0(),O0("div",{key:7,class:"blockquote"},"\u258C "+BU(B.text),1)):B.kind==="list"&&!B.ordered?(J0(),O0("div",{key:8,class:"list"},[(J0(!0),O0(g3e,null,j6e(B.items,(k,v)=>{return J0(),O0("div",{key:v,class:"list-item",style:fya({paddingLeft:k.depth*2})},"\u2022 "+BU(k.text),5)}),128))])):B.kind==="list"&&B.ordered?(J0(),O0("div",{key:9,class:"list"},[(J0(!0),O0(g3e,null,j6e(B.items,(k,v)=>{return J0(),O0("div",{key:v,class:"list-item",style:fya({paddingLeft:k.depth*2})},BU(k.index)+". "+BU(k.text),5)}),128))])):B.kind==="table"?(J0(),O0("div",{key:10,class:"table"},[PQi("div",{class:"table-row table-header"},[(J0(!0),O0(g3e,null,j6e(B.headers,(k,v)=>{return J0(),O0("div",{key:v,class:"table-cell"},BU(k),1)}),128))]),(J0(!0),O0(g3e,null,j6e(B.rows,(k,v)=>{return J0(),O0("div",{key:v,class:"table-row"},[(J0(!0),O0(g3e,null,j6e(k,(F,T)=>{return J0(),O0("div",{key:T,class:"table-cell"},BU(F),1)}),128))])}),128))])):B.kind==="code"?(J0(),O0("code",{key:11,lang:B.lang,class:"code-block"},BU(B.code),9,["lang"])):B.kind==="rule"?(J0(),O0("div",{key:12,class:"rule"})):jQi("v-if",!0)],64)}),128))])}}});bya.__scopeId="data-v-1c696509";var Cya=bya;var Xf=$d(Vf(),1);var JQi=Xf.defineComponent,Bya=Xf.toDisplayString,Iya=Xf.createElementVNode;var OQi=Xf.openBlock,$Qi=Xf.createElementBlock;var yya={"data-v-7896df58\x00.info":{display:"flex",gap:1,marginBottom:1},"data-v-7896df58\x00.bar":{width:1,visualStyles:{fg:"#00b4d8"}},"data-v-7896df58\x00.label":{visualStyles:{fg:"#646464"}},"data-v-7896df58\x00.detail":{visualStyles:{fg:"#646464"}}},Eya=JQi({__name:"info-event",props:{label:{type:String,required:!0},detail:{type:String,required:!1}},setup(e){return(a,A)=>{return OQi(),$Qi("div",{class:"info"},[Iya("p",{class:"bar"},"|"),Iya("p",{class:"label"},Bya(e.label)+" "+Bya(e.detail||""),1)])}}});Eya.__scopeId="data-v-7896df58";var E_t=Eya;var Ug=$d(Vf(),1);var zQi=Ug.defineComponent,_ya=Ug.toDisplayString,Qya=Ug.createElementVNode;var wya=Ug.createCommentVNode,Chn=Ug.openBlock,Bhn=Ug.createElementBlock;var WQi=Ug.Fragment,ZQi=Ug.normalizeClass,VQi=Ug.normalizeStyle;var XQi=Ug.resolveComponent;var rme=Ug.unref;var ewi=Ug.createVNode;var Dya={"data-v-5de0ff93\x00.row":{width:"100%",height:1,display:"flex",paddingLeft:1},"data-v-5de0ff93\x00.label":{flexGrow:1,flexShrink:1,flexBasis:0,scrollable:!1,visualStyles:{fg:"#828282"},hover:{visualStyles:{fg:"#bebebe"}}},"data-v-5de0ff93\x00.label.pending":{visualStyles:{fg:"#646464"}},"data-v-5de0ff93\x00.label.failed":{visualStyles:{fg:"#c85a5a"}},"data-v-5de0ff93\x00.block":{display:"flex",flexDirection:"column",borderLeftWidth:1,borderLeftColor:"grey",width:"100%",marginLeft:1,paddingLeft:1},"data-v-5de0ff93\x00.diff":{width:"100%"},"data-v-5de0ff93\x00.diff-more":{width:"100%",height:1,scrollable:!1,visualStyles:{fg:"#555555"}}},kya=8,xya=zQi({__name:"activity-row",props:{row:{type:null,required:!0}},setup(e){let a=e,A=Mhe(),o=Ug.computed(()=>a.row.phase==="declared"),c=Ug.computed(()=>a.row.phase==="failed"),p={"file:read":"\u2261","file:write":"~","file:patch":"~","file:delete":"\u2715","file:move":"\u2192","file:search":"\u2315","proc:exec":"\xBB",http:"\u2197",speech:"\u266A",note:"\xB7"},d=Ug.computed(()=>o.value?A.frame.value??"\xB7":p[a.row.activity]??"\xB7"),h={"file:read":["reading","read"],"file:write":["writing","wrote"],"file:patch":["patching","patched"],"file:delete":["deleting","deleted"],"file:move":["moving","moved"],"file:search":["searching","searched"],"proc:exec":["running","ran"],http:["fetching","fetched"],speech:["speaking","spoke"]},B=Ug.computed(()=>{let T=a.row.data,K=h[a.row.activity],P=K?K[o.value?0:1]:null,te;switch(a.row.activity){case"file:read":{let ge=T.range;te=`${T.path}${ge?` :${ge[0]}\u2013${ge[1]===-1?"":ge[1]}`:""}`;break}case"file:write":case"file:patch":case"file:delete":te=String(T.path??"");break;case"file:move":te=`${T.from} \u2192 ${T.to}`;break;case"file:search":te=`"${T.query}"${T.scope?` in ${T.scope}`:""}`;break;case"proc:exec":te=String(T.command??"");break;case"http":te=`${T.method??"GET"} ${T.url??""}`;break;case"speech":te=`"${T.text}"`;break;case"note":te=String(T.text??"");break;default:te=`${a.row.activity} ${Object.entries(T).map(([ge,me])=>`${ge}=${JSON.stringify(me)}`).join(" ")}`}let ue=P?`${P} ${te}`:te;return c.value&&a.row.error?`${ue} \xB7 ${a.row.error}`:ue}),E=Ug.computed(()=>{if(o.value||c.value)return null;let T=a.row.data;switch(a.row.activity){case"file:search":return typeof T.matches==="number"?`${T.matches} ${T.matches===1?"match":"matches"}`:null;case"file:write":return typeof T.bytes==="number"?F(T.bytes):null;case"proc:exec":return typeof T.exitCode==="number"&&T.exitCode!==0?`exit ${T.exitCode}`:null;case"http":return typeof T.status==="number"?String(T.status):null;default:return null}}),k=Ug.computed(()=>` ${d.value} ${B.value}${E.value?` \xB7 ${E.value}`:""}`),v=Ug.computed(()=>{if(a.row.activity!=="file:patch"||o.value)return null;let{before:T,after:K}=a.row.data;if(typeof T!=="string"||typeof K!=="string")return null;let P=T.split(`
2553
+ `,p.map=[a,e.line],!0}function Yfn(e,a,A,o){let c=e.bMarks[a]+e.tShift[a],p=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(c+3>p)return!1;let d=e.src.charCodeAt(c);if(d!==126&&d!==96)return!1;let h=c;c=e.skipChars(c,d);let B=c-h;if(B<3)return!1;let E=e.src.slice(h,c),k=e.src.slice(c,p);if(d===96){if(k.indexOf(String.fromCharCode(d))>=0)return!1}if(o)return!0;let v=a,F=!1;for(;;){if(v++,v>=A)break;if(c=h=e.bMarks[v]+e.tShift[v],p=e.eMarks[v],c<p&&e.sCount[v]<e.blkIndent)break;if(e.src.charCodeAt(c)!==d)continue;if(e.sCount[v]-e.blkIndent>=4)continue;if(c=e.skipChars(c,d),c-h<B)continue;if(c=e.skipSpaces(c),c<p)continue;F=!0;break}B=e.sCount[a],e.line=v+(F?1:0);let T=e.push("fence","code",0);return T.info=k,T.content=e.getLines(a+1,v,B,!0),T.markup=E,T.map=[a,e.line],!0}function Pfn(e,a,A,o){let c=e.bMarks[a]+e.tShift[a],p=e.eMarks[a],d=e.lineMax;if(e.sCount[a]-e.blkIndent>=4)return!1;if(e.src.charCodeAt(c)!==62)return!1;if(o)return!0;let h=[],B=[],E=[],k=[],v=e.md.block.ruler.getRules("blockquote"),F=e.parentType;e.parentType="blockquote";let T=!1,K;for(K=a;K<A;K++){let me=e.sCount[K]<e.blkIndent;if(c=e.bMarks[K]+e.tShift[K],p=e.eMarks[K],c>=p)break;if(e.src.charCodeAt(c++)===62&&!me){let Ne=e.sCount[K]+1,he,xe;if(e.src.charCodeAt(c)===32)c++,Ne++,xe=!1,he=!0;else if(e.src.charCodeAt(c)===9)if(he=!0,(e.bsCount[K]+Ne)%4===3)c++,Ne++,xe=!1;else xe=!0;else he=!1;let Oe=Ne;h.push(e.bMarks[K]),e.bMarks[K]=c;while(c<p){let st=e.src.charCodeAt(c);if(bI(st))if(st===9)Oe+=4-(Oe+e.bsCount[K]+(xe?1:0))%4;else Oe++;else break;c++}T=c>=p,B.push(e.bsCount[K]),e.bsCount[K]=e.sCount[K]+1+(he?1:0),E.push(e.sCount[K]),e.sCount[K]=Oe-Ne,k.push(e.tShift[K]),e.tShift[K]=c-e.bMarks[K];continue}if(T)break;let ve=!1;for(let Ne=0,he=v.length;Ne<he;Ne++)if(v[Ne](e,K,A,!0)){ve=!0;break}if(ve){if(e.lineMax=K,e.blkIndent!==0)h.push(e.bMarks[K]),B.push(e.bsCount[K]),k.push(e.tShift[K]),E.push(e.sCount[K]),e.sCount[K]-=e.blkIndent;break}h.push(e.bMarks[K]),B.push(e.bsCount[K]),k.push(e.tShift[K]),E.push(e.sCount[K]),e.sCount[K]=-1}let P=e.blkIndent;e.blkIndent=0;let te=e.push("blockquote_open","blockquote",1);te.markup=">";let ue=[a,0];te.map=ue,e.md.block.tokenize(e,a,K);let ge=e.push("blockquote_close","blockquote",-1);ge.markup=">",e.lineMax=d,e.parentType=F,ue[1]=e.line;for(let me=0;me<k.length;me++)e.bMarks[me+a]=h[me],e.tShift[me+a]=k[me],e.sCount[me+a]=E[me],e.bsCount[me+a]=B[me];return e.blkIndent=P,!0}function jfn(e,a,A,o){let c=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;let p=e.bMarks[a]+e.tShift[a],d=e.src.charCodeAt(p++);if(d!==42&&d!==45&&d!==95)return!1;let h=1;while(p<c){let E=e.src.charCodeAt(p++);if(E!==d&&!bI(E))return!1;if(E===d)h++}if(h<3)return!1;if(o)return!0;e.line=a+1;let B=e.push("hr","hr",0);return B.map=[a,e.line],B.markup=Array(h+1).join(String.fromCharCode(d)),!0}function PIa(e,a){let A=e.eMarks[a],o=e.bMarks[a]+e.tShift[a],c=e.src.charCodeAt(o++);if(c!==42&&c!==45&&c!==43)return-1;if(o<A){let p=e.src.charCodeAt(o);if(!bI(p))return-1}return o}function jIa(e,a){let A=e.bMarks[a]+e.tShift[a],o=e.eMarks[a],c=A;if(c+1>=o)return-1;let p=e.src.charCodeAt(c++);if(p<48||p>57)return-1;for(;;){if(c>=o)return-1;if(p=e.src.charCodeAt(c++),p>=48&&p<=57){if(c-A>=10)return-1;continue}if(p===41||p===46)break;return-1}if(c<o){if(p=e.src.charCodeAt(c),!bI(p))return-1}return c}function tQi(e,a){let A=e.level+2;for(let o=a+2,c=e.tokens.length-2;o<c;o++)if(e.tokens[o].level===A&&e.tokens[o].type==="paragraph_open")e.tokens[o+2].hidden=!0,e.tokens[o].hidden=!0,o+=2}function Hfn(e,a,A,o){let c,p,d,h,B=a,E=!0;if(e.sCount[B]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[B]-e.listIndent>=4&&e.sCount[B]<e.blkIndent)return!1;let k=!1;if(o&&e.parentType==="paragraph"){if(e.sCount[B]>=e.blkIndent)k=!0}let v,F,T;if((T=jIa(e,B))>=0){if(v=!0,d=e.bMarks[B]+e.tShift[B],F=Number(e.src.slice(d,T-1)),k&&F!==1)return!1}else if((T=PIa(e,B))>=0)v=!1;else return!1;if(k){if(e.skipSpaces(T)>=e.eMarks[B])return!1}if(o)return!0;let K=e.src.charCodeAt(T-1),P=e.tokens.length;if(v){if(h=e.push("ordered_list_open","ol",1),F!==1)h.attrs=[["start",F]]}else h=e.push("bullet_list_open","ul",1);let te=[B,0];h.map=te,h.markup=String.fromCharCode(K);let ue=!1,ge=e.md.block.ruler.getRules("list"),me=e.parentType;e.parentType="list";while(B<A){p=T,c=e.eMarks[B];let ve=e.sCount[B]+T-(e.bMarks[B]+e.tShift[B]),Ne=ve;while(p<c){let Tt=e.src.charCodeAt(p);if(Tt===9)Ne+=4-(Ne+e.bsCount[B])%4;else if(Tt===32)Ne++;else break;p++}let he=p,xe;if(he>=c)xe=1;else xe=Ne-ve;if(xe>4)xe=1;let Oe=ve+xe;h=e.push("list_item_open","li",1),h.markup=String.fromCharCode(K);let st=[B,0];if(h.map=st,v)h.info=e.src.slice(d,T-1);let Ct=e.tight,ct=e.tShift[B],pt=e.sCount[B],Gt=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=Oe,e.tight=!0,e.tShift[B]=he-e.bMarks[B],e.sCount[B]=Ne,he>=c&&e.isEmpty(B+1))e.line=Math.min(e.line+2,A);else e.md.block.tokenize(e,B,A,!0);if(!e.tight||ue)E=!1;if(ue=e.line-B>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=Gt,e.tShift[B]=ct,e.sCount[B]=pt,e.tight=Ct,h=e.push("list_item_close","li",-1),h.markup=String.fromCharCode(K),B=e.line,st[1]=B,B>=A)break;if(e.sCount[B]<e.blkIndent)break;if(e.sCount[B]-e.blkIndent>=4)break;let Ve=!1;for(let Tt=0,Mn=ge.length;Tt<Mn;Tt++)if(ge[Tt](e,B,A,!0)){Ve=!0;break}if(Ve)break;if(v){if(T=jIa(e,B),T<0)break;d=e.bMarks[B]+e.tShift[B]}else if(T=PIa(e,B),T<0)break;if(K!==e.src.charCodeAt(T-1))break}if(v)h=e.push("ordered_list_close","ol",-1);else h=e.push("bullet_list_close","ul",-1);if(h.markup=String.fromCharCode(K),te[1]=B,e.line=B,e.parentType=me,E)tQi(e,P);return!0}function Jfn(e,a,A,o){let c=e.bMarks[a]+e.tShift[a],p=e.eMarks[a],d=a+1;if(e.sCount[a]-e.blkIndent>=4)return!1;if(e.src.charCodeAt(c)!==91)return!1;function h(ge){let me=e.lineMax;if(ge>=me||e.isEmpty(ge))return null;let ve=!1;if(e.sCount[ge]-e.blkIndent>3)ve=!0;if(e.sCount[ge]<0)ve=!0;if(!ve){let xe=e.md.block.ruler.getRules("reference"),Oe=e.parentType;e.parentType="reference";let st=!1;for(let Ct=0,ct=xe.length;Ct<ct;Ct++)if(xe[Ct](e,ge,me,!0)){st=!0;break}if(e.parentType=Oe,st)return null}let Ne=e.bMarks[ge]+e.tShift[ge],he=e.eMarks[ge];return e.src.slice(Ne,he+1)}let B=e.src.slice(c,p+1);p=B.length;let E=-1;for(c=1;c<p;c++){let ge=B.charCodeAt(c);if(ge===91)return!1;else if(ge===93){E=c;break}else if(ge===10){let me=h(d);if(me!==null)B+=me,p=B.length,d++}else if(ge===92){if(c++,c<p&&B.charCodeAt(c)===10){let me=h(d);if(me!==null)B+=me,p=B.length,d++}}}if(E<0||B.charCodeAt(E+1)!==58)return!1;for(c=E+2;c<p;c++){let ge=B.charCodeAt(c);if(ge===10){let me=h(d);if(me!==null)B+=me,p=B.length,d++}else if(bI(ge));else break}let k=e.md.helpers.parseLinkDestination(B,c,p);if(!k.ok)return!1;let v=e.md.normalizeLink(k.str);if(!e.md.validateLink(v))return!1;c=k.pos;let F=c,T=d,K=c;for(;c<p;c++){let ge=B.charCodeAt(c);if(ge===10){let me=h(d);if(me!==null)B+=me,p=B.length,d++}else if(bI(ge));else break}let P=e.md.helpers.parseLinkTitle(B,c,p);while(P.can_continue){let ge=h(d);if(ge===null)break;B+=ge,c=p,p=B.length,d++,P=e.md.helpers.parseLinkTitle(B,c,p,P)}let te;if(c<p&&K!==c&&P.ok)te=P.str,c=P.pos;else te="",c=F,d=T;while(c<p){let ge=B.charCodeAt(c);if(!bI(ge))break;c++}if(c<p&&B.charCodeAt(c)!==10){if(te){te="",c=F,d=T;while(c<p){let ge=B.charCodeAt(c);if(!bI(ge))break;c++}}}if(c<p&&B.charCodeAt(c)!==10)return!1;let ue=c3e(B.slice(1,E));if(!ue)return!1;if(o)return!0;if(typeof e.env.references>"u")e.env.references={};if(typeof e.env.references[ue]>"u")e.env.references[ue]={title:te,href:v};return e.line=d,!0}var HIa=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];var nQi=`(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*")`,aQi="(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*"+nQi+")?)",JIa="<[A-Za-z][A-Za-z0-9\\-]*"+aQi+"*\\s*\\/?>";var OIa=new RegExp("^(?:"+JIa+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),$Ia=new RegExp("^(?:"+JIa+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)");var p3e=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+HIa.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp($Ia.source+"\\s*$"),/^$/,!1]];function Ofn(e,a,A,o){let c=e.bMarks[a]+e.tShift[a],p=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(e.src.charCodeAt(c)!==60)return!1;let d=e.src.slice(c,p),h=0;for(;h<p3e.length;h++)if(p3e[h][0].test(d))break;if(h===p3e.length)return!1;if(o)return p3e[h][2];let B=a+1,E=p3e[h][1].test("");if(!p3e[h][1].test(d))for(;B<A;B++){if(e.sCount[B]<e.blkIndent){if(E||!e.isEmpty(B))break}if(c=e.bMarks[B]+e.tShift[B],p=e.eMarks[B],d=e.src.slice(c,p),p3e[h][1].test(d)){if(d.length!==0)B++;break}}e.line=B;let k=e.push("html_block","",0);return k.map=[a,B],k.content=e.getLines(a,B,e.blkIndent,!0),!0}function $fn(e,a,A,o){let c=e.bMarks[a]+e.tShift[a],p=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;let d=e.src.charCodeAt(c);if(d!==35||c>=p)return!1;let h=1;d=e.src.charCodeAt(++c);while(d===35&&c<p&&h<=6)h++,d=e.src.charCodeAt(++c);if(h>6||c<p&&!bI(d))return!1;if(o)return!0;p=e.skipSpacesBack(p,c);let B=e.skipCharsBack(p,35,c);if(B>c&&bI(e.src.charCodeAt(B-1)))p=B;e.line=a+1;let E=e.push("heading_open","h"+String(h),1);E.markup="########".slice(0,h),E.map=[a,e.line];let k=e.push("inline","",0);k.content=u3e(e.src.slice(c,p)),k.map=[a,e.line],k.children=[];let v=e.push("heading_close","h"+String(h),-1);return v.markup="########".slice(0,h),!0}function zfn(e,a,A){let o=e.md.block.ruler.getRules("paragraph");if(e.sCount[a]-e.blkIndent>=4)return!1;let c=e.parentType;e.parentType="paragraph";let p=0,d,h=a+1;for(;h<A&&!e.isEmpty(h);h++){if(e.sCount[h]-e.blkIndent>3)continue;if(e.sCount[h]>=e.blkIndent){let T=e.bMarks[h]+e.tShift[h],K=e.eMarks[h];if(T<K){if(d=e.src.charCodeAt(T),d===45||d===61){if(T=e.skipChars(T,d),T=e.skipSpaces(T),T>=K){p=d===61?1:2;break}}}}if(e.sCount[h]<0)continue;let F=!1;for(let T=0,K=o.length;T<K;T++)if(o[T](e,h,A,!0)){F=!0;break}if(F)break}if(!p)return e.parentType=c,!1;let B=u3e(e.getLines(a,h,e.blkIndent,!1));e.line=h+1;let E=e.push("heading_open","h"+String(p),1);E.markup=String.fromCharCode(d),E.map=[a,e.line];let k=e.push("inline","",0);k.content=B,k.map=[a,e.line-1],k.children=[];let v=e.push("heading_close","h"+String(p),-1);return v.markup=String.fromCharCode(d),e.parentType=c,!0}function Wfn(e,a,A){let o=e.md.block.ruler.getRules("paragraph"),c=e.parentType,p=a+1;e.parentType="paragraph";for(;p<A&&!e.isEmpty(p);p++){if(e.sCount[p]-e.blkIndent>3)continue;if(e.sCount[p]<0)continue;let E=!1;for(let k=0,v=o.length;k<v;k++)if(o[k](e,p,A,!0)){E=!0;break}if(E)break}let d=u3e(e.getLines(a,p,e.blkIndent,!1));e.line=p;let h=e.push("paragraph_open","p",1);h.map=[a,e.line];let B=e.push("inline","",0);return B.content=d,B.map=[a,e.line],B.children=[],e.push("paragraph_close","p",-1),e.parentType=c,!0}var C_t=[["table",Ufn,["paragraph","reference"]],["code",Kfn],["fence",Yfn,["paragraph","reference","blockquote","list"]],["blockquote",Pfn,["paragraph","reference","blockquote","list"]],["hr",jfn,["paragraph","reference","blockquote","list"]],["list",Hfn,["paragraph","reference","blockquote"]],["reference",Jfn],["html_block",Ofn,["paragraph","reference","blockquote"]],["heading",$fn,["paragraph","reference","blockquote"]],["lheading",zfn],["paragraph",Wfn]];function B_t(){this.ruler=new l3e;for(let e=0;e<C_t.length;e++)this.ruler.push(C_t[e][0],C_t[e][1],{alt:(C_t[e][2]||[]).slice()})}B_t.prototype.tokenize=function(e,a,A){let o=this.ruler.getRules(""),c=o.length,p=e.md.options.maxNesting,d=a,h=!1;while(d<A){if(e.line=d=e.skipEmptyLines(d),d>=A)break;if(e.sCount[d]<e.blkIndent)break;if(e.level>=p){e.line=A;break}let B=e.line,E=!1;for(let k=0;k<c;k++)if(E=o[k](e,d,A,!1),E){if(B>=e.line)throw Error("block rule didn't increment state.line");break}if(!E)throw Error("none of the block rules matched");if(e.tight=!h,e.isEmpty(e.line-1))h=!0;if(d=e.line,d<A&&e.isEmpty(d))h=!0,d++,e.line=d}};B_t.prototype.parse=function(e,a,A,o){if(!e)return;let c=new this.State(e,a,A,o);this.tokenize(c,c.line,c.lineMax)};B_t.prototype.State=KIa;var zIa=B_t;function jlt(e,a,A,o){this.src=e,this.env=A,this.md=a,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}jlt.prototype.pushPending=function(){let e=new ime("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};jlt.prototype.push=function(e,a,A){if(this.pending)this.pushPending();let o=new ime(e,a,A),c=null;if(A<0)this.level--,this.delimiters=this._prev_delimiters.pop();if(o.level=this.level,A>0)this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],c={delimiters:this.delimiters};return this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(c),o};jlt.prototype.scanDelims=function(e,a){let A=this.posMax,o=this.src.charCodeAt(e),c;if(e===0)c=32;else if(e===1){if(c=this.src.charCodeAt(0),(c&63488)===55296)c=65533}else if(c=this.src.charCodeAt(e-1),(c&64512)===56320){let te=this.src.charCodeAt(e-2);c=(te&64512)===55296?65536+(te-55296<<10)+(c-56320):65533}else if((c&64512)===55296)c=65533;let p=e;while(p<A&&this.src.charCodeAt(p)===o)p++;let d=p-e,h=p<A?this.src.charCodeAt(p):32;if((h&64512)===55296){let te=this.src.charCodeAt(p+1);h=(te&64512)===56320?65536+(h-55296<<10)+(te-56320):65533}else if((h&64512)===56320)h=65533;let B=s3e(c)||o3e(c),E=s3e(h)||o3e(h),k=r3e(c),v=r3e(h),F=!v&&(!E||k||B),T=!k&&(!B||v||E);return{can_open:F&&(a||!T||B),can_close:T&&(a||!F||E),length:d}};jlt.prototype.Token=ime;var WIa=jlt;function AQi(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Zfn(e,a){let A=e.pos;while(A<e.posMax&&!AQi(e.src.charCodeAt(A)))A++;if(A===e.pos)return!1;if(!a)e.pending+=e.src.slice(e.pos,A);return e.pos=A,!0}var iQi=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Vfn(e,a){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;let{pos:A,posMax:o}=e;if(A+3>o)return!1;if(e.src.charCodeAt(A)!==58)return!1;if(e.src.charCodeAt(A+1)!==47)return!1;if(e.src.charCodeAt(A+2)!==47)return!1;let c=e.pending.match(iQi);if(!c)return!1;let p=c[1],d=e.md.linkify.matchAtStart(e.src.slice(A-p.length));if(!d)return!1;let h=d.url;if(h.length<=p.length)return!1;let B=h.length;while(B>0&&h.charCodeAt(B-1)===42)B--;if(B!==h.length)h=h.slice(0,B);let E=e.md.normalizeLink(h);if(!e.md.validateLink(E))return!1;if(!a){e.pending=e.pending.slice(0,-p.length);let k=e.push("link_open","a",1);k.attrs=[["href",E]],k.markup="linkify",k.info="auto";let v=e.push("text","",0);v.content=e.md.normalizeLinkText(h);let F=e.push("link_close","a",-1);F.markup="linkify",F.info="auto"}return e.pos+=h.length-p.length,!0}function Xfn(e,a){let A=e.pos;if(e.src.charCodeAt(A)!==10)return!1;let o=e.pending.length-1,c=e.posMax;if(!a)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){let p=o-1;while(p>=1&&e.pending.charCodeAt(p-1)===32)p--;e.pending=e.pending.slice(0,p),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);A++;while(A<c&&bI(e.src.charCodeAt(A)))A++;return e.pos=A,!0}var ehn=[];for(let e=0;e<256;e++)ehn.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ehn[e.charCodeAt(0)]=1});function thn(e,a){let{pos:A,posMax:o}=e;if(e.src.charCodeAt(A)!==92)return!1;if(A++,A>=o)return!1;let c=e.src.charCodeAt(A);if(c===10){if(!a)e.push("hardbreak","br",0);A++;while(A<o){if(c=e.src.charCodeAt(A),!bI(c))break;A++}return e.pos=A,!0}if(c===32){if(!a){let h=e.push("text_special","",0);h.content="\\",h.markup="\\",h.info="escape"}return e.pos=A,!0}let p=e.src[A];if(c>=55296&&c<=56319&&A+1<o){let h=e.src.charCodeAt(A+1);if(h>=56320&&h<=57343)p+=e.src[A+1],A++}let d="\\"+p;if(!a){let h=e.push("text_special","",0);if(c<256&&ehn[c]!==0)h.content=p;else h.content=d;h.markup=d,h.info="escape"}return e.pos=A+1,!0}function nhn(e,a){let A=e.pos;if(e.src.charCodeAt(A)!==96)return!1;let c=A;A++;let p=e.posMax;while(A<p&&e.src.charCodeAt(A)===96)A++;let d=e.src.slice(c,A),h=d.length;if(e.backticksScanned&&(e.backticks[h]||0)<=c){if(!a)e.pending+=d;return e.pos+=h,!0}let B=A,E;while((E=e.src.indexOf("`",B))!==-1){B=E+1;while(B<p&&e.src.charCodeAt(B)===96)B++;let k=B-E;if(k===h){if(!a){let v=e.push("code_inline","code",0);v.markup=d,v.content=e.src.slice(A,E).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=B,!0}e.backticks[k]=E}if(e.backticksScanned=!0,!a)e.pending+=d;return e.pos+=h,!0}function rQi(e,a){let A=e.pos,o=e.src.charCodeAt(A);if(a)return!1;if(o!==126)return!1;let c=e.scanDelims(e.pos,!0),p=c.length,d=String.fromCharCode(o);if(p<2)return!1;let h;if(p%2)h=e.push("text","",0),h.content=d,p--;for(let B=0;B<p;B+=2)h=e.push("text","",0),h.content=d+d,e.delimiters.push({marker:o,length:0,token:e.tokens.length-1,end:-1,open:c.can_open,close:c.can_close});return e.pos+=c.length,!0}function ZIa(e,a){let A,o=[],c=a.length;for(let p=0;p<c;p++){let d=a[p];if(d.marker!==126)continue;if(d.end===-1)continue;let h=a[d.end];if(A=e.tokens[d.token],A.type="s_open",A.tag="s",A.nesting=1,A.markup="~~",A.content="",A=e.tokens[h.token],A.type="s_close",A.tag="s",A.nesting=-1,A.markup="~~",A.content="",e.tokens[h.token-1].type==="text"&&e.tokens[h.token-1].content==="~")o.push(h.token-1)}while(o.length){let p=o.pop(),d=p+1;while(d<e.tokens.length&&e.tokens[d].type==="s_close")d++;if(d--,p!==d)A=e.tokens[d],e.tokens[d]=e.tokens[p],e.tokens[p]=A}}function oQi(e){let a=e.tokens_meta,A=e.tokens_meta.length;ZIa(e,e.delimiters);for(let o=0;o<A;o++)if(a[o]&&a[o].delimiters)ZIa(e,a[o].delimiters)}var ahn={tokenize:rQi,postProcess:oQi};function sQi(e,a){let A=e.pos,o=e.src.charCodeAt(A);if(a)return!1;if(o!==95&&o!==42)return!1;let c=e.scanDelims(e.pos,o===42);for(let p=0;p<c.length;p++){let d=e.push("text","",0);d.content=String.fromCharCode(o),e.delimiters.push({marker:o,length:c.length,token:e.tokens.length-1,end:-1,open:c.can_open,close:c.can_close})}return e.pos+=c.length,!0}function VIa(e,a){let A=a.length;for(let o=A-1;o>=0;o--){let c=a[o];if(c.marker!==95&&c.marker!==42)continue;if(c.end===-1)continue;let p=a[c.end],d=o>0&&a[o-1].end===c.end+1&&a[o-1].marker===c.marker&&a[o-1].token===c.token-1&&a[c.end+1].token===p.token+1,h=String.fromCharCode(c.marker),B=e.tokens[c.token];B.type=d?"strong_open":"em_open",B.tag=d?"strong":"em",B.nesting=1,B.markup=d?h+h:h,B.content="";let E=e.tokens[p.token];if(E.type=d?"strong_close":"em_close",E.tag=d?"strong":"em",E.nesting=-1,E.markup=d?h+h:h,E.content="",d)e.tokens[a[o-1].token].content="",e.tokens[a[c.end+1].token].content="",o--}}function cQi(e){let a=e.tokens_meta,A=e.tokens_meta.length;VIa(e,e.delimiters);for(let o=0;o<A;o++)if(a[o]&&a[o].delimiters)VIa(e,a[o].delimiters)}var Ahn={tokenize:sQi,postProcess:cQi};function ihn(e,a){let A,o,c,p,d="",h="",B=e.pos,E=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let{pos:k,posMax:v}=e,F=e.pos+1,T=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(T<0)return!1;let K=T+1;if(K<v&&e.src.charCodeAt(K)===40){E=!1,K++;for(;K<v;K++)if(A=e.src.charCodeAt(K),!bI(A)&&A!==10)break;if(K>=v)return!1;if(B=K,c=e.md.helpers.parseLinkDestination(e.src,K,e.posMax),c.ok){if(d=e.md.normalizeLink(c.str),e.md.validateLink(d))K=c.pos;else d="";B=K;for(;K<v;K++)if(A=e.src.charCodeAt(K),!bI(A)&&A!==10)break;if(c=e.md.helpers.parseLinkTitle(e.src,K,e.posMax),K<v&&B!==K&&c.ok){h=c.str,K=c.pos;for(;K<v;K++)if(A=e.src.charCodeAt(K),!bI(A)&&A!==10)break}}if(K>=v||e.src.charCodeAt(K)!==41)E=!0;K++}if(E){if(typeof e.env.references>"u")return!1;if(K<v&&e.src.charCodeAt(K)===91)if(B=K+1,K=e.md.helpers.parseLinkLabel(e,K),K>=0)o=e.src.slice(B,K++);else K=T+1;else K=T+1;if(!o)o=e.src.slice(F,T);if(p=e.env.references[c3e(o)],!p)return e.pos=k,!1;d=p.href,h=p.title}if(!a){e.pos=F,e.posMax=T;let P=e.push("link_open","a",1),te=[["href",d]];if(P.attrs=te,h)te.push(["title",h]);e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=K,e.posMax=v,!0}function rhn(e,a){let A,o,c,p,d,h,B,E,k="",v=e.pos,F=e.posMax;if(e.src.charCodeAt(e.pos)!==33)return!1;if(e.src.charCodeAt(e.pos+1)!==91)return!1;let T=e.pos+2,K=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(K<0)return!1;if(p=K+1,p<F&&e.src.charCodeAt(p)===40){p++;for(;p<F;p++)if(A=e.src.charCodeAt(p),!bI(A)&&A!==10)break;if(p>=F)return!1;if(E=p,h=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),h.ok)if(k=e.md.normalizeLink(h.str),e.md.validateLink(k))p=h.pos;else k="";E=p;for(;p<F;p++)if(A=e.src.charCodeAt(p),!bI(A)&&A!==10)break;if(h=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<F&&E!==p&&h.ok){B=h.str,p=h.pos;for(;p<F;p++)if(A=e.src.charCodeAt(p),!bI(A)&&A!==10)break}else B="";if(p>=F||e.src.charCodeAt(p)!==41)return e.pos=v,!1;p++}else{if(typeof e.env.references>"u")return!1;if(p<F&&e.src.charCodeAt(p)===91)if(E=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0)c=e.src.slice(E,p++);else p=K+1;else p=K+1;if(!c)c=e.src.slice(T,K);if(d=e.env.references[c3e(c)],!d)return e.pos=v,!1;k=d.href,B=d.title}if(!a){o=e.src.slice(T,K);let P=[];e.md.inline.parse(o,e.md,e.env,P);let te=e.push("image","img",0),ue=[["src",k],["alt",""]];if(te.attrs=ue,te.children=P,te.content=o,B)ue.push(["title",B])}return e.pos=p,e.posMax=F,!0}var uQi=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,lQi=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function ohn(e,a){let A=e.pos;if(e.src.charCodeAt(A)!==60)return!1;let{pos:o,posMax:c}=e;for(;;){if(++A>=c)return!1;let d=e.src.charCodeAt(A);if(d===60)return!1;if(d===62)break}let p=e.src.slice(o+1,A);if(lQi.test(p)){let d=e.md.normalizeLink(p);if(!e.md.validateLink(d))return!1;if(!a){let h=e.push("link_open","a",1);h.attrs=[["href",d]],h.markup="autolink",h.info="auto";let B=e.push("text","",0);B.content=e.md.normalizeLinkText(p);let E=e.push("link_close","a",-1);E.markup="autolink",E.info="auto"}return e.pos+=p.length+2,!0}if(uQi.test(p)){let d=e.md.normalizeLink("mailto:"+p);if(!e.md.validateLink(d))return!1;if(!a){let h=e.push("link_open","a",1);h.attrs=[["href",d]],h.markup="autolink",h.info="auto";let B=e.push("text","",0);B.content=e.md.normalizeLinkText(p);let E=e.push("link_close","a",-1);E.markup="autolink",E.info="auto"}return e.pos+=p.length+2,!0}return!1}function pQi(e){return/^<a[>\s]/i.test(e)}function gQi(e){return/^<\/a\s*>/i.test(e)}function dQi(e){let a=e|32;return a>=97&&a<=122}function shn(e,a){if(!e.md.options.html)return!1;let{posMax:A,pos:o}=e;if(e.src.charCodeAt(o)!==60||o+2>=A)return!1;let c=e.src.charCodeAt(o+1);if(c!==33&&c!==63&&c!==47&&!dQi(c))return!1;let p=e.src.slice(o).match(OIa);if(!p)return!1;if(!a){let d=e.push("html_inline","",0);if(d.content=p[0],pQi(d.content))e.linkLevel++;if(gQi(d.content))e.linkLevel--}return e.pos+=p[0].length,!0}var mQi=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,fQi=/^&([a-z][a-z0-9]{1,31});/i;function chn(e,a){let{pos:A,posMax:o}=e;if(e.src.charCodeAt(A)!==38)return!1;if(A+1>=o)return!1;if(e.src.charCodeAt(A+1)===35){let p=e.src.slice(A).match(mQi);if(p){if(!a){let d=p[1][0].toLowerCase()==="x"?parseInt(p[1].slice(1),16):parseInt(p[1],10),h=e.push("text_special","",0);h.content=h_t(d)?K6e(d):K6e(65533),h.markup=p[0],h.info="entity"}return e.pos+=p[0].length,!0}}else{let p=e.src.slice(A).match(fQi);if(p){let d=Plt(p[0]);if(d!==p[0]){if(!a){let h=e.push("text_special","",0);h.content=d,h.markup=p[0],h.info="entity"}return e.pos+=p[0].length,!0}}}return!1}function XIa(e){let a={},A=e.length;if(!A)return;let o=0,c=-2,p=[];for(let d=0;d<A;d++){let h=e[d];if(p.push(0),e[o].marker!==h.marker||c!==h.token-1)o=d;if(c=h.token,h.length=h.length||0,!h.close)continue;if(!a.hasOwnProperty(h.marker))a[h.marker]=[-1,-1,-1,-1,-1,-1];let B=a[h.marker][(h.open?3:0)+h.length%3],E=o-p[o]-1,k=E;for(;E>B;E-=p[E]+1){let v=e[E];if(v.marker!==h.marker)continue;if(v.open&&v.end<0){let F=!1;if(v.close||h.open){if((v.length+h.length)%3===0){if(v.length%3!==0||h.length%3!==0)F=!0}}if(!F){let T=E>0&&!e[E-1].open?p[E-1]+1:0;p[d]=d-E+T,p[E]=T,h.open=!1,v.end=d,v.close=!1,k=-1,c=-2;break}}}if(k!==-1)a[h.marker][(h.open?3:0)+(h.length||0)%3]=k}}function uhn(e){let a=e.tokens_meta,A=e.tokens_meta.length;XIa(e.delimiters);for(let o=0;o<A;o++)if(a[o]&&a[o].delimiters)XIa(a[o].delimiters)}function lhn(e){let a,A,o=0,c=e.tokens,p=e.tokens.length;for(a=A=0;a<p;a++){if(c[a].nesting<0)o--;if(c[a].level=o,c[a].nesting>0)o++;if(c[a].type==="text"&&a+1<p&&c[a+1].type==="text")c[a+1].content=c[a].content+c[a+1].content;else{if(a!==A)c[A]=c[a];A++}}if(a!==A)c.length=A}var phn=[["text",Zfn],["linkify",Vfn],["newline",Xfn],["escape",thn],["backticks",nhn],["strikethrough",ahn.tokenize],["emphasis",Ahn.tokenize],["link",ihn],["image",rhn],["autolink",ohn],["html_inline",shn],["entity",chn]],ghn=[["balance_pairs",uhn],["strikethrough",ahn.postProcess],["emphasis",Ahn.postProcess],["fragments_join",lhn]];function Hlt(){this.ruler=new l3e;for(let e=0;e<phn.length;e++)this.ruler.push(phn[e][0],phn[e][1]);this.ruler2=new l3e;for(let e=0;e<ghn.length;e++)this.ruler2.push(ghn[e][0],ghn[e][1])}Hlt.prototype.skipToken=function(e){let a=e.pos,A=this.ruler.getRules(""),o=A.length,c=e.md.options.maxNesting,p=e.cache;if(typeof p[a]<"u"){e.pos=p[a];return}let d=!1;if(e.level<c){for(let h=0;h<o;h++)if(e.level++,d=A[h](e,!0),e.level--,d){if(a>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;if(!d)e.pos++;p[a]=e.pos};Hlt.prototype.tokenize=function(e){let a=this.ruler.getRules(""),A=a.length,o=e.posMax,c=e.md.options.maxNesting;while(e.pos<o){let p=e.pos,d=!1;if(e.level<c){for(let h=0;h<A;h++)if(d=a[h](e,!1),d){if(p>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(d){if(e.pos>=o)break;continue}e.pending+=e.src[e.pos++]}if(e.pending)e.pushPending()};Hlt.prototype.parse=function(e,a,A,o){let c=new this.State(e,a,A,o);this.tokenize(c);let p=this.ruler2.getRules(""),d=p.length;for(let h=0;h<d;h++)p[h](c)};Hlt.prototype.State=WIa;var eya=Hlt;function dhn(e){let a={};e=e||{},a.src_Any=p_t.source,a.src_Cc=g_t.source,a.src_Z=m_t.source,a.src_P=R6e.source,a.src_ZPCc=[a.src_Z,a.src_P,a.src_Cc].join("|"),a.src_ZCc=[a.src_Z,a.src_Cc].join("|");let A="[><\uFF5C]";return a.src_pseudo_letter=`(?:(?!${A}|${a.src_ZPCc})${a.src_Any})`,a.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",a.src_auth=`(?:(?:(?!${a.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,a.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",a.src_host_terminator=`(?=$|${A}|${a.src_ZPCc})(?!${e["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${a.src_ZPCc}))`,a.src_path=`(?:[/?#](?:(?!${a.src_ZCc}|${A}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${a.src_ZCc}|\\]).)*\\]|\\((?:(?!${a.src_ZCc}|[)]).)*\\)|\\{(?:(?!${a.src_ZCc}|[}]).)*\\}|\\"(?:(?!${a.src_ZCc}|["]).)+\\"|\\'(?:(?!${a.src_ZCc}|[']).)+\\'|\\'(?=${a.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${a.src_ZCc}|[.]|$)|`+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${a.src_ZCc}|$)|;(?!${a.src_ZCc}|$)|\\!+(?!${a.src_ZCc}|[!]|$)|\\?(?!${a.src_ZCc}|[?]|$))+|\\/)?`,a.src_email_name="[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\\"\\.a-zA-Z0-9_]{0,63}",a.src_xn="xn--[a-z0-9\\-]{1,59}",a.src_domain_root="(?:"+a.src_xn+`|${a.src_pseudo_letter}{1,63})`,a.src_domain="(?:"+a.src_xn+`|(?:${a.src_pseudo_letter})|(?:${a.src_pseudo_letter}(?:-|${a.src_pseudo_letter}){0,61}${a.src_pseudo_letter}))`,a.src_host=`(?:(?:(?:(?:${a.src_domain})\\.)*${a.src_domain}))`,a.tpl_host_fuzzy="(?:"+a.src_ip4+`|(?:(?:(?:${a.src_domain})\\.)+(?:%TLDS%)))`,a.tpl_host_no_ip_fuzzy=`(?:(?:(?:${a.src_domain})\\.)+(?:%TLDS%))`,a.src_host_strict=a.src_host+a.src_host_terminator,a.tpl_host_fuzzy_strict=a.tpl_host_fuzzy+a.src_host_terminator,a.src_host_port_strict=a.src_host+a.src_port+a.src_host_terminator,a.tpl_host_port_fuzzy_strict=a.tpl_host_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_port_no_ip_fuzzy_strict=a.tpl_host_no_ip_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${a.src_ZPCc}|>|$))`,a.tpl_email_fuzzy=`(^|${A}|"|\\(|${a.src_ZCc})(${a.src_email_name}@${a.tpl_host_fuzzy_strict})`,a.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uFF5C]|${a.src_ZPCc}))`+`((?![$+<=>^\`|\uFF5C])${a.tpl_host_port_fuzzy_strict}${a.src_path})`,a.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uFF5C]|${a.src_ZPCc}))`+`((?![$+<=>^\`|\uFF5C])${a.tpl_host_port_no_ip_fuzzy_strict}${a.src_path})`,a}function mhn(e){return Array.prototype.slice.call(arguments,1).forEach(function(A){if(!A)return;Object.keys(A).forEach(function(o){e[o]=A[o]})}),e}function y_t(e){return Object.prototype.toString.call(e)}function hQi(e){return y_t(e)==="[object String]"}function bQi(e){return y_t(e)==="[object Object]"}function CQi(e){return y_t(e)==="[object RegExp]"}function tya(e){return y_t(e)==="[object Function]"}function BQi(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var aya={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function IQi(e){return Object.keys(e||{}).reduce(function(a,A){return a||aya.hasOwnProperty(A)},!1)}var yQi={"http:":{validate:function(e,a,A){let o=e.slice(a);if(!A.re.http)A.re.http=new RegExp(`^\\/\\/${A.re.src_auth}${A.re.src_host_port_strict}${A.re.src_path}`,"i");if(A.re.http.test(o))return o.match(A.re.http)[0].length;return 0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,a,A){let o=e.slice(a);if(!A.re.no_http)A.re.no_http=new RegExp("^"+A.re.src_auth+`(?:localhost|(?:(?:${A.re.src_domain})\\.)+${A.re.src_domain_root})`+A.re.src_port+A.re.src_host_terminator+A.re.src_path,"i");if(A.re.no_http.test(o)){if(a>=3&&e[a-3]===":")return 0;if(a>=3&&e[a-3]==="/")return 0;return o.match(A.re.no_http)[0].length}return 0}},"mailto:":{validate:function(e,a,A){let o=e.slice(a);if(!A.re.mailto)A.re.mailto=new RegExp(`^${A.re.src_email_name}@${A.re.src_host_strict}`,"i");if(A.re.mailto.test(o))return o.match(A.re.mailto)[0].length;return 0}}},EQi="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",_Qi="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function QQi(e){return function(a,A){let o=a.slice(A);if(e.test(o))return o.match(e)[0].length;return 0}}function nya(){return function(e,a){a.normalize(e)}}function I_t(e){let a=e.re=dhn(e.__opts__),A=e.__tlds__.slice();if(e.onCompile(),!e.__tlds_replaced__)A.push(EQi);A.push(a.src_xn),a.src_tlds=A.join("|");function o(h){return h.replace("%TLDS%",a.src_tlds)}a.email_fuzzy=RegExp(o(a.tpl_email_fuzzy),"i"),a.email_fuzzy_global=RegExp(o(a.tpl_email_fuzzy),"ig"),a.link_fuzzy=RegExp(o(a.tpl_link_fuzzy),"i"),a.link_fuzzy_global=RegExp(o(a.tpl_link_fuzzy),"ig"),a.link_no_ip_fuzzy=RegExp(o(a.tpl_link_no_ip_fuzzy),"i"),a.link_no_ip_fuzzy_global=RegExp(o(a.tpl_link_no_ip_fuzzy),"ig"),a.host_fuzzy_test=RegExp(o(a.tpl_host_fuzzy_test),"i");let c=[];e.__compiled__={};function p(h,B){throw Error(`(LinkifyIt) Invalid schema "${h}": ${B}`)}Object.keys(e.__schemas__).forEach(function(h){let B=e.__schemas__[h];if(B===null)return;let E={validate:null,link:null};if(e.__compiled__[h]=E,bQi(B)){if(CQi(B.validate))E.validate=QQi(B.validate);else if(tya(B.validate))E.validate=B.validate;else p(h,B);if(tya(B.normalize))E.normalize=B.normalize;else if(!B.normalize)E.normalize=nya();else p(h,B);return}if(hQi(B)){c.push(h);return}p(h,B)}),c.forEach(function(h){if(!e.__compiled__[e.__schemas__[h]])return;e.__compiled__[h].validate=e.__compiled__[e.__schemas__[h]].validate,e.__compiled__[h].normalize=e.__compiled__[e.__schemas__[h]].normalize}),e.__compiled__[""]={validate:null,normalize:nya()};let d=Object.keys(e.__compiled__).filter(function(h){return h.length>0&&e.__compiled__[h]}).map(BQi).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uFF5C]|${a.src_ZPCc}))(${d})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uFF5C]|${a.src_ZPCc}))(${d})`,"ig"),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,"i"),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,"i")}function Aya(e,a,A,o){let c=e.slice(A,o);this.schema=a.toLowerCase(),this.index=A,this.lastIndex=o,this.raw=c,this.text=c,this.url=c}function Ej(e,a){if(!(this instanceof Ej))return new Ej(e,a);if(!a){if(IQi(e))a=e,e={}}this.__opts__=mhn({},aya,a),this.__schemas__=mhn({},yQi,e),this.__compiled__={},this.__tlds__=_Qi,this.__tlds_replaced__=!1,this.re={},I_t(this)}Ej.prototype.add=function(a,A){return this.__schemas__[a]=A,I_t(this),this};Ej.prototype.set=function(a){return this.__opts__=mhn(this.__opts__,a),this};Ej.prototype.test=function(a){if(!a.length)return!1;let A,o;if(this.re.schema_test.test(a)){o=this.re.schema_search,o.lastIndex=0;while((A=o.exec(a))!==null)if(this.testSchemaAt(a,A[2],o.lastIndex))return!0}if(this.__opts__.fuzzyLink&&this.__compiled__["http:"]){if(a.search(this.re.host_fuzzy_test)>=0){if(a.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null)return!0}}if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]){if(a.indexOf("@")>=0){if(a.match(this.re.email_fuzzy)!==null)return!0}}return!1};Ej.prototype.pretest=function(a){return this.re.pretest.test(a)};Ej.prototype.testSchemaAt=function(a,A,o){if(!this.__compiled__[A.toLowerCase()])return 0;return this.__compiled__[A.toLowerCase()].validate(a,o,this)};Ej.prototype.match=function(a){let A=[],o=[],c=[],p=[],d,h,B;function E(F,T){if(!F)return T;if(!T)return F;if(F.index!==T.index)return F.index<T.index?F:T;return F.lastIndex>=T.lastIndex?F:T}if(!a.length)return null;if(this.re.schema_test.test(a)){B=this.re.schema_search,B.lastIndex=0;while((d=B.exec(a))!==null)if(h=this.testSchemaAt(a,d[2],B.lastIndex),h)o.push({schema:d[2],index:d.index+d[1].length,lastIndex:d.index+d[0].length+h})}if(this.__opts__.fuzzyLink&&this.__compiled__["http:"]){B=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,B.lastIndex=0;while((d=B.exec(a))!==null)c.push({schema:"",index:d.index+d[1].length,lastIndex:d.index+d[0].length})}if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]){B=this.re.email_fuzzy_global,B.lastIndex=0;while((d=B.exec(a))!==null)p.push({schema:"mailto:",index:d.index+d[1].length,lastIndex:d.index+d[0].length})}let k=[0,0,0],v=0;for(;;){let F=[o[k[0]],p[k[1]],c[k[2]]],T=E(E(F[0],F[1]),F[2]);if(!T)break;if(T===F[0])k[0]++;else if(T===F[1])k[1]++;else k[2]++;if(T.index<v)continue;let K=new Aya(a,T.schema,T.index,T.lastIndex);this.__compiled__[K.schema].normalize(K,this),A.push(K),v=T.lastIndex}if(A.length)return A;return null};Ej.prototype.matchAtStart=function(a){if(!a.length)return null;let A=this.re.schema_at_start.exec(a);if(!A)return null;let o=this.testSchemaAt(a,A[2],A[0].length);if(!o)return null;let c=new Aya(a,A[2],A.index+A[1].length,A.index+A[0].length+o);return this.__compiled__[c.schema].normalize(c,this),c};Ej.prototype.tlds=function(a,A){if(a=Array.isArray(a)?a:[a],!A)return this.__tlds__=a.slice(),this.__tlds_replaced__=!0,I_t(this),this;return this.__tlds__=this.__tlds__.concat(a).sort().filter(function(o,c,p){return o!==p[c-1]}).reverse(),I_t(this),this};Ej.prototype.normalize=function(a){if(!a.schema)a.url=`http://${a.url}`;if(a.schema==="mailto:"&&!/^mailto:/i.test(a.url))a.url=`mailto:${a.url}`};Ej.prototype.onCompile=function(){};var iya=Ej;var wQi=/^xn--/,kQi=/[^\0-\x7F]/,DQi=/[\x2E\u3002\uFF0E\uFF61]/g,xQi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var Nte=Math.floor,fhn=String.fromCharCode;function Rhe(e){throw RangeError(xQi[e])}function vQi(e,a){let A=[],o=e.length;while(o--)A[o]=a(e[o]);return A}function oya(e,a){let A=e.split("@"),o="";if(A.length>1)o=A[0]+"@",e=A[1];e=e.replace(DQi,".");let c=e.split("."),p=vQi(c,a).join(".");return o+p}function sya(e){let a=[],A=0,o=e.length;while(A<o){let c=e.charCodeAt(A++);if(c>=55296&&c<=56319&&A<o){let p=e.charCodeAt(A++);if((p&64512)==56320)a.push(((c&1023)<<10)+(p&1023)+65536);else a.push(c),A--}else a.push(c)}return a}var FQi=(e)=>String.fromCodePoint(...e),SQi=function(e){if(e>=48&&e<58)return 26+(e-48);if(e>=65&&e<91)return e-65;if(e>=97&&e<123)return e-97;return 36},rya=function(e,a){return e+22+75*(e<26)-((a!=0)<<5)},cya=function(e,a,A){let o=0;e=A?Nte(e/700):e>>1,e+=Nte(e/a);for(;e>455;o+=36)e=Nte(e/35);return Nte(o+36*e/(e+38))},uya=function(e){let a=[],A=e.length,o=0,c=128,p=72,d=e.lastIndexOf("-");if(d<0)d=0;for(let h=0;h<d;++h){if(e.charCodeAt(h)>=128)Rhe("not-basic");a.push(e.charCodeAt(h))}for(let h=d>0?d+1:0;h<A;){let B=o;for(let k=1,v=36;;v+=36){if(h>=A)Rhe("invalid-input");let F=SQi(e.charCodeAt(h++));if(F>=36)Rhe("invalid-input");if(F>Nte((2147483647-o)/k))Rhe("overflow");o+=F*k;let T=v<=p?1:v>=p+26?26:v-p;if(F<T)break;let K=36-T;if(k>Nte(2147483647/K))Rhe("overflow");k*=K}let E=a.length+1;if(p=cya(o-B,E,B==0),Nte(o/E)>2147483647-c)Rhe("overflow");c+=Nte(o/E),o%=E,a.splice(o++,0,c)}return String.fromCodePoint(...a)},lya=function(e){let a=[];e=sya(e);let A=e.length,o=128,c=0,p=72;for(let B of e)if(B<128)a.push(fhn(B));let d=a.length,h=d;if(d)a.push("-");while(h<A){let B=2147483647;for(let k of e)if(k>=o&&k<B)B=k;let E=h+1;if(B-o>Nte((2147483647-c)/E))Rhe("overflow");c+=(B-o)*E,o=B;for(let k of e){if(k<o&&++c>2147483647)Rhe("overflow");if(k===o){let v=c;for(let F=36;;F+=36){let T=F<=p?1:F>=p+26?26:F-p;if(v<T)break;let K=v-T,P=36-T;a.push(fhn(rya(T+K%P,0))),v=Nte(K/P)}a.push(fhn(rya(v,0))),p=cya(c,E,h===d),c=0,++h}}++c,++o}return a.join("")},NQi=function(e){return oya(e,function(a){return wQi.test(a)?uya(a.slice(4).toLowerCase()):a})},MQi=function(e){return oya(e,function(a){return kQi.test(a)?"xn--"+lya(a):a})},GQi={version:"2.3.1",ucs2:{decode:sya,encode:FQi},decode:uya,encode:lya,toASCII:MQi,toUnicode:NQi};var hhn=GQi;var pya={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}};var gya={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}};var dya={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}};var LQi={default:pya,zero:gya,commonmark:dya},TQi=/^(vbscript|javascript|file|data):/,qQi=/^data:image\/(gif|png|jpeg|webp);/;function RQi(e){let a=e.trim().toLowerCase();return TQi.test(a)?qQi.test(a):!0}var mya=["http:","https:","mailto:"];function UQi(e){let a=Klt(e,!0);if(a.hostname){if(!a.protocol||mya.indexOf(a.protocol)>=0)try{a.hostname=hhn.toASCII(a.hostname)}catch(A){}}return c_t(q6e(a))}function KQi(e){let a=Klt(e,!0);if(a.hostname){if(!a.protocol||mya.indexOf(a.protocol)>=0)try{a.hostname=hhn.toUnicode(a.hostname)}catch(A){}}return Ult(q6e(a),Ult.defaultChars+"%")}function zH(e,a){if(!(this instanceof zH))return new zH(e,a);if(!a){if(!f_t(e))a=e||{},e="default"}if(this.inline=new eya,this.block=new zIa,this.core=new UIa,this.renderer=new MIa,this.linkify=new iya,this.validateLink=RQi,this.normalizeLink=UQi,this.normalizeLinkText=KQi,this.utils=Qfn,this.helpers=U6e({},xfn),this.options={},this.configure(e),a)this.set(a)}zH.prototype.set=function(e){return U6e(this.options,e),this};zH.prototype.configure=function(e){let a=this;if(f_t(e)){let A=e;if(e=LQi[A],!e)throw Error('Wrong `markdown-it` preset "'+A+'", check name')}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");if(e.options)a.set(e.options);if(e.components)Object.keys(e.components).forEach(function(A){if(e.components[A].rules)a[A].ruler.enableOnly(e.components[A].rules);if(e.components[A].rules2)a[A].ruler2.enableOnly(e.components[A].rules2)});return this};zH.prototype.enable=function(e,a){let A=[];if(!Array.isArray(e))e=[e];["core","block","inline"].forEach(function(c){A=A.concat(this[c].ruler.enable(e,!0))},this),A=A.concat(this.inline.ruler2.enable(e,!0));let o=e.filter(function(c){return A.indexOf(c)<0});if(o.length&&!a)throw Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};zH.prototype.disable=function(e,a){let A=[];if(!Array.isArray(e))e=[e];["core","block","inline"].forEach(function(c){A=A.concat(this[c].ruler.disable(e,!0))},this),A=A.concat(this.inline.ruler2.disable(e,!0));let o=e.filter(function(c){return A.indexOf(c)<0});if(o.length&&!a)throw Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};zH.prototype.use=function(e){let a=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,a),this};zH.prototype.parse=function(e,a){if(typeof e!=="string")throw Error("Input data should be a String");let A=new this.core.State(e,this,a);return this.core.process(A),A.tokens};zH.prototype.render=function(e,a){return a=a||{},this.renderer.render(this.parse(e,a),this.options,a)};zH.prototype.parseInline=function(e,a){let A=new this.core.State(e,this,a);return A.inlineMode=!0,this.core.process(A),A.tokens};zH.prototype.renderInline=function(e,a){return a=a||{},this.renderer.render(this.parseInline(e,a),this.options,a)};var bhn=zH;var YQi=wm.defineComponent,BU=wm.toDisplayString,PQi=wm.createElementVNode;var jQi=wm.createCommentVNode,J0=wm.openBlock,O0=wm.createElementBlock;var j6e=wm.renderList,g3e=wm.Fragment;var fya=wm.normalizeStyle;var HQi=wm.unref;var hya={"data-v-1c696509\x00.axon-markdown":{display:"flex",flexDirection:"column",gap:1,width:"100%"},"data-v-1c696509\x00.h":{width:"100%",flexShrink:0,flexGrow:0},"data-v-1c696509\x00.h1":{visualStyles:{fg:"#7cceff"}},"data-v-1c696509\x00.h2":{visualStyles:{fg:"#5bb8ee"}},"data-v-1c696509\x00.h3":{visualStyles:{fg:"#4aa8dd"}},"data-v-1c696509\x00.h4":{visualStyles:{fg:"#3a98cc"}},"data-v-1c696509\x00.h5":{visualStyles:{fg:"#2a88bb"}},"data-v-1c696509\x00.h6":{visualStyles:{fg:"#1a78aa"}},"data-v-1c696509\x00.p":{width:"100%",flexShrink:0,flexGrow:0},"data-v-1c696509\x00.blockquote":{width:"100%",visualStyles:{fg:"#8899aa"},flexShrink:0,flexGrow:0},"data-v-1c696509\x00.list":{display:"flex",flexDirection:"column",width:"100%",flexShrink:0,flexGrow:0},"data-v-1c696509\x00.list-item":{width:"100%",flexShrink:0,flexGrow:0},"data-v-1c696509\x00.table":{display:"flex",flexDirection:"column",width:"100%",flexShrink:0,flexGrow:0},"data-v-1c696509\x00.table-row":{display:"flex",flexDirection:"row",gap:1},"data-v-1c696509\x00.table-header":{visualStyles:{fg:"#5bb8ee"}},"data-v-1c696509\x00.table-cell":{width:24},"data-v-1c696509\x00.code-block":{width:"100%",flexShrink:0,flexGrow:0},"data-v-1c696509\x00.rule":{flexShrink:0,flexGrow:0,borderBottomWidth:1,borderBottomColor:"#2a3a4a"}},bya=YQi({__name:"markdown",props:{text:{type:String,required:!0}},setup(e){let a=e,A=new bhn({html:!1,linkify:!1,typographer:!1});function o(d){if(!d?.children)return d?.content??"";let h="";for(let B of d.children)if(B.type==="text"||B.type==="code_inline")h+=B.content;else if(B.type==="softbreak"||B.type==="hardbreak")h+=" ";return h}function c(d){let h=A.parse(d,{}),B=[],E=0;while(E<h.length){let k=h[E];if(k.type==="heading_open"){let v=Number(k.tag.slice(1)),F=h[E+1];B.push({kind:"heading",level:v,text:o(F)}),E+=3;continue}if(k.type==="paragraph_open"){let v=h[E+1];B.push({kind:"paragraph",text:o(v)}),E+=3;continue}if(k.type==="blockquote_open"){let v=[];E++;while(h[E]&&h[E].type!=="blockquote_close"){if(h[E].type==="inline")v.push(o(h[E]));E++}E++,B.push({kind:"blockquote",text:v.join(" ")});continue}if(k.type==="bullet_list_open"||k.type==="ordered_list_open"){let v=k.type==="ordered_list_open",F=v?"ordered_list_close":"bullet_list_close",T=[],K=0;E++;while(h[E]&&h[E].type!==F){if(h[E].type==="list_item_open"){K++;let P=Math.min(Math.floor((h[E].level??0)/2),2);E++;let te=[];while(h[E]&&h[E].type!=="list_item_close"){if(h[E].type==="inline")te.push(o(h[E]));E++}T.push({text:te.join(" "),depth:P,index:K})}E++}E++,B.push({kind:"list",ordered:v,items:T});continue}if(k.type==="table_open"){let v=[],F=[];E++;while(h[E]&&h[E].type!=="table_close")if(h[E].type==="thead_open"){E++;while(h[E]&&h[E].type!=="thead_close"){if(h[E].type==="inline")v.push(o(h[E]));E++}}else if(h[E].type==="tbody_open"){E++;while(h[E]&&h[E].type!=="tbody_close"){if(h[E].type==="tr_open"){E++;let T=[];while(h[E]&&h[E].type!=="tr_close"){if(h[E].type==="inline")T.push(o(h[E]));E++}F.push(T)}E++}}else E++;E++,B.push({kind:"table",headers:v,rows:F});continue}if(k.type==="fence"||k.type==="code_block"){B.push({kind:"code",lang:k.info.trim()||"text",code:k.content.replace(/\n$/,"")}),E++;continue}if(k.type==="hr"){B.push({kind:"rule"}),E++;continue}E++}return B}let p=wm.computed(()=>c(a.text));return(d,h)=>{return J0(),O0("div",{class:"axon-markdown"},[(J0(!0),O0(g3e,null,j6e(HQi(p),(B,E)=>{return J0(),O0(g3e,{key:`${B.kind}-${E}`},[B.kind==="heading"&&B.level===1?(J0(),O0("h1",{key:0,class:"h h1"},BU(B.text),1)):B.kind==="heading"&&B.level===2?(J0(),O0("h2",{key:1,class:"h h2"},BU(B.text),1)):B.kind==="heading"&&B.level===3?(J0(),O0("h3",{key:2,class:"h h3"},BU(B.text),1)):B.kind==="heading"&&B.level===4?(J0(),O0("h4",{key:3,class:"h h4"},BU(B.text),1)):B.kind==="heading"&&B.level===5?(J0(),O0("h5",{key:4,class:"h h5"},BU(B.text),1)):B.kind==="heading"&&B.level===6?(J0(),O0("h6",{key:5,class:"h h6"},BU(B.text),1)):B.kind==="paragraph"?(J0(),O0("p",{key:6,class:"p"},BU(B.text),1)):B.kind==="blockquote"?(J0(),O0("div",{key:7,class:"blockquote"},"\u258C "+BU(B.text),1)):B.kind==="list"&&!B.ordered?(J0(),O0("div",{key:8,class:"list"},[(J0(!0),O0(g3e,null,j6e(B.items,(k,v)=>{return J0(),O0("div",{key:v,class:"list-item",style:fya({paddingLeft:k.depth*2})},"\u2022 "+BU(k.text),5)}),128))])):B.kind==="list"&&B.ordered?(J0(),O0("div",{key:9,class:"list"},[(J0(!0),O0(g3e,null,j6e(B.items,(k,v)=>{return J0(),O0("div",{key:v,class:"list-item",style:fya({paddingLeft:k.depth*2})},BU(k.index)+". "+BU(k.text),5)}),128))])):B.kind==="table"?(J0(),O0("div",{key:10,class:"table"},[PQi("div",{class:"table-row table-header"},[(J0(!0),O0(g3e,null,j6e(B.headers,(k,v)=>{return J0(),O0("div",{key:v,class:"table-cell"},BU(k),1)}),128))]),(J0(!0),O0(g3e,null,j6e(B.rows,(k,v)=>{return J0(),O0("div",{key:v,class:"table-row"},[(J0(!0),O0(g3e,null,j6e(k,(F,T)=>{return J0(),O0("div",{key:T,class:"table-cell"},BU(F),1)}),128))])}),128))])):B.kind==="code"?(J0(),O0("code",{key:11,lang:B.lang,class:"code-block"},BU(B.code),9,["lang"])):B.kind==="rule"?(J0(),O0("div",{key:12,class:"rule"})):jQi("v-if",!0)],64)}),128))])}}});bya.__scopeId="data-v-1c696509";var Cya=bya;var Xf=$d(Vf(),1);var JQi=Xf.defineComponent,Bya=Xf.toDisplayString,Iya=Xf.createElementVNode;var OQi=Xf.openBlock,$Qi=Xf.createElementBlock;var yya={"data-v-7896df58\x00.info":{display:"flex",gap:1},"data-v-7896df58\x00.bar":{width:1,visualStyles:{fg:"#00b4d8"}},"data-v-7896df58\x00.label":{visualStyles:{fg:"#646464"}},"data-v-7896df58\x00.detail":{visualStyles:{fg:"#646464"}}},Eya=JQi({__name:"info-event",props:{label:{type:String,required:!0},detail:{type:String,required:!1}},setup(e){return(a,A)=>{return OQi(),$Qi("div",{class:"info"},[Iya("p",{class:"bar"},"|"),Iya("p",{class:"label"},Bya(e.label)+" "+Bya(e.detail||""),1)])}}});Eya.__scopeId="data-v-7896df58";var E_t=Eya;var Ug=$d(Vf(),1);var zQi=Ug.defineComponent,_ya=Ug.toDisplayString,Qya=Ug.createElementVNode;var wya=Ug.createCommentVNode,Chn=Ug.openBlock,Bhn=Ug.createElementBlock;var WQi=Ug.Fragment,ZQi=Ug.normalizeClass,VQi=Ug.normalizeStyle;var XQi=Ug.resolveComponent;var rme=Ug.unref;var ewi=Ug.createVNode;var Dya={"data-v-5de0ff93\x00.row":{width:"100%",height:1,display:"flex",paddingLeft:1},"data-v-5de0ff93\x00.label":{flexGrow:1,flexShrink:1,flexBasis:0,scrollable:!1,visualStyles:{fg:"#828282"},hover:{visualStyles:{fg:"#bebebe"}}},"data-v-5de0ff93\x00.label.pending":{visualStyles:{fg:"#646464"}},"data-v-5de0ff93\x00.label.failed":{visualStyles:{fg:"#c85a5a"}},"data-v-5de0ff93\x00.block":{display:"flex",flexDirection:"column",borderLeftWidth:1,borderLeftColor:"grey",width:"100%",marginLeft:1,paddingLeft:1},"data-v-5de0ff93\x00.diff":{width:"100%"},"data-v-5de0ff93\x00.diff-more":{width:"100%",height:1,scrollable:!1,visualStyles:{fg:"#555555"}}},kya=8,xya=zQi({__name:"activity-row",props:{row:{type:null,required:!0}},setup(e){let a=e,A=Mhe(),o=Ug.computed(()=>a.row.phase==="declared"),c=Ug.computed(()=>a.row.phase==="failed"),p={"file:read":"\u2261","file:write":"~","file:patch":"~","file:delete":"\u2715","file:move":"\u2192","file:search":"\u2315","proc:exec":"\xBB",http:"\u2197",speech:"\u266A",note:"\xB7"},d=Ug.computed(()=>o.value?A.frame.value??"\xB7":p[a.row.activity]??"\xB7"),h={"file:read":["reading","read"],"file:write":["writing","wrote"],"file:patch":["patching","patched"],"file:delete":["deleting","deleted"],"file:move":["moving","moved"],"file:search":["searching","searched"],"proc:exec":["running","ran"],http:["fetching","fetched"],speech:["speaking","spoke"]},B=Ug.computed(()=>{let T=a.row.data,K=h[a.row.activity],P=K?K[o.value?0:1]:null,te;switch(a.row.activity){case"file:read":{let ge=T.range;te=`${T.path}${ge?` :${ge[0]}\u2013${ge[1]===-1?"":ge[1]}`:""}`;break}case"file:write":case"file:patch":case"file:delete":te=String(T.path??"");break;case"file:move":te=`${T.from} \u2192 ${T.to}`;break;case"file:search":te=`"${T.query}"${T.scope?` in ${T.scope}`:""}`;break;case"proc:exec":te=String(T.command??"");break;case"http":te=`${T.method??"GET"} ${T.url??""}`;break;case"speech":te=`"${T.text}"`;break;case"note":te=String(T.text??"");break;default:te=`${a.row.activity} ${Object.entries(T).map(([ge,me])=>`${ge}=${JSON.stringify(me)}`).join(" ")}`}let ue=P?`${P} ${te}`:te;return c.value&&a.row.error?`${ue} \xB7 ${a.row.error}`:ue}),E=Ug.computed(()=>{if(o.value||c.value)return null;let T=a.row.data;switch(a.row.activity){case"file:search":return typeof T.matches==="number"?`${T.matches} ${T.matches===1?"match":"matches"}`:null;case"file:write":return typeof T.bytes==="number"?F(T.bytes):null;case"proc:exec":return typeof T.exitCode==="number"&&T.exitCode!==0?`exit ${T.exitCode}`:null;case"http":return typeof T.status==="number"?String(T.status):null;default:return null}}),k=Ug.computed(()=>` ${d.value} ${B.value}${E.value?` \xB7 ${E.value}`:""}`),v=Ug.computed(()=>{if(a.row.activity!=="file:patch"||o.value)return null;let{before:T,after:K}=a.row.data;if(typeof T!=="string"||typeof K!=="string")return null;let P=T.split(`
2554
2554
  `),te=K.split(`
2555
2555
  `),ue=0;while(ue<P.length&&ue<te.length&&P[ue]===te[ue])ue++;let ge=0;while(ge<P.length-ue&&ge<te.length-ue&&P[P.length-1-ge]===te[te.length-1-ge])ge++;let me=ue+ge+(P.length-ue-ge)+(te.length-ue-ge);return{before:T,after:K,height:Math.min(me,kya),clamped:Math.max(0,me-kya)}});function F(T){if(T<1024)return`${T}b`;if(T<1048576)return`${Math.round(T/102.4)/10}kb`;return`${Math.round(T/104857.6)/10}mb`}return(T,K)=>{let P=XQi("diff");return Chn(),Bhn(WQi,null,[Qya("div",{class:"row"},[Qya("p",{class:ZQi(["label",{pending:rme(o),failed:rme(c)}])},_ya(rme(k)),3)]),rme(v)?(Chn(),Bhn("div",{key:0,class:"block"},[ewi(P,{before:rme(v).before,after:rme(v).after,lang:"typescript",style:VQi({height:rme(v).height}),class:"diff"},null,8,["before","after","style"]),rme(v).clamped>0?(Chn(),Bhn("p",{key:0,class:"diff-more"},_ya(`\u2026 +${rme(v).clamped} lines`),1)):wya("v-if",!0)])):wya("v-if",!0)],64)}}});xya.__scopeId="data-v-5de0ff93";var vya=xya;var kf=$d(Vf(),1);var Wd=$d(Vf(),1);var twi=Wd.defineComponent,nwi=Wd.toDisplayString,awi=Wd.createElementVNode;var Awi=Wd.createCommentVNode,Ihn=Wd.openBlock,Fya=Wd.createElementBlock,iwi=Wd.createBlock;var rwi=Wd.normalizeClass,yhn=Wd.normalizeStyle;var __t=Wd.unref;var owi=Wd.renderSlot;var Nya={"data-v-8c7ef683\x00.event":{width:"100%",display:"flex",gap:1},"data-v-8c7ef683\x00.prefix":{width:1,height:1},"data-v-8c7ef683\x00.body":{flexGrow:1,flexShrink:1,flexBasis:0,width:"100%"}},swi="#00B4D8",Sya="rgb(200, 60, 60)",Mya=twi({__name:"event",props:{prefix:{type:String,required:!0},text:{type:String,required:!1},variant:{type:String,required:!1},prefixColor:{type:String,required:!1}},setup(e){let a=e,A=Wd.computed(()=>a.variant??"normal"),o=Wd.computed(()=>{if(a.prefixColor)return{color:a.prefixColor};if(A.value==="error")return{color:Sya};return{color:swi}}),c=Wd.computed(()=>{if(A.value==="error")return{color:Sya};if(A.value==="dim")return{color:"rgb(100, 100, 100)"};return{color:"rgb(210, 210, 210)"}});return(p,d)=>{return Ihn(),Fya("div",{class:rwi(["event",__t(A)])},[awi("span",{class:"prefix",style:yhn(__t(o))},nwi(e.prefix),5),Awi(` AxonMarkdown parses via markdown-it and renders each block as a
2556
2556
  real VTerm element (h1-h6, p, ul/ol, code, ...) so height comes
@@ -2558,8 +2558,8 @@ tell application "System Events" to get value of property list item "CFBundleNam
2558
2558
  built-in <markdown> element, whose width-dependent row-count
2559
2559
  estimation is fragile under streaming (see libs/tools/vterm
2560
2560
  debt.md). Structured bodies (tool calls) use the slot and get a
2561
- plain flex body instead. `),e.text!==void 0?(Ihn(),iwi(Cya,{key:0,class:"body",style:yhn(__t(c)),text:e.text},null,8,["style","text"])):(Ihn(),Fya("div",{key:1,class:"body",style:yhn(__t(c))},[owi(p.$slots,"default")],4))],2)}}});Mya.__scopeId="data-v-8c7ef683";var Uhe=Mya;var of=$d(Vf(),1);var cwi=of.defineComponent,uwi=of.toDisplayString,Gya=of.createElementVNode;var Ehn=of.openBlock,_hn=of.createElementBlock;var lwi=of.renderList,pwi=of.Fragment;var gwi=of.unref;var Lya={"data-v-2f01435e\x00.error-event":{width:"100%",display:"flex",gap:1,marginBottom:1},"data-v-2f01435e\x00.bar":{width:1,visualStyles:{fg:"#c83c3c"}},"data-v-2f01435e\x00.body":{flexGrow:1,flexShrink:1,flexBasis:0,display:"flex",flexDirection:"column",visualStyles:{fg:"#dc7878"}},"data-v-2f01435e\x00.text":{width:"100%"}},Tya=cwi({__name:"error-event",props:{message:{type:String,required:!0}},setup(e){let a=e,A=of.computed(()=>a.message.split(`
2562
- `));return(o,c)=>{return Ehn(),_hn("div",{class:"error-event"},[Gya("p",{class:"bar"},"|"),Gya("div",{class:"body"},[(Ehn(!0),_hn(pwi,null,lwi(gwi(A),(p,d)=>{return Ehn(),_hn("p",{key:d,class:"text"},uwi(p),1)}),128))])])}}});Tya.__scopeId="data-v-2f01435e";var ome=Tya;var id=$d(Vf(),1);var dwi=id.defineComponent,C4=id.toDisplayString,iw=id.createElementVNode;var IU=id.createCommentVNode,B4=id.openBlock,I4=id.createElementBlock;var Q_t=id.renderList,Jlt=id.Fragment;var LF=id.unref;var qya={"data-v-787087ee\x00.axon-error":{width:"100%",display:"flex",flexDirection:"column",marginBottom:1},"data-v-787087ee\x00.head-row":{display:"flex",gap:1,width:"100%"},"data-v-787087ee\x00.bar":{width:1,display:"flex",flexDirection:"column",visualStyles:{fg:"#b43c3c"}},"data-v-787087ee\x00.head-body":{flexGrow:1,flexShrink:1,flexBasis:0,display:"flex",flexDirection:"column",width:"100%"},"data-v-787087ee\x00.body":{display:"flex",flexDirection:"column",width:"100%",paddingLeft:3},"data-v-787087ee\x00.header":{display:"flex",gap:1,height:1},"data-v-787087ee\x00.code":{visualStyles:{fg:"#f14c4c"}},"data-v-787087ee\x00.colon":{visualStyles:{fg:"#f14c4c"}},"data-v-787087ee\x00.title":{visualStyles:{fg:"#f14c4c"},flexGrow:1,flexShrink:1,flexBasis:0},"data-v-787087ee\x00.chevron":{width:1,visualStyles:{fg:"#828282"}},"data-v-787087ee\x00.description":{height:1,visualStyles:{fg:"#b4b4b4"}},"data-v-787087ee\x00.detail":{height:1,visualStyles:{fg:"#d2d2d2"}},"data-v-787087ee\x00.context":{display:"flex",flexDirection:"column"},"data-v-787087ee\x00.context-label":{height:1,visualStyles:{fg:"#828282"}},"data-v-787087ee\x00.context-row":{display:"flex",gap:1,height:1},"data-v-787087ee\x00.context-key":{visualStyles:{fg:"#00b4d8"}},"data-v-787087ee\x00.context-value":{visualStyles:{fg:"#b4b4b4"}},"data-v-787087ee\x00.frame":{display:"flex",flexDirection:"column"},"data-v-787087ee\x00.frame-location":{height:1,visualStyles:{fg:"#828282"}},"data-v-787087ee\x00.snippet-row":{display:"flex",height:1},"data-v-787087ee\x00.snippet-marker":{width:1,visualStyles:{fg:"#00b4d8"}},"data-v-787087ee\x00.snippet-num":{visualStyles:{fg:"#3c3c3c"}},"data-v-787087ee\x00.snippet-sep":{visualStyles:{fg:"#3c3c3c"}},"data-v-787087ee\x00.snippet-text":{visualStyles:{fg:"#b4b4b4"}},"data-v-787087ee\x00.cause":{display:"flex",flexDirection:"column",marginTop:1},"data-v-787087ee\x00.cause-location":{height:1,visualStyles:{fg:"#828282"}},"data-v-787087ee\x00.cause-message":{height:1,visualStyles:{fg:"#e8a15c"}},"data-v-787087ee\x00.internal-toggle":{display:"flex",gap:1,height:1,marginTop:1},"data-v-787087ee\x00.internal-chevron":{width:1,visualStyles:{fg:"#828282"}},"data-v-787087ee\x00.internal-label":{visualStyles:{fg:"#828282"}}},Rya=dwi({__name:"axon-error",props:{error:{type:null,required:!0}},setup(e){let a=e,A=id.ref(!1),o=id.ref(!1);function c(){A.value=!A.value}function p(){o.value=!o.value}let d=id.computed(()=>a.error.code==="AX-UNKNOWN-001"),h=id.computed(()=>{return a.error.message&&a.error.message!==a.error.title?a.error.message:null}),B=new Set(["configPath","path","sourceDir","root"]),E=id.computed(()=>{if(!a.error.context)return[];return Object.entries(a.error.context).filter(([te])=>!(P.value&&B.has(te))).map(([te,ue])=>({key:te,value:typeof ue==="string"?ue:JSON.stringify(ue)}))}),k=id.computed(()=>{let te=a.error.frames.flatMap((ue)=>ue.source??[]).at(-1);return te?String(te.lineNumber).length:1});function v(te){if(!te.fileName||te.lineNumber===null)return te.functionName??"<unknown>";let ue=`${te.fileName}:${te.lineNumber}:${te.columnNumber??0}`;return te.functionName?`${te.functionName} (${ue})`:ue}function F(te){if(!te.fileName||te.lineNumber===null)return"";return`${te.fileName}:${te.lineNumber}:${te.columnNumber??0}`}let T=id.computed(()=>{let te=a.error.cause;if(te===void 0)return null;if(te&&typeof te==="object"&&"message"in te){let ue=te;return{message:ue.message,frame:ue.frame??null}}if(te instanceof Error)return{message:te.message,frame:null};return{message:String(te),frame:null}}),K=id.computed(()=>{let te=T.value?.frame?.source?.at(-1);return te?String(te.lineNumber).length:1}),P=id.computed(()=>{let te=T.value?.frame;if(te)return F(te);let ue=a.error.context;if(!ue)return null;let ge=ue.configPath??ue.path??ue.sourceDir??ue.root;return typeof ge==="string"?ge:null});return(te,ue)=>{return B4(),I4("div",{class:"axon-error"},[iw("div",{class:"head-row"},[iw("div",{class:"bar"},[iw("p",null,"|"),iw("p",null,"|"),LF(P)?(B4(),I4("p",{key:0},"|")):IU("v-if",!0)]),iw("div",{class:"head-body"},[iw("div",{class:"header",onPress:c},[iw("span",{class:"code"},C4(e.error.code),1),iw("span",{class:"colon"},":"),iw("span",{class:"title"},C4(e.error.title),1),iw("span",{class:"chevron"},C4(LF(A)?"\u25BE":"\u25B8"),1)],32),iw("div",{class:"description"},C4(e.error.description),1),IU(` Where the failure actually happened \u2014 the user's own
2561
+ plain flex body instead. `),e.text!==void 0?(Ihn(),iwi(Cya,{key:0,class:"body",style:yhn(__t(c)),text:e.text},null,8,["style","text"])):(Ihn(),Fya("div",{key:1,class:"body",style:yhn(__t(c))},[owi(p.$slots,"default")],4))],2)}}});Mya.__scopeId="data-v-8c7ef683";var Uhe=Mya;var of=$d(Vf(),1);var cwi=of.defineComponent,uwi=of.toDisplayString,Gya=of.createElementVNode;var Ehn=of.openBlock,_hn=of.createElementBlock;var lwi=of.renderList,pwi=of.Fragment;var gwi=of.unref;var Lya={"data-v-2f01435e\x00.error-event":{width:"100%",display:"flex",gap:1},"data-v-2f01435e\x00.bar":{width:1,visualStyles:{fg:"#c83c3c"}},"data-v-2f01435e\x00.body":{flexGrow:1,flexShrink:1,flexBasis:0,display:"flex",flexDirection:"column",visualStyles:{fg:"#dc7878"}},"data-v-2f01435e\x00.text":{width:"100%"}},Tya=cwi({__name:"error-event",props:{message:{type:String,required:!0}},setup(e){let a=e,A=of.computed(()=>a.message.split(`
2562
+ `));return(o,c)=>{return Ehn(),_hn("div",{class:"error-event"},[Gya("p",{class:"bar"},"|"),Gya("div",{class:"body"},[(Ehn(!0),_hn(pwi,null,lwi(gwi(A),(p,d)=>{return Ehn(),_hn("p",{key:d,class:"text"},uwi(p),1)}),128))])])}}});Tya.__scopeId="data-v-2f01435e";var ome=Tya;var id=$d(Vf(),1);var dwi=id.defineComponent,C4=id.toDisplayString,iw=id.createElementVNode;var IU=id.createCommentVNode,B4=id.openBlock,I4=id.createElementBlock;var Q_t=id.renderList,Jlt=id.Fragment;var LF=id.unref;var qya={"data-v-787087ee\x00.axon-error":{width:"100%",display:"flex",flexDirection:"column"},"data-v-787087ee\x00.head-row":{display:"flex",gap:1,width:"100%"},"data-v-787087ee\x00.bar":{width:1,display:"flex",flexDirection:"column",visualStyles:{fg:"#b43c3c"}},"data-v-787087ee\x00.head-body":{flexGrow:1,flexShrink:1,flexBasis:0,display:"flex",flexDirection:"column",width:"100%"},"data-v-787087ee\x00.body":{display:"flex",flexDirection:"column",width:"100%",paddingLeft:3},"data-v-787087ee\x00.header":{display:"flex",gap:1,height:1},"data-v-787087ee\x00.code":{visualStyles:{fg:"#f14c4c"}},"data-v-787087ee\x00.colon":{visualStyles:{fg:"#f14c4c"}},"data-v-787087ee\x00.title":{visualStyles:{fg:"#f14c4c"},flexGrow:1,flexShrink:1,flexBasis:0},"data-v-787087ee\x00.chevron":{width:1,visualStyles:{fg:"#828282"}},"data-v-787087ee\x00.description":{height:1,visualStyles:{fg:"#b4b4b4"}},"data-v-787087ee\x00.detail":{height:1,visualStyles:{fg:"#d2d2d2"}},"data-v-787087ee\x00.context":{display:"flex",flexDirection:"column"},"data-v-787087ee\x00.context-label":{height:1,visualStyles:{fg:"#828282"}},"data-v-787087ee\x00.context-row":{display:"flex",gap:1,height:1},"data-v-787087ee\x00.context-key":{visualStyles:{fg:"#00b4d8"}},"data-v-787087ee\x00.context-value":{visualStyles:{fg:"#b4b4b4"}},"data-v-787087ee\x00.frame":{display:"flex",flexDirection:"column"},"data-v-787087ee\x00.frame-location":{height:1,visualStyles:{fg:"#828282"}},"data-v-787087ee\x00.snippet-row":{display:"flex",height:1},"data-v-787087ee\x00.snippet-marker":{width:1,visualStyles:{fg:"#00b4d8"}},"data-v-787087ee\x00.snippet-num":{visualStyles:{fg:"#3c3c3c"}},"data-v-787087ee\x00.snippet-sep":{visualStyles:{fg:"#3c3c3c"}},"data-v-787087ee\x00.snippet-text":{visualStyles:{fg:"#b4b4b4"}},"data-v-787087ee\x00.cause":{display:"flex",flexDirection:"column",marginTop:1},"data-v-787087ee\x00.cause-location":{height:1,visualStyles:{fg:"#828282"}},"data-v-787087ee\x00.cause-message":{height:1,visualStyles:{fg:"#e8a15c"}},"data-v-787087ee\x00.internal-toggle":{display:"flex",gap:1,height:1,marginTop:1},"data-v-787087ee\x00.internal-chevron":{width:1,visualStyles:{fg:"#828282"}},"data-v-787087ee\x00.internal-label":{visualStyles:{fg:"#828282"}}},Rya=dwi({__name:"axon-error",props:{error:{type:null,required:!0}},setup(e){let a=e,A=id.ref(!1),o=id.ref(!1);function c(){A.value=!A.value}function p(){o.value=!o.value}let d=id.computed(()=>a.error.code==="AX-UNKNOWN-001"),h=id.computed(()=>{return a.error.message&&a.error.message!==a.error.title?a.error.message:null}),B=new Set(["configPath","path","sourceDir","root"]),E=id.computed(()=>{if(!a.error.context)return[];return Object.entries(a.error.context).filter(([te])=>!(P.value&&B.has(te))).map(([te,ue])=>({key:te,value:typeof ue==="string"?ue:JSON.stringify(ue)}))}),k=id.computed(()=>{let te=a.error.frames.flatMap((ue)=>ue.source??[]).at(-1);return te?String(te.lineNumber).length:1});function v(te){if(!te.fileName||te.lineNumber===null)return te.functionName??"<unknown>";let ue=`${te.fileName}:${te.lineNumber}:${te.columnNumber??0}`;return te.functionName?`${te.functionName} (${ue})`:ue}function F(te){if(!te.fileName||te.lineNumber===null)return"";return`${te.fileName}:${te.lineNumber}:${te.columnNumber??0}`}let T=id.computed(()=>{let te=a.error.cause;if(te===void 0)return null;if(te&&typeof te==="object"&&"message"in te){let ue=te;return{message:ue.message,frame:ue.frame??null}}if(te instanceof Error)return{message:te.message,frame:null};return{message:String(te),frame:null}}),K=id.computed(()=>{let te=T.value?.frame?.source?.at(-1);return te?String(te.lineNumber).length:1}),P=id.computed(()=>{let te=T.value?.frame;if(te)return F(te);let ue=a.error.context;if(!ue)return null;let ge=ue.configPath??ue.path??ue.sourceDir??ue.root;return typeof ge==="string"?ge:null});return(te,ue)=>{return B4(),I4("div",{class:"axon-error"},[iw("div",{class:"head-row"},[iw("div",{class:"bar"},[iw("p",null,"|"),iw("p",null,"|"),LF(P)?(B4(),I4("p",{key:0},"|")):IU("v-if",!0)]),iw("div",{class:"head-body"},[iw("div",{class:"header",onPress:c},[iw("span",{class:"code"},C4(e.error.code),1),iw("span",{class:"colon"},":"),iw("span",{class:"title"},C4(e.error.title),1),iw("span",{class:"chevron"},C4(LF(A)?"\u25BE":"\u25B8"),1)],32),iw("div",{class:"description"},C4(e.error.description),1),IU(` Where the failure actually happened \u2014 the user's own
2563
2563
  file, dimmed. Lives under the bar alongside the
2564
2564
  code/title/description so the location reads as part of
2565
2565
  the header, not as extra weight stacked below it. `),LF(P)?(B4(),I4("div",{key:0,class:"cause-location"},C4(LF(P)),1)):IU("v-if",!0)])]),iw("div",{class:"body"},[IU(` The cause, promoted \u2014 this is the user's OWN code that
@@ -2591,7 +2591,7 @@ tell application "System Events" to get value of property list item "CFBundleNam
2591
2591
  Once something has settled at least once, keep showing THAT (via
2592
2592
  displayEntry / lastSettled) even while a new cycle reopens the row \u2014
2593
2593
  otherwise an already-visible "reloaded" row blinks out to nothing on
2594
- every subsequent file save, which reads as a flicker, not an update. `),Khe(A)&&Khe(p)?(F_t(),xhn(cee,{key:0,error:Khe(p)},null,8,["error"])):Khe(A)?(F_t(),xhn(ome,{key:1,message:Khe(d)},null,8,["message"])):Khe(o)?(F_t(),xhn(E_t,{key:2,label:Khe(h),detail:Khe(B)},null,8,["label","detail"])):tEa("v-if",!0)],2112)}}}),aEa=Mwi;var Zm=$d(Vf(),1);var Gwi=Zm.defineComponent;var Lwi=Zm.createElementVNode;var Twi=Zm.openBlock,qwi=Zm.createElementBlock;var Rwi=Zm.createVNode;var Uwi=Zm.renderSlot;var AEa={"data-v-8c792391\x00.layout":{display:"flex",flexDirection:"column",gap:1,width:"100%",height:"100%",paddingTop:1},"data-v-8c792391\x00.content":{flexGrow:1,flexShrink:1,flexBasis:0,scrollable:!1}},iEa=Gwi({__name:"default",setup(e){let a=jEt();Zm.onUnmounted(a);let A=L6e().start();Zm.onUnmounted(A);let o=TM(),c=gE(),p=CB(),d=Ghe();d.bind((B)=>c.exit(B));let h=c.onBeforeExit(()=>d.onQuit());return Zm.onUnmounted(h),Zm.watch(o.isAuthenticated,(B)=>{p.push(B?"/":"/auth")},{immediate:!0}),(B,E)=>{return Twi(),qwi("div",{class:"layout"},[Lwi("div",{class:"content"},[Uwi(B.$slots,"default")]),Rwi(dIa)])}}});iEa.__scopeId="data-v-8c792391";var rEa=iEa;var Vm=$d(Vf(),1);var Kwi=Vm.defineComponent;var Ywi=Vm.createElementVNode;var Pwi=Vm.createCommentVNode,S_t=Vm.openBlock,vhn=Vm.createElementBlock,jwi=Vm.createBlock;var Hwi=Vm.renderList,Jwi=Vm.Fragment;var oEa=Vm.unref;var sEa={"data-v-55ee1ff4\x00.log-page":{display:"flex",flexDirection:"column",paddingRight:2,scrollable:!0,alwaysScroll:!0,scrollableY:!0,width:"100%",height:"100%"},"data-v-55ee1ff4\x00.title":{height:1,visualStyles:{fg:"#00b4d8"},marginBottom:1},"data-v-55ee1ff4\x00.empty":{height:1,visualStyles:{fg:"#646464"}}},cEa=Kwi({__name:"kernel",setup(e){let a=Xb(),A=Vm.computed(()=>a.session.value.kernelEvents);return(o,c)=>{return S_t(),vhn("div",{class:"log-page"},[Ywi("p",{class:"title"},"kernel log"),(S_t(!0),vhn(Jwi,null,Hwi(oEa(A),(p)=>{return S_t(),jwi(k_t,{key:p.id,entry:p},null,8,["entry"])}),128)),oEa(A).length===0?(S_t(),vhn("p",{key:0,class:"empty"},"no kernel events yet")):Pwi("v-if",!0)])}}});cEa.__scopeId="data-v-55ee1ff4";var uEa=cEa;var Xm=$d(Vf(),1);var Owi=Xm.defineComponent;var $wi=Xm.createElementVNode;var zwi=Xm.createCommentVNode,N_t=Xm.openBlock,Fhn=Xm.createElementBlock,Wwi=Xm.createBlock;var Zwi=Xm.renderList,Vwi=Xm.Fragment;var lEa=Xm.unref;var pEa={"data-v-a1163f9f\x00.log-page":{display:"flex",flexDirection:"column",paddingRight:2,scrollable:!0,alwaysScroll:!0,scrollableY:!0,width:"100%",height:"100%"},"data-v-a1163f9f\x00.title":{height:1,visualStyles:{fg:"#00b4d8"},marginBottom:1},"data-v-a1163f9f\x00.empty":{height:1,visualStyles:{fg:"#646464"}}},gEa=Owi({__name:"session",setup(e){let a=Xb(),A=Xm.computed(()=>a.session.value.events);return(o,c)=>{return N_t(),Fhn("div",{class:"log-page"},[$wi("p",{class:"title"},"session log"),(N_t(!0),Fhn(Vwi,null,Zwi(lEa(A),(p)=>{return N_t(),Wwi(w_t,{key:p.id,entry:p},null,8,["entry"])}),128)),lEa(A).length===0?(N_t(),Fhn("p",{key:0,class:"empty"},"no session events yet")):zwi("v-if",!0)])}}});gEa.__scopeId="data-v-a1163f9f";var dEa=gEa;var km=$d(Vf(),1);var Xwi=km.defineComponent,Shn=km.toDisplayString,Nhn=km.createElementVNode;var e0i=km.createCommentVNode,H6e=km.openBlock,J6e=km.createElementBlock;var t0i=km.renderList,mEa=km.Fragment;var Wlt=km.unref;var fEa={"data-v-050ab2ed\x00.proc-page":{display:"flex",flexDirection:"column",paddingRight:2,scrollable:!0,alwaysScroll:!0,scrollableY:!0,width:"100%",height:"100%"},"data-v-050ab2ed\x00.head":{display:"flex",flexDirection:"column",marginBottom:1},"data-v-050ab2ed\x00.command":{height:1,visualStyles:{fg:"#00b4d8"}},"data-v-050ab2ed\x00.meta":{height:1,visualStyles:{fg:"#646464"}},"data-v-050ab2ed\x00.line":{width:"100%",visualStyles:{fg:"#b4b4b4"}},"data-v-050ab2ed\x00.empty":{height:1,visualStyles:{fg:"#646464"}}},hEa=Xwi({__name:"[id]",setup(e){let a=Xb(),A=f_(),o=km.computed(()=>{let p=String(A.value.params.id??"");return a.session.value.processes.find((d)=>d.procId===p)??null}),c=km.computed(()=>{if(!o.value)return"";let p=o.value;if(p.status==="running")return`running${p.pid?` \xB7 pid ${p.pid}`:""}`;if(p.status==="down")return"down \xB7 restarting";return`exited ${p.exitCode??"?"}`});return(p,d)=>{return H6e(),J6e("div",{class:"proc-page"},[Wlt(o)?(H6e(),J6e(mEa,{key:0},[Nhn("div",{class:"head"},[Nhn("p",{class:"command"},Shn(Wlt(o).command),1),Nhn("p",{class:"meta"},Shn(Wlt(c)),1)]),(H6e(!0),J6e(mEa,null,t0i(Wlt(o).output,(h,B)=>{return H6e(),J6e("p",{key:B,class:"line"},Shn(h),1)}),128)),Wlt(o).output.length===0?(H6e(),J6e("p",{key:0,class:"empty"},"no output yet")):e0i("v-if",!0)],64)):(H6e(),J6e("p",{key:1,class:"empty"},"process not found"))])}}});hEa.__scopeId="data-v-050ab2ed";var bEa=hEa;var Gh=$d(Vf(),1);var n0i=Gh.defineComponent;var a0i=Gh.createCommentVNode;var CEa={"data-v-299b8e75\x00.account":{display:"flex",flexDirection:"column",width:"100%",height:"100%",scrollable:!0,alwaysScroll:!0,scrollableY:!0,gap:1},"data-v-299b8e75\x00.section":{display:"flex",flexDirection:"column"},"data-v-299b8e75\x00.section-header":{visualStyles:{bold:!0}},"data-v-299b8e75\x00.table":{display:"flex",flexDirection:"column"},"data-v-299b8e75\x00.row":{display:"flex",gap:2},"data-v-299b8e75\x00.row-action":{cursor:"pointer"},"data-v-299b8e75\x00.row-active .key":{visualStyles:{fg:"white"}},"data-v-299b8e75\x00.key":{width:18,visualStyles:{fg:"#787878"}},"data-v-299b8e75\x00.val":{visualStyles:{fg:"white"},flexGrow:1,flexShrink:1,flexBasis:0},"data-v-299b8e75\x00.val.dim":{visualStyles:{fg:"#505050"}},"data-v-299b8e75\x00.dim":{visualStyles:{fg:"#505050"}},"data-v-299b8e75\x00.badge":{pointerEvents:"none"},"data-v-299b8e75\x00.checkbox":{width:3,pointerEvents:"none"},"data-v-299b8e75\x00.checkbox-label":{visualStyles:{fg:"white"},pointerEvents:"none"},"data-v-299b8e75\x00.hint":{visualStyles:{fg:"#646464"}}},BEa=n0i({__name:"account",setup(e){return(a,A)=>{return a0i(` <div class="account">
2594
+ every subsequent file save, which reads as a flicker, not an update. `),Khe(A)&&Khe(p)?(F_t(),xhn(cee,{key:0,error:Khe(p)},null,8,["error"])):Khe(A)?(F_t(),xhn(ome,{key:1,message:Khe(d)},null,8,["message"])):Khe(o)?(F_t(),xhn(E_t,{key:2,label:Khe(h),detail:Khe(B)},null,8,["label","detail"])):tEa("v-if",!0)],2112)}}}),aEa=Mwi;var Zm=$d(Vf(),1);var Gwi=Zm.defineComponent;var Lwi=Zm.createElementVNode;var Twi=Zm.openBlock,qwi=Zm.createElementBlock;var Rwi=Zm.createVNode;var Uwi=Zm.renderSlot;var AEa={"data-v-8c792391\x00.layout":{display:"flex",flexDirection:"column",gap:1,width:"100%",height:"100%",paddingTop:1},"data-v-8c792391\x00.content":{flexGrow:1,flexShrink:1,flexBasis:0,scrollable:!1}},iEa=Gwi({__name:"default",setup(e){let a=jEt();Zm.onUnmounted(a);let A=L6e().start();Zm.onUnmounted(A);let o=TM(),c=gE(),p=CB(),d=Ghe();d.bind((B)=>c.exit(B));let h=c.onBeforeExit(()=>d.onQuit());return Zm.onUnmounted(h),Zm.watch(o.isAuthenticated,(B)=>{p.push(B?"/":"/auth")},{immediate:!0}),(B,E)=>{return Twi(),qwi("div",{class:"layout"},[Lwi("div",{class:"content"},[Uwi(B.$slots,"default")]),Rwi(dIa)])}}});iEa.__scopeId="data-v-8c792391";var rEa=iEa;var Vm=$d(Vf(),1);var Kwi=Vm.defineComponent;var Ywi=Vm.createElementVNode;var Pwi=Vm.createCommentVNode,S_t=Vm.openBlock,vhn=Vm.createElementBlock,jwi=Vm.createBlock;var Hwi=Vm.renderList,Jwi=Vm.Fragment;var oEa=Vm.unref;var sEa={"data-v-55ee1ff4\x00.log-page":{display:"flex",flexDirection:"column",paddingRight:2,scrollable:!0,alwaysScroll:!0,scrollableY:!0,width:"100%",height:"100%"},"data-v-55ee1ff4\x00.title":{height:1,visualStyles:{fg:"#00b4d8"}},"data-v-55ee1ff4\x00.empty":{height:1,visualStyles:{fg:"#646464"}}},cEa=Kwi({__name:"kernel",setup(e){let a=Xb(),A=Vm.computed(()=>a.session.value.kernelEvents);return(o,c)=>{return S_t(),vhn("div",{class:"log-page"},[Ywi("p",{class:"title"},"kernel log"),(S_t(!0),vhn(Jwi,null,Hwi(oEa(A),(p)=>{return S_t(),jwi(k_t,{key:p.id,entry:p},null,8,["entry"])}),128)),oEa(A).length===0?(S_t(),vhn("p",{key:0,class:"empty"},"no kernel events yet")):Pwi("v-if",!0)])}}});cEa.__scopeId="data-v-55ee1ff4";var uEa=cEa;var Xm=$d(Vf(),1);var Owi=Xm.defineComponent;var $wi=Xm.createElementVNode;var zwi=Xm.createCommentVNode,N_t=Xm.openBlock,Fhn=Xm.createElementBlock,Wwi=Xm.createBlock;var Zwi=Xm.renderList,Vwi=Xm.Fragment;var lEa=Xm.unref;var pEa={"data-v-a1163f9f\x00.log-page":{display:"flex",flexDirection:"column",paddingRight:2,scrollable:!0,alwaysScroll:!0,scrollableY:!0,width:"100%",height:"100%"},"data-v-a1163f9f\x00.title":{height:1,visualStyles:{fg:"#00b4d8"},marginBottom:1},"data-v-a1163f9f\x00.empty":{height:1,visualStyles:{fg:"#646464"}}},gEa=Owi({__name:"session",setup(e){let a=Xb(),A=Xm.computed(()=>a.session.value.events);return(o,c)=>{return N_t(),Fhn("div",{class:"log-page"},[$wi("p",{class:"title"},"session log"),(N_t(!0),Fhn(Vwi,null,Zwi(lEa(A),(p)=>{return N_t(),Wwi(w_t,{key:p.id,entry:p},null,8,["entry"])}),128)),lEa(A).length===0?(N_t(),Fhn("p",{key:0,class:"empty"},"no session events yet")):zwi("v-if",!0)])}}});gEa.__scopeId="data-v-a1163f9f";var dEa=gEa;var km=$d(Vf(),1);var Xwi=km.defineComponent,Shn=km.toDisplayString,Nhn=km.createElementVNode;var e0i=km.createCommentVNode,H6e=km.openBlock,J6e=km.createElementBlock;var t0i=km.renderList,mEa=km.Fragment;var Wlt=km.unref;var fEa={"data-v-050ab2ed\x00.proc-page":{display:"flex",flexDirection:"column",paddingRight:2,scrollable:!0,alwaysScroll:!0,scrollableY:!0,width:"100%",height:"100%"},"data-v-050ab2ed\x00.head":{display:"flex",flexDirection:"column",marginBottom:1},"data-v-050ab2ed\x00.command":{height:1,visualStyles:{fg:"#00b4d8"}},"data-v-050ab2ed\x00.meta":{height:1,visualStyles:{fg:"#646464"}},"data-v-050ab2ed\x00.line":{width:"100%",visualStyles:{fg:"#b4b4b4"}},"data-v-050ab2ed\x00.empty":{height:1,visualStyles:{fg:"#646464"}}},hEa=Xwi({__name:"[id]",setup(e){let a=Xb(),A=f_(),o=km.computed(()=>{let p=String(A.value.params.id??"");return a.session.value.processes.find((d)=>d.procId===p)??null}),c=km.computed(()=>{if(!o.value)return"";let p=o.value;if(p.status==="running")return`running${p.pid?` \xB7 pid ${p.pid}`:""}`;if(p.status==="down")return"down \xB7 restarting";return`exited ${p.exitCode??"?"}`});return(p,d)=>{return H6e(),J6e("div",{class:"proc-page"},[Wlt(o)?(H6e(),J6e(mEa,{key:0},[Nhn("div",{class:"head"},[Nhn("p",{class:"command"},Shn(Wlt(o).command),1),Nhn("p",{class:"meta"},Shn(Wlt(c)),1)]),(H6e(!0),J6e(mEa,null,t0i(Wlt(o).output,(h,B)=>{return H6e(),J6e("p",{key:B,class:"line"},Shn(h),1)}),128)),Wlt(o).output.length===0?(H6e(),J6e("p",{key:0,class:"empty"},"no output yet")):e0i("v-if",!0)],64)):(H6e(),J6e("p",{key:1,class:"empty"},"process not found"))])}}});hEa.__scopeId="data-v-050ab2ed";var bEa=hEa;var Gh=$d(Vf(),1);var n0i=Gh.defineComponent;var a0i=Gh.createCommentVNode;var CEa={"data-v-299b8e75\x00.account":{display:"flex",flexDirection:"column",width:"100%",height:"100%",scrollable:!0,alwaysScroll:!0,scrollableY:!0,gap:1},"data-v-299b8e75\x00.section":{display:"flex",flexDirection:"column"},"data-v-299b8e75\x00.section-header":{visualStyles:{bold:!0}},"data-v-299b8e75\x00.table":{display:"flex",flexDirection:"column"},"data-v-299b8e75\x00.row":{display:"flex",gap:2},"data-v-299b8e75\x00.row-action":{cursor:"pointer"},"data-v-299b8e75\x00.row-active .key":{visualStyles:{fg:"white"}},"data-v-299b8e75\x00.key":{width:18,visualStyles:{fg:"#787878"}},"data-v-299b8e75\x00.val":{visualStyles:{fg:"white"},flexGrow:1,flexShrink:1,flexBasis:0},"data-v-299b8e75\x00.val.dim":{visualStyles:{fg:"#505050"}},"data-v-299b8e75\x00.dim":{visualStyles:{fg:"#505050"}},"data-v-299b8e75\x00.badge":{pointerEvents:"none"},"data-v-299b8e75\x00.checkbox":{width:3,pointerEvents:"none"},"data-v-299b8e75\x00.checkbox-label":{visualStyles:{fg:"white"},pointerEvents:"none"},"data-v-299b8e75\x00.hint":{visualStyles:{fg:"#646464"}}},BEa=n0i({__name:"account",setup(e){return(a,A)=>{return a0i(` <div class="account">
2595
2595
  <div class="section">
2596
2596
  <div class="section-header" :style="primaryStyle">Account</div>
2597
2597
  <div v-if="user" class="table">
@@ -2667,4 +2667,4 @@ tell application "System Events" to get value of property list item "CFBundleNam
2667
2667
  constructed already shows via session-event.vue \u2014 don't render
2668
2668
  it twice). `),Qj(B)?(_j(),Mte(cee,{key:0,error:Qj(B)},null,8,["error"])):Qj(a).error.value&&!Qj(h)?(_j(),Mte(ome,{key:1,message:Qj(a).error.value.message},null,8,["message"])):lee("v-if",!0),lee(` Client-side send failure \u2014 the run never reached the kernel
2669
2669
  (no agent booted), so there is no session entry for it
2670
- anywhere; this is the one place it's surfaced. `),Qj(E)&&!Qj(k)?(_j(),Mte(cee,{key:2,error:Qj(E)},null,8,["error"])):Qj(A).sendError.value&&!Qj(k)?(_j(),Mte(ome,{key:3,message:Qj(A).sendError.value.message},null,8,["message"])):lee("v-if",!0)],8,["scroll-bottom"])}}});TEa.__scopeId="data-v-2f7dd66a";var qEa=TEa;var U_t=!1;{let e=process.argv.slice(2),a={version:"2.0.54"},A={"--version":async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},"--help":async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},init:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},prepare:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},dev:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},build:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},deploy:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},publish:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},install:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},i:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},uninstall:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},list:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},clone:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},fork:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},watch:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},unwatch:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},settings:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},login:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},logout:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},update:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},whoami:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},cognet:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},module:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},ps:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},status:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},logs:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},undeploy:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},bench:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)}};for(let[o,c]of Object.entries(A))if(o.startsWith("-")&&e.includes(o)){let p=e.indexOf(o);await c({...a,args:e.slice(p+1),command:o}),U_t=!0;break}if(!U_t){let o=e.findIndex((p)=>!p.startsWith("-")),c=o===-1?void 0:e[o];if(c&&c in A)await A[c]({...a,args:e.slice(o+1),command:c}),U_t=!0}}if(!U_t)dun({routes:[{path:"/logs/kernel",component:uEa,name:"logs-kernel"},{path:"/logs/session",component:dEa,name:"logs-session"},{path:"/capsule/:id",component:bEa,name:"capsule-id"},{path:"/account",component:IEa,name:"account",meta:{layout:"default"}},{path:"/auth",component:QEa,name:"auth",meta:{layout:"default"}},{path:"/",component:qEa,name:"home",meta:{layout:"default"}}],styles:[uBa,rBa,hBa,pIa,yBa,hya,yya,Dya,Uya,Pya,jya,Wya,Xya,nEa,Lya,qya,Nya,AIa,cIa,XBa,AEa,sEa,pEa,fEa,CEa,EEa,LEa],layouts:new Map([["default",rEa]]),middleware:[aBa],screen:{title:"VTerm"},quitKeys:["C-c"],highlight:{theme:{name:"arcnight",type:"dark",colors:{"editor.background":"#070b10","editor.foreground":"#c7eaff"},tokenColors:[{scope:["variable","variable.other","variable.other.property","variable.other.object.property","variable.other.readwrite","meta.object-literal.key","support.variable.property"],settings:{foreground:"#7cceff"}},{scope:["keyword","keyword.control","keyword.other","storage","storage.type","storage.modifier"],settings:{foreground:"#345a94"}},{scope:["constant.numeric","number"],settings:{foreground:"#326396"}},{scope:["entity.name.type","entity.name.class","constant","support.type"],settings:{foreground:"#3caed5"}},{scope:["entity.name.function","support.function","meta.function-call"],settings:{foreground:"#3caed5"}},{scope:["string","string.quoted","string.template"],settings:{foreground:"#4c6696"}},{scope:["keyword.operator","punctuation.accessor"],settings:{foreground:"#7cceff"}},{scope:["comment","comment.line","comment.block"],settings:{foreground:"#585858",fontStyle:"italic"}},{scope:["punctuation.definition.tag.air"],settings:{foreground:"#2a4a6a"}},{scope:["entity.name.tag.section.air"],settings:{foreground:"#345a94"}},{scope:["entity.name.tag.turn.air"],settings:{foreground:"#3caed5"}},{scope:["entity.name.tag.execute.air"],settings:{foreground:"#00B4D8"}},{scope:["entity.name.tag.stdout.air"],settings:{foreground:"#4c6696"}},{scope:["entity.name.tag.prose.air"],settings:{foreground:"#7cceff"}},{scope:["entity.name.tag.signal.air"],settings:{foreground:"#3caed5"}},{scope:["entity.name.tag.env.air"],settings:{foreground:"#345a94"}},{scope:["entity.name.tag.system.air"],settings:{foreground:"#b43c3c"}},{scope:["entity.name.tag.state.air"],settings:{foreground:"#585858"}},{scope:["entity.other.attribute-name.air"],settings:{foreground:"#4c6696"}},{scope:["string.quoted.double.air"],settings:{foreground:"#326396"}},{scope:["constant.character.entity.air"],settings:{foreground:"#4c6696"}}]}},ui:{cursor:{shape:"line",blink:!0},scrollbar:{thumb:"\u2502",track:"\u2502"}}});
2670
+ anywhere; this is the one place it's surfaced. `),Qj(E)&&!Qj(k)?(_j(),Mte(cee,{key:2,error:Qj(E)},null,8,["error"])):Qj(A).sendError.value&&!Qj(k)?(_j(),Mte(ome,{key:3,message:Qj(A).sendError.value.message},null,8,["message"])):lee("v-if",!0)],8,["scroll-bottom"])}}});TEa.__scopeId="data-v-2f7dd66a";var qEa=TEa;var U_t=!1;{let e=process.argv.slice(2),a={version:"2.0.55"},A={"--version":async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},"--help":async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},init:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},prepare:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},dev:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},build:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},deploy:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},publish:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},install:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},i:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},uninstall:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},list:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},clone:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},fork:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},watch:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},unwatch:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},settings:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},login:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},logout:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},update:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},whoami:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},cognet:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},module:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},ps:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},status:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},logs:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},undeploy:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)},bench:async function(c){let{dispatchCommand:p}=await Promise.resolve().then(() => (N_(),PQ));await p(c)}};for(let[o,c]of Object.entries(A))if(o.startsWith("-")&&e.includes(o)){let p=e.indexOf(o);await c({...a,args:e.slice(p+1),command:o}),U_t=!0;break}if(!U_t){let o=e.findIndex((p)=>!p.startsWith("-")),c=o===-1?void 0:e[o];if(c&&c in A)await A[c]({...a,args:e.slice(o+1),command:c}),U_t=!0}}if(!U_t)dun({routes:[{path:"/logs/kernel",component:uEa,name:"logs-kernel"},{path:"/logs/session",component:dEa,name:"logs-session"},{path:"/capsule/:id",component:bEa,name:"capsule-id"},{path:"/account",component:IEa,name:"account",meta:{layout:"default"}},{path:"/auth",component:QEa,name:"auth",meta:{layout:"default"}},{path:"/",component:qEa,name:"home",meta:{layout:"default"}}],styles:[uBa,rBa,hBa,pIa,yBa,hya,yya,Dya,Uya,Pya,jya,Wya,Xya,nEa,Lya,qya,Nya,AIa,cIa,XBa,AEa,sEa,pEa,fEa,CEa,EEa,LEa],layouts:new Map([["default",rEa]]),middleware:[aBa],screen:{title:"VTerm"},quitKeys:["C-c"],highlight:{theme:{name:"arcnight",type:"dark",colors:{"editor.background":"#070b10","editor.foreground":"#c7eaff"},tokenColors:[{scope:["variable","variable.other","variable.other.property","variable.other.object.property","variable.other.readwrite","meta.object-literal.key","support.variable.property"],settings:{foreground:"#7cceff"}},{scope:["keyword","keyword.control","keyword.other","storage","storage.type","storage.modifier"],settings:{foreground:"#345a94"}},{scope:["constant.numeric","number"],settings:{foreground:"#326396"}},{scope:["entity.name.type","entity.name.class","constant","support.type"],settings:{foreground:"#3caed5"}},{scope:["entity.name.function","support.function","meta.function-call"],settings:{foreground:"#3caed5"}},{scope:["string","string.quoted","string.template"],settings:{foreground:"#4c6696"}},{scope:["keyword.operator","punctuation.accessor"],settings:{foreground:"#7cceff"}},{scope:["comment","comment.line","comment.block"],settings:{foreground:"#585858",fontStyle:"italic"}},{scope:["punctuation.definition.tag.air"],settings:{foreground:"#2a4a6a"}},{scope:["entity.name.tag.section.air"],settings:{foreground:"#345a94"}},{scope:["entity.name.tag.turn.air"],settings:{foreground:"#3caed5"}},{scope:["entity.name.tag.execute.air"],settings:{foreground:"#00B4D8"}},{scope:["entity.name.tag.stdout.air"],settings:{foreground:"#4c6696"}},{scope:["entity.name.tag.prose.air"],settings:{foreground:"#7cceff"}},{scope:["entity.name.tag.signal.air"],settings:{foreground:"#3caed5"}},{scope:["entity.name.tag.env.air"],settings:{foreground:"#345a94"}},{scope:["entity.name.tag.system.air"],settings:{foreground:"#b43c3c"}},{scope:["entity.name.tag.state.air"],settings:{foreground:"#585858"}},{scope:["entity.other.attribute-name.air"],settings:{foreground:"#4c6696"}},{scope:["string.quoted.double.air"],settings:{foreground:"#326396"}},{scope:["constant.character.entity.air"],settings:{foreground:"#4c6696"}}]}},ui:{cursor:{shape:"line",blink:!0},scrollbar:{thumb:"\u2502",track:"\u2502"}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcforge/axon",
3
- "version": "2.0.54",
3
+ "version": "2.0.55",
4
4
  "description": "coding agent cli",
5
5
  "type": "module",
6
6
  "bin": {