@rizom/brain 0.2.0-alpha.72 → 0.2.0-alpha.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/site.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- var QA=Object.create;var{getPrototypeOf:qA,defineProperty:G$,getOwnPropertyNames:OA}=Object;var ZA=Object.prototype.hasOwnProperty;function RA($){return this[$]}var AA,BA,k8=($,X,G)=>{var Y=$!=null&&typeof $==="object";if(Y){var J=X?AA??=new WeakMap:BA??=new WeakMap,W=J.get($);if(W)return W}G=$!=null?QA(qA($)):{};let H=X||!$||!$.__esModule?G$(G,"default",{value:$,enumerable:!0}):G;for(let U of OA($))if(!ZA.call(H,U))G$(H,U,{get:RA.bind($,U),enumerable:!0});if(Y)J.set($,H);return H};var l=($,X)=>()=>(X||$((X={exports:{}}).exports,X),X.exports);var NA=($)=>$;function VA($,X){this[$]=NA.bind(null,X)}var v8=($,X)=>{for(var G in X)G$($,G,{get:X[G],enumerable:!0,configurable:!0,set:VA.bind(X,G)})};var B=($,X)=>()=>($&&(X=$($=0)),X);var N2=import.meta.require;import{openSync as wA,writeSync as _A}from"fs";class a0{static instance=null;level;context;useStderr;format;logFile;fileHandle;constructor($={},X){if(this.level=$.level??3,this.context=$.context??void 0,this.useStderr=$.useStderr??!1,this.format=$.format??"text",this.logFile=$.logFile,X!==void 0)this.fileHandle=X;else if(this.logFile)try{this.fileHandle=wA(this.logFile,"a")}catch{}}static getInstance($){if(!a0.instance)a0.instance=new a0($);else if($?.useStderr!==void 0)a0.instance.useStderr=$.useStderr;return a0.instance}static resetInstance(){a0.instance=null}static createFresh($){return new a0($)}formatEntry($,X,G){let Y=new Date().toISOString();if(this.format==="json"){let J={ts:Y,level:$,msg:X};if(this.context)J.ctx=this.context;if(G.length>0)J.data=G;return JSON.stringify(J)}return this.context?`[${Y}] [${this.context}] ${X}`:`[${Y}] ${X}`}write($,X,G,Y){if(this.format==="json")$(this.formatEntry(X,G,Y));else if(Y.length>0)$(this.formatEntry(X,G,[]),...Y);else $(this.formatEntry(X,G,[]));if(this.fileHandle!==void 0){let J=this.formatJsonEntry(X,G,Y);try{_A(this.fileHandle,J+`
2
+ var QA=Object.create;var{getPrototypeOf:qA,defineProperty:G$,getOwnPropertyNames:OA}=Object;var ZA=Object.prototype.hasOwnProperty;function RA($){return this[$]}var AA,BA,k8=($,X,G)=>{var Y=$!=null&&typeof $==="object";if(Y){var J=X?AA??=new WeakMap:BA??=new WeakMap,W=J.get($);if(W)return W}G=$!=null?QA(qA($)):{};let H=X||!$||!$.__esModule?G$(G,"default",{value:$,enumerable:!0}):G;for(let U of OA($))if(!ZA.call(H,U))G$(H,U,{get:RA.bind($,U),enumerable:!0});if(Y)J.set($,H);return H};var l=($,X)=>()=>(X||$((X={exports:{}}).exports,X),X.exports);var NA=($)=>$;function VA($,X){this[$]=NA.bind(null,X)}var v8=($,X)=>{for(var G in X)G$($,G,{get:X[G],enumerable:!0,configurable:!0,set:VA.bind(X,G)})};var B=($,X)=>()=>($&&(X=$($=0)),X);var N6=import.meta.require;import{openSync as wA,writeSync as _A}from"fs";class a0{static instance=null;level;context;useStderr;format;logFile;fileHandle;constructor($={},X){if(this.level=$.level??3,this.context=$.context??void 0,this.useStderr=$.useStderr??!1,this.format=$.format??"text",this.logFile=$.logFile,X!==void 0)this.fileHandle=X;else if(this.logFile)try{this.fileHandle=wA(this.logFile,"a")}catch{}}static getInstance($){if(!a0.instance)a0.instance=new a0($);else if($?.useStderr!==void 0)a0.instance.useStderr=$.useStderr;return a0.instance}static resetInstance(){a0.instance=null}static createFresh($){return new a0($)}formatEntry($,X,G){let Y=new Date().toISOString();if(this.format==="json"){let J={ts:Y,level:$,msg:X};if(this.context)J.ctx=this.context;if(G.length>0)J.data=G;return JSON.stringify(J)}return this.context?`[${Y}] [${this.context}] ${X}`:`[${Y}] ${X}`}write($,X,G,Y){if(this.format==="json")$(this.formatEntry(X,G,Y));else if(Y.length>0)$(this.formatEntry(X,G,[]),...Y);else $(this.formatEntry(X,G,[]));if(this.fileHandle!==void 0){let J=this.formatJsonEntry(X,G,Y);try{_A(this.fileHandle,J+`
3
3
  `)}catch{}}}formatJsonEntry($,X,G){let Y={ts:new Date().toISOString(),level:$,msg:X};if(this.context)Y.ctx=this.context;if(G.length>0)Y.data=G;return JSON.stringify(Y)}silly($,...X){if(this.level<=0)this.write(console.debug.bind(console),"silly",$,X)}verbose($,...X){if(this.level<=1)this.write(console.debug.bind(console),"verbose",$,X)}debug($,...X){if(this.level<=2)this.write(console.debug.bind(console),"debug",$,X)}info($,...X){if(this.level<=3){let G=this.useStderr?console.error.bind(console):console.info.bind(console);this.write(G,"info",$,X)}}warn($,...X){if(this.level<=4)this.write(console.warn.bind(console),"warn",$,X)}error($,...X){if(this.level<=5)this.write(console.error.bind(console),"error",$,X)}child($){return new a0({level:this.level,context:$,useStderr:this.useStderr,format:this.format},this.fileHandle)}setUseStderr($){this.useStderr=$}}var zA;var Y$=B(()=>{zA=a0.getInstance()});var K4=l((gS,$J)=>{var DA=Object.prototype.toString;$J.exports=function(X){if(X===void 0)return"undefined";if(X===null)return"null";var G=typeof X;if(G==="boolean")return"boolean";if(G==="string")return"string";if(G==="number")return"number";if(G==="symbol")return"symbol";if(G==="function")return EA(X)?"generatorfunction":"function";if(PA(X))return"array";if(SA(X))return"buffer";if(jA(X))return"arguments";if(CA(X))return"date";if(LA(X))return"error";if(TA(X))return"regexp";switch(eY(X)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(IA(X))return"generator";switch(G=DA.call(X),G){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return G.slice(8,-1).toLowerCase().replace(/\s/g,"")};function eY($){return typeof $.constructor==="function"?$.constructor.name:null}function PA($){if(Array.isArray)return Array.isArray($);return $ instanceof Array}function LA($){return $ instanceof Error||typeof $.message==="string"&&$.constructor&&typeof $.constructor.stackTraceLimit==="number"}function CA($){if($ instanceof Date)return!0;return typeof $.toDateString==="function"&&typeof $.getDate==="function"&&typeof $.setDate==="function"}function TA($){if($ instanceof RegExp)return!0;return typeof $.flags==="string"&&typeof $.ignoreCase==="boolean"&&typeof $.multiline==="boolean"&&typeof $.global==="boolean"}function EA($,X){return eY($)==="GeneratorFunction"}function IA($){return typeof $.throw==="function"&&typeof $.return==="function"&&typeof $.next==="function"}function jA($){try{if(typeof $.length==="number"&&typeof $.callee==="function")return!0}catch(X){if(X.message.indexOf("callee")!==-1)return!0}return!1}function SA($){if($.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var GJ=l((mS,XJ)=>{/*!
4
4
  * is-extendable <https://github.com/jonschlinkert/is-extendable>
5
5
  *
@@ -10,24 +10,24 @@ var QA=Object.create;var{getPrototypeOf:qA,defineProperty:G$,getOwnPropertyNames
10
10
  `));if(z===2)R(F.join(`
11
11
  `));Q.push(D);continue}F.push(_)}if(U===null)q(F.join(`
12
12
  `));else R(F.join(`
13
- `));return G.sections=U,G};function hA($,X){if($.slice(0,X.length)!==X)return!1;if($.charAt(X.length+1)===X.slice(-1))return!1;return!0}function yA($){if(xA($)!=="object")$={content:$};if(typeof $.content!=="string"&&!mA($.content))throw TypeError("expected a buffer or string");return $.content=$.content.toString(),$.sections=[],$}function fA($,X){return $?$.slice(X.length).trim():""}function HJ(){return{key:"",data:"",content:""}}function gA($){return $}function mA($){if($&&$.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var N6=l((rA,B6)=>{function MJ($){return typeof $>"u"||$===null}function pA($){return typeof $==="object"&&$!==null}function uA($){if(Array.isArray($))return $;else if(MJ($))return[];return[$]}function dA($,X){var G,Y,J,W;if(X){W=Object.keys(X);for(G=0,Y=W.length;G<Y;G+=1)J=W[G],$[J]=X[J]}return $}function lA($,X){var G="",Y;for(Y=0;Y<X;Y+=1)G+=$;return G}function cA($){return $===0&&Number.NEGATIVE_INFINITY===1/$}rA.isNothing=MJ;rA.isObject=pA;rA.toArray=uA;rA.repeat=lA;rA.isNegativeZero=cA;rA.extend=dA});var a6=l((dS,FJ)=>{function M4($,X){if(Error.call(this),this.name="YAMLException",this.reason=$,this.mark=X,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}M4.prototype=Object.create(Error.prototype);M4.prototype.constructor=M4;M4.prototype.toString=function(X){var G=this.name+": ";if(G+=this.reason||"(unknown reason)",!X&&this.mark)G+=" "+this.mark.toString();return G};FJ.exports=M4});var OJ=l((lS,qJ)=>{var QJ=N6();function J$($,X,G,Y,J){this.name=$,this.buffer=X,this.position=G,this.line=Y,this.column=J}J$.prototype.getSnippet=function(X,G){var Y,J,W,H,U;if(!this.buffer)return null;X=X||4,G=G||75,Y="",J=this.position;while(J>0&&`\x00\r
13
+ `));return G.sections=U,G};function hA($,X){if($.slice(0,X.length)!==X)return!1;if($.charAt(X.length+1)===X.slice(-1))return!1;return!0}function yA($){if(xA($)!=="object")$={content:$};if(typeof $.content!=="string"&&!mA($.content))throw TypeError("expected a buffer or string");return $.content=$.content.toString(),$.sections=[],$}function fA($,X){return $?$.slice(X.length).trim():""}function HJ(){return{key:"",data:"",content:""}}function gA($){return $}function mA($){if($&&$.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var N5=l((rA,B5)=>{function MJ($){return typeof $>"u"||$===null}function pA($){return typeof $==="object"&&$!==null}function uA($){if(Array.isArray($))return $;else if(MJ($))return[];return[$]}function dA($,X){var G,Y,J,W;if(X){W=Object.keys(X);for(G=0,Y=W.length;G<Y;G+=1)J=W[G],$[J]=X[J]}return $}function lA($,X){var G="",Y;for(Y=0;Y<X;Y+=1)G+=$;return G}function cA($){return $===0&&Number.NEGATIVE_INFINITY===1/$}rA.isNothing=MJ;rA.isObject=pA;rA.toArray=uA;rA.repeat=lA;rA.isNegativeZero=cA;rA.extend=dA});var a5=l((dS,FJ)=>{function M4($,X){if(Error.call(this),this.name="YAMLException",this.reason=$,this.mark=X,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}M4.prototype=Object.create(Error.prototype);M4.prototype.constructor=M4;M4.prototype.toString=function(X){var G=this.name+": ";if(G+=this.reason||"(unknown reason)",!X&&this.mark)G+=" "+this.mark.toString();return G};FJ.exports=M4});var OJ=l((lS,qJ)=>{var QJ=N5();function J$($,X,G,Y,J){this.name=$,this.buffer=X,this.position=G,this.line=Y,this.column=J}J$.prototype.getSnippet=function(X,G){var Y,J,W,H,U;if(!this.buffer)return null;X=X||4,G=G||75,Y="",J=this.position;while(J>0&&`\x00\r
14
14
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(J-1))===-1)if(J-=1,this.position-J>G/2-1){Y=" ... ",J+=5;break}W="",H=this.position;while(H<this.buffer.length&&`\x00\r
15
15
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(H))===-1)if(H+=1,H-this.position>G/2-1){W=" ... ",H-=5;break}return U=this.buffer.slice(J,H),QJ.repeat(" ",X)+Y+U+W+`
16
16
  `+QJ.repeat(" ",X+this.position-J+Y.length)+"^"};J$.prototype.toString=function(X){var G,Y="";if(this.name)Y+='in "'+this.name+'" ';if(Y+="at line "+(this.line+1)+", column "+(this.column+1),!X){if(G=this.getSnippet(),G)Y+=`:
17
- `+G}return Y};qJ.exports=J$});var l0=l((cS,RJ)=>{var ZJ=a6(),eA=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],$B=["scalar","sequence","mapping"];function XB($){var X={};if($!==null)Object.keys($).forEach(function(G){$[G].forEach(function(Y){X[String(Y)]=G})});return X}function GB($,X){if(X=X||{},Object.keys(X).forEach(function(G){if(eA.indexOf(G)===-1)throw new ZJ('Unknown option "'+G+'" is met in definition of "'+$+'" YAML type.')}),this.tag=$,this.kind=X.kind||null,this.resolve=X.resolve||function(){return!0},this.construct=X.construct||function(G){return G},this.instanceOf=X.instanceOf||null,this.predicate=X.predicate||null,this.represent=X.represent||null,this.defaultStyle=X.defaultStyle||null,this.styleAliases=XB(X.styleAliases||null),$B.indexOf(this.kind)===-1)throw new ZJ('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}RJ.exports=GB});var V6=l((rS,BJ)=>{var AJ=N6(),x8=a6(),YB=l0();function W$($,X,G){var Y=[];return $.include.forEach(function(J){G=W$(J,X,G)}),$[X].forEach(function(J){G.forEach(function(W,H){if(W.tag===J.tag&&W.kind===J.kind)Y.push(H)}),G.push(J)}),G.filter(function(J,W){return Y.indexOf(W)===-1})}function JB(){var $={scalar:{},sequence:{},mapping:{},fallback:{}},X,G;function Y(J){$[J.kind][J.tag]=$.fallback[J.tag]=J}for(X=0,G=arguments.length;X<G;X+=1)arguments[X].forEach(Y);return $}function t6($){this.include=$.include||[],this.implicit=$.implicit||[],this.explicit=$.explicit||[],this.implicit.forEach(function(X){if(X.loadKind&&X.loadKind!=="scalar")throw new x8("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=W$(this,"implicit",[]),this.compiledExplicit=W$(this,"explicit",[]),this.compiledTypeMap=JB(this.compiledImplicit,this.compiledExplicit)}t6.DEFAULT=null;t6.create=function(){var X,G;switch(arguments.length){case 1:X=t6.DEFAULT,G=arguments[0];break;case 2:X=arguments[0],G=arguments[1];break;default:throw new x8("Wrong number of arguments for Schema.create function")}if(X=AJ.toArray(X),G=AJ.toArray(G),!X.every(function(Y){return Y instanceof t6}))throw new x8("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!G.every(function(Y){return Y instanceof YB}))throw new x8("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new t6({include:X,explicit:G})};BJ.exports=t6});var VJ=l((iS,NJ)=>{var WB=l0();NJ.exports=new WB("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}})});var _J=l((oS,wJ)=>{var HB=l0();wJ.exports=new HB("tag:yaml.org,2002:seq",{kind:"sequence",construct:function($){return $!==null?$:[]}})});var DJ=l((nS,zJ)=>{var UB=l0();zJ.exports=new UB("tag:yaml.org,2002:map",{kind:"mapping",construct:function($){return $!==null?$:{}}})});var b8=l((sS,PJ)=>{var KB=V6();PJ.exports=new KB({explicit:[VJ(),_J(),DJ()]})});var CJ=l((aS,LJ)=>{var MB=l0();function FB($){if($===null)return!0;var X=$.length;return X===1&&$==="~"||X===4&&($==="null"||$==="Null"||$==="NULL")}function QB(){return null}function qB($){return $===null}LJ.exports=new MB("tag:yaml.org,2002:null",{kind:"scalar",resolve:FB,construct:QB,predicate:qB,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var EJ=l((tS,TJ)=>{var OB=l0();function ZB($){if($===null)return!1;var X=$.length;return X===4&&($==="true"||$==="True"||$==="TRUE")||X===5&&($==="false"||$==="False"||$==="FALSE")}function RB($){return $==="true"||$==="True"||$==="TRUE"}function AB($){return Object.prototype.toString.call($)==="[object Boolean]"}TJ.exports=new OB("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ZB,construct:RB,predicate:AB,represent:{lowercase:function($){return $?"true":"false"},uppercase:function($){return $?"TRUE":"FALSE"},camelcase:function($){return $?"True":"False"}},defaultStyle:"lowercase"})});var jJ=l((eS,IJ)=>{var BB=N6(),NB=l0();function VB($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function wB($){return 48<=$&&$<=55}function _B($){return 48<=$&&$<=57}function zB($){if($===null)return!1;var X=$.length,G=0,Y=!1,J;if(!X)return!1;if(J=$[G],J==="-"||J==="+")J=$[++G];if(J==="0"){if(G+1===X)return!0;if(J=$[++G],J==="b"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(J!=="0"&&J!=="1")return!1;Y=!0}return Y&&J!=="_"}if(J==="x"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!VB($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}for(;G<X;G++){if(J=$[G],J==="_")continue;if(!wB($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}if(J==="_")return!1;for(;G<X;G++){if(J=$[G],J==="_")continue;if(J===":")break;if(!_B($.charCodeAt(G)))return!1;Y=!0}if(!Y||J==="_")return!1;if(J!==":")return!0;return/^(:[0-5]?[0-9])+$/.test($.slice(G))}function DB($){var X=$,G=1,Y,J,W=[];if(X.indexOf("_")!==-1)X=X.replace(/_/g,"");if(Y=X[0],Y==="-"||Y==="+"){if(Y==="-")G=-1;X=X.slice(1),Y=X[0]}if(X==="0")return 0;if(Y==="0"){if(X[1]==="b")return G*parseInt(X.slice(2),2);if(X[1]==="x")return G*parseInt(X,16);return G*parseInt(X,8)}if(X.indexOf(":")!==-1)return X.split(":").forEach(function(H){W.unshift(parseInt(H,10))}),X=0,J=1,W.forEach(function(H){X+=H*J,J*=60}),G*X;return G*parseInt(X,10)}function PB($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!BB.isNegativeZero($))}IJ.exports=new NB("tag:yaml.org,2002:int",{kind:"scalar",resolve:zB,construct:DB,predicate:PB,represent:{binary:function($){return $>=0?"0b"+$.toString(2):"-0b"+$.toString(2).slice(1)},octal:function($){return $>=0?"0"+$.toString(8):"-0"+$.toString(8).slice(1)},decimal:function($){return $.toString(10)},hexadecimal:function($){return $>=0?"0x"+$.toString(16).toUpperCase():"-0x"+$.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var vJ=l(($k,kJ)=>{var SJ=N6(),LB=l0(),CB=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function TB($){if($===null)return!1;if(!CB.test($)||$[$.length-1]==="_")return!1;return!0}function EB($){var X,G,Y,J;if(X=$.replace(/_/g,"").toLowerCase(),G=X[0]==="-"?-1:1,J=[],"+-".indexOf(X[0])>=0)X=X.slice(1);if(X===".inf")return G===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(X===".nan")return NaN;else if(X.indexOf(":")>=0)return X.split(":").forEach(function(W){J.unshift(parseFloat(W,10))}),X=0,Y=1,J.forEach(function(W){X+=W*Y,Y*=60}),G*X;return G*parseFloat(X,10)}var IB=/^[-+]?[0-9]+e/;function jB($,X){var G;if(isNaN($))switch(X){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(X){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(X){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(SJ.isNegativeZero($))return"-0.0";return G=$.toString(10),IB.test(G)?G.replace("e",".e"):G}function SB($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||SJ.isNegativeZero($))}kJ.exports=new LB("tag:yaml.org,2002:float",{kind:"scalar",resolve:TB,construct:EB,predicate:SB,represent:jB,defaultStyle:"lowercase"})});var H$=l((Xk,xJ)=>{var kB=V6();xJ.exports=new kB({include:[b8()],implicit:[CJ(),EJ(),jJ(),vJ()]})});var U$=l((Gk,bJ)=>{var vB=V6();bJ.exports=new vB({include:[H$()]})});var gJ=l((Yk,fJ)=>{var xB=l0(),hJ=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),yJ=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function bB($){if($===null)return!1;if(hJ.exec($)!==null)return!0;if(yJ.exec($)!==null)return!0;return!1}function hB($){var X,G,Y,J,W,H,U,M=0,F=null,Q,q,R;if(X=hJ.exec($),X===null)X=yJ.exec($);if(X===null)throw Error("Date resolve error");if(G=+X[1],Y=+X[2]-1,J=+X[3],!X[4])return new Date(Date.UTC(G,Y,J));if(W=+X[4],H=+X[5],U=+X[6],X[7]){M=X[7].slice(0,3);while(M.length<3)M+="0";M=+M}if(X[9]){if(Q=+X[10],q=+(X[11]||0),F=(Q*60+q)*60000,X[9]==="-")F=-F}if(R=new Date(Date.UTC(G,Y,J,W,H,U,M)),F)R.setTime(R.getTime()-F);return R}function yB($){return $.toISOString()}fJ.exports=new xB("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:bB,construct:hB,instanceOf:Date,represent:yB})});var pJ=l((Jk,mJ)=>{var fB=l0();function gB($){return $==="<<"||$===null}mJ.exports=new fB("tag:yaml.org,2002:merge",{kind:"scalar",resolve:gB})});var dJ=l((Wk,uJ)=>{var w6;try{K$=N2,w6=K$("buffer").Buffer}catch($){}var K$,mB=l0(),M$=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
18
- \r`;function pB($){if($===null)return!1;var X,G,Y=0,J=$.length,W=M$;for(G=0;G<J;G++){if(X=W.indexOf($.charAt(G)),X>64)continue;if(X<0)return!1;Y+=6}return Y%8===0}function uB($){var X,G,Y=$.replace(/[\r\n=]/g,""),J=Y.length,W=M$,H=0,U=[];for(X=0;X<J;X++){if(X%4===0&&X)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);H=H<<6|W.indexOf(Y.charAt(X))}if(G=J%4*6,G===0)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);else if(G===18)U.push(H>>10&255),U.push(H>>2&255);else if(G===12)U.push(H>>4&255);if(w6)return w6.from?w6.from(U):new w6(U);return U}function dB($){var X="",G=0,Y,J,W=$.length,H=M$;for(Y=0;Y<W;Y++){if(Y%3===0&&Y)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];G=(G<<8)+$[Y]}if(J=W%3,J===0)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];else if(J===2)X+=H[G>>10&63],X+=H[G>>4&63],X+=H[G<<2&63],X+=H[64];else if(J===1)X+=H[G>>2&63],X+=H[G<<4&63],X+=H[64],X+=H[64];return X}function lB($){return w6&&w6.isBuffer($)}uJ.exports=new mB("tag:yaml.org,2002:binary",{kind:"scalar",resolve:pB,construct:uB,predicate:lB,represent:dB})});var cJ=l((Uk,lJ)=>{var cB=l0(),rB=Object.prototype.hasOwnProperty,iB=Object.prototype.toString;function oB($){if($===null)return!0;var X=[],G,Y,J,W,H,U=$;for(G=0,Y=U.length;G<Y;G+=1){if(J=U[G],H=!1,iB.call(J)!=="[object Object]")return!1;for(W in J)if(rB.call(J,W))if(!H)H=!0;else return!1;if(!H)return!1;if(X.indexOf(W)===-1)X.push(W);else return!1}return!0}function nB($){return $!==null?$:[]}lJ.exports=new cB("tag:yaml.org,2002:omap",{kind:"sequence",resolve:oB,construct:nB})});var iJ=l((Kk,rJ)=>{var sB=l0(),aB=Object.prototype.toString;function tB($){if($===null)return!0;var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1){if(Y=H[X],aB.call(Y)!=="[object Object]")return!1;if(J=Object.keys(Y),J.length!==1)return!1;W[X]=[J[0],Y[J[0]]]}return!0}function eB($){if($===null)return[];var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1)Y=H[X],J=Object.keys(Y),W[X]=[J[0],Y[J[0]]];return W}rJ.exports=new sB("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:tB,construct:eB})});var nJ=l((Mk,oJ)=>{var $N=l0(),XN=Object.prototype.hasOwnProperty;function GN($){if($===null)return!0;var X,G=$;for(X in G)if(XN.call(G,X)){if(G[X]!==null)return!1}return!0}function YN($){return $!==null?$:{}}oJ.exports=new $N("tag:yaml.org,2002:set",{kind:"mapping",resolve:GN,construct:YN})});var e6=l((Fk,sJ)=>{var JN=V6();sJ.exports=new JN({include:[U$()],implicit:[gJ(),pJ()],explicit:[dJ(),cJ(),iJ(),nJ()]})});var tJ=l((Qk,aJ)=>{var WN=l0();function HN(){return!0}function UN(){return}function KN(){return""}function MN($){return typeof $>"u"}aJ.exports=new WN("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:HN,construct:UN,predicate:MN,represent:KN})});var $W=l((qk,eJ)=>{var FN=l0();function QN($){if($===null)return!1;if($.length===0)return!1;var X=$,G=/\/([gim]*)$/.exec($),Y="";if(X[0]==="/"){if(G)Y=G[1];if(Y.length>3)return!1;if(X[X.length-Y.length-1]!=="/")return!1}return!0}function qN($){var X=$,G=/\/([gim]*)$/.exec($),Y="";if(X[0]==="/"){if(G)Y=G[1];X=X.slice(1,X.length-Y.length-1)}return new RegExp(X,Y)}function ON($){var X="/"+$.source+"/";if($.global)X+="g";if($.multiline)X+="m";if($.ignoreCase)X+="i";return X}function ZN($){return Object.prototype.toString.call($)==="[object RegExp]"}eJ.exports=new FN("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:QN,construct:qN,predicate:ZN,represent:ON})});var GW=l((Ok,XW)=>{var h8;try{F$=N2,h8=F$("esprima")}catch($){if(typeof window<"u")h8=window.esprima}var F$,RN=l0();function AN($){if($===null)return!1;try{var X="("+$+")",G=h8.parse(X,{range:!0});if(G.type!=="Program"||G.body.length!==1||G.body[0].type!=="ExpressionStatement"||G.body[0].expression.type!=="ArrowFunctionExpression"&&G.body[0].expression.type!=="FunctionExpression")return!1;return!0}catch(Y){return!1}}function BN($){var X="("+$+")",G=h8.parse(X,{range:!0}),Y=[],J;if(G.type!=="Program"||G.body.length!==1||G.body[0].type!=="ExpressionStatement"||G.body[0].expression.type!=="ArrowFunctionExpression"&&G.body[0].expression.type!=="FunctionExpression")throw Error("Failed to resolve function");if(G.body[0].expression.params.forEach(function(W){Y.push(W.name)}),J=G.body[0].expression.body.range,G.body[0].expression.body.type==="BlockStatement")return Function(Y,X.slice(J[0]+1,J[1]-1));return Function(Y,"return "+X.slice(J[0],J[1]))}function NN($){return $.toString()}function VN($){return Object.prototype.toString.call($)==="[object Function]"}XW.exports=new RN("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:AN,construct:BN,predicate:VN,represent:NN})});var F4=l((Rk,JW)=>{var YW=V6();JW.exports=YW.DEFAULT=new YW({include:[e6()],explicit:[tJ(),$W(),GW()]})});var PW=l((dN,Q4)=>{var V2=N6(),QW=a6(),wN=OJ(),qW=e6(),_N=F4(),b2=Object.prototype.hasOwnProperty,y8=1,OW=2,ZW=3,f8=4,Q$=1,zN=2,WW=3,DN=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PN=/[\x85\u2028\u2029]/,LN=/[,\[\]\{\}]/,RW=/^(?:!|!!|![a-z\-]+!)$/i,AW=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function HW($){return Object.prototype.toString.call($)}function $2($){return $===10||$===13}function _6($){return $===9||$===32}function _1($){return $===9||$===32||$===10||$===13}function $5($){return $===44||$===91||$===93||$===123||$===125}function CN($){var X;if(48<=$&&$<=57)return $-48;if(X=$|32,97<=X&&X<=102)return X-97+10;return-1}function TN($){if($===120)return 2;if($===117)return 4;if($===85)return 8;return 0}function EN($){if(48<=$&&$<=57)return $-48;return-1}function UW($){return $===48?"\x00":$===97?"\x07":$===98?"\b":$===116?"\t":$===9?"\t":$===110?`
19
- `:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function IN($){if($<=65535)return String.fromCharCode($);return String.fromCharCode(($-65536>>10)+55296,($-65536&1023)+56320)}function BW($,X,G){if(X==="__proto__")Object.defineProperty($,X,{configurable:!0,enumerable:!0,writable:!0,value:G});else $[X]=G}var NW=Array(256),VW=Array(256);for(v2=0;v2<256;v2++)NW[v2]=UW(v2)?1:0,VW[v2]=UW(v2);var v2;function jN($,X){this.input=$,this.filename=X.filename||null,this.schema=X.schema||_N,this.onWarning=X.onWarning||null,this.legacy=X.legacy||!1,this.json=X.json||!1,this.listener=X.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=$.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function wW($,X){return new QW(X,new wN($.filename,$.input,$.position,$.line,$.position-$.lineStart))}function c($,X){throw wW($,X)}function g8($,X){if($.onWarning)$.onWarning.call(null,wW($,X))}var KW={YAML:function(X,G,Y){var J,W,H;if(X.version!==null)c(X,"duplication of %YAML directive");if(Y.length!==1)c(X,"YAML directive accepts exactly one argument");if(J=/^([0-9]+)\.([0-9]+)$/.exec(Y[0]),J===null)c(X,"ill-formed argument of the YAML directive");if(W=parseInt(J[1],10),H=parseInt(J[2],10),W!==1)c(X,"unacceptable YAML version of the document");if(X.version=Y[0],X.checkLineBreaks=H<2,H!==1&&H!==2)g8(X,"unsupported YAML version of the document")},TAG:function(X,G,Y){var J,W;if(Y.length!==2)c(X,"TAG directive accepts exactly two arguments");if(J=Y[0],W=Y[1],!RW.test(J))c(X,"ill-formed tag handle (first argument) of the TAG directive");if(b2.call(X.tagMap,J))c(X,'there is a previously declared suffix for "'+J+'" tag handle');if(!AW.test(W))c(X,"ill-formed tag prefix (second argument) of the TAG directive");X.tagMap[J]=W}};function x2($,X,G,Y){var J,W,H,U;if(X<G){if(U=$.input.slice(X,G),Y){for(J=0,W=U.length;J<W;J+=1)if(H=U.charCodeAt(J),!(H===9||32<=H&&H<=1114111))c($,"expected valid JSON character")}else if(DN.test(U))c($,"the stream contains non-printable characters");$.result+=U}}function MW($,X,G,Y){var J,W,H,U;if(!V2.isObject(G))c($,"cannot merge mappings; the provided source object is unacceptable");J=Object.keys(G);for(H=0,U=J.length;H<U;H+=1)if(W=J[H],!b2.call(X,W))BW(X,W,G[W]),Y[W]=!0}function X5($,X,G,Y,J,W,H,U){var M,F;if(Array.isArray(J)){J=Array.prototype.slice.call(J);for(M=0,F=J.length;M<F;M+=1){if(Array.isArray(J[M]))c($,"nested arrays are not supported inside keys");if(typeof J==="object"&&HW(J[M])==="[object Object]")J[M]="[object Object]"}}if(typeof J==="object"&&HW(J)==="[object Object]")J="[object Object]";if(J=String(J),X===null)X={};if(Y==="tag:yaml.org,2002:merge")if(Array.isArray(W))for(M=0,F=W.length;M<F;M+=1)MW($,X,W[M],G);else MW($,X,W,G);else{if(!$.json&&!b2.call(G,J)&&b2.call(X,J))$.line=H||$.line,$.position=U||$.position,c($,"duplicated mapping key");BW(X,J,W),delete G[J]}return X}function q$($){var X=$.input.charCodeAt($.position);if(X===10)$.position++;else if(X===13){if($.position++,$.input.charCodeAt($.position)===10)$.position++}else c($,"a line break is expected");$.line+=1,$.lineStart=$.position}function g0($,X,G){var Y=0,J=$.input.charCodeAt($.position);while(J!==0){while(_6(J))J=$.input.charCodeAt(++$.position);if(X&&J===35)do J=$.input.charCodeAt(++$.position);while(J!==10&&J!==13&&J!==0);if($2(J)){q$($),J=$.input.charCodeAt($.position),Y++,$.lineIndent=0;while(J===32)$.lineIndent++,J=$.input.charCodeAt(++$.position)}else break}if(G!==-1&&Y!==0&&$.lineIndent<G)g8($,"deficient indentation");return Y}function m8($){var X=$.position,G;if(G=$.input.charCodeAt(X),(G===45||G===46)&&G===$.input.charCodeAt(X+1)&&G===$.input.charCodeAt(X+2)){if(X+=3,G=$.input.charCodeAt(X),G===0||_1(G))return!0}return!1}function O$($,X){if(X===1)$.result+=" ";else if(X>1)$.result+=V2.repeat(`
20
- `,X-1)}function SN($,X,G){var Y,J,W,H,U,M,F,Q,q=$.kind,R=$.result,O;if(O=$.input.charCodeAt($.position),_1(O)||$5(O)||O===35||O===38||O===42||O===33||O===124||O===62||O===39||O===34||O===37||O===64||O===96)return!1;if(O===63||O===45){if(J=$.input.charCodeAt($.position+1),_1(J)||G&&$5(J))return!1}$.kind="scalar",$.result="",W=H=$.position,U=!1;while(O!==0){if(O===58){if(J=$.input.charCodeAt($.position+1),_1(J)||G&&$5(J))break}else if(O===35){if(Y=$.input.charCodeAt($.position-1),_1(Y))break}else if($.position===$.lineStart&&m8($)||G&&$5(O))break;else if($2(O))if(M=$.line,F=$.lineStart,Q=$.lineIndent,g0($,!1,-1),$.lineIndent>=X){U=!0,O=$.input.charCodeAt($.position);continue}else{$.position=H,$.line=M,$.lineStart=F,$.lineIndent=Q;break}if(U)x2($,W,H,!1),O$($,$.line-M),W=H=$.position,U=!1;if(!_6(O))H=$.position+1;O=$.input.charCodeAt(++$.position)}if(x2($,W,H,!1),$.result)return!0;return $.kind=q,$.result=R,!1}function kN($,X){var G,Y,J;if(G=$.input.charCodeAt($.position),G!==39)return!1;$.kind="scalar",$.result="",$.position++,Y=J=$.position;while((G=$.input.charCodeAt($.position))!==0)if(G===39)if(x2($,Y,$.position,!0),G=$.input.charCodeAt(++$.position),G===39)Y=$.position,$.position++,J=$.position;else return!0;else if($2(G))x2($,Y,J,!0),O$($,g0($,!1,X)),Y=J=$.position;else if($.position===$.lineStart&&m8($))c($,"unexpected end of the document within a single quoted scalar");else $.position++,J=$.position;c($,"unexpected end of the stream within a single quoted scalar")}function vN($,X){var G,Y,J,W,H,U;if(U=$.input.charCodeAt($.position),U!==34)return!1;$.kind="scalar",$.result="",$.position++,G=Y=$.position;while((U=$.input.charCodeAt($.position))!==0)if(U===34)return x2($,G,$.position,!0),$.position++,!0;else if(U===92){if(x2($,G,$.position,!0),U=$.input.charCodeAt(++$.position),$2(U))g0($,!1,X);else if(U<256&&NW[U])$.result+=VW[U],$.position++;else if((H=TN(U))>0){J=H,W=0;for(;J>0;J--)if(U=$.input.charCodeAt(++$.position),(H=CN(U))>=0)W=(W<<4)+H;else c($,"expected hexadecimal character");$.result+=IN(W),$.position++}else c($,"unknown escape sequence");G=Y=$.position}else if($2(U))x2($,G,Y,!0),O$($,g0($,!1,X)),G=Y=$.position;else if($.position===$.lineStart&&m8($))c($,"unexpected end of the document within a double quoted scalar");else $.position++,Y=$.position;c($,"unexpected end of the stream within a double quoted scalar")}function xN($,X){var G=!0,Y,J=$.tag,W,H=$.anchor,U,M,F,Q,q,R={},O,_,z,D;if(D=$.input.charCodeAt($.position),D===91)M=93,q=!1,W=[];else if(D===123)M=125,q=!0,W={};else return!1;if($.anchor!==null)$.anchorMap[$.anchor]=W;D=$.input.charCodeAt(++$.position);while(D!==0){if(g0($,!0,X),D=$.input.charCodeAt($.position),D===M)return $.position++,$.tag=J,$.anchor=H,$.kind=q?"mapping":"sequence",$.result=W,!0;else if(!G)c($,"missed comma between flow collection entries");if(_=O=z=null,F=Q=!1,D===63){if(U=$.input.charCodeAt($.position+1),_1(U))F=Q=!0,$.position++,g0($,!0,X)}if(Y=$.line,G5($,X,y8,!1,!0),_=$.tag,O=$.result,g0($,!0,X),D=$.input.charCodeAt($.position),(Q||$.line===Y)&&D===58)F=!0,D=$.input.charCodeAt(++$.position),g0($,!0,X),G5($,X,y8,!1,!0),z=$.result;if(q)X5($,W,R,_,O,z);else if(F)W.push(X5($,null,R,_,O,z));else W.push(O);if(g0($,!0,X),D=$.input.charCodeAt($.position),D===44)G=!0,D=$.input.charCodeAt(++$.position);else G=!1}c($,"unexpected end of the stream within a flow collection")}function bN($,X){var G,Y,J=Q$,W=!1,H=!1,U=X,M=0,F=!1,Q,q;if(q=$.input.charCodeAt($.position),q===124)Y=!1;else if(q===62)Y=!0;else return!1;$.kind="scalar",$.result="";while(q!==0)if(q=$.input.charCodeAt(++$.position),q===43||q===45)if(Q$===J)J=q===43?WW:zN;else c($,"repeat of a chomping mode identifier");else if((Q=EN(q))>=0)if(Q===0)c($,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!H)U=X+Q-1,H=!0;else c($,"repeat of an indentation width identifier");else break;if(_6(q)){do q=$.input.charCodeAt(++$.position);while(_6(q));if(q===35)do q=$.input.charCodeAt(++$.position);while(!$2(q)&&q!==0)}while(q!==0){q$($),$.lineIndent=0,q=$.input.charCodeAt($.position);while((!H||$.lineIndent<U)&&q===32)$.lineIndent++,q=$.input.charCodeAt(++$.position);if(!H&&$.lineIndent>U)U=$.lineIndent;if($2(q)){M++;continue}if($.lineIndent<U){if(J===WW)$.result+=V2.repeat(`
17
+ `+G}return Y};qJ.exports=J$});var l0=l((cS,RJ)=>{var ZJ=a5(),eA=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],$B=["scalar","sequence","mapping"];function XB($){var X={};if($!==null)Object.keys($).forEach(function(G){$[G].forEach(function(Y){X[String(Y)]=G})});return X}function GB($,X){if(X=X||{},Object.keys(X).forEach(function(G){if(eA.indexOf(G)===-1)throw new ZJ('Unknown option "'+G+'" is met in definition of "'+$+'" YAML type.')}),this.tag=$,this.kind=X.kind||null,this.resolve=X.resolve||function(){return!0},this.construct=X.construct||function(G){return G},this.instanceOf=X.instanceOf||null,this.predicate=X.predicate||null,this.represent=X.represent||null,this.defaultStyle=X.defaultStyle||null,this.styleAliases=XB(X.styleAliases||null),$B.indexOf(this.kind)===-1)throw new ZJ('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}RJ.exports=GB});var V5=l((rS,BJ)=>{var AJ=N5(),x8=a5(),YB=l0();function W$($,X,G){var Y=[];return $.include.forEach(function(J){G=W$(J,X,G)}),$[X].forEach(function(J){G.forEach(function(W,H){if(W.tag===J.tag&&W.kind===J.kind)Y.push(H)}),G.push(J)}),G.filter(function(J,W){return Y.indexOf(W)===-1})}function JB(){var $={scalar:{},sequence:{},mapping:{},fallback:{}},X,G;function Y(J){$[J.kind][J.tag]=$.fallback[J.tag]=J}for(X=0,G=arguments.length;X<G;X+=1)arguments[X].forEach(Y);return $}function t5($){this.include=$.include||[],this.implicit=$.implicit||[],this.explicit=$.explicit||[],this.implicit.forEach(function(X){if(X.loadKind&&X.loadKind!=="scalar")throw new x8("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=W$(this,"implicit",[]),this.compiledExplicit=W$(this,"explicit",[]),this.compiledTypeMap=JB(this.compiledImplicit,this.compiledExplicit)}t5.DEFAULT=null;t5.create=function(){var X,G;switch(arguments.length){case 1:X=t5.DEFAULT,G=arguments[0];break;case 2:X=arguments[0],G=arguments[1];break;default:throw new x8("Wrong number of arguments for Schema.create function")}if(X=AJ.toArray(X),G=AJ.toArray(G),!X.every(function(Y){return Y instanceof t5}))throw new x8("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!G.every(function(Y){return Y instanceof YB}))throw new x8("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new t5({include:X,explicit:G})};BJ.exports=t5});var VJ=l((iS,NJ)=>{var WB=l0();NJ.exports=new WB("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}})});var _J=l((oS,wJ)=>{var HB=l0();wJ.exports=new HB("tag:yaml.org,2002:seq",{kind:"sequence",construct:function($){return $!==null?$:[]}})});var DJ=l((nS,zJ)=>{var UB=l0();zJ.exports=new UB("tag:yaml.org,2002:map",{kind:"mapping",construct:function($){return $!==null?$:{}}})});var b8=l((sS,PJ)=>{var KB=V5();PJ.exports=new KB({explicit:[VJ(),_J(),DJ()]})});var CJ=l((aS,LJ)=>{var MB=l0();function FB($){if($===null)return!0;var X=$.length;return X===1&&$==="~"||X===4&&($==="null"||$==="Null"||$==="NULL")}function QB(){return null}function qB($){return $===null}LJ.exports=new MB("tag:yaml.org,2002:null",{kind:"scalar",resolve:FB,construct:QB,predicate:qB,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var EJ=l((tS,TJ)=>{var OB=l0();function ZB($){if($===null)return!1;var X=$.length;return X===4&&($==="true"||$==="True"||$==="TRUE")||X===5&&($==="false"||$==="False"||$==="FALSE")}function RB($){return $==="true"||$==="True"||$==="TRUE"}function AB($){return Object.prototype.toString.call($)==="[object Boolean]"}TJ.exports=new OB("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ZB,construct:RB,predicate:AB,represent:{lowercase:function($){return $?"true":"false"},uppercase:function($){return $?"TRUE":"FALSE"},camelcase:function($){return $?"True":"False"}},defaultStyle:"lowercase"})});var jJ=l((eS,IJ)=>{var BB=N5(),NB=l0();function VB($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function wB($){return 48<=$&&$<=55}function _B($){return 48<=$&&$<=57}function zB($){if($===null)return!1;var X=$.length,G=0,Y=!1,J;if(!X)return!1;if(J=$[G],J==="-"||J==="+")J=$[++G];if(J==="0"){if(G+1===X)return!0;if(J=$[++G],J==="b"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(J!=="0"&&J!=="1")return!1;Y=!0}return Y&&J!=="_"}if(J==="x"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!VB($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}for(;G<X;G++){if(J=$[G],J==="_")continue;if(!wB($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}if(J==="_")return!1;for(;G<X;G++){if(J=$[G],J==="_")continue;if(J===":")break;if(!_B($.charCodeAt(G)))return!1;Y=!0}if(!Y||J==="_")return!1;if(J!==":")return!0;return/^(:[0-5]?[0-9])+$/.test($.slice(G))}function DB($){var X=$,G=1,Y,J,W=[];if(X.indexOf("_")!==-1)X=X.replace(/_/g,"");if(Y=X[0],Y==="-"||Y==="+"){if(Y==="-")G=-1;X=X.slice(1),Y=X[0]}if(X==="0")return 0;if(Y==="0"){if(X[1]==="b")return G*parseInt(X.slice(2),2);if(X[1]==="x")return G*parseInt(X,16);return G*parseInt(X,8)}if(X.indexOf(":")!==-1)return X.split(":").forEach(function(H){W.unshift(parseInt(H,10))}),X=0,J=1,W.forEach(function(H){X+=H*J,J*=60}),G*X;return G*parseInt(X,10)}function PB($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!BB.isNegativeZero($))}IJ.exports=new NB("tag:yaml.org,2002:int",{kind:"scalar",resolve:zB,construct:DB,predicate:PB,represent:{binary:function($){return $>=0?"0b"+$.toString(2):"-0b"+$.toString(2).slice(1)},octal:function($){return $>=0?"0"+$.toString(8):"-0"+$.toString(8).slice(1)},decimal:function($){return $.toString(10)},hexadecimal:function($){return $>=0?"0x"+$.toString(16).toUpperCase():"-0x"+$.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var vJ=l(($k,kJ)=>{var SJ=N5(),LB=l0(),CB=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function TB($){if($===null)return!1;if(!CB.test($)||$[$.length-1]==="_")return!1;return!0}function EB($){var X,G,Y,J;if(X=$.replace(/_/g,"").toLowerCase(),G=X[0]==="-"?-1:1,J=[],"+-".indexOf(X[0])>=0)X=X.slice(1);if(X===".inf")return G===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(X===".nan")return NaN;else if(X.indexOf(":")>=0)return X.split(":").forEach(function(W){J.unshift(parseFloat(W,10))}),X=0,Y=1,J.forEach(function(W){X+=W*Y,Y*=60}),G*X;return G*parseFloat(X,10)}var IB=/^[-+]?[0-9]+e/;function jB($,X){var G;if(isNaN($))switch(X){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(X){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(X){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(SJ.isNegativeZero($))return"-0.0";return G=$.toString(10),IB.test(G)?G.replace("e",".e"):G}function SB($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||SJ.isNegativeZero($))}kJ.exports=new LB("tag:yaml.org,2002:float",{kind:"scalar",resolve:TB,construct:EB,predicate:SB,represent:jB,defaultStyle:"lowercase"})});var H$=l((Xk,xJ)=>{var kB=V5();xJ.exports=new kB({include:[b8()],implicit:[CJ(),EJ(),jJ(),vJ()]})});var U$=l((Gk,bJ)=>{var vB=V5();bJ.exports=new vB({include:[H$()]})});var gJ=l((Yk,fJ)=>{var xB=l0(),hJ=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),yJ=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function bB($){if($===null)return!1;if(hJ.exec($)!==null)return!0;if(yJ.exec($)!==null)return!0;return!1}function hB($){var X,G,Y,J,W,H,U,M=0,F=null,Q,q,R;if(X=hJ.exec($),X===null)X=yJ.exec($);if(X===null)throw Error("Date resolve error");if(G=+X[1],Y=+X[2]-1,J=+X[3],!X[4])return new Date(Date.UTC(G,Y,J));if(W=+X[4],H=+X[5],U=+X[6],X[7]){M=X[7].slice(0,3);while(M.length<3)M+="0";M=+M}if(X[9]){if(Q=+X[10],q=+(X[11]||0),F=(Q*60+q)*60000,X[9]==="-")F=-F}if(R=new Date(Date.UTC(G,Y,J,W,H,U,M)),F)R.setTime(R.getTime()-F);return R}function yB($){return $.toISOString()}fJ.exports=new xB("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:bB,construct:hB,instanceOf:Date,represent:yB})});var pJ=l((Jk,mJ)=>{var fB=l0();function gB($){return $==="<<"||$===null}mJ.exports=new fB("tag:yaml.org,2002:merge",{kind:"scalar",resolve:gB})});var dJ=l((Wk,uJ)=>{var w5;try{K$=N6,w5=K$("buffer").Buffer}catch($){}var K$,mB=l0(),M$=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
18
+ \r`;function pB($){if($===null)return!1;var X,G,Y=0,J=$.length,W=M$;for(G=0;G<J;G++){if(X=W.indexOf($.charAt(G)),X>64)continue;if(X<0)return!1;Y+=6}return Y%8===0}function uB($){var X,G,Y=$.replace(/[\r\n=]/g,""),J=Y.length,W=M$,H=0,U=[];for(X=0;X<J;X++){if(X%4===0&&X)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);H=H<<6|W.indexOf(Y.charAt(X))}if(G=J%4*6,G===0)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);else if(G===18)U.push(H>>10&255),U.push(H>>2&255);else if(G===12)U.push(H>>4&255);if(w5)return w5.from?w5.from(U):new w5(U);return U}function dB($){var X="",G=0,Y,J,W=$.length,H=M$;for(Y=0;Y<W;Y++){if(Y%3===0&&Y)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];G=(G<<8)+$[Y]}if(J=W%3,J===0)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];else if(J===2)X+=H[G>>10&63],X+=H[G>>4&63],X+=H[G<<2&63],X+=H[64];else if(J===1)X+=H[G>>2&63],X+=H[G<<4&63],X+=H[64],X+=H[64];return X}function lB($){return w5&&w5.isBuffer($)}uJ.exports=new mB("tag:yaml.org,2002:binary",{kind:"scalar",resolve:pB,construct:uB,predicate:lB,represent:dB})});var cJ=l((Uk,lJ)=>{var cB=l0(),rB=Object.prototype.hasOwnProperty,iB=Object.prototype.toString;function oB($){if($===null)return!0;var X=[],G,Y,J,W,H,U=$;for(G=0,Y=U.length;G<Y;G+=1){if(J=U[G],H=!1,iB.call(J)!=="[object Object]")return!1;for(W in J)if(rB.call(J,W))if(!H)H=!0;else return!1;if(!H)return!1;if(X.indexOf(W)===-1)X.push(W);else return!1}return!0}function nB($){return $!==null?$:[]}lJ.exports=new cB("tag:yaml.org,2002:omap",{kind:"sequence",resolve:oB,construct:nB})});var iJ=l((Kk,rJ)=>{var sB=l0(),aB=Object.prototype.toString;function tB($){if($===null)return!0;var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1){if(Y=H[X],aB.call(Y)!=="[object Object]")return!1;if(J=Object.keys(Y),J.length!==1)return!1;W[X]=[J[0],Y[J[0]]]}return!0}function eB($){if($===null)return[];var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1)Y=H[X],J=Object.keys(Y),W[X]=[J[0],Y[J[0]]];return W}rJ.exports=new sB("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:tB,construct:eB})});var nJ=l((Mk,oJ)=>{var $N=l0(),XN=Object.prototype.hasOwnProperty;function GN($){if($===null)return!0;var X,G=$;for(X in G)if(XN.call(G,X)){if(G[X]!==null)return!1}return!0}function YN($){return $!==null?$:{}}oJ.exports=new $N("tag:yaml.org,2002:set",{kind:"mapping",resolve:GN,construct:YN})});var e5=l((Fk,sJ)=>{var JN=V5();sJ.exports=new JN({include:[U$()],implicit:[gJ(),pJ()],explicit:[dJ(),cJ(),iJ(),nJ()]})});var tJ=l((Qk,aJ)=>{var WN=l0();function HN(){return!0}function UN(){return}function KN(){return""}function MN($){return typeof $>"u"}aJ.exports=new WN("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:HN,construct:UN,predicate:MN,represent:KN})});var $W=l((qk,eJ)=>{var FN=l0();function QN($){if($===null)return!1;if($.length===0)return!1;var X=$,G=/\/([gim]*)$/.exec($),Y="";if(X[0]==="/"){if(G)Y=G[1];if(Y.length>3)return!1;if(X[X.length-Y.length-1]!=="/")return!1}return!0}function qN($){var X=$,G=/\/([gim]*)$/.exec($),Y="";if(X[0]==="/"){if(G)Y=G[1];X=X.slice(1,X.length-Y.length-1)}return new RegExp(X,Y)}function ON($){var X="/"+$.source+"/";if($.global)X+="g";if($.multiline)X+="m";if($.ignoreCase)X+="i";return X}function ZN($){return Object.prototype.toString.call($)==="[object RegExp]"}eJ.exports=new FN("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:QN,construct:qN,predicate:ZN,represent:ON})});var GW=l((Ok,XW)=>{var h8;try{F$=N6,h8=F$("esprima")}catch($){if(typeof window<"u")h8=window.esprima}var F$,RN=l0();function AN($){if($===null)return!1;try{var X="("+$+")",G=h8.parse(X,{range:!0});if(G.type!=="Program"||G.body.length!==1||G.body[0].type!=="ExpressionStatement"||G.body[0].expression.type!=="ArrowFunctionExpression"&&G.body[0].expression.type!=="FunctionExpression")return!1;return!0}catch(Y){return!1}}function BN($){var X="("+$+")",G=h8.parse(X,{range:!0}),Y=[],J;if(G.type!=="Program"||G.body.length!==1||G.body[0].type!=="ExpressionStatement"||G.body[0].expression.type!=="ArrowFunctionExpression"&&G.body[0].expression.type!=="FunctionExpression")throw Error("Failed to resolve function");if(G.body[0].expression.params.forEach(function(W){Y.push(W.name)}),J=G.body[0].expression.body.range,G.body[0].expression.body.type==="BlockStatement")return Function(Y,X.slice(J[0]+1,J[1]-1));return Function(Y,"return "+X.slice(J[0],J[1]))}function NN($){return $.toString()}function VN($){return Object.prototype.toString.call($)==="[object Function]"}XW.exports=new RN("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:AN,construct:BN,predicate:VN,represent:NN})});var F4=l((Rk,JW)=>{var YW=V5();JW.exports=YW.DEFAULT=new YW({include:[e5()],explicit:[tJ(),$W(),GW()]})});var PW=l((dN,Q4)=>{var V6=N5(),QW=a5(),wN=OJ(),qW=e5(),_N=F4(),b6=Object.prototype.hasOwnProperty,y8=1,OW=2,ZW=3,f8=4,Q$=1,zN=2,WW=3,DN=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PN=/[\x85\u2028\u2029]/,LN=/[,\[\]\{\}]/,RW=/^(?:!|!!|![a-z\-]+!)$/i,AW=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function HW($){return Object.prototype.toString.call($)}function $6($){return $===10||$===13}function _5($){return $===9||$===32}function _1($){return $===9||$===32||$===10||$===13}function $2($){return $===44||$===91||$===93||$===123||$===125}function CN($){var X;if(48<=$&&$<=57)return $-48;if(X=$|32,97<=X&&X<=102)return X-97+10;return-1}function TN($){if($===120)return 2;if($===117)return 4;if($===85)return 8;return 0}function EN($){if(48<=$&&$<=57)return $-48;return-1}function UW($){return $===48?"\x00":$===97?"\x07":$===98?"\b":$===116?"\t":$===9?"\t":$===110?`
19
+ `:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function IN($){if($<=65535)return String.fromCharCode($);return String.fromCharCode(($-65536>>10)+55296,($-65536&1023)+56320)}function BW($,X,G){if(X==="__proto__")Object.defineProperty($,X,{configurable:!0,enumerable:!0,writable:!0,value:G});else $[X]=G}var NW=Array(256),VW=Array(256);for(v6=0;v6<256;v6++)NW[v6]=UW(v6)?1:0,VW[v6]=UW(v6);var v6;function jN($,X){this.input=$,this.filename=X.filename||null,this.schema=X.schema||_N,this.onWarning=X.onWarning||null,this.legacy=X.legacy||!1,this.json=X.json||!1,this.listener=X.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=$.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function wW($,X){return new QW(X,new wN($.filename,$.input,$.position,$.line,$.position-$.lineStart))}function c($,X){throw wW($,X)}function g8($,X){if($.onWarning)$.onWarning.call(null,wW($,X))}var KW={YAML:function(X,G,Y){var J,W,H;if(X.version!==null)c(X,"duplication of %YAML directive");if(Y.length!==1)c(X,"YAML directive accepts exactly one argument");if(J=/^([0-9]+)\.([0-9]+)$/.exec(Y[0]),J===null)c(X,"ill-formed argument of the YAML directive");if(W=parseInt(J[1],10),H=parseInt(J[2],10),W!==1)c(X,"unacceptable YAML version of the document");if(X.version=Y[0],X.checkLineBreaks=H<2,H!==1&&H!==2)g8(X,"unsupported YAML version of the document")},TAG:function(X,G,Y){var J,W;if(Y.length!==2)c(X,"TAG directive accepts exactly two arguments");if(J=Y[0],W=Y[1],!RW.test(J))c(X,"ill-formed tag handle (first argument) of the TAG directive");if(b6.call(X.tagMap,J))c(X,'there is a previously declared suffix for "'+J+'" tag handle');if(!AW.test(W))c(X,"ill-formed tag prefix (second argument) of the TAG directive");X.tagMap[J]=W}};function x6($,X,G,Y){var J,W,H,U;if(X<G){if(U=$.input.slice(X,G),Y){for(J=0,W=U.length;J<W;J+=1)if(H=U.charCodeAt(J),!(H===9||32<=H&&H<=1114111))c($,"expected valid JSON character")}else if(DN.test(U))c($,"the stream contains non-printable characters");$.result+=U}}function MW($,X,G,Y){var J,W,H,U;if(!V6.isObject(G))c($,"cannot merge mappings; the provided source object is unacceptable");J=Object.keys(G);for(H=0,U=J.length;H<U;H+=1)if(W=J[H],!b6.call(X,W))BW(X,W,G[W]),Y[W]=!0}function X2($,X,G,Y,J,W,H,U){var M,F;if(Array.isArray(J)){J=Array.prototype.slice.call(J);for(M=0,F=J.length;M<F;M+=1){if(Array.isArray(J[M]))c($,"nested arrays are not supported inside keys");if(typeof J==="object"&&HW(J[M])==="[object Object]")J[M]="[object Object]"}}if(typeof J==="object"&&HW(J)==="[object Object]")J="[object Object]";if(J=String(J),X===null)X={};if(Y==="tag:yaml.org,2002:merge")if(Array.isArray(W))for(M=0,F=W.length;M<F;M+=1)MW($,X,W[M],G);else MW($,X,W,G);else{if(!$.json&&!b6.call(G,J)&&b6.call(X,J))$.line=H||$.line,$.position=U||$.position,c($,"duplicated mapping key");BW(X,J,W),delete G[J]}return X}function q$($){var X=$.input.charCodeAt($.position);if(X===10)$.position++;else if(X===13){if($.position++,$.input.charCodeAt($.position)===10)$.position++}else c($,"a line break is expected");$.line+=1,$.lineStart=$.position}function g0($,X,G){var Y=0,J=$.input.charCodeAt($.position);while(J!==0){while(_5(J))J=$.input.charCodeAt(++$.position);if(X&&J===35)do J=$.input.charCodeAt(++$.position);while(J!==10&&J!==13&&J!==0);if($6(J)){q$($),J=$.input.charCodeAt($.position),Y++,$.lineIndent=0;while(J===32)$.lineIndent++,J=$.input.charCodeAt(++$.position)}else break}if(G!==-1&&Y!==0&&$.lineIndent<G)g8($,"deficient indentation");return Y}function m8($){var X=$.position,G;if(G=$.input.charCodeAt(X),(G===45||G===46)&&G===$.input.charCodeAt(X+1)&&G===$.input.charCodeAt(X+2)){if(X+=3,G=$.input.charCodeAt(X),G===0||_1(G))return!0}return!1}function O$($,X){if(X===1)$.result+=" ";else if(X>1)$.result+=V6.repeat(`
20
+ `,X-1)}function SN($,X,G){var Y,J,W,H,U,M,F,Q,q=$.kind,R=$.result,O;if(O=$.input.charCodeAt($.position),_1(O)||$2(O)||O===35||O===38||O===42||O===33||O===124||O===62||O===39||O===34||O===37||O===64||O===96)return!1;if(O===63||O===45){if(J=$.input.charCodeAt($.position+1),_1(J)||G&&$2(J))return!1}$.kind="scalar",$.result="",W=H=$.position,U=!1;while(O!==0){if(O===58){if(J=$.input.charCodeAt($.position+1),_1(J)||G&&$2(J))break}else if(O===35){if(Y=$.input.charCodeAt($.position-1),_1(Y))break}else if($.position===$.lineStart&&m8($)||G&&$2(O))break;else if($6(O))if(M=$.line,F=$.lineStart,Q=$.lineIndent,g0($,!1,-1),$.lineIndent>=X){U=!0,O=$.input.charCodeAt($.position);continue}else{$.position=H,$.line=M,$.lineStart=F,$.lineIndent=Q;break}if(U)x6($,W,H,!1),O$($,$.line-M),W=H=$.position,U=!1;if(!_5(O))H=$.position+1;O=$.input.charCodeAt(++$.position)}if(x6($,W,H,!1),$.result)return!0;return $.kind=q,$.result=R,!1}function kN($,X){var G,Y,J;if(G=$.input.charCodeAt($.position),G!==39)return!1;$.kind="scalar",$.result="",$.position++,Y=J=$.position;while((G=$.input.charCodeAt($.position))!==0)if(G===39)if(x6($,Y,$.position,!0),G=$.input.charCodeAt(++$.position),G===39)Y=$.position,$.position++,J=$.position;else return!0;else if($6(G))x6($,Y,J,!0),O$($,g0($,!1,X)),Y=J=$.position;else if($.position===$.lineStart&&m8($))c($,"unexpected end of the document within a single quoted scalar");else $.position++,J=$.position;c($,"unexpected end of the stream within a single quoted scalar")}function vN($,X){var G,Y,J,W,H,U;if(U=$.input.charCodeAt($.position),U!==34)return!1;$.kind="scalar",$.result="",$.position++,G=Y=$.position;while((U=$.input.charCodeAt($.position))!==0)if(U===34)return x6($,G,$.position,!0),$.position++,!0;else if(U===92){if(x6($,G,$.position,!0),U=$.input.charCodeAt(++$.position),$6(U))g0($,!1,X);else if(U<256&&NW[U])$.result+=VW[U],$.position++;else if((H=TN(U))>0){J=H,W=0;for(;J>0;J--)if(U=$.input.charCodeAt(++$.position),(H=CN(U))>=0)W=(W<<4)+H;else c($,"expected hexadecimal character");$.result+=IN(W),$.position++}else c($,"unknown escape sequence");G=Y=$.position}else if($6(U))x6($,G,Y,!0),O$($,g0($,!1,X)),G=Y=$.position;else if($.position===$.lineStart&&m8($))c($,"unexpected end of the document within a double quoted scalar");else $.position++,Y=$.position;c($,"unexpected end of the stream within a double quoted scalar")}function xN($,X){var G=!0,Y,J=$.tag,W,H=$.anchor,U,M,F,Q,q,R={},O,_,z,D;if(D=$.input.charCodeAt($.position),D===91)M=93,q=!1,W=[];else if(D===123)M=125,q=!0,W={};else return!1;if($.anchor!==null)$.anchorMap[$.anchor]=W;D=$.input.charCodeAt(++$.position);while(D!==0){if(g0($,!0,X),D=$.input.charCodeAt($.position),D===M)return $.position++,$.tag=J,$.anchor=H,$.kind=q?"mapping":"sequence",$.result=W,!0;else if(!G)c($,"missed comma between flow collection entries");if(_=O=z=null,F=Q=!1,D===63){if(U=$.input.charCodeAt($.position+1),_1(U))F=Q=!0,$.position++,g0($,!0,X)}if(Y=$.line,G2($,X,y8,!1,!0),_=$.tag,O=$.result,g0($,!0,X),D=$.input.charCodeAt($.position),(Q||$.line===Y)&&D===58)F=!0,D=$.input.charCodeAt(++$.position),g0($,!0,X),G2($,X,y8,!1,!0),z=$.result;if(q)X2($,W,R,_,O,z);else if(F)W.push(X2($,null,R,_,O,z));else W.push(O);if(g0($,!0,X),D=$.input.charCodeAt($.position),D===44)G=!0,D=$.input.charCodeAt(++$.position);else G=!1}c($,"unexpected end of the stream within a flow collection")}function bN($,X){var G,Y,J=Q$,W=!1,H=!1,U=X,M=0,F=!1,Q,q;if(q=$.input.charCodeAt($.position),q===124)Y=!1;else if(q===62)Y=!0;else return!1;$.kind="scalar",$.result="";while(q!==0)if(q=$.input.charCodeAt(++$.position),q===43||q===45)if(Q$===J)J=q===43?WW:zN;else c($,"repeat of a chomping mode identifier");else if((Q=EN(q))>=0)if(Q===0)c($,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!H)U=X+Q-1,H=!0;else c($,"repeat of an indentation width identifier");else break;if(_5(q)){do q=$.input.charCodeAt(++$.position);while(_5(q));if(q===35)do q=$.input.charCodeAt(++$.position);while(!$6(q)&&q!==0)}while(q!==0){q$($),$.lineIndent=0,q=$.input.charCodeAt($.position);while((!H||$.lineIndent<U)&&q===32)$.lineIndent++,q=$.input.charCodeAt(++$.position);if(!H&&$.lineIndent>U)U=$.lineIndent;if($6(q)){M++;continue}if($.lineIndent<U){if(J===WW)$.result+=V6.repeat(`
21
21
  `,W?1+M:M);else if(J===Q$){if(W)$.result+=`
22
- `}break}if(Y)if(_6(q))F=!0,$.result+=V2.repeat(`
23
- `,W?1+M:M);else if(F)F=!1,$.result+=V2.repeat(`
24
- `,M+1);else if(M===0){if(W)$.result+=" "}else $.result+=V2.repeat(`
25
- `,M);else $.result+=V2.repeat(`
26
- `,W?1+M:M);W=!0,H=!0,M=0,G=$.position;while(!$2(q)&&q!==0)q=$.input.charCodeAt(++$.position);x2($,G,$.position,!1)}return!0}function FW($,X){var G,Y=$.tag,J=$.anchor,W=[],H,U=!1,M;if($.anchor!==null)$.anchorMap[$.anchor]=W;M=$.input.charCodeAt($.position);while(M!==0){if(M!==45)break;if(H=$.input.charCodeAt($.position+1),!_1(H))break;if(U=!0,$.position++,g0($,!0,-1)){if($.lineIndent<=X){W.push(null),M=$.input.charCodeAt($.position);continue}}if(G=$.line,G5($,X,ZW,!1,!0),W.push($.result),g0($,!0,-1),M=$.input.charCodeAt($.position),($.line===G||$.lineIndent>X)&&M!==0)c($,"bad indentation of a sequence entry");else if($.lineIndent<X)break}if(U)return $.tag=Y,$.anchor=J,$.kind="sequence",$.result=W,!0;return!1}function hN($,X,G){var Y,J,W,H,U=$.tag,M=$.anchor,F={},Q={},q=null,R=null,O=null,_=!1,z=!1,D;if($.anchor!==null)$.anchorMap[$.anchor]=F;D=$.input.charCodeAt($.position);while(D!==0){if(Y=$.input.charCodeAt($.position+1),W=$.line,H=$.position,(D===63||D===58)&&_1(Y)){if(D===63){if(_)X5($,F,Q,q,R,null),q=R=O=null;z=!0,_=!0,J=!0}else if(_)_=!1,J=!0;else c($,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");$.position+=1,D=Y}else if(G5($,G,OW,!1,!0))if($.line===W){D=$.input.charCodeAt($.position);while(_6(D))D=$.input.charCodeAt(++$.position);if(D===58){if(D=$.input.charCodeAt(++$.position),!_1(D))c($,"a whitespace character is expected after the key-value separator within a block mapping");if(_)X5($,F,Q,q,R,null),q=R=O=null;z=!0,_=!1,J=!1,q=$.tag,R=$.result}else if(z)c($,"can not read an implicit mapping pair; a colon is missed");else return $.tag=U,$.anchor=M,!0}else if(z)c($,"can not read a block mapping entry; a multiline key may not be an implicit key");else return $.tag=U,$.anchor=M,!0;else break;if($.line===W||$.lineIndent>X){if(G5($,X,f8,!0,J))if(_)R=$.result;else O=$.result;if(!_)X5($,F,Q,q,R,O,W,H),q=R=O=null;g0($,!0,-1),D=$.input.charCodeAt($.position)}if($.lineIndent>X&&D!==0)c($,"bad indentation of a mapping entry");else if($.lineIndent<X)break}if(_)X5($,F,Q,q,R,null);if(z)$.tag=U,$.anchor=M,$.kind="mapping",$.result=F;return z}function yN($){var X,G=!1,Y=!1,J,W,H;if(H=$.input.charCodeAt($.position),H!==33)return!1;if($.tag!==null)c($,"duplication of a tag property");if(H=$.input.charCodeAt(++$.position),H===60)G=!0,H=$.input.charCodeAt(++$.position);else if(H===33)Y=!0,J="!!",H=$.input.charCodeAt(++$.position);else J="!";if(X=$.position,G){do H=$.input.charCodeAt(++$.position);while(H!==0&&H!==62);if($.position<$.length)W=$.input.slice(X,$.position),H=$.input.charCodeAt(++$.position);else c($,"unexpected end of the stream within a verbatim tag")}else{while(H!==0&&!_1(H)){if(H===33)if(!Y){if(J=$.input.slice(X-1,$.position+1),!RW.test(J))c($,"named tag handle cannot contain such characters");Y=!0,X=$.position+1}else c($,"tag suffix cannot contain exclamation marks");H=$.input.charCodeAt(++$.position)}if(W=$.input.slice(X,$.position),LN.test(W))c($,"tag suffix cannot contain flow indicator characters")}if(W&&!AW.test(W))c($,"tag name cannot contain such characters: "+W);if(G)$.tag=W;else if(b2.call($.tagMap,J))$.tag=$.tagMap[J]+W;else if(J==="!")$.tag="!"+W;else if(J==="!!")$.tag="tag:yaml.org,2002:"+W;else c($,'undeclared tag handle "'+J+'"');return!0}function fN($){var X,G;if(G=$.input.charCodeAt($.position),G!==38)return!1;if($.anchor!==null)c($,"duplication of an anchor property");G=$.input.charCodeAt(++$.position),X=$.position;while(G!==0&&!_1(G)&&!$5(G))G=$.input.charCodeAt(++$.position);if($.position===X)c($,"name of an anchor node must contain at least one character");return $.anchor=$.input.slice(X,$.position),!0}function gN($){var X,G,Y;if(Y=$.input.charCodeAt($.position),Y!==42)return!1;Y=$.input.charCodeAt(++$.position),X=$.position;while(Y!==0&&!_1(Y)&&!$5(Y))Y=$.input.charCodeAt(++$.position);if($.position===X)c($,"name of an alias node must contain at least one character");if(G=$.input.slice(X,$.position),!b2.call($.anchorMap,G))c($,'unidentified alias "'+G+'"');return $.result=$.anchorMap[G],g0($,!0,-1),!0}function G5($,X,G,Y,J){var W,H,U,M=1,F=!1,Q=!1,q,R,O,_,z;if($.listener!==null)$.listener("open",$);if($.tag=null,$.anchor=null,$.kind=null,$.result=null,W=H=U=f8===G||ZW===G,Y){if(g0($,!0,-1)){if(F=!0,$.lineIndent>X)M=1;else if($.lineIndent===X)M=0;else if($.lineIndent<X)M=-1}}if(M===1)while(yN($)||fN($))if(g0($,!0,-1)){if(F=!0,U=W,$.lineIndent>X)M=1;else if($.lineIndent===X)M=0;else if($.lineIndent<X)M=-1}else U=!1;if(U)U=F||J;if(M===1||f8===G){if(y8===G||OW===G)_=X;else _=X+1;if(z=$.position-$.lineStart,M===1)if(U&&(FW($,z)||hN($,z,_))||xN($,_))Q=!0;else{if(H&&bN($,_)||kN($,_)||vN($,_))Q=!0;else if(gN($)){if(Q=!0,$.tag!==null||$.anchor!==null)c($,"alias node should not have any properties")}else if(SN($,_,y8===G)){if(Q=!0,$.tag===null)$.tag="?"}if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if(M===0)Q=U&&FW($,z)}if($.tag!==null&&$.tag!=="!")if($.tag==="?"){if($.result!==null&&$.kind!=="scalar")c($,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+$.kind+'"');for(q=0,R=$.implicitTypes.length;q<R;q+=1)if(O=$.implicitTypes[q],O.resolve($.result)){if($.result=O.construct($.result),$.tag=O.tag,$.anchor!==null)$.anchorMap[$.anchor]=$.result;break}}else if(b2.call($.typeMap[$.kind||"fallback"],$.tag)){if(O=$.typeMap[$.kind||"fallback"][$.tag],$.result!==null&&O.kind!==$.kind)c($,"unacceptable node kind for !<"+$.tag+'> tag; it should be "'+O.kind+'", not "'+$.kind+'"');if(!O.resolve($.result))c($,"cannot resolve a node with !<"+$.tag+"> explicit tag");else if($.result=O.construct($.result),$.anchor!==null)$.anchorMap[$.anchor]=$.result}else c($,"unknown tag !<"+$.tag+">");if($.listener!==null)$.listener("close",$);return $.tag!==null||$.anchor!==null||Q}function mN($){var X=$.position,G,Y,J,W=!1,H;$.version=null,$.checkLineBreaks=$.legacy,$.tagMap={},$.anchorMap={};while((H=$.input.charCodeAt($.position))!==0){if(g0($,!0,-1),H=$.input.charCodeAt($.position),$.lineIndent>0||H!==37)break;W=!0,H=$.input.charCodeAt(++$.position),G=$.position;while(H!==0&&!_1(H))H=$.input.charCodeAt(++$.position);if(Y=$.input.slice(G,$.position),J=[],Y.length<1)c($,"directive name must not be less than one character in length");while(H!==0){while(_6(H))H=$.input.charCodeAt(++$.position);if(H===35){do H=$.input.charCodeAt(++$.position);while(H!==0&&!$2(H));break}if($2(H))break;G=$.position;while(H!==0&&!_1(H))H=$.input.charCodeAt(++$.position);J.push($.input.slice(G,$.position))}if(H!==0)q$($);if(b2.call(KW,Y))KW[Y]($,Y,J);else g8($,'unknown document directive "'+Y+'"')}if(g0($,!0,-1),$.lineIndent===0&&$.input.charCodeAt($.position)===45&&$.input.charCodeAt($.position+1)===45&&$.input.charCodeAt($.position+2)===45)$.position+=3,g0($,!0,-1);else if(W)c($,"directives end mark is expected");if(G5($,$.lineIndent-1,f8,!1,!0),g0($,!0,-1),$.checkLineBreaks&&PN.test($.input.slice(X,$.position)))g8($,"non-ASCII line breaks are interpreted as content");if($.documents.push($.result),$.position===$.lineStart&&m8($)){if($.input.charCodeAt($.position)===46)$.position+=3,g0($,!0,-1);return}if($.position<$.length-1)c($,"end of the stream or a document separator is expected");else return}function _W($,X){if($=String($),X=X||{},$.length!==0){if($.charCodeAt($.length-1)!==10&&$.charCodeAt($.length-1)!==13)$+=`
27
- `;if($.charCodeAt(0)===65279)$=$.slice(1)}var G=new jN($,X),Y=$.indexOf("\x00");if(Y!==-1)G.position=Y,c(G,"null byte is not allowed in input");G.input+="\x00";while(G.input.charCodeAt(G.position)===32)G.lineIndent+=1,G.position+=1;while(G.position<G.length-1)mN(G);return G.documents}function zW($,X,G){if(X!==null&&typeof X==="object"&&typeof G>"u")G=X,X=null;var Y=_W($,G);if(typeof X!=="function")return Y;for(var J=0,W=Y.length;J<W;J+=1)X(Y[J])}function DW($,X){var G=_W($,X);if(G.length===0)return;else if(G.length===1)return G[0];throw new QW("expected a single document in the stream, but found more")}function pN($,X,G){if(typeof X==="object"&&X!==null&&typeof G>"u")G=X,X=null;return zW($,X,V2.extend({schema:qW},G))}function uN($,X){return DW($,V2.extend({schema:qW},X))}dN.loadAll=zW;dN.load=DW;dN.safeLoadAll=pN;dN.safeLoad=uN});var iW=l((EV,B$)=>{var O4=N6(),Z4=a6(),oN=F4(),nN=e6(),kW=Object.prototype.toString,vW=Object.prototype.hasOwnProperty,sN=9,q4=10,aN=13,tN=32,eN=33,$V=34,xW=35,XV=37,GV=38,YV=39,JV=42,bW=44,WV=45,hW=58,HV=61,UV=62,KV=63,MV=64,yW=91,fW=93,FV=96,gW=123,QV=124,mW=125,U1={};U1[0]="\\0";U1[7]="\\a";U1[8]="\\b";U1[9]="\\t";U1[10]="\\n";U1[11]="\\v";U1[12]="\\f";U1[13]="\\r";U1[27]="\\e";U1[34]="\\\"";U1[92]="\\\\";U1[133]="\\N";U1[160]="\\_";U1[8232]="\\L";U1[8233]="\\P";var qV=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function OV($,X){var G,Y,J,W,H,U,M;if(X===null)return{};G={},Y=Object.keys(X);for(J=0,W=Y.length;J<W;J+=1){if(H=Y[J],U=String(X[H]),H.slice(0,2)==="!!")H="tag:yaml.org,2002:"+H.slice(2);if(M=$.compiledTypeMap.fallback[H],M&&vW.call(M.styleAliases,U))U=M.styleAliases[U];G[H]=U}return G}function LW($){var X,G,Y;if(X=$.toString(16).toUpperCase(),$<=255)G="x",Y=2;else if($<=65535)G="u",Y=4;else if($<=4294967295)G="U",Y=8;else throw new Z4("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+G+O4.repeat("0",Y-X.length)+X}function ZV($){this.schema=$.schema||oN,this.indent=Math.max(1,$.indent||2),this.noArrayIndent=$.noArrayIndent||!1,this.skipInvalid=$.skipInvalid||!1,this.flowLevel=O4.isNothing($.flowLevel)?-1:$.flowLevel,this.styleMap=OV(this.schema,$.styles||null),this.sortKeys=$.sortKeys||!1,this.lineWidth=$.lineWidth||80,this.noRefs=$.noRefs||!1,this.noCompatMode=$.noCompatMode||!1,this.condenseFlow=$.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function CW($,X){var G=O4.repeat(" ",X),Y=0,J=-1,W="",H,U=$.length;while(Y<U){if(J=$.indexOf(`
22
+ `}break}if(Y)if(_5(q))F=!0,$.result+=V6.repeat(`
23
+ `,W?1+M:M);else if(F)F=!1,$.result+=V6.repeat(`
24
+ `,M+1);else if(M===0){if(W)$.result+=" "}else $.result+=V6.repeat(`
25
+ `,M);else $.result+=V6.repeat(`
26
+ `,W?1+M:M);W=!0,H=!0,M=0,G=$.position;while(!$6(q)&&q!==0)q=$.input.charCodeAt(++$.position);x6($,G,$.position,!1)}return!0}function FW($,X){var G,Y=$.tag,J=$.anchor,W=[],H,U=!1,M;if($.anchor!==null)$.anchorMap[$.anchor]=W;M=$.input.charCodeAt($.position);while(M!==0){if(M!==45)break;if(H=$.input.charCodeAt($.position+1),!_1(H))break;if(U=!0,$.position++,g0($,!0,-1)){if($.lineIndent<=X){W.push(null),M=$.input.charCodeAt($.position);continue}}if(G=$.line,G2($,X,ZW,!1,!0),W.push($.result),g0($,!0,-1),M=$.input.charCodeAt($.position),($.line===G||$.lineIndent>X)&&M!==0)c($,"bad indentation of a sequence entry");else if($.lineIndent<X)break}if(U)return $.tag=Y,$.anchor=J,$.kind="sequence",$.result=W,!0;return!1}function hN($,X,G){var Y,J,W,H,U=$.tag,M=$.anchor,F={},Q={},q=null,R=null,O=null,_=!1,z=!1,D;if($.anchor!==null)$.anchorMap[$.anchor]=F;D=$.input.charCodeAt($.position);while(D!==0){if(Y=$.input.charCodeAt($.position+1),W=$.line,H=$.position,(D===63||D===58)&&_1(Y)){if(D===63){if(_)X2($,F,Q,q,R,null),q=R=O=null;z=!0,_=!0,J=!0}else if(_)_=!1,J=!0;else c($,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");$.position+=1,D=Y}else if(G2($,G,OW,!1,!0))if($.line===W){D=$.input.charCodeAt($.position);while(_5(D))D=$.input.charCodeAt(++$.position);if(D===58){if(D=$.input.charCodeAt(++$.position),!_1(D))c($,"a whitespace character is expected after the key-value separator within a block mapping");if(_)X2($,F,Q,q,R,null),q=R=O=null;z=!0,_=!1,J=!1,q=$.tag,R=$.result}else if(z)c($,"can not read an implicit mapping pair; a colon is missed");else return $.tag=U,$.anchor=M,!0}else if(z)c($,"can not read a block mapping entry; a multiline key may not be an implicit key");else return $.tag=U,$.anchor=M,!0;else break;if($.line===W||$.lineIndent>X){if(G2($,X,f8,!0,J))if(_)R=$.result;else O=$.result;if(!_)X2($,F,Q,q,R,O,W,H),q=R=O=null;g0($,!0,-1),D=$.input.charCodeAt($.position)}if($.lineIndent>X&&D!==0)c($,"bad indentation of a mapping entry");else if($.lineIndent<X)break}if(_)X2($,F,Q,q,R,null);if(z)$.tag=U,$.anchor=M,$.kind="mapping",$.result=F;return z}function yN($){var X,G=!1,Y=!1,J,W,H;if(H=$.input.charCodeAt($.position),H!==33)return!1;if($.tag!==null)c($,"duplication of a tag property");if(H=$.input.charCodeAt(++$.position),H===60)G=!0,H=$.input.charCodeAt(++$.position);else if(H===33)Y=!0,J="!!",H=$.input.charCodeAt(++$.position);else J="!";if(X=$.position,G){do H=$.input.charCodeAt(++$.position);while(H!==0&&H!==62);if($.position<$.length)W=$.input.slice(X,$.position),H=$.input.charCodeAt(++$.position);else c($,"unexpected end of the stream within a verbatim tag")}else{while(H!==0&&!_1(H)){if(H===33)if(!Y){if(J=$.input.slice(X-1,$.position+1),!RW.test(J))c($,"named tag handle cannot contain such characters");Y=!0,X=$.position+1}else c($,"tag suffix cannot contain exclamation marks");H=$.input.charCodeAt(++$.position)}if(W=$.input.slice(X,$.position),LN.test(W))c($,"tag suffix cannot contain flow indicator characters")}if(W&&!AW.test(W))c($,"tag name cannot contain such characters: "+W);if(G)$.tag=W;else if(b6.call($.tagMap,J))$.tag=$.tagMap[J]+W;else if(J==="!")$.tag="!"+W;else if(J==="!!")$.tag="tag:yaml.org,2002:"+W;else c($,'undeclared tag handle "'+J+'"');return!0}function fN($){var X,G;if(G=$.input.charCodeAt($.position),G!==38)return!1;if($.anchor!==null)c($,"duplication of an anchor property");G=$.input.charCodeAt(++$.position),X=$.position;while(G!==0&&!_1(G)&&!$2(G))G=$.input.charCodeAt(++$.position);if($.position===X)c($,"name of an anchor node must contain at least one character");return $.anchor=$.input.slice(X,$.position),!0}function gN($){var X,G,Y;if(Y=$.input.charCodeAt($.position),Y!==42)return!1;Y=$.input.charCodeAt(++$.position),X=$.position;while(Y!==0&&!_1(Y)&&!$2(Y))Y=$.input.charCodeAt(++$.position);if($.position===X)c($,"name of an alias node must contain at least one character");if(G=$.input.slice(X,$.position),!b6.call($.anchorMap,G))c($,'unidentified alias "'+G+'"');return $.result=$.anchorMap[G],g0($,!0,-1),!0}function G2($,X,G,Y,J){var W,H,U,M=1,F=!1,Q=!1,q,R,O,_,z;if($.listener!==null)$.listener("open",$);if($.tag=null,$.anchor=null,$.kind=null,$.result=null,W=H=U=f8===G||ZW===G,Y){if(g0($,!0,-1)){if(F=!0,$.lineIndent>X)M=1;else if($.lineIndent===X)M=0;else if($.lineIndent<X)M=-1}}if(M===1)while(yN($)||fN($))if(g0($,!0,-1)){if(F=!0,U=W,$.lineIndent>X)M=1;else if($.lineIndent===X)M=0;else if($.lineIndent<X)M=-1}else U=!1;if(U)U=F||J;if(M===1||f8===G){if(y8===G||OW===G)_=X;else _=X+1;if(z=$.position-$.lineStart,M===1)if(U&&(FW($,z)||hN($,z,_))||xN($,_))Q=!0;else{if(H&&bN($,_)||kN($,_)||vN($,_))Q=!0;else if(gN($)){if(Q=!0,$.tag!==null||$.anchor!==null)c($,"alias node should not have any properties")}else if(SN($,_,y8===G)){if(Q=!0,$.tag===null)$.tag="?"}if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if(M===0)Q=U&&FW($,z)}if($.tag!==null&&$.tag!=="!")if($.tag==="?"){if($.result!==null&&$.kind!=="scalar")c($,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+$.kind+'"');for(q=0,R=$.implicitTypes.length;q<R;q+=1)if(O=$.implicitTypes[q],O.resolve($.result)){if($.result=O.construct($.result),$.tag=O.tag,$.anchor!==null)$.anchorMap[$.anchor]=$.result;break}}else if(b6.call($.typeMap[$.kind||"fallback"],$.tag)){if(O=$.typeMap[$.kind||"fallback"][$.tag],$.result!==null&&O.kind!==$.kind)c($,"unacceptable node kind for !<"+$.tag+'> tag; it should be "'+O.kind+'", not "'+$.kind+'"');if(!O.resolve($.result))c($,"cannot resolve a node with !<"+$.tag+"> explicit tag");else if($.result=O.construct($.result),$.anchor!==null)$.anchorMap[$.anchor]=$.result}else c($,"unknown tag !<"+$.tag+">");if($.listener!==null)$.listener("close",$);return $.tag!==null||$.anchor!==null||Q}function mN($){var X=$.position,G,Y,J,W=!1,H;$.version=null,$.checkLineBreaks=$.legacy,$.tagMap={},$.anchorMap={};while((H=$.input.charCodeAt($.position))!==0){if(g0($,!0,-1),H=$.input.charCodeAt($.position),$.lineIndent>0||H!==37)break;W=!0,H=$.input.charCodeAt(++$.position),G=$.position;while(H!==0&&!_1(H))H=$.input.charCodeAt(++$.position);if(Y=$.input.slice(G,$.position),J=[],Y.length<1)c($,"directive name must not be less than one character in length");while(H!==0){while(_5(H))H=$.input.charCodeAt(++$.position);if(H===35){do H=$.input.charCodeAt(++$.position);while(H!==0&&!$6(H));break}if($6(H))break;G=$.position;while(H!==0&&!_1(H))H=$.input.charCodeAt(++$.position);J.push($.input.slice(G,$.position))}if(H!==0)q$($);if(b6.call(KW,Y))KW[Y]($,Y,J);else g8($,'unknown document directive "'+Y+'"')}if(g0($,!0,-1),$.lineIndent===0&&$.input.charCodeAt($.position)===45&&$.input.charCodeAt($.position+1)===45&&$.input.charCodeAt($.position+2)===45)$.position+=3,g0($,!0,-1);else if(W)c($,"directives end mark is expected");if(G2($,$.lineIndent-1,f8,!1,!0),g0($,!0,-1),$.checkLineBreaks&&PN.test($.input.slice(X,$.position)))g8($,"non-ASCII line breaks are interpreted as content");if($.documents.push($.result),$.position===$.lineStart&&m8($)){if($.input.charCodeAt($.position)===46)$.position+=3,g0($,!0,-1);return}if($.position<$.length-1)c($,"end of the stream or a document separator is expected");else return}function _W($,X){if($=String($),X=X||{},$.length!==0){if($.charCodeAt($.length-1)!==10&&$.charCodeAt($.length-1)!==13)$+=`
27
+ `;if($.charCodeAt(0)===65279)$=$.slice(1)}var G=new jN($,X),Y=$.indexOf("\x00");if(Y!==-1)G.position=Y,c(G,"null byte is not allowed in input");G.input+="\x00";while(G.input.charCodeAt(G.position)===32)G.lineIndent+=1,G.position+=1;while(G.position<G.length-1)mN(G);return G.documents}function zW($,X,G){if(X!==null&&typeof X==="object"&&typeof G>"u")G=X,X=null;var Y=_W($,G);if(typeof X!=="function")return Y;for(var J=0,W=Y.length;J<W;J+=1)X(Y[J])}function DW($,X){var G=_W($,X);if(G.length===0)return;else if(G.length===1)return G[0];throw new QW("expected a single document in the stream, but found more")}function pN($,X,G){if(typeof X==="object"&&X!==null&&typeof G>"u")G=X,X=null;return zW($,X,V6.extend({schema:qW},G))}function uN($,X){return DW($,V6.extend({schema:qW},X))}dN.loadAll=zW;dN.load=DW;dN.safeLoadAll=pN;dN.safeLoad=uN});var iW=l((EV,B$)=>{var O4=N5(),Z4=a5(),oN=F4(),nN=e5(),kW=Object.prototype.toString,vW=Object.prototype.hasOwnProperty,sN=9,q4=10,aN=13,tN=32,eN=33,$V=34,xW=35,XV=37,GV=38,YV=39,JV=42,bW=44,WV=45,hW=58,HV=61,UV=62,KV=63,MV=64,yW=91,fW=93,FV=96,gW=123,QV=124,mW=125,U1={};U1[0]="\\0";U1[7]="\\a";U1[8]="\\b";U1[9]="\\t";U1[10]="\\n";U1[11]="\\v";U1[12]="\\f";U1[13]="\\r";U1[27]="\\e";U1[34]="\\\"";U1[92]="\\\\";U1[133]="\\N";U1[160]="\\_";U1[8232]="\\L";U1[8233]="\\P";var qV=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function OV($,X){var G,Y,J,W,H,U,M;if(X===null)return{};G={},Y=Object.keys(X);for(J=0,W=Y.length;J<W;J+=1){if(H=Y[J],U=String(X[H]),H.slice(0,2)==="!!")H="tag:yaml.org,2002:"+H.slice(2);if(M=$.compiledTypeMap.fallback[H],M&&vW.call(M.styleAliases,U))U=M.styleAliases[U];G[H]=U}return G}function LW($){var X,G,Y;if(X=$.toString(16).toUpperCase(),$<=255)G="x",Y=2;else if($<=65535)G="u",Y=4;else if($<=4294967295)G="U",Y=8;else throw new Z4("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+G+O4.repeat("0",Y-X.length)+X}function ZV($){this.schema=$.schema||oN,this.indent=Math.max(1,$.indent||2),this.noArrayIndent=$.noArrayIndent||!1,this.skipInvalid=$.skipInvalid||!1,this.flowLevel=O4.isNothing($.flowLevel)?-1:$.flowLevel,this.styleMap=OV(this.schema,$.styles||null),this.sortKeys=$.sortKeys||!1,this.lineWidth=$.lineWidth||80,this.noRefs=$.noRefs||!1,this.noCompatMode=$.noCompatMode||!1,this.condenseFlow=$.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function CW($,X){var G=O4.repeat(" ",X),Y=0,J=-1,W="",H,U=$.length;while(Y<U){if(J=$.indexOf(`
28
28
  `,Y),J===-1)H=$.slice(Y),Y=U;else H=$.slice(Y,J+1),Y=J+1;if(H.length&&H!==`
29
29
  `)W+=G;W+=H}return W}function Z$($,X){return`
30
- `+O4.repeat(" ",$.indent*X)}function RV($,X){var G,Y,J;for(G=0,Y=$.implicitTypes.length;G<Y;G+=1)if(J=$.implicitTypes[G],J.resolve(X))return!0;return!1}function A$($){return $===tN||$===sN}function Y5($){return 32<=$&&$<=126||161<=$&&$<=55295&&$!==8232&&$!==8233||57344<=$&&$<=65533&&$!==65279||65536<=$&&$<=1114111}function AV($){return Y5($)&&!A$($)&&$!==65279&&$!==aN&&$!==q4}function TW($,X){return Y5($)&&$!==65279&&$!==bW&&$!==yW&&$!==fW&&$!==gW&&$!==mW&&$!==hW&&($!==xW||X&&AV(X))}function BV($){return Y5($)&&$!==65279&&!A$($)&&$!==WV&&$!==KV&&$!==hW&&$!==bW&&$!==yW&&$!==fW&&$!==gW&&$!==mW&&$!==xW&&$!==GV&&$!==JV&&$!==eN&&$!==QV&&$!==HV&&$!==UV&&$!==YV&&$!==$V&&$!==XV&&$!==MV&&$!==FV}function pW($){var X=/^\n* /;return X.test($)}var uW=1,dW=2,lW=3,cW=4,p8=5;function NV($,X,G,Y,J){var W,H,U,M=!1,F=!1,Q=Y!==-1,q=-1,R=BV($.charCodeAt(0))&&!A$($.charCodeAt($.length-1));if(X)for(W=0;W<$.length;W++){if(H=$.charCodeAt(W),!Y5(H))return p8;U=W>0?$.charCodeAt(W-1):null,R=R&&TW(H,U)}else{for(W=0;W<$.length;W++){if(H=$.charCodeAt(W),H===q4){if(M=!0,Q)F=F||W-q-1>Y&&$[q+1]!==" ",q=W}else if(!Y5(H))return p8;U=W>0?$.charCodeAt(W-1):null,R=R&&TW(H,U)}F=F||Q&&(W-q-1>Y&&$[q+1]!==" ")}if(!M&&!F)return R&&!J($)?uW:dW;if(G>9&&pW($))return p8;return F?cW:lW}function VV($,X,G,Y){$.dump=function(){if(X.length===0)return"''";if(!$.noCompatMode&&qV.indexOf(X)!==-1)return"'"+X+"'";var J=$.indent*Math.max(1,G),W=$.lineWidth===-1?-1:Math.max(Math.min($.lineWidth,40),$.lineWidth-J),H=Y||$.flowLevel>-1&&G>=$.flowLevel;function U(M){return RV($,M)}switch(NV(X,H,$.indent,W,U)){case uW:return X;case dW:return"'"+X.replace(/'/g,"''")+"'";case lW:return"|"+EW(X,$.indent)+IW(CW(X,J));case cW:return">"+EW(X,$.indent)+IW(CW(wV(X,W),J));case p8:return'"'+_V(X,W)+'"';default:throw new Z4("impossible error: invalid scalar style")}}()}function EW($,X){var G=pW($)?String(X):"",Y=$[$.length-1]===`
30
+ `+O4.repeat(" ",$.indent*X)}function RV($,X){var G,Y,J;for(G=0,Y=$.implicitTypes.length;G<Y;G+=1)if(J=$.implicitTypes[G],J.resolve(X))return!0;return!1}function A$($){return $===tN||$===sN}function Y2($){return 32<=$&&$<=126||161<=$&&$<=55295&&$!==8232&&$!==8233||57344<=$&&$<=65533&&$!==65279||65536<=$&&$<=1114111}function AV($){return Y2($)&&!A$($)&&$!==65279&&$!==aN&&$!==q4}function TW($,X){return Y2($)&&$!==65279&&$!==bW&&$!==yW&&$!==fW&&$!==gW&&$!==mW&&$!==hW&&($!==xW||X&&AV(X))}function BV($){return Y2($)&&$!==65279&&!A$($)&&$!==WV&&$!==KV&&$!==hW&&$!==bW&&$!==yW&&$!==fW&&$!==gW&&$!==mW&&$!==xW&&$!==GV&&$!==JV&&$!==eN&&$!==QV&&$!==HV&&$!==UV&&$!==YV&&$!==$V&&$!==XV&&$!==MV&&$!==FV}function pW($){var X=/^\n* /;return X.test($)}var uW=1,dW=2,lW=3,cW=4,p8=5;function NV($,X,G,Y,J){var W,H,U,M=!1,F=!1,Q=Y!==-1,q=-1,R=BV($.charCodeAt(0))&&!A$($.charCodeAt($.length-1));if(X)for(W=0;W<$.length;W++){if(H=$.charCodeAt(W),!Y2(H))return p8;U=W>0?$.charCodeAt(W-1):null,R=R&&TW(H,U)}else{for(W=0;W<$.length;W++){if(H=$.charCodeAt(W),H===q4){if(M=!0,Q)F=F||W-q-1>Y&&$[q+1]!==" ",q=W}else if(!Y2(H))return p8;U=W>0?$.charCodeAt(W-1):null,R=R&&TW(H,U)}F=F||Q&&(W-q-1>Y&&$[q+1]!==" ")}if(!M&&!F)return R&&!J($)?uW:dW;if(G>9&&pW($))return p8;return F?cW:lW}function VV($,X,G,Y){$.dump=function(){if(X.length===0)return"''";if(!$.noCompatMode&&qV.indexOf(X)!==-1)return"'"+X+"'";var J=$.indent*Math.max(1,G),W=$.lineWidth===-1?-1:Math.max(Math.min($.lineWidth,40),$.lineWidth-J),H=Y||$.flowLevel>-1&&G>=$.flowLevel;function U(M){return RV($,M)}switch(NV(X,H,$.indent,W,U)){case uW:return X;case dW:return"'"+X.replace(/'/g,"''")+"'";case lW:return"|"+EW(X,$.indent)+IW(CW(X,J));case cW:return">"+EW(X,$.indent)+IW(CW(wV(X,W),J));case p8:return'"'+_V(X,W)+'"';default:throw new Z4("impossible error: invalid scalar style")}}()}function EW($,X){var G=pW($)?String(X):"",Y=$[$.length-1]===`
31
31
  `,J=Y&&($[$.length-2]===`
32
32
  `||$===`
33
33
  `),W=J?"+":Y?"":"-";return G+W+`
@@ -38,41 +38,41 @@ var QA=Object.create;var{getPrototypeOf:qA,defineProperty:G$,getOwnPropertyNames
38
38
  `:"")+jW(M,X),J=W}return Y}function jW($,X){if($===""||$[0]===" ")return $;var G=/ [^ ]/g,Y,J=0,W,H=0,U=0,M="";while(Y=G.exec($)){if(U=Y.index,U-J>X)W=H>J?H:U,M+=`
39
39
  `+$.slice(J,W),J=W+1;H=U}if(M+=`
40
40
  `,$.length-J>X&&H>J)M+=$.slice(J,H)+`
41
- `+$.slice(H+1);else M+=$.slice(J);return M.slice(1)}function _V($){var X="",G,Y,J;for(var W=0;W<$.length;W++){if(G=$.charCodeAt(W),G>=55296&&G<=56319){if(Y=$.charCodeAt(W+1),Y>=56320&&Y<=57343){X+=LW((G-55296)*1024+Y-56320+65536),W++;continue}}J=U1[G],X+=!J&&Y5(G)?$[W]:J||LW(G)}return X}function zV($,X,G){var Y="",J=$.tag,W,H;for(W=0,H=G.length;W<H;W+=1)if(z6($,X,G[W],!1,!1)){if(W!==0)Y+=","+(!$.condenseFlow?" ":"");Y+=$.dump}$.tag=J,$.dump="["+Y+"]"}function DV($,X,G,Y){var J="",W=$.tag,H,U;for(H=0,U=G.length;H<U;H+=1)if(z6($,X+1,G[H],!0,!0)){if(!Y||H!==0)J+=Z$($,X);if($.dump&&q4===$.dump.charCodeAt(0))J+="-";else J+="- ";J+=$.dump}$.tag=W,$.dump=J||"[]"}function PV($,X,G){var Y="",J=$.tag,W=Object.keys(G),H,U,M,F,Q;for(H=0,U=W.length;H<U;H+=1){if(Q="",H!==0)Q+=", ";if($.condenseFlow)Q+='"';if(M=W[H],F=G[M],!z6($,X,M,!1,!1))continue;if($.dump.length>1024)Q+="? ";if(Q+=$.dump+($.condenseFlow?'"':"")+":"+($.condenseFlow?"":" "),!z6($,X,F,!1,!1))continue;Q+=$.dump,Y+=Q}$.tag=J,$.dump="{"+Y+"}"}function LV($,X,G,Y){var J="",W=$.tag,H=Object.keys(G),U,M,F,Q,q,R;if($.sortKeys===!0)H.sort();else if(typeof $.sortKeys==="function")H.sort($.sortKeys);else if($.sortKeys)throw new Z4("sortKeys must be a boolean or a function");for(U=0,M=H.length;U<M;U+=1){if(R="",!Y||U!==0)R+=Z$($,X);if(F=H[U],Q=G[F],!z6($,X+1,F,!0,!0,!0))continue;if(q=$.tag!==null&&$.tag!=="?"||$.dump&&$.dump.length>1024,q)if($.dump&&q4===$.dump.charCodeAt(0))R+="?";else R+="? ";if(R+=$.dump,q)R+=Z$($,X);if(!z6($,X+1,Q,!0,q))continue;if($.dump&&q4===$.dump.charCodeAt(0))R+=":";else R+=": ";R+=$.dump,J+=R}$.tag=W,$.dump=J||"{}"}function SW($,X,G){var Y,J,W,H,U,M;J=G?$.explicitTypes:$.implicitTypes;for(W=0,H=J.length;W<H;W+=1)if(U=J[W],(U.instanceOf||U.predicate)&&(!U.instanceOf||typeof X==="object"&&X instanceof U.instanceOf)&&(!U.predicate||U.predicate(X))){if($.tag=G?U.tag:"?",U.represent){if(M=$.styleMap[U.tag]||U.defaultStyle,kW.call(U.represent)==="[object Function]")Y=U.represent(X,M);else if(vW.call(U.represent,M))Y=U.represent[M](X,M);else throw new Z4("!<"+U.tag+'> tag resolver accepts not "'+M+'" style');$.dump=Y}return!0}return!1}function z6($,X,G,Y,J,W){if($.tag=null,$.dump=G,!SW($,G,!1))SW($,G,!0);var H=kW.call($.dump);if(Y)Y=$.flowLevel<0||$.flowLevel>X;var U=H==="[object Object]"||H==="[object Array]",M,F;if(U)M=$.duplicates.indexOf(G),F=M!==-1;if($.tag!==null&&$.tag!=="?"||F||$.indent!==2&&X>0)J=!1;if(F&&$.usedDuplicates[M])$.dump="*ref_"+M;else{if(U&&F&&!$.usedDuplicates[M])$.usedDuplicates[M]=!0;if(H==="[object Object]"){if(Y&&Object.keys($.dump).length!==0){if(LV($,X,$.dump,J),F)$.dump="&ref_"+M+$.dump}else if(PV($,X,$.dump),F)$.dump="&ref_"+M+" "+$.dump}else if(H==="[object Array]"){var Q=$.noArrayIndent&&X>0?X-1:X;if(Y&&$.dump.length!==0){if(DV($,Q,$.dump,J),F)$.dump="&ref_"+M+$.dump}else if(zV($,Q,$.dump),F)$.dump="&ref_"+M+" "+$.dump}else if(H==="[object String]"){if($.tag!=="?")VV($,$.dump,X,W)}else{if($.skipInvalid)return!1;throw new Z4("unacceptable kind of an object to dump "+H)}if($.tag!==null&&$.tag!=="?")$.dump="!<"+$.tag+"> "+$.dump}return!0}function CV($,X){var G=[],Y=[],J,W;R$($,G,Y);for(J=0,W=Y.length;J<W;J+=1)X.duplicates.push(G[Y[J]]);X.usedDuplicates=Array(W)}function R$($,X,G){var Y,J,W;if($!==null&&typeof $==="object")if(J=X.indexOf($),J!==-1){if(G.indexOf(J)===-1)G.push(J)}else if(X.push($),Array.isArray($))for(J=0,W=$.length;J<W;J+=1)R$($[J],X,G);else{Y=Object.keys($);for(J=0,W=Y.length;J<W;J+=1)R$($[Y[J]],X,G)}}function rW($,X){X=X||{};var G=new ZV(X);if(!G.noRefs)CV($,G);if(z6(G,0,$,!0,!0))return G.dump+`
42
- `;return""}function TV($,X){return rW($,O4.extend({schema:nN},X))}EV.dump=rW;EV.safeDump=TV});var nW=l((SV,x0)=>{var u8=PW(),oW=iW();function d8($){return function(){throw Error("Function "+$+" is deprecated and cannot be used.")}}SV.Type=l0();SV.Schema=V6();SV.FAILSAFE_SCHEMA=b8();SV.JSON_SCHEMA=H$();SV.CORE_SCHEMA=U$();SV.DEFAULT_SAFE_SCHEMA=e6();SV.DEFAULT_FULL_SCHEMA=F4();SV.load=u8.load;SV.loadAll=u8.loadAll;SV.safeLoad=u8.safeLoad;SV.safeLoadAll=u8.safeLoadAll;SV.dump=oW.dump;SV.safeDump=oW.safeDump;SV.YAMLException=a6();SV.MINIMAL_SCHEMA=b8();SV.SAFE_SCHEMA=e6();SV.DEFAULT_SCHEMA=F4();SV.scan=d8("scan");SV.parse=d8("parse");SV.compose=d8("compose");SV.addConstructor=d8("addConstructor")});var aW=l((Ak,sW)=>{var eV=nW();sW.exports=eV});var _$=l((V$,w$)=>{var l8=aW(),N$=V$=w$.exports;N$.yaml={parse:l8.safeLoad.bind(l8),stringify:l8.safeDump.bind(l8)};N$.json={parse:JSON.parse.bind(JSON),stringify:function($,X){let G=Object.assign({replacer:null,space:2},X);return JSON.stringify($,G.replacer,G.space)}};N$.javascript={parse:function parse(str,options,wrap){try{if(wrap!==!1)str=`(function() {
41
+ `+$.slice(H+1);else M+=$.slice(J);return M.slice(1)}function _V($){var X="",G,Y,J;for(var W=0;W<$.length;W++){if(G=$.charCodeAt(W),G>=55296&&G<=56319){if(Y=$.charCodeAt(W+1),Y>=56320&&Y<=57343){X+=LW((G-55296)*1024+Y-56320+65536),W++;continue}}J=U1[G],X+=!J&&Y2(G)?$[W]:J||LW(G)}return X}function zV($,X,G){var Y="",J=$.tag,W,H;for(W=0,H=G.length;W<H;W+=1)if(z5($,X,G[W],!1,!1)){if(W!==0)Y+=","+(!$.condenseFlow?" ":"");Y+=$.dump}$.tag=J,$.dump="["+Y+"]"}function DV($,X,G,Y){var J="",W=$.tag,H,U;for(H=0,U=G.length;H<U;H+=1)if(z5($,X+1,G[H],!0,!0)){if(!Y||H!==0)J+=Z$($,X);if($.dump&&q4===$.dump.charCodeAt(0))J+="-";else J+="- ";J+=$.dump}$.tag=W,$.dump=J||"[]"}function PV($,X,G){var Y="",J=$.tag,W=Object.keys(G),H,U,M,F,Q;for(H=0,U=W.length;H<U;H+=1){if(Q="",H!==0)Q+=", ";if($.condenseFlow)Q+='"';if(M=W[H],F=G[M],!z5($,X,M,!1,!1))continue;if($.dump.length>1024)Q+="? ";if(Q+=$.dump+($.condenseFlow?'"':"")+":"+($.condenseFlow?"":" "),!z5($,X,F,!1,!1))continue;Q+=$.dump,Y+=Q}$.tag=J,$.dump="{"+Y+"}"}function LV($,X,G,Y){var J="",W=$.tag,H=Object.keys(G),U,M,F,Q,q,R;if($.sortKeys===!0)H.sort();else if(typeof $.sortKeys==="function")H.sort($.sortKeys);else if($.sortKeys)throw new Z4("sortKeys must be a boolean or a function");for(U=0,M=H.length;U<M;U+=1){if(R="",!Y||U!==0)R+=Z$($,X);if(F=H[U],Q=G[F],!z5($,X+1,F,!0,!0,!0))continue;if(q=$.tag!==null&&$.tag!=="?"||$.dump&&$.dump.length>1024,q)if($.dump&&q4===$.dump.charCodeAt(0))R+="?";else R+="? ";if(R+=$.dump,q)R+=Z$($,X);if(!z5($,X+1,Q,!0,q))continue;if($.dump&&q4===$.dump.charCodeAt(0))R+=":";else R+=": ";R+=$.dump,J+=R}$.tag=W,$.dump=J||"{}"}function SW($,X,G){var Y,J,W,H,U,M;J=G?$.explicitTypes:$.implicitTypes;for(W=0,H=J.length;W<H;W+=1)if(U=J[W],(U.instanceOf||U.predicate)&&(!U.instanceOf||typeof X==="object"&&X instanceof U.instanceOf)&&(!U.predicate||U.predicate(X))){if($.tag=G?U.tag:"?",U.represent){if(M=$.styleMap[U.tag]||U.defaultStyle,kW.call(U.represent)==="[object Function]")Y=U.represent(X,M);else if(vW.call(U.represent,M))Y=U.represent[M](X,M);else throw new Z4("!<"+U.tag+'> tag resolver accepts not "'+M+'" style');$.dump=Y}return!0}return!1}function z5($,X,G,Y,J,W){if($.tag=null,$.dump=G,!SW($,G,!1))SW($,G,!0);var H=kW.call($.dump);if(Y)Y=$.flowLevel<0||$.flowLevel>X;var U=H==="[object Object]"||H==="[object Array]",M,F;if(U)M=$.duplicates.indexOf(G),F=M!==-1;if($.tag!==null&&$.tag!=="?"||F||$.indent!==2&&X>0)J=!1;if(F&&$.usedDuplicates[M])$.dump="*ref_"+M;else{if(U&&F&&!$.usedDuplicates[M])$.usedDuplicates[M]=!0;if(H==="[object Object]"){if(Y&&Object.keys($.dump).length!==0){if(LV($,X,$.dump,J),F)$.dump="&ref_"+M+$.dump}else if(PV($,X,$.dump),F)$.dump="&ref_"+M+" "+$.dump}else if(H==="[object Array]"){var Q=$.noArrayIndent&&X>0?X-1:X;if(Y&&$.dump.length!==0){if(DV($,Q,$.dump,J),F)$.dump="&ref_"+M+$.dump}else if(zV($,Q,$.dump),F)$.dump="&ref_"+M+" "+$.dump}else if(H==="[object String]"){if($.tag!=="?")VV($,$.dump,X,W)}else{if($.skipInvalid)return!1;throw new Z4("unacceptable kind of an object to dump "+H)}if($.tag!==null&&$.tag!=="?")$.dump="!<"+$.tag+"> "+$.dump}return!0}function CV($,X){var G=[],Y=[],J,W;R$($,G,Y);for(J=0,W=Y.length;J<W;J+=1)X.duplicates.push(G[Y[J]]);X.usedDuplicates=Array(W)}function R$($,X,G){var Y,J,W;if($!==null&&typeof $==="object")if(J=X.indexOf($),J!==-1){if(G.indexOf(J)===-1)G.push(J)}else if(X.push($),Array.isArray($))for(J=0,W=$.length;J<W;J+=1)R$($[J],X,G);else{Y=Object.keys($);for(J=0,W=Y.length;J<W;J+=1)R$($[Y[J]],X,G)}}function rW($,X){X=X||{};var G=new ZV(X);if(!G.noRefs)CV($,G);if(z5(G,0,$,!0,!0))return G.dump+`
42
+ `;return""}function TV($,X){return rW($,O4.extend({schema:nN},X))}EV.dump=rW;EV.safeDump=TV});var nW=l((SV,x0)=>{var u8=PW(),oW=iW();function d8($){return function(){throw Error("Function "+$+" is deprecated and cannot be used.")}}SV.Type=l0();SV.Schema=V5();SV.FAILSAFE_SCHEMA=b8();SV.JSON_SCHEMA=H$();SV.CORE_SCHEMA=U$();SV.DEFAULT_SAFE_SCHEMA=e5();SV.DEFAULT_FULL_SCHEMA=F4();SV.load=u8.load;SV.loadAll=u8.loadAll;SV.safeLoad=u8.safeLoad;SV.safeLoadAll=u8.safeLoadAll;SV.dump=oW.dump;SV.safeDump=oW.safeDump;SV.YAMLException=a5();SV.MINIMAL_SCHEMA=b8();SV.SAFE_SCHEMA=e5();SV.DEFAULT_SCHEMA=F4();SV.scan=d8("scan");SV.parse=d8("parse");SV.compose=d8("compose");SV.addConstructor=d8("addConstructor")});var aW=l((Ak,sW)=>{var eV=nW();sW.exports=eV});var _$=l((V$,w$)=>{var l8=aW(),N$=V$=w$.exports;N$.yaml={parse:l8.safeLoad.bind(l8),stringify:l8.safeDump.bind(l8)};N$.json={parse:JSON.parse.bind(JSON),stringify:function($,X){let G=Object.assign({replacer:null,space:2},X);return JSON.stringify($,G.replacer,G.space)}};N$.javascript={parse:function parse(str,options,wrap){try{if(wrap!==!1)str=`(function() {
43
43
  return `+str.trim()+`;
44
44
  }());`;return eval(str)||{}}catch($){if(wrap!==!1&&/(unexpected|identifier)/i.test($.message))return parse(str,options,!1);throw SyntaxError($)}},stringify:function(){throw Error("stringifying JavaScript is not supported")}}});var eW=l((Bk,tW)=>{/*!
45
45
  * strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
46
46
  *
47
47
  * Copyright (c) 2015, 2017, Jon Schlinkert.
48
48
  * Released under the MIT License.
49
- */tW.exports=function($){if(typeof $==="string"&&$.charAt(0)==="\uFEFF")return $.slice(1);return $}});var c8=l(($w)=>{var $H=eW(),XH=K4();$w.define=function($,X,G){Reflect.defineProperty($,X,{enumerable:!1,configurable:!0,writable:!0,value:G})};$w.isBuffer=function($){return XH($)==="buffer"};$w.isObject=function($){return XH($)==="object"};$w.toBuffer=function($){return typeof $==="string"?Buffer.from($):$};$w.toString=function($){if($w.isBuffer($))return $H(String($));if(typeof $!=="string")throw TypeError("expected input to be a string or buffer");return $H($)};$w.arrayify=function($){return $?Array.isArray($)?$:[$]:[]};$w.startsWith=function($,X,G){if(typeof G!=="number")G=X.length;return $.slice(0,G)===X}});var R4=l((Vk,YH)=>{var Uw=_$(),Kw=c8();YH.exports=function($){let X=Object.assign({},$);if(X.delimiters=Kw.arrayify(X.delims||X.delimiters||"---"),X.delimiters.length===1)X.delimiters.push(X.delimiters[0]);return X.language=(X.language||X.lang||"yaml").toLowerCase(),X.engines=Object.assign({},Uw,X.parsers,X.engines),X}});var z$=l((wk,JH)=>{JH.exports=function($,X){let G=X.engines[$]||X.engines[Mw($)];if(typeof G>"u")throw Error('gray-matter engine "'+$+'" is not registered');if(typeof G==="function")G={parse:G};return G};function Mw($){switch($.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return $}}});var D$=l((_k,WH)=>{var Fw=K4(),Qw=z$(),qw=R4();WH.exports=function($,X,G){if(X==null&&G==null)switch(Fw($)){case"object":X=$.data,G={};break;case"string":return $;default:throw TypeError("expected file to be a string or object")}let Y=$.content,J=qw(G);if(X==null){if(!J.data)return $;X=J.data}let W=$.language||J.language,H=Qw(W,J);if(typeof H.stringify!=="function")throw TypeError('expected "'+W+'.stringify" to be a function');X=Object.assign({},$.data,X);let U=J.delimiters[0],M=J.delimiters[1],F=H.stringify(X,G).trim(),Q="";if(F!=="{}")Q=J5(U)+J5(F)+J5(M);if(typeof $.excerpt==="string"&&$.excerpt!==""){if(Y.indexOf($.excerpt.trim())===-1)Q+=J5($.excerpt)+J5(M)}return Q+J5(Y)};function J5($){return $.slice(-1)!==`
49
+ */tW.exports=function($){if(typeof $==="string"&&$.charAt(0)==="\uFEFF")return $.slice(1);return $}});var c8=l(($w)=>{var $H=eW(),XH=K4();$w.define=function($,X,G){Reflect.defineProperty($,X,{enumerable:!1,configurable:!0,writable:!0,value:G})};$w.isBuffer=function($){return XH($)==="buffer"};$w.isObject=function($){return XH($)==="object"};$w.toBuffer=function($){return typeof $==="string"?Buffer.from($):$};$w.toString=function($){if($w.isBuffer($))return $H(String($));if(typeof $!=="string")throw TypeError("expected input to be a string or buffer");return $H($)};$w.arrayify=function($){return $?Array.isArray($)?$:[$]:[]};$w.startsWith=function($,X,G){if(typeof G!=="number")G=X.length;return $.slice(0,G)===X}});var R4=l((Vk,YH)=>{var Uw=_$(),Kw=c8();YH.exports=function($){let X=Object.assign({},$);if(X.delimiters=Kw.arrayify(X.delims||X.delimiters||"---"),X.delimiters.length===1)X.delimiters.push(X.delimiters[0]);return X.language=(X.language||X.lang||"yaml").toLowerCase(),X.engines=Object.assign({},Uw,X.parsers,X.engines),X}});var z$=l((wk,JH)=>{JH.exports=function($,X){let G=X.engines[$]||X.engines[Mw($)];if(typeof G>"u")throw Error('gray-matter engine "'+$+'" is not registered');if(typeof G==="function")G={parse:G};return G};function Mw($){switch($.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return $}}});var D$=l((_k,WH)=>{var Fw=K4(),Qw=z$(),qw=R4();WH.exports=function($,X,G){if(X==null&&G==null)switch(Fw($)){case"object":X=$.data,G={};break;case"string":return $;default:throw TypeError("expected file to be a string or object")}let Y=$.content,J=qw(G);if(X==null){if(!J.data)return $;X=J.data}let W=$.language||J.language,H=Qw(W,J);if(typeof H.stringify!=="function")throw TypeError('expected "'+W+'.stringify" to be a function');X=Object.assign({},$.data,X);let U=J.delimiters[0],M=J.delimiters[1],F=H.stringify(X,G).trim(),Q="";if(F!=="{}")Q=J2(U)+J2(F)+J2(M);if(typeof $.excerpt==="string"&&$.excerpt!==""){if(Y.indexOf($.excerpt.trim())===-1)Q+=J2($.excerpt)+J2(M)}return Q+J2(Y)};function J2($){return $.slice(-1)!==`
50
50
  `?$+`
51
- `:$}});var UH=l((zk,HH)=>{var Ow=R4();HH.exports=function($,X){let G=Ow(X);if($.data==null)$.data={};if(typeof G.excerpt==="function")return G.excerpt($,G);let Y=$.data.excerpt_separator||G.excerpt_separator;if(Y==null&&(G.excerpt===!1||G.excerpt==null))return $;let J=typeof G.excerpt==="string"?G.excerpt:Y||G.delimiters[0],W=$.content.indexOf(J);if(W!==-1)$.excerpt=$.content.slice(0,W);return $}});var FH=l((Dk,MH)=>{var KH=K4(),Zw=D$(),W5=c8();MH.exports=function($){if(KH($)!=="object")$={content:$};if(KH($.data)!=="object")$.data={};if($.contents&&$.content==null)$.content=$.contents;return W5.define($,"orig",W5.toBuffer($.content)),W5.define($,"language",$.language||""),W5.define($,"matter",$.matter||""),W5.define($,"stringify",function(X,G){if(G&&G.language)$.language=G.language;return Zw($,X,G)}),$.content=W5.toString($.content),$.isEmpty=!1,$.excerpt="",$}});var qH=l((Pk,QH)=>{var Rw=z$(),Aw=R4();QH.exports=function($,X,G){let Y=Aw(G),J=Rw($,Y);if(typeof J.parse!=="function")throw TypeError('expected "'+$+'.parse" to be a function');return J.parse(X,Y)}});var L$=l((Lk,RH)=>{var Bw=N2("fs"),Nw=KJ(),P$=R4(),Vw=D$(),OH=UH(),ww=_$(),_w=FH(),zw=qH(),ZH=c8();function R1($,X){if($==="")return{data:{},content:$,excerpt:"",orig:$};let G=_w($),Y=R1.cache[G.content];if(!X){if(Y)return G=Object.assign({},Y),G.orig=Y.orig,G;R1.cache[G.content]=G}return Dw(G,X)}function Dw($,X){let G=P$(X),Y=G.delimiters[0],J=`
51
+ `:$}});var UH=l((zk,HH)=>{var Ow=R4();HH.exports=function($,X){let G=Ow(X);if($.data==null)$.data={};if(typeof G.excerpt==="function")return G.excerpt($,G);let Y=$.data.excerpt_separator||G.excerpt_separator;if(Y==null&&(G.excerpt===!1||G.excerpt==null))return $;let J=typeof G.excerpt==="string"?G.excerpt:Y||G.delimiters[0],W=$.content.indexOf(J);if(W!==-1)$.excerpt=$.content.slice(0,W);return $}});var FH=l((Dk,MH)=>{var KH=K4(),Zw=D$(),W2=c8();MH.exports=function($){if(KH($)!=="object")$={content:$};if(KH($.data)!=="object")$.data={};if($.contents&&$.content==null)$.content=$.contents;return W2.define($,"orig",W2.toBuffer($.content)),W2.define($,"language",$.language||""),W2.define($,"matter",$.matter||""),W2.define($,"stringify",function(X,G){if(G&&G.language)$.language=G.language;return Zw($,X,G)}),$.content=W2.toString($.content),$.isEmpty=!1,$.excerpt="",$}});var qH=l((Pk,QH)=>{var Rw=z$(),Aw=R4();QH.exports=function($,X,G){let Y=Aw(G),J=Rw($,Y);if(typeof J.parse!=="function")throw TypeError('expected "'+$+'.parse" to be a function');return J.parse(X,Y)}});var L$=l((Lk,RH)=>{var Bw=N6("fs"),Nw=KJ(),P$=R4(),Vw=D$(),OH=UH(),ww=_$(),_w=FH(),zw=qH(),ZH=c8();function R1($,X){if($==="")return{data:{},content:$,excerpt:"",orig:$};let G=_w($),Y=R1.cache[G.content];if(!X){if(Y)return G=Object.assign({},Y),G.orig=Y.orig,G;R1.cache[G.content]=G}return Dw(G,X)}function Dw($,X){let G=P$(X),Y=G.delimiters[0],J=`
52
52
  `+G.delimiters[1],W=$.content;if(G.language)$.language=G.language;let H=Y.length;if(!ZH.startsWith(W,Y,H))return OH($,G),$;if(W.charAt(H)===Y.slice(-1))return $;W=W.slice(H);let U=W.length,M=R1.language(W,G);if(M.name)$.language=M.name,W=W.slice(M.raw.length);let F=W.indexOf(J);if(F===-1)F=U;if($.matter=W.slice(0,F),$.matter.replace(/^\s*#[^\n]+/gm,"").trim()==="")$.isEmpty=!0,$.empty=$.content,$.data={};else $.data=zw($.language,$.matter,G);if(F===U)$.content="";else{if($.content=W.slice(F+J.length),$.content[0]==="\r")$.content=$.content.slice(1);if($.content[0]===`
53
- `)$.content=$.content.slice(1)}if(OH($,G),G.sections===!0||typeof G.section==="function")Nw($,G.section);return $}R1.engines=ww;R1.stringify=function($,X,G){if(typeof $==="string")$=R1($,G);return Vw($,X,G)};R1.read=function($,X){let G=Bw.readFileSync($,"utf8"),Y=R1(G,X);return Y.path=$,Y};R1.test=function($,X){return ZH.startsWith($,P$(X).delimiters[0])};R1.language=function($,X){let Y=P$(X).delimiters[0];if(R1.test($))$=$.slice(Y.length);let J=$.slice(0,$.search(/\r?\n/));return{raw:J,name:J?J.trim():""}};R1.cache={};R1.clearCache=function(){R1.cache={}};RH.exports=R1});var AH=()=>{};function N($,X){Pw(Boolean($),!1,!0,"ok","Expected value to be truthy",X)}function Pw($,X,G,Y,J,W){if(!$)throw W instanceof Error?W:new BH(W||J,X,G,Y,!W)}var BH;var R0=B(()=>{AH();BH=class BH extends Error{name="Assertion";code="ERR_ASSERTION";constructor($,X,G,Y,J){super($);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.actual=X,this.expected=G,this.generated=J,this.operator=Y}}});function D6($,X){let G=X||Lw,Y=typeof G.includeImageAlt==="boolean"?G.includeImageAlt:!0,J=typeof G.includeHtml==="boolean"?G.includeHtml:!0;return VH($,Y,J)}function VH($,X,G){if(Cw($)){if("value"in $)return $.type==="html"&&!G?"":$.value;if(X&&"alt"in $&&$.alt)return $.alt;if("children"in $)return NH($.children,X,G)}if(Array.isArray($))return NH($,X,G);return""}function NH($,X,G){let Y=[],J=-1;while(++J<$.length)Y[J]=VH($[J],X,G);return Y.join("")}function Cw($){return Boolean($&&typeof $==="object")}var Lw;var wH=B(()=>{Lw={}});var r8=B(()=>{wH()});var C$;var _H=B(()=>{C$={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\uD835\uDD04",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\uD835\uDD38",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\uD835\uDC9C",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\uD835\uDC9E",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\uD835\uDD3B",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\uD835\uDC9F",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\uD835\uDD08",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\uD835\uDD3C",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\uD835\uDD09",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\uD835\uDD3D",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\uD835\uDD0A",Gg:"\u22D9",Gopf:"\uD835\uDD3E",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\uD835\uDCA2",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\uD835\uDD40",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\uD835\uDD0F",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\uD835\uDD43",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\uD835\uDD10",MinusPlus:"\u2213",Mopf:"\uD835\uDD44",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
54
- `,Nfr:"\uD835\uDD11",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\uD835\uDCA9",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\uD835\uDD12",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\uD835\uDCAA",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\uD835\uDD13",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\uD835\uDCAB",Psi:"\u03A8",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"\u211A",Qscr:"\uD835\uDCAC",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\uD835\uDD16",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\uD835\uDD4A",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\uD835\uDCAE",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:"\t",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\uD835\uDD17",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\uD835\uDD4B",TripleDot:"\u20DB",Tscr:"\uD835\uDCAF",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\uD835\uDD18",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\uD835\uDD4C",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\uD835\uDCB0",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"\u039E",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\uD835\uDCB5",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\uD835\uDD1E",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\uD835\uDD52",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\uD835\uDCB6",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\uD835\uDD1F",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\uD835\uDD53",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\uD835\uDCB7",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\uD835\uDD20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\uD835\uDD54",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\uD835\uDCB8",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\uD835\uDD21",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\uD835\uDD55",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\uD835\uDCB9",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\uD835\uDD22",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\uD835\uDD56",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\uD835\uDD23",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\uD835\uDD57",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\uD835\uDCBB",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\uD835\uDD24",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\uD835\uDD58",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\uD835\uDD25",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\uD835\uDD59",horbar:"\u2015",hscr:"\uD835\uDCBD",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\uD835\uDD26",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\uD835\uDD5A",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\uD835\uDCBE",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\uD835\uDD27",jmath:"\u0237",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\uD835\uDD28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\uD835\uDD29",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\uD835\uDD5D",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\uD835\uDCC1",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\uD835\uDD2A",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\uD835\uDD5E",mp:"\u2213",mscr:"\uD835\uDCC2",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\uD835\uDD2B",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\uD835\uDD5F",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\uD835\uDCC3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\uD835\uDD2C",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\uD835\uDD60",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\uD835\uDD2D",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\uD835\uDD61",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\uD835\uDCC5",psi:"\u03C8",puncsp:"\u2008",qfr:"\uD835\uDD2E",qint:"\u2A0C",qopf:"\uD835\uDD62",qprime:"\u2057",qscr:"\uD835\uDCC6",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\uD835\uDD2F",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\uD835\uDD63",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\uD835\uDCC7",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\uD835\uDD30",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\uD835\uDD64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\uD835\uDCC8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\uD835\uDD31",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\uD835\uDD65",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\uD835\uDCC9",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\uD835\uDD32",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\uD835\uDD66",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\uD835\uDCCA",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\uD835\uDD67",vprop:"\u221D",vrtri:"\u22B3",vscr:"\uD835\uDCCB",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\uD835\uDCCC",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\uD835\uDD35",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\uD835\uDD69",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\uD835\uDCCD",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\uD835\uDD36",yicy:"\u0457",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\uD835\uDD37",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"\u200D",zwnj:"\u200C"}});function H5($){return Tw.call(C$,$)?C$[$]:!1}var Tw;var i8=B(()=>{_H();Tw={}.hasOwnProperty});var A;var zH=B(()=>{A={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533}});var I;var DH=B(()=>{I={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}});var Z;var PH=B(()=>{Z={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"}});var j1;var LH=B(()=>{j1={ht:"\t",lf:`
55
- `,cr:"\r",space:" ",exclamationMark:"!",quotationMark:'"',numberSign:"#",dollarSign:"$",percentSign:"%",ampersand:"&",apostrophe:"'",leftParenthesis:"(",rightParenthesis:")",asterisk:"*",plusSign:"+",comma:",",dash:"-",dot:".",slash:"/",digit0:"0",digit1:"1",digit2:"2",digit3:"3",digit4:"4",digit5:"5",digit6:"6",digit7:"7",digit8:"8",digit9:"9",colon:":",semicolon:";",lessThan:"<",equalsTo:"=",greaterThan:">",questionMark:"?",atSign:"@",uppercaseA:"A",uppercaseB:"B",uppercaseC:"C",uppercaseD:"D",uppercaseE:"E",uppercaseF:"F",uppercaseG:"G",uppercaseH:"H",uppercaseI:"I",uppercaseJ:"J",uppercaseK:"K",uppercaseL:"L",uppercaseM:"M",uppercaseN:"N",uppercaseO:"O",uppercaseP:"P",uppercaseQ:"Q",uppercaseR:"R",uppercaseS:"S",uppercaseT:"T",uppercaseU:"U",uppercaseV:"V",uppercaseW:"W",uppercaseX:"X",uppercaseY:"Y",uppercaseZ:"Z",leftSquareBracket:"[",backslash:"\\",rightSquareBracket:"]",caret:"^",underscore:"_",graveAccent:"`",lowercaseA:"a",lowercaseB:"b",lowercaseC:"c",lowercaseD:"d",lowercaseE:"e",lowercaseF:"f",lowercaseG:"g",lowercaseH:"h",lowercaseI:"i",lowercaseJ:"j",lowercaseK:"k",lowercaseL:"l",lowercaseM:"m",lowercaseN:"n",lowercaseO:"o",lowercaseP:"p",lowercaseQ:"q",lowercaseR:"r",lowercaseS:"s",lowercaseT:"t",lowercaseU:"u",lowercaseV:"v",lowercaseW:"w",lowercaseX:"x",lowercaseY:"y",lowercaseZ:"z",leftCurlyBrace:"{",verticalBar:"|",rightCurlyBrace:"}",tilde:"~",replacementCharacter:"\uFFFD"}});var e=B(()=>{zH();DH();PH();LH()});function t0($,X,G,Y){let J=$.length,W=0,H;if(X<0)X=-X>J?0:J+X;else X=X>J?J:X;if(G=G>0?G:0,Y.length<I.v8MaxSafeChunkSize)H=Array.from(Y),H.unshift(X,G),$.splice(...H);else{if(G)$.splice(X,G);while(W<Y.length)H=Y.slice(W,W+I.v8MaxSafeChunkSize),H.unshift(X,0),$.splice(...H),W+=I.v8MaxSafeChunkSize,X+=I.v8MaxSafeChunkSize}}function A1($,X){if($.length>0)return t0($,$.length,0,X),$;return X}var h2=B(()=>{e()});function TH($){let X={},G=-1;while(++G<$.length)Ew(X,$[G]);return X}function Ew($,X){let G;for(G in X){let J=(CH.call($,G)?$[G]:void 0)||($[G]={}),W=X[G],H;if(W)for(H in W){if(!CH.call(J,H))J[H]=[];let U=W[H];Iw(J[H],Array.isArray(U)?U:U?[U]:[])}}}function Iw($,X){let G=-1,Y=[];while(++G<X.length)(X[G].add==="after"?$:Y).push(X[G]);t0($,0,0,Y)}var CH;var EH=B(()=>{h2();CH={}.hasOwnProperty});function o8($,X){let G=Number.parseInt($,X);if(G<A.ht||G===A.vt||G>A.cr&&G<A.space||G>A.tilde&&G<160||G>55295&&G<57344||G>64975&&G<65008||(G&65535)===65535||(G&65535)===65534||G>1114111)return j1.replacementCharacter;return String.fromCodePoint(G)}var T$=B(()=>{e()});function w2($){return $.replace(/[\t\n\r ]+/g,j1.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}var n8=B(()=>{e()});function A4($){return $!==null&&($<A.space||$===A.del)}function x($){return $!==null&&$<A.horizontalTab}function y0($){return $!==null&&($<A.nul||$===A.space)}function s($){return $===A.horizontalTab||$===A.virtualSpace||$===A.space}function y2($){return X;function X(G){return G!==null&&G>-1&&$.test(String.fromCharCode(G))}}var S1,B1,IH,B4,jH,SH,kH,vH;var N0=B(()=>{e();S1=y2(/[A-Za-z]/),B1=y2(/[\dA-Za-z]/),IH=y2(/[#-'*+\--9=?A-Z^-~]/);B4=y2(/\d/),jH=y2(/[\dA-Fa-f]/),SH=y2(/[!-/:-@[-`{-~]/);kH=y2(/\p{P}|\p{S}/u),vH=y2(/\s/)});function $0($,X,G,Y){let J=Y?Y-1:Number.POSITIVE_INFINITY,W=0;return H;function H(M){if(s(M))return $.enter(G),U(M);return X(M)}function U(M){if(s(M)&&W++<J)return $.consume(M),U;return $.exit(G),X(M)}}var r0=B(()=>{N0()});function jw($){let X=$.attempt(this.parser.constructs.contentInitial,Y,J),G;return X;function Y(U){if(N(U===A.eof||x(U),"expected eol or eof"),U===A.eof){$.consume(U);return}return $.enter(Z.lineEnding),$.consume(U),$.exit(Z.lineEnding),$0($,X,Z.linePrefix)}function J(U){return N(U!==A.eof&&!x(U),"expected anything other than a line ending or EOF"),$.enter(Z.paragraph),W(U)}function W(U){let M=$.enter(Z.chunkText,{contentType:I.contentTypeText,previous:G});if(G)G.next=M;return G=M,H(U)}function H(U){if(U===A.eof){$.exit(Z.chunkText),$.exit(Z.paragraph),$.consume(U);return}if(x(U))return $.consume(U),$.exit(Z.chunkText),W;return $.consume(U),H}}var xH;var bH=B(()=>{R0();r0();N0();e();xH={tokenize:jw}});function Sw($){let X=this,G=[],Y=0,J,W,H;return U;function U(y){if(Y<G.length){let G0=G[Y];return X.containerState=G0[1],N(G0[0].continuation,"expected `continuation` to be defined on container construct"),$.attempt(G0[0].continuation,M,F)(y)}return F(y)}function M(y){if(N(X.containerState,"expected `containerState` to be defined after continuation"),Y++,X.containerState._closeFlow){if(X.containerState._closeFlow=void 0,J)b();let G0=X.events.length,B0=G0,T;while(B0--)if(X.events[B0][0]==="exit"&&X.events[B0][1].type===Z.chunkFlow){T=X.events[B0][1].end;break}N(T,"could not find previous flow chunk"),P(Y);let Z0=G0;while(Z0<X.events.length)X.events[Z0][1].end={...T},Z0++;return t0(X.events,B0+1,0,X.events.slice(G0)),X.events.length=Z0,F(y)}return U(y)}function F(y){if(Y===G.length){if(!J)return R(y);if(J.currentConstruct&&J.currentConstruct.concrete)return _(y);X.interrupt=Boolean(J.currentConstruct&&!J._gfmTableDynamicInterruptHack)}return X.containerState={},$.check(hH,Q,q)(y)}function Q(y){if(J)b();return P(Y),R(y)}function q(y){return X.parser.lazy[X.now().line]=Y!==G.length,H=X.now().offset,_(y)}function R(y){return X.containerState={},$.attempt(hH,O,_)(y)}function O(y){return N(X.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),N(X.containerState,"expected `containerState` to be defined on tokenizer"),Y++,G.push([X.currentConstruct,X.containerState]),R(y)}function _(y){if(y===A.eof){if(J)b();P(0),$.consume(y);return}return J=J||X.parser.flow(X.now()),$.enter(Z.chunkFlow,{_tokenizer:J,contentType:I.contentTypeFlow,previous:W}),z(y)}function z(y){if(y===A.eof){D($.exit(Z.chunkFlow),!0),P(0),$.consume(y);return}if(x(y))return $.consume(y),D($.exit(Z.chunkFlow)),Y=0,X.interrupt=void 0,U;return $.consume(y),z}function D(y,G0){N(J,"expected `childFlow` to be defined when continuing");let B0=X.sliceStream(y);if(G0)B0.push(null);if(y.previous=W,W)W.next=y;if(W=y,J.defineSkip(y.start),J.write(B0),X.parser.lazy[y.start.line]){let T=J.events.length;while(T--)if(J.events[T][1].start.offset<H&&(!J.events[T][1].end||J.events[T][1].end.offset>H))return;let Z0=X.events.length,I0=Z0,q0,w0;while(I0--)if(X.events[I0][0]==="exit"&&X.events[I0][1].type===Z.chunkFlow){if(q0){w0=X.events[I0][1].end;break}q0=!0}N(w0,"could not find previous flow chunk"),P(Y),T=Z0;while(T<X.events.length)X.events[T][1].end={...w0},T++;t0(X.events,I0+1,0,X.events.slice(Z0)),X.events.length=T}}function P(y){let G0=G.length;while(G0-- >y){let B0=G[G0];X.containerState=B0[1],N(B0[0].exit,"expected `exit` to be defined on container construct"),B0[0].exit.call(X,$)}G.length=y}function b(){N(X.containerState,"expected `containerState` to be defined when closing flow"),N(J,"expected `childFlow` to be defined when closing it"),J.write([A.eof]),W=void 0,J=void 0,X.containerState._closeFlow=void 0}}function kw($,X,G){return N(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),$0($,$.attempt(this.parser.constructs.document,X,G),Z.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:I.tabSize)}var yH,hH;var fH=B(()=>{R0();r0();N0();h2();e();yH={tokenize:Sw},hH={tokenize:kw}});function U5($){if($===A.eof||y0($)||vH($))return I.characterGroupWhitespace;if(kH($))return I.characterGroupPunctuation}var E$=B(()=>{N0();e()});function K5($,X,G){let Y=[],J=-1;while(++J<$.length){let W=$[J].resolveAll;if(W&&!Y.includes(W))X=W(X,G),Y.push(W)}return X}function vw($,X){let G=-1,Y,J,W,H,U,M,F,Q;while(++G<$.length)if($[G][0]==="enter"&&$[G][1].type==="attentionSequence"&&$[G][1]._close){Y=G;while(Y--)if($[Y][0]==="exit"&&$[Y][1].type==="attentionSequence"&&$[Y][1]._open&&X.sliceSerialize($[Y][1]).charCodeAt(0)===X.sliceSerialize($[G][1]).charCodeAt(0)){if(($[Y][1]._close||$[G][1]._open)&&($[G][1].end.offset-$[G][1].start.offset)%3&&!(($[Y][1].end.offset-$[Y][1].start.offset+$[G][1].end.offset-$[G][1].start.offset)%3))continue;M=$[Y][1].end.offset-$[Y][1].start.offset>1&&$[G][1].end.offset-$[G][1].start.offset>1?2:1;let q={...$[Y][1].end},R={...$[G][1].start};if(gH(q,-M),gH(R,M),H={type:M>1?Z.strongSequence:Z.emphasisSequence,start:q,end:{...$[Y][1].end}},U={type:M>1?Z.strongSequence:Z.emphasisSequence,start:{...$[G][1].start},end:R},W={type:M>1?Z.strongText:Z.emphasisText,start:{...$[Y][1].end},end:{...$[G][1].start}},J={type:M>1?Z.strong:Z.emphasis,start:{...H.start},end:{...U.end}},$[Y][1].end={...H.start},$[G][1].start={...U.end},F=[],$[Y][1].end.offset-$[Y][1].start.offset)F=A1(F,[["enter",$[Y][1],X],["exit",$[Y][1],X]]);if(F=A1(F,[["enter",J,X],["enter",H,X],["exit",H,X],["enter",W,X]]),N(X.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),F=A1(F,K5(X.parser.constructs.insideSpan.null,$.slice(Y+1,G),X)),F=A1(F,[["exit",W,X],["enter",U,X],["exit",U,X],["exit",J,X]]),$[G][1].end.offset-$[G][1].start.offset)Q=2,F=A1(F,[["enter",$[G][1],X],["exit",$[G][1],X]]);else Q=0;t0($,Y-1,G-Y+3,F),G=Y+F.length-Q-2;break}}G=-1;while(++G<$.length)if($[G][1].type==="attentionSequence")$[G][1].type="data";return $}function xw($,X){let G=this.parser.constructs.attentionMarkers.null,Y=this.previous,J=U5(Y),W;return H;function H(M){return N(M===A.asterisk||M===A.underscore,"expected asterisk or underscore"),W=M,$.enter("attentionSequence"),U(M)}function U(M){if(M===W)return $.consume(M),U;let F=$.exit("attentionSequence"),Q=U5(M);N(G,"expected `attentionMarkers` to be populated");let q=!Q||Q===I.characterGroupPunctuation&&J||G.includes(M),R=!J||J===I.characterGroupPunctuation&&Q||G.includes(Y);return F._open=Boolean(W===A.asterisk?q:q&&(J||!R)),F._close=Boolean(W===A.asterisk?R:R&&(Q||!q)),X(M)}}function gH($,X){$.column+=X,$.offset+=X,$._bufferIndex+=X}var N4;var mH=B(()=>{R0();h2();E$();e();N4={name:"attention",resolveAll:vw,tokenize:xw}});function bw($,X,G){let Y=0;return J;function J(O){return N(O===A.lessThan,"expected `<`"),$.enter(Z.autolink),$.enter(Z.autolinkMarker),$.consume(O),$.exit(Z.autolinkMarker),$.enter(Z.autolinkProtocol),W}function W(O){if(S1(O))return $.consume(O),H;if(O===A.atSign)return G(O);return F(O)}function H(O){if(O===A.plusSign||O===A.dash||O===A.dot||B1(O))return Y=1,U(O);return F(O)}function U(O){if(O===A.colon)return $.consume(O),Y=0,M;if((O===A.plusSign||O===A.dash||O===A.dot||B1(O))&&Y++<I.autolinkSchemeSizeMax)return $.consume(O),U;return Y=0,F(O)}function M(O){if(O===A.greaterThan)return $.exit(Z.autolinkProtocol),$.enter(Z.autolinkMarker),$.consume(O),$.exit(Z.autolinkMarker),$.exit(Z.autolink),X;if(O===A.eof||O===A.space||O===A.lessThan||A4(O))return G(O);return $.consume(O),M}function F(O){if(O===A.atSign)return $.consume(O),Q;if(IH(O))return $.consume(O),F;return G(O)}function Q(O){return B1(O)?q(O):G(O)}function q(O){if(O===A.dot)return $.consume(O),Y=0,Q;if(O===A.greaterThan)return $.exit(Z.autolinkProtocol).type=Z.autolinkEmail,$.enter(Z.autolinkMarker),$.consume(O),$.exit(Z.autolinkMarker),$.exit(Z.autolink),X;return R(O)}function R(O){if((O===A.dash||B1(O))&&Y++<I.autolinkDomainSizeMax){let _=O===A.dash?R:q;return $.consume(O),_}return G(O)}}var I$;var pH=B(()=>{R0();N0();e();I$={name:"autolink",tokenize:bw}});function hw($,X,G){return Y;function Y(W){return s(W)?$0($,J,Z.linePrefix)(W):J(W)}function J(W){return W===A.eof||x(W)?X(W):G(W)}}var f2;var s8=B(()=>{r0();N0();e();f2={partial:!0,tokenize:hw}});function yw($,X,G){let Y=this;return J;function J(H){if(H===A.greaterThan){let U=Y.containerState;if(N(U,"expected `containerState` to be defined in container"),!U.open)$.enter(Z.blockQuote,{_container:!0}),U.open=!0;return $.enter(Z.blockQuotePrefix),$.enter(Z.blockQuoteMarker),$.consume(H),$.exit(Z.blockQuoteMarker),W}return G(H)}function W(H){if(s(H))return $.enter(Z.blockQuotePrefixWhitespace),$.consume(H),$.exit(Z.blockQuotePrefixWhitespace),$.exit(Z.blockQuotePrefix),X;return $.exit(Z.blockQuotePrefix),X(H)}}function fw($,X,G){let Y=this;return J;function J(H){if(s(H))return N(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),$0($,W,Z.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:I.tabSize)(H);return W(H)}function W(H){return $.attempt(a8,X,G)(H)}}function gw($){$.exit(Z.blockQuote)}var a8;var uH=B(()=>{R0();r0();N0();e();a8={continuation:{tokenize:fw},exit:gw,name:"blockQuote",tokenize:yw}});function mw($,X,G){return Y;function Y(W){return N(W===A.backslash,"expected `\\`"),$.enter(Z.characterEscape),$.enter(Z.escapeMarker),$.consume(W),$.exit(Z.escapeMarker),J}function J(W){if(SH(W))return $.enter(Z.characterEscapeValue),$.consume(W),$.exit(Z.characterEscapeValue),$.exit(Z.characterEscape),X;return G(W)}}var t8;var dH=B(()=>{R0();N0();e();t8={name:"characterEscape",tokenize:mw}});function pw($,X,G){let Y=this,J=0,W,H;return U;function U(q){return N(q===A.ampersand,"expected `&`"),$.enter(Z.characterReference),$.enter(Z.characterReferenceMarker),$.consume(q),$.exit(Z.characterReferenceMarker),M}function M(q){if(q===A.numberSign)return $.enter(Z.characterReferenceMarkerNumeric),$.consume(q),$.exit(Z.characterReferenceMarkerNumeric),F;return $.enter(Z.characterReferenceValue),W=I.characterReferenceNamedSizeMax,H=B1,Q(q)}function F(q){if(q===A.uppercaseX||q===A.lowercaseX)return $.enter(Z.characterReferenceMarkerHexadecimal),$.consume(q),$.exit(Z.characterReferenceMarkerHexadecimal),$.enter(Z.characterReferenceValue),W=I.characterReferenceHexadecimalSizeMax,H=jH,Q;return $.enter(Z.characterReferenceValue),W=I.characterReferenceDecimalSizeMax,H=B4,Q(q)}function Q(q){if(q===A.semicolon&&J){let R=$.exit(Z.characterReferenceValue);if(H===B1&&!H5(Y.sliceSerialize(R)))return G(q);return $.enter(Z.characterReferenceMarker),$.consume(q),$.exit(Z.characterReferenceMarker),$.exit(Z.characterReference),X}if(H(q)&&J++<W)return $.consume(q),Q;return G(q)}}var e8;var lH=B(()=>{R0();i8();N0();e();e8={name:"characterReference",tokenize:pw}});function uw($,X,G){let Y=this,J={partial:!0,tokenize:B0},W=0,H=0,U;return M;function M(T){return F(T)}function F(T){N(T===A.graveAccent||T===A.tilde,"expected `` ` `` or `~`");let Z0=Y.events[Y.events.length-1];return W=Z0&&Z0[1].type===Z.linePrefix?Z0[2].sliceSerialize(Z0[1],!0).length:0,U=T,$.enter(Z.codeFenced),$.enter(Z.codeFencedFence),$.enter(Z.codeFencedFenceSequence),Q(T)}function Q(T){if(T===U)return H++,$.consume(T),Q;if(H<I.codeFencedSequenceSizeMin)return G(T);return $.exit(Z.codeFencedFenceSequence),s(T)?$0($,q,Z.whitespace)(T):q(T)}function q(T){if(T===A.eof||x(T))return $.exit(Z.codeFencedFence),Y.interrupt?X(T):$.check(cH,z,G0)(T);return $.enter(Z.codeFencedFenceInfo),$.enter(Z.chunkString,{contentType:I.contentTypeString}),R(T)}function R(T){if(T===A.eof||x(T))return $.exit(Z.chunkString),$.exit(Z.codeFencedFenceInfo),q(T);if(s(T))return $.exit(Z.chunkString),$.exit(Z.codeFencedFenceInfo),$0($,O,Z.whitespace)(T);if(T===A.graveAccent&&T===U)return G(T);return $.consume(T),R}function O(T){if(T===A.eof||x(T))return q(T);return $.enter(Z.codeFencedFenceMeta),$.enter(Z.chunkString,{contentType:I.contentTypeString}),_(T)}function _(T){if(T===A.eof||x(T))return $.exit(Z.chunkString),$.exit(Z.codeFencedFenceMeta),q(T);if(T===A.graveAccent&&T===U)return G(T);return $.consume(T),_}function z(T){return N(x(T),"expected eol"),$.attempt(J,G0,D)(T)}function D(T){return N(x(T),"expected eol"),$.enter(Z.lineEnding),$.consume(T),$.exit(Z.lineEnding),P}function P(T){return W>0&&s(T)?$0($,b,Z.linePrefix,W+1)(T):b(T)}function b(T){if(T===A.eof||x(T))return $.check(cH,z,G0)(T);return $.enter(Z.codeFlowValue),y(T)}function y(T){if(T===A.eof||x(T))return $.exit(Z.codeFlowValue),b(T);return $.consume(T),y}function G0(T){return $.exit(Z.codeFenced),X(T)}function B0(T,Z0,I0){let q0=0;return w0;function w0(t){return N(x(t),"expected eol"),T.enter(Z.lineEnding),T.consume(t),T.exit(Z.lineEnding),J1}function J1(t){return N(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),T.enter(Z.codeFencedFence),s(t)?$0(T,d,Z.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:I.tabSize)(t):d(t)}function d(t){if(t===U)return T.enter(Z.codeFencedFenceSequence),f(t);return I0(t)}function f(t){if(t===U)return q0++,T.consume(t),f;if(q0>=H)return T.exit(Z.codeFencedFenceSequence),s(t)?$0(T,o,Z.whitespace)(t):o(t);return I0(t)}function o(t){if(t===A.eof||x(t))return T.exit(Z.codeFencedFence),Z0(t);return I0(t)}}}function dw($,X,G){let Y=this;return J;function J(H){if(H===A.eof)return G(H);return N(x(H),"expected eol"),$.enter(Z.lineEnding),$.consume(H),$.exit(Z.lineEnding),W}function W(H){return Y.parser.lazy[Y.now().line]?G(H):X(H)}}var cH,$9;var rH=B(()=>{R0();r0();N0();e();cH={partial:!0,tokenize:dw},$9={concrete:!0,name:"codeFenced",tokenize:uw}});function cw($,X,G){let Y=this;return J;function J(F){return N(s(F)),$.enter(Z.codeIndented),$0($,W,Z.linePrefix,I.tabSize+1)(F)}function W(F){let Q=Y.events[Y.events.length-1];return Q&&Q[1].type===Z.linePrefix&&Q[2].sliceSerialize(Q[1],!0).length>=I.tabSize?H(F):G(F)}function H(F){if(F===A.eof)return M(F);if(x(F))return $.attempt(lw,H,M)(F);return $.enter(Z.codeFlowValue),U(F)}function U(F){if(F===A.eof||x(F))return $.exit(Z.codeFlowValue),H(F);return $.consume(F),U}function M(F){return $.exit(Z.codeIndented),X(F)}}function rw($,X,G){let Y=this;return J;function J(H){if(Y.parser.lazy[Y.now().line])return G(H);if(x(H))return $.enter(Z.lineEnding),$.consume(H),$.exit(Z.lineEnding),J;return $0($,W,Z.linePrefix,I.tabSize+1)(H)}function W(H){let U=Y.events[Y.events.length-1];return U&&U[1].type===Z.linePrefix&&U[2].sliceSerialize(U[1],!0).length>=I.tabSize?X(H):x(H)?J(H):G(H)}}var V4,lw;var iH=B(()=>{R0();r0();N0();e();V4={name:"codeIndented",tokenize:cw},lw={partial:!0,tokenize:rw}});function iw($){let X=$.length-4,G=3,Y,J;if(($[G][1].type===Z.lineEnding||$[G][1].type==="space")&&($[X][1].type===Z.lineEnding||$[X][1].type==="space")){Y=G;while(++Y<X)if($[Y][1].type===Z.codeTextData){$[G][1].type=Z.codeTextPadding,$[X][1].type=Z.codeTextPadding,G+=2,X-=2;break}}Y=G-1,X++;while(++Y<=X)if(J===void 0){if(Y!==X&&$[Y][1].type!==Z.lineEnding)J=Y}else if(Y===X||$[Y][1].type===Z.lineEnding){if($[J][1].type=Z.codeTextData,Y!==J+2)$[J][1].end=$[Y-1][1].end,$.splice(J+2,Y-J-2),X-=Y-J-2,Y=J+2;J=void 0}return $}function oH($){return $!==A.graveAccent||this.events[this.events.length-1][1].type===Z.characterEscape}function ow($,X,G){let Y=this,J=0,W,H;return U;function U(R){return N(R===A.graveAccent,"expected `` ` ``"),N(oH.call(Y,Y.previous),"expected correct previous"),$.enter(Z.codeText),$.enter(Z.codeTextSequence),M(R)}function M(R){if(R===A.graveAccent)return $.consume(R),J++,M;return $.exit(Z.codeTextSequence),F(R)}function F(R){if(R===A.eof)return G(R);if(R===A.space)return $.enter("space"),$.consume(R),$.exit("space"),F;if(R===A.graveAccent)return H=$.enter(Z.codeTextSequence),W=0,q(R);if(x(R))return $.enter(Z.lineEnding),$.consume(R),$.exit(Z.lineEnding),F;return $.enter(Z.codeTextData),Q(R)}function Q(R){if(R===A.eof||R===A.space||R===A.graveAccent||x(R))return $.exit(Z.codeTextData),F(R);return $.consume(R),Q}function q(R){if(R===A.graveAccent)return $.consume(R),W++,q;if(W===J)return $.exit(Z.codeTextSequence),$.exit(Z.codeText),X(R);return H.type=Z.codeTextData,Q(R)}}var j$;var nH=B(()=>{R0();N0();e();j$={name:"codeText",previous:oH,resolve:iw,tokenize:ow}});class S${constructor($){this.left=$?[...$]:[],this.right=[]}get($){if($<0||$>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+$+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if($<this.left.length)return this.left[$];return this.right[this.right.length-$+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice($,X){let G=X===null||X===void 0?Number.POSITIVE_INFINITY:X;if(G<this.left.length)return this.left.slice($,G);if($>this.left.length)return this.right.slice(this.right.length-G+this.left.length,this.right.length-$+this.left.length).reverse();return this.left.slice($).concat(this.right.slice(this.right.length-G+this.left.length).reverse())}splice($,X,G){let Y=X||0;this.setCursor(Math.trunc($));let J=this.right.splice(this.right.length-Y,Number.POSITIVE_INFINITY);if(G)w4(this.left,G);return J.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push($){this.setCursor(Number.POSITIVE_INFINITY),this.left.push($)}pushMany($){this.setCursor(Number.POSITIVE_INFINITY),w4(this.left,$)}unshift($){this.setCursor(0),this.right.push($)}unshiftMany($){this.setCursor(0),w4(this.right,$.reverse())}setCursor($){if($===this.left.length||$>this.left.length&&this.right.length===0||$<0&&this.left.length===0)return;if($<this.left.length){let X=this.left.splice($,Number.POSITIVE_INFINITY);w4(this.right,X.reverse())}else{let X=this.right.splice(this.left.length+this.right.length-$,Number.POSITIVE_INFINITY);w4(this.left,X.reverse())}}}function w4($,X){let G=0;if(X.length<I.v8MaxSafeChunkSize)$.push(...X);else while(G<X.length)$.push(...X.slice(G,G+I.v8MaxSafeChunkSize)),G+=I.v8MaxSafeChunkSize}var sH=B(()=>{e()});function X9($){let X={},G=-1,Y,J,W,H,U,M,F,Q=new S$($);while(++G<Q.length){while(G in X)G=X[G];if(Y=Q.get(G),G&&Y[1].type===Z.chunkFlow&&Q.get(G-1)[1].type===Z.listItemPrefix){if(N(Y[1]._tokenizer,"expected `_tokenizer` on subtokens"),M=Y[1]._tokenizer.events,W=0,W<M.length&&M[W][1].type===Z.lineEndingBlank)W+=2;if(W<M.length&&M[W][1].type===Z.content)while(++W<M.length){if(M[W][1].type===Z.content)break;if(M[W][1].type===Z.chunkText)M[W][1]._isInFirstContentOfListItem=!0,W++}}if(Y[0]==="enter"){if(Y[1].contentType)Object.assign(X,nw(Q,G)),G=X[G],F=!0}else if(Y[1]._container){W=G,J=void 0;while(W--)if(H=Q.get(W),H[1].type===Z.lineEnding||H[1].type===Z.lineEndingBlank){if(H[0]==="enter"){if(J)Q.get(J)[1].type=Z.lineEndingBlank;H[1].type=Z.lineEnding,J=W}}else if(H[1].type===Z.linePrefix||H[1].type===Z.listItemIndent);else break;if(J)Y[1].end={...Q.get(J)[1].start},U=Q.slice(J,G),U.unshift(Y),Q.splice(J,G-J+1,U)}}return t0($,0,Number.POSITIVE_INFINITY,Q.slice(0)),!F}function nw($,X){let G=$.get(X)[1],Y=$.get(X)[2],J=X-1,W=[];N(G.contentType,"expected `contentType` on subtokens");let H=G._tokenizer;if(!H){if(H=Y.parser[G.contentType](G.start),G._contentTypeTextTrailing)H._contentTypeTextTrailing=!0}let U=H.events,M=[],F={},Q,q,R=-1,O=G,_=0,z=0,D=[z];while(O){while($.get(++J)[1]!==O);if(N(!q||O.previous===q,"expected previous to match"),N(!q||q.next===O,"expected next to match"),W.push(J),!O._tokenizer){if(Q=Y.sliceStream(O),!O.next)Q.push(A.eof);if(q)H.defineSkip(O.start);if(O._isInFirstContentOfListItem)H._gfmTasklistFirstContentOfListItem=!0;if(H.write(Q),O._isInFirstContentOfListItem)H._gfmTasklistFirstContentOfListItem=void 0}q=O,O=O.next}O=G;while(++R<U.length)if(U[R][0]==="exit"&&U[R-1][0]==="enter"&&U[R][1].type===U[R-1][1].type&&U[R][1].start.line!==U[R][1].end.line)N(O,"expected a current token"),z=R+1,D.push(z),O._tokenizer=void 0,O.previous=void 0,O=O.next;if(H.events=[],O)O._tokenizer=void 0,O.previous=void 0,N(!O.next,"expected no next token");else D.pop();R=D.length;while(R--){let P=U.slice(D[R],D[R+1]),b=W.pop();N(b!==void 0,"expected a start position when splicing"),M.push([b,b+P.length-1]),$.splice(b,2,P)}M.reverse(),R=-1;while(++R<M.length)F[_+M[R][0]]=_+M[R][1],_+=M[R][1]-M[R][0]-1;return F}var k$=B(()=>{R0();h2();e();sH()});function aw($){return X9($),$}function tw($,X){let G;return Y;function Y(U){return N(U!==A.eof&&!x(U),"expected no eof or eol"),$.enter(Z.content),G=$.enter(Z.chunkContent,{contentType:I.contentTypeContent}),J(U)}function J(U){if(U===A.eof)return W(U);if(x(U))return $.check(sw,H,W)(U);return $.consume(U),J}function W(U){return $.exit(Z.chunkContent),$.exit(Z.content),X(U)}function H(U){return N(x(U),"expected eol"),$.consume(U),$.exit(Z.chunkContent),N(G,"expected previous token"),G.next=$.enter(Z.chunkContent,{contentType:I.contentTypeContent,previous:G}),G=G.next,J}}function ew($,X,G){let Y=this;return J;function J(H){return N(x(H),"expected a line ending"),$.exit(Z.chunkContent),$.enter(Z.lineEnding),$.consume(H),$.exit(Z.lineEnding),$0($,W,Z.linePrefix)}function W(H){if(H===A.eof||x(H))return G(H);N(Y.parser.constructs.disable.null,"expected `disable.null` to be populated");let U=Y.events[Y.events.length-1];if(!Y.parser.constructs.disable.null.includes("codeIndented")&&U&&U[1].type===Z.linePrefix&&U[2].sliceSerialize(U[1],!0).length>=I.tabSize)return X(H);return $.interrupt(Y.parser.constructs.flow,G,X)(H)}}var v$,sw;var aH=B(()=>{R0();r0();N0();k$();e();v$={resolve:aw,tokenize:tw},sw={partial:!0,tokenize:ew}});function G9($,X,G,Y,J,W,H,U,M){let F=M||Number.POSITIVE_INFINITY,Q=0;return q;function q(P){if(P===A.lessThan)return $.enter(Y),$.enter(J),$.enter(W),$.consume(P),$.exit(W),R;if(P===A.eof||P===A.space||P===A.rightParenthesis||A4(P))return G(P);return $.enter(Y),$.enter(H),$.enter(U),$.enter(Z.chunkString,{contentType:I.contentTypeString}),z(P)}function R(P){if(P===A.greaterThan)return $.enter(W),$.consume(P),$.exit(W),$.exit(J),$.exit(Y),X;return $.enter(U),$.enter(Z.chunkString,{contentType:I.contentTypeString}),O(P)}function O(P){if(P===A.greaterThan)return $.exit(Z.chunkString),$.exit(U),R(P);if(P===A.eof||P===A.lessThan||x(P))return G(P);return $.consume(P),P===A.backslash?_:O}function _(P){if(P===A.lessThan||P===A.greaterThan||P===A.backslash)return $.consume(P),O;return O(P)}function z(P){if(!Q&&(P===A.eof||P===A.rightParenthesis||y0(P)))return $.exit(Z.chunkString),$.exit(U),$.exit(H),$.exit(Y),X(P);if(Q<F&&P===A.leftParenthesis)return $.consume(P),Q++,z;if(P===A.rightParenthesis)return $.consume(P),Q--,z;if(P===A.eof||P===A.space||P===A.leftParenthesis||A4(P))return G(P);return $.consume(P),P===A.backslash?D:z}function D(P){if(P===A.leftParenthesis||P===A.rightParenthesis||P===A.backslash)return $.consume(P),z;return z(P)}}var x$=B(()=>{N0();e()});function Y9($,X,G,Y,J,W){let H=this,U=0,M;return F;function F(O){return N(O===A.leftSquareBracket,"expected `[`"),$.enter(Y),$.enter(J),$.consume(O),$.exit(J),$.enter(W),Q}function Q(O){if(U>I.linkReferenceSizeMax||O===A.eof||O===A.leftSquareBracket||O===A.rightSquareBracket&&!M||O===A.caret&&!U&&"_hiddenFootnoteSupport"in H.parser.constructs)return G(O);if(O===A.rightSquareBracket)return $.exit(W),$.enter(J),$.consume(O),$.exit(J),$.exit(Y),X;if(x(O))return $.enter(Z.lineEnding),$.consume(O),$.exit(Z.lineEnding),Q;return $.enter(Z.chunkString,{contentType:I.contentTypeString}),q(O)}function q(O){if(O===A.eof||O===A.leftSquareBracket||O===A.rightSquareBracket||x(O)||U++>I.linkReferenceSizeMax)return $.exit(Z.chunkString),Q(O);if($.consume(O),!M)M=!s(O);return O===A.backslash?R:q}function R(O){if(O===A.leftSquareBracket||O===A.backslash||O===A.rightSquareBracket)return $.consume(O),U++,q;return q(O)}}var b$=B(()=>{R0();N0();e()});function J9($,X,G,Y,J,W){let H;return U;function U(R){if(R===A.quotationMark||R===A.apostrophe||R===A.leftParenthesis)return $.enter(Y),$.enter(J),$.consume(R),$.exit(J),H=R===A.leftParenthesis?A.rightParenthesis:R,M;return G(R)}function M(R){if(R===H)return $.enter(J),$.consume(R),$.exit(J),$.exit(Y),X;return $.enter(W),F(R)}function F(R){if(R===H)return $.exit(W),M(H);if(R===A.eof)return G(R);if(x(R))return $.enter(Z.lineEnding),$.consume(R),$.exit(Z.lineEnding),$0($,F,Z.linePrefix);return $.enter(Z.chunkString,{contentType:I.contentTypeString}),Q(R)}function Q(R){if(R===H||R===A.eof||x(R))return $.exit(Z.chunkString),F(R);return $.consume(R),R===A.backslash?q:Q}function q(R){if(R===H||R===A.backslash)return $.consume(R),Q;return Q(R)}}var h$=B(()=>{r0();N0();e()});function P6($,X){let G;return Y;function Y(J){if(x(J))return $.enter(Z.lineEnding),$.consume(J),$.exit(Z.lineEnding),G=!0,Y;if(s(J))return $0($,Y,G?Z.linePrefix:Z.lineSuffix)(J);return X(J)}}var y$=B(()=>{r0();N0();e()});function X_($,X,G){let Y=this,J;return W;function W(O){return $.enter(Z.definition),H(O)}function H(O){return N(O===A.leftSquareBracket,"expected `[`"),Y9.call(Y,$,U,G,Z.definitionLabel,Z.definitionLabelMarker,Z.definitionLabelString)(O)}function U(O){if(J=w2(Y.sliceSerialize(Y.events[Y.events.length-1][1]).slice(1,-1)),O===A.colon)return $.enter(Z.definitionMarker),$.consume(O),$.exit(Z.definitionMarker),M;return G(O)}function M(O){return y0(O)?P6($,F)(O):F(O)}function F(O){return G9($,Q,G,Z.definitionDestination,Z.definitionDestinationLiteral,Z.definitionDestinationLiteralMarker,Z.definitionDestinationRaw,Z.definitionDestinationString)(O)}function Q(O){return $.attempt($_,q,q)(O)}function q(O){return s(O)?$0($,R,Z.whitespace)(O):R(O)}function R(O){if(O===A.eof||x(O))return $.exit(Z.definition),Y.parser.defined.push(J),X(O);return G(O)}}function G_($,X,G){return Y;function Y(U){return y0(U)?P6($,J)(U):G(U)}function J(U){return J9($,W,G,Z.definitionTitle,Z.definitionTitleMarker,Z.definitionTitleString)(U)}function W(U){return s(U)?$0($,H,Z.whitespace)(U):H(U)}function H(U){return U===A.eof||x(U)?X(U):G(U)}}var f$,$_;var tH=B(()=>{R0();x$();b$();r0();h$();y$();N0();n8();e();f$={name:"definition",tokenize:X_},$_={partial:!0,tokenize:G_}});function Y_($,X,G){return Y;function Y(W){return N(W===A.backslash,"expected `\\`"),$.enter(Z.hardBreakEscape),$.consume(W),J}function J(W){if(x(W))return $.exit(Z.hardBreakEscape),X(W);return G(W)}}var g$;var eH=B(()=>{R0();N0();e();g$={name:"hardBreakEscape",tokenize:Y_}});function J_($,X){let G=$.length-2,Y=3,J,W;if($[Y][1].type===Z.whitespace)Y+=2;if(G-2>Y&&$[G][1].type===Z.whitespace)G-=2;if($[G][1].type===Z.atxHeadingSequence&&(Y===G-1||G-4>Y&&$[G-2][1].type===Z.whitespace))G-=Y+1===G?2:4;if(G>Y)J={type:Z.atxHeadingText,start:$[Y][1].start,end:$[G][1].end},W={type:Z.chunkText,start:$[Y][1].start,end:$[G][1].end,contentType:I.contentTypeText},t0($,Y,G-Y+1,[["enter",J,X],["enter",W,X],["exit",W,X],["exit",J,X]]);return $}function W_($,X,G){let Y=0;return J;function J(Q){return $.enter(Z.atxHeading),W(Q)}function W(Q){return N(Q===A.numberSign,"expected `#`"),$.enter(Z.atxHeadingSequence),H(Q)}function H(Q){if(Q===A.numberSign&&Y++<I.atxHeadingOpeningFenceSizeMax)return $.consume(Q),H;if(Q===A.eof||y0(Q))return $.exit(Z.atxHeadingSequence),U(Q);return G(Q)}function U(Q){if(Q===A.numberSign)return $.enter(Z.atxHeadingSequence),M(Q);if(Q===A.eof||x(Q))return $.exit(Z.atxHeading),X(Q);if(s(Q))return $0($,U,Z.whitespace)(Q);return $.enter(Z.atxHeadingText),F(Q)}function M(Q){if(Q===A.numberSign)return $.consume(Q),M;return $.exit(Z.atxHeadingSequence),U(Q)}function F(Q){if(Q===A.eof||Q===A.numberSign||y0(Q))return $.exit(Z.atxHeadingText),U(Q);return $.consume(Q),F}}var m$;var $U=B(()=>{R0();r0();N0();h2();e();m$={name:"headingAtx",resolve:J_,tokenize:W_}});var XU,p$;var GU=B(()=>{XU=["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"],p$=["pre","script","style","textarea"]});function K_($){let X=$.length;while(X--)if($[X][0]==="enter"&&$[X][1].type===Z.htmlFlow)break;if(X>1&&$[X-2][1].type===Z.linePrefix)$[X][1].start=$[X-2][1].start,$[X+1][1].start=$[X-2][1].start,$.splice(X-2,2);return $}function M_($,X,G){let Y=this,J,W,H,U,M;return F;function F(w){return Q(w)}function Q(w){return N(w===A.lessThan,"expected `<`"),$.enter(Z.htmlFlow),$.enter(Z.htmlFlowData),$.consume(w),q}function q(w){if(w===A.exclamationMark)return $.consume(w),R;if(w===A.slash)return $.consume(w),W=!0,z;if(w===A.questionMark)return $.consume(w),J=I.htmlInstruction,Y.interrupt?X:V;if(S1(w))return N(w!==null),$.consume(w),H=String.fromCharCode(w),D;return G(w)}function R(w){if(w===A.dash)return $.consume(w),J=I.htmlComment,O;if(w===A.leftSquareBracket)return $.consume(w),J=I.htmlCdata,U=0,_;if(S1(w))return $.consume(w),J=I.htmlDeclaration,Y.interrupt?X:V;return G(w)}function O(w){if(w===A.dash)return $.consume(w),Y.interrupt?X:V;return G(w)}function _(w){let E1=I.cdataOpeningString;if(w===E1.charCodeAt(U++)){if($.consume(w),U===E1.length)return Y.interrupt?X:d;return _}return G(w)}function z(w){if(S1(w))return N(w!==null),$.consume(w),H=String.fromCharCode(w),D;return G(w)}function D(w){if(w===A.eof||w===A.slash||w===A.greaterThan||y0(w)){let E1=w===A.slash,Z6=H.toLowerCase();if(!E1&&!W&&p$.includes(Z6))return J=I.htmlRaw,Y.interrupt?X(w):d(w);if(XU.includes(H.toLowerCase())){if(J=I.htmlBasic,E1)return $.consume(w),P;return Y.interrupt?X(w):d(w)}return J=I.htmlComplete,Y.interrupt&&!Y.parser.lazy[Y.now().line]?G(w):W?b(w):y(w)}if(w===A.dash||B1(w))return $.consume(w),H+=String.fromCharCode(w),D;return G(w)}function P(w){if(w===A.greaterThan)return $.consume(w),Y.interrupt?X:d;return G(w)}function b(w){if(s(w))return $.consume(w),b;return w0(w)}function y(w){if(w===A.slash)return $.consume(w),w0;if(w===A.colon||w===A.underscore||S1(w))return $.consume(w),G0;if(s(w))return $.consume(w),y;return w0(w)}function G0(w){if(w===A.dash||w===A.dot||w===A.colon||w===A.underscore||B1(w))return $.consume(w),G0;return B0(w)}function B0(w){if(w===A.equalsTo)return $.consume(w),T;if(s(w))return $.consume(w),B0;return y(w)}function T(w){if(w===A.eof||w===A.lessThan||w===A.equalsTo||w===A.greaterThan||w===A.graveAccent)return G(w);if(w===A.quotationMark||w===A.apostrophe)return $.consume(w),M=w,Z0;if(s(w))return $.consume(w),T;return I0(w)}function Z0(w){if(w===M)return $.consume(w),M=null,q0;if(w===A.eof||x(w))return G(w);return $.consume(w),Z0}function I0(w){if(w===A.eof||w===A.quotationMark||w===A.apostrophe||w===A.slash||w===A.lessThan||w===A.equalsTo||w===A.greaterThan||w===A.graveAccent||y0(w))return B0(w);return $.consume(w),I0}function q0(w){if(w===A.slash||w===A.greaterThan||s(w))return y(w);return G(w)}function w0(w){if(w===A.greaterThan)return $.consume(w),J1;return G(w)}function J1(w){if(w===A.eof||x(w))return d(w);if(s(w))return $.consume(w),J1;return G(w)}function d(w){if(w===A.dash&&J===I.htmlComment)return $.consume(w),C0;if(w===A.lessThan&&J===I.htmlRaw)return $.consume(w),k0;if(w===A.greaterThan&&J===I.htmlDeclaration)return $.consume(w),v0;if(w===A.questionMark&&J===I.htmlInstruction)return $.consume(w),V;if(w===A.rightSquareBracket&&J===I.htmlCdata)return $.consume(w),H1;if(x(w)&&(J===I.htmlBasic||J===I.htmlComplete))return $.exit(Z.htmlFlowData),$.check(H_,Z2,f)(w);if(w===A.eof||x(w))return $.exit(Z.htmlFlowData),f(w);return $.consume(w),d}function f(w){return $.check(U_,o,Z2)(w)}function o(w){return N(x(w)),$.enter(Z.lineEnding),$.consume(w),$.exit(Z.lineEnding),t}function t(w){if(w===A.eof||x(w))return f(w);return $.enter(Z.htmlFlowData),d(w)}function C0(w){if(w===A.dash)return $.consume(w),V;return d(w)}function k0(w){if(w===A.slash)return $.consume(w),H="",W1;return d(w)}function W1(w){if(w===A.greaterThan){let E1=H.toLowerCase();if(p$.includes(E1))return $.consume(w),v0;return d(w)}if(S1(w)&&H.length<I.htmlRawSizeMax)return N(w!==null),$.consume(w),H+=String.fromCharCode(w),W1;return d(w)}function H1(w){if(w===A.rightSquareBracket)return $.consume(w),V;return d(w)}function V(w){if(w===A.greaterThan)return $.consume(w),v0;if(w===A.dash&&J===I.htmlComment)return $.consume(w),V;return d(w)}function v0(w){if(w===A.eof||x(w))return $.exit(Z.htmlFlowData),Z2(w);return $.consume(w),v0}function Z2(w){return $.exit(Z.htmlFlow),X(w)}}function F_($,X,G){let Y=this;return J;function J(H){if(x(H))return $.enter(Z.lineEnding),$.consume(H),$.exit(Z.lineEnding),W;return G(H)}function W(H){return Y.parser.lazy[Y.now().line]?G(H):X(H)}}function Q_($,X,G){return Y;function Y(J){return N(x(J),"expected a line ending"),$.enter(Z.lineEnding),$.consume(J),$.exit(Z.lineEnding),$.attempt(f2,X,G)}}var u$,H_,U_;var YU=B(()=>{R0();N0();GU();e();s8();u$={concrete:!0,name:"htmlFlow",resolveTo:K_,tokenize:M_},H_={partial:!0,tokenize:Q_},U_={partial:!0,tokenize:F_}});function q_($,X,G){let Y=this,J,W,H;return U;function U(V){return N(V===A.lessThan,"expected `<`"),$.enter(Z.htmlText),$.enter(Z.htmlTextData),$.consume(V),M}function M(V){if(V===A.exclamationMark)return $.consume(V),F;if(V===A.slash)return $.consume(V),B0;if(V===A.questionMark)return $.consume(V),y;if(S1(V))return $.consume(V),I0;return G(V)}function F(V){if(V===A.dash)return $.consume(V),Q;if(V===A.leftSquareBracket)return $.consume(V),W=0,_;if(S1(V))return $.consume(V),b;return G(V)}function Q(V){if(V===A.dash)return $.consume(V),O;return G(V)}function q(V){if(V===A.eof)return G(V);if(V===A.dash)return $.consume(V),R;if(x(V))return H=q,k0(V);return $.consume(V),q}function R(V){if(V===A.dash)return $.consume(V),O;return q(V)}function O(V){return V===A.greaterThan?C0(V):V===A.dash?R(V):q(V)}function _(V){let v0=I.cdataOpeningString;if(V===v0.charCodeAt(W++))return $.consume(V),W===v0.length?z:_;return G(V)}function z(V){if(V===A.eof)return G(V);if(V===A.rightSquareBracket)return $.consume(V),D;if(x(V))return H=z,k0(V);return $.consume(V),z}function D(V){if(V===A.rightSquareBracket)return $.consume(V),P;return z(V)}function P(V){if(V===A.greaterThan)return C0(V);if(V===A.rightSquareBracket)return $.consume(V),P;return z(V)}function b(V){if(V===A.eof||V===A.greaterThan)return C0(V);if(x(V))return H=b,k0(V);return $.consume(V),b}function y(V){if(V===A.eof)return G(V);if(V===A.questionMark)return $.consume(V),G0;if(x(V))return H=y,k0(V);return $.consume(V),y}function G0(V){return V===A.greaterThan?C0(V):y(V)}function B0(V){if(S1(V))return $.consume(V),T;return G(V)}function T(V){if(V===A.dash||B1(V))return $.consume(V),T;return Z0(V)}function Z0(V){if(x(V))return H=Z0,k0(V);if(s(V))return $.consume(V),Z0;return C0(V)}function I0(V){if(V===A.dash||B1(V))return $.consume(V),I0;if(V===A.slash||V===A.greaterThan||y0(V))return q0(V);return G(V)}function q0(V){if(V===A.slash)return $.consume(V),C0;if(V===A.colon||V===A.underscore||S1(V))return $.consume(V),w0;if(x(V))return H=q0,k0(V);if(s(V))return $.consume(V),q0;return C0(V)}function w0(V){if(V===A.dash||V===A.dot||V===A.colon||V===A.underscore||B1(V))return $.consume(V),w0;return J1(V)}function J1(V){if(V===A.equalsTo)return $.consume(V),d;if(x(V))return H=J1,k0(V);if(s(V))return $.consume(V),J1;return q0(V)}function d(V){if(V===A.eof||V===A.lessThan||V===A.equalsTo||V===A.greaterThan||V===A.graveAccent)return G(V);if(V===A.quotationMark||V===A.apostrophe)return $.consume(V),J=V,f;if(x(V))return H=d,k0(V);if(s(V))return $.consume(V),d;return $.consume(V),o}function f(V){if(V===J)return $.consume(V),J=void 0,t;if(V===A.eof)return G(V);if(x(V))return H=f,k0(V);return $.consume(V),f}function o(V){if(V===A.eof||V===A.quotationMark||V===A.apostrophe||V===A.lessThan||V===A.equalsTo||V===A.graveAccent)return G(V);if(V===A.slash||V===A.greaterThan||y0(V))return q0(V);return $.consume(V),o}function t(V){if(V===A.slash||V===A.greaterThan||y0(V))return q0(V);return G(V)}function C0(V){if(V===A.greaterThan)return $.consume(V),$.exit(Z.htmlTextData),$.exit(Z.htmlText),X;return G(V)}function k0(V){return N(H,"expected return state"),N(x(V),"expected eol"),$.exit(Z.htmlTextData),$.enter(Z.lineEnding),$.consume(V),$.exit(Z.lineEnding),W1}function W1(V){return N(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),s(V)?$0($,H1,Z.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:I.tabSize)(V):H1(V)}function H1(V){return $.enter(Z.htmlTextData),H(V)}}var d$;var JU=B(()=>{R0();r0();N0();e();d$={name:"htmlText",tokenize:q_}});function A_($){let X=-1,G=[];while(++X<$.length){let Y=$[X][1];if(G.push($[X]),Y.type===Z.labelImage||Y.type===Z.labelLink||Y.type===Z.labelEnd){let J=Y.type===Z.labelImage?4:2;Y.type=Z.data,X+=J}}if($.length!==G.length)t0($,0,$.length,G);return $}function B_($,X){let G=$.length,Y=0,J,W,H,U;while(G--)if(J=$[G][1],W){if(J.type===Z.link||J.type===Z.labelLink&&J._inactive)break;if($[G][0]==="enter"&&J.type===Z.labelLink)J._inactive=!0}else if(H){if($[G][0]==="enter"&&(J.type===Z.labelImage||J.type===Z.labelLink)&&!J._balanced){if(W=G,J.type!==Z.labelLink){Y=2;break}}}else if(J.type===Z.labelEnd)H=G;N(W!==void 0,"`open` is supposed to be found"),N(H!==void 0,"`close` is supposed to be found");let M={type:$[W][1].type===Z.labelLink?Z.link:Z.image,start:{...$[W][1].start},end:{...$[$.length-1][1].end}},F={type:Z.label,start:{...$[W][1].start},end:{...$[H][1].end}},Q={type:Z.labelText,start:{...$[W+Y+2][1].end},end:{...$[H-2][1].start}};return U=[["enter",M,X],["enter",F,X]],U=A1(U,$.slice(W+1,W+Y+3)),U=A1(U,[["enter",Q,X]]),N(X.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),U=A1(U,K5(X.parser.constructs.insideSpan.null,$.slice(W+Y+4,H-3),X)),U=A1(U,[["exit",Q,X],$[H-2],$[H-1],["exit",F,X]]),U=A1(U,$.slice(H+1)),U=A1(U,[["exit",M,X]]),t0($,W,$.length,U),$}function N_($,X,G){let Y=this,J=Y.events.length,W,H;while(J--)if((Y.events[J][1].type===Z.labelImage||Y.events[J][1].type===Z.labelLink)&&!Y.events[J][1]._balanced){W=Y.events[J][1];break}return U;function U(R){if(N(R===A.rightSquareBracket,"expected `]`"),!W)return G(R);if(W._inactive)return q(R);return H=Y.parser.defined.includes(w2(Y.sliceSerialize({start:W.end,end:Y.now()}))),$.enter(Z.labelEnd),$.enter(Z.labelMarker),$.consume(R),$.exit(Z.labelMarker),$.exit(Z.labelEnd),M}function M(R){if(R===A.leftParenthesis)return $.attempt(O_,Q,H?Q:q)(R);if(R===A.leftSquareBracket)return $.attempt(Z_,Q,H?F:q)(R);return H?Q(R):q(R)}function F(R){return $.attempt(R_,Q,q)(R)}function Q(R){return X(R)}function q(R){return W._balanced=!0,G(R)}}function V_($,X,G){return Y;function Y(q){return N(q===A.leftParenthesis,"expected left paren"),$.enter(Z.resource),$.enter(Z.resourceMarker),$.consume(q),$.exit(Z.resourceMarker),J}function J(q){return y0(q)?P6($,W)(q):W(q)}function W(q){if(q===A.rightParenthesis)return Q(q);return G9($,H,U,Z.resourceDestination,Z.resourceDestinationLiteral,Z.resourceDestinationLiteralMarker,Z.resourceDestinationRaw,Z.resourceDestinationString,I.linkResourceDestinationBalanceMax)(q)}function H(q){return y0(q)?P6($,M)(q):Q(q)}function U(q){return G(q)}function M(q){if(q===A.quotationMark||q===A.apostrophe||q===A.leftParenthesis)return J9($,F,G,Z.resourceTitle,Z.resourceTitleMarker,Z.resourceTitleString)(q);return Q(q)}function F(q){return y0(q)?P6($,Q)(q):Q(q)}function Q(q){if(q===A.rightParenthesis)return $.enter(Z.resourceMarker),$.consume(q),$.exit(Z.resourceMarker),$.exit(Z.resource),X;return G(q)}}function w_($,X,G){let Y=this;return J;function J(U){return N(U===A.leftSquareBracket,"expected left bracket"),Y9.call(Y,$,W,H,Z.reference,Z.referenceMarker,Z.referenceString)(U)}function W(U){return Y.parser.defined.includes(w2(Y.sliceSerialize(Y.events[Y.events.length-1][1]).slice(1,-1)))?X(U):G(U)}function H(U){return G(U)}}function __($,X,G){return Y;function Y(W){return N(W===A.leftSquareBracket,"expected left bracket"),$.enter(Z.reference),$.enter(Z.referenceMarker),$.consume(W),$.exit(Z.referenceMarker),J}function J(W){if(W===A.rightSquareBracket)return $.enter(Z.referenceMarker),$.consume(W),$.exit(Z.referenceMarker),$.exit(Z.reference),X;return G(W)}}var L6,O_,Z_,R_;var W9=B(()=>{R0();x$();b$();h$();y$();N0();h2();n8();e();L6={name:"labelEnd",resolveAll:A_,resolveTo:B_,tokenize:N_},O_={tokenize:V_},Z_={tokenize:w_},R_={tokenize:__}});function z_($,X,G){let Y=this;return J;function J(U){return N(U===A.exclamationMark,"expected `!`"),$.enter(Z.labelImage),$.enter(Z.labelImageMarker),$.consume(U),$.exit(Z.labelImageMarker),W}function W(U){if(U===A.leftSquareBracket)return $.enter(Z.labelMarker),$.consume(U),$.exit(Z.labelMarker),$.exit(Z.labelImage),H;return G(U)}function H(U){return U===A.caret&&"_hiddenFootnoteSupport"in Y.parser.constructs?G(U):X(U)}}var l$;var WU=B(()=>{R0();e();W9();l$={name:"labelStartImage",resolveAll:L6.resolveAll,tokenize:z_}});function D_($,X,G){let Y=this;return J;function J(H){return N(H===A.leftSquareBracket,"expected `[`"),$.enter(Z.labelLink),$.enter(Z.labelMarker),$.consume(H),$.exit(Z.labelMarker),$.exit(Z.labelLink),W}function W(H){return H===A.caret&&"_hiddenFootnoteSupport"in Y.parser.constructs?G(H):X(H)}}var c$;var HU=B(()=>{R0();e();W9();c$={name:"labelStartLink",resolveAll:L6.resolveAll,tokenize:D_}});function P_($,X){return G;function G(Y){return N(x(Y),"expected eol"),$.enter(Z.lineEnding),$.consume(Y),$.exit(Z.lineEnding),$0($,X,Z.linePrefix)}}var _4;var UU=B(()=>{R0();r0();N0();e();_4={name:"lineEnding",tokenize:P_}});function L_($,X,G){let Y=0,J;return W;function W(F){return $.enter(Z.thematicBreak),H(F)}function H(F){return N(F===A.asterisk||F===A.dash||F===A.underscore,"expected `*`, `-`, or `_`"),J=F,U(F)}function U(F){if(F===J)return $.enter(Z.thematicBreakSequence),M(F);if(Y>=I.thematicBreakMarkerCountMin&&(F===A.eof||x(F)))return $.exit(Z.thematicBreak),X(F);return G(F)}function M(F){if(F===J)return $.consume(F),Y++,M;return $.exit(Z.thematicBreakSequence),s(F)?$0($,U,Z.whitespace)(F):U(F)}}var C6;var r$=B(()=>{R0();r0();N0();e();C6={name:"thematicBreak",tokenize:L_}});function E_($,X,G){let Y=this,J=Y.events[Y.events.length-1],W=J&&J[1].type===Z.linePrefix?J[2].sliceSerialize(J[1],!0).length:0,H=0;return U;function U(O){N(Y.containerState,"expected state");let _=Y.containerState.type||(O===A.asterisk||O===A.plusSign||O===A.dash?Z.listUnordered:Z.listOrdered);if(_===Z.listUnordered?!Y.containerState.marker||O===Y.containerState.marker:B4(O)){if(!Y.containerState.type)Y.containerState.type=_,$.enter(_,{_container:!0});if(_===Z.listUnordered)return $.enter(Z.listItemPrefix),O===A.asterisk||O===A.dash?$.check(C6,G,F)(O):F(O);if(!Y.interrupt||O===A.digit1)return $.enter(Z.listItemPrefix),$.enter(Z.listItemValue),M(O)}return G(O)}function M(O){if(N(Y.containerState,"expected state"),B4(O)&&++H<I.listItemValueSizeMax)return $.consume(O),M;if((!Y.interrupt||H<2)&&(Y.containerState.marker?O===Y.containerState.marker:O===A.rightParenthesis||O===A.dot))return $.exit(Z.listItemValue),F(O);return G(O)}function F(O){return N(Y.containerState,"expected state"),N(O!==A.eof,"eof (`null`) is not a marker"),$.enter(Z.listItemMarker),$.consume(O),$.exit(Z.listItemMarker),Y.containerState.marker=Y.containerState.marker||O,$.check(f2,Y.interrupt?G:Q,$.attempt(C_,R,q))}function Q(O){return N(Y.containerState,"expected state"),Y.containerState.initialBlankLine=!0,W++,R(O)}function q(O){if(s(O))return $.enter(Z.listItemPrefixWhitespace),$.consume(O),$.exit(Z.listItemPrefixWhitespace),R;return G(O)}function R(O){return N(Y.containerState,"expected state"),Y.containerState.size=W+Y.sliceSerialize($.exit(Z.listItemPrefix),!0).length,X(O)}}function I_($,X,G){let Y=this;return N(Y.containerState,"expected state"),Y.containerState._closeFlow=void 0,$.check(f2,J,W);function J(U){return N(Y.containerState,"expected state"),N(typeof Y.containerState.size==="number","expected size"),Y.containerState.furtherBlankLines=Y.containerState.furtherBlankLines||Y.containerState.initialBlankLine,$0($,X,Z.listItemIndent,Y.containerState.size+1)(U)}function W(U){if(N(Y.containerState,"expected state"),Y.containerState.furtherBlankLines||!s(U))return Y.containerState.furtherBlankLines=void 0,Y.containerState.initialBlankLine=void 0,H(U);return Y.containerState.furtherBlankLines=void 0,Y.containerState.initialBlankLine=void 0,$.attempt(T_,X,H)(U)}function H(U){return N(Y.containerState,"expected state"),Y.containerState._closeFlow=!0,Y.interrupt=void 0,N(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),$0($,$.attempt(K1,X,G),Z.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:I.tabSize)(U)}}function j_($,X,G){let Y=this;return N(Y.containerState,"expected state"),N(typeof Y.containerState.size==="number","expected size"),$0($,J,Z.listItemIndent,Y.containerState.size+1);function J(W){N(Y.containerState,"expected state");let H=Y.events[Y.events.length-1];return H&&H[1].type===Z.listItemIndent&&H[2].sliceSerialize(H[1],!0).length===Y.containerState.size?X(W):G(W)}}function S_($){N(this.containerState,"expected state"),N(typeof this.containerState.type==="string","expected type"),$.exit(this.containerState.type)}function k_($,X,G){let Y=this;return N(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),$0($,J,Z.listItemPrefixWhitespace,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:I.tabSize+1);function J(W){let H=Y.events[Y.events.length-1];return!s(W)&&H&&H[1].type===Z.listItemPrefixWhitespace?X(W):G(W)}}var K1,C_,T_;var KU=B(()=>{R0();r0();N0();e();s8();r$();K1={continuation:{tokenize:I_},exit:S_,name:"list",tokenize:E_},C_={partial:!0,tokenize:k_},T_={partial:!0,tokenize:j_}});function v_($,X){let G=$.length,Y,J,W;while(G--)if($[G][0]==="enter"){if($[G][1].type===Z.content){Y=G;break}if($[G][1].type===Z.paragraph)J=G}else{if($[G][1].type===Z.content)$.splice(G,1);if(!W&&$[G][1].type===Z.definition)W=G}N(J!==void 0,"expected a `text` index to be found"),N(Y!==void 0,"expected a `text` index to be found"),N($[Y][2]===X,"enter context should be same"),N($[$.length-1][2]===X,"enter context should be same");let H={type:Z.setextHeading,start:{...$[Y][1].start},end:{...$[$.length-1][1].end}};if($[J][1].type=Z.setextHeadingText,W)$.splice(J,0,["enter",H,X]),$.splice(W+1,0,["exit",$[Y][1],X]),$[Y][1].end={...$[W][1].end};else $[Y][1]=H;return $.push(["exit",H,X]),$}function x_($,X,G){let Y=this,J;return W;function W(F){let Q=Y.events.length,q;N(F===A.dash||F===A.equalsTo,"expected `=` or `-`");while(Q--)if(Y.events[Q][1].type!==Z.lineEnding&&Y.events[Q][1].type!==Z.linePrefix&&Y.events[Q][1].type!==Z.content){q=Y.events[Q][1].type===Z.paragraph;break}if(!Y.parser.lazy[Y.now().line]&&(Y.interrupt||q))return $.enter(Z.setextHeadingLine),J=F,H(F);return G(F)}function H(F){return $.enter(Z.setextHeadingLineSequence),U(F)}function U(F){if(F===J)return $.consume(F),U;return $.exit(Z.setextHeadingLineSequence),s(F)?$0($,M,Z.lineSuffix)(F):M(F)}function M(F){if(F===A.eof||x(F))return $.exit(Z.setextHeadingLine),X(F);return G(F)}}var H9;var MU=B(()=>{R0();r0();N0();e();H9={name:"setextUnderline",resolveTo:v_,tokenize:x_}});var i$=B(()=>{mH();pH();s8();uH();dH();lH();rH();iH();nH();aH();tH();eH();$U();YU();JU();W9();WU();HU();UU();KU();MU();r$()});function b_($){let X=this,G=$.attempt(f2,Y,$.attempt(this.parser.constructs.flowInitial,J,$0($,$.attempt(this.parser.constructs.flow,J,$.attempt(v$,J)),Z.linePrefix)));return G;function Y(W){if(N(W===A.eof||x(W),"expected eol or eof"),W===A.eof){$.consume(W);return}return $.enter(Z.lineEndingBlank),$.consume(W),$.exit(Z.lineEndingBlank),X.currentConstruct=void 0,G}function J(W){if(N(W===A.eof||x(W),"expected eol or eof"),W===A.eof){$.consume(W);return}return $.enter(Z.lineEnding),$.consume(W),$.exit(Z.lineEnding),X.currentConstruct=void 0,G}}var FU;var QU=B(()=>{R0();i$();r0();N0();e();FU={tokenize:b_}});function RU($){return{resolveAll:AU($==="text"?h_:void 0),tokenize:X};function X(G){let Y=this,J=this.parser.constructs[$],W=G.attempt(J,H,U);return H;function H(Q){return F(Q)?W(Q):U(Q)}function U(Q){if(Q===A.eof){G.consume(Q);return}return G.enter(Z.data),G.consume(Q),M}function M(Q){if(F(Q))return G.exit(Z.data),W(Q);return G.consume(Q),M}function F(Q){if(Q===A.eof)return!0;let q=J[Q],R=-1;if(q){N(Array.isArray(q),"expected `disable.null` to be populated");while(++R<q.length){let O=q[R];if(!O.previous||O.previous.call(Y,Y.previous))return!0}}return!1}}}function AU($){return X;function X(G,Y){let J=-1,W;while(++J<=G.length)if(W===void 0){if(G[J]&&G[J][1].type===Z.data)W=J,J++}else if(!G[J]||G[J][1].type!==Z.data){if(J!==W+2)G[W][1].end=G[J-1][1].end,G.splice(W+2,J-W-2),J=W+2;W=void 0}return $?$(G,Y):G}}function h_($,X){let G=0;while(++G<=$.length)if((G===$.length||$[G][1].type===Z.lineEnding)&&$[G-1][1].type===Z.data){let Y=$[G-1][1],J=X.sliceStream(Y),W=J.length,H=-1,U=0,M;while(W--){let F=J[W];if(typeof F==="string"){H=F.length;while(F.charCodeAt(H-1)===A.space)U++,H--;if(H)break;H=-1}else if(F===A.horizontalTab)M=!0,U++;else if(F===A.virtualSpace);else{W++;break}}if(X._contentTypeTextTrailing&&G===$.length)U=0;if(U){let F={type:G===$.length||M||U<I.hardBreakPrefixSizeMin?Z.lineSuffix:Z.hardBreakTrailing,start:{_bufferIndex:W?H:Y.start._bufferIndex+H,_index:Y.start._index+W,line:Y.end.line,column:Y.end.column-U,offset:Y.end.offset-U},end:{...Y.end}};if(Y.end={...F.start},Y.start.offset===Y.end.offset)Object.assign(Y,F);else $.splice(G,0,["enter",F,X],["exit",F,X]),G+=2}G++}return $}var qU,OU,ZU;var o$=B(()=>{R0();e();qU={resolveAll:AU()},OU=RU("string"),ZU=RU("text")});var n$={};v8(n$,{text:()=>u_,string:()=>p_,insideSpan:()=>d_,flowInitial:()=>g_,flow:()=>m_,document:()=>y_,disable:()=>c_,contentInitial:()=>f_,attentionMarkers:()=>l_});var y_,f_,g_,m_,p_,u_,d_,l_,c_;var BU=B(()=>{i$();e();o$();y_={[A.asterisk]:K1,[A.plusSign]:K1,[A.dash]:K1,[A.digit0]:K1,[A.digit1]:K1,[A.digit2]:K1,[A.digit3]:K1,[A.digit4]:K1,[A.digit5]:K1,[A.digit6]:K1,[A.digit7]:K1,[A.digit8]:K1,[A.digit9]:K1,[A.greaterThan]:a8},f_={[A.leftSquareBracket]:f$},g_={[A.horizontalTab]:V4,[A.virtualSpace]:V4,[A.space]:V4},m_={[A.numberSign]:m$,[A.asterisk]:C6,[A.dash]:[H9,C6],[A.lessThan]:u$,[A.equalsTo]:H9,[A.underscore]:C6,[A.graveAccent]:$9,[A.tilde]:$9},p_={[A.ampersand]:e8,[A.backslash]:t8},u_={[A.carriageReturn]:_4,[A.lineFeed]:_4,[A.carriageReturnLineFeed]:_4,[A.exclamationMark]:l$,[A.ampersand]:e8,[A.asterisk]:N4,[A.lessThan]:[I$,d$],[A.leftSquareBracket]:c$,[A.backslash]:[g$,t8],[A.rightSquareBracket]:L6,[A.underscore]:N4,[A.graveAccent]:j$},d_={null:[N4,qU]},l_={null:[A.asterisk,A.underscore]},c_={null:[]}});var VU=l((xh,NU)=>{var M5=1000,F5=M5*60,Q5=F5*60,T6=Q5*24,r_=T6*7,i_=T6*365.25;NU.exports=function($,X){X=X||{};var G=typeof $;if(G==="string"&&$.length>0)return o_($);else if(G==="number"&&isFinite($))return X.long?s_($):n_($);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify($))};function o_($){if($=String($),$.length>100)return;var X=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec($);if(!X)return;var G=parseFloat(X[1]),Y=(X[2]||"ms").toLowerCase();switch(Y){case"years":case"year":case"yrs":case"yr":case"y":return G*i_;case"weeks":case"week":case"w":return G*r_;case"days":case"day":case"d":return G*T6;case"hours":case"hour":case"hrs":case"hr":case"h":return G*Q5;case"minutes":case"minute":case"mins":case"min":case"m":return G*F5;case"seconds":case"second":case"secs":case"sec":case"s":return G*M5;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return G;default:return}}function n_($){var X=Math.abs($);if(X>=T6)return Math.round($/T6)+"d";if(X>=Q5)return Math.round($/Q5)+"h";if(X>=F5)return Math.round($/F5)+"m";if(X>=M5)return Math.round($/M5)+"s";return $+"ms"}function s_($){var X=Math.abs($);if(X>=T6)return U9($,X,T6,"day");if(X>=Q5)return U9($,X,Q5,"hour");if(X>=F5)return U9($,X,F5,"minute");if(X>=M5)return U9($,X,M5,"second");return $+" ms"}function U9($,X,G,Y){var J=X>=G*1.5;return Math.round($/G)+" "+Y+(J?"s":"")}});var s$=l((bh,wU)=>{function a_($){G.debug=G,G.default=G,G.coerce=M,G.disable=H,G.enable=J,G.enabled=U,G.humanize=VU(),G.destroy=F,Object.keys($).forEach((Q)=>{G[Q]=$[Q]}),G.names=[],G.skips=[],G.formatters={};function X(Q){let q=0;for(let R=0;R<Q.length;R++)q=(q<<5)-q+Q.charCodeAt(R),q|=0;return G.colors[Math.abs(q)%G.colors.length]}G.selectColor=X;function G(Q){let q,R=null,O,_;function z(...D){if(!z.enabled)return;let P=z,b=Number(new Date),y=b-(q||b);if(P.diff=y,P.prev=q,P.curr=b,q=b,D[0]=G.coerce(D[0]),typeof D[0]!=="string")D.unshift("%O");let G0=0;D[0]=D[0].replace(/%([a-zA-Z%])/g,(T,Z0)=>{if(T==="%%")return"%";G0++;let I0=G.formatters[Z0];if(typeof I0==="function"){let q0=D[G0];T=I0.call(P,q0),D.splice(G0,1),G0--}return T}),G.formatArgs.call(P,D),(P.log||G.log).apply(P,D)}if(z.namespace=Q,z.useColors=G.useColors(),z.color=G.selectColor(Q),z.extend=Y,z.destroy=G.destroy,Object.defineProperty(z,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(R!==null)return R;if(O!==G.namespaces)O=G.namespaces,_=G.enabled(Q);return _},set:(D)=>{R=D}}),typeof G.init==="function")G.init(z);return z}function Y(Q,q){let R=G(this.namespace+(typeof q>"u"?":":q)+Q);return R.log=this.log,R}function J(Q){G.save(Q),G.namespaces=Q,G.names=[],G.skips=[];let q=(typeof Q==="string"?Q:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let R of q)if(R[0]==="-")G.skips.push(R.slice(1));else G.names.push(R)}function W(Q,q){let R=0,O=0,_=-1,z=0;while(R<Q.length)if(O<q.length&&(q[O]===Q[R]||q[O]==="*"))if(q[O]==="*")_=O,z=R,O++;else R++,O++;else if(_!==-1)O=_+1,z++,R=z;else return!1;while(O<q.length&&q[O]==="*")O++;return O===q.length}function H(){let Q=[...G.names,...G.skips.map((q)=>"-"+q)].join(",");return G.enable(""),Q}function U(Q){for(let q of G.skips)if(W(Q,q))return!1;for(let q of G.names)if(W(Q,q))return!0;return!1}function M(Q){if(Q instanceof Error)return Q.stack||Q.message;return Q}function F(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return G.enable(G.load()),G}wU.exports=a_});var zU=l((_U,K9)=>{_U.formatArgs=e_;_U.save=$z;_U.load=Xz;_U.useColors=t_;_U.storage=Gz();_U.destroy=(()=>{let $=!1;return()=>{if(!$)$=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();_U.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function t_(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let $;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&($=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt($[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function e_($){if($[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+$[0]+(this.useColors?"%c ":" ")+"+"+K9.exports.humanize(this.diff),!this.useColors)return;let X="color: "+this.color;$.splice(1,0,X,"color: inherit");let G=0,Y=0;$[0].replace(/%[a-zA-Z%]/g,(J)=>{if(J==="%%")return;if(G++,J==="%c")Y=G}),$.splice(Y,0,X)}_U.log=console.debug||console.log||(()=>{});function $z($){try{if($)_U.storage.setItem("debug",$);else _U.storage.removeItem("debug")}catch(X){}}function Xz(){let $;try{$=_U.storage.getItem("debug")||_U.storage.getItem("DEBUG")}catch(X){}if(!$&&typeof process<"u"&&"env"in process)$=process.env.DEBUG;return $}function Gz(){try{return localStorage}catch($){}}K9.exports=s$()(_U);var{formatters:Yz}=K9.exports;Yz.j=function($){try{return JSON.stringify($)}catch(X){return"[UnexpectedJSONParseError]: "+X.message}}});var PU=l((yh,DU)=>{DU.exports=($,X=process.argv)=>{let G=$.startsWith("-")?"":$.length===1?"-":"--",Y=X.indexOf(G+$),J=X.indexOf("--");return Y!==-1&&(J===-1||Y<J)}});var TU=l((fh,CU)=>{var Qz=N2("os"),LU=N2("tty"),y1=PU(),{env:i0}=process,g2;if(y1("no-color")||y1("no-colors")||y1("color=false")||y1("color=never"))g2=0;else if(y1("color")||y1("colors")||y1("color=true")||y1("color=always"))g2=1;if("FORCE_COLOR"in i0)if(i0.FORCE_COLOR==="true")g2=1;else if(i0.FORCE_COLOR==="false")g2=0;else g2=i0.FORCE_COLOR.length===0?1:Math.min(parseInt(i0.FORCE_COLOR,10),3);function a$($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function t$($,X){if(g2===0)return 0;if(y1("color=16m")||y1("color=full")||y1("color=truecolor"))return 3;if(y1("color=256"))return 2;if($&&!X&&g2===void 0)return 0;let G=g2||0;if(i0.TERM==="dumb")return G;if(process.platform==="win32"){let Y=Qz.release().split(".");if(Number(Y[0])>=10&&Number(Y[2])>=10586)return Number(Y[2])>=14931?3:2;return 1}if("CI"in i0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((Y)=>(Y in i0))||i0.CI_NAME==="codeship")return 1;return G}if("TEAMCITY_VERSION"in i0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i0.TEAMCITY_VERSION)?1:0;if(i0.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i0){let Y=parseInt((i0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i0.TERM_PROGRAM){case"iTerm.app":return Y>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i0.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i0.TERM))return 1;if("COLORTERM"in i0)return 1;return G}function qz($){let X=t$($,$&&$.isTTY);return a$(X)}CU.exports={supportsColor:qz,stdout:a$(t$(!0,LU.isatty(1))),stderr:a$(t$(!0,LU.isatty(2)))}});var SU=l((IU,F9)=>{var Oz=N2("tty"),M9=N2("util");IU.init=wz;IU.log=Bz;IU.formatArgs=Rz;IU.save=Nz;IU.load=Vz;IU.useColors=Zz;IU.destroy=M9.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");IU.colors=[6,2,3,4,5,1];try{let $=TU();if($&&($.stderr||$).level>=2)IU.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch($){}IU.inspectOpts=Object.keys(process.env).filter(($)=>{return/^debug_/i.test($)}).reduce(($,X)=>{let G=X.substring(6).toLowerCase().replace(/_([a-z])/g,(J,W)=>{return W.toUpperCase()}),Y=process.env[X];if(/^(yes|on|true|enabled)$/i.test(Y))Y=!0;else if(/^(no|off|false|disabled)$/i.test(Y))Y=!1;else if(Y==="null")Y=null;else Y=Number(Y);return $[G]=Y,$},{});function Zz(){return"colors"in IU.inspectOpts?Boolean(IU.inspectOpts.colors):Oz.isatty(process.stderr.fd)}function Rz($){let{namespace:X,useColors:G}=this;if(G){let Y=this.color,J="\x1B[3"+(Y<8?Y:"8;5;"+Y),W=` ${J};1m${X} \x1B[0m`;$[0]=W+$[0].split(`
53
+ `)$.content=$.content.slice(1)}if(OH($,G),G.sections===!0||typeof G.section==="function")Nw($,G.section);return $}R1.engines=ww;R1.stringify=function($,X,G){if(typeof $==="string")$=R1($,G);return Vw($,X,G)};R1.read=function($,X){let G=Bw.readFileSync($,"utf8"),Y=R1(G,X);return Y.path=$,Y};R1.test=function($,X){return ZH.startsWith($,P$(X).delimiters[0])};R1.language=function($,X){let Y=P$(X).delimiters[0];if(R1.test($))$=$.slice(Y.length);let J=$.slice(0,$.search(/\r?\n/));return{raw:J,name:J?J.trim():""}};R1.cache={};R1.clearCache=function(){R1.cache={}};RH.exports=R1});var AH=()=>{};function N($,X){Pw(Boolean($),!1,!0,"ok","Expected value to be truthy",X)}function Pw($,X,G,Y,J,W){if(!$)throw W instanceof Error?W:new BH(W||J,X,G,Y,!W)}var BH;var R0=B(()=>{AH();BH=class BH extends Error{name="Assertion";code="ERR_ASSERTION";constructor($,X,G,Y,J){super($);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.actual=X,this.expected=G,this.generated=J,this.operator=Y}}});function D5($,X){let G=X||Lw,Y=typeof G.includeImageAlt==="boolean"?G.includeImageAlt:!0,J=typeof G.includeHtml==="boolean"?G.includeHtml:!0;return VH($,Y,J)}function VH($,X,G){if(Cw($)){if("value"in $)return $.type==="html"&&!G?"":$.value;if(X&&"alt"in $&&$.alt)return $.alt;if("children"in $)return NH($.children,X,G)}if(Array.isArray($))return NH($,X,G);return""}function NH($,X,G){let Y=[],J=-1;while(++J<$.length)Y[J]=VH($[J],X,G);return Y.join("")}function Cw($){return Boolean($&&typeof $==="object")}var Lw;var wH=B(()=>{Lw={}});var r8=B(()=>{wH()});var C$;var _H=B(()=>{C$={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\uD835\uDD04",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\uD835\uDD38",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\uD835\uDC9C",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\uD835\uDC9E",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\uD835\uDD3B",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\uD835\uDC9F",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\uD835\uDD08",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\uD835\uDD3C",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\uD835\uDD09",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\uD835\uDD3D",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\uD835\uDD0A",Gg:"\u22D9",Gopf:"\uD835\uDD3E",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\uD835\uDCA2",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\uD835\uDD40",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\uD835\uDD0F",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\uD835\uDD43",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\uD835\uDD10",MinusPlus:"\u2213",Mopf:"\uD835\uDD44",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
54
+ `,Nfr:"\uD835\uDD11",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\uD835\uDCA9",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\uD835\uDD12",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\uD835\uDCAA",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\uD835\uDD13",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\uD835\uDCAB",Psi:"\u03A8",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"\u211A",Qscr:"\uD835\uDCAC",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\uD835\uDD16",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\uD835\uDD4A",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\uD835\uDCAE",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:"\t",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\uD835\uDD17",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\uD835\uDD4B",TripleDot:"\u20DB",Tscr:"\uD835\uDCAF",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\uD835\uDD18",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\uD835\uDD4C",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\uD835\uDCB0",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"\u039E",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\uD835\uDCB5",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\uD835\uDD1E",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\uD835\uDD52",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\uD835\uDCB6",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\uD835\uDD1F",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\uD835\uDD53",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\uD835\uDCB7",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\uD835\uDD20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\uD835\uDD54",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\uD835\uDCB8",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\uD835\uDD21",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\uD835\uDD55",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\uD835\uDCB9",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\uD835\uDD22",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\uD835\uDD56",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\uD835\uDD23",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\uD835\uDD57",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\uD835\uDCBB",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\uD835\uDD24",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\uD835\uDD58",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\uD835\uDD25",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\uD835\uDD59",horbar:"\u2015",hscr:"\uD835\uDCBD",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\uD835\uDD26",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\uD835\uDD5A",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\uD835\uDCBE",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\uD835\uDD27",jmath:"\u0237",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\uD835\uDD28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\uD835\uDD29",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\uD835\uDD5D",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\uD835\uDCC1",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\uD835\uDD2A",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\uD835\uDD5E",mp:"\u2213",mscr:"\uD835\uDCC2",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\uD835\uDD2B",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\uD835\uDD5F",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\uD835\uDCC3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\uD835\uDD2C",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\uD835\uDD60",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\uD835\uDD2D",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\uD835\uDD61",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\uD835\uDCC5",psi:"\u03C8",puncsp:"\u2008",qfr:"\uD835\uDD2E",qint:"\u2A0C",qopf:"\uD835\uDD62",qprime:"\u2057",qscr:"\uD835\uDCC6",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\uD835\uDD2F",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\uD835\uDD63",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\uD835\uDCC7",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\uD835\uDD30",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\uD835\uDD64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\uD835\uDCC8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\uD835\uDD31",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\uD835\uDD65",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\uD835\uDCC9",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\uD835\uDD32",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\uD835\uDD66",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\uD835\uDCCA",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\uD835\uDD67",vprop:"\u221D",vrtri:"\u22B3",vscr:"\uD835\uDCCB",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\uD835\uDCCC",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\uD835\uDD35",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\uD835\uDD69",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\uD835\uDCCD",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\uD835\uDD36",yicy:"\u0457",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\uD835\uDD37",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"\u200D",zwnj:"\u200C"}});function H2($){return Tw.call(C$,$)?C$[$]:!1}var Tw;var i8=B(()=>{_H();Tw={}.hasOwnProperty});var A;var zH=B(()=>{A={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533}});var I;var DH=B(()=>{I={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}});var Z;var PH=B(()=>{Z={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"}});var j1;var LH=B(()=>{j1={ht:"\t",lf:`
55
+ `,cr:"\r",space:" ",exclamationMark:"!",quotationMark:'"',numberSign:"#",dollarSign:"$",percentSign:"%",ampersand:"&",apostrophe:"'",leftParenthesis:"(",rightParenthesis:")",asterisk:"*",plusSign:"+",comma:",",dash:"-",dot:".",slash:"/",digit0:"0",digit1:"1",digit2:"2",digit3:"3",digit4:"4",digit5:"5",digit6:"6",digit7:"7",digit8:"8",digit9:"9",colon:":",semicolon:";",lessThan:"<",equalsTo:"=",greaterThan:">",questionMark:"?",atSign:"@",uppercaseA:"A",uppercaseB:"B",uppercaseC:"C",uppercaseD:"D",uppercaseE:"E",uppercaseF:"F",uppercaseG:"G",uppercaseH:"H",uppercaseI:"I",uppercaseJ:"J",uppercaseK:"K",uppercaseL:"L",uppercaseM:"M",uppercaseN:"N",uppercaseO:"O",uppercaseP:"P",uppercaseQ:"Q",uppercaseR:"R",uppercaseS:"S",uppercaseT:"T",uppercaseU:"U",uppercaseV:"V",uppercaseW:"W",uppercaseX:"X",uppercaseY:"Y",uppercaseZ:"Z",leftSquareBracket:"[",backslash:"\\",rightSquareBracket:"]",caret:"^",underscore:"_",graveAccent:"`",lowercaseA:"a",lowercaseB:"b",lowercaseC:"c",lowercaseD:"d",lowercaseE:"e",lowercaseF:"f",lowercaseG:"g",lowercaseH:"h",lowercaseI:"i",lowercaseJ:"j",lowercaseK:"k",lowercaseL:"l",lowercaseM:"m",lowercaseN:"n",lowercaseO:"o",lowercaseP:"p",lowercaseQ:"q",lowercaseR:"r",lowercaseS:"s",lowercaseT:"t",lowercaseU:"u",lowercaseV:"v",lowercaseW:"w",lowercaseX:"x",lowercaseY:"y",lowercaseZ:"z",leftCurlyBrace:"{",verticalBar:"|",rightCurlyBrace:"}",tilde:"~",replacementCharacter:"\uFFFD"}});var e=B(()=>{zH();DH();PH();LH()});function t0($,X,G,Y){let J=$.length,W=0,H;if(X<0)X=-X>J?0:J+X;else X=X>J?J:X;if(G=G>0?G:0,Y.length<I.v8MaxSafeChunkSize)H=Array.from(Y),H.unshift(X,G),$.splice(...H);else{if(G)$.splice(X,G);while(W<Y.length)H=Y.slice(W,W+I.v8MaxSafeChunkSize),H.unshift(X,0),$.splice(...H),W+=I.v8MaxSafeChunkSize,X+=I.v8MaxSafeChunkSize}}function A1($,X){if($.length>0)return t0($,$.length,0,X),$;return X}var h6=B(()=>{e()});function TH($){let X={},G=-1;while(++G<$.length)Ew(X,$[G]);return X}function Ew($,X){let G;for(G in X){let J=(CH.call($,G)?$[G]:void 0)||($[G]={}),W=X[G],H;if(W)for(H in W){if(!CH.call(J,H))J[H]=[];let U=W[H];Iw(J[H],Array.isArray(U)?U:U?[U]:[])}}}function Iw($,X){let G=-1,Y=[];while(++G<X.length)(X[G].add==="after"?$:Y).push(X[G]);t0($,0,0,Y)}var CH;var EH=B(()=>{h6();CH={}.hasOwnProperty});function o8($,X){let G=Number.parseInt($,X);if(G<A.ht||G===A.vt||G>A.cr&&G<A.space||G>A.tilde&&G<160||G>55295&&G<57344||G>64975&&G<65008||(G&65535)===65535||(G&65535)===65534||G>1114111)return j1.replacementCharacter;return String.fromCodePoint(G)}var T$=B(()=>{e()});function w6($){return $.replace(/[\t\n\r ]+/g,j1.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}var n8=B(()=>{e()});function A4($){return $!==null&&($<A.space||$===A.del)}function x($){return $!==null&&$<A.horizontalTab}function y0($){return $!==null&&($<A.nul||$===A.space)}function s($){return $===A.horizontalTab||$===A.virtualSpace||$===A.space}function y6($){return X;function X(G){return G!==null&&G>-1&&$.test(String.fromCharCode(G))}}var S1,B1,IH,B4,jH,SH,kH,vH;var N0=B(()=>{e();S1=y6(/[A-Za-z]/),B1=y6(/[\dA-Za-z]/),IH=y6(/[#-'*+\--9=?A-Z^-~]/);B4=y6(/\d/),jH=y6(/[\dA-Fa-f]/),SH=y6(/[!-/:-@[-`{-~]/);kH=y6(/\p{P}|\p{S}/u),vH=y6(/\s/)});function $0($,X,G,Y){let J=Y?Y-1:Number.POSITIVE_INFINITY,W=0;return H;function H(M){if(s(M))return $.enter(G),U(M);return X(M)}function U(M){if(s(M)&&W++<J)return $.consume(M),U;return $.exit(G),X(M)}}var r0=B(()=>{N0()});function jw($){let X=$.attempt(this.parser.constructs.contentInitial,Y,J),G;return X;function Y(U){if(N(U===A.eof||x(U),"expected eol or eof"),U===A.eof){$.consume(U);return}return $.enter(Z.lineEnding),$.consume(U),$.exit(Z.lineEnding),$0($,X,Z.linePrefix)}function J(U){return N(U!==A.eof&&!x(U),"expected anything other than a line ending or EOF"),$.enter(Z.paragraph),W(U)}function W(U){let M=$.enter(Z.chunkText,{contentType:I.contentTypeText,previous:G});if(G)G.next=M;return G=M,H(U)}function H(U){if(U===A.eof){$.exit(Z.chunkText),$.exit(Z.paragraph),$.consume(U);return}if(x(U))return $.consume(U),$.exit(Z.chunkText),W;return $.consume(U),H}}var xH;var bH=B(()=>{R0();r0();N0();e();xH={tokenize:jw}});function Sw($){let X=this,G=[],Y=0,J,W,H;return U;function U(y){if(Y<G.length){let G0=G[Y];return X.containerState=G0[1],N(G0[0].continuation,"expected `continuation` to be defined on container construct"),$.attempt(G0[0].continuation,M,F)(y)}return F(y)}function M(y){if(N(X.containerState,"expected `containerState` to be defined after continuation"),Y++,X.containerState._closeFlow){if(X.containerState._closeFlow=void 0,J)b();let G0=X.events.length,B0=G0,T;while(B0--)if(X.events[B0][0]==="exit"&&X.events[B0][1].type===Z.chunkFlow){T=X.events[B0][1].end;break}N(T,"could not find previous flow chunk"),P(Y);let Z0=G0;while(Z0<X.events.length)X.events[Z0][1].end={...T},Z0++;return t0(X.events,B0+1,0,X.events.slice(G0)),X.events.length=Z0,F(y)}return U(y)}function F(y){if(Y===G.length){if(!J)return R(y);if(J.currentConstruct&&J.currentConstruct.concrete)return _(y);X.interrupt=Boolean(J.currentConstruct&&!J._gfmTableDynamicInterruptHack)}return X.containerState={},$.check(hH,Q,q)(y)}function Q(y){if(J)b();return P(Y),R(y)}function q(y){return X.parser.lazy[X.now().line]=Y!==G.length,H=X.now().offset,_(y)}function R(y){return X.containerState={},$.attempt(hH,O,_)(y)}function O(y){return N(X.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),N(X.containerState,"expected `containerState` to be defined on tokenizer"),Y++,G.push([X.currentConstruct,X.containerState]),R(y)}function _(y){if(y===A.eof){if(J)b();P(0),$.consume(y);return}return J=J||X.parser.flow(X.now()),$.enter(Z.chunkFlow,{_tokenizer:J,contentType:I.contentTypeFlow,previous:W}),z(y)}function z(y){if(y===A.eof){D($.exit(Z.chunkFlow),!0),P(0),$.consume(y);return}if(x(y))return $.consume(y),D($.exit(Z.chunkFlow)),Y=0,X.interrupt=void 0,U;return $.consume(y),z}function D(y,G0){N(J,"expected `childFlow` to be defined when continuing");let B0=X.sliceStream(y);if(G0)B0.push(null);if(y.previous=W,W)W.next=y;if(W=y,J.defineSkip(y.start),J.write(B0),X.parser.lazy[y.start.line]){let T=J.events.length;while(T--)if(J.events[T][1].start.offset<H&&(!J.events[T][1].end||J.events[T][1].end.offset>H))return;let Z0=X.events.length,I0=Z0,q0,w0;while(I0--)if(X.events[I0][0]==="exit"&&X.events[I0][1].type===Z.chunkFlow){if(q0){w0=X.events[I0][1].end;break}q0=!0}N(w0,"could not find previous flow chunk"),P(Y),T=Z0;while(T<X.events.length)X.events[T][1].end={...w0},T++;t0(X.events,I0+1,0,X.events.slice(Z0)),X.events.length=T}}function P(y){let G0=G.length;while(G0-- >y){let B0=G[G0];X.containerState=B0[1],N(B0[0].exit,"expected `exit` to be defined on container construct"),B0[0].exit.call(X,$)}G.length=y}function b(){N(X.containerState,"expected `containerState` to be defined when closing flow"),N(J,"expected `childFlow` to be defined when closing it"),J.write([A.eof]),W=void 0,J=void 0,X.containerState._closeFlow=void 0}}function kw($,X,G){return N(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),$0($,$.attempt(this.parser.constructs.document,X,G),Z.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:I.tabSize)}var yH,hH;var fH=B(()=>{R0();r0();N0();h6();e();yH={tokenize:Sw},hH={tokenize:kw}});function U2($){if($===A.eof||y0($)||vH($))return I.characterGroupWhitespace;if(kH($))return I.characterGroupPunctuation}var E$=B(()=>{N0();e()});function K2($,X,G){let Y=[],J=-1;while(++J<$.length){let W=$[J].resolveAll;if(W&&!Y.includes(W))X=W(X,G),Y.push(W)}return X}function vw($,X){let G=-1,Y,J,W,H,U,M,F,Q;while(++G<$.length)if($[G][0]==="enter"&&$[G][1].type==="attentionSequence"&&$[G][1]._close){Y=G;while(Y--)if($[Y][0]==="exit"&&$[Y][1].type==="attentionSequence"&&$[Y][1]._open&&X.sliceSerialize($[Y][1]).charCodeAt(0)===X.sliceSerialize($[G][1]).charCodeAt(0)){if(($[Y][1]._close||$[G][1]._open)&&($[G][1].end.offset-$[G][1].start.offset)%3&&!(($[Y][1].end.offset-$[Y][1].start.offset+$[G][1].end.offset-$[G][1].start.offset)%3))continue;M=$[Y][1].end.offset-$[Y][1].start.offset>1&&$[G][1].end.offset-$[G][1].start.offset>1?2:1;let q={...$[Y][1].end},R={...$[G][1].start};if(gH(q,-M),gH(R,M),H={type:M>1?Z.strongSequence:Z.emphasisSequence,start:q,end:{...$[Y][1].end}},U={type:M>1?Z.strongSequence:Z.emphasisSequence,start:{...$[G][1].start},end:R},W={type:M>1?Z.strongText:Z.emphasisText,start:{...$[Y][1].end},end:{...$[G][1].start}},J={type:M>1?Z.strong:Z.emphasis,start:{...H.start},end:{...U.end}},$[Y][1].end={...H.start},$[G][1].start={...U.end},F=[],$[Y][1].end.offset-$[Y][1].start.offset)F=A1(F,[["enter",$[Y][1],X],["exit",$[Y][1],X]]);if(F=A1(F,[["enter",J,X],["enter",H,X],["exit",H,X],["enter",W,X]]),N(X.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),F=A1(F,K2(X.parser.constructs.insideSpan.null,$.slice(Y+1,G),X)),F=A1(F,[["exit",W,X],["enter",U,X],["exit",U,X],["exit",J,X]]),$[G][1].end.offset-$[G][1].start.offset)Q=2,F=A1(F,[["enter",$[G][1],X],["exit",$[G][1],X]]);else Q=0;t0($,Y-1,G-Y+3,F),G=Y+F.length-Q-2;break}}G=-1;while(++G<$.length)if($[G][1].type==="attentionSequence")$[G][1].type="data";return $}function xw($,X){let G=this.parser.constructs.attentionMarkers.null,Y=this.previous,J=U2(Y),W;return H;function H(M){return N(M===A.asterisk||M===A.underscore,"expected asterisk or underscore"),W=M,$.enter("attentionSequence"),U(M)}function U(M){if(M===W)return $.consume(M),U;let F=$.exit("attentionSequence"),Q=U2(M);N(G,"expected `attentionMarkers` to be populated");let q=!Q||Q===I.characterGroupPunctuation&&J||G.includes(M),R=!J||J===I.characterGroupPunctuation&&Q||G.includes(Y);return F._open=Boolean(W===A.asterisk?q:q&&(J||!R)),F._close=Boolean(W===A.asterisk?R:R&&(Q||!q)),X(M)}}function gH($,X){$.column+=X,$.offset+=X,$._bufferIndex+=X}var N4;var mH=B(()=>{R0();h6();E$();e();N4={name:"attention",resolveAll:vw,tokenize:xw}});function bw($,X,G){let Y=0;return J;function J(O){return N(O===A.lessThan,"expected `<`"),$.enter(Z.autolink),$.enter(Z.autolinkMarker),$.consume(O),$.exit(Z.autolinkMarker),$.enter(Z.autolinkProtocol),W}function W(O){if(S1(O))return $.consume(O),H;if(O===A.atSign)return G(O);return F(O)}function H(O){if(O===A.plusSign||O===A.dash||O===A.dot||B1(O))return Y=1,U(O);return F(O)}function U(O){if(O===A.colon)return $.consume(O),Y=0,M;if((O===A.plusSign||O===A.dash||O===A.dot||B1(O))&&Y++<I.autolinkSchemeSizeMax)return $.consume(O),U;return Y=0,F(O)}function M(O){if(O===A.greaterThan)return $.exit(Z.autolinkProtocol),$.enter(Z.autolinkMarker),$.consume(O),$.exit(Z.autolinkMarker),$.exit(Z.autolink),X;if(O===A.eof||O===A.space||O===A.lessThan||A4(O))return G(O);return $.consume(O),M}function F(O){if(O===A.atSign)return $.consume(O),Q;if(IH(O))return $.consume(O),F;return G(O)}function Q(O){return B1(O)?q(O):G(O)}function q(O){if(O===A.dot)return $.consume(O),Y=0,Q;if(O===A.greaterThan)return $.exit(Z.autolinkProtocol).type=Z.autolinkEmail,$.enter(Z.autolinkMarker),$.consume(O),$.exit(Z.autolinkMarker),$.exit(Z.autolink),X;return R(O)}function R(O){if((O===A.dash||B1(O))&&Y++<I.autolinkDomainSizeMax){let _=O===A.dash?R:q;return $.consume(O),_}return G(O)}}var I$;var pH=B(()=>{R0();N0();e();I$={name:"autolink",tokenize:bw}});function hw($,X,G){return Y;function Y(W){return s(W)?$0($,J,Z.linePrefix)(W):J(W)}function J(W){return W===A.eof||x(W)?X(W):G(W)}}var f6;var s8=B(()=>{r0();N0();e();f6={partial:!0,tokenize:hw}});function yw($,X,G){let Y=this;return J;function J(H){if(H===A.greaterThan){let U=Y.containerState;if(N(U,"expected `containerState` to be defined in container"),!U.open)$.enter(Z.blockQuote,{_container:!0}),U.open=!0;return $.enter(Z.blockQuotePrefix),$.enter(Z.blockQuoteMarker),$.consume(H),$.exit(Z.blockQuoteMarker),W}return G(H)}function W(H){if(s(H))return $.enter(Z.blockQuotePrefixWhitespace),$.consume(H),$.exit(Z.blockQuotePrefixWhitespace),$.exit(Z.blockQuotePrefix),X;return $.exit(Z.blockQuotePrefix),X(H)}}function fw($,X,G){let Y=this;return J;function J(H){if(s(H))return N(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),$0($,W,Z.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:I.tabSize)(H);return W(H)}function W(H){return $.attempt(a8,X,G)(H)}}function gw($){$.exit(Z.blockQuote)}var a8;var uH=B(()=>{R0();r0();N0();e();a8={continuation:{tokenize:fw},exit:gw,name:"blockQuote",tokenize:yw}});function mw($,X,G){return Y;function Y(W){return N(W===A.backslash,"expected `\\`"),$.enter(Z.characterEscape),$.enter(Z.escapeMarker),$.consume(W),$.exit(Z.escapeMarker),J}function J(W){if(SH(W))return $.enter(Z.characterEscapeValue),$.consume(W),$.exit(Z.characterEscapeValue),$.exit(Z.characterEscape),X;return G(W)}}var t8;var dH=B(()=>{R0();N0();e();t8={name:"characterEscape",tokenize:mw}});function pw($,X,G){let Y=this,J=0,W,H;return U;function U(q){return N(q===A.ampersand,"expected `&`"),$.enter(Z.characterReference),$.enter(Z.characterReferenceMarker),$.consume(q),$.exit(Z.characterReferenceMarker),M}function M(q){if(q===A.numberSign)return $.enter(Z.characterReferenceMarkerNumeric),$.consume(q),$.exit(Z.characterReferenceMarkerNumeric),F;return $.enter(Z.characterReferenceValue),W=I.characterReferenceNamedSizeMax,H=B1,Q(q)}function F(q){if(q===A.uppercaseX||q===A.lowercaseX)return $.enter(Z.characterReferenceMarkerHexadecimal),$.consume(q),$.exit(Z.characterReferenceMarkerHexadecimal),$.enter(Z.characterReferenceValue),W=I.characterReferenceHexadecimalSizeMax,H=jH,Q;return $.enter(Z.characterReferenceValue),W=I.characterReferenceDecimalSizeMax,H=B4,Q(q)}function Q(q){if(q===A.semicolon&&J){let R=$.exit(Z.characterReferenceValue);if(H===B1&&!H2(Y.sliceSerialize(R)))return G(q);return $.enter(Z.characterReferenceMarker),$.consume(q),$.exit(Z.characterReferenceMarker),$.exit(Z.characterReference),X}if(H(q)&&J++<W)return $.consume(q),Q;return G(q)}}var e8;var lH=B(()=>{R0();i8();N0();e();e8={name:"characterReference",tokenize:pw}});function uw($,X,G){let Y=this,J={partial:!0,tokenize:B0},W=0,H=0,U;return M;function M(T){return F(T)}function F(T){N(T===A.graveAccent||T===A.tilde,"expected `` ` `` or `~`");let Z0=Y.events[Y.events.length-1];return W=Z0&&Z0[1].type===Z.linePrefix?Z0[2].sliceSerialize(Z0[1],!0).length:0,U=T,$.enter(Z.codeFenced),$.enter(Z.codeFencedFence),$.enter(Z.codeFencedFenceSequence),Q(T)}function Q(T){if(T===U)return H++,$.consume(T),Q;if(H<I.codeFencedSequenceSizeMin)return G(T);return $.exit(Z.codeFencedFenceSequence),s(T)?$0($,q,Z.whitespace)(T):q(T)}function q(T){if(T===A.eof||x(T))return $.exit(Z.codeFencedFence),Y.interrupt?X(T):$.check(cH,z,G0)(T);return $.enter(Z.codeFencedFenceInfo),$.enter(Z.chunkString,{contentType:I.contentTypeString}),R(T)}function R(T){if(T===A.eof||x(T))return $.exit(Z.chunkString),$.exit(Z.codeFencedFenceInfo),q(T);if(s(T))return $.exit(Z.chunkString),$.exit(Z.codeFencedFenceInfo),$0($,O,Z.whitespace)(T);if(T===A.graveAccent&&T===U)return G(T);return $.consume(T),R}function O(T){if(T===A.eof||x(T))return q(T);return $.enter(Z.codeFencedFenceMeta),$.enter(Z.chunkString,{contentType:I.contentTypeString}),_(T)}function _(T){if(T===A.eof||x(T))return $.exit(Z.chunkString),$.exit(Z.codeFencedFenceMeta),q(T);if(T===A.graveAccent&&T===U)return G(T);return $.consume(T),_}function z(T){return N(x(T),"expected eol"),$.attempt(J,G0,D)(T)}function D(T){return N(x(T),"expected eol"),$.enter(Z.lineEnding),$.consume(T),$.exit(Z.lineEnding),P}function P(T){return W>0&&s(T)?$0($,b,Z.linePrefix,W+1)(T):b(T)}function b(T){if(T===A.eof||x(T))return $.check(cH,z,G0)(T);return $.enter(Z.codeFlowValue),y(T)}function y(T){if(T===A.eof||x(T))return $.exit(Z.codeFlowValue),b(T);return $.consume(T),y}function G0(T){return $.exit(Z.codeFenced),X(T)}function B0(T,Z0,I0){let q0=0;return w0;function w0(t){return N(x(t),"expected eol"),T.enter(Z.lineEnding),T.consume(t),T.exit(Z.lineEnding),J1}function J1(t){return N(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),T.enter(Z.codeFencedFence),s(t)?$0(T,d,Z.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:I.tabSize)(t):d(t)}function d(t){if(t===U)return T.enter(Z.codeFencedFenceSequence),f(t);return I0(t)}function f(t){if(t===U)return q0++,T.consume(t),f;if(q0>=H)return T.exit(Z.codeFencedFenceSequence),s(t)?$0(T,o,Z.whitespace)(t):o(t);return I0(t)}function o(t){if(t===A.eof||x(t))return T.exit(Z.codeFencedFence),Z0(t);return I0(t)}}}function dw($,X,G){let Y=this;return J;function J(H){if(H===A.eof)return G(H);return N(x(H),"expected eol"),$.enter(Z.lineEnding),$.consume(H),$.exit(Z.lineEnding),W}function W(H){return Y.parser.lazy[Y.now().line]?G(H):X(H)}}var cH,$9;var rH=B(()=>{R0();r0();N0();e();cH={partial:!0,tokenize:dw},$9={concrete:!0,name:"codeFenced",tokenize:uw}});function cw($,X,G){let Y=this;return J;function J(F){return N(s(F)),$.enter(Z.codeIndented),$0($,W,Z.linePrefix,I.tabSize+1)(F)}function W(F){let Q=Y.events[Y.events.length-1];return Q&&Q[1].type===Z.linePrefix&&Q[2].sliceSerialize(Q[1],!0).length>=I.tabSize?H(F):G(F)}function H(F){if(F===A.eof)return M(F);if(x(F))return $.attempt(lw,H,M)(F);return $.enter(Z.codeFlowValue),U(F)}function U(F){if(F===A.eof||x(F))return $.exit(Z.codeFlowValue),H(F);return $.consume(F),U}function M(F){return $.exit(Z.codeIndented),X(F)}}function rw($,X,G){let Y=this;return J;function J(H){if(Y.parser.lazy[Y.now().line])return G(H);if(x(H))return $.enter(Z.lineEnding),$.consume(H),$.exit(Z.lineEnding),J;return $0($,W,Z.linePrefix,I.tabSize+1)(H)}function W(H){let U=Y.events[Y.events.length-1];return U&&U[1].type===Z.linePrefix&&U[2].sliceSerialize(U[1],!0).length>=I.tabSize?X(H):x(H)?J(H):G(H)}}var V4,lw;var iH=B(()=>{R0();r0();N0();e();V4={name:"codeIndented",tokenize:cw},lw={partial:!0,tokenize:rw}});function iw($){let X=$.length-4,G=3,Y,J;if(($[G][1].type===Z.lineEnding||$[G][1].type==="space")&&($[X][1].type===Z.lineEnding||$[X][1].type==="space")){Y=G;while(++Y<X)if($[Y][1].type===Z.codeTextData){$[G][1].type=Z.codeTextPadding,$[X][1].type=Z.codeTextPadding,G+=2,X-=2;break}}Y=G-1,X++;while(++Y<=X)if(J===void 0){if(Y!==X&&$[Y][1].type!==Z.lineEnding)J=Y}else if(Y===X||$[Y][1].type===Z.lineEnding){if($[J][1].type=Z.codeTextData,Y!==J+2)$[J][1].end=$[Y-1][1].end,$.splice(J+2,Y-J-2),X-=Y-J-2,Y=J+2;J=void 0}return $}function oH($){return $!==A.graveAccent||this.events[this.events.length-1][1].type===Z.characterEscape}function ow($,X,G){let Y=this,J=0,W,H;return U;function U(R){return N(R===A.graveAccent,"expected `` ` ``"),N(oH.call(Y,Y.previous),"expected correct previous"),$.enter(Z.codeText),$.enter(Z.codeTextSequence),M(R)}function M(R){if(R===A.graveAccent)return $.consume(R),J++,M;return $.exit(Z.codeTextSequence),F(R)}function F(R){if(R===A.eof)return G(R);if(R===A.space)return $.enter("space"),$.consume(R),$.exit("space"),F;if(R===A.graveAccent)return H=$.enter(Z.codeTextSequence),W=0,q(R);if(x(R))return $.enter(Z.lineEnding),$.consume(R),$.exit(Z.lineEnding),F;return $.enter(Z.codeTextData),Q(R)}function Q(R){if(R===A.eof||R===A.space||R===A.graveAccent||x(R))return $.exit(Z.codeTextData),F(R);return $.consume(R),Q}function q(R){if(R===A.graveAccent)return $.consume(R),W++,q;if(W===J)return $.exit(Z.codeTextSequence),$.exit(Z.codeText),X(R);return H.type=Z.codeTextData,Q(R)}}var j$;var nH=B(()=>{R0();N0();e();j$={name:"codeText",previous:oH,resolve:iw,tokenize:ow}});class S${constructor($){this.left=$?[...$]:[],this.right=[]}get($){if($<0||$>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+$+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if($<this.left.length)return this.left[$];return this.right[this.right.length-$+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice($,X){let G=X===null||X===void 0?Number.POSITIVE_INFINITY:X;if(G<this.left.length)return this.left.slice($,G);if($>this.left.length)return this.right.slice(this.right.length-G+this.left.length,this.right.length-$+this.left.length).reverse();return this.left.slice($).concat(this.right.slice(this.right.length-G+this.left.length).reverse())}splice($,X,G){let Y=X||0;this.setCursor(Math.trunc($));let J=this.right.splice(this.right.length-Y,Number.POSITIVE_INFINITY);if(G)w4(this.left,G);return J.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push($){this.setCursor(Number.POSITIVE_INFINITY),this.left.push($)}pushMany($){this.setCursor(Number.POSITIVE_INFINITY),w4(this.left,$)}unshift($){this.setCursor(0),this.right.push($)}unshiftMany($){this.setCursor(0),w4(this.right,$.reverse())}setCursor($){if($===this.left.length||$>this.left.length&&this.right.length===0||$<0&&this.left.length===0)return;if($<this.left.length){let X=this.left.splice($,Number.POSITIVE_INFINITY);w4(this.right,X.reverse())}else{let X=this.right.splice(this.left.length+this.right.length-$,Number.POSITIVE_INFINITY);w4(this.left,X.reverse())}}}function w4($,X){let G=0;if(X.length<I.v8MaxSafeChunkSize)$.push(...X);else while(G<X.length)$.push(...X.slice(G,G+I.v8MaxSafeChunkSize)),G+=I.v8MaxSafeChunkSize}var sH=B(()=>{e()});function X9($){let X={},G=-1,Y,J,W,H,U,M,F,Q=new S$($);while(++G<Q.length){while(G in X)G=X[G];if(Y=Q.get(G),G&&Y[1].type===Z.chunkFlow&&Q.get(G-1)[1].type===Z.listItemPrefix){if(N(Y[1]._tokenizer,"expected `_tokenizer` on subtokens"),M=Y[1]._tokenizer.events,W=0,W<M.length&&M[W][1].type===Z.lineEndingBlank)W+=2;if(W<M.length&&M[W][1].type===Z.content)while(++W<M.length){if(M[W][1].type===Z.content)break;if(M[W][1].type===Z.chunkText)M[W][1]._isInFirstContentOfListItem=!0,W++}}if(Y[0]==="enter"){if(Y[1].contentType)Object.assign(X,nw(Q,G)),G=X[G],F=!0}else if(Y[1]._container){W=G,J=void 0;while(W--)if(H=Q.get(W),H[1].type===Z.lineEnding||H[1].type===Z.lineEndingBlank){if(H[0]==="enter"){if(J)Q.get(J)[1].type=Z.lineEndingBlank;H[1].type=Z.lineEnding,J=W}}else if(H[1].type===Z.linePrefix||H[1].type===Z.listItemIndent);else break;if(J)Y[1].end={...Q.get(J)[1].start},U=Q.slice(J,G),U.unshift(Y),Q.splice(J,G-J+1,U)}}return t0($,0,Number.POSITIVE_INFINITY,Q.slice(0)),!F}function nw($,X){let G=$.get(X)[1],Y=$.get(X)[2],J=X-1,W=[];N(G.contentType,"expected `contentType` on subtokens");let H=G._tokenizer;if(!H){if(H=Y.parser[G.contentType](G.start),G._contentTypeTextTrailing)H._contentTypeTextTrailing=!0}let U=H.events,M=[],F={},Q,q,R=-1,O=G,_=0,z=0,D=[z];while(O){while($.get(++J)[1]!==O);if(N(!q||O.previous===q,"expected previous to match"),N(!q||q.next===O,"expected next to match"),W.push(J),!O._tokenizer){if(Q=Y.sliceStream(O),!O.next)Q.push(A.eof);if(q)H.defineSkip(O.start);if(O._isInFirstContentOfListItem)H._gfmTasklistFirstContentOfListItem=!0;if(H.write(Q),O._isInFirstContentOfListItem)H._gfmTasklistFirstContentOfListItem=void 0}q=O,O=O.next}O=G;while(++R<U.length)if(U[R][0]==="exit"&&U[R-1][0]==="enter"&&U[R][1].type===U[R-1][1].type&&U[R][1].start.line!==U[R][1].end.line)N(O,"expected a current token"),z=R+1,D.push(z),O._tokenizer=void 0,O.previous=void 0,O=O.next;if(H.events=[],O)O._tokenizer=void 0,O.previous=void 0,N(!O.next,"expected no next token");else D.pop();R=D.length;while(R--){let P=U.slice(D[R],D[R+1]),b=W.pop();N(b!==void 0,"expected a start position when splicing"),M.push([b,b+P.length-1]),$.splice(b,2,P)}M.reverse(),R=-1;while(++R<M.length)F[_+M[R][0]]=_+M[R][1],_+=M[R][1]-M[R][0]-1;return F}var k$=B(()=>{R0();h6();e();sH()});function aw($){return X9($),$}function tw($,X){let G;return Y;function Y(U){return N(U!==A.eof&&!x(U),"expected no eof or eol"),$.enter(Z.content),G=$.enter(Z.chunkContent,{contentType:I.contentTypeContent}),J(U)}function J(U){if(U===A.eof)return W(U);if(x(U))return $.check(sw,H,W)(U);return $.consume(U),J}function W(U){return $.exit(Z.chunkContent),$.exit(Z.content),X(U)}function H(U){return N(x(U),"expected eol"),$.consume(U),$.exit(Z.chunkContent),N(G,"expected previous token"),G.next=$.enter(Z.chunkContent,{contentType:I.contentTypeContent,previous:G}),G=G.next,J}}function ew($,X,G){let Y=this;return J;function J(H){return N(x(H),"expected a line ending"),$.exit(Z.chunkContent),$.enter(Z.lineEnding),$.consume(H),$.exit(Z.lineEnding),$0($,W,Z.linePrefix)}function W(H){if(H===A.eof||x(H))return G(H);N(Y.parser.constructs.disable.null,"expected `disable.null` to be populated");let U=Y.events[Y.events.length-1];if(!Y.parser.constructs.disable.null.includes("codeIndented")&&U&&U[1].type===Z.linePrefix&&U[2].sliceSerialize(U[1],!0).length>=I.tabSize)return X(H);return $.interrupt(Y.parser.constructs.flow,G,X)(H)}}var v$,sw;var aH=B(()=>{R0();r0();N0();k$();e();v$={resolve:aw,tokenize:tw},sw={partial:!0,tokenize:ew}});function G9($,X,G,Y,J,W,H,U,M){let F=M||Number.POSITIVE_INFINITY,Q=0;return q;function q(P){if(P===A.lessThan)return $.enter(Y),$.enter(J),$.enter(W),$.consume(P),$.exit(W),R;if(P===A.eof||P===A.space||P===A.rightParenthesis||A4(P))return G(P);return $.enter(Y),$.enter(H),$.enter(U),$.enter(Z.chunkString,{contentType:I.contentTypeString}),z(P)}function R(P){if(P===A.greaterThan)return $.enter(W),$.consume(P),$.exit(W),$.exit(J),$.exit(Y),X;return $.enter(U),$.enter(Z.chunkString,{contentType:I.contentTypeString}),O(P)}function O(P){if(P===A.greaterThan)return $.exit(Z.chunkString),$.exit(U),R(P);if(P===A.eof||P===A.lessThan||x(P))return G(P);return $.consume(P),P===A.backslash?_:O}function _(P){if(P===A.lessThan||P===A.greaterThan||P===A.backslash)return $.consume(P),O;return O(P)}function z(P){if(!Q&&(P===A.eof||P===A.rightParenthesis||y0(P)))return $.exit(Z.chunkString),$.exit(U),$.exit(H),$.exit(Y),X(P);if(Q<F&&P===A.leftParenthesis)return $.consume(P),Q++,z;if(P===A.rightParenthesis)return $.consume(P),Q--,z;if(P===A.eof||P===A.space||P===A.leftParenthesis||A4(P))return G(P);return $.consume(P),P===A.backslash?D:z}function D(P){if(P===A.leftParenthesis||P===A.rightParenthesis||P===A.backslash)return $.consume(P),z;return z(P)}}var x$=B(()=>{N0();e()});function Y9($,X,G,Y,J,W){let H=this,U=0,M;return F;function F(O){return N(O===A.leftSquareBracket,"expected `[`"),$.enter(Y),$.enter(J),$.consume(O),$.exit(J),$.enter(W),Q}function Q(O){if(U>I.linkReferenceSizeMax||O===A.eof||O===A.leftSquareBracket||O===A.rightSquareBracket&&!M||O===A.caret&&!U&&"_hiddenFootnoteSupport"in H.parser.constructs)return G(O);if(O===A.rightSquareBracket)return $.exit(W),$.enter(J),$.consume(O),$.exit(J),$.exit(Y),X;if(x(O))return $.enter(Z.lineEnding),$.consume(O),$.exit(Z.lineEnding),Q;return $.enter(Z.chunkString,{contentType:I.contentTypeString}),q(O)}function q(O){if(O===A.eof||O===A.leftSquareBracket||O===A.rightSquareBracket||x(O)||U++>I.linkReferenceSizeMax)return $.exit(Z.chunkString),Q(O);if($.consume(O),!M)M=!s(O);return O===A.backslash?R:q}function R(O){if(O===A.leftSquareBracket||O===A.backslash||O===A.rightSquareBracket)return $.consume(O),U++,q;return q(O)}}var b$=B(()=>{R0();N0();e()});function J9($,X,G,Y,J,W){let H;return U;function U(R){if(R===A.quotationMark||R===A.apostrophe||R===A.leftParenthesis)return $.enter(Y),$.enter(J),$.consume(R),$.exit(J),H=R===A.leftParenthesis?A.rightParenthesis:R,M;return G(R)}function M(R){if(R===H)return $.enter(J),$.consume(R),$.exit(J),$.exit(Y),X;return $.enter(W),F(R)}function F(R){if(R===H)return $.exit(W),M(H);if(R===A.eof)return G(R);if(x(R))return $.enter(Z.lineEnding),$.consume(R),$.exit(Z.lineEnding),$0($,F,Z.linePrefix);return $.enter(Z.chunkString,{contentType:I.contentTypeString}),Q(R)}function Q(R){if(R===H||R===A.eof||x(R))return $.exit(Z.chunkString),F(R);return $.consume(R),R===A.backslash?q:Q}function q(R){if(R===H||R===A.backslash)return $.consume(R),Q;return Q(R)}}var h$=B(()=>{r0();N0();e()});function P5($,X){let G;return Y;function Y(J){if(x(J))return $.enter(Z.lineEnding),$.consume(J),$.exit(Z.lineEnding),G=!0,Y;if(s(J))return $0($,Y,G?Z.linePrefix:Z.lineSuffix)(J);return X(J)}}var y$=B(()=>{r0();N0();e()});function X_($,X,G){let Y=this,J;return W;function W(O){return $.enter(Z.definition),H(O)}function H(O){return N(O===A.leftSquareBracket,"expected `[`"),Y9.call(Y,$,U,G,Z.definitionLabel,Z.definitionLabelMarker,Z.definitionLabelString)(O)}function U(O){if(J=w6(Y.sliceSerialize(Y.events[Y.events.length-1][1]).slice(1,-1)),O===A.colon)return $.enter(Z.definitionMarker),$.consume(O),$.exit(Z.definitionMarker),M;return G(O)}function M(O){return y0(O)?P5($,F)(O):F(O)}function F(O){return G9($,Q,G,Z.definitionDestination,Z.definitionDestinationLiteral,Z.definitionDestinationLiteralMarker,Z.definitionDestinationRaw,Z.definitionDestinationString)(O)}function Q(O){return $.attempt($_,q,q)(O)}function q(O){return s(O)?$0($,R,Z.whitespace)(O):R(O)}function R(O){if(O===A.eof||x(O))return $.exit(Z.definition),Y.parser.defined.push(J),X(O);return G(O)}}function G_($,X,G){return Y;function Y(U){return y0(U)?P5($,J)(U):G(U)}function J(U){return J9($,W,G,Z.definitionTitle,Z.definitionTitleMarker,Z.definitionTitleString)(U)}function W(U){return s(U)?$0($,H,Z.whitespace)(U):H(U)}function H(U){return U===A.eof||x(U)?X(U):G(U)}}var f$,$_;var tH=B(()=>{R0();x$();b$();r0();h$();y$();N0();n8();e();f$={name:"definition",tokenize:X_},$_={partial:!0,tokenize:G_}});function Y_($,X,G){return Y;function Y(W){return N(W===A.backslash,"expected `\\`"),$.enter(Z.hardBreakEscape),$.consume(W),J}function J(W){if(x(W))return $.exit(Z.hardBreakEscape),X(W);return G(W)}}var g$;var eH=B(()=>{R0();N0();e();g$={name:"hardBreakEscape",tokenize:Y_}});function J_($,X){let G=$.length-2,Y=3,J,W;if($[Y][1].type===Z.whitespace)Y+=2;if(G-2>Y&&$[G][1].type===Z.whitespace)G-=2;if($[G][1].type===Z.atxHeadingSequence&&(Y===G-1||G-4>Y&&$[G-2][1].type===Z.whitespace))G-=Y+1===G?2:4;if(G>Y)J={type:Z.atxHeadingText,start:$[Y][1].start,end:$[G][1].end},W={type:Z.chunkText,start:$[Y][1].start,end:$[G][1].end,contentType:I.contentTypeText},t0($,Y,G-Y+1,[["enter",J,X],["enter",W,X],["exit",W,X],["exit",J,X]]);return $}function W_($,X,G){let Y=0;return J;function J(Q){return $.enter(Z.atxHeading),W(Q)}function W(Q){return N(Q===A.numberSign,"expected `#`"),$.enter(Z.atxHeadingSequence),H(Q)}function H(Q){if(Q===A.numberSign&&Y++<I.atxHeadingOpeningFenceSizeMax)return $.consume(Q),H;if(Q===A.eof||y0(Q))return $.exit(Z.atxHeadingSequence),U(Q);return G(Q)}function U(Q){if(Q===A.numberSign)return $.enter(Z.atxHeadingSequence),M(Q);if(Q===A.eof||x(Q))return $.exit(Z.atxHeading),X(Q);if(s(Q))return $0($,U,Z.whitespace)(Q);return $.enter(Z.atxHeadingText),F(Q)}function M(Q){if(Q===A.numberSign)return $.consume(Q),M;return $.exit(Z.atxHeadingSequence),U(Q)}function F(Q){if(Q===A.eof||Q===A.numberSign||y0(Q))return $.exit(Z.atxHeadingText),U(Q);return $.consume(Q),F}}var m$;var $U=B(()=>{R0();r0();N0();h6();e();m$={name:"headingAtx",resolve:J_,tokenize:W_}});var XU,p$;var GU=B(()=>{XU=["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"],p$=["pre","script","style","textarea"]});function K_($){let X=$.length;while(X--)if($[X][0]==="enter"&&$[X][1].type===Z.htmlFlow)break;if(X>1&&$[X-2][1].type===Z.linePrefix)$[X][1].start=$[X-2][1].start,$[X+1][1].start=$[X-2][1].start,$.splice(X-2,2);return $}function M_($,X,G){let Y=this,J,W,H,U,M;return F;function F(w){return Q(w)}function Q(w){return N(w===A.lessThan,"expected `<`"),$.enter(Z.htmlFlow),$.enter(Z.htmlFlowData),$.consume(w),q}function q(w){if(w===A.exclamationMark)return $.consume(w),R;if(w===A.slash)return $.consume(w),W=!0,z;if(w===A.questionMark)return $.consume(w),J=I.htmlInstruction,Y.interrupt?X:V;if(S1(w))return N(w!==null),$.consume(w),H=String.fromCharCode(w),D;return G(w)}function R(w){if(w===A.dash)return $.consume(w),J=I.htmlComment,O;if(w===A.leftSquareBracket)return $.consume(w),J=I.htmlCdata,U=0,_;if(S1(w))return $.consume(w),J=I.htmlDeclaration,Y.interrupt?X:V;return G(w)}function O(w){if(w===A.dash)return $.consume(w),Y.interrupt?X:V;return G(w)}function _(w){let E1=I.cdataOpeningString;if(w===E1.charCodeAt(U++)){if($.consume(w),U===E1.length)return Y.interrupt?X:d;return _}return G(w)}function z(w){if(S1(w))return N(w!==null),$.consume(w),H=String.fromCharCode(w),D;return G(w)}function D(w){if(w===A.eof||w===A.slash||w===A.greaterThan||y0(w)){let E1=w===A.slash,Z5=H.toLowerCase();if(!E1&&!W&&p$.includes(Z5))return J=I.htmlRaw,Y.interrupt?X(w):d(w);if(XU.includes(H.toLowerCase())){if(J=I.htmlBasic,E1)return $.consume(w),P;return Y.interrupt?X(w):d(w)}return J=I.htmlComplete,Y.interrupt&&!Y.parser.lazy[Y.now().line]?G(w):W?b(w):y(w)}if(w===A.dash||B1(w))return $.consume(w),H+=String.fromCharCode(w),D;return G(w)}function P(w){if(w===A.greaterThan)return $.consume(w),Y.interrupt?X:d;return G(w)}function b(w){if(s(w))return $.consume(w),b;return w0(w)}function y(w){if(w===A.slash)return $.consume(w),w0;if(w===A.colon||w===A.underscore||S1(w))return $.consume(w),G0;if(s(w))return $.consume(w),y;return w0(w)}function G0(w){if(w===A.dash||w===A.dot||w===A.colon||w===A.underscore||B1(w))return $.consume(w),G0;return B0(w)}function B0(w){if(w===A.equalsTo)return $.consume(w),T;if(s(w))return $.consume(w),B0;return y(w)}function T(w){if(w===A.eof||w===A.lessThan||w===A.equalsTo||w===A.greaterThan||w===A.graveAccent)return G(w);if(w===A.quotationMark||w===A.apostrophe)return $.consume(w),M=w,Z0;if(s(w))return $.consume(w),T;return I0(w)}function Z0(w){if(w===M)return $.consume(w),M=null,q0;if(w===A.eof||x(w))return G(w);return $.consume(w),Z0}function I0(w){if(w===A.eof||w===A.quotationMark||w===A.apostrophe||w===A.slash||w===A.lessThan||w===A.equalsTo||w===A.greaterThan||w===A.graveAccent||y0(w))return B0(w);return $.consume(w),I0}function q0(w){if(w===A.slash||w===A.greaterThan||s(w))return y(w);return G(w)}function w0(w){if(w===A.greaterThan)return $.consume(w),J1;return G(w)}function J1(w){if(w===A.eof||x(w))return d(w);if(s(w))return $.consume(w),J1;return G(w)}function d(w){if(w===A.dash&&J===I.htmlComment)return $.consume(w),C0;if(w===A.lessThan&&J===I.htmlRaw)return $.consume(w),k0;if(w===A.greaterThan&&J===I.htmlDeclaration)return $.consume(w),v0;if(w===A.questionMark&&J===I.htmlInstruction)return $.consume(w),V;if(w===A.rightSquareBracket&&J===I.htmlCdata)return $.consume(w),H1;if(x(w)&&(J===I.htmlBasic||J===I.htmlComplete))return $.exit(Z.htmlFlowData),$.check(H_,Z6,f)(w);if(w===A.eof||x(w))return $.exit(Z.htmlFlowData),f(w);return $.consume(w),d}function f(w){return $.check(U_,o,Z6)(w)}function o(w){return N(x(w)),$.enter(Z.lineEnding),$.consume(w),$.exit(Z.lineEnding),t}function t(w){if(w===A.eof||x(w))return f(w);return $.enter(Z.htmlFlowData),d(w)}function C0(w){if(w===A.dash)return $.consume(w),V;return d(w)}function k0(w){if(w===A.slash)return $.consume(w),H="",W1;return d(w)}function W1(w){if(w===A.greaterThan){let E1=H.toLowerCase();if(p$.includes(E1))return $.consume(w),v0;return d(w)}if(S1(w)&&H.length<I.htmlRawSizeMax)return N(w!==null),$.consume(w),H+=String.fromCharCode(w),W1;return d(w)}function H1(w){if(w===A.rightSquareBracket)return $.consume(w),V;return d(w)}function V(w){if(w===A.greaterThan)return $.consume(w),v0;if(w===A.dash&&J===I.htmlComment)return $.consume(w),V;return d(w)}function v0(w){if(w===A.eof||x(w))return $.exit(Z.htmlFlowData),Z6(w);return $.consume(w),v0}function Z6(w){return $.exit(Z.htmlFlow),X(w)}}function F_($,X,G){let Y=this;return J;function J(H){if(x(H))return $.enter(Z.lineEnding),$.consume(H),$.exit(Z.lineEnding),W;return G(H)}function W(H){return Y.parser.lazy[Y.now().line]?G(H):X(H)}}function Q_($,X,G){return Y;function Y(J){return N(x(J),"expected a line ending"),$.enter(Z.lineEnding),$.consume(J),$.exit(Z.lineEnding),$.attempt(f6,X,G)}}var u$,H_,U_;var YU=B(()=>{R0();N0();GU();e();s8();u$={concrete:!0,name:"htmlFlow",resolveTo:K_,tokenize:M_},H_={partial:!0,tokenize:Q_},U_={partial:!0,tokenize:F_}});function q_($,X,G){let Y=this,J,W,H;return U;function U(V){return N(V===A.lessThan,"expected `<`"),$.enter(Z.htmlText),$.enter(Z.htmlTextData),$.consume(V),M}function M(V){if(V===A.exclamationMark)return $.consume(V),F;if(V===A.slash)return $.consume(V),B0;if(V===A.questionMark)return $.consume(V),y;if(S1(V))return $.consume(V),I0;return G(V)}function F(V){if(V===A.dash)return $.consume(V),Q;if(V===A.leftSquareBracket)return $.consume(V),W=0,_;if(S1(V))return $.consume(V),b;return G(V)}function Q(V){if(V===A.dash)return $.consume(V),O;return G(V)}function q(V){if(V===A.eof)return G(V);if(V===A.dash)return $.consume(V),R;if(x(V))return H=q,k0(V);return $.consume(V),q}function R(V){if(V===A.dash)return $.consume(V),O;return q(V)}function O(V){return V===A.greaterThan?C0(V):V===A.dash?R(V):q(V)}function _(V){let v0=I.cdataOpeningString;if(V===v0.charCodeAt(W++))return $.consume(V),W===v0.length?z:_;return G(V)}function z(V){if(V===A.eof)return G(V);if(V===A.rightSquareBracket)return $.consume(V),D;if(x(V))return H=z,k0(V);return $.consume(V),z}function D(V){if(V===A.rightSquareBracket)return $.consume(V),P;return z(V)}function P(V){if(V===A.greaterThan)return C0(V);if(V===A.rightSquareBracket)return $.consume(V),P;return z(V)}function b(V){if(V===A.eof||V===A.greaterThan)return C0(V);if(x(V))return H=b,k0(V);return $.consume(V),b}function y(V){if(V===A.eof)return G(V);if(V===A.questionMark)return $.consume(V),G0;if(x(V))return H=y,k0(V);return $.consume(V),y}function G0(V){return V===A.greaterThan?C0(V):y(V)}function B0(V){if(S1(V))return $.consume(V),T;return G(V)}function T(V){if(V===A.dash||B1(V))return $.consume(V),T;return Z0(V)}function Z0(V){if(x(V))return H=Z0,k0(V);if(s(V))return $.consume(V),Z0;return C0(V)}function I0(V){if(V===A.dash||B1(V))return $.consume(V),I0;if(V===A.slash||V===A.greaterThan||y0(V))return q0(V);return G(V)}function q0(V){if(V===A.slash)return $.consume(V),C0;if(V===A.colon||V===A.underscore||S1(V))return $.consume(V),w0;if(x(V))return H=q0,k0(V);if(s(V))return $.consume(V),q0;return C0(V)}function w0(V){if(V===A.dash||V===A.dot||V===A.colon||V===A.underscore||B1(V))return $.consume(V),w0;return J1(V)}function J1(V){if(V===A.equalsTo)return $.consume(V),d;if(x(V))return H=J1,k0(V);if(s(V))return $.consume(V),J1;return q0(V)}function d(V){if(V===A.eof||V===A.lessThan||V===A.equalsTo||V===A.greaterThan||V===A.graveAccent)return G(V);if(V===A.quotationMark||V===A.apostrophe)return $.consume(V),J=V,f;if(x(V))return H=d,k0(V);if(s(V))return $.consume(V),d;return $.consume(V),o}function f(V){if(V===J)return $.consume(V),J=void 0,t;if(V===A.eof)return G(V);if(x(V))return H=f,k0(V);return $.consume(V),f}function o(V){if(V===A.eof||V===A.quotationMark||V===A.apostrophe||V===A.lessThan||V===A.equalsTo||V===A.graveAccent)return G(V);if(V===A.slash||V===A.greaterThan||y0(V))return q0(V);return $.consume(V),o}function t(V){if(V===A.slash||V===A.greaterThan||y0(V))return q0(V);return G(V)}function C0(V){if(V===A.greaterThan)return $.consume(V),$.exit(Z.htmlTextData),$.exit(Z.htmlText),X;return G(V)}function k0(V){return N(H,"expected return state"),N(x(V),"expected eol"),$.exit(Z.htmlTextData),$.enter(Z.lineEnding),$.consume(V),$.exit(Z.lineEnding),W1}function W1(V){return N(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),s(V)?$0($,H1,Z.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:I.tabSize)(V):H1(V)}function H1(V){return $.enter(Z.htmlTextData),H(V)}}var d$;var JU=B(()=>{R0();r0();N0();e();d$={name:"htmlText",tokenize:q_}});function A_($){let X=-1,G=[];while(++X<$.length){let Y=$[X][1];if(G.push($[X]),Y.type===Z.labelImage||Y.type===Z.labelLink||Y.type===Z.labelEnd){let J=Y.type===Z.labelImage?4:2;Y.type=Z.data,X+=J}}if($.length!==G.length)t0($,0,$.length,G);return $}function B_($,X){let G=$.length,Y=0,J,W,H,U;while(G--)if(J=$[G][1],W){if(J.type===Z.link||J.type===Z.labelLink&&J._inactive)break;if($[G][0]==="enter"&&J.type===Z.labelLink)J._inactive=!0}else if(H){if($[G][0]==="enter"&&(J.type===Z.labelImage||J.type===Z.labelLink)&&!J._balanced){if(W=G,J.type!==Z.labelLink){Y=2;break}}}else if(J.type===Z.labelEnd)H=G;N(W!==void 0,"`open` is supposed to be found"),N(H!==void 0,"`close` is supposed to be found");let M={type:$[W][1].type===Z.labelLink?Z.link:Z.image,start:{...$[W][1].start},end:{...$[$.length-1][1].end}},F={type:Z.label,start:{...$[W][1].start},end:{...$[H][1].end}},Q={type:Z.labelText,start:{...$[W+Y+2][1].end},end:{...$[H-2][1].start}};return U=[["enter",M,X],["enter",F,X]],U=A1(U,$.slice(W+1,W+Y+3)),U=A1(U,[["enter",Q,X]]),N(X.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),U=A1(U,K2(X.parser.constructs.insideSpan.null,$.slice(W+Y+4,H-3),X)),U=A1(U,[["exit",Q,X],$[H-2],$[H-1],["exit",F,X]]),U=A1(U,$.slice(H+1)),U=A1(U,[["exit",M,X]]),t0($,W,$.length,U),$}function N_($,X,G){let Y=this,J=Y.events.length,W,H;while(J--)if((Y.events[J][1].type===Z.labelImage||Y.events[J][1].type===Z.labelLink)&&!Y.events[J][1]._balanced){W=Y.events[J][1];break}return U;function U(R){if(N(R===A.rightSquareBracket,"expected `]`"),!W)return G(R);if(W._inactive)return q(R);return H=Y.parser.defined.includes(w6(Y.sliceSerialize({start:W.end,end:Y.now()}))),$.enter(Z.labelEnd),$.enter(Z.labelMarker),$.consume(R),$.exit(Z.labelMarker),$.exit(Z.labelEnd),M}function M(R){if(R===A.leftParenthesis)return $.attempt(O_,Q,H?Q:q)(R);if(R===A.leftSquareBracket)return $.attempt(Z_,Q,H?F:q)(R);return H?Q(R):q(R)}function F(R){return $.attempt(R_,Q,q)(R)}function Q(R){return X(R)}function q(R){return W._balanced=!0,G(R)}}function V_($,X,G){return Y;function Y(q){return N(q===A.leftParenthesis,"expected left paren"),$.enter(Z.resource),$.enter(Z.resourceMarker),$.consume(q),$.exit(Z.resourceMarker),J}function J(q){return y0(q)?P5($,W)(q):W(q)}function W(q){if(q===A.rightParenthesis)return Q(q);return G9($,H,U,Z.resourceDestination,Z.resourceDestinationLiteral,Z.resourceDestinationLiteralMarker,Z.resourceDestinationRaw,Z.resourceDestinationString,I.linkResourceDestinationBalanceMax)(q)}function H(q){return y0(q)?P5($,M)(q):Q(q)}function U(q){return G(q)}function M(q){if(q===A.quotationMark||q===A.apostrophe||q===A.leftParenthesis)return J9($,F,G,Z.resourceTitle,Z.resourceTitleMarker,Z.resourceTitleString)(q);return Q(q)}function F(q){return y0(q)?P5($,Q)(q):Q(q)}function Q(q){if(q===A.rightParenthesis)return $.enter(Z.resourceMarker),$.consume(q),$.exit(Z.resourceMarker),$.exit(Z.resource),X;return G(q)}}function w_($,X,G){let Y=this;return J;function J(U){return N(U===A.leftSquareBracket,"expected left bracket"),Y9.call(Y,$,W,H,Z.reference,Z.referenceMarker,Z.referenceString)(U)}function W(U){return Y.parser.defined.includes(w6(Y.sliceSerialize(Y.events[Y.events.length-1][1]).slice(1,-1)))?X(U):G(U)}function H(U){return G(U)}}function __($,X,G){return Y;function Y(W){return N(W===A.leftSquareBracket,"expected left bracket"),$.enter(Z.reference),$.enter(Z.referenceMarker),$.consume(W),$.exit(Z.referenceMarker),J}function J(W){if(W===A.rightSquareBracket)return $.enter(Z.referenceMarker),$.consume(W),$.exit(Z.referenceMarker),$.exit(Z.reference),X;return G(W)}}var L5,O_,Z_,R_;var W9=B(()=>{R0();x$();b$();h$();y$();N0();h6();n8();e();L5={name:"labelEnd",resolveAll:A_,resolveTo:B_,tokenize:N_},O_={tokenize:V_},Z_={tokenize:w_},R_={tokenize:__}});function z_($,X,G){let Y=this;return J;function J(U){return N(U===A.exclamationMark,"expected `!`"),$.enter(Z.labelImage),$.enter(Z.labelImageMarker),$.consume(U),$.exit(Z.labelImageMarker),W}function W(U){if(U===A.leftSquareBracket)return $.enter(Z.labelMarker),$.consume(U),$.exit(Z.labelMarker),$.exit(Z.labelImage),H;return G(U)}function H(U){return U===A.caret&&"_hiddenFootnoteSupport"in Y.parser.constructs?G(U):X(U)}}var l$;var WU=B(()=>{R0();e();W9();l$={name:"labelStartImage",resolveAll:L5.resolveAll,tokenize:z_}});function D_($,X,G){let Y=this;return J;function J(H){return N(H===A.leftSquareBracket,"expected `[`"),$.enter(Z.labelLink),$.enter(Z.labelMarker),$.consume(H),$.exit(Z.labelMarker),$.exit(Z.labelLink),W}function W(H){return H===A.caret&&"_hiddenFootnoteSupport"in Y.parser.constructs?G(H):X(H)}}var c$;var HU=B(()=>{R0();e();W9();c$={name:"labelStartLink",resolveAll:L5.resolveAll,tokenize:D_}});function P_($,X){return G;function G(Y){return N(x(Y),"expected eol"),$.enter(Z.lineEnding),$.consume(Y),$.exit(Z.lineEnding),$0($,X,Z.linePrefix)}}var _4;var UU=B(()=>{R0();r0();N0();e();_4={name:"lineEnding",tokenize:P_}});function L_($,X,G){let Y=0,J;return W;function W(F){return $.enter(Z.thematicBreak),H(F)}function H(F){return N(F===A.asterisk||F===A.dash||F===A.underscore,"expected `*`, `-`, or `_`"),J=F,U(F)}function U(F){if(F===J)return $.enter(Z.thematicBreakSequence),M(F);if(Y>=I.thematicBreakMarkerCountMin&&(F===A.eof||x(F)))return $.exit(Z.thematicBreak),X(F);return G(F)}function M(F){if(F===J)return $.consume(F),Y++,M;return $.exit(Z.thematicBreakSequence),s(F)?$0($,U,Z.whitespace)(F):U(F)}}var C5;var r$=B(()=>{R0();r0();N0();e();C5={name:"thematicBreak",tokenize:L_}});function E_($,X,G){let Y=this,J=Y.events[Y.events.length-1],W=J&&J[1].type===Z.linePrefix?J[2].sliceSerialize(J[1],!0).length:0,H=0;return U;function U(O){N(Y.containerState,"expected state");let _=Y.containerState.type||(O===A.asterisk||O===A.plusSign||O===A.dash?Z.listUnordered:Z.listOrdered);if(_===Z.listUnordered?!Y.containerState.marker||O===Y.containerState.marker:B4(O)){if(!Y.containerState.type)Y.containerState.type=_,$.enter(_,{_container:!0});if(_===Z.listUnordered)return $.enter(Z.listItemPrefix),O===A.asterisk||O===A.dash?$.check(C5,G,F)(O):F(O);if(!Y.interrupt||O===A.digit1)return $.enter(Z.listItemPrefix),$.enter(Z.listItemValue),M(O)}return G(O)}function M(O){if(N(Y.containerState,"expected state"),B4(O)&&++H<I.listItemValueSizeMax)return $.consume(O),M;if((!Y.interrupt||H<2)&&(Y.containerState.marker?O===Y.containerState.marker:O===A.rightParenthesis||O===A.dot))return $.exit(Z.listItemValue),F(O);return G(O)}function F(O){return N(Y.containerState,"expected state"),N(O!==A.eof,"eof (`null`) is not a marker"),$.enter(Z.listItemMarker),$.consume(O),$.exit(Z.listItemMarker),Y.containerState.marker=Y.containerState.marker||O,$.check(f6,Y.interrupt?G:Q,$.attempt(C_,R,q))}function Q(O){return N(Y.containerState,"expected state"),Y.containerState.initialBlankLine=!0,W++,R(O)}function q(O){if(s(O))return $.enter(Z.listItemPrefixWhitespace),$.consume(O),$.exit(Z.listItemPrefixWhitespace),R;return G(O)}function R(O){return N(Y.containerState,"expected state"),Y.containerState.size=W+Y.sliceSerialize($.exit(Z.listItemPrefix),!0).length,X(O)}}function I_($,X,G){let Y=this;return N(Y.containerState,"expected state"),Y.containerState._closeFlow=void 0,$.check(f6,J,W);function J(U){return N(Y.containerState,"expected state"),N(typeof Y.containerState.size==="number","expected size"),Y.containerState.furtherBlankLines=Y.containerState.furtherBlankLines||Y.containerState.initialBlankLine,$0($,X,Z.listItemIndent,Y.containerState.size+1)(U)}function W(U){if(N(Y.containerState,"expected state"),Y.containerState.furtherBlankLines||!s(U))return Y.containerState.furtherBlankLines=void 0,Y.containerState.initialBlankLine=void 0,H(U);return Y.containerState.furtherBlankLines=void 0,Y.containerState.initialBlankLine=void 0,$.attempt(T_,X,H)(U)}function H(U){return N(Y.containerState,"expected state"),Y.containerState._closeFlow=!0,Y.interrupt=void 0,N(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),$0($,$.attempt(K1,X,G),Z.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:I.tabSize)(U)}}function j_($,X,G){let Y=this;return N(Y.containerState,"expected state"),N(typeof Y.containerState.size==="number","expected size"),$0($,J,Z.listItemIndent,Y.containerState.size+1);function J(W){N(Y.containerState,"expected state");let H=Y.events[Y.events.length-1];return H&&H[1].type===Z.listItemIndent&&H[2].sliceSerialize(H[1],!0).length===Y.containerState.size?X(W):G(W)}}function S_($){N(this.containerState,"expected state"),N(typeof this.containerState.type==="string","expected type"),$.exit(this.containerState.type)}function k_($,X,G){let Y=this;return N(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),$0($,J,Z.listItemPrefixWhitespace,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:I.tabSize+1);function J(W){let H=Y.events[Y.events.length-1];return!s(W)&&H&&H[1].type===Z.listItemPrefixWhitespace?X(W):G(W)}}var K1,C_,T_;var KU=B(()=>{R0();r0();N0();e();s8();r$();K1={continuation:{tokenize:I_},exit:S_,name:"list",tokenize:E_},C_={partial:!0,tokenize:k_},T_={partial:!0,tokenize:j_}});function v_($,X){let G=$.length,Y,J,W;while(G--)if($[G][0]==="enter"){if($[G][1].type===Z.content){Y=G;break}if($[G][1].type===Z.paragraph)J=G}else{if($[G][1].type===Z.content)$.splice(G,1);if(!W&&$[G][1].type===Z.definition)W=G}N(J!==void 0,"expected a `text` index to be found"),N(Y!==void 0,"expected a `text` index to be found"),N($[Y][2]===X,"enter context should be same"),N($[$.length-1][2]===X,"enter context should be same");let H={type:Z.setextHeading,start:{...$[Y][1].start},end:{...$[$.length-1][1].end}};if($[J][1].type=Z.setextHeadingText,W)$.splice(J,0,["enter",H,X]),$.splice(W+1,0,["exit",$[Y][1],X]),$[Y][1].end={...$[W][1].end};else $[Y][1]=H;return $.push(["exit",H,X]),$}function x_($,X,G){let Y=this,J;return W;function W(F){let Q=Y.events.length,q;N(F===A.dash||F===A.equalsTo,"expected `=` or `-`");while(Q--)if(Y.events[Q][1].type!==Z.lineEnding&&Y.events[Q][1].type!==Z.linePrefix&&Y.events[Q][1].type!==Z.content){q=Y.events[Q][1].type===Z.paragraph;break}if(!Y.parser.lazy[Y.now().line]&&(Y.interrupt||q))return $.enter(Z.setextHeadingLine),J=F,H(F);return G(F)}function H(F){return $.enter(Z.setextHeadingLineSequence),U(F)}function U(F){if(F===J)return $.consume(F),U;return $.exit(Z.setextHeadingLineSequence),s(F)?$0($,M,Z.lineSuffix)(F):M(F)}function M(F){if(F===A.eof||x(F))return $.exit(Z.setextHeadingLine),X(F);return G(F)}}var H9;var MU=B(()=>{R0();r0();N0();e();H9={name:"setextUnderline",resolveTo:v_,tokenize:x_}});var i$=B(()=>{mH();pH();s8();uH();dH();lH();rH();iH();nH();aH();tH();eH();$U();YU();JU();W9();WU();HU();UU();KU();MU();r$()});function b_($){let X=this,G=$.attempt(f6,Y,$.attempt(this.parser.constructs.flowInitial,J,$0($,$.attempt(this.parser.constructs.flow,J,$.attempt(v$,J)),Z.linePrefix)));return G;function Y(W){if(N(W===A.eof||x(W),"expected eol or eof"),W===A.eof){$.consume(W);return}return $.enter(Z.lineEndingBlank),$.consume(W),$.exit(Z.lineEndingBlank),X.currentConstruct=void 0,G}function J(W){if(N(W===A.eof||x(W),"expected eol or eof"),W===A.eof){$.consume(W);return}return $.enter(Z.lineEnding),$.consume(W),$.exit(Z.lineEnding),X.currentConstruct=void 0,G}}var FU;var QU=B(()=>{R0();i$();r0();N0();e();FU={tokenize:b_}});function RU($){return{resolveAll:AU($==="text"?h_:void 0),tokenize:X};function X(G){let Y=this,J=this.parser.constructs[$],W=G.attempt(J,H,U);return H;function H(Q){return F(Q)?W(Q):U(Q)}function U(Q){if(Q===A.eof){G.consume(Q);return}return G.enter(Z.data),G.consume(Q),M}function M(Q){if(F(Q))return G.exit(Z.data),W(Q);return G.consume(Q),M}function F(Q){if(Q===A.eof)return!0;let q=J[Q],R=-1;if(q){N(Array.isArray(q),"expected `disable.null` to be populated");while(++R<q.length){let O=q[R];if(!O.previous||O.previous.call(Y,Y.previous))return!0}}return!1}}}function AU($){return X;function X(G,Y){let J=-1,W;while(++J<=G.length)if(W===void 0){if(G[J]&&G[J][1].type===Z.data)W=J,J++}else if(!G[J]||G[J][1].type!==Z.data){if(J!==W+2)G[W][1].end=G[J-1][1].end,G.splice(W+2,J-W-2),J=W+2;W=void 0}return $?$(G,Y):G}}function h_($,X){let G=0;while(++G<=$.length)if((G===$.length||$[G][1].type===Z.lineEnding)&&$[G-1][1].type===Z.data){let Y=$[G-1][1],J=X.sliceStream(Y),W=J.length,H=-1,U=0,M;while(W--){let F=J[W];if(typeof F==="string"){H=F.length;while(F.charCodeAt(H-1)===A.space)U++,H--;if(H)break;H=-1}else if(F===A.horizontalTab)M=!0,U++;else if(F===A.virtualSpace);else{W++;break}}if(X._contentTypeTextTrailing&&G===$.length)U=0;if(U){let F={type:G===$.length||M||U<I.hardBreakPrefixSizeMin?Z.lineSuffix:Z.hardBreakTrailing,start:{_bufferIndex:W?H:Y.start._bufferIndex+H,_index:Y.start._index+W,line:Y.end.line,column:Y.end.column-U,offset:Y.end.offset-U},end:{...Y.end}};if(Y.end={...F.start},Y.start.offset===Y.end.offset)Object.assign(Y,F);else $.splice(G,0,["enter",F,X],["exit",F,X]),G+=2}G++}return $}var qU,OU,ZU;var o$=B(()=>{R0();e();qU={resolveAll:AU()},OU=RU("string"),ZU=RU("text")});var n$={};v8(n$,{text:()=>u_,string:()=>p_,insideSpan:()=>d_,flowInitial:()=>g_,flow:()=>m_,document:()=>y_,disable:()=>c_,contentInitial:()=>f_,attentionMarkers:()=>l_});var y_,f_,g_,m_,p_,u_,d_,l_,c_;var BU=B(()=>{i$();e();o$();y_={[A.asterisk]:K1,[A.plusSign]:K1,[A.dash]:K1,[A.digit0]:K1,[A.digit1]:K1,[A.digit2]:K1,[A.digit3]:K1,[A.digit4]:K1,[A.digit5]:K1,[A.digit6]:K1,[A.digit7]:K1,[A.digit8]:K1,[A.digit9]:K1,[A.greaterThan]:a8},f_={[A.leftSquareBracket]:f$},g_={[A.horizontalTab]:V4,[A.virtualSpace]:V4,[A.space]:V4},m_={[A.numberSign]:m$,[A.asterisk]:C5,[A.dash]:[H9,C5],[A.lessThan]:u$,[A.equalsTo]:H9,[A.underscore]:C5,[A.graveAccent]:$9,[A.tilde]:$9},p_={[A.ampersand]:e8,[A.backslash]:t8},u_={[A.carriageReturn]:_4,[A.lineFeed]:_4,[A.carriageReturnLineFeed]:_4,[A.exclamationMark]:l$,[A.ampersand]:e8,[A.asterisk]:N4,[A.lessThan]:[I$,d$],[A.leftSquareBracket]:c$,[A.backslash]:[g$,t8],[A.rightSquareBracket]:L5,[A.underscore]:N4,[A.graveAccent]:j$},d_={null:[N4,qU]},l_={null:[A.asterisk,A.underscore]},c_={null:[]}});var VU=l((xh,NU)=>{var M2=1000,F2=M2*60,Q2=F2*60,T5=Q2*24,r_=T5*7,i_=T5*365.25;NU.exports=function($,X){X=X||{};var G=typeof $;if(G==="string"&&$.length>0)return o_($);else if(G==="number"&&isFinite($))return X.long?s_($):n_($);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify($))};function o_($){if($=String($),$.length>100)return;var X=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec($);if(!X)return;var G=parseFloat(X[1]),Y=(X[2]||"ms").toLowerCase();switch(Y){case"years":case"year":case"yrs":case"yr":case"y":return G*i_;case"weeks":case"week":case"w":return G*r_;case"days":case"day":case"d":return G*T5;case"hours":case"hour":case"hrs":case"hr":case"h":return G*Q2;case"minutes":case"minute":case"mins":case"min":case"m":return G*F2;case"seconds":case"second":case"secs":case"sec":case"s":return G*M2;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return G;default:return}}function n_($){var X=Math.abs($);if(X>=T5)return Math.round($/T5)+"d";if(X>=Q2)return Math.round($/Q2)+"h";if(X>=F2)return Math.round($/F2)+"m";if(X>=M2)return Math.round($/M2)+"s";return $+"ms"}function s_($){var X=Math.abs($);if(X>=T5)return U9($,X,T5,"day");if(X>=Q2)return U9($,X,Q2,"hour");if(X>=F2)return U9($,X,F2,"minute");if(X>=M2)return U9($,X,M2,"second");return $+" ms"}function U9($,X,G,Y){var J=X>=G*1.5;return Math.round($/G)+" "+Y+(J?"s":"")}});var s$=l((bh,wU)=>{function a_($){G.debug=G,G.default=G,G.coerce=M,G.disable=H,G.enable=J,G.enabled=U,G.humanize=VU(),G.destroy=F,Object.keys($).forEach((Q)=>{G[Q]=$[Q]}),G.names=[],G.skips=[],G.formatters={};function X(Q){let q=0;for(let R=0;R<Q.length;R++)q=(q<<5)-q+Q.charCodeAt(R),q|=0;return G.colors[Math.abs(q)%G.colors.length]}G.selectColor=X;function G(Q){let q,R=null,O,_;function z(...D){if(!z.enabled)return;let P=z,b=Number(new Date),y=b-(q||b);if(P.diff=y,P.prev=q,P.curr=b,q=b,D[0]=G.coerce(D[0]),typeof D[0]!=="string")D.unshift("%O");let G0=0;D[0]=D[0].replace(/%([a-zA-Z%])/g,(T,Z0)=>{if(T==="%%")return"%";G0++;let I0=G.formatters[Z0];if(typeof I0==="function"){let q0=D[G0];T=I0.call(P,q0),D.splice(G0,1),G0--}return T}),G.formatArgs.call(P,D),(P.log||G.log).apply(P,D)}if(z.namespace=Q,z.useColors=G.useColors(),z.color=G.selectColor(Q),z.extend=Y,z.destroy=G.destroy,Object.defineProperty(z,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(R!==null)return R;if(O!==G.namespaces)O=G.namespaces,_=G.enabled(Q);return _},set:(D)=>{R=D}}),typeof G.init==="function")G.init(z);return z}function Y(Q,q){let R=G(this.namespace+(typeof q>"u"?":":q)+Q);return R.log=this.log,R}function J(Q){G.save(Q),G.namespaces=Q,G.names=[],G.skips=[];let q=(typeof Q==="string"?Q:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let R of q)if(R[0]==="-")G.skips.push(R.slice(1));else G.names.push(R)}function W(Q,q){let R=0,O=0,_=-1,z=0;while(R<Q.length)if(O<q.length&&(q[O]===Q[R]||q[O]==="*"))if(q[O]==="*")_=O,z=R,O++;else R++,O++;else if(_!==-1)O=_+1,z++,R=z;else return!1;while(O<q.length&&q[O]==="*")O++;return O===q.length}function H(){let Q=[...G.names,...G.skips.map((q)=>"-"+q)].join(",");return G.enable(""),Q}function U(Q){for(let q of G.skips)if(W(Q,q))return!1;for(let q of G.names)if(W(Q,q))return!0;return!1}function M(Q){if(Q instanceof Error)return Q.stack||Q.message;return Q}function F(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return G.enable(G.load()),G}wU.exports=a_});var zU=l((_U,K9)=>{_U.formatArgs=e_;_U.save=$z;_U.load=Xz;_U.useColors=t_;_U.storage=Gz();_U.destroy=(()=>{let $=!1;return()=>{if(!$)$=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();_U.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function t_(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let $;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&($=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt($[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function e_($){if($[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+$[0]+(this.useColors?"%c ":" ")+"+"+K9.exports.humanize(this.diff),!this.useColors)return;let X="color: "+this.color;$.splice(1,0,X,"color: inherit");let G=0,Y=0;$[0].replace(/%[a-zA-Z%]/g,(J)=>{if(J==="%%")return;if(G++,J==="%c")Y=G}),$.splice(Y,0,X)}_U.log=console.debug||console.log||(()=>{});function $z($){try{if($)_U.storage.setItem("debug",$);else _U.storage.removeItem("debug")}catch(X){}}function Xz(){let $;try{$=_U.storage.getItem("debug")||_U.storage.getItem("DEBUG")}catch(X){}if(!$&&typeof process<"u"&&"env"in process)$=process.env.DEBUG;return $}function Gz(){try{return localStorage}catch($){}}K9.exports=s$()(_U);var{formatters:Yz}=K9.exports;Yz.j=function($){try{return JSON.stringify($)}catch(X){return"[UnexpectedJSONParseError]: "+X.message}}});var PU=l((yh,DU)=>{DU.exports=($,X=process.argv)=>{let G=$.startsWith("-")?"":$.length===1?"-":"--",Y=X.indexOf(G+$),J=X.indexOf("--");return Y!==-1&&(J===-1||Y<J)}});var TU=l((fh,CU)=>{var Qz=N6("os"),LU=N6("tty"),y1=PU(),{env:i0}=process,g6;if(y1("no-color")||y1("no-colors")||y1("color=false")||y1("color=never"))g6=0;else if(y1("color")||y1("colors")||y1("color=true")||y1("color=always"))g6=1;if("FORCE_COLOR"in i0)if(i0.FORCE_COLOR==="true")g6=1;else if(i0.FORCE_COLOR==="false")g6=0;else g6=i0.FORCE_COLOR.length===0?1:Math.min(parseInt(i0.FORCE_COLOR,10),3);function a$($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function t$($,X){if(g6===0)return 0;if(y1("color=16m")||y1("color=full")||y1("color=truecolor"))return 3;if(y1("color=256"))return 2;if($&&!X&&g6===void 0)return 0;let G=g6||0;if(i0.TERM==="dumb")return G;if(process.platform==="win32"){let Y=Qz.release().split(".");if(Number(Y[0])>=10&&Number(Y[2])>=10586)return Number(Y[2])>=14931?3:2;return 1}if("CI"in i0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((Y)=>(Y in i0))||i0.CI_NAME==="codeship")return 1;return G}if("TEAMCITY_VERSION"in i0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i0.TEAMCITY_VERSION)?1:0;if(i0.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i0){let Y=parseInt((i0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i0.TERM_PROGRAM){case"iTerm.app":return Y>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i0.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i0.TERM))return 1;if("COLORTERM"in i0)return 1;return G}function qz($){let X=t$($,$&&$.isTTY);return a$(X)}CU.exports={supportsColor:qz,stdout:a$(t$(!0,LU.isatty(1))),stderr:a$(t$(!0,LU.isatty(2)))}});var SU=l((IU,F9)=>{var Oz=N6("tty"),M9=N6("util");IU.init=wz;IU.log=Bz;IU.formatArgs=Rz;IU.save=Nz;IU.load=Vz;IU.useColors=Zz;IU.destroy=M9.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");IU.colors=[6,2,3,4,5,1];try{let $=TU();if($&&($.stderr||$).level>=2)IU.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch($){}IU.inspectOpts=Object.keys(process.env).filter(($)=>{return/^debug_/i.test($)}).reduce(($,X)=>{let G=X.substring(6).toLowerCase().replace(/_([a-z])/g,(J,W)=>{return W.toUpperCase()}),Y=process.env[X];if(/^(yes|on|true|enabled)$/i.test(Y))Y=!0;else if(/^(no|off|false|disabled)$/i.test(Y))Y=!1;else if(Y==="null")Y=null;else Y=Number(Y);return $[G]=Y,$},{});function Zz(){return"colors"in IU.inspectOpts?Boolean(IU.inspectOpts.colors):Oz.isatty(process.stderr.fd)}function Rz($){let{namespace:X,useColors:G}=this;if(G){let Y=this.color,J="\x1B[3"+(Y<8?Y:"8;5;"+Y),W=` ${J};1m${X} \x1B[0m`;$[0]=W+$[0].split(`
56
56
  `).join(`
57
57
  `+W),$.push(J+"m+"+F9.exports.humanize(this.diff)+"\x1B[0m")}else $[0]=Az()+X+" "+$[0]}function Az(){if(IU.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function Bz(...$){return process.stderr.write(M9.formatWithOptions(IU.inspectOpts,...$)+`
58
58
  `)}function Nz($){if($)process.env.DEBUG=$;else delete process.env.DEBUG}function Vz(){return process.env.DEBUG}function wz($){$.inspectOpts={};let X=Object.keys(IU.inspectOpts);for(let G=0;G<X.length;G++)$.inspectOpts[X[G]]=IU.inspectOpts[X[G]]}F9.exports=s$()(IU);var{formatters:EU}=F9.exports;EU.o=function($){return this.inspectOpts.colors=this.useColors,M9.inspect($,this.inspectOpts).split(`
59
- `).map((X)=>X.trim()).join(" ")};EU.O=function($){return this.inspectOpts.colors=this.useColors,M9.inspect($,this.inspectOpts)}});var kU=l((mh,e$)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)e$.exports=zU();else e$.exports=SU()});function xU($,X,G){let Y={_bufferIndex:-1,_index:0,line:G&&G.line||1,column:G&&G.column||1,offset:G&&G.offset||0},J={},W=[],H=[],U=[],M=!0,F={attempt:q0(Z0),check:q0(I0),consume:G0,enter:B0,exit:T,interrupt:q0(I0,{interrupt:!0})},Q={code:A.eof,containerState:{},defineSkip:P,events:[],now:D,parser:$,previous:A.eof,sliceSerialize:_,sliceStream:z,write:O},q=X.tokenize.call(Q,F),R;if(X.resolveAll)W.push(X);return Q;function O(f){if(H=A1(H,f),b(),H[H.length-1]!==A.eof)return[];return w0(X,0),Q.events=K5(W,Q.events,Q),Q.events}function _(f,o){return Iz(z(f),o)}function z(f){return Ez(H,f)}function D(){let{_bufferIndex:f,_index:o,line:t,column:C0,offset:k0}=Y;return{_bufferIndex:f,_index:o,line:t,column:C0,offset:k0}}function P(f){J[f.line]=f.column,d(),I6("position: define skip: `%j`",Y)}function b(){let f;while(Y._index<H.length){let o=H[Y._index];if(typeof o==="string"){if(f=Y._index,Y._bufferIndex<0)Y._bufferIndex=0;while(Y._index===f&&Y._bufferIndex<o.length)y(o.charCodeAt(Y._bufferIndex))}else y(o)}}function y(f){N(M===!0,"expected character to be consumed"),M=void 0,I6("main: passing `%s` to %s",f,q&&q.name),R=f,N(typeof q==="function","expected state"),q=q(f)}function G0(f){if(N(f===R,"expected given code to equal expected code"),I6("consume: `%s`",f),N(M===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),N(f===null?Q.events.length===0||Q.events[Q.events.length-1][0]==="exit":Q.events[Q.events.length-1][0]==="enter","expected last token to be open"),x(f))Y.line++,Y.column=1,Y.offset+=f===A.carriageReturnLineFeed?2:1,d(),I6("position: after eol: `%j`",Y);else if(f!==A.virtualSpace)Y.column++,Y.offset++;if(Y._bufferIndex<0)Y._index++;else if(Y._bufferIndex++,Y._bufferIndex===H[Y._index].length)Y._bufferIndex=-1,Y._index++;Q.previous=f,M=!0}function B0(f,o){let t=o||{};return t.type=f,t.start=D(),N(typeof f==="string","expected string type"),N(f.length>0,"expected non-empty string"),I6("enter: `%s`",f),Q.events.push(["enter",t,Q]),U.push(t),t}function T(f){N(typeof f==="string","expected string type"),N(f.length>0,"expected non-empty string");let o=U.pop();return N(o,"cannot close w/o open tokens"),o.end=D(),N(f===o.type,"expected exit token to match current token"),N(!(o.start._index===o.end._index&&o.start._bufferIndex===o.end._bufferIndex),"expected non-empty token (`"+f+"`)"),I6("exit: `%s`",o.type),Q.events.push(["exit",o,Q]),o}function Z0(f,o){w0(f,o.from)}function I0(f,o){o.restore()}function q0(f,o){return t;function t(C0,k0,W1){let H1,V,v0,Z2;return Array.isArray(C0)?E1(C0):("tokenize"in C0)?E1([C0]):w(C0);function w(d0){return W4;function W4(R2){let R6=R2!==null&&d0[R2],n6=R2!==null&&d0.null,X$=[...Array.isArray(R6)?R6:R6?[R6]:[],...Array.isArray(n6)?n6:n6?[n6]:[]];return E1(X$)(R2)}}function E1(d0){if(H1=d0,V=0,d0.length===0)return N(W1,"expected `bogusState` to be given"),W1;return Z6(d0[V])}function Z6(d0){return W4;function W4(R2){if(Z2=J1(),v0=d0,!d0.partial)Q.currentConstruct=d0;if(N(Q.parser.constructs.disable.null,"expected `disable.null` to be populated"),d0.name&&Q.parser.constructs.disable.null.includes(d0.name))return S8(R2);return d0.tokenize.call(o?Object.assign(Object.create(Q),o):Q,F,$$,S8)(R2)}}function $$(d0){return N(d0===R,"expected code"),M=!0,f(v0,Z2),k0}function S8(d0){if(N(d0===R,"expected code"),M=!0,Z2.restore(),++V<H1.length)return Z6(H1[V]);return W1}}}function w0(f,o){if(f.resolveAll&&!W.includes(f))W.push(f);if(f.resolve)t0(Q.events,o,Q.events.length-o,f.resolve(Q.events.slice(o),Q));if(f.resolveTo)Q.events=f.resolveTo(Q.events,Q);N(f.partial||Q.events.length===0||Q.events[Q.events.length-1][0]==="exit","expected last token to end")}function J1(){let f=D(),o=Q.previous,t=Q.currentConstruct,C0=Q.events.length,k0=Array.from(U);return{from:C0,restore:W1};function W1(){Y=f,Q.previous=o,Q.currentConstruct=t,Q.events.length=C0,U=k0,d(),I6("position: restore: `%j`",Y)}}function d(){if(Y.line in J&&Y.column<2)Y.column=J[Y.line],Y.offset+=J[Y.line]-1}}function Ez($,X){let G=X.start._index,Y=X.start._bufferIndex,J=X.end._index,W=X.end._bufferIndex,H;if(G===J)N(W>-1,"expected non-negative end buffer index"),N(Y>-1,"expected non-negative start buffer index"),H=[$[G].slice(Y,W)];else{if(H=$.slice(G,J),Y>-1){let U=H[0];if(typeof U==="string")H[0]=U.slice(Y);else N(Y===0,"expected `startBufferIndex` to be `0`"),H.shift()}if(W>0)H.push($[J].slice(0,W))}return H}function Iz($,X){let G=-1,Y=[],J;while(++G<$.length){let W=$[G],H;if(typeof W==="string")H=W;else switch(W){case A.carriageReturn:{H=j1.cr;break}case A.lineFeed:{H=j1.lf;break}case A.carriageReturnLineFeed:{H=j1.cr+j1.lf;break}case A.horizontalTab:{H=X?j1.space:j1.ht;break}case A.virtualSpace:{if(!X&&J)continue;H=j1.space;break}default:N(typeof W==="number","expected number"),H=String.fromCharCode(W)}J=W===A.horizontalTab,Y.push(H)}return Y.join("")}var vU,I6;var bU=B(()=>{R0();N0();h2();e();vU=k8(kU(),1),I6=vU.default("micromark")});function $X($){let Y={constructs:TH([n$,...($||{}).extensions||[]]),content:J(xH),defined:[],document:J(yH),flow:J(FU),lazy:{},string:J(OU),text:J(ZU)};return Y;function J(W){return H;function H(U){return xU(Y,W,U)}}}var hU=B(()=>{EH();bH();fH();QU();o$();BU();bU()});function XX($){while(!X9($));return $}var yU=B(()=>{k$()});function GX(){let $=1,X="",G=!0,Y;return J;function J(W,H,U){let M=[],F,Q,q,R,O;if(W=X+(typeof W==="string"?W.toString():new TextDecoder(H||void 0).decode(W)),q=0,X="",G){if(W.charCodeAt(0)===A.byteOrderMarker)q++;G=void 0}while(q<W.length){if(fU.lastIndex=q,F=fU.exec(W),R=F&&F.index!==void 0?F.index:W.length,O=W.charCodeAt(R),!F){X=W.slice(q);break}if(O===A.lf&&q===R&&Y)M.push(A.carriageReturnLineFeed),Y=void 0;else{if(Y)M.push(A.carriageReturn),Y=void 0;if(q<R)M.push(W.slice(q,R)),$+=R-q;switch(O){case A.nul:{M.push(A.replacementCharacter),$++;break}case A.ht:{Q=Math.ceil($/I.tabSize)*I.tabSize,M.push(A.horizontalTab);while($++<Q)M.push(A.virtualSpace);break}case A.lf:{M.push(A.lineFeed),$=1;break}default:Y=!0,$=1}}q=R+1}if(U){if(Y)M.push(A.carriageReturn);if(X)M.push(X);M.push(A.eof)}return M}}var fU;var gU=B(()=>{e();fU=/[\0\t\n\r]/g});var mU=B(()=>{hU();yU();gU()});function Q9($){return $.replace(jz,Sz)}function Sz($,X,G){if(X)return X;if(G.charCodeAt(0)===A.numberSign){let J=G.charCodeAt(1),W=J===A.lowercaseX||J===A.uppercaseX;return o8(G.slice(W?2:1),W?I.numericBaseHexadecimal:I.numericBaseDecimal)}return H5(G)||$}var jz;var YX=B(()=>{i8();T$();e();jz=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi});function m2($){if(!$||typeof $!=="object")return"";if("position"in $||"type"in $)return pU($.position);if("start"in $||"end"in $)return pU($);if("line"in $||"column"in $)return JX($);return""}function JX($){return uU($&&$.line)+":"+uU($&&$.column)}function pU($){return JX($&&$.start)+"-"+JX($&&$.end)}function uU($){return $&&typeof $==="number"?$:1}var WX=()=>{};function HX($,X,G){if(X&&typeof X==="object")G=X,X=void 0;return kz(G)(XX($X(G).document().write(GX()($,X,!0))))}function kz($){let X={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:W(aY),autolinkProtocol:q0,autolinkEmail:q0,atxHeading:W(oY),blockQuote:W(R2),characterEscape:q0,characterReference:q0,codeFenced:W(R6),codeFencedFenceInfo:H,codeFencedFenceMeta:H,codeIndented:W(R6,H),codeText:W(n6,H),codeTextData:q0,data:q0,codeFlowValue:q0,definition:W(X$),definitionDestinationString:H,definitionLabelString:H,definitionTitleString:H,emphasis:W(JA),hardBreakEscape:W(nY),hardBreakTrailing:W(nY),htmlFlow:W(sY,H),htmlFlowData:q0,htmlText:W(sY,H),htmlTextData:q0,image:W(WA),label:H,link:W(aY),listItem:W(HA),listItemValue:R,listOrdered:W(tY,q),listUnordered:W(tY),paragraph:W(UA),reference:w,referenceString:H,resourceDestinationString:H,resourceTitleString:H,setextHeading:W(oY),strong:W(KA),thematicBreak:W(FA)},exit:{atxHeading:M(),atxHeadingSequence:B0,autolink:M(),autolinkEmail:W4,autolinkProtocol:d0,blockQuote:M(),characterEscapeValue:w0,characterReferenceMarkerHexadecimal:Z6,characterReferenceMarkerNumeric:Z6,characterReferenceValue:$$,characterReference:S8,codeFenced:M(D),codeFencedFence:z,codeFencedFenceInfo:O,codeFencedFenceMeta:_,codeFlowValue:w0,codeIndented:M(P),codeText:M(t),codeTextData:w0,data:w0,definition:M(),definitionDestinationString:G0,definitionLabelString:b,definitionTitleString:y,emphasis:M(),hardBreakEscape:M(d),hardBreakTrailing:M(d),htmlFlow:M(f),htmlFlowData:w0,htmlText:M(o),htmlTextData:w0,image:M(k0),label:H1,labelText:W1,lineEnding:J1,link:M(C0),listItem:M(),listOrdered:M(),listUnordered:M(),paragraph:M(),referenceString:E1,resourceDestinationString:V,resourceTitleString:v0,resource:Z2,setextHeading:M(I0),setextHeadingLineSequence:Z0,setextHeadingText:T,strong:M(),thematicBreak:M()}};cU(X,($||{}).mdastExtensions||[]);let G={};return Y;function Y(L){let C={type:"root",children:[]},g={stack:[C],tokenStack:[],config:X,enter:U,exit:F,buffer:H,resume:Q,data:G},F0=[],_0=-1;while(++_0<L.length)if(L[_0][1].type===Z.listOrdered||L[_0][1].type===Z.listUnordered)if(L[_0][0]==="enter")F0.push(_0);else{let w1=F0.pop();N(typeof w1==="number","expected list to be open"),_0=J(L,w1,_0)}_0=-1;while(++_0<L.length){let w1=X[L[_0][0]];if(lU.call(w1,L[_0][1].type))w1[L[_0][1].type].call(Object.assign({sliceSerialize:L[_0][2].sliceSerialize},g),L[_0][1])}if(g.tokenStack.length>0){let w1=g.tokenStack[g.tokenStack.length-1];(w1[1]||dU).call(g,void 0,w1[0])}C.position={start:p2(L.length>0?L[0][1].start:{line:1,column:1,offset:0}),end:p2(L.length>0?L[L.length-2][1].end:{line:1,column:1,offset:0})},_0=-1;while(++_0<X.transforms.length)C=X.transforms[_0](C)||C;return C}function J(L,C,g){let F0=C-1,_0=-1,w1=!1,A6,A2,H4,U4;while(++F0<=g){let I1=L[F0];switch(I1[1].type){case Z.listUnordered:case Z.listOrdered:case Z.blockQuote:{if(I1[0]==="enter")_0++;else _0--;U4=void 0;break}case Z.lineEndingBlank:{if(I1[0]==="enter"){if(A6&&!U4&&!_0&&!H4)H4=F0;U4=void 0}break}case Z.linePrefix:case Z.listItemValue:case Z.listItemMarker:case Z.listItemPrefix:case Z.listItemPrefixWhitespace:break;default:U4=void 0}if(!_0&&I1[0]==="enter"&&I1[1].type===Z.listItemPrefix||_0===-1&&I1[0]==="exit"&&(I1[1].type===Z.listUnordered||I1[1].type===Z.listOrdered)){if(A6){let s6=F0;A2=void 0;while(s6--){let B2=L[s6];if(B2[1].type===Z.lineEnding||B2[1].type===Z.lineEndingBlank){if(B2[0]==="exit")continue;if(A2)L[A2][1].type=Z.lineEndingBlank,w1=!0;B2[1].type=Z.lineEnding,A2=s6}else if(B2[1].type===Z.linePrefix||B2[1].type===Z.blockQuotePrefix||B2[1].type===Z.blockQuotePrefixWhitespace||B2[1].type===Z.blockQuoteMarker||B2[1].type===Z.listItemIndent);else break}if(H4&&(!A2||H4<A2))A6._spread=!0;A6.end=Object.assign({},A2?L[A2][1].start:I1[1].end),L.splice(A2||F0,0,["exit",A6,I1[2]]),F0++,g++}if(I1[1].type===Z.listItemPrefix){let s6={type:"listItem",_spread:!1,start:Object.assign({},I1[1].start),end:void 0};A6=s6,L.splice(F0,0,["enter",s6,I1[2]]),F0++,g++,H4=void 0,U4=!0}}}return L[C][1]._spread=w1,g}function W(L,C){return g;function g(F0){if(U.call(this,L(F0),F0),C)C.call(this,F0)}}function H(){this.stack.push({type:"fragment",children:[]})}function U(L,C,g){let F0=this.stack[this.stack.length-1];N(F0,"expected `parent`"),N("children"in F0,"expected `parent`"),F0.children.push(L),this.stack.push(L),this.tokenStack.push([C,g||void 0]),L.position={start:p2(C.start),end:void 0}}function M(L){return C;function C(g){if(L)L.call(this,g);F.call(this,g)}}function F(L,C){let g=this.stack.pop();N(g,"expected `node`");let F0=this.tokenStack.pop();if(!F0)throw Error("Cannot close `"+L.type+"` ("+m2({start:L.start,end:L.end})+"): it\u2019s not open");else if(F0[0].type!==L.type)if(C)C.call(this,L,F0[0]);else(F0[1]||dU).call(this,L,F0[0]);N(g.type!=="fragment","unexpected fragment `exit`ed"),N(g.position,"expected `position` to be defined"),g.position.end=p2(L.end)}function Q(){return D6(this.stack.pop())}function q(){this.data.expectingFirstListItemValue=!0}function R(L){if(this.data.expectingFirstListItemValue){let C=this.stack[this.stack.length-2];N(C,"expected nodes on stack"),N(C.type==="list","expected list on stack"),C.start=Number.parseInt(this.sliceSerialize(L),I.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function O(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="code","expected code on stack"),C.lang=L}function _(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="code","expected code on stack"),C.meta=L}function z(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function D(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="code","expected code on stack"),C.value=L.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function P(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="code","expected code on stack"),C.value=L.replace(/(\r?\n|\r)$/g,"")}function b(L){let C=this.resume(),g=this.stack[this.stack.length-1];N(g,"expected node on stack"),N(g.type==="definition","expected definition on stack"),g.label=C,g.identifier=w2(this.sliceSerialize(L)).toLowerCase()}function y(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="definition","expected definition on stack"),C.title=L}function G0(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="definition","expected definition on stack"),C.url=L}function B0(L){let C=this.stack[this.stack.length-1];if(N(C,"expected node on stack"),N(C.type==="heading","expected heading on stack"),!C.depth){let g=this.sliceSerialize(L).length;N(g===1||g===2||g===3||g===4||g===5||g===6,"expected `depth` between `1` and `6`"),C.depth=g}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function Z0(L){let C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="heading","expected heading on stack"),C.depth=this.sliceSerialize(L).codePointAt(0)===A.equalsTo?1:2}function I0(){this.data.setextHeadingSlurpLineEnding=void 0}function q0(L){let C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N("children"in C,"expected parent on stack");let g=C.children,F0=g[g.length-1];if(!F0||F0.type!=="text")F0=MA(),F0.position={start:p2(L.start),end:void 0},g.push(F0);this.stack.push(F0)}function w0(L){let C=this.stack.pop();N(C,"expected a `node` to be on the stack"),N("value"in C,"expected a `literal` to be on the stack"),N(C.position,"expected `node` to have an open position"),C.value+=this.sliceSerialize(L),C.position.end=p2(L.end)}function J1(L){let C=this.stack[this.stack.length-1];if(N(C,"expected `node`"),this.data.atHardBreak){N("children"in C,"expected `parent`");let g=C.children[C.children.length-1];N(g.position,"expected tail to have a starting position"),g.position.end=p2(L.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&X.canContainEols.includes(C.type))q0.call(this,L),w0.call(this,L)}function d(){this.data.atHardBreak=!0}function f(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="html","expected html on stack"),C.value=L}function o(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="html","expected html on stack"),C.value=L}function t(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="inlineCode","expected inline code on stack"),C.value=L}function C0(){let L=this.stack[this.stack.length-1];if(N(L,"expected node on stack"),N(L.type==="link","expected link on stack"),this.data.inReference){let C=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=C,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function k0(){let L=this.stack[this.stack.length-1];if(N(L,"expected node on stack"),N(L.type==="image","expected image on stack"),this.data.inReference){let C=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=C,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function W1(L){let C=this.sliceSerialize(L),g=this.stack[this.stack.length-2];N(g,"expected ancestor on stack"),N(g.type==="image"||g.type==="link","expected image or link on stack"),g.label=Q9(C),g.identifier=w2(C).toLowerCase()}function H1(){let L=this.stack[this.stack.length-1];N(L,"expected node on stack"),N(L.type==="fragment","expected fragment on stack");let C=this.resume(),g=this.stack[this.stack.length-1];if(N(g,"expected node on stack"),N(g.type==="image"||g.type==="link","expected image or link on stack"),this.data.inReference=!0,g.type==="link"){let F0=L.children;g.children=F0}else g.alt=C}function V(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="image"||C.type==="link","expected image or link on stack"),C.url=L}function v0(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="image"||C.type==="link","expected image or link on stack"),C.title=L}function Z2(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function E1(L){let C=this.resume(),g=this.stack[this.stack.length-1];N(g,"expected node on stack"),N(g.type==="image"||g.type==="link","expected image reference or link reference on stack"),g.label=C,g.identifier=w2(this.sliceSerialize(L)).toLowerCase(),this.data.referenceType="full"}function Z6(L){N(L.type==="characterReferenceMarkerNumeric"||L.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=L.type}function $$(L){let C=this.sliceSerialize(L),g=this.data.characterReferenceType,F0;if(g)F0=o8(C,g===Z.characterReferenceMarkerNumeric?I.numericBaseDecimal:I.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let w1=H5(C);N(w1!==!1,"expected reference to decode"),F0=w1}let _0=this.stack[this.stack.length-1];N(_0,"expected `node`"),N("value"in _0,"expected `node.value`"),_0.value+=F0}function S8(L){let C=this.stack.pop();N(C,"expected `node`"),N(C.position,"expected `node.position`"),C.position.end=p2(L.end)}function d0(L){w0.call(this,L);let C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="link","expected link on stack"),C.url=this.sliceSerialize(L)}function W4(L){w0.call(this,L);let C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="link","expected link on stack"),C.url="mailto:"+this.sliceSerialize(L)}function R2(){return{type:"blockquote",children:[]}}function R6(){return{type:"code",lang:null,meta:null,value:""}}function n6(){return{type:"inlineCode",value:""}}function X$(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function JA(){return{type:"emphasis",children:[]}}function oY(){return{type:"heading",depth:0,children:[]}}function nY(){return{type:"break"}}function sY(){return{type:"html",value:""}}function WA(){return{type:"image",title:null,url:"",alt:null}}function aY(){return{type:"link",title:null,url:"",children:[]}}function tY(L){return{type:"list",ordered:L.type==="listOrdered",start:null,spread:L._spread,children:[]}}function HA(L){return{type:"listItem",spread:L._spread,checked:null,children:[]}}function UA(){return{type:"paragraph",children:[]}}function KA(){return{type:"strong",children:[]}}function MA(){return{type:"text",value:""}}function FA(){return{type:"thematicBreak"}}}function p2($){return{line:$.line,column:$.column,offset:$.offset}}function cU($,X){let G=-1;while(++G<X.length){let Y=X[G];if(Array.isArray(Y))cU($,Y);else vz($,Y)}}function vz($,X){let G;for(G in X)if(lU.call(X,G))switch(G){case"canContainEols":{let Y=X[G];if(Y)$[G].push(...Y);break}case"transforms":{let Y=X[G];if(Y)$[G].push(...Y);break}case"enter":case"exit":{let Y=X[G];if(Y)Object.assign($[G],Y);break}}}function dU($,X){if($)throw Error("Cannot close `"+$.type+"` ("+m2({start:$.start,end:$.end})+"): a different token (`"+X.type+"`, "+m2({start:X.start,end:X.end})+") is open");else throw Error("Cannot close document, a token (`"+X.type+"`, "+m2({start:X.start,end:X.end})+") is still open")}var lU;var rU=B(()=>{R0();r8();mU();T$();YX();n8();e();i8();WX();lU={}.hasOwnProperty});var iU=B(()=>{rU()});function q9($){let X=this;X.parser=G;function G(Y){return HX(Y,{...X.data("settings"),...$,extensions:X.data("micromarkExtensions")||[],mdastExtensions:X.data("fromMarkdownExtensions")||[]})}}var oU=B(()=>{iU()});var nU=B(()=>{oU()});function aU($,X){let G=X||{};function Y(J,...W){let{invalid:H,handlers:U}=Y;if(J&&sU.call(J,$)){let M=String(J[$]);H=sU.call(U,M)?U[M]:Y.unknown}if(H)return H.call(this,J,...W)}return Y.handlers=G.handlers||{},Y.invalid=G.invalid,Y.unknown=G.unknown,Y}var sU;var tU=B(()=>{sU={}.hasOwnProperty});function UX($,X){let G=-1,Y;if(X.extensions)while(++G<X.extensions.length)UX($,X.extensions[G]);for(Y in X)if(xz.call(X,Y))switch(Y){case"extensions":break;case"unsafe":{eU($[Y],X[Y]);break}case"join":{eU($[Y],X[Y]);break}case"handlers":{bz($[Y],X[Y]);break}default:$.options[Y]=X[Y]}return $}function eU($,X){if(X)$.push(...X)}function bz($,X){if(X)Object.assign($,X)}var xz;var $K=B(()=>{xz={}.hasOwnProperty});function XK($,X,G,Y){let J=G.enter("blockquote"),W=G.createTracker(Y);W.move("> "),W.shift(2);let H=G.indentLines(G.containerFlow($,W.current()),hz);return J(),H}function hz($,X,G){return">"+(G?"":" ")+$}function O9($,X){return GK($,X.inConstruct,!0)&&!GK($,X.notInConstruct,!1)}function GK($,X,G){if(typeof X==="string")X=[X];if(!X||X.length===0)return G;let Y=-1;while(++Y<X.length)if($.includes(X[Y]))return!0;return!1}function KX($,X,G,Y){let J=-1;while(++J<G.unsafe.length)if(G.unsafe[J].character===`
59
+ `).map((X)=>X.trim()).join(" ")};EU.O=function($){return this.inspectOpts.colors=this.useColors,M9.inspect($,this.inspectOpts)}});var kU=l((mh,e$)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)e$.exports=zU();else e$.exports=SU()});function xU($,X,G){let Y={_bufferIndex:-1,_index:0,line:G&&G.line||1,column:G&&G.column||1,offset:G&&G.offset||0},J={},W=[],H=[],U=[],M=!0,F={attempt:q0(Z0),check:q0(I0),consume:G0,enter:B0,exit:T,interrupt:q0(I0,{interrupt:!0})},Q={code:A.eof,containerState:{},defineSkip:P,events:[],now:D,parser:$,previous:A.eof,sliceSerialize:_,sliceStream:z,write:O},q=X.tokenize.call(Q,F),R;if(X.resolveAll)W.push(X);return Q;function O(f){if(H=A1(H,f),b(),H[H.length-1]!==A.eof)return[];return w0(X,0),Q.events=K2(W,Q.events,Q),Q.events}function _(f,o){return Iz(z(f),o)}function z(f){return Ez(H,f)}function D(){let{_bufferIndex:f,_index:o,line:t,column:C0,offset:k0}=Y;return{_bufferIndex:f,_index:o,line:t,column:C0,offset:k0}}function P(f){J[f.line]=f.column,d(),I5("position: define skip: `%j`",Y)}function b(){let f;while(Y._index<H.length){let o=H[Y._index];if(typeof o==="string"){if(f=Y._index,Y._bufferIndex<0)Y._bufferIndex=0;while(Y._index===f&&Y._bufferIndex<o.length)y(o.charCodeAt(Y._bufferIndex))}else y(o)}}function y(f){N(M===!0,"expected character to be consumed"),M=void 0,I5("main: passing `%s` to %s",f,q&&q.name),R=f,N(typeof q==="function","expected state"),q=q(f)}function G0(f){if(N(f===R,"expected given code to equal expected code"),I5("consume: `%s`",f),N(M===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),N(f===null?Q.events.length===0||Q.events[Q.events.length-1][0]==="exit":Q.events[Q.events.length-1][0]==="enter","expected last token to be open"),x(f))Y.line++,Y.column=1,Y.offset+=f===A.carriageReturnLineFeed?2:1,d(),I5("position: after eol: `%j`",Y);else if(f!==A.virtualSpace)Y.column++,Y.offset++;if(Y._bufferIndex<0)Y._index++;else if(Y._bufferIndex++,Y._bufferIndex===H[Y._index].length)Y._bufferIndex=-1,Y._index++;Q.previous=f,M=!0}function B0(f,o){let t=o||{};return t.type=f,t.start=D(),N(typeof f==="string","expected string type"),N(f.length>0,"expected non-empty string"),I5("enter: `%s`",f),Q.events.push(["enter",t,Q]),U.push(t),t}function T(f){N(typeof f==="string","expected string type"),N(f.length>0,"expected non-empty string");let o=U.pop();return N(o,"cannot close w/o open tokens"),o.end=D(),N(f===o.type,"expected exit token to match current token"),N(!(o.start._index===o.end._index&&o.start._bufferIndex===o.end._bufferIndex),"expected non-empty token (`"+f+"`)"),I5("exit: `%s`",o.type),Q.events.push(["exit",o,Q]),o}function Z0(f,o){w0(f,o.from)}function I0(f,o){o.restore()}function q0(f,o){return t;function t(C0,k0,W1){let H1,V,v0,Z6;return Array.isArray(C0)?E1(C0):("tokenize"in C0)?E1([C0]):w(C0);function w(d0){return W4;function W4(R6){let R5=R6!==null&&d0[R6],n5=R6!==null&&d0.null,X$=[...Array.isArray(R5)?R5:R5?[R5]:[],...Array.isArray(n5)?n5:n5?[n5]:[]];return E1(X$)(R6)}}function E1(d0){if(H1=d0,V=0,d0.length===0)return N(W1,"expected `bogusState` to be given"),W1;return Z5(d0[V])}function Z5(d0){return W4;function W4(R6){if(Z6=J1(),v0=d0,!d0.partial)Q.currentConstruct=d0;if(N(Q.parser.constructs.disable.null,"expected `disable.null` to be populated"),d0.name&&Q.parser.constructs.disable.null.includes(d0.name))return S8(R6);return d0.tokenize.call(o?Object.assign(Object.create(Q),o):Q,F,$$,S8)(R6)}}function $$(d0){return N(d0===R,"expected code"),M=!0,f(v0,Z6),k0}function S8(d0){if(N(d0===R,"expected code"),M=!0,Z6.restore(),++V<H1.length)return Z5(H1[V]);return W1}}}function w0(f,o){if(f.resolveAll&&!W.includes(f))W.push(f);if(f.resolve)t0(Q.events,o,Q.events.length-o,f.resolve(Q.events.slice(o),Q));if(f.resolveTo)Q.events=f.resolveTo(Q.events,Q);N(f.partial||Q.events.length===0||Q.events[Q.events.length-1][0]==="exit","expected last token to end")}function J1(){let f=D(),o=Q.previous,t=Q.currentConstruct,C0=Q.events.length,k0=Array.from(U);return{from:C0,restore:W1};function W1(){Y=f,Q.previous=o,Q.currentConstruct=t,Q.events.length=C0,U=k0,d(),I5("position: restore: `%j`",Y)}}function d(){if(Y.line in J&&Y.column<2)Y.column=J[Y.line],Y.offset+=J[Y.line]-1}}function Ez($,X){let G=X.start._index,Y=X.start._bufferIndex,J=X.end._index,W=X.end._bufferIndex,H;if(G===J)N(W>-1,"expected non-negative end buffer index"),N(Y>-1,"expected non-negative start buffer index"),H=[$[G].slice(Y,W)];else{if(H=$.slice(G,J),Y>-1){let U=H[0];if(typeof U==="string")H[0]=U.slice(Y);else N(Y===0,"expected `startBufferIndex` to be `0`"),H.shift()}if(W>0)H.push($[J].slice(0,W))}return H}function Iz($,X){let G=-1,Y=[],J;while(++G<$.length){let W=$[G],H;if(typeof W==="string")H=W;else switch(W){case A.carriageReturn:{H=j1.cr;break}case A.lineFeed:{H=j1.lf;break}case A.carriageReturnLineFeed:{H=j1.cr+j1.lf;break}case A.horizontalTab:{H=X?j1.space:j1.ht;break}case A.virtualSpace:{if(!X&&J)continue;H=j1.space;break}default:N(typeof W==="number","expected number"),H=String.fromCharCode(W)}J=W===A.horizontalTab,Y.push(H)}return Y.join("")}var vU,I5;var bU=B(()=>{R0();N0();h6();e();vU=k8(kU(),1),I5=vU.default("micromark")});function $X($){let Y={constructs:TH([n$,...($||{}).extensions||[]]),content:J(xH),defined:[],document:J(yH),flow:J(FU),lazy:{},string:J(OU),text:J(ZU)};return Y;function J(W){return H;function H(U){return xU(Y,W,U)}}}var hU=B(()=>{EH();bH();fH();QU();o$();BU();bU()});function XX($){while(!X9($));return $}var yU=B(()=>{k$()});function GX(){let $=1,X="",G=!0,Y;return J;function J(W,H,U){let M=[],F,Q,q,R,O;if(W=X+(typeof W==="string"?W.toString():new TextDecoder(H||void 0).decode(W)),q=0,X="",G){if(W.charCodeAt(0)===A.byteOrderMarker)q++;G=void 0}while(q<W.length){if(fU.lastIndex=q,F=fU.exec(W),R=F&&F.index!==void 0?F.index:W.length,O=W.charCodeAt(R),!F){X=W.slice(q);break}if(O===A.lf&&q===R&&Y)M.push(A.carriageReturnLineFeed),Y=void 0;else{if(Y)M.push(A.carriageReturn),Y=void 0;if(q<R)M.push(W.slice(q,R)),$+=R-q;switch(O){case A.nul:{M.push(A.replacementCharacter),$++;break}case A.ht:{Q=Math.ceil($/I.tabSize)*I.tabSize,M.push(A.horizontalTab);while($++<Q)M.push(A.virtualSpace);break}case A.lf:{M.push(A.lineFeed),$=1;break}default:Y=!0,$=1}}q=R+1}if(U){if(Y)M.push(A.carriageReturn);if(X)M.push(X);M.push(A.eof)}return M}}var fU;var gU=B(()=>{e();fU=/[\0\t\n\r]/g});var mU=B(()=>{hU();yU();gU()});function Q9($){return $.replace(jz,Sz)}function Sz($,X,G){if(X)return X;if(G.charCodeAt(0)===A.numberSign){let J=G.charCodeAt(1),W=J===A.lowercaseX||J===A.uppercaseX;return o8(G.slice(W?2:1),W?I.numericBaseHexadecimal:I.numericBaseDecimal)}return H2(G)||$}var jz;var YX=B(()=>{i8();T$();e();jz=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi});function m6($){if(!$||typeof $!=="object")return"";if("position"in $||"type"in $)return pU($.position);if("start"in $||"end"in $)return pU($);if("line"in $||"column"in $)return JX($);return""}function JX($){return uU($&&$.line)+":"+uU($&&$.column)}function pU($){return JX($&&$.start)+"-"+JX($&&$.end)}function uU($){return $&&typeof $==="number"?$:1}var WX=()=>{};function HX($,X,G){if(X&&typeof X==="object")G=X,X=void 0;return kz(G)(XX($X(G).document().write(GX()($,X,!0))))}function kz($){let X={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:W(aY),autolinkProtocol:q0,autolinkEmail:q0,atxHeading:W(oY),blockQuote:W(R6),characterEscape:q0,characterReference:q0,codeFenced:W(R5),codeFencedFenceInfo:H,codeFencedFenceMeta:H,codeIndented:W(R5,H),codeText:W(n5,H),codeTextData:q0,data:q0,codeFlowValue:q0,definition:W(X$),definitionDestinationString:H,definitionLabelString:H,definitionTitleString:H,emphasis:W(JA),hardBreakEscape:W(nY),hardBreakTrailing:W(nY),htmlFlow:W(sY,H),htmlFlowData:q0,htmlText:W(sY,H),htmlTextData:q0,image:W(WA),label:H,link:W(aY),listItem:W(HA),listItemValue:R,listOrdered:W(tY,q),listUnordered:W(tY),paragraph:W(UA),reference:w,referenceString:H,resourceDestinationString:H,resourceTitleString:H,setextHeading:W(oY),strong:W(KA),thematicBreak:W(FA)},exit:{atxHeading:M(),atxHeadingSequence:B0,autolink:M(),autolinkEmail:W4,autolinkProtocol:d0,blockQuote:M(),characterEscapeValue:w0,characterReferenceMarkerHexadecimal:Z5,characterReferenceMarkerNumeric:Z5,characterReferenceValue:$$,characterReference:S8,codeFenced:M(D),codeFencedFence:z,codeFencedFenceInfo:O,codeFencedFenceMeta:_,codeFlowValue:w0,codeIndented:M(P),codeText:M(t),codeTextData:w0,data:w0,definition:M(),definitionDestinationString:G0,definitionLabelString:b,definitionTitleString:y,emphasis:M(),hardBreakEscape:M(d),hardBreakTrailing:M(d),htmlFlow:M(f),htmlFlowData:w0,htmlText:M(o),htmlTextData:w0,image:M(k0),label:H1,labelText:W1,lineEnding:J1,link:M(C0),listItem:M(),listOrdered:M(),listUnordered:M(),paragraph:M(),referenceString:E1,resourceDestinationString:V,resourceTitleString:v0,resource:Z6,setextHeading:M(I0),setextHeadingLineSequence:Z0,setextHeadingText:T,strong:M(),thematicBreak:M()}};cU(X,($||{}).mdastExtensions||[]);let G={};return Y;function Y(L){let C={type:"root",children:[]},g={stack:[C],tokenStack:[],config:X,enter:U,exit:F,buffer:H,resume:Q,data:G},F0=[],_0=-1;while(++_0<L.length)if(L[_0][1].type===Z.listOrdered||L[_0][1].type===Z.listUnordered)if(L[_0][0]==="enter")F0.push(_0);else{let w1=F0.pop();N(typeof w1==="number","expected list to be open"),_0=J(L,w1,_0)}_0=-1;while(++_0<L.length){let w1=X[L[_0][0]];if(lU.call(w1,L[_0][1].type))w1[L[_0][1].type].call(Object.assign({sliceSerialize:L[_0][2].sliceSerialize},g),L[_0][1])}if(g.tokenStack.length>0){let w1=g.tokenStack[g.tokenStack.length-1];(w1[1]||dU).call(g,void 0,w1[0])}C.position={start:p6(L.length>0?L[0][1].start:{line:1,column:1,offset:0}),end:p6(L.length>0?L[L.length-2][1].end:{line:1,column:1,offset:0})},_0=-1;while(++_0<X.transforms.length)C=X.transforms[_0](C)||C;return C}function J(L,C,g){let F0=C-1,_0=-1,w1=!1,A5,A6,H4,U4;while(++F0<=g){let I1=L[F0];switch(I1[1].type){case Z.listUnordered:case Z.listOrdered:case Z.blockQuote:{if(I1[0]==="enter")_0++;else _0--;U4=void 0;break}case Z.lineEndingBlank:{if(I1[0]==="enter"){if(A5&&!U4&&!_0&&!H4)H4=F0;U4=void 0}break}case Z.linePrefix:case Z.listItemValue:case Z.listItemMarker:case Z.listItemPrefix:case Z.listItemPrefixWhitespace:break;default:U4=void 0}if(!_0&&I1[0]==="enter"&&I1[1].type===Z.listItemPrefix||_0===-1&&I1[0]==="exit"&&(I1[1].type===Z.listUnordered||I1[1].type===Z.listOrdered)){if(A5){let s5=F0;A6=void 0;while(s5--){let B6=L[s5];if(B6[1].type===Z.lineEnding||B6[1].type===Z.lineEndingBlank){if(B6[0]==="exit")continue;if(A6)L[A6][1].type=Z.lineEndingBlank,w1=!0;B6[1].type=Z.lineEnding,A6=s5}else if(B6[1].type===Z.linePrefix||B6[1].type===Z.blockQuotePrefix||B6[1].type===Z.blockQuotePrefixWhitespace||B6[1].type===Z.blockQuoteMarker||B6[1].type===Z.listItemIndent);else break}if(H4&&(!A6||H4<A6))A5._spread=!0;A5.end=Object.assign({},A6?L[A6][1].start:I1[1].end),L.splice(A6||F0,0,["exit",A5,I1[2]]),F0++,g++}if(I1[1].type===Z.listItemPrefix){let s5={type:"listItem",_spread:!1,start:Object.assign({},I1[1].start),end:void 0};A5=s5,L.splice(F0,0,["enter",s5,I1[2]]),F0++,g++,H4=void 0,U4=!0}}}return L[C][1]._spread=w1,g}function W(L,C){return g;function g(F0){if(U.call(this,L(F0),F0),C)C.call(this,F0)}}function H(){this.stack.push({type:"fragment",children:[]})}function U(L,C,g){let F0=this.stack[this.stack.length-1];N(F0,"expected `parent`"),N("children"in F0,"expected `parent`"),F0.children.push(L),this.stack.push(L),this.tokenStack.push([C,g||void 0]),L.position={start:p6(C.start),end:void 0}}function M(L){return C;function C(g){if(L)L.call(this,g);F.call(this,g)}}function F(L,C){let g=this.stack.pop();N(g,"expected `node`");let F0=this.tokenStack.pop();if(!F0)throw Error("Cannot close `"+L.type+"` ("+m6({start:L.start,end:L.end})+"): it\u2019s not open");else if(F0[0].type!==L.type)if(C)C.call(this,L,F0[0]);else(F0[1]||dU).call(this,L,F0[0]);N(g.type!=="fragment","unexpected fragment `exit`ed"),N(g.position,"expected `position` to be defined"),g.position.end=p6(L.end)}function Q(){return D5(this.stack.pop())}function q(){this.data.expectingFirstListItemValue=!0}function R(L){if(this.data.expectingFirstListItemValue){let C=this.stack[this.stack.length-2];N(C,"expected nodes on stack"),N(C.type==="list","expected list on stack"),C.start=Number.parseInt(this.sliceSerialize(L),I.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function O(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="code","expected code on stack"),C.lang=L}function _(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="code","expected code on stack"),C.meta=L}function z(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function D(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="code","expected code on stack"),C.value=L.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function P(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="code","expected code on stack"),C.value=L.replace(/(\r?\n|\r)$/g,"")}function b(L){let C=this.resume(),g=this.stack[this.stack.length-1];N(g,"expected node on stack"),N(g.type==="definition","expected definition on stack"),g.label=C,g.identifier=w6(this.sliceSerialize(L)).toLowerCase()}function y(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="definition","expected definition on stack"),C.title=L}function G0(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="definition","expected definition on stack"),C.url=L}function B0(L){let C=this.stack[this.stack.length-1];if(N(C,"expected node on stack"),N(C.type==="heading","expected heading on stack"),!C.depth){let g=this.sliceSerialize(L).length;N(g===1||g===2||g===3||g===4||g===5||g===6,"expected `depth` between `1` and `6`"),C.depth=g}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function Z0(L){let C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="heading","expected heading on stack"),C.depth=this.sliceSerialize(L).codePointAt(0)===A.equalsTo?1:2}function I0(){this.data.setextHeadingSlurpLineEnding=void 0}function q0(L){let C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N("children"in C,"expected parent on stack");let g=C.children,F0=g[g.length-1];if(!F0||F0.type!=="text")F0=MA(),F0.position={start:p6(L.start),end:void 0},g.push(F0);this.stack.push(F0)}function w0(L){let C=this.stack.pop();N(C,"expected a `node` to be on the stack"),N("value"in C,"expected a `literal` to be on the stack"),N(C.position,"expected `node` to have an open position"),C.value+=this.sliceSerialize(L),C.position.end=p6(L.end)}function J1(L){let C=this.stack[this.stack.length-1];if(N(C,"expected `node`"),this.data.atHardBreak){N("children"in C,"expected `parent`");let g=C.children[C.children.length-1];N(g.position,"expected tail to have a starting position"),g.position.end=p6(L.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&X.canContainEols.includes(C.type))q0.call(this,L),w0.call(this,L)}function d(){this.data.atHardBreak=!0}function f(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="html","expected html on stack"),C.value=L}function o(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="html","expected html on stack"),C.value=L}function t(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="inlineCode","expected inline code on stack"),C.value=L}function C0(){let L=this.stack[this.stack.length-1];if(N(L,"expected node on stack"),N(L.type==="link","expected link on stack"),this.data.inReference){let C=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=C,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function k0(){let L=this.stack[this.stack.length-1];if(N(L,"expected node on stack"),N(L.type==="image","expected image on stack"),this.data.inReference){let C=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=C,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function W1(L){let C=this.sliceSerialize(L),g=this.stack[this.stack.length-2];N(g,"expected ancestor on stack"),N(g.type==="image"||g.type==="link","expected image or link on stack"),g.label=Q9(C),g.identifier=w6(C).toLowerCase()}function H1(){let L=this.stack[this.stack.length-1];N(L,"expected node on stack"),N(L.type==="fragment","expected fragment on stack");let C=this.resume(),g=this.stack[this.stack.length-1];if(N(g,"expected node on stack"),N(g.type==="image"||g.type==="link","expected image or link on stack"),this.data.inReference=!0,g.type==="link"){let F0=L.children;g.children=F0}else g.alt=C}function V(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="image"||C.type==="link","expected image or link on stack"),C.url=L}function v0(){let L=this.resume(),C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="image"||C.type==="link","expected image or link on stack"),C.title=L}function Z6(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function E1(L){let C=this.resume(),g=this.stack[this.stack.length-1];N(g,"expected node on stack"),N(g.type==="image"||g.type==="link","expected image reference or link reference on stack"),g.label=C,g.identifier=w6(this.sliceSerialize(L)).toLowerCase(),this.data.referenceType="full"}function Z5(L){N(L.type==="characterReferenceMarkerNumeric"||L.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=L.type}function $$(L){let C=this.sliceSerialize(L),g=this.data.characterReferenceType,F0;if(g)F0=o8(C,g===Z.characterReferenceMarkerNumeric?I.numericBaseDecimal:I.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let w1=H2(C);N(w1!==!1,"expected reference to decode"),F0=w1}let _0=this.stack[this.stack.length-1];N(_0,"expected `node`"),N("value"in _0,"expected `node.value`"),_0.value+=F0}function S8(L){let C=this.stack.pop();N(C,"expected `node`"),N(C.position,"expected `node.position`"),C.position.end=p6(L.end)}function d0(L){w0.call(this,L);let C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="link","expected link on stack"),C.url=this.sliceSerialize(L)}function W4(L){w0.call(this,L);let C=this.stack[this.stack.length-1];N(C,"expected node on stack"),N(C.type==="link","expected link on stack"),C.url="mailto:"+this.sliceSerialize(L)}function R6(){return{type:"blockquote",children:[]}}function R5(){return{type:"code",lang:null,meta:null,value:""}}function n5(){return{type:"inlineCode",value:""}}function X$(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function JA(){return{type:"emphasis",children:[]}}function oY(){return{type:"heading",depth:0,children:[]}}function nY(){return{type:"break"}}function sY(){return{type:"html",value:""}}function WA(){return{type:"image",title:null,url:"",alt:null}}function aY(){return{type:"link",title:null,url:"",children:[]}}function tY(L){return{type:"list",ordered:L.type==="listOrdered",start:null,spread:L._spread,children:[]}}function HA(L){return{type:"listItem",spread:L._spread,checked:null,children:[]}}function UA(){return{type:"paragraph",children:[]}}function KA(){return{type:"strong",children:[]}}function MA(){return{type:"text",value:""}}function FA(){return{type:"thematicBreak"}}}function p6($){return{line:$.line,column:$.column,offset:$.offset}}function cU($,X){let G=-1;while(++G<X.length){let Y=X[G];if(Array.isArray(Y))cU($,Y);else vz($,Y)}}function vz($,X){let G;for(G in X)if(lU.call(X,G))switch(G){case"canContainEols":{let Y=X[G];if(Y)$[G].push(...Y);break}case"transforms":{let Y=X[G];if(Y)$[G].push(...Y);break}case"enter":case"exit":{let Y=X[G];if(Y)Object.assign($[G],Y);break}}}function dU($,X){if($)throw Error("Cannot close `"+$.type+"` ("+m6({start:$.start,end:$.end})+"): a different token (`"+X.type+"`, "+m6({start:X.start,end:X.end})+") is open");else throw Error("Cannot close document, a token (`"+X.type+"`, "+m6({start:X.start,end:X.end})+") is still open")}var lU;var rU=B(()=>{R0();r8();mU();T$();YX();n8();e();i8();WX();lU={}.hasOwnProperty});var iU=B(()=>{rU()});function q9($){let X=this;X.parser=G;function G(Y){return HX(Y,{...X.data("settings"),...$,extensions:X.data("micromarkExtensions")||[],mdastExtensions:X.data("fromMarkdownExtensions")||[]})}}var oU=B(()=>{iU()});var nU=B(()=>{oU()});function aU($,X){let G=X||{};function Y(J,...W){let{invalid:H,handlers:U}=Y;if(J&&sU.call(J,$)){let M=String(J[$]);H=sU.call(U,M)?U[M]:Y.unknown}if(H)return H.call(this,J,...W)}return Y.handlers=G.handlers||{},Y.invalid=G.invalid,Y.unknown=G.unknown,Y}var sU;var tU=B(()=>{sU={}.hasOwnProperty});function UX($,X){let G=-1,Y;if(X.extensions)while(++G<X.extensions.length)UX($,X.extensions[G]);for(Y in X)if(xz.call(X,Y))switch(Y){case"extensions":break;case"unsafe":{eU($[Y],X[Y]);break}case"join":{eU($[Y],X[Y]);break}case"handlers":{bz($[Y],X[Y]);break}default:$.options[Y]=X[Y]}return $}function eU($,X){if(X)$.push(...X)}function bz($,X){if(X)Object.assign($,X)}var xz;var $K=B(()=>{xz={}.hasOwnProperty});function XK($,X,G,Y){let J=G.enter("blockquote"),W=G.createTracker(Y);W.move("> "),W.shift(2);let H=G.indentLines(G.containerFlow($,W.current()),hz);return J(),H}function hz($,X,G){return">"+(G?"":" ")+$}function O9($,X){return GK($,X.inConstruct,!0)&&!GK($,X.notInConstruct,!1)}function GK($,X,G){if(typeof X==="string")X=[X];if(!X||X.length===0)return G;let Y=-1;while(++Y<X.length)if($.includes(X[Y]))return!0;return!1}function KX($,X,G,Y){let J=-1;while(++J<G.unsafe.length)if(G.unsafe[J].character===`
60
60
  `&&O9(G.stack,G.unsafe[J]))return/[ \t]/.test(Y.before)?"":" ";return"\\\n"}var YK=()=>{};function JK($,X){let G=String($),Y=G.indexOf(X),J=Y,W=0,H=0;if(typeof X!=="string")throw TypeError("Expected substring");while(Y!==-1){if(Y===J){if(++W>H)H=W}else W=1;J=Y+X.length,Y=G.indexOf(X,J)}return H}function D4($,X){return Boolean(X.options.fences===!1&&$.value&&!$.lang&&/[^ \r\n]/.test($.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test($.value))}function WK($){let X=$.options.fence||"`";if(X!=="`"&&X!=="~")throw Error("Cannot serialize code with `"+X+"` for `options.fence`, expected `` ` `` or `~`");return X}function HK($,X,G,Y){let J=WK(G),W=$.value||"",H=J==="`"?"GraveAccent":"Tilde";if(D4($,G)){let q=G.enter("codeIndented"),R=G.indentLines(W,yz);return q(),R}let U=G.createTracker(Y),M=J.repeat(Math.max(JK(W,J)+1,3)),F=G.enter("codeFenced"),Q=U.move(M);if($.lang){let q=G.enter(`codeFencedLang${H}`);Q+=U.move(G.safe($.lang,{before:Q,after:" ",encode:["`"],...U.current()})),q()}if($.lang&&$.meta){let q=G.enter(`codeFencedMeta${H}`);Q+=U.move(" "),Q+=U.move(G.safe($.meta,{before:Q,after:`
61
61
  `,encode:["`"],...U.current()})),q()}if(Q+=U.move(`
62
62
  `),W)Q+=U.move(W+`
63
- `);return Q+=U.move(M),F(),Q}function yz($,X,G){return(G?"":" ")+$}var UK=()=>{};function q5($){let X=$.options.quote||'"';if(X!=='"'&&X!=="'")throw Error("Cannot serialize title with `"+X+"` for `options.quote`, expected `\"`, or `'`");return X}function KK($,X,G,Y){let J=q5(G),W=J==='"'?"Quote":"Apostrophe",H=G.enter("definition"),U=G.enter("label"),M=G.createTracker(Y),F=M.move("[");if(F+=M.move(G.safe(G.associationId($),{before:F,after:"]",...M.current()})),F+=M.move("]: "),U(),!$.url||/[\0- \u007F]/.test($.url))U=G.enter("destinationLiteral"),F+=M.move("<"),F+=M.move(G.safe($.url,{before:F,after:">",...M.current()})),F+=M.move(">");else U=G.enter("destinationRaw"),F+=M.move(G.safe($.url,{before:F,after:$.title?" ":`
64
- `,...M.current()}));if(U(),$.title)U=G.enter(`title${W}`),F+=M.move(" "+J),F+=M.move(G.safe($.title,{before:F,after:J,...M.current()})),F+=M.move(J),U();return H(),F}var MK=()=>{};function FK($){let X=$.options.emphasis||"*";if(X!=="*"&&X!=="_")throw Error("Cannot serialize emphasis with `"+X+"` for `options.emphasis`, expected `*`, or `_`");return X}function k1($){return"&#x"+$.toString(16).toUpperCase()+";"}function O5($,X,G){let Y=U5($),J=U5(X);if(Y===void 0)return J===void 0?G==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:J===1?{inside:!0,outside:!0}:{inside:!1,outside:!0};if(Y===1)return J===void 0?{inside:!1,outside:!1}:J===1?{inside:!0,outside:!0}:{inside:!1,outside:!1};return J===void 0?{inside:!1,outside:!1}:J===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}var MX=B(()=>{E$()});function FX($,X,G,Y){let J=FK(G),W=G.enter("emphasis"),H=G.createTracker(Y),U=H.move(J),M=H.move(G.containerPhrasing($,{after:J,before:U,...H.current()})),F=M.charCodeAt(0),Q=O5(Y.before.charCodeAt(Y.before.length-1),F,J);if(Q.inside)M=k1(F)+M.slice(1);let q=M.charCodeAt(M.length-1),R=O5(Y.after.charCodeAt(0),q,J);if(R.inside)M=M.slice(0,-1)+k1(q);let O=H.move(J);return W(),G.attentionEncodeSurroundingInfo={after:R.outside,before:Q.outside},U+M+O}function fz($,X,G){return G.options.emphasis||"*"}var QK=B(()=>{MX();FX.peek=fz});function gz($){let X=[],G=-1;while(++G<$.length)X[G]=Z5($[G]);return Z9(Y);function Y(...J){let W=-1;while(++W<X.length)if(X[W].apply(this,J))return!0;return!1}}function mz($){let X=$;return Z9(G);function G(Y){let J=Y,W;for(W in $)if(J[W]!==X[W])return!1;return!0}}function pz($){return Z9(X);function X(G){return G&&G.type===$}}function Z9($){return X;function X(G,Y,J){return Boolean(dz(G)&&$.call(this,G,typeof Y==="number"?Y:void 0,J||void 0))}}function uz(){return!0}function dz($){return $!==null&&typeof $==="object"&&"type"in $}var Z5=function($){if($===null||$===void 0)return uz;if(typeof $==="function")return Z9($);if(typeof $==="object")return Array.isArray($)?gz($):mz($);if(typeof $==="string")return pz($);throw Error("Expected function, string, or object as test")};var QX=()=>{};function qK($){return"\x1B[33m"+$+"\x1B[39m"}function qX($,X,G,Y){let J;if(typeof X==="function"&&typeof G!=="function")Y=G,G=X;else J=X;let W=Z5(J),H=Y?-1:1;U($,void 0,[])();function U(M,F,Q){let q=M&&typeof M==="object"?M:{};if(typeof q.type==="string"){let O=typeof q.tagName==="string"?q.tagName:typeof q.name==="string"?q.name:void 0;Object.defineProperty(R,"name",{value:"node ("+qK(M.type+(O?"<"+O+">":""))+")"})}return R;function R(){let O=OK,_,z,D;if(!X||W(M,F,Q[Q.length-1]||void 0)){if(O=lz(G(M,Q)),O[0]===j6)return O}if("children"in M&&M.children){let P=M;if(P.children&&O[0]!==A9){z=(Y?P.children.length:-1)+H,D=Q.concat(P);while(z>-1&&z<P.children.length){let b=P.children[z];if(_=U(b,z,D)(),_[0]===j6)return _;z=typeof _[1]==="number"?_[1]:z+H}}}return O}}}function lz($){if(Array.isArray($))return $;if(typeof $==="number")return[R9,$];return $===null||$===void 0?OK:[$]}var OK,R9=!0,j6=!1,A9="skip";var ZK=B(()=>{QX();OK=[]});var OX=B(()=>{ZK()});function ZX($,X,G,Y){let J,W,H;if(typeof X==="function"&&typeof G!=="function")W=void 0,H=X,J=G;else W=X,H=G,J=Y;qX($,W,U,J);function U(M,F){let Q=F[F.length-1],q=Q?Q.children.indexOf(M):void 0;return H(M,q,Q)}}var RK=B(()=>{OX();OX()});var AK=B(()=>{RK()});function B9($,X){let G=!1;return ZX($,function(Y){if("value"in Y&&/\r?\n|\r/.test(Y.value)||Y.type==="break")return G=!0,j6}),Boolean((!$.depth||$.depth<3)&&D6($)&&(X.options.setext||G))}var RX=B(()=>{AK();r8()});function BK($,X,G,Y){let J=Math.max(Math.min(6,$.depth||1),1),W=G.createTracker(Y);if(B9($,G)){let Q=G.enter("headingSetext"),q=G.enter("phrasing"),R=G.containerPhrasing($,{...W.current(),before:`
63
+ `);return Q+=U.move(M),F(),Q}function yz($,X,G){return(G?"":" ")+$}var UK=()=>{};function q2($){let X=$.options.quote||'"';if(X!=='"'&&X!=="'")throw Error("Cannot serialize title with `"+X+"` for `options.quote`, expected `\"`, or `'`");return X}function KK($,X,G,Y){let J=q2(G),W=J==='"'?"Quote":"Apostrophe",H=G.enter("definition"),U=G.enter("label"),M=G.createTracker(Y),F=M.move("[");if(F+=M.move(G.safe(G.associationId($),{before:F,after:"]",...M.current()})),F+=M.move("]: "),U(),!$.url||/[\0- \u007F]/.test($.url))U=G.enter("destinationLiteral"),F+=M.move("<"),F+=M.move(G.safe($.url,{before:F,after:">",...M.current()})),F+=M.move(">");else U=G.enter("destinationRaw"),F+=M.move(G.safe($.url,{before:F,after:$.title?" ":`
64
+ `,...M.current()}));if(U(),$.title)U=G.enter(`title${W}`),F+=M.move(" "+J),F+=M.move(G.safe($.title,{before:F,after:J,...M.current()})),F+=M.move(J),U();return H(),F}var MK=()=>{};function FK($){let X=$.options.emphasis||"*";if(X!=="*"&&X!=="_")throw Error("Cannot serialize emphasis with `"+X+"` for `options.emphasis`, expected `*`, or `_`");return X}function k1($){return"&#x"+$.toString(16).toUpperCase()+";"}function O2($,X,G){let Y=U2($),J=U2(X);if(Y===void 0)return J===void 0?G==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:J===1?{inside:!0,outside:!0}:{inside:!1,outside:!0};if(Y===1)return J===void 0?{inside:!1,outside:!1}:J===1?{inside:!0,outside:!0}:{inside:!1,outside:!1};return J===void 0?{inside:!1,outside:!1}:J===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}var MX=B(()=>{E$()});function FX($,X,G,Y){let J=FK(G),W=G.enter("emphasis"),H=G.createTracker(Y),U=H.move(J),M=H.move(G.containerPhrasing($,{after:J,before:U,...H.current()})),F=M.charCodeAt(0),Q=O2(Y.before.charCodeAt(Y.before.length-1),F,J);if(Q.inside)M=k1(F)+M.slice(1);let q=M.charCodeAt(M.length-1),R=O2(Y.after.charCodeAt(0),q,J);if(R.inside)M=M.slice(0,-1)+k1(q);let O=H.move(J);return W(),G.attentionEncodeSurroundingInfo={after:R.outside,before:Q.outside},U+M+O}function fz($,X,G){return G.options.emphasis||"*"}var QK=B(()=>{MX();FX.peek=fz});function gz($){let X=[],G=-1;while(++G<$.length)X[G]=Z2($[G]);return Z9(Y);function Y(...J){let W=-1;while(++W<X.length)if(X[W].apply(this,J))return!0;return!1}}function mz($){let X=$;return Z9(G);function G(Y){let J=Y,W;for(W in $)if(J[W]!==X[W])return!1;return!0}}function pz($){return Z9(X);function X(G){return G&&G.type===$}}function Z9($){return X;function X(G,Y,J){return Boolean(dz(G)&&$.call(this,G,typeof Y==="number"?Y:void 0,J||void 0))}}function uz(){return!0}function dz($){return $!==null&&typeof $==="object"&&"type"in $}var Z2=function($){if($===null||$===void 0)return uz;if(typeof $==="function")return Z9($);if(typeof $==="object")return Array.isArray($)?gz($):mz($);if(typeof $==="string")return pz($);throw Error("Expected function, string, or object as test")};var QX=()=>{};function qK($){return"\x1B[33m"+$+"\x1B[39m"}function qX($,X,G,Y){let J;if(typeof X==="function"&&typeof G!=="function")Y=G,G=X;else J=X;let W=Z2(J),H=Y?-1:1;U($,void 0,[])();function U(M,F,Q){let q=M&&typeof M==="object"?M:{};if(typeof q.type==="string"){let O=typeof q.tagName==="string"?q.tagName:typeof q.name==="string"?q.name:void 0;Object.defineProperty(R,"name",{value:"node ("+qK(M.type+(O?"<"+O+">":""))+")"})}return R;function R(){let O=OK,_,z,D;if(!X||W(M,F,Q[Q.length-1]||void 0)){if(O=lz(G(M,Q)),O[0]===j5)return O}if("children"in M&&M.children){let P=M;if(P.children&&O[0]!==A9){z=(Y?P.children.length:-1)+H,D=Q.concat(P);while(z>-1&&z<P.children.length){let b=P.children[z];if(_=U(b,z,D)(),_[0]===j5)return _;z=typeof _[1]==="number"?_[1]:z+H}}}return O}}}function lz($){if(Array.isArray($))return $;if(typeof $==="number")return[R9,$];return $===null||$===void 0?OK:[$]}var OK,R9=!0,j5=!1,A9="skip";var ZK=B(()=>{QX();OK=[]});var OX=B(()=>{ZK()});function ZX($,X,G,Y){let J,W,H;if(typeof X==="function"&&typeof G!=="function")W=void 0,H=X,J=G;else W=X,H=G,J=Y;qX($,W,U,J);function U(M,F){let Q=F[F.length-1],q=Q?Q.children.indexOf(M):void 0;return H(M,q,Q)}}var RK=B(()=>{OX();OX()});var AK=B(()=>{RK()});function B9($,X){let G=!1;return ZX($,function(Y){if("value"in Y&&/\r?\n|\r/.test(Y.value)||Y.type==="break")return G=!0,j5}),Boolean((!$.depth||$.depth<3)&&D5($)&&(X.options.setext||G))}var RX=B(()=>{AK();r8()});function BK($,X,G,Y){let J=Math.max(Math.min(6,$.depth||1),1),W=G.createTracker(Y);if(B9($,G)){let Q=G.enter("headingSetext"),q=G.enter("phrasing"),R=G.containerPhrasing($,{...W.current(),before:`
65
65
  `,after:`
66
66
  `});return q(),Q(),R+`
67
67
  `+(J===1?"=":"-").repeat(R.length-(Math.max(R.lastIndexOf("\r"),R.lastIndexOf(`
68
68
  `))+1))}let H="#".repeat(J),U=G.enter("headingAtx"),M=G.enter("phrasing");W.move(H+" ");let F=G.containerPhrasing($,{before:"# ",after:`
69
- `,...W.current()});if(/^[\t ]/.test(F))F=k1(F.charCodeAt(0))+F.slice(1);if(F=F?H+" "+F:H,G.options.closeAtx)F+=" "+H;return M(),U(),F}var NK=B(()=>{RX()});function AX($){return $.value||""}function cz(){return"<"}var VK=B(()=>{AX.peek=cz});function BX($,X,G,Y){let J=q5(G),W=J==='"'?"Quote":"Apostrophe",H=G.enter("image"),U=G.enter("label"),M=G.createTracker(Y),F=M.move("![");if(F+=M.move(G.safe($.alt,{before:F,after:"]",...M.current()})),F+=M.move("]("),U(),!$.url&&$.title||/[\0- \u007F]/.test($.url))U=G.enter("destinationLiteral"),F+=M.move("<"),F+=M.move(G.safe($.url,{before:F,after:">",...M.current()})),F+=M.move(">");else U=G.enter("destinationRaw"),F+=M.move(G.safe($.url,{before:F,after:$.title?" ":")",...M.current()}));if(U(),$.title)U=G.enter(`title${W}`),F+=M.move(" "+J),F+=M.move(G.safe($.title,{before:F,after:J,...M.current()})),F+=M.move(J),U();return F+=M.move(")"),H(),F}function rz(){return"!"}var wK=B(()=>{BX.peek=rz});function NX($,X,G,Y){let J=$.referenceType,W=G.enter("imageReference"),H=G.enter("label"),U=G.createTracker(Y),M=U.move("!["),F=G.safe($.alt,{before:M,after:"]",...U.current()});M+=U.move(F+"]["),H();let Q=G.stack;G.stack=[],H=G.enter("reference");let q=G.safe(G.associationId($),{before:M,after:"]",...U.current()});if(H(),G.stack=Q,W(),J==="full"||!F||F!==q)M+=U.move(q+"]");else if(J==="shortcut")M=M.slice(0,-1);else M+=U.move("]");return M}function iz(){return"!"}var _K=B(()=>{NX.peek=iz});function VX($,X,G){let Y=$.value||"",J="`",W=-1;while(new RegExp("(^|[^`])"+J+"([^`]|$)").test(Y))J+="`";if(/[^ \r\n]/.test(Y)&&(/^[ \r\n]/.test(Y)&&/[ \r\n]$/.test(Y)||/^`|`$/.test(Y)))Y=" "+Y+" ";while(++W<G.unsafe.length){let H=G.unsafe[W],U=G.compilePattern(H),M;if(!H.atBreak)continue;while(M=U.exec(Y)){let F=M.index;if(Y.charCodeAt(F)===10&&Y.charCodeAt(F-1)===13)F--;Y=Y.slice(0,F)+" "+Y.slice(M.index+1)}}return J+Y+J}function oz(){return"`"}var zK=B(()=>{VX.peek=oz});function wX($,X){let G=D6($);return Boolean(!X.options.resourceLink&&$.url&&!$.title&&$.children&&$.children.length===1&&$.children[0].type==="text"&&(G===$.url||"mailto:"+G===$.url)&&/^[a-z][a-z+.-]+:/i.test($.url)&&!/[\0- <>\u007F]/.test($.url))}var DK=B(()=>{r8()});function _X($,X,G,Y){let J=q5(G),W=J==='"'?"Quote":"Apostrophe",H=G.createTracker(Y),U,M;if(wX($,G)){let Q=G.stack;G.stack=[],U=G.enter("autolink");let q=H.move("<");return q+=H.move(G.containerPhrasing($,{before:q,after:">",...H.current()})),q+=H.move(">"),U(),G.stack=Q,q}U=G.enter("link"),M=G.enter("label");let F=H.move("[");if(F+=H.move(G.containerPhrasing($,{before:F,after:"](",...H.current()})),F+=H.move("]("),M(),!$.url&&$.title||/[\0- \u007F]/.test($.url))M=G.enter("destinationLiteral"),F+=H.move("<"),F+=H.move(G.safe($.url,{before:F,after:">",...H.current()})),F+=H.move(">");else M=G.enter("destinationRaw"),F+=H.move(G.safe($.url,{before:F,after:$.title?" ":")",...H.current()}));if(M(),$.title)M=G.enter(`title${W}`),F+=H.move(" "+J),F+=H.move(G.safe($.title,{before:F,after:J,...H.current()})),F+=H.move(J),M();return F+=H.move(")"),U(),F}function nz($,X,G){return wX($,G)?"<":"["}var PK=B(()=>{DK();_X.peek=nz});function zX($,X,G,Y){let J=$.referenceType,W=G.enter("linkReference"),H=G.enter("label"),U=G.createTracker(Y),M=U.move("["),F=G.containerPhrasing($,{before:M,after:"]",...U.current()});M+=U.move(F+"]["),H();let Q=G.stack;G.stack=[],H=G.enter("reference");let q=G.safe(G.associationId($),{before:M,after:"]",...U.current()});if(H(),G.stack=Q,W(),J==="full"||!F||F!==q)M+=U.move(q+"]");else if(J==="shortcut")M=M.slice(0,-1);else M+=U.move("]");return M}function sz(){return"["}var LK=B(()=>{zX.peek=sz});function R5($){let X=$.options.bullet||"*";if(X!=="*"&&X!=="+"&&X!=="-")throw Error("Cannot serialize items with `"+X+"` for `options.bullet`, expected `*`, `+`, or `-`");return X}function CK($){let X=R5($),G=$.options.bulletOther;if(!G)return X==="*"?"-":"*";if(G!=="*"&&G!=="+"&&G!=="-")throw Error("Cannot serialize items with `"+G+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(G===X)throw Error("Expected `bullet` (`"+X+"`) and `bulletOther` (`"+G+"`) to be different");return G}var TK=()=>{};function EK($){let X=$.options.bulletOrdered||".";if(X!=="."&&X!==")")throw Error("Cannot serialize items with `"+X+"` for `options.bulletOrdered`, expected `.` or `)`");return X}function N9($){let X=$.options.rule||"*";if(X!=="*"&&X!=="-"&&X!=="_")throw Error("Cannot serialize rules with `"+X+"` for `options.rule`, expected `*`, `-`, or `_`");return X}function IK($,X,G,Y){let J=G.enter("list"),W=G.bulletCurrent,H=$.ordered?EK(G):R5(G),U=$.ordered?H==="."?")":".":CK(G),M=X&&G.bulletLastUsed?H===G.bulletLastUsed:!1;if(!$.ordered){let Q=$.children?$.children[0]:void 0;if((H==="*"||H==="-")&&Q&&(!Q.children||!Q.children[0])&&G.stack[G.stack.length-1]==="list"&&G.stack[G.stack.length-2]==="listItem"&&G.stack[G.stack.length-3]==="list"&&G.stack[G.stack.length-4]==="listItem"&&G.indexStack[G.indexStack.length-1]===0&&G.indexStack[G.indexStack.length-2]===0&&G.indexStack[G.indexStack.length-3]===0)M=!0;if(N9(G)===H&&Q){let q=-1;while(++q<$.children.length){let R=$.children[q];if(R&&R.type==="listItem"&&R.children&&R.children[0]&&R.children[0].type==="thematicBreak"){M=!0;break}}}}if(M)H=U;G.bulletCurrent=H;let F=G.containerFlow($,Y);return G.bulletLastUsed=H,G.bulletCurrent=W,J(),F}var jK=B(()=>{TK()});function SK($){let X=$.options.listItemIndent||"one";if(X!=="tab"&&X!=="one"&&X!=="mixed")throw Error("Cannot serialize items with `"+X+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return X}function kK($,X,G,Y){let J=SK(G),W=G.bulletCurrent||R5(G);if(X&&X.type==="list"&&X.ordered)W=(typeof X.start==="number"&&X.start>-1?X.start:1)+(G.options.incrementListMarker===!1?0:X.children.indexOf($))+W;let H=W.length+1;if(J==="tab"||J==="mixed"&&(X&&X.type==="list"&&X.spread||$.spread))H=Math.ceil(H/4)*4;let U=G.createTracker(Y);U.move(W+" ".repeat(H-W.length)),U.shift(H);let M=G.enter("listItem"),F=G.indentLines(G.containerFlow($,U.current()),Q);return M(),F;function Q(q,R,O){if(R)return(O?"":" ".repeat(H))+q;return(O?W:W+" ".repeat(H-W.length))+q}}var vK=()=>{};function xK($,X,G,Y){let J=G.enter("paragraph"),W=G.enter("phrasing"),H=G.containerPhrasing($,Y);return W(),J(),H}var DX;var bK=B(()=>{QX();DX=Z5(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"])});var hK=B(()=>{bK()});function yK($,X,G,Y){return($.children.some(function(H){return DX(H)})?G.containerPhrasing:G.containerFlow).call(G,$,Y)}var fK=B(()=>{hK()});function gK($){let X=$.options.strong||"*";if(X!=="*"&&X!=="_")throw Error("Cannot serialize strong with `"+X+"` for `options.strong`, expected `*`, or `_`");return X}function PX($,X,G,Y){let J=gK(G),W=G.enter("strong"),H=G.createTracker(Y),U=H.move(J+J),M=H.move(G.containerPhrasing($,{after:J,before:U,...H.current()})),F=M.charCodeAt(0),Q=O5(Y.before.charCodeAt(Y.before.length-1),F,J);if(Q.inside)M=k1(F)+M.slice(1);let q=M.charCodeAt(M.length-1),R=O5(Y.after.charCodeAt(0),q,J);if(R.inside)M=M.slice(0,-1)+k1(q);let O=H.move(J+J);return W(),G.attentionEncodeSurroundingInfo={after:R.outside,before:Q.outside},U+M+O}function az($,X,G){return G.options.strong||"*"}var mK=B(()=>{MX();PX.peek=az});function pK($,X,G,Y){return G.safe($.value,Y)}function uK($){let X=$.options.ruleRepetition||3;if(X<3)throw Error("Cannot serialize rules with repetition `"+X+"` for `options.ruleRepetition`, expected `3` or more");return X}function dK($,X,G){let Y=(N9(G)+(G.options.ruleSpaces?" ":"")).repeat(uK(G));return G.options.ruleSpaces?Y.slice(0,-1):Y}var lK=()=>{};var cK;var rK=B(()=>{YK();UK();MK();QK();NK();VK();wK();_K();zK();PK();LK();jK();vK();fK();mK();lK();cK={blockquote:XK,break:KX,code:HK,definition:KK,emphasis:FX,hardBreak:KX,heading:BK,html:AX,image:BX,imageReference:NX,inlineCode:VX,link:_X,linkReference:zX,list:IK,listItem:kK,paragraph:xK,root:yK,strong:PX,text:pK,thematicBreak:dK}});function tz($,X,G,Y){if(X.type==="code"&&D4(X,Y)&&($.type==="list"||$.type===X.type&&D4($,Y)))return!1;if("spread"in G&&typeof G.spread==="boolean"){if($.type==="paragraph"&&($.type===X.type||X.type==="definition"||X.type==="heading"&&B9(X,Y)))return;return G.spread?1:0}}var iK;var oK=B(()=>{RX();iK=[tz]});var S6,nK;var sK=B(()=>{S6=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],nK=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
70
- `,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:S6},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
71
- ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:S6},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
72
- *])`},{character:"*",inConstruct:"phrasing",notInConstruct:S6},{atBreak:!0,character:"+",after:`(?:[ \r
69
+ `,...W.current()});if(/^[\t ]/.test(F))F=k1(F.charCodeAt(0))+F.slice(1);if(F=F?H+" "+F:H,G.options.closeAtx)F+=" "+H;return M(),U(),F}var NK=B(()=>{RX()});function AX($){return $.value||""}function cz(){return"<"}var VK=B(()=>{AX.peek=cz});function BX($,X,G,Y){let J=q2(G),W=J==='"'?"Quote":"Apostrophe",H=G.enter("image"),U=G.enter("label"),M=G.createTracker(Y),F=M.move("![");if(F+=M.move(G.safe($.alt,{before:F,after:"]",...M.current()})),F+=M.move("]("),U(),!$.url&&$.title||/[\0- \u007F]/.test($.url))U=G.enter("destinationLiteral"),F+=M.move("<"),F+=M.move(G.safe($.url,{before:F,after:">",...M.current()})),F+=M.move(">");else U=G.enter("destinationRaw"),F+=M.move(G.safe($.url,{before:F,after:$.title?" ":")",...M.current()}));if(U(),$.title)U=G.enter(`title${W}`),F+=M.move(" "+J),F+=M.move(G.safe($.title,{before:F,after:J,...M.current()})),F+=M.move(J),U();return F+=M.move(")"),H(),F}function rz(){return"!"}var wK=B(()=>{BX.peek=rz});function NX($,X,G,Y){let J=$.referenceType,W=G.enter("imageReference"),H=G.enter("label"),U=G.createTracker(Y),M=U.move("!["),F=G.safe($.alt,{before:M,after:"]",...U.current()});M+=U.move(F+"]["),H();let Q=G.stack;G.stack=[],H=G.enter("reference");let q=G.safe(G.associationId($),{before:M,after:"]",...U.current()});if(H(),G.stack=Q,W(),J==="full"||!F||F!==q)M+=U.move(q+"]");else if(J==="shortcut")M=M.slice(0,-1);else M+=U.move("]");return M}function iz(){return"!"}var _K=B(()=>{NX.peek=iz});function VX($,X,G){let Y=$.value||"",J="`",W=-1;while(new RegExp("(^|[^`])"+J+"([^`]|$)").test(Y))J+="`";if(/[^ \r\n]/.test(Y)&&(/^[ \r\n]/.test(Y)&&/[ \r\n]$/.test(Y)||/^`|`$/.test(Y)))Y=" "+Y+" ";while(++W<G.unsafe.length){let H=G.unsafe[W],U=G.compilePattern(H),M;if(!H.atBreak)continue;while(M=U.exec(Y)){let F=M.index;if(Y.charCodeAt(F)===10&&Y.charCodeAt(F-1)===13)F--;Y=Y.slice(0,F)+" "+Y.slice(M.index+1)}}return J+Y+J}function oz(){return"`"}var zK=B(()=>{VX.peek=oz});function wX($,X){let G=D5($);return Boolean(!X.options.resourceLink&&$.url&&!$.title&&$.children&&$.children.length===1&&$.children[0].type==="text"&&(G===$.url||"mailto:"+G===$.url)&&/^[a-z][a-z+.-]+:/i.test($.url)&&!/[\0- <>\u007F]/.test($.url))}var DK=B(()=>{r8()});function _X($,X,G,Y){let J=q2(G),W=J==='"'?"Quote":"Apostrophe",H=G.createTracker(Y),U,M;if(wX($,G)){let Q=G.stack;G.stack=[],U=G.enter("autolink");let q=H.move("<");return q+=H.move(G.containerPhrasing($,{before:q,after:">",...H.current()})),q+=H.move(">"),U(),G.stack=Q,q}U=G.enter("link"),M=G.enter("label");let F=H.move("[");if(F+=H.move(G.containerPhrasing($,{before:F,after:"](",...H.current()})),F+=H.move("]("),M(),!$.url&&$.title||/[\0- \u007F]/.test($.url))M=G.enter("destinationLiteral"),F+=H.move("<"),F+=H.move(G.safe($.url,{before:F,after:">",...H.current()})),F+=H.move(">");else M=G.enter("destinationRaw"),F+=H.move(G.safe($.url,{before:F,after:$.title?" ":")",...H.current()}));if(M(),$.title)M=G.enter(`title${W}`),F+=H.move(" "+J),F+=H.move(G.safe($.title,{before:F,after:J,...H.current()})),F+=H.move(J),M();return F+=H.move(")"),U(),F}function nz($,X,G){return wX($,G)?"<":"["}var PK=B(()=>{DK();_X.peek=nz});function zX($,X,G,Y){let J=$.referenceType,W=G.enter("linkReference"),H=G.enter("label"),U=G.createTracker(Y),M=U.move("["),F=G.containerPhrasing($,{before:M,after:"]",...U.current()});M+=U.move(F+"]["),H();let Q=G.stack;G.stack=[],H=G.enter("reference");let q=G.safe(G.associationId($),{before:M,after:"]",...U.current()});if(H(),G.stack=Q,W(),J==="full"||!F||F!==q)M+=U.move(q+"]");else if(J==="shortcut")M=M.slice(0,-1);else M+=U.move("]");return M}function sz(){return"["}var LK=B(()=>{zX.peek=sz});function R2($){let X=$.options.bullet||"*";if(X!=="*"&&X!=="+"&&X!=="-")throw Error("Cannot serialize items with `"+X+"` for `options.bullet`, expected `*`, `+`, or `-`");return X}function CK($){let X=R2($),G=$.options.bulletOther;if(!G)return X==="*"?"-":"*";if(G!=="*"&&G!=="+"&&G!=="-")throw Error("Cannot serialize items with `"+G+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(G===X)throw Error("Expected `bullet` (`"+X+"`) and `bulletOther` (`"+G+"`) to be different");return G}var TK=()=>{};function EK($){let X=$.options.bulletOrdered||".";if(X!=="."&&X!==")")throw Error("Cannot serialize items with `"+X+"` for `options.bulletOrdered`, expected `.` or `)`");return X}function N9($){let X=$.options.rule||"*";if(X!=="*"&&X!=="-"&&X!=="_")throw Error("Cannot serialize rules with `"+X+"` for `options.rule`, expected `*`, `-`, or `_`");return X}function IK($,X,G,Y){let J=G.enter("list"),W=G.bulletCurrent,H=$.ordered?EK(G):R2(G),U=$.ordered?H==="."?")":".":CK(G),M=X&&G.bulletLastUsed?H===G.bulletLastUsed:!1;if(!$.ordered){let Q=$.children?$.children[0]:void 0;if((H==="*"||H==="-")&&Q&&(!Q.children||!Q.children[0])&&G.stack[G.stack.length-1]==="list"&&G.stack[G.stack.length-2]==="listItem"&&G.stack[G.stack.length-3]==="list"&&G.stack[G.stack.length-4]==="listItem"&&G.indexStack[G.indexStack.length-1]===0&&G.indexStack[G.indexStack.length-2]===0&&G.indexStack[G.indexStack.length-3]===0)M=!0;if(N9(G)===H&&Q){let q=-1;while(++q<$.children.length){let R=$.children[q];if(R&&R.type==="listItem"&&R.children&&R.children[0]&&R.children[0].type==="thematicBreak"){M=!0;break}}}}if(M)H=U;G.bulletCurrent=H;let F=G.containerFlow($,Y);return G.bulletLastUsed=H,G.bulletCurrent=W,J(),F}var jK=B(()=>{TK()});function SK($){let X=$.options.listItemIndent||"one";if(X!=="tab"&&X!=="one"&&X!=="mixed")throw Error("Cannot serialize items with `"+X+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return X}function kK($,X,G,Y){let J=SK(G),W=G.bulletCurrent||R2(G);if(X&&X.type==="list"&&X.ordered)W=(typeof X.start==="number"&&X.start>-1?X.start:1)+(G.options.incrementListMarker===!1?0:X.children.indexOf($))+W;let H=W.length+1;if(J==="tab"||J==="mixed"&&(X&&X.type==="list"&&X.spread||$.spread))H=Math.ceil(H/4)*4;let U=G.createTracker(Y);U.move(W+" ".repeat(H-W.length)),U.shift(H);let M=G.enter("listItem"),F=G.indentLines(G.containerFlow($,U.current()),Q);return M(),F;function Q(q,R,O){if(R)return(O?"":" ".repeat(H))+q;return(O?W:W+" ".repeat(H-W.length))+q}}var vK=()=>{};function xK($,X,G,Y){let J=G.enter("paragraph"),W=G.enter("phrasing"),H=G.containerPhrasing($,Y);return W(),J(),H}var DX;var bK=B(()=>{QX();DX=Z2(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"])});var hK=B(()=>{bK()});function yK($,X,G,Y){return($.children.some(function(H){return DX(H)})?G.containerPhrasing:G.containerFlow).call(G,$,Y)}var fK=B(()=>{hK()});function gK($){let X=$.options.strong||"*";if(X!=="*"&&X!=="_")throw Error("Cannot serialize strong with `"+X+"` for `options.strong`, expected `*`, or `_`");return X}function PX($,X,G,Y){let J=gK(G),W=G.enter("strong"),H=G.createTracker(Y),U=H.move(J+J),M=H.move(G.containerPhrasing($,{after:J,before:U,...H.current()})),F=M.charCodeAt(0),Q=O2(Y.before.charCodeAt(Y.before.length-1),F,J);if(Q.inside)M=k1(F)+M.slice(1);let q=M.charCodeAt(M.length-1),R=O2(Y.after.charCodeAt(0),q,J);if(R.inside)M=M.slice(0,-1)+k1(q);let O=H.move(J+J);return W(),G.attentionEncodeSurroundingInfo={after:R.outside,before:Q.outside},U+M+O}function az($,X,G){return G.options.strong||"*"}var mK=B(()=>{MX();PX.peek=az});function pK($,X,G,Y){return G.safe($.value,Y)}function uK($){let X=$.options.ruleRepetition||3;if(X<3)throw Error("Cannot serialize rules with repetition `"+X+"` for `options.ruleRepetition`, expected `3` or more");return X}function dK($,X,G){let Y=(N9(G)+(G.options.ruleSpaces?" ":"")).repeat(uK(G));return G.options.ruleSpaces?Y.slice(0,-1):Y}var lK=()=>{};var cK;var rK=B(()=>{YK();UK();MK();QK();NK();VK();wK();_K();zK();PK();LK();jK();vK();fK();mK();lK();cK={blockquote:XK,break:KX,code:HK,definition:KK,emphasis:FX,hardBreak:KX,heading:BK,html:AX,image:BX,imageReference:NX,inlineCode:VX,link:_X,linkReference:zX,list:IK,listItem:kK,paragraph:xK,root:yK,strong:PX,text:pK,thematicBreak:dK}});function tz($,X,G,Y){if(X.type==="code"&&D4(X,Y)&&($.type==="list"||$.type===X.type&&D4($,Y)))return!1;if("spread"in G&&typeof G.spread==="boolean"){if($.type==="paragraph"&&($.type===X.type||X.type==="definition"||X.type==="heading"&&B9(X,Y)))return;return G.spread?1:0}}var iK;var oK=B(()=>{RX();iK=[tz]});var S5,nK;var sK=B(()=>{S5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],nK=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
70
+ `,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:S5},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
71
+ ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:S5},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
72
+ *])`},{character:"*",inConstruct:"phrasing",notInConstruct:S5},{atBreak:!0,character:"+",after:`(?:[ \r
73
73
  ])`},{atBreak:!0,character:"-",after:`(?:[ \r
74
74
  -])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
75
- ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:S6},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:S6},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:S6},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:S6},{atBreak:!0,character:"~"}]});function aK($){if($.label||!$.identifier)return $.label||"";return Q9($.identifier)}var tK=B(()=>{YX()});function eK($){if(!$._compiled){let X=($.atBreak?"[\\r\\n][\\t ]*":"")+($.before?"(?:"+$.before+")":"");$._compiled=new RegExp((X?"("+X+")":"")+(/[|\\{}()[\]^$+*?.-]/.test($.character)?"\\":"")+$.character+($.after?"(?:"+$.after+")":""),"g")}return $._compiled}function $M($,X,G){let Y=X.indexStack,J=$.children||[],W=[],H=-1,U=G.before,M;Y.push(-1);let F=X.createTracker(G);while(++H<J.length){let Q=J[H],q;if(Y[Y.length-1]=H,H+1<J.length){let _=X.handle.handlers[J[H+1].type];if(_&&_.peek)_=_.peek;q=_?_(J[H+1],$,X,{before:"",after:"",...F.current()}).charAt(0):""}else q=G.after;if(W.length>0&&(U==="\r"||U===`
75
+ ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:S5},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:S5},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:S5},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:S5},{atBreak:!0,character:"~"}]});function aK($){if($.label||!$.identifier)return $.label||"";return Q9($.identifier)}var tK=B(()=>{YX()});function eK($){if(!$._compiled){let X=($.atBreak?"[\\r\\n][\\t ]*":"")+($.before?"(?:"+$.before+")":"");$._compiled=new RegExp((X?"("+X+")":"")+(/[|\\{}()[\]^$+*?.-]/.test($.character)?"\\":"")+$.character+($.after?"(?:"+$.after+")":""),"g")}return $._compiled}function $M($,X,G){let Y=X.indexStack,J=$.children||[],W=[],H=-1,U=G.before,M;Y.push(-1);let F=X.createTracker(G);while(++H<J.length){let Q=J[H],q;if(Y[Y.length-1]=H,H+1<J.length){let _=X.handle.handlers[J[H+1].type];if(_&&_.peek)_=_.peek;q=_?_(J[H+1],$,X,{before:"",after:"",...F.current()}).charAt(0):""}else q=G.after;if(W.length>0&&(U==="\r"||U===`
76
76
  `)&&Q.type==="html")W[W.length-1]=W[W.length-1].replace(/(\r?\n|\r)$/," "),U=" ",F=X.createTracker(G),F.move(W.join(""));let R=X.handle(Q,$,X,{...F.current(),after:q,before:U});if(M&&M===R.slice(0,1))R=k1(M.charCodeAt(0))+R.slice(1);let O=X.attentionEncodeSurroundingInfo;if(X.attentionEncodeSurroundingInfo=void 0,M=void 0,O){if(W.length>0&&O.before&&U===W[W.length-1].slice(-1))W[W.length-1]=W[W.length-1].slice(0,-1)+k1(U.charCodeAt(0));if(O.after)M=q}F.move(R),W.push(R),U=R.slice(-1)}return Y.pop(),W.join("")}var XM=()=>{};function GM($,X,G){let Y=X.indexStack,J=$.children||[],W=X.createTracker(G),H=[],U=-1;Y.push(-1);while(++U<J.length){let M=J[U];if(Y[Y.length-1]=U,H.push(W.move(X.handle(M,$,X,{before:`
77
77
  `,after:`
78
78
  `,...W.current()}))),M.type!=="list")X.bulletLastUsed=void 0;if(U<J.length-1)H.push(W.move(ez(M,J[U+1],$,X)))}return Y.pop(),H.join("")}function ez($,X,G,Y){let J=Y.join.length;while(J--){let W=Y.join[J]($,X,G,Y);if(W===!0||W===1)break;if(typeof W==="number")return`
@@ -85,25 +85,25 @@ return `+str.trim()+`;
85
85
  `}function YM($,X){let G=[],Y=0,J=0,W;while(W=$D.exec($))H($.slice(Y,W.index)),G.push(W[0]),Y=W.index+W[0].length,J++;return H($.slice(Y)),G.join("");function H(U){G.push(X(U,J,!U))}}var $D;var JM=B(()=>{$D=/\r?\n|\r/g});function HM($,X,G){let Y=(G.before||"")+(X||"")+(G.after||""),J=[],W=[],H={},U=-1;while(++U<$.unsafe.length){let Q=$.unsafe[U];if(!O9($.stack,Q))continue;let q=$.compilePattern(Q),R;while(R=q.exec(Y)){let O="before"in Q||Boolean(Q.atBreak),_="after"in Q,z=R.index+(O?R[1].length:0);if(J.includes(z)){if(H[z].before&&!O)H[z].before=!1;if(H[z].after&&!_)H[z].after=!1}else J.push(z),H[z]={before:O,after:_}}}J.sort(XD);let M=G.before?G.before.length:0,F=Y.length-(G.after?G.after.length:0);U=-1;while(++U<J.length){let Q=J[U];if(Q<M||Q>=F)continue;if(Q+1<F&&J[U+1]===Q+1&&H[Q].after&&!H[Q+1].before&&!H[Q+1].after||J[U-1]===Q-1&&H[Q].before&&!H[Q-1].before&&!H[Q-1].after)continue;if(M!==Q)W.push(WM(Y.slice(M,Q),"\\"));if(M=Q,/[!-/:-@[-`{-~]/.test(Y.charAt(Q))&&(!G.encode||!G.encode.includes(Y.charAt(Q))))W.push("\\");else W.push(k1(Y.charCodeAt(Q))),M++}return W.push(WM(Y.slice(M,F),G.after)),W.join("")}function XD($,X){return $-X}function WM($,X){let G=/\\(?=[!-/:-@[-`{-~])/g,Y=[],J=[],W=$+X,H=-1,U=0,M;while(M=G.exec(W))Y.push(M.index);while(++H<Y.length){if(U!==Y[H])J.push($.slice(U,Y[H]));J.push("\\"),U=Y[H]}return J.push($.slice(U)),J.join("")}var UM=()=>{};function KM($){let X=$||{},G=X.now||{},Y=X.lineShift||0,J=G.line||1,W=G.column||1;return{move:M,current:H,shift:U};function H(){return{now:{line:J,column:W},lineShift:Y}}function U(F){Y+=F}function M(F){let Q=F||"",q=Q.split(/\r?\n|\r/g),R=q[q.length-1];return J+=q.length-1,W=q.length===1?W+R.length:1+R.length+Y,Q}}function LX($,X){let G=X||{},Y={associationId:aK,containerPhrasing:WD,containerFlow:HD,createTracker:KM,compilePattern:eK,enter:W,handlers:{...cK},handle:void 0,indentLines:YM,indexStack:[],join:[...iK],options:{},safe:UD,stack:[],unsafe:[...nK]};if(UX(Y,G),Y.options.tightDefinitions)Y.join.push(JD);Y.handle=aU("type",{invalid:GD,unknown:YD,handlers:Y.handlers});let J=Y.handle($,void 0,Y,{before:`
86
86
  `,after:`
87
87
  `,now:{line:1,column:1},lineShift:0});if(J&&J.charCodeAt(J.length-1)!==10&&J.charCodeAt(J.length-1)!==13)J+=`
88
- `;return J;function W(H){return Y.stack.push(H),U;function U(){Y.stack.pop()}}}function GD($){throw Error("Cannot handle value `"+$+"`, expected node")}function YD($){throw Error("Cannot handle unknown node `"+$.type+"`")}function JD($,X){if($.type==="definition"&&$.type===X.type)return 0}function WD($,X){return $M($,this,X)}function HD($,X){return GM($,this,X)}function UD($,X){return HM(this,$,X)}var MM=B(()=>{tU();$K();rK();oK();sK();tK();XM();JM();UM()});var FM=B(()=>{MM()});function V9($){let X=this;X.compiler=G;function G(Y){return LX(Y,{...X.data("settings"),...$,extensions:X.data("toMarkdownExtensions")||[]})}}var QM=B(()=>{FM()});var qM=B(()=>{QM()});function CX($){if($)throw $}var _M=l((Zm,wM)=>{var w9=Object.prototype.hasOwnProperty,VM=Object.prototype.toString,OM=Object.defineProperty,ZM=Object.getOwnPropertyDescriptor,RM=function(X){if(typeof Array.isArray==="function")return Array.isArray(X);return VM.call(X)==="[object Array]"},AM=function(X){if(!X||VM.call(X)!=="[object Object]")return!1;var G=w9.call(X,"constructor"),Y=X.constructor&&X.constructor.prototype&&w9.call(X.constructor.prototype,"isPrototypeOf");if(X.constructor&&!G&&!Y)return!1;var J;for(J in X);return typeof J>"u"||w9.call(X,J)},BM=function(X,G){if(OM&&G.name==="__proto__")OM(X,G.name,{enumerable:!0,configurable:!0,value:G.newValue,writable:!0});else X[G.name]=G.newValue},NM=function(X,G){if(G==="__proto__"){if(!w9.call(X,G))return;else if(ZM)return ZM(X,G).value}return X[G]};wM.exports=function $(){var X,G,Y,J,W,H,U=arguments[0],M=1,F=arguments.length,Q=!1;if(typeof U==="boolean")Q=U,U=arguments[1]||{},M=2;if(U==null||typeof U!=="object"&&typeof U!=="function")U={};for(;M<F;++M)if(X=arguments[M],X!=null){for(G in X)if(Y=NM(U,G),J=NM(X,G),U!==J){if(Q&&J&&(AM(J)||(W=RM(J)))){if(W)W=!1,H=Y&&RM(Y)?Y:[];else H=Y&&AM(Y)?Y:{};BM(U,{name:G,newValue:$(Q,H,J)})}else if(typeof J<"u")BM(U,{name:G,newValue:J})}}return U}});function P4($){if(typeof $!=="object"||$===null)return!1;let X=Object.getPrototypeOf($);return(X===null||X===Object.prototype||Object.getPrototypeOf(X)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)}function TX(){let $=[],X={run:G,use:Y};return X;function G(...J){let W=-1,H=J.pop();if(typeof H!=="function")throw TypeError("Expected function as last argument, not "+H);U(null,...J);function U(M,...F){let Q=$[++W],q=-1;if(M){H(M);return}while(++q<J.length)if(F[q]===null||F[q]===void 0)F[q]=J[q];if(J=F,Q)zM(Q,U)(...F);else H(null,...F)}}function Y(J){if(typeof J!=="function")throw TypeError("Expected `middelware` to be a function, not "+J);return $.push(J),X}}function zM($,X){let G;return Y;function Y(...H){let U=$.length>H.length,M;if(U)H.push(J);try{M=$.apply(this,H)}catch(F){let Q=F;if(U&&G)throw Q;return J(Q)}if(!U)if(M&&M.then&&typeof M.then==="function")M.then(W,J);else if(M instanceof Error)J(M);else W(M)}function J(H,...U){if(!G)G=!0,X(H,...U)}function W(H){J(null,H)}}var DM=()=>{};var e0;var PM=B(()=>{WX();e0=class e0 extends Error{constructor($,X,G){super();if(typeof X==="string")G=X,X=void 0;let Y="",J={},W=!1;if(X)if("line"in X&&"column"in X)J={place:X};else if("start"in X&&"end"in X)J={place:X};else if("type"in X)J={ancestors:[X],place:X.position};else J={...X};if(typeof $==="string")Y=$;else if(!J.cause&&$)W=!0,Y=$.message,J.cause=$;if(!J.ruleId&&!J.source&&typeof G==="string"){let U=G.indexOf(":");if(U===-1)J.ruleId=G;else J.source=G.slice(0,U),J.ruleId=G.slice(U+1)}if(!J.place&&J.ancestors&&J.ancestors){let U=J.ancestors[J.ancestors.length-1];if(U)J.place=U.position}let H=J.place&&"start"in J.place?J.place.start:J.place;this.ancestors=J.ancestors||void 0,this.cause=J.cause||void 0,this.column=H?H.column:void 0,this.fatal=void 0,this.file="",this.message=Y,this.line=H?H.line:void 0,this.name=m2(J.place)||"1:1",this.place=J.place||void 0,this.reason=this.message,this.ruleId=J.ruleId||void 0,this.source=J.source||void 0,this.stack=W&&J.cause&&typeof J.cause.stack==="string"?J.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};e0.prototype.file="";e0.prototype.name="";e0.prototype.reason="";e0.prototype.message="";e0.prototype.stack="";e0.prototype.column=void 0;e0.prototype.line=void 0;e0.prototype.ancestors=void 0;e0.prototype.cause=void 0;e0.prototype.fatal=void 0;e0.prototype.place=void 0;e0.prototype.ruleId=void 0;e0.prototype.source=void 0});var LM=B(()=>{PM()});import{default as d1}from"path";var CM=()=>{};import{default as TM}from"process";var EM=()=>{};function _9($){return Boolean($!==null&&typeof $==="object"&&"href"in $&&$.href&&"protocol"in $&&$.protocol&&$.auth===void 0)}import{fileURLToPath as IM}from"url";var jM=()=>{};class z9{constructor($){let X;if(!$)X={};else if(_9($))X={path:$};else if(typeof $==="string"||KD($))X={value:$};else X=$;this.cwd="cwd"in X?"":TM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let G=-1;while(++G<EX.length){let J=EX[G];if(J in X&&X[J]!==void 0&&X[J]!==null)this[J]=J==="history"?[...X[J]]:X[J]}let Y;for(Y in X)if(!EX.includes(Y))this[Y]=X[Y]}get basename(){return typeof this.path==="string"?d1.basename(this.path):void 0}set basename($){jX($,"basename"),IX($,"basename"),this.path=d1.join(this.dirname||"",$)}get dirname(){return typeof this.path==="string"?d1.dirname(this.path):void 0}set dirname($){SM(this.basename,"dirname"),this.path=d1.join($||"",this.basename)}get extname(){return typeof this.path==="string"?d1.extname(this.path):void 0}set extname($){if(IX($,"extname"),SM(this.dirname,"extname"),$){if($.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if($.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=d1.join(this.dirname,this.stem+($||""))}get path(){return this.history[this.history.length-1]}set path($){if(_9($))$=IM($);if(jX($,"path"),this.path!==$)this.history.push($)}get stem(){return typeof this.path==="string"?d1.basename(this.path,this.extname):void 0}set stem($){jX($,"stem"),IX($,"stem"),this.path=d1.join(this.dirname||"",$+(this.extname||""))}fail($,X,G){let Y=this.message($,X,G);throw Y.fatal=!0,Y}info($,X,G){let Y=this.message($,X,G);return Y.fatal=void 0,Y}message($,X,G){let Y=new e0($,X,G);if(this.path)Y.name=this.path+":"+Y.name,Y.file=this.path;return Y.fatal=!1,this.messages.push(Y),Y}toString($){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder($||void 0).decode(this.value)}}function IX($,X){if($&&$.includes(d1.sep))throw Error("`"+X+"` cannot be a path: did not expect `"+d1.sep+"`")}function jX($,X){if(!$)throw Error("`"+X+"` cannot be empty")}function SM($,X){if(!$)throw Error("Setting `"+X+"` requires `path` to be set too")}function KD($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var EX;var kM=B(()=>{LM();CM();EM();jM();EX=["history","path","basename","stem","extname","dirname"]});var vM=B(()=>{kM()});var xM=function($){let Y=this.constructor.prototype,J=Y[$],W=function(){return J.apply(W,arguments)};return Object.setPrototypeOf(W,Y),W};function SX($,X){if(typeof X!=="function")throw TypeError("Cannot `"+$+"` without `parser`")}function kX($,X){if(typeof X!=="function")throw TypeError("Cannot `"+$+"` without `compiler`")}function vX($,X){if(X)throw Error("Cannot call `"+$+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function bM($){if(!P4($)||typeof $.type!=="string")throw TypeError("Expected node, got `"+$+"`")}function hM($,X,G){if(!G)throw Error("`"+$+"` finished async. Use `"+X+"` instead")}function D9($){return FD($)?$:new z9($)}function FD($){return Boolean($&&typeof $==="object"&&"message"in $&&"messages"in $)}function QD($){return typeof $==="string"||qD($)}function qD($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var P9,MD,xX,bX;var yM=B(()=>{R0();DM();vM();P9=k8(_M(),1),MD={}.hasOwnProperty;xX=class xX extends xM{constructor(){super("copy");this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=TX()}copy(){let $=new xX,X=-1;while(++X<this.attachers.length){let G=this.attachers[X];$.use(...G)}return $.data(P9.default(!0,{},this.namespace)),$}data($,X){if(typeof $==="string"){if(arguments.length===2)return vX("data",this.frozen),this.namespace[$]=X,this;return MD.call(this.namespace,$)&&this.namespace[$]||void 0}if($)return vX("data",this.frozen),this.namespace=$,this;return this.namespace}freeze(){if(this.frozen)return this;let $=this;while(++this.freezeIndex<this.attachers.length){let[X,...G]=this.attachers[this.freezeIndex];if(G[0]===!1)continue;if(G[0]===!0)G[0]=void 0;let Y=X.call($,...G);if(typeof Y==="function")this.transformers.use(Y)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse($){this.freeze();let X=D9($),G=this.parser||this.Parser;return SX("parse",G),G(String(X),X)}process($,X){let G=this;return this.freeze(),SX("process",this.parser||this.Parser),kX("process",this.compiler||this.Compiler),X?Y(void 0,X):new Promise(Y);function Y(J,W){let H=D9($),U=G.parse(H);G.run(U,H,function(F,Q,q){if(F||!Q||!q)return M(F);let R=Q,O=G.stringify(R,q);if(QD(O))q.value=O;else q.result=O;M(F,q)});function M(F,Q){if(F||!Q)W(F);else if(J)J(Q);else N(X,"`done` is defined if `resolve` is not"),X(void 0,Q)}}}processSync($){let X=!1,G;return this.freeze(),SX("processSync",this.parser||this.Parser),kX("processSync",this.compiler||this.Compiler),this.process($,Y),hM("processSync","process",X),N(G,"we either bailed on an error or have a tree"),G;function Y(J,W){X=!0,CX(J),G=W}}run($,X,G){bM($),this.freeze();let Y=this.transformers;if(!G&&typeof X==="function")G=X,X=void 0;return G?J(void 0,G):new Promise(J);function J(W,H){N(typeof X!=="function","`file` can\u2019t be a `done` anymore, we checked");let U=D9(X);Y.run($,U,M);function M(F,Q,q){let R=Q||$;if(F)H(F);else if(W)W(R);else N(G,"`done` is defined if `resolve` is not"),G(void 0,R,q)}}}runSync($,X){let G=!1,Y;return this.run($,X,J),hM("runSync","run",G),N(Y,"we either bailed on an error or have a tree"),Y;function J(W,H){CX(W),Y=H,G=!0}}stringify($,X){this.freeze();let G=D9(X),Y=this.compiler||this.Compiler;return kX("stringify",Y),bM($),Y($,G)}use($,...X){let G=this.attachers,Y=this.namespace;if(vX("use",this.frozen),$===null||$===void 0);else if(typeof $==="function")U($,X);else if(typeof $==="object")if(Array.isArray($))H($);else W($);else throw TypeError("Expected usable value, not `"+$+"`");return this;function J(M){if(typeof M==="function")U(M,[]);else if(typeof M==="object")if(Array.isArray(M)){let[F,...Q]=M;U(F,Q)}else W(M);else throw TypeError("Expected usable value, not `"+M+"`")}function W(M){if(!("plugins"in M)&&!("settings"in M))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");if(H(M.plugins),M.settings)Y.settings=P9.default(!0,Y.settings,M.settings)}function H(M){let F=-1;if(M===null||M===void 0);else if(Array.isArray(M))while(++F<M.length){let Q=M[F];J(Q)}else throw TypeError("Expected a list of plugins, not `"+M+"`")}function U(M,F){let Q=-1,q=-1;while(++Q<G.length)if(G[Q][0]===M){q=Q;break}if(q===-1)G.push([M,...F]);else if(F.length>0){let[R,...O]=F,_=G[q][1];if(P4(_)&&P4(R))R=P9.default(!0,_,R);G[q]=[M,R,...O]}}}};bX=new xX().freeze()});var fM=B(()=>{yM()});var A5;var L9=B(()=>{nU();qM();fM();A5=bX().use(q9).use(V9).freeze()});var OD,em;var gM=B(()=>{L9();OD=k8(L$(),1),em=A5()});class u2{callback;heartbeatInterval;constructor($){this.callback=$}static from($){if(!$)return;return new u2($)}createSub($){let{scale:X}=$??{};if(X){let{start:G,end:Y}=X,J=Y-G;return new u2(async(W)=>{let H=G+W.progress/(W.total??100)*J;await this.callback({...W,progress:H,total:100})})}return new u2(this.callback)}async report($){await this.callback($)}startHeartbeat($,X=5000){this.stopHeartbeat(),this.heartbeatInterval=setInterval(()=>{this.report({message:$,progress:0}).catch(()=>{})},X)}stopHeartbeat(){if(this.heartbeatInterval)clearInterval(this.heartbeatInterval),this.heartbeatInterval=void 0}toCallback(){return this.callback}}function XF($){return typeof $>"u"||$===null}function ZD($){return typeof $==="object"&&$!==null}function RD($){if(Array.isArray($))return $;else if(XF($))return[];return[$]}function AD($,X){var G,Y,J,W;if(X){W=Object.keys(X);for(G=0,Y=W.length;G<Y;G+=1)J=W[G],$[J]=X[J]}return $}function BD($,X){var G="",Y;for(Y=0;Y<X;Y+=1)G+=$;return G}function ND($){return $===0&&Number.NEGATIVE_INFINITY===1/$}function GF($,X){var G="",Y=$.reason||"(unknown reason)";if(!$.mark)return Y;if($.mark.name)G+='in "'+$.mark.name+'" ';if(G+="("+($.mark.line+1)+":"+($.mark.column+1)+")",!X&&$.mark.snippet)G+=`
88
+ `;return J;function W(H){return Y.stack.push(H),U;function U(){Y.stack.pop()}}}function GD($){throw Error("Cannot handle value `"+$+"`, expected node")}function YD($){throw Error("Cannot handle unknown node `"+$.type+"`")}function JD($,X){if($.type==="definition"&&$.type===X.type)return 0}function WD($,X){return $M($,this,X)}function HD($,X){return GM($,this,X)}function UD($,X){return HM(this,$,X)}var MM=B(()=>{tU();$K();rK();oK();sK();tK();XM();JM();UM()});var FM=B(()=>{MM()});function V9($){let X=this;X.compiler=G;function G(Y){return LX(Y,{...X.data("settings"),...$,extensions:X.data("toMarkdownExtensions")||[]})}}var QM=B(()=>{FM()});var qM=B(()=>{QM()});function CX($){if($)throw $}var _M=l((Zm,wM)=>{var w9=Object.prototype.hasOwnProperty,VM=Object.prototype.toString,OM=Object.defineProperty,ZM=Object.getOwnPropertyDescriptor,RM=function(X){if(typeof Array.isArray==="function")return Array.isArray(X);return VM.call(X)==="[object Array]"},AM=function(X){if(!X||VM.call(X)!=="[object Object]")return!1;var G=w9.call(X,"constructor"),Y=X.constructor&&X.constructor.prototype&&w9.call(X.constructor.prototype,"isPrototypeOf");if(X.constructor&&!G&&!Y)return!1;var J;for(J in X);return typeof J>"u"||w9.call(X,J)},BM=function(X,G){if(OM&&G.name==="__proto__")OM(X,G.name,{enumerable:!0,configurable:!0,value:G.newValue,writable:!0});else X[G.name]=G.newValue},NM=function(X,G){if(G==="__proto__"){if(!w9.call(X,G))return;else if(ZM)return ZM(X,G).value}return X[G]};wM.exports=function $(){var X,G,Y,J,W,H,U=arguments[0],M=1,F=arguments.length,Q=!1;if(typeof U==="boolean")Q=U,U=arguments[1]||{},M=2;if(U==null||typeof U!=="object"&&typeof U!=="function")U={};for(;M<F;++M)if(X=arguments[M],X!=null){for(G in X)if(Y=NM(U,G),J=NM(X,G),U!==J){if(Q&&J&&(AM(J)||(W=RM(J)))){if(W)W=!1,H=Y&&RM(Y)?Y:[];else H=Y&&AM(Y)?Y:{};BM(U,{name:G,newValue:$(Q,H,J)})}else if(typeof J<"u")BM(U,{name:G,newValue:J})}}return U}});function P4($){if(typeof $!=="object"||$===null)return!1;let X=Object.getPrototypeOf($);return(X===null||X===Object.prototype||Object.getPrototypeOf(X)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)}function TX(){let $=[],X={run:G,use:Y};return X;function G(...J){let W=-1,H=J.pop();if(typeof H!=="function")throw TypeError("Expected function as last argument, not "+H);U(null,...J);function U(M,...F){let Q=$[++W],q=-1;if(M){H(M);return}while(++q<J.length)if(F[q]===null||F[q]===void 0)F[q]=J[q];if(J=F,Q)zM(Q,U)(...F);else H(null,...F)}}function Y(J){if(typeof J!=="function")throw TypeError("Expected `middelware` to be a function, not "+J);return $.push(J),X}}function zM($,X){let G;return Y;function Y(...H){let U=$.length>H.length,M;if(U)H.push(J);try{M=$.apply(this,H)}catch(F){let Q=F;if(U&&G)throw Q;return J(Q)}if(!U)if(M&&M.then&&typeof M.then==="function")M.then(W,J);else if(M instanceof Error)J(M);else W(M)}function J(H,...U){if(!G)G=!0,X(H,...U)}function W(H){J(null,H)}}var DM=()=>{};var e0;var PM=B(()=>{WX();e0=class e0 extends Error{constructor($,X,G){super();if(typeof X==="string")G=X,X=void 0;let Y="",J={},W=!1;if(X)if("line"in X&&"column"in X)J={place:X};else if("start"in X&&"end"in X)J={place:X};else if("type"in X)J={ancestors:[X],place:X.position};else J={...X};if(typeof $==="string")Y=$;else if(!J.cause&&$)W=!0,Y=$.message,J.cause=$;if(!J.ruleId&&!J.source&&typeof G==="string"){let U=G.indexOf(":");if(U===-1)J.ruleId=G;else J.source=G.slice(0,U),J.ruleId=G.slice(U+1)}if(!J.place&&J.ancestors&&J.ancestors){let U=J.ancestors[J.ancestors.length-1];if(U)J.place=U.position}let H=J.place&&"start"in J.place?J.place.start:J.place;this.ancestors=J.ancestors||void 0,this.cause=J.cause||void 0,this.column=H?H.column:void 0,this.fatal=void 0,this.file="",this.message=Y,this.line=H?H.line:void 0,this.name=m6(J.place)||"1:1",this.place=J.place||void 0,this.reason=this.message,this.ruleId=J.ruleId||void 0,this.source=J.source||void 0,this.stack=W&&J.cause&&typeof J.cause.stack==="string"?J.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};e0.prototype.file="";e0.prototype.name="";e0.prototype.reason="";e0.prototype.message="";e0.prototype.stack="";e0.prototype.column=void 0;e0.prototype.line=void 0;e0.prototype.ancestors=void 0;e0.prototype.cause=void 0;e0.prototype.fatal=void 0;e0.prototype.place=void 0;e0.prototype.ruleId=void 0;e0.prototype.source=void 0});var LM=B(()=>{PM()});import{default as d1}from"path";var CM=()=>{};import{default as TM}from"process";var EM=()=>{};function _9($){return Boolean($!==null&&typeof $==="object"&&"href"in $&&$.href&&"protocol"in $&&$.protocol&&$.auth===void 0)}import{fileURLToPath as IM}from"url";var jM=()=>{};class z9{constructor($){let X;if(!$)X={};else if(_9($))X={path:$};else if(typeof $==="string"||KD($))X={value:$};else X=$;this.cwd="cwd"in X?"":TM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let G=-1;while(++G<EX.length){let J=EX[G];if(J in X&&X[J]!==void 0&&X[J]!==null)this[J]=J==="history"?[...X[J]]:X[J]}let Y;for(Y in X)if(!EX.includes(Y))this[Y]=X[Y]}get basename(){return typeof this.path==="string"?d1.basename(this.path):void 0}set basename($){jX($,"basename"),IX($,"basename"),this.path=d1.join(this.dirname||"",$)}get dirname(){return typeof this.path==="string"?d1.dirname(this.path):void 0}set dirname($){SM(this.basename,"dirname"),this.path=d1.join($||"",this.basename)}get extname(){return typeof this.path==="string"?d1.extname(this.path):void 0}set extname($){if(IX($,"extname"),SM(this.dirname,"extname"),$){if($.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if($.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=d1.join(this.dirname,this.stem+($||""))}get path(){return this.history[this.history.length-1]}set path($){if(_9($))$=IM($);if(jX($,"path"),this.path!==$)this.history.push($)}get stem(){return typeof this.path==="string"?d1.basename(this.path,this.extname):void 0}set stem($){jX($,"stem"),IX($,"stem"),this.path=d1.join(this.dirname||"",$+(this.extname||""))}fail($,X,G){let Y=this.message($,X,G);throw Y.fatal=!0,Y}info($,X,G){let Y=this.message($,X,G);return Y.fatal=void 0,Y}message($,X,G){let Y=new e0($,X,G);if(this.path)Y.name=this.path+":"+Y.name,Y.file=this.path;return Y.fatal=!1,this.messages.push(Y),Y}toString($){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder($||void 0).decode(this.value)}}function IX($,X){if($&&$.includes(d1.sep))throw Error("`"+X+"` cannot be a path: did not expect `"+d1.sep+"`")}function jX($,X){if(!$)throw Error("`"+X+"` cannot be empty")}function SM($,X){if(!$)throw Error("Setting `"+X+"` requires `path` to be set too")}function KD($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var EX;var kM=B(()=>{LM();CM();EM();jM();EX=["history","path","basename","stem","extname","dirname"]});var vM=B(()=>{kM()});var xM=function($){let Y=this.constructor.prototype,J=Y[$],W=function(){return J.apply(W,arguments)};return Object.setPrototypeOf(W,Y),W};function SX($,X){if(typeof X!=="function")throw TypeError("Cannot `"+$+"` without `parser`")}function kX($,X){if(typeof X!=="function")throw TypeError("Cannot `"+$+"` without `compiler`")}function vX($,X){if(X)throw Error("Cannot call `"+$+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function bM($){if(!P4($)||typeof $.type!=="string")throw TypeError("Expected node, got `"+$+"`")}function hM($,X,G){if(!G)throw Error("`"+$+"` finished async. Use `"+X+"` instead")}function D9($){return FD($)?$:new z9($)}function FD($){return Boolean($&&typeof $==="object"&&"message"in $&&"messages"in $)}function QD($){return typeof $==="string"||qD($)}function qD($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var P9,MD,xX,bX;var yM=B(()=>{R0();DM();vM();P9=k8(_M(),1),MD={}.hasOwnProperty;xX=class xX extends xM{constructor(){super("copy");this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=TX()}copy(){let $=new xX,X=-1;while(++X<this.attachers.length){let G=this.attachers[X];$.use(...G)}return $.data(P9.default(!0,{},this.namespace)),$}data($,X){if(typeof $==="string"){if(arguments.length===2)return vX("data",this.frozen),this.namespace[$]=X,this;return MD.call(this.namespace,$)&&this.namespace[$]||void 0}if($)return vX("data",this.frozen),this.namespace=$,this;return this.namespace}freeze(){if(this.frozen)return this;let $=this;while(++this.freezeIndex<this.attachers.length){let[X,...G]=this.attachers[this.freezeIndex];if(G[0]===!1)continue;if(G[0]===!0)G[0]=void 0;let Y=X.call($,...G);if(typeof Y==="function")this.transformers.use(Y)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse($){this.freeze();let X=D9($),G=this.parser||this.Parser;return SX("parse",G),G(String(X),X)}process($,X){let G=this;return this.freeze(),SX("process",this.parser||this.Parser),kX("process",this.compiler||this.Compiler),X?Y(void 0,X):new Promise(Y);function Y(J,W){let H=D9($),U=G.parse(H);G.run(U,H,function(F,Q,q){if(F||!Q||!q)return M(F);let R=Q,O=G.stringify(R,q);if(QD(O))q.value=O;else q.result=O;M(F,q)});function M(F,Q){if(F||!Q)W(F);else if(J)J(Q);else N(X,"`done` is defined if `resolve` is not"),X(void 0,Q)}}}processSync($){let X=!1,G;return this.freeze(),SX("processSync",this.parser||this.Parser),kX("processSync",this.compiler||this.Compiler),this.process($,Y),hM("processSync","process",X),N(G,"we either bailed on an error or have a tree"),G;function Y(J,W){X=!0,CX(J),G=W}}run($,X,G){bM($),this.freeze();let Y=this.transformers;if(!G&&typeof X==="function")G=X,X=void 0;return G?J(void 0,G):new Promise(J);function J(W,H){N(typeof X!=="function","`file` can\u2019t be a `done` anymore, we checked");let U=D9(X);Y.run($,U,M);function M(F,Q,q){let R=Q||$;if(F)H(F);else if(W)W(R);else N(G,"`done` is defined if `resolve` is not"),G(void 0,R,q)}}}runSync($,X){let G=!1,Y;return this.run($,X,J),hM("runSync","run",G),N(Y,"we either bailed on an error or have a tree"),Y;function J(W,H){CX(W),Y=H,G=!0}}stringify($,X){this.freeze();let G=D9(X),Y=this.compiler||this.Compiler;return kX("stringify",Y),bM($),Y($,G)}use($,...X){let G=this.attachers,Y=this.namespace;if(vX("use",this.frozen),$===null||$===void 0);else if(typeof $==="function")U($,X);else if(typeof $==="object")if(Array.isArray($))H($);else W($);else throw TypeError("Expected usable value, not `"+$+"`");return this;function J(M){if(typeof M==="function")U(M,[]);else if(typeof M==="object")if(Array.isArray(M)){let[F,...Q]=M;U(F,Q)}else W(M);else throw TypeError("Expected usable value, not `"+M+"`")}function W(M){if(!("plugins"in M)&&!("settings"in M))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");if(H(M.plugins),M.settings)Y.settings=P9.default(!0,Y.settings,M.settings)}function H(M){let F=-1;if(M===null||M===void 0);else if(Array.isArray(M))while(++F<M.length){let Q=M[F];J(Q)}else throw TypeError("Expected a list of plugins, not `"+M+"`")}function U(M,F){let Q=-1,q=-1;while(++Q<G.length)if(G[Q][0]===M){q=Q;break}if(q===-1)G.push([M,...F]);else if(F.length>0){let[R,...O]=F,_=G[q][1];if(P4(_)&&P4(R))R=P9.default(!0,_,R);G[q]=[M,R,...O]}}}};bX=new xX().freeze()});var fM=B(()=>{yM()});var A2;var L9=B(()=>{nU();qM();fM();A2=bX().use(q9).use(V9).freeze()});var OD,em;var gM=B(()=>{L9();OD=k8(L$(),1),em=A2()});class u6{callback;heartbeatInterval;constructor($){this.callback=$}static from($){if(!$)return;return new u6($)}createSub($){let{scale:X}=$??{};if(X){let{start:G,end:Y}=X,J=Y-G;return new u6(async(W)=>{let H=G+W.progress/(W.total??100)*J;await this.callback({...W,progress:H,total:100})})}return new u6(this.callback)}async report($){await this.callback($)}startHeartbeat($,X=5000){this.stopHeartbeat(),this.heartbeatInterval=setInterval(()=>{this.report({message:$,progress:0}).catch(()=>{})},X)}stopHeartbeat(){if(this.heartbeatInterval)clearInterval(this.heartbeatInterval),this.heartbeatInterval=void 0}toCallback(){return this.callback}}function XF($){return typeof $>"u"||$===null}function ZD($){return typeof $==="object"&&$!==null}function RD($){if(Array.isArray($))return $;else if(XF($))return[];return[$]}function AD($,X){var G,Y,J,W;if(X){W=Object.keys(X);for(G=0,Y=W.length;G<Y;G+=1)J=W[G],$[J]=X[J]}return $}function BD($,X){var G="",Y;for(Y=0;Y<X;Y+=1)G+=$;return G}function ND($){return $===0&&Number.NEGATIVE_INFINITY===1/$}function GF($,X){var G="",Y=$.reason||"(unknown reason)";if(!$.mark)return Y;if($.mark.name)G+='in "'+$.mark.name+'" ';if(G+="("+($.mark.line+1)+":"+($.mark.column+1)+")",!X&&$.mark.snippet)G+=`
89
89
 
90
90
  `+$.mark.snippet;return Y+" "+G}function C4($,X){if(Error.call(this),this.name="YAMLException",this.reason=$,this.mark=X,this.message=GF(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}function hX($,X,G,Y,J){var W="",H="",U=Math.floor(J/2)-1;if(Y-X>U)W=" ... ",X=Y-U+W.length;if(G-Y>U)H=" ...",G=Y+U-H.length;return{str:W+$.slice(X,G).replace(/\t/g,"\u2192")+H,pos:Y-X+W.length}}function yX($,X){return c0.repeat(" ",X-$.length)+$}function LD($,X){if(X=Object.create(X||null),!$.buffer)return null;if(!X.maxLength)X.maxLength=79;if(typeof X.indent!=="number")X.indent=1;if(typeof X.linesBefore!=="number")X.linesBefore=3;if(typeof X.linesAfter!=="number")X.linesAfter=2;var G=/\r?\n|\r|\0/g,Y=[0],J=[],W,H=-1;while(W=G.exec($.buffer))if(J.push(W.index),Y.push(W.index+W[0].length),$.position<=W.index&&H<0)H=Y.length-2;if(H<0)H=Y.length-1;var U="",M,F,Q=Math.min($.line+X.linesAfter,J.length).toString().length,q=X.maxLength-(X.indent+Q+3);for(M=1;M<=X.linesBefore;M++){if(H-M<0)break;F=hX($.buffer,Y[H-M],J[H-M],$.position-(Y[H]-Y[H-M]),q),U=c0.repeat(" ",X.indent)+yX(($.line-M+1).toString(),Q)+" | "+F.str+`
91
91
  `+U}F=hX($.buffer,Y[H],J[H],$.position,q),U+=c0.repeat(" ",X.indent)+yX(($.line+1).toString(),Q)+" | "+F.str+`
92
92
  `,U+=c0.repeat("-",X.indent+Q+3+F.pos)+`^
93
93
  `;for(M=1;M<=X.linesAfter;M++){if(H+M>=J.length)break;F=hX($.buffer,Y[H+M],J[H+M],$.position-(Y[H]-Y[H+M]),q),U+=c0.repeat(" ",X.indent)+yX(($.line+M+1).toString(),Q)+" | "+F.str+`
94
- `}return U.replace(/\n$/,"")}function ID($){var X={};if($!==null)Object.keys($).forEach(function(G){$[G].forEach(function(Y){X[String(Y)]=G})});return X}function jD($,X){if(X=X||{},Object.keys(X).forEach(function(G){if(TD.indexOf(G)===-1)throw new z1('Unknown option "'+G+'" is met in definition of "'+$+'" YAML type.')}),this.options=X,this.tag=$,this.kind=X.kind||null,this.resolve=X.resolve||function(){return!0},this.construct=X.construct||function(G){return G},this.instanceOf=X.instanceOf||null,this.predicate=X.predicate||null,this.represent=X.represent||null,this.representName=X.representName||null,this.defaultStyle=X.defaultStyle||null,this.multi=X.multi||!1,this.styleAliases=ID(X.styleAliases||null),ED.indexOf(this.kind)===-1)throw new z1('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}function mM($,X){var G=[];return $[X].forEach(function(Y){var J=G.length;G.forEach(function(W,H){if(W.tag===Y.tag&&W.kind===Y.kind&&W.multi===Y.multi)J=H}),G[J]=Y}),G}function SD(){var $={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},X,G;function Y(J){if(J.multi)$.multi[J.kind].push(J),$.multi.fallback.push(J);else $[J.kind][J.tag]=$.fallback[J.tag]=J}for(X=0,G=arguments.length;X<G;X+=1)arguments[X].forEach(Y);return $}function gX($){return this.extend($)}function yD($){if($===null)return!0;var X=$.length;return X===1&&$==="~"||X===4&&($==="null"||$==="Null"||$==="NULL")}function fD(){return null}function gD($){return $===null}function pD($){if($===null)return!1;var X=$.length;return X===4&&($==="true"||$==="True"||$==="TRUE")||X===5&&($==="false"||$==="False"||$==="FALSE")}function uD($){return $==="true"||$==="True"||$==="TRUE"}function dD($){return Object.prototype.toString.call($)==="[object Boolean]"}function cD($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function rD($){return 48<=$&&$<=55}function iD($){return 48<=$&&$<=57}function oD($){if($===null)return!1;var X=$.length,G=0,Y=!1,J;if(!X)return!1;if(J=$[G],J==="-"||J==="+")J=$[++G];if(J==="0"){if(G+1===X)return!0;if(J=$[++G],J==="b"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(J!=="0"&&J!=="1")return!1;Y=!0}return Y&&J!=="_"}if(J==="x"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!cD($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}if(J==="o"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!rD($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}}if(J==="_")return!1;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!iD($.charCodeAt(G)))return!1;Y=!0}if(!Y||J==="_")return!1;return!0}function nD($){var X=$,G=1,Y;if(X.indexOf("_")!==-1)X=X.replace(/_/g,"");if(Y=X[0],Y==="-"||Y==="+"){if(Y==="-")G=-1;X=X.slice(1),Y=X[0]}if(X==="0")return 0;if(Y==="0"){if(X[1]==="b")return G*parseInt(X.slice(2),2);if(X[1]==="x")return G*parseInt(X.slice(2),16);if(X[1]==="o")return G*parseInt(X.slice(2),8)}return G*parseInt(X,10)}function sD($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!c0.isNegativeZero($))}function eD($){if($===null)return!1;if(!tD.test($)||$[$.length-1]==="_")return!1;return!0}function $P($){var X,G;if(X=$.replace(/_/g,"").toLowerCase(),G=X[0]==="-"?-1:1,"+-".indexOf(X[0])>=0)X=X.slice(1);if(X===".inf")return G===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(X===".nan")return NaN;return G*parseFloat(X,10)}function GP($,X){var G;if(isNaN($))switch(X){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(X){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(X){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c0.isNegativeZero($))return"-0.0";return G=$.toString(10),XP.test(G)?G.replace("e",".e"):G}function YP($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||c0.isNegativeZero($))}function UP($){if($===null)return!1;if(YF.exec($)!==null)return!0;if(JF.exec($)!==null)return!0;return!1}function KP($){var X,G,Y,J,W,H,U,M=0,F=null,Q,q,R;if(X=YF.exec($),X===null)X=JF.exec($);if(X===null)throw Error("Date resolve error");if(G=+X[1],Y=+X[2]-1,J=+X[3],!X[4])return new Date(Date.UTC(G,Y,J));if(W=+X[4],H=+X[5],U=+X[6],X[7]){M=X[7].slice(0,3);while(M.length<3)M+="0";M=+M}if(X[9]){if(Q=+X[10],q=+(X[11]||0),F=(Q*60+q)*60000,X[9]==="-")F=-F}if(R=new Date(Date.UTC(G,Y,J,W,H,U,M)),F)R.setTime(R.getTime()-F);return R}function MP($){return $.toISOString()}function QP($){return $==="<<"||$===null}function OP($){if($===null)return!1;var X,G,Y=0,J=$.length,W=lX;for(G=0;G<J;G++){if(X=W.indexOf($.charAt(G)),X>64)continue;if(X<0)return!1;Y+=6}return Y%8===0}function ZP($){var X,G,Y=$.replace(/[\r\n=]/g,""),J=Y.length,W=lX,H=0,U=[];for(X=0;X<J;X++){if(X%4===0&&X)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);H=H<<6|W.indexOf(Y.charAt(X))}if(G=J%4*6,G===0)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);else if(G===18)U.push(H>>10&255),U.push(H>>2&255);else if(G===12)U.push(H>>4&255);return new Uint8Array(U)}function RP($){var X="",G=0,Y,J,W=$.length,H=lX;for(Y=0;Y<W;Y++){if(Y%3===0&&Y)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];G=(G<<8)+$[Y]}if(J=W%3,J===0)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];else if(J===2)X+=H[G>>10&63],X+=H[G>>4&63],X+=H[G<<2&63],X+=H[64];else if(J===1)X+=H[G>>2&63],X+=H[G<<4&63],X+=H[64],X+=H[64];return X}function AP($){return Object.prototype.toString.call($)==="[object Uint8Array]"}function wP($){if($===null)return!0;var X=[],G,Y,J,W,H,U=$;for(G=0,Y=U.length;G<Y;G+=1){if(J=U[G],H=!1,VP.call(J)!=="[object Object]")return!1;for(W in J)if(NP.call(J,W))if(!H)H=!0;else return!1;if(!H)return!1;if(X.indexOf(W)===-1)X.push(W);else return!1}return!0}function _P($){return $!==null?$:[]}function PP($){if($===null)return!0;var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1){if(Y=H[X],DP.call(Y)!=="[object Object]")return!1;if(J=Object.keys(Y),J.length!==1)return!1;W[X]=[J[0],Y[J[0]]]}return!0}function LP($){if($===null)return[];var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1)Y=H[X],J=Object.keys(Y),W[X]=[J[0],Y[J[0]]];return W}function EP($){if($===null)return!0;var X,G=$;for(X in G)if(TP.call(G,X)){if(G[X]!==null)return!1}return!0}function IP($){return $!==null?$:{}}function uM($){return Object.prototype.toString.call($)}function X2($){return $===10||$===13}function k6($){return $===9||$===32}function D1($){return $===9||$===32||$===10||$===13}function N5($){return $===44||$===91||$===93||$===123||$===125}function bP($){var X;if(48<=$&&$<=57)return $-48;if(X=$|32,97<=X&&X<=102)return X-97+10;return-1}function hP($){if($===120)return 2;if($===117)return 4;if($===85)return 8;return 0}function yP($){if(48<=$&&$<=57)return $-48;return-1}function dM($){return $===48?"\x00":$===97?"\x07":$===98?"\b":$===116?"\t":$===9?"\t":$===110?`
95
- `:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function fP($){if($<=65535)return String.fromCharCode($);return String.fromCharCode(($-65536>>10)+55296,($-65536&1023)+56320)}function FF($,X,G){if(X==="__proto__")Object.defineProperty($,X,{configurable:!0,enumerable:!0,writable:!0,value:G});else $[X]=G}function gP($,X){this.input=$,this.filename=X.filename||null,this.schema=X.schema||WF,this.onWarning=X.onWarning||null,this.legacy=X.legacy||!1,this.json=X.json||!1,this.listener=X.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=$.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function OF($,X){var G={name:$.filename,buffer:$.input.slice(0,-1),position:$.position,line:$.line,column:$.position-$.lineStart};return G.snippet=CD(G),new z1(X,G)}function p($,X){throw OF($,X)}function E9($,X){if($.onWarning)$.onWarning.call(null,OF($,X))}function l2($,X,G,Y){var J,W,H,U;if(X<G){if(U=$.input.slice(X,G),Y){for(J=0,W=U.length;J<W;J+=1)if(H=U.charCodeAt(J),!(H===9||32<=H&&H<=1114111))p($,"expected valid JSON character")}else if(kP.test(U))p($,"the stream contains non-printable characters");$.result+=U}}function cM($,X,G,Y){var J,W,H,U;if(!c0.isObject(G))p($,"cannot merge mappings; the provided source object is unacceptable");J=Object.keys(G);for(H=0,U=J.length;H<U;H+=1)if(W=J[H],!c2.call(X,W))FF(X,W,G[W]),Y[W]=!0}function V5($,X,G,Y,J,W,H,U,M){var F,Q;if(Array.isArray(J)){J=Array.prototype.slice.call(J);for(F=0,Q=J.length;F<Q;F+=1){if(Array.isArray(J[F]))p($,"nested arrays are not supported inside keys");if(typeof J==="object"&&uM(J[F])==="[object Object]")J[F]="[object Object]"}}if(typeof J==="object"&&uM(J)==="[object Object]")J="[object Object]";if(J=String(J),X===null)X={};if(Y==="tag:yaml.org,2002:merge")if(Array.isArray(W))for(F=0,Q=W.length;F<Q;F+=1)cM($,X,W[F],G);else cM($,X,W,G);else{if(!$.json&&!c2.call(G,J)&&c2.call(X,J))$.line=H||$.line,$.lineStart=U||$.lineStart,$.position=M||$.position,p($,"duplicated mapping key");FF(X,J,W),delete G[J]}return X}function cX($){var X=$.input.charCodeAt($.position);if(X===10)$.position++;else if(X===13){if($.position++,$.input.charCodeAt($.position)===10)$.position++}else p($,"a line break is expected");$.line+=1,$.lineStart=$.position,$.firstTabInLine=-1}function m0($,X,G){var Y=0,J=$.input.charCodeAt($.position);while(J!==0){while(k6(J)){if(J===9&&$.firstTabInLine===-1)$.firstTabInLine=$.position;J=$.input.charCodeAt(++$.position)}if(X&&J===35)do J=$.input.charCodeAt(++$.position);while(J!==10&&J!==13&&J!==0);if(X2(J)){cX($),J=$.input.charCodeAt($.position),Y++,$.lineIndent=0;while(J===32)$.lineIndent++,J=$.input.charCodeAt(++$.position)}else break}if(G!==-1&&Y!==0&&$.lineIndent<G)E9($,"deficient indentation");return Y}function S9($){var X=$.position,G;if(G=$.input.charCodeAt(X),(G===45||G===46)&&G===$.input.charCodeAt(X+1)&&G===$.input.charCodeAt(X+2)){if(X+=3,G=$.input.charCodeAt(X),G===0||D1(G))return!0}return!1}function rX($,X){if(X===1)$.result+=" ";else if(X>1)$.result+=c0.repeat(`
96
- `,X-1)}function mP($,X,G){var Y,J,W,H,U,M,F,Q,q=$.kind,R=$.result,O;if(O=$.input.charCodeAt($.position),D1(O)||N5(O)||O===35||O===38||O===42||O===33||O===124||O===62||O===39||O===34||O===37||O===64||O===96)return!1;if(O===63||O===45){if(J=$.input.charCodeAt($.position+1),D1(J)||G&&N5(J))return!1}$.kind="scalar",$.result="",W=H=$.position,U=!1;while(O!==0){if(O===58){if(J=$.input.charCodeAt($.position+1),D1(J)||G&&N5(J))break}else if(O===35){if(Y=$.input.charCodeAt($.position-1),D1(Y))break}else if($.position===$.lineStart&&S9($)||G&&N5(O))break;else if(X2(O))if(M=$.line,F=$.lineStart,Q=$.lineIndent,m0($,!1,-1),$.lineIndent>=X){U=!0,O=$.input.charCodeAt($.position);continue}else{$.position=H,$.line=M,$.lineStart=F,$.lineIndent=Q;break}if(U)l2($,W,H,!1),rX($,$.line-M),W=H=$.position,U=!1;if(!k6(O))H=$.position+1;O=$.input.charCodeAt(++$.position)}if(l2($,W,H,!1),$.result)return!0;return $.kind=q,$.result=R,!1}function pP($,X){var G,Y,J;if(G=$.input.charCodeAt($.position),G!==39)return!1;$.kind="scalar",$.result="",$.position++,Y=J=$.position;while((G=$.input.charCodeAt($.position))!==0)if(G===39)if(l2($,Y,$.position,!0),G=$.input.charCodeAt(++$.position),G===39)Y=$.position,$.position++,J=$.position;else return!0;else if(X2(G))l2($,Y,J,!0),rX($,m0($,!1,X)),Y=J=$.position;else if($.position===$.lineStart&&S9($))p($,"unexpected end of the document within a single quoted scalar");else $.position++,J=$.position;p($,"unexpected end of the stream within a single quoted scalar")}function uP($,X){var G,Y,J,W,H,U;if(U=$.input.charCodeAt($.position),U!==34)return!1;$.kind="scalar",$.result="",$.position++,G=Y=$.position;while((U=$.input.charCodeAt($.position))!==0)if(U===34)return l2($,G,$.position,!0),$.position++,!0;else if(U===92){if(l2($,G,$.position,!0),U=$.input.charCodeAt(++$.position),X2(U))m0($,!1,X);else if(U<256&&QF[U])$.result+=qF[U],$.position++;else if((H=hP(U))>0){J=H,W=0;for(;J>0;J--)if(U=$.input.charCodeAt(++$.position),(H=bP(U))>=0)W=(W<<4)+H;else p($,"expected hexadecimal character");$.result+=fP(W),$.position++}else p($,"unknown escape sequence");G=Y=$.position}else if(X2(U))l2($,G,Y,!0),rX($,m0($,!1,X)),G=Y=$.position;else if($.position===$.lineStart&&S9($))p($,"unexpected end of the document within a double quoted scalar");else $.position++,Y=$.position;p($,"unexpected end of the stream within a double quoted scalar")}function dP($,X){var G=!0,Y,J,W,H=$.tag,U,M=$.anchor,F,Q,q,R,O,_=Object.create(null),z,D,P,b;if(b=$.input.charCodeAt($.position),b===91)Q=93,O=!1,U=[];else if(b===123)Q=125,O=!0,U={};else return!1;if($.anchor!==null)$.anchorMap[$.anchor]=U;b=$.input.charCodeAt(++$.position);while(b!==0){if(m0($,!0,X),b=$.input.charCodeAt($.position),b===Q)return $.position++,$.tag=H,$.anchor=M,$.kind=O?"mapping":"sequence",$.result=U,!0;else if(!G)p($,"missed comma between flow collection entries");else if(b===44)p($,"expected the node content, but found ','");if(D=z=P=null,q=R=!1,b===63){if(F=$.input.charCodeAt($.position+1),D1(F))q=R=!0,$.position++,m0($,!0,X)}if(Y=$.line,J=$.lineStart,W=$.position,w5($,X,C9,!1,!0),D=$.tag,z=$.result,m0($,!0,X),b=$.input.charCodeAt($.position),(R||$.line===Y)&&b===58)q=!0,b=$.input.charCodeAt(++$.position),m0($,!0,X),w5($,X,C9,!1,!0),P=$.result;if(O)V5($,U,_,D,z,P,Y,J,W);else if(q)U.push(V5($,null,_,D,z,P,Y,J,W));else U.push(z);if(m0($,!0,X),b=$.input.charCodeAt($.position),b===44)G=!0,b=$.input.charCodeAt(++$.position);else G=!1}p($,"unexpected end of the stream within a flow collection")}function lP($,X){var G,Y,J=fX,W=!1,H=!1,U=X,M=0,F=!1,Q,q;if(q=$.input.charCodeAt($.position),q===124)Y=!1;else if(q===62)Y=!0;else return!1;$.kind="scalar",$.result="";while(q!==0)if(q=$.input.charCodeAt(++$.position),q===43||q===45)if(fX===J)J=q===43?pM:SP;else p($,"repeat of a chomping mode identifier");else if((Q=yP(q))>=0)if(Q===0)p($,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!H)U=X+Q-1,H=!0;else p($,"repeat of an indentation width identifier");else break;if(k6(q)){do q=$.input.charCodeAt(++$.position);while(k6(q));if(q===35)do q=$.input.charCodeAt(++$.position);while(!X2(q)&&q!==0)}while(q!==0){cX($),$.lineIndent=0,q=$.input.charCodeAt($.position);while((!H||$.lineIndent<U)&&q===32)$.lineIndent++,q=$.input.charCodeAt(++$.position);if(!H&&$.lineIndent>U)U=$.lineIndent;if(X2(q)){M++;continue}if($.lineIndent<U){if(J===pM)$.result+=c0.repeat(`
94
+ `}return U.replace(/\n$/,"")}function ID($){var X={};if($!==null)Object.keys($).forEach(function(G){$[G].forEach(function(Y){X[String(Y)]=G})});return X}function jD($,X){if(X=X||{},Object.keys(X).forEach(function(G){if(TD.indexOf(G)===-1)throw new z1('Unknown option "'+G+'" is met in definition of "'+$+'" YAML type.')}),this.options=X,this.tag=$,this.kind=X.kind||null,this.resolve=X.resolve||function(){return!0},this.construct=X.construct||function(G){return G},this.instanceOf=X.instanceOf||null,this.predicate=X.predicate||null,this.represent=X.represent||null,this.representName=X.representName||null,this.defaultStyle=X.defaultStyle||null,this.multi=X.multi||!1,this.styleAliases=ID(X.styleAliases||null),ED.indexOf(this.kind)===-1)throw new z1('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}function mM($,X){var G=[];return $[X].forEach(function(Y){var J=G.length;G.forEach(function(W,H){if(W.tag===Y.tag&&W.kind===Y.kind&&W.multi===Y.multi)J=H}),G[J]=Y}),G}function SD(){var $={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},X,G;function Y(J){if(J.multi)$.multi[J.kind].push(J),$.multi.fallback.push(J);else $[J.kind][J.tag]=$.fallback[J.tag]=J}for(X=0,G=arguments.length;X<G;X+=1)arguments[X].forEach(Y);return $}function gX($){return this.extend($)}function yD($){if($===null)return!0;var X=$.length;return X===1&&$==="~"||X===4&&($==="null"||$==="Null"||$==="NULL")}function fD(){return null}function gD($){return $===null}function pD($){if($===null)return!1;var X=$.length;return X===4&&($==="true"||$==="True"||$==="TRUE")||X===5&&($==="false"||$==="False"||$==="FALSE")}function uD($){return $==="true"||$==="True"||$==="TRUE"}function dD($){return Object.prototype.toString.call($)==="[object Boolean]"}function cD($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function rD($){return 48<=$&&$<=55}function iD($){return 48<=$&&$<=57}function oD($){if($===null)return!1;var X=$.length,G=0,Y=!1,J;if(!X)return!1;if(J=$[G],J==="-"||J==="+")J=$[++G];if(J==="0"){if(G+1===X)return!0;if(J=$[++G],J==="b"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(J!=="0"&&J!=="1")return!1;Y=!0}return Y&&J!=="_"}if(J==="x"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!cD($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}if(J==="o"){G++;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!rD($.charCodeAt(G)))return!1;Y=!0}return Y&&J!=="_"}}if(J==="_")return!1;for(;G<X;G++){if(J=$[G],J==="_")continue;if(!iD($.charCodeAt(G)))return!1;Y=!0}if(!Y||J==="_")return!1;return!0}function nD($){var X=$,G=1,Y;if(X.indexOf("_")!==-1)X=X.replace(/_/g,"");if(Y=X[0],Y==="-"||Y==="+"){if(Y==="-")G=-1;X=X.slice(1),Y=X[0]}if(X==="0")return 0;if(Y==="0"){if(X[1]==="b")return G*parseInt(X.slice(2),2);if(X[1]==="x")return G*parseInt(X.slice(2),16);if(X[1]==="o")return G*parseInt(X.slice(2),8)}return G*parseInt(X,10)}function sD($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!c0.isNegativeZero($))}function eD($){if($===null)return!1;if(!tD.test($)||$[$.length-1]==="_")return!1;return!0}function $P($){var X,G;if(X=$.replace(/_/g,"").toLowerCase(),G=X[0]==="-"?-1:1,"+-".indexOf(X[0])>=0)X=X.slice(1);if(X===".inf")return G===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(X===".nan")return NaN;return G*parseFloat(X,10)}function GP($,X){var G;if(isNaN($))switch(X){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(X){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(X){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c0.isNegativeZero($))return"-0.0";return G=$.toString(10),XP.test(G)?G.replace("e",".e"):G}function YP($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||c0.isNegativeZero($))}function UP($){if($===null)return!1;if(YF.exec($)!==null)return!0;if(JF.exec($)!==null)return!0;return!1}function KP($){var X,G,Y,J,W,H,U,M=0,F=null,Q,q,R;if(X=YF.exec($),X===null)X=JF.exec($);if(X===null)throw Error("Date resolve error");if(G=+X[1],Y=+X[2]-1,J=+X[3],!X[4])return new Date(Date.UTC(G,Y,J));if(W=+X[4],H=+X[5],U=+X[6],X[7]){M=X[7].slice(0,3);while(M.length<3)M+="0";M=+M}if(X[9]){if(Q=+X[10],q=+(X[11]||0),F=(Q*60+q)*60000,X[9]==="-")F=-F}if(R=new Date(Date.UTC(G,Y,J,W,H,U,M)),F)R.setTime(R.getTime()-F);return R}function MP($){return $.toISOString()}function QP($){return $==="<<"||$===null}function OP($){if($===null)return!1;var X,G,Y=0,J=$.length,W=lX;for(G=0;G<J;G++){if(X=W.indexOf($.charAt(G)),X>64)continue;if(X<0)return!1;Y+=6}return Y%8===0}function ZP($){var X,G,Y=$.replace(/[\r\n=]/g,""),J=Y.length,W=lX,H=0,U=[];for(X=0;X<J;X++){if(X%4===0&&X)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);H=H<<6|W.indexOf(Y.charAt(X))}if(G=J%4*6,G===0)U.push(H>>16&255),U.push(H>>8&255),U.push(H&255);else if(G===18)U.push(H>>10&255),U.push(H>>2&255);else if(G===12)U.push(H>>4&255);return new Uint8Array(U)}function RP($){var X="",G=0,Y,J,W=$.length,H=lX;for(Y=0;Y<W;Y++){if(Y%3===0&&Y)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];G=(G<<8)+$[Y]}if(J=W%3,J===0)X+=H[G>>18&63],X+=H[G>>12&63],X+=H[G>>6&63],X+=H[G&63];else if(J===2)X+=H[G>>10&63],X+=H[G>>4&63],X+=H[G<<2&63],X+=H[64];else if(J===1)X+=H[G>>2&63],X+=H[G<<4&63],X+=H[64],X+=H[64];return X}function AP($){return Object.prototype.toString.call($)==="[object Uint8Array]"}function wP($){if($===null)return!0;var X=[],G,Y,J,W,H,U=$;for(G=0,Y=U.length;G<Y;G+=1){if(J=U[G],H=!1,VP.call(J)!=="[object Object]")return!1;for(W in J)if(NP.call(J,W))if(!H)H=!0;else return!1;if(!H)return!1;if(X.indexOf(W)===-1)X.push(W);else return!1}return!0}function _P($){return $!==null?$:[]}function PP($){if($===null)return!0;var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1){if(Y=H[X],DP.call(Y)!=="[object Object]")return!1;if(J=Object.keys(Y),J.length!==1)return!1;W[X]=[J[0],Y[J[0]]]}return!0}function LP($){if($===null)return[];var X,G,Y,J,W,H=$;W=Array(H.length);for(X=0,G=H.length;X<G;X+=1)Y=H[X],J=Object.keys(Y),W[X]=[J[0],Y[J[0]]];return W}function EP($){if($===null)return!0;var X,G=$;for(X in G)if(TP.call(G,X)){if(G[X]!==null)return!1}return!0}function IP($){return $!==null?$:{}}function uM($){return Object.prototype.toString.call($)}function X6($){return $===10||$===13}function k5($){return $===9||$===32}function D1($){return $===9||$===32||$===10||$===13}function N2($){return $===44||$===91||$===93||$===123||$===125}function bP($){var X;if(48<=$&&$<=57)return $-48;if(X=$|32,97<=X&&X<=102)return X-97+10;return-1}function hP($){if($===120)return 2;if($===117)return 4;if($===85)return 8;return 0}function yP($){if(48<=$&&$<=57)return $-48;return-1}function dM($){return $===48?"\x00":$===97?"\x07":$===98?"\b":$===116?"\t":$===9?"\t":$===110?`
95
+ `:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function fP($){if($<=65535)return String.fromCharCode($);return String.fromCharCode(($-65536>>10)+55296,($-65536&1023)+56320)}function FF($,X,G){if(X==="__proto__")Object.defineProperty($,X,{configurable:!0,enumerable:!0,writable:!0,value:G});else $[X]=G}function gP($,X){this.input=$,this.filename=X.filename||null,this.schema=X.schema||WF,this.onWarning=X.onWarning||null,this.legacy=X.legacy||!1,this.json=X.json||!1,this.listener=X.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=$.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function OF($,X){var G={name:$.filename,buffer:$.input.slice(0,-1),position:$.position,line:$.line,column:$.position-$.lineStart};return G.snippet=CD(G),new z1(X,G)}function p($,X){throw OF($,X)}function E9($,X){if($.onWarning)$.onWarning.call(null,OF($,X))}function l6($,X,G,Y){var J,W,H,U;if(X<G){if(U=$.input.slice(X,G),Y){for(J=0,W=U.length;J<W;J+=1)if(H=U.charCodeAt(J),!(H===9||32<=H&&H<=1114111))p($,"expected valid JSON character")}else if(kP.test(U))p($,"the stream contains non-printable characters");$.result+=U}}function cM($,X,G,Y){var J,W,H,U;if(!c0.isObject(G))p($,"cannot merge mappings; the provided source object is unacceptable");J=Object.keys(G);for(H=0,U=J.length;H<U;H+=1)if(W=J[H],!c6.call(X,W))FF(X,W,G[W]),Y[W]=!0}function V2($,X,G,Y,J,W,H,U,M){var F,Q;if(Array.isArray(J)){J=Array.prototype.slice.call(J);for(F=0,Q=J.length;F<Q;F+=1){if(Array.isArray(J[F]))p($,"nested arrays are not supported inside keys");if(typeof J==="object"&&uM(J[F])==="[object Object]")J[F]="[object Object]"}}if(typeof J==="object"&&uM(J)==="[object Object]")J="[object Object]";if(J=String(J),X===null)X={};if(Y==="tag:yaml.org,2002:merge")if(Array.isArray(W))for(F=0,Q=W.length;F<Q;F+=1)cM($,X,W[F],G);else cM($,X,W,G);else{if(!$.json&&!c6.call(G,J)&&c6.call(X,J))$.line=H||$.line,$.lineStart=U||$.lineStart,$.position=M||$.position,p($,"duplicated mapping key");FF(X,J,W),delete G[J]}return X}function cX($){var X=$.input.charCodeAt($.position);if(X===10)$.position++;else if(X===13){if($.position++,$.input.charCodeAt($.position)===10)$.position++}else p($,"a line break is expected");$.line+=1,$.lineStart=$.position,$.firstTabInLine=-1}function m0($,X,G){var Y=0,J=$.input.charCodeAt($.position);while(J!==0){while(k5(J)){if(J===9&&$.firstTabInLine===-1)$.firstTabInLine=$.position;J=$.input.charCodeAt(++$.position)}if(X&&J===35)do J=$.input.charCodeAt(++$.position);while(J!==10&&J!==13&&J!==0);if(X6(J)){cX($),J=$.input.charCodeAt($.position),Y++,$.lineIndent=0;while(J===32)$.lineIndent++,J=$.input.charCodeAt(++$.position)}else break}if(G!==-1&&Y!==0&&$.lineIndent<G)E9($,"deficient indentation");return Y}function S9($){var X=$.position,G;if(G=$.input.charCodeAt(X),(G===45||G===46)&&G===$.input.charCodeAt(X+1)&&G===$.input.charCodeAt(X+2)){if(X+=3,G=$.input.charCodeAt(X),G===0||D1(G))return!0}return!1}function rX($,X){if(X===1)$.result+=" ";else if(X>1)$.result+=c0.repeat(`
96
+ `,X-1)}function mP($,X,G){var Y,J,W,H,U,M,F,Q,q=$.kind,R=$.result,O;if(O=$.input.charCodeAt($.position),D1(O)||N2(O)||O===35||O===38||O===42||O===33||O===124||O===62||O===39||O===34||O===37||O===64||O===96)return!1;if(O===63||O===45){if(J=$.input.charCodeAt($.position+1),D1(J)||G&&N2(J))return!1}$.kind="scalar",$.result="",W=H=$.position,U=!1;while(O!==0){if(O===58){if(J=$.input.charCodeAt($.position+1),D1(J)||G&&N2(J))break}else if(O===35){if(Y=$.input.charCodeAt($.position-1),D1(Y))break}else if($.position===$.lineStart&&S9($)||G&&N2(O))break;else if(X6(O))if(M=$.line,F=$.lineStart,Q=$.lineIndent,m0($,!1,-1),$.lineIndent>=X){U=!0,O=$.input.charCodeAt($.position);continue}else{$.position=H,$.line=M,$.lineStart=F,$.lineIndent=Q;break}if(U)l6($,W,H,!1),rX($,$.line-M),W=H=$.position,U=!1;if(!k5(O))H=$.position+1;O=$.input.charCodeAt(++$.position)}if(l6($,W,H,!1),$.result)return!0;return $.kind=q,$.result=R,!1}function pP($,X){var G,Y,J;if(G=$.input.charCodeAt($.position),G!==39)return!1;$.kind="scalar",$.result="",$.position++,Y=J=$.position;while((G=$.input.charCodeAt($.position))!==0)if(G===39)if(l6($,Y,$.position,!0),G=$.input.charCodeAt(++$.position),G===39)Y=$.position,$.position++,J=$.position;else return!0;else if(X6(G))l6($,Y,J,!0),rX($,m0($,!1,X)),Y=J=$.position;else if($.position===$.lineStart&&S9($))p($,"unexpected end of the document within a single quoted scalar");else $.position++,J=$.position;p($,"unexpected end of the stream within a single quoted scalar")}function uP($,X){var G,Y,J,W,H,U;if(U=$.input.charCodeAt($.position),U!==34)return!1;$.kind="scalar",$.result="",$.position++,G=Y=$.position;while((U=$.input.charCodeAt($.position))!==0)if(U===34)return l6($,G,$.position,!0),$.position++,!0;else if(U===92){if(l6($,G,$.position,!0),U=$.input.charCodeAt(++$.position),X6(U))m0($,!1,X);else if(U<256&&QF[U])$.result+=qF[U],$.position++;else if((H=hP(U))>0){J=H,W=0;for(;J>0;J--)if(U=$.input.charCodeAt(++$.position),(H=bP(U))>=0)W=(W<<4)+H;else p($,"expected hexadecimal character");$.result+=fP(W),$.position++}else p($,"unknown escape sequence");G=Y=$.position}else if(X6(U))l6($,G,Y,!0),rX($,m0($,!1,X)),G=Y=$.position;else if($.position===$.lineStart&&S9($))p($,"unexpected end of the document within a double quoted scalar");else $.position++,Y=$.position;p($,"unexpected end of the stream within a double quoted scalar")}function dP($,X){var G=!0,Y,J,W,H=$.tag,U,M=$.anchor,F,Q,q,R,O,_=Object.create(null),z,D,P,b;if(b=$.input.charCodeAt($.position),b===91)Q=93,O=!1,U=[];else if(b===123)Q=125,O=!0,U={};else return!1;if($.anchor!==null)$.anchorMap[$.anchor]=U;b=$.input.charCodeAt(++$.position);while(b!==0){if(m0($,!0,X),b=$.input.charCodeAt($.position),b===Q)return $.position++,$.tag=H,$.anchor=M,$.kind=O?"mapping":"sequence",$.result=U,!0;else if(!G)p($,"missed comma between flow collection entries");else if(b===44)p($,"expected the node content, but found ','");if(D=z=P=null,q=R=!1,b===63){if(F=$.input.charCodeAt($.position+1),D1(F))q=R=!0,$.position++,m0($,!0,X)}if(Y=$.line,J=$.lineStart,W=$.position,w2($,X,C9,!1,!0),D=$.tag,z=$.result,m0($,!0,X),b=$.input.charCodeAt($.position),(R||$.line===Y)&&b===58)q=!0,b=$.input.charCodeAt(++$.position),m0($,!0,X),w2($,X,C9,!1,!0),P=$.result;if(O)V2($,U,_,D,z,P,Y,J,W);else if(q)U.push(V2($,null,_,D,z,P,Y,J,W));else U.push(z);if(m0($,!0,X),b=$.input.charCodeAt($.position),b===44)G=!0,b=$.input.charCodeAt(++$.position);else G=!1}p($,"unexpected end of the stream within a flow collection")}function lP($,X){var G,Y,J=fX,W=!1,H=!1,U=X,M=0,F=!1,Q,q;if(q=$.input.charCodeAt($.position),q===124)Y=!1;else if(q===62)Y=!0;else return!1;$.kind="scalar",$.result="";while(q!==0)if(q=$.input.charCodeAt(++$.position),q===43||q===45)if(fX===J)J=q===43?pM:SP;else p($,"repeat of a chomping mode identifier");else if((Q=yP(q))>=0)if(Q===0)p($,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!H)U=X+Q-1,H=!0;else p($,"repeat of an indentation width identifier");else break;if(k5(q)){do q=$.input.charCodeAt(++$.position);while(k5(q));if(q===35)do q=$.input.charCodeAt(++$.position);while(!X6(q)&&q!==0)}while(q!==0){cX($),$.lineIndent=0,q=$.input.charCodeAt($.position);while((!H||$.lineIndent<U)&&q===32)$.lineIndent++,q=$.input.charCodeAt(++$.position);if(!H&&$.lineIndent>U)U=$.lineIndent;if(X6(q)){M++;continue}if($.lineIndent<U){if(J===pM)$.result+=c0.repeat(`
97
97
  `,W?1+M:M);else if(J===fX){if(W)$.result+=`
98
- `}break}if(Y)if(k6(q))F=!0,$.result+=c0.repeat(`
98
+ `}break}if(Y)if(k5(q))F=!0,$.result+=c0.repeat(`
99
99
  `,W?1+M:M);else if(F)F=!1,$.result+=c0.repeat(`
100
100
  `,M+1);else if(M===0){if(W)$.result+=" "}else $.result+=c0.repeat(`
101
101
  `,M);else $.result+=c0.repeat(`
102
- `,W?1+M:M);W=!0,H=!0,M=0,G=$.position;while(!X2(q)&&q!==0)q=$.input.charCodeAt(++$.position);l2($,G,$.position,!1)}return!0}function rM($,X){var G,Y=$.tag,J=$.anchor,W=[],H,U=!1,M;if($.firstTabInLine!==-1)return!1;if($.anchor!==null)$.anchorMap[$.anchor]=W;M=$.input.charCodeAt($.position);while(M!==0){if($.firstTabInLine!==-1)$.position=$.firstTabInLine,p($,"tab characters must not be used in indentation");if(M!==45)break;if(H=$.input.charCodeAt($.position+1),!D1(H))break;if(U=!0,$.position++,m0($,!0,-1)){if($.lineIndent<=X){W.push(null),M=$.input.charCodeAt($.position);continue}}if(G=$.line,w5($,X,UF,!1,!0),W.push($.result),m0($,!0,-1),M=$.input.charCodeAt($.position),($.line===G||$.lineIndent>X)&&M!==0)p($,"bad indentation of a sequence entry");else if($.lineIndent<X)break}if(U)return $.tag=Y,$.anchor=J,$.kind="sequence",$.result=W,!0;return!1}function cP($,X,G){var Y,J,W,H,U,M,F=$.tag,Q=$.anchor,q={},R=Object.create(null),O=null,_=null,z=null,D=!1,P=!1,b;if($.firstTabInLine!==-1)return!1;if($.anchor!==null)$.anchorMap[$.anchor]=q;b=$.input.charCodeAt($.position);while(b!==0){if(!D&&$.firstTabInLine!==-1)$.position=$.firstTabInLine,p($,"tab characters must not be used in indentation");if(Y=$.input.charCodeAt($.position+1),W=$.line,(b===63||b===58)&&D1(Y)){if(b===63){if(D)V5($,q,R,O,_,null,H,U,M),O=_=z=null;P=!0,D=!0,J=!0}else if(D)D=!1,J=!0;else p($,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");$.position+=1,b=Y}else{if(H=$.line,U=$.lineStart,M=$.position,!w5($,G,HF,!1,!0))break;if($.line===W){b=$.input.charCodeAt($.position);while(k6(b))b=$.input.charCodeAt(++$.position);if(b===58){if(b=$.input.charCodeAt(++$.position),!D1(b))p($,"a whitespace character is expected after the key-value separator within a block mapping");if(D)V5($,q,R,O,_,null,H,U,M),O=_=z=null;P=!0,D=!1,J=!1,O=$.tag,_=$.result}else if(P)p($,"can not read an implicit mapping pair; a colon is missed");else return $.tag=F,$.anchor=Q,!0}else if(P)p($,"can not read a block mapping entry; a multiline key may not be an implicit key");else return $.tag=F,$.anchor=Q,!0}if($.line===W||$.lineIndent>X){if(D)H=$.line,U=$.lineStart,M=$.position;if(w5($,X,T9,!0,J))if(D)_=$.result;else z=$.result;if(!D)V5($,q,R,O,_,z,H,U,M),O=_=z=null;m0($,!0,-1),b=$.input.charCodeAt($.position)}if(($.line===W||$.lineIndent>X)&&b!==0)p($,"bad indentation of a mapping entry");else if($.lineIndent<X)break}if(D)V5($,q,R,O,_,null,H,U,M);if(P)$.tag=F,$.anchor=Q,$.kind="mapping",$.result=q;return P}function rP($){var X,G=!1,Y=!1,J,W,H;if(H=$.input.charCodeAt($.position),H!==33)return!1;if($.tag!==null)p($,"duplication of a tag property");if(H=$.input.charCodeAt(++$.position),H===60)G=!0,H=$.input.charCodeAt(++$.position);else if(H===33)Y=!0,J="!!",H=$.input.charCodeAt(++$.position);else J="!";if(X=$.position,G){do H=$.input.charCodeAt(++$.position);while(H!==0&&H!==62);if($.position<$.length)W=$.input.slice(X,$.position),H=$.input.charCodeAt(++$.position);else p($,"unexpected end of the stream within a verbatim tag")}else{while(H!==0&&!D1(H)){if(H===33)if(!Y){if(J=$.input.slice(X-1,$.position+1),!KF.test(J))p($,"named tag handle cannot contain such characters");Y=!0,X=$.position+1}else p($,"tag suffix cannot contain exclamation marks");H=$.input.charCodeAt(++$.position)}if(W=$.input.slice(X,$.position),xP.test(W))p($,"tag suffix cannot contain flow indicator characters")}if(W&&!MF.test(W))p($,"tag name cannot contain such characters: "+W);try{W=decodeURIComponent(W)}catch(U){p($,"tag name is malformed: "+W)}if(G)$.tag=W;else if(c2.call($.tagMap,J))$.tag=$.tagMap[J]+W;else if(J==="!")$.tag="!"+W;else if(J==="!!")$.tag="tag:yaml.org,2002:"+W;else p($,'undeclared tag handle "'+J+'"');return!0}function iP($){var X,G;if(G=$.input.charCodeAt($.position),G!==38)return!1;if($.anchor!==null)p($,"duplication of an anchor property");G=$.input.charCodeAt(++$.position),X=$.position;while(G!==0&&!D1(G)&&!N5(G))G=$.input.charCodeAt(++$.position);if($.position===X)p($,"name of an anchor node must contain at least one character");return $.anchor=$.input.slice(X,$.position),!0}function oP($){var X,G,Y;if(Y=$.input.charCodeAt($.position),Y!==42)return!1;Y=$.input.charCodeAt(++$.position),X=$.position;while(Y!==0&&!D1(Y)&&!N5(Y))Y=$.input.charCodeAt(++$.position);if($.position===X)p($,"name of an alias node must contain at least one character");if(G=$.input.slice(X,$.position),!c2.call($.anchorMap,G))p($,'unidentified alias "'+G+'"');return $.result=$.anchorMap[G],m0($,!0,-1),!0}function w5($,X,G,Y,J){var W,H,U,M=1,F=!1,Q=!1,q,R,O,_,z,D;if($.listener!==null)$.listener("open",$);if($.tag=null,$.anchor=null,$.kind=null,$.result=null,W=H=U=T9===G||UF===G,Y){if(m0($,!0,-1)){if(F=!0,$.lineIndent>X)M=1;else if($.lineIndent===X)M=0;else if($.lineIndent<X)M=-1}}if(M===1)while(rP($)||iP($))if(m0($,!0,-1)){if(F=!0,U=W,$.lineIndent>X)M=1;else if($.lineIndent===X)M=0;else if($.lineIndent<X)M=-1}else U=!1;if(U)U=F||J;if(M===1||T9===G){if(C9===G||HF===G)z=X;else z=X+1;if(D=$.position-$.lineStart,M===1)if(U&&(rM($,D)||cP($,D,z))||dP($,z))Q=!0;else{if(H&&lP($,z)||pP($,z)||uP($,z))Q=!0;else if(oP($)){if(Q=!0,$.tag!==null||$.anchor!==null)p($,"alias node should not have any properties")}else if(mP($,z,C9===G)){if(Q=!0,$.tag===null)$.tag="?"}if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if(M===0)Q=U&&rM($,D)}if($.tag===null){if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if($.tag==="?"){if($.result!==null&&$.kind!=="scalar")p($,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+$.kind+'"');for(q=0,R=$.implicitTypes.length;q<R;q+=1)if(_=$.implicitTypes[q],_.resolve($.result)){if($.result=_.construct($.result),$.tag=_.tag,$.anchor!==null)$.anchorMap[$.anchor]=$.result;break}}else if($.tag!=="!"){if(c2.call($.typeMap[$.kind||"fallback"],$.tag))_=$.typeMap[$.kind||"fallback"][$.tag];else{_=null,O=$.typeMap.multi[$.kind||"fallback"];for(q=0,R=O.length;q<R;q+=1)if($.tag.slice(0,O[q].tag.length)===O[q].tag){_=O[q];break}}if(!_)p($,"unknown tag !<"+$.tag+">");if($.result!==null&&_.kind!==$.kind)p($,"unacceptable node kind for !<"+$.tag+'> tag; it should be "'+_.kind+'", not "'+$.kind+'"');if(!_.resolve($.result,$.tag))p($,"cannot resolve a node with !<"+$.tag+"> explicit tag");else if($.result=_.construct($.result,$.tag),$.anchor!==null)$.anchorMap[$.anchor]=$.result}if($.listener!==null)$.listener("close",$);return $.tag!==null||$.anchor!==null||Q}function nP($){var X=$.position,G,Y,J,W=!1,H;$.version=null,$.checkLineBreaks=$.legacy,$.tagMap=Object.create(null),$.anchorMap=Object.create(null);while((H=$.input.charCodeAt($.position))!==0){if(m0($,!0,-1),H=$.input.charCodeAt($.position),$.lineIndent>0||H!==37)break;W=!0,H=$.input.charCodeAt(++$.position),G=$.position;while(H!==0&&!D1(H))H=$.input.charCodeAt(++$.position);if(Y=$.input.slice(G,$.position),J=[],Y.length<1)p($,"directive name must not be less than one character in length");while(H!==0){while(k6(H))H=$.input.charCodeAt(++$.position);if(H===35){do H=$.input.charCodeAt(++$.position);while(H!==0&&!X2(H));break}if(X2(H))break;G=$.position;while(H!==0&&!D1(H))H=$.input.charCodeAt(++$.position);J.push($.input.slice(G,$.position))}if(H!==0)cX($);if(c2.call(lM,Y))lM[Y]($,Y,J);else E9($,'unknown document directive "'+Y+'"')}if(m0($,!0,-1),$.lineIndent===0&&$.input.charCodeAt($.position)===45&&$.input.charCodeAt($.position+1)===45&&$.input.charCodeAt($.position+2)===45)$.position+=3,m0($,!0,-1);else if(W)p($,"directives end mark is expected");if(w5($,$.lineIndent-1,T9,!1,!0),m0($,!0,-1),$.checkLineBreaks&&vP.test($.input.slice(X,$.position)))E9($,"non-ASCII line breaks are interpreted as content");if($.documents.push($.result),$.position===$.lineStart&&S9($)){if($.input.charCodeAt($.position)===46)$.position+=3,m0($,!0,-1);return}if($.position<$.length-1)p($,"end of the stream or a document separator is expected");else return}function ZF($,X){if($=String($),X=X||{},$.length!==0){if($.charCodeAt($.length-1)!==10&&$.charCodeAt($.length-1)!==13)$+=`
102
+ `,W?1+M:M);W=!0,H=!0,M=0,G=$.position;while(!X6(q)&&q!==0)q=$.input.charCodeAt(++$.position);l6($,G,$.position,!1)}return!0}function rM($,X){var G,Y=$.tag,J=$.anchor,W=[],H,U=!1,M;if($.firstTabInLine!==-1)return!1;if($.anchor!==null)$.anchorMap[$.anchor]=W;M=$.input.charCodeAt($.position);while(M!==0){if($.firstTabInLine!==-1)$.position=$.firstTabInLine,p($,"tab characters must not be used in indentation");if(M!==45)break;if(H=$.input.charCodeAt($.position+1),!D1(H))break;if(U=!0,$.position++,m0($,!0,-1)){if($.lineIndent<=X){W.push(null),M=$.input.charCodeAt($.position);continue}}if(G=$.line,w2($,X,UF,!1,!0),W.push($.result),m0($,!0,-1),M=$.input.charCodeAt($.position),($.line===G||$.lineIndent>X)&&M!==0)p($,"bad indentation of a sequence entry");else if($.lineIndent<X)break}if(U)return $.tag=Y,$.anchor=J,$.kind="sequence",$.result=W,!0;return!1}function cP($,X,G){var Y,J,W,H,U,M,F=$.tag,Q=$.anchor,q={},R=Object.create(null),O=null,_=null,z=null,D=!1,P=!1,b;if($.firstTabInLine!==-1)return!1;if($.anchor!==null)$.anchorMap[$.anchor]=q;b=$.input.charCodeAt($.position);while(b!==0){if(!D&&$.firstTabInLine!==-1)$.position=$.firstTabInLine,p($,"tab characters must not be used in indentation");if(Y=$.input.charCodeAt($.position+1),W=$.line,(b===63||b===58)&&D1(Y)){if(b===63){if(D)V2($,q,R,O,_,null,H,U,M),O=_=z=null;P=!0,D=!0,J=!0}else if(D)D=!1,J=!0;else p($,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");$.position+=1,b=Y}else{if(H=$.line,U=$.lineStart,M=$.position,!w2($,G,HF,!1,!0))break;if($.line===W){b=$.input.charCodeAt($.position);while(k5(b))b=$.input.charCodeAt(++$.position);if(b===58){if(b=$.input.charCodeAt(++$.position),!D1(b))p($,"a whitespace character is expected after the key-value separator within a block mapping");if(D)V2($,q,R,O,_,null,H,U,M),O=_=z=null;P=!0,D=!1,J=!1,O=$.tag,_=$.result}else if(P)p($,"can not read an implicit mapping pair; a colon is missed");else return $.tag=F,$.anchor=Q,!0}else if(P)p($,"can not read a block mapping entry; a multiline key may not be an implicit key");else return $.tag=F,$.anchor=Q,!0}if($.line===W||$.lineIndent>X){if(D)H=$.line,U=$.lineStart,M=$.position;if(w2($,X,T9,!0,J))if(D)_=$.result;else z=$.result;if(!D)V2($,q,R,O,_,z,H,U,M),O=_=z=null;m0($,!0,-1),b=$.input.charCodeAt($.position)}if(($.line===W||$.lineIndent>X)&&b!==0)p($,"bad indentation of a mapping entry");else if($.lineIndent<X)break}if(D)V2($,q,R,O,_,null,H,U,M);if(P)$.tag=F,$.anchor=Q,$.kind="mapping",$.result=q;return P}function rP($){var X,G=!1,Y=!1,J,W,H;if(H=$.input.charCodeAt($.position),H!==33)return!1;if($.tag!==null)p($,"duplication of a tag property");if(H=$.input.charCodeAt(++$.position),H===60)G=!0,H=$.input.charCodeAt(++$.position);else if(H===33)Y=!0,J="!!",H=$.input.charCodeAt(++$.position);else J="!";if(X=$.position,G){do H=$.input.charCodeAt(++$.position);while(H!==0&&H!==62);if($.position<$.length)W=$.input.slice(X,$.position),H=$.input.charCodeAt(++$.position);else p($,"unexpected end of the stream within a verbatim tag")}else{while(H!==0&&!D1(H)){if(H===33)if(!Y){if(J=$.input.slice(X-1,$.position+1),!KF.test(J))p($,"named tag handle cannot contain such characters");Y=!0,X=$.position+1}else p($,"tag suffix cannot contain exclamation marks");H=$.input.charCodeAt(++$.position)}if(W=$.input.slice(X,$.position),xP.test(W))p($,"tag suffix cannot contain flow indicator characters")}if(W&&!MF.test(W))p($,"tag name cannot contain such characters: "+W);try{W=decodeURIComponent(W)}catch(U){p($,"tag name is malformed: "+W)}if(G)$.tag=W;else if(c6.call($.tagMap,J))$.tag=$.tagMap[J]+W;else if(J==="!")$.tag="!"+W;else if(J==="!!")$.tag="tag:yaml.org,2002:"+W;else p($,'undeclared tag handle "'+J+'"');return!0}function iP($){var X,G;if(G=$.input.charCodeAt($.position),G!==38)return!1;if($.anchor!==null)p($,"duplication of an anchor property");G=$.input.charCodeAt(++$.position),X=$.position;while(G!==0&&!D1(G)&&!N2(G))G=$.input.charCodeAt(++$.position);if($.position===X)p($,"name of an anchor node must contain at least one character");return $.anchor=$.input.slice(X,$.position),!0}function oP($){var X,G,Y;if(Y=$.input.charCodeAt($.position),Y!==42)return!1;Y=$.input.charCodeAt(++$.position),X=$.position;while(Y!==0&&!D1(Y)&&!N2(Y))Y=$.input.charCodeAt(++$.position);if($.position===X)p($,"name of an alias node must contain at least one character");if(G=$.input.slice(X,$.position),!c6.call($.anchorMap,G))p($,'unidentified alias "'+G+'"');return $.result=$.anchorMap[G],m0($,!0,-1),!0}function w2($,X,G,Y,J){var W,H,U,M=1,F=!1,Q=!1,q,R,O,_,z,D;if($.listener!==null)$.listener("open",$);if($.tag=null,$.anchor=null,$.kind=null,$.result=null,W=H=U=T9===G||UF===G,Y){if(m0($,!0,-1)){if(F=!0,$.lineIndent>X)M=1;else if($.lineIndent===X)M=0;else if($.lineIndent<X)M=-1}}if(M===1)while(rP($)||iP($))if(m0($,!0,-1)){if(F=!0,U=W,$.lineIndent>X)M=1;else if($.lineIndent===X)M=0;else if($.lineIndent<X)M=-1}else U=!1;if(U)U=F||J;if(M===1||T9===G){if(C9===G||HF===G)z=X;else z=X+1;if(D=$.position-$.lineStart,M===1)if(U&&(rM($,D)||cP($,D,z))||dP($,z))Q=!0;else{if(H&&lP($,z)||pP($,z)||uP($,z))Q=!0;else if(oP($)){if(Q=!0,$.tag!==null||$.anchor!==null)p($,"alias node should not have any properties")}else if(mP($,z,C9===G)){if(Q=!0,$.tag===null)$.tag="?"}if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if(M===0)Q=U&&rM($,D)}if($.tag===null){if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if($.tag==="?"){if($.result!==null&&$.kind!=="scalar")p($,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+$.kind+'"');for(q=0,R=$.implicitTypes.length;q<R;q+=1)if(_=$.implicitTypes[q],_.resolve($.result)){if($.result=_.construct($.result),$.tag=_.tag,$.anchor!==null)$.anchorMap[$.anchor]=$.result;break}}else if($.tag!=="!"){if(c6.call($.typeMap[$.kind||"fallback"],$.tag))_=$.typeMap[$.kind||"fallback"][$.tag];else{_=null,O=$.typeMap.multi[$.kind||"fallback"];for(q=0,R=O.length;q<R;q+=1)if($.tag.slice(0,O[q].tag.length)===O[q].tag){_=O[q];break}}if(!_)p($,"unknown tag !<"+$.tag+">");if($.result!==null&&_.kind!==$.kind)p($,"unacceptable node kind for !<"+$.tag+'> tag; it should be "'+_.kind+'", not "'+$.kind+'"');if(!_.resolve($.result,$.tag))p($,"cannot resolve a node with !<"+$.tag+"> explicit tag");else if($.result=_.construct($.result,$.tag),$.anchor!==null)$.anchorMap[$.anchor]=$.result}if($.listener!==null)$.listener("close",$);return $.tag!==null||$.anchor!==null||Q}function nP($){var X=$.position,G,Y,J,W=!1,H;$.version=null,$.checkLineBreaks=$.legacy,$.tagMap=Object.create(null),$.anchorMap=Object.create(null);while((H=$.input.charCodeAt($.position))!==0){if(m0($,!0,-1),H=$.input.charCodeAt($.position),$.lineIndent>0||H!==37)break;W=!0,H=$.input.charCodeAt(++$.position),G=$.position;while(H!==0&&!D1(H))H=$.input.charCodeAt(++$.position);if(Y=$.input.slice(G,$.position),J=[],Y.length<1)p($,"directive name must not be less than one character in length");while(H!==0){while(k5(H))H=$.input.charCodeAt(++$.position);if(H===35){do H=$.input.charCodeAt(++$.position);while(H!==0&&!X6(H));break}if(X6(H))break;G=$.position;while(H!==0&&!D1(H))H=$.input.charCodeAt(++$.position);J.push($.input.slice(G,$.position))}if(H!==0)cX($);if(c6.call(lM,Y))lM[Y]($,Y,J);else E9($,'unknown document directive "'+Y+'"')}if(m0($,!0,-1),$.lineIndent===0&&$.input.charCodeAt($.position)===45&&$.input.charCodeAt($.position+1)===45&&$.input.charCodeAt($.position+2)===45)$.position+=3,m0($,!0,-1);else if(W)p($,"directives end mark is expected");if(w2($,$.lineIndent-1,T9,!1,!0),m0($,!0,-1),$.checkLineBreaks&&vP.test($.input.slice(X,$.position)))E9($,"non-ASCII line breaks are interpreted as content");if($.documents.push($.result),$.position===$.lineStart&&S9($)){if($.input.charCodeAt($.position)===46)$.position+=3,m0($,!0,-1);return}if($.position<$.length-1)p($,"end of the stream or a document separator is expected");else return}function ZF($,X){if($=String($),X=X||{},$.length!==0){if($.charCodeAt($.length-1)!==10&&$.charCodeAt($.length-1)!==13)$+=`
103
103
  `;if($.charCodeAt(0)===65279)$=$.slice(1)}var G=new gP($,X),Y=$.indexOf("\x00");if(Y!==-1)G.position=Y,p(G,"null byte is not allowed in input");G.input+="\x00";while(G.input.charCodeAt(G.position)===32)G.lineIndent+=1,G.position+=1;while(G.position<G.length-1)nP(G);return G.documents}function sP($,X,G){if(X!==null&&typeof X==="object"&&typeof G>"u")G=X,X=null;var Y=ZF($,G);if(typeof X!=="function")return Y;for(var J=0,W=Y.length;J<W;J+=1)X(Y[J])}function aP($,X){var G=ZF($,X);if(G.length===0)return;else if(G.length===1)return G[0];throw new z1("expected a single document in the stream, but found more")}function NL($,X){var G,Y,J,W,H,U,M;if(X===null)return{};G={},Y=Object.keys(X);for(J=0,W=Y.length;J<W;J+=1){if(H=Y[J],U=String(X[H]),H.slice(0,2)==="!!")H="tag:yaml.org,2002:"+H.slice(2);if(M=$.compiledTypeMap.fallback[H],M&&BF.call(M.styleAliases,U))U=M.styleAliases[U];G[H]=U}return G}function VL($){var X,G,Y;if(X=$.toString(16).toUpperCase(),$<=255)G="x",Y=2;else if($<=65535)G="u",Y=4;else if($<=4294967295)G="U",Y=8;else throw new z1("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+G+c0.repeat("0",Y-X.length)+X}function _L($){this.schema=$.schema||WF,this.indent=Math.max(1,$.indent||2),this.noArrayIndent=$.noArrayIndent||!1,this.skipInvalid=$.skipInvalid||!1,this.flowLevel=c0.isNothing($.flowLevel)?-1:$.flowLevel,this.styleMap=NL(this.schema,$.styles||null),this.sortKeys=$.sortKeys||!1,this.lineWidth=$.lineWidth||80,this.noRefs=$.noRefs||!1,this.noCompatMode=$.noCompatMode||!1,this.condenseFlow=$.condenseFlow||!1,this.quotingType=$.quotingType==='"'?E4:wL,this.forceQuotes=$.forceQuotes||!1,this.replacer=typeof $.replacer==="function"?$.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function iM($,X){var G=c0.repeat(" ",X),Y=0,J=-1,W="",H,U=$.length;while(Y<U){if(J=$.indexOf(`
104
104
  `,Y),J===-1)H=$.slice(Y),Y=U;else H=$.slice(Y,J+1),Y=J+1;if(H.length&&H!==`
105
105
  `)W+=G;W+=H}return W}function pX($,X){return`
106
- `+c0.repeat(" ",$.indent*X)}function zL($,X){var G,Y,J;for(G=0,Y=$.implicitTypes.length;G<Y;G+=1)if(J=$.implicitTypes[G],J.resolve(X))return!0;return!1}function j9($){return $===GL||$===$L}function I4($){return 32<=$&&$<=126||161<=$&&$<=55295&&$!==8232&&$!==8233||57344<=$&&$<=65533&&$!==iX||65536<=$&&$<=1114111}function oM($){return I4($)&&$!==iX&&$!==XL&&$!==T4}function nM($,X,G){var Y=oM($),J=Y&&!j9($);return(G?Y:Y&&$!==NF&&$!==VF&&$!==wF&&$!==_F&&$!==zF)&&$!==mX&&!(X===I9&&!J)||oM(X)&&!j9(X)&&$===mX||X===I9&&J}function DL($){return I4($)&&$!==iX&&!j9($)&&$!==ML&&$!==qL&&$!==I9&&$!==NF&&$!==VF&&$!==wF&&$!==_F&&$!==zF&&$!==mX&&$!==HL&&$!==KL&&$!==YL&&$!==RL&&$!==FL&&$!==QL&&$!==UL&&$!==JL&&$!==WL&&$!==OL&&$!==ZL}function PL($){return!j9($)&&$!==I9}function L4($,X){var G=$.charCodeAt(X),Y;if(G>=55296&&G<=56319&&X+1<$.length){if(Y=$.charCodeAt(X+1),Y>=56320&&Y<=57343)return(G-55296)*1024+Y-56320+65536}return G}function DF($){var X=/^\n* /;return X.test($)}function LL($,X,G,Y,J,W,H,U){var M,F=0,Q=null,q=!1,R=!1,O=Y!==-1,_=-1,z=DL(L4($,0))&&PL(L4($,$.length-1));if(X||H)for(M=0;M<$.length;F>=65536?M+=2:M++){if(F=L4($,M),!I4(F))return B5;z=z&&nM(F,Q,U),Q=F}else{for(M=0;M<$.length;F>=65536?M+=2:M++){if(F=L4($,M),F===T4){if(q=!0,O)R=R||M-_-1>Y&&$[_+1]!==" ",_=M}else if(!I4(F))return B5;z=z&&nM(F,Q,U),Q=F}R=R||O&&(M-_-1>Y&&$[_+1]!==" ")}if(!q&&!R){if(z&&!H&&!J($))return PF;return W===E4?B5:uX}if(G>9&&DF($))return B5;if(!H)return R?CF:LF;return W===E4?B5:uX}function CL($,X,G,Y,J){$.dump=function(){if(X.length===0)return $.quotingType===E4?'""':"''";if(!$.noCompatMode){if(AL.indexOf(X)!==-1||BL.test(X))return $.quotingType===E4?'"'+X+'"':"'"+X+"'"}var W=$.indent*Math.max(1,G),H=$.lineWidth===-1?-1:Math.max(Math.min($.lineWidth,40),$.lineWidth-W),U=Y||$.flowLevel>-1&&G>=$.flowLevel;function M(F){return zL($,F)}switch(LL(X,U,$.indent,H,M,$.quotingType,$.forceQuotes&&!Y,J)){case PF:return X;case uX:return"'"+X.replace(/'/g,"''")+"'";case LF:return"|"+sM(X,$.indent)+aM(iM(X,W));case CF:return">"+sM(X,$.indent)+aM(iM(TL(X,H),W));case B5:return'"'+EL(X)+'"';default:throw new z1("impossible error: invalid scalar style")}}()}function sM($,X){var G=DF($)?String(X):"",Y=$[$.length-1]===`
106
+ `+c0.repeat(" ",$.indent*X)}function zL($,X){var G,Y,J;for(G=0,Y=$.implicitTypes.length;G<Y;G+=1)if(J=$.implicitTypes[G],J.resolve(X))return!0;return!1}function j9($){return $===GL||$===$L}function I4($){return 32<=$&&$<=126||161<=$&&$<=55295&&$!==8232&&$!==8233||57344<=$&&$<=65533&&$!==iX||65536<=$&&$<=1114111}function oM($){return I4($)&&$!==iX&&$!==XL&&$!==T4}function nM($,X,G){var Y=oM($),J=Y&&!j9($);return(G?Y:Y&&$!==NF&&$!==VF&&$!==wF&&$!==_F&&$!==zF)&&$!==mX&&!(X===I9&&!J)||oM(X)&&!j9(X)&&$===mX||X===I9&&J}function DL($){return I4($)&&$!==iX&&!j9($)&&$!==ML&&$!==qL&&$!==I9&&$!==NF&&$!==VF&&$!==wF&&$!==_F&&$!==zF&&$!==mX&&$!==HL&&$!==KL&&$!==YL&&$!==RL&&$!==FL&&$!==QL&&$!==UL&&$!==JL&&$!==WL&&$!==OL&&$!==ZL}function PL($){return!j9($)&&$!==I9}function L4($,X){var G=$.charCodeAt(X),Y;if(G>=55296&&G<=56319&&X+1<$.length){if(Y=$.charCodeAt(X+1),Y>=56320&&Y<=57343)return(G-55296)*1024+Y-56320+65536}return G}function DF($){var X=/^\n* /;return X.test($)}function LL($,X,G,Y,J,W,H,U){var M,F=0,Q=null,q=!1,R=!1,O=Y!==-1,_=-1,z=DL(L4($,0))&&PL(L4($,$.length-1));if(X||H)for(M=0;M<$.length;F>=65536?M+=2:M++){if(F=L4($,M),!I4(F))return B2;z=z&&nM(F,Q,U),Q=F}else{for(M=0;M<$.length;F>=65536?M+=2:M++){if(F=L4($,M),F===T4){if(q=!0,O)R=R||M-_-1>Y&&$[_+1]!==" ",_=M}else if(!I4(F))return B2;z=z&&nM(F,Q,U),Q=F}R=R||O&&(M-_-1>Y&&$[_+1]!==" ")}if(!q&&!R){if(z&&!H&&!J($))return PF;return W===E4?B2:uX}if(G>9&&DF($))return B2;if(!H)return R?CF:LF;return W===E4?B2:uX}function CL($,X,G,Y,J){$.dump=function(){if(X.length===0)return $.quotingType===E4?'""':"''";if(!$.noCompatMode){if(AL.indexOf(X)!==-1||BL.test(X))return $.quotingType===E4?'"'+X+'"':"'"+X+"'"}var W=$.indent*Math.max(1,G),H=$.lineWidth===-1?-1:Math.max(Math.min($.lineWidth,40),$.lineWidth-W),U=Y||$.flowLevel>-1&&G>=$.flowLevel;function M(F){return zL($,F)}switch(LL(X,U,$.indent,H,M,$.quotingType,$.forceQuotes&&!Y,J)){case PF:return X;case uX:return"'"+X.replace(/'/g,"''")+"'";case LF:return"|"+sM(X,$.indent)+aM(iM(X,W));case CF:return">"+sM(X,$.indent)+aM(iM(TL(X,H),W));case B2:return'"'+EL(X)+'"';default:throw new z1("impossible error: invalid scalar style")}}()}function sM($,X){var G=DF($)?String(X):"",Y=$[$.length-1]===`
107
107
  `,J=Y&&($[$.length-2]===`
108
108
  `||$===`
109
109
  `),W=J?"+":Y?"":"-";return G+W+`
@@ -114,9 +114,9 @@ return `+str.trim()+`;
114
114
  `:"")+tM(M,X),J=W}return Y}function tM($,X){if($===""||$[0]===" ")return $;var G=/ [^ ]/g,Y,J=0,W,H=0,U=0,M="";while(Y=G.exec($)){if(U=Y.index,U-J>X)W=H>J?H:U,M+=`
115
115
  `+$.slice(J,W),J=W+1;H=U}if(M+=`
116
116
  `,$.length-J>X&&H>J)M+=$.slice(J,H)+`
117
- `+$.slice(H+1);else M+=$.slice(J);return M.slice(1)}function EL($){var X="",G=0,Y;for(var J=0;J<$.length;G>=65536?J+=2:J++)if(G=L4($,J),Y=F1[G],!Y&&I4(G)){if(X+=$[J],G>=65536)X+=$[J+1]}else X+=Y||VL(G);return X}function IL($,X,G){var Y="",J=$.tag,W,H,U;for(W=0,H=G.length;W<H;W+=1){if(U=G[W],$.replacer)U=$.replacer.call(G,String(W),U);if(_2($,X,U,!1,!1)||typeof U>"u"&&_2($,X,null,!1,!1)){if(Y!=="")Y+=","+(!$.condenseFlow?" ":"");Y+=$.dump}}$.tag=J,$.dump="["+Y+"]"}function eM($,X,G,Y){var J="",W=$.tag,H,U,M;for(H=0,U=G.length;H<U;H+=1){if(M=G[H],$.replacer)M=$.replacer.call(G,String(H),M);if(_2($,X+1,M,!0,!0,!1,!0)||typeof M>"u"&&_2($,X+1,null,!0,!0,!1,!0)){if(!Y||J!=="")J+=pX($,X);if($.dump&&T4===$.dump.charCodeAt(0))J+="-";else J+="- ";J+=$.dump}}$.tag=W,$.dump=J||"[]"}function jL($,X,G){var Y="",J=$.tag,W=Object.keys(G),H,U,M,F,Q;for(H=0,U=W.length;H<U;H+=1){if(Q="",Y!=="")Q+=", ";if($.condenseFlow)Q+='"';if(M=W[H],F=G[M],$.replacer)F=$.replacer.call(G,M,F);if(!_2($,X,M,!1,!1))continue;if($.dump.length>1024)Q+="? ";if(Q+=$.dump+($.condenseFlow?'"':"")+":"+($.condenseFlow?"":" "),!_2($,X,F,!1,!1))continue;Q+=$.dump,Y+=Q}$.tag=J,$.dump="{"+Y+"}"}function SL($,X,G,Y){var J="",W=$.tag,H=Object.keys(G),U,M,F,Q,q,R;if($.sortKeys===!0)H.sort();else if(typeof $.sortKeys==="function")H.sort($.sortKeys);else if($.sortKeys)throw new z1("sortKeys must be a boolean or a function");for(U=0,M=H.length;U<M;U+=1){if(R="",!Y||J!=="")R+=pX($,X);if(F=H[U],Q=G[F],$.replacer)Q=$.replacer.call(G,F,Q);if(!_2($,X+1,F,!0,!0,!0))continue;if(q=$.tag!==null&&$.tag!=="?"||$.dump&&$.dump.length>1024,q)if($.dump&&T4===$.dump.charCodeAt(0))R+="?";else R+="? ";if(R+=$.dump,q)R+=pX($,X);if(!_2($,X+1,Q,!0,q))continue;if($.dump&&T4===$.dump.charCodeAt(0))R+=":";else R+=": ";R+=$.dump,J+=R}$.tag=W,$.dump=J||"{}"}function $F($,X,G){var Y,J,W,H,U,M;J=G?$.explicitTypes:$.implicitTypes;for(W=0,H=J.length;W<H;W+=1)if(U=J[W],(U.instanceOf||U.predicate)&&(!U.instanceOf||typeof X==="object"&&X instanceof U.instanceOf)&&(!U.predicate||U.predicate(X))){if(G)if(U.multi&&U.representName)$.tag=U.representName(X);else $.tag=U.tag;else $.tag="?";if(U.represent){if(M=$.styleMap[U.tag]||U.defaultStyle,AF.call(U.represent)==="[object Function]")Y=U.represent(X,M);else if(BF.call(U.represent,M))Y=U.represent[M](X,M);else throw new z1("!<"+U.tag+'> tag resolver accepts not "'+M+'" style');$.dump=Y}return!0}return!1}function _2($,X,G,Y,J,W,H){if($.tag=null,$.dump=G,!$F($,G,!1))$F($,G,!0);var U=AF.call($.dump),M=Y,F;if(Y)Y=$.flowLevel<0||$.flowLevel>X;var Q=U==="[object Object]"||U==="[object Array]",q,R;if(Q)q=$.duplicates.indexOf(G),R=q!==-1;if($.tag!==null&&$.tag!=="?"||R||$.indent!==2&&X>0)J=!1;if(R&&$.usedDuplicates[q])$.dump="*ref_"+q;else{if(Q&&R&&!$.usedDuplicates[q])$.usedDuplicates[q]=!0;if(U==="[object Object]"){if(Y&&Object.keys($.dump).length!==0){if(SL($,X,$.dump,J),R)$.dump="&ref_"+q+$.dump}else if(jL($,X,$.dump),R)$.dump="&ref_"+q+" "+$.dump}else if(U==="[object Array]"){if(Y&&$.dump.length!==0){if($.noArrayIndent&&!H&&X>0)eM($,X-1,$.dump,J);else eM($,X,$.dump,J);if(R)$.dump="&ref_"+q+$.dump}else if(IL($,X,$.dump),R)$.dump="&ref_"+q+" "+$.dump}else if(U==="[object String]"){if($.tag!=="?")CL($,$.dump,X,W,M)}else if(U==="[object Undefined]")return!1;else{if($.skipInvalid)return!1;throw new z1("unacceptable kind of an object to dump "+U)}if($.tag!==null&&$.tag!=="?"){if(F=encodeURI($.tag[0]==="!"?$.tag.slice(1):$.tag).replace(/!/g,"%21"),$.tag[0]==="!")F="!"+F;else if(F.slice(0,18)==="tag:yaml.org,2002:")F="!!"+F.slice(18);else F="!<"+F+">";$.dump=F+" "+$.dump}}return!0}function kL($,X){var G=[],Y=[],J,W;dX($,G,Y);for(J=0,W=Y.length;J<W;J+=1)X.duplicates.push(G[Y[J]]);X.usedDuplicates=Array(W)}function dX($,X,G){var Y,J,W;if($!==null&&typeof $==="object")if(J=X.indexOf($),J!==-1){if(G.indexOf(J)===-1)G.push(J)}else if(X.push($),Array.isArray($))for(J=0,W=$.length;J<W;J+=1)dX($[J],X,G);else{Y=Object.keys($);for(J=0,W=Y.length;J<W;J+=1)dX($[Y[J]],X,G)}}function vL($,X){X=X||{};var G=new _L(X);if(!G.noRefs)kL($,G);var Y=$;if(G.replacer)Y=G.replacer.call({"":Y},"",Y);if(_2(G,0,Y,!0,!0))return G.dump+`
117
+ `+$.slice(H+1);else M+=$.slice(J);return M.slice(1)}function EL($){var X="",G=0,Y;for(var J=0;J<$.length;G>=65536?J+=2:J++)if(G=L4($,J),Y=F1[G],!Y&&I4(G)){if(X+=$[J],G>=65536)X+=$[J+1]}else X+=Y||VL(G);return X}function IL($,X,G){var Y="",J=$.tag,W,H,U;for(W=0,H=G.length;W<H;W+=1){if(U=G[W],$.replacer)U=$.replacer.call(G,String(W),U);if(_6($,X,U,!1,!1)||typeof U>"u"&&_6($,X,null,!1,!1)){if(Y!=="")Y+=","+(!$.condenseFlow?" ":"");Y+=$.dump}}$.tag=J,$.dump="["+Y+"]"}function eM($,X,G,Y){var J="",W=$.tag,H,U,M;for(H=0,U=G.length;H<U;H+=1){if(M=G[H],$.replacer)M=$.replacer.call(G,String(H),M);if(_6($,X+1,M,!0,!0,!1,!0)||typeof M>"u"&&_6($,X+1,null,!0,!0,!1,!0)){if(!Y||J!=="")J+=pX($,X);if($.dump&&T4===$.dump.charCodeAt(0))J+="-";else J+="- ";J+=$.dump}}$.tag=W,$.dump=J||"[]"}function jL($,X,G){var Y="",J=$.tag,W=Object.keys(G),H,U,M,F,Q;for(H=0,U=W.length;H<U;H+=1){if(Q="",Y!=="")Q+=", ";if($.condenseFlow)Q+='"';if(M=W[H],F=G[M],$.replacer)F=$.replacer.call(G,M,F);if(!_6($,X,M,!1,!1))continue;if($.dump.length>1024)Q+="? ";if(Q+=$.dump+($.condenseFlow?'"':"")+":"+($.condenseFlow?"":" "),!_6($,X,F,!1,!1))continue;Q+=$.dump,Y+=Q}$.tag=J,$.dump="{"+Y+"}"}function SL($,X,G,Y){var J="",W=$.tag,H=Object.keys(G),U,M,F,Q,q,R;if($.sortKeys===!0)H.sort();else if(typeof $.sortKeys==="function")H.sort($.sortKeys);else if($.sortKeys)throw new z1("sortKeys must be a boolean or a function");for(U=0,M=H.length;U<M;U+=1){if(R="",!Y||J!=="")R+=pX($,X);if(F=H[U],Q=G[F],$.replacer)Q=$.replacer.call(G,F,Q);if(!_6($,X+1,F,!0,!0,!0))continue;if(q=$.tag!==null&&$.tag!=="?"||$.dump&&$.dump.length>1024,q)if($.dump&&T4===$.dump.charCodeAt(0))R+="?";else R+="? ";if(R+=$.dump,q)R+=pX($,X);if(!_6($,X+1,Q,!0,q))continue;if($.dump&&T4===$.dump.charCodeAt(0))R+=":";else R+=": ";R+=$.dump,J+=R}$.tag=W,$.dump=J||"{}"}function $F($,X,G){var Y,J,W,H,U,M;J=G?$.explicitTypes:$.implicitTypes;for(W=0,H=J.length;W<H;W+=1)if(U=J[W],(U.instanceOf||U.predicate)&&(!U.instanceOf||typeof X==="object"&&X instanceof U.instanceOf)&&(!U.predicate||U.predicate(X))){if(G)if(U.multi&&U.representName)$.tag=U.representName(X);else $.tag=U.tag;else $.tag="?";if(U.represent){if(M=$.styleMap[U.tag]||U.defaultStyle,AF.call(U.represent)==="[object Function]")Y=U.represent(X,M);else if(BF.call(U.represent,M))Y=U.represent[M](X,M);else throw new z1("!<"+U.tag+'> tag resolver accepts not "'+M+'" style');$.dump=Y}return!0}return!1}function _6($,X,G,Y,J,W,H){if($.tag=null,$.dump=G,!$F($,G,!1))$F($,G,!0);var U=AF.call($.dump),M=Y,F;if(Y)Y=$.flowLevel<0||$.flowLevel>X;var Q=U==="[object Object]"||U==="[object Array]",q,R;if(Q)q=$.duplicates.indexOf(G),R=q!==-1;if($.tag!==null&&$.tag!=="?"||R||$.indent!==2&&X>0)J=!1;if(R&&$.usedDuplicates[q])$.dump="*ref_"+q;else{if(Q&&R&&!$.usedDuplicates[q])$.usedDuplicates[q]=!0;if(U==="[object Object]"){if(Y&&Object.keys($.dump).length!==0){if(SL($,X,$.dump,J),R)$.dump="&ref_"+q+$.dump}else if(jL($,X,$.dump),R)$.dump="&ref_"+q+" "+$.dump}else if(U==="[object Array]"){if(Y&&$.dump.length!==0){if($.noArrayIndent&&!H&&X>0)eM($,X-1,$.dump,J);else eM($,X,$.dump,J);if(R)$.dump="&ref_"+q+$.dump}else if(IL($,X,$.dump),R)$.dump="&ref_"+q+" "+$.dump}else if(U==="[object String]"){if($.tag!=="?")CL($,$.dump,X,W,M)}else if(U==="[object Undefined]")return!1;else{if($.skipInvalid)return!1;throw new z1("unacceptable kind of an object to dump "+U)}if($.tag!==null&&$.tag!=="?"){if(F=encodeURI($.tag[0]==="!"?$.tag.slice(1):$.tag).replace(/!/g,"%21"),$.tag[0]==="!")F="!"+F;else if(F.slice(0,18)==="tag:yaml.org,2002:")F="!!"+F.slice(18);else F="!<"+F+">";$.dump=F+" "+$.dump}}return!0}function kL($,X){var G=[],Y=[],J,W;dX($,G,Y);for(J=0,W=Y.length;J<W;J+=1)X.duplicates.push(G[Y[J]]);X.usedDuplicates=Array(W)}function dX($,X,G){var Y,J,W;if($!==null&&typeof $==="object")if(J=X.indexOf($),J!==-1){if(G.indexOf(J)===-1)G.push(J)}else if(X.push($),Array.isArray($))for(J=0,W=$.length;J<W;J+=1)dX($[J],X,G);else{Y=Object.keys($);for(J=0,W=Y.length;J<W;J+=1)dX($[Y[J]],X,G)}}function vL($,X){X=X||{};var G=new _L(X);if(!G.noRefs)kL($,G);var Y=$;if(G.replacer)Y=G.replacer.call({"":Y},"",Y);if(_6(G,0,Y,!0,!0))return G.dump+`
118
118
  `;return""}function oX($,X){return function(){throw Error("Function yaml."+$+" is removed in js-yaml 4. Use yaml."+X+" instead, which is now safe by default.")}}var VD,wD,_D,zD,DD,PD,c0,z1,CD,TD,ED,M1,kD,vD,xD,bD,hD,mD,lD,aD,tD,XP,JP,WP,HP,YF,JF,FP,qP,lX=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
119
- \r`,BP,NP,VP,zP,DP,CP,TP,jP,WF,c2,C9=1,HF=2,UF=3,T9=4,fX=1,SP=2,pM=3,kP,vP,xP,KF,MF,QF,qF,d2,lM,tP,eP,RF,AF,BF,iX=65279,$L=9,T4=10,XL=13,GL=32,YL=33,JL=34,mX=35,WL=37,HL=38,UL=39,KL=42,NF=44,ML=45,I9=58,FL=61,QL=62,qL=63,OL=64,VF=91,wF=93,ZL=96,_F=123,RL=124,zF=125,F1,AL,BL,wL=1,E4=2,PF=1,uX=2,LF=3,CF=4,B5=5,xL,bL,nX,Gp,TF,Yp,Jp,Wp;var k9=B(()=>{/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */VD=XF,wD=ZD,_D=RD,zD=BD,DD=ND,PD=AD,c0={isNothing:VD,isObject:wD,toArray:_D,repeat:zD,isNegativeZero:DD,extend:PD};C4.prototype=Object.create(Error.prototype);C4.prototype.constructor=C4;C4.prototype.toString=function(X){return this.name+": "+GF(this,X)};z1=C4;CD=LD,TD=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ED=["scalar","sequence","mapping"];M1=jD;gX.prototype.extend=function(X){var G=[],Y=[];if(X instanceof M1)Y.push(X);else if(Array.isArray(X))Y=Y.concat(X);else if(X&&(Array.isArray(X.implicit)||Array.isArray(X.explicit))){if(X.implicit)G=G.concat(X.implicit);if(X.explicit)Y=Y.concat(X.explicit)}else throw new z1("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");G.forEach(function(W){if(!(W instanceof M1))throw new z1("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(W.loadKind&&W.loadKind!=="scalar")throw new z1("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(W.multi)throw new z1("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),Y.forEach(function(W){if(!(W instanceof M1))throw new z1("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var J=Object.create(gX.prototype);return J.implicit=(this.implicit||[]).concat(G),J.explicit=(this.explicit||[]).concat(Y),J.compiledImplicit=mM(J,"implicit"),J.compiledExplicit=mM(J,"explicit"),J.compiledTypeMap=SD(J.compiledImplicit,J.compiledExplicit),J};kD=gX,vD=new M1("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}}),xD=new M1("tag:yaml.org,2002:seq",{kind:"sequence",construct:function($){return $!==null?$:[]}}),bD=new M1("tag:yaml.org,2002:map",{kind:"mapping",construct:function($){return $!==null?$:{}}}),hD=new kD({explicit:[vD,xD,bD]});mD=new M1("tag:yaml.org,2002:null",{kind:"scalar",resolve:yD,construct:fD,predicate:gD,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});lD=new M1("tag:yaml.org,2002:bool",{kind:"scalar",resolve:pD,construct:uD,predicate:dD,represent:{lowercase:function($){return $?"true":"false"},uppercase:function($){return $?"TRUE":"FALSE"},camelcase:function($){return $?"True":"False"}},defaultStyle:"lowercase"});aD=new M1("tag:yaml.org,2002:int",{kind:"scalar",resolve:oD,construct:nD,predicate:sD,represent:{binary:function($){return $>=0?"0b"+$.toString(2):"-0b"+$.toString(2).slice(1)},octal:function($){return $>=0?"0o"+$.toString(8):"-0o"+$.toString(8).slice(1)},decimal:function($){return $.toString(10)},hexadecimal:function($){return $>=0?"0x"+$.toString(16).toUpperCase():"-0x"+$.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),tD=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");XP=/^[-+]?[0-9]+e/;JP=new M1("tag:yaml.org,2002:float",{kind:"scalar",resolve:eD,construct:$P,predicate:YP,represent:GP,defaultStyle:"lowercase"}),WP=hD.extend({implicit:[mD,lD,aD,JP]}),HP=WP,YF=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),JF=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");FP=new M1("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:UP,construct:KP,instanceOf:Date,represent:MP});qP=new M1("tag:yaml.org,2002:merge",{kind:"scalar",resolve:QP});BP=new M1("tag:yaml.org,2002:binary",{kind:"scalar",resolve:OP,construct:ZP,predicate:AP,represent:RP}),NP=Object.prototype.hasOwnProperty,VP=Object.prototype.toString;zP=new M1("tag:yaml.org,2002:omap",{kind:"sequence",resolve:wP,construct:_P}),DP=Object.prototype.toString;CP=new M1("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:PP,construct:LP}),TP=Object.prototype.hasOwnProperty;jP=new M1("tag:yaml.org,2002:set",{kind:"mapping",resolve:EP,construct:IP}),WF=HP.extend({implicit:[FP,qP],explicit:[BP,zP,CP,jP]}),c2=Object.prototype.hasOwnProperty,kP=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,vP=/[\x85\u2028\u2029]/,xP=/[,\[\]\{\}]/,KF=/^(?:!|!!|![a-z\-]+!)$/i,MF=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;QF=Array(256),qF=Array(256);for(d2=0;d2<256;d2++)QF[d2]=dM(d2)?1:0,qF[d2]=dM(d2);lM={YAML:function(X,G,Y){var J,W,H;if(X.version!==null)p(X,"duplication of %YAML directive");if(Y.length!==1)p(X,"YAML directive accepts exactly one argument");if(J=/^([0-9]+)\.([0-9]+)$/.exec(Y[0]),J===null)p(X,"ill-formed argument of the YAML directive");if(W=parseInt(J[1],10),H=parseInt(J[2],10),W!==1)p(X,"unacceptable YAML version of the document");if(X.version=Y[0],X.checkLineBreaks=H<2,H!==1&&H!==2)E9(X,"unsupported YAML version of the document")},TAG:function(X,G,Y){var J,W;if(Y.length!==2)p(X,"TAG directive accepts exactly two arguments");if(J=Y[0],W=Y[1],!KF.test(J))p(X,"ill-formed tag handle (first argument) of the TAG directive");if(c2.call(X.tagMap,J))p(X,'there is a previously declared suffix for "'+J+'" tag handle');if(!MF.test(W))p(X,"ill-formed tag prefix (second argument) of the TAG directive");try{W=decodeURIComponent(W)}catch(H){p(X,"tag prefix is malformed: "+W)}X.tagMap[J]=W}};tP=sP,eP=aP,RF={loadAll:tP,load:eP},AF=Object.prototype.toString,BF=Object.prototype.hasOwnProperty,F1={};F1[0]="\\0";F1[7]="\\a";F1[8]="\\b";F1[9]="\\t";F1[10]="\\n";F1[11]="\\v";F1[12]="\\f";F1[13]="\\r";F1[27]="\\e";F1[34]="\\\"";F1[92]="\\\\";F1[133]="\\N";F1[160]="\\_";F1[8232]="\\L";F1[8233]="\\P";AL=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],BL=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;xL=vL,bL={dump:xL};nX=RF.load,Gp=RF.loadAll,TF=bL.dump,Yp=oX("safeLoad","load"),Jp=oX("safeLoadAll","loadAll"),Wp=oX("safeDump","dump")});function aX($){return nX($)}var EF=B(()=>{k9()});var IF="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";import{webcrypto as jF}from"crypto";function yL($){if(!v6||v6.length<$)v6=Buffer.allocUnsafe($*hL),jF.getRandomValues(v6),_5=0;else if(_5+$>v6.length)jF.getRandomValues(v6),_5=0;_5+=$}function SF($=21){yL($|=0);let X="";for(let G=_5-$;G<_5;G++)X+=IF[v6[G]&63];return X}var hL=128,v6,_5;var kF=()=>{};function z2($=12){return SF($)}var vF=B(()=>{kF()});function f1($){return $.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function tX($){let G=$.split(/\s+/).filter((Y)=>Y.length>0).length;return Math.max(1,Math.ceil(G/200))}var xF=()=>{};function z5($,X){let G=$.metadata.publishedAt??$.created,Y=X.metadata.publishedAt??X.created;return new Date(Y).getTime()-new Date(G).getTime()}var Q0,eX,v,G2=($)=>{switch(typeof $){case"undefined":return v.undefined;case"string":return v.string;case"number":return Number.isNaN($)?v.nan:v.number;case"boolean":return v.boolean;case"function":return v.function;case"bigint":return v.bigint;case"symbol":return v.symbol;case"object":if(Array.isArray($))return v.array;if($===null)return v.null;if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return v.promise;if(typeof Map<"u"&&$ instanceof Map)return v.map;if(typeof Set<"u"&&$ instanceof Set)return v.set;if(typeof Date<"u"&&$ instanceof Date)return v.date;return v.object;default:return v.unknown}};var j4=B(()=>{(function($){$.assertEqual=(J)=>{};function X(J){}$.assertIs=X;function G(J){throw Error()}$.assertNever=G,$.arrayToEnum=(J)=>{let W={};for(let H of J)W[H]=H;return W},$.getValidEnumValues=(J)=>{let W=$.objectKeys(J).filter((U)=>typeof J[J[U]]!=="number"),H={};for(let U of W)H[U]=J[U];return $.objectValues(H)},$.objectValues=(J)=>{return $.objectKeys(J).map(function(W){return J[W]})},$.objectKeys=typeof Object.keys==="function"?(J)=>Object.keys(J):(J)=>{let W=[];for(let H in J)if(Object.prototype.hasOwnProperty.call(J,H))W.push(H);return W},$.find=(J,W)=>{for(let H of J)if(W(H))return H;return},$.isInteger=typeof Number.isInteger==="function"?(J)=>Number.isInteger(J):(J)=>typeof J==="number"&&Number.isFinite(J)&&Math.floor(J)===J;function Y(J,W=" | "){return J.map((H)=>typeof H==="string"?`'${H}'`:H).join(W)}$.joinValues=Y,$.jsonStringifyReplacer=(J,W)=>{if(typeof W==="bigint")return W.toString();return W}})(Q0||(Q0={}));(function($){$.mergeShapes=(X,G)=>{return{...X,...G}}})(eX||(eX={}));v=Q0.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"])});var j,fL=($)=>{return JSON.stringify($,null,2).replace(/"([^"]+)":/g,"$1:")},Q1;var v9=B(()=>{j4();j=Q0.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);Q1=class Q1 extends Error{get errors(){return this.issues}constructor($){super();this.issues=[],this.addIssue=(G)=>{this.issues=[...this.issues,G]},this.addIssues=(G=[])=>{this.issues=[...this.issues,...G]};let X=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,X);else this.__proto__=X;this.name="ZodError",this.issues=$}format($){let X=$||function(J){return J.message},G={_errors:[]},Y=(J)=>{for(let W of J.issues)if(W.code==="invalid_union")W.unionErrors.map(Y);else if(W.code==="invalid_return_type")Y(W.returnTypeError);else if(W.code==="invalid_arguments")Y(W.argumentsError);else if(W.path.length===0)G._errors.push(X(W));else{let H=G,U=0;while(U<W.path.length){let M=W.path[U];if(U!==W.path.length-1)H[M]=H[M]||{_errors:[]};else H[M]=H[M]||{_errors:[]},H[M]._errors.push(X(W));H=H[M],U++}}};return Y(this),G}static assert($){if(!($ instanceof Q1))throw Error(`Not a ZodError: ${$}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Q0.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten($=(X)=>X.message){let X={},G=[];for(let Y of this.issues)if(Y.path.length>0){let J=Y.path[0];X[J]=X[J]||[],X[J].push($(Y))}else G.push($(Y));return{formErrors:G,fieldErrors:X}}get formErrors(){return this.flatten()}};Q1.create=($)=>{return new Q1($)}});var gL=($,X)=>{let G;switch($.code){case j.invalid_type:if($.received===v.undefined)G="Required";else G=`Expected ${$.expected}, received ${$.received}`;break;case j.invalid_literal:G=`Invalid literal value, expected ${JSON.stringify($.expected,Q0.jsonStringifyReplacer)}`;break;case j.unrecognized_keys:G=`Unrecognized key(s) in object: ${Q0.joinValues($.keys,", ")}`;break;case j.invalid_union:G="Invalid input";break;case j.invalid_union_discriminator:G=`Invalid discriminator value. Expected ${Q0.joinValues($.options)}`;break;case j.invalid_enum_value:G=`Invalid enum value. Expected ${Q0.joinValues($.options)}, received '${$.received}'`;break;case j.invalid_arguments:G="Invalid function arguments";break;case j.invalid_return_type:G="Invalid function return type";break;case j.invalid_date:G="Invalid date";break;case j.invalid_string:if(typeof $.validation==="object")if("includes"in $.validation){if(G=`Invalid input: must include "${$.validation.includes}"`,typeof $.validation.position==="number")G=`${G} at one or more positions greater than or equal to ${$.validation.position}`}else if("startsWith"in $.validation)G=`Invalid input: must start with "${$.validation.startsWith}"`;else if("endsWith"in $.validation)G=`Invalid input: must end with "${$.validation.endsWith}"`;else Q0.assertNever($.validation);else if($.validation!=="regex")G=`Invalid ${$.validation}`;else G="Invalid";break;case j.too_small:if($.type==="array")G=`Array must contain ${$.exact?"exactly":$.inclusive?"at least":"more than"} ${$.minimum} element(s)`;else if($.type==="string")G=`String must contain ${$.exact?"exactly":$.inclusive?"at least":"over"} ${$.minimum} character(s)`;else if($.type==="number")G=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="bigint")G=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="date")G=`Date must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${new Date(Number($.minimum))}`;else G="Invalid input";break;case j.too_big:if($.type==="array")G=`Array must contain ${$.exact?"exactly":$.inclusive?"at most":"less than"} ${$.maximum} element(s)`;else if($.type==="string")G=`String must contain ${$.exact?"exactly":$.inclusive?"at most":"under"} ${$.maximum} character(s)`;else if($.type==="number")G=`Number must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="bigint")G=`BigInt must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="date")G=`Date must be ${$.exact?"exactly":$.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number($.maximum))}`;else G="Invalid input";break;case j.custom:G="Invalid input";break;case j.invalid_intersection_types:G="Intersection results could not be merged";break;case j.not_multiple_of:G=`Number must be a multiple of ${$.multipleOf}`;break;case j.not_finite:G="Number must be finite";break;default:G=X.defaultError,Q0.assertNever($)}return{message:G}},D2;var $3=B(()=>{v9();j4();D2=gL});function mL($){bF=$}function D5(){return bF}var bF;var x9=B(()=>{$3();bF=D2});function h($,X){let G=D5(),Y=S4({issueData:X,data:$.data,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,G,G===D2?void 0:D2].filter((J)=>!!J)});$.common.issues.push(Y)}class $1{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray($,X){let G=[];for(let Y of X){if(Y.status==="aborted")return r;if(Y.status==="dirty")$.dirty();G.push(Y.value)}return{status:$.value,value:G}}static async mergeObjectAsync($,X){let G=[];for(let Y of X){let J=await Y.key,W=await Y.value;G.push({key:J,value:W})}return $1.mergeObjectSync($,G)}static mergeObjectSync($,X){let G={};for(let Y of X){let{key:J,value:W}=Y;if(J.status==="aborted")return r;if(W.status==="aborted")return r;if(J.status==="dirty")$.dirty();if(W.status==="dirty")$.dirty();if(J.value!=="__proto__"&&(typeof W.value<"u"||Y.alwaysSet))G[J.value]=W.value}return{status:$.value,value:G}}}var S4=($)=>{let{data:X,path:G,errorMaps:Y,issueData:J}=$,W=[...G,...J.path||[]],H={...J,path:W};if(J.message!==void 0)return{...J,path:W,message:J.message};let U="",M=Y.filter((F)=>!!F).slice().reverse();for(let F of M)U=F(H,{data:X,defaultError:U}).message;return{...J,path:W,message:U}},pL,r,x6=($)=>({status:"dirty",value:$}),q1=($)=>({status:"valid",value:$}),b9=($)=>$.status==="aborted",h9=($)=>$.status==="dirty",r2=($)=>$.status==="valid",P5=($)=>typeof Promise<"u"&&$ instanceof Promise;var X3=B(()=>{x9();$3();pL=[];r=Object.freeze({status:"aborted"})});var hF=()=>{};var m;var yF=B(()=>{(function($){$.errToObj=(X)=>typeof X==="string"?{message:X}:X||{},$.toString=(X)=>typeof X==="string"?X:X?.message})(m||(m={}))});class i1{constructor($,X,G,Y){this._cachedPath=[],this.parent=$,this.data=X,this._path=G,this._key=Y}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}function Y0($){if(!$)return{};let{errorMap:X,invalid_type_error:G,required_error:Y,description:J}=$;if(X&&(G||Y))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(X)return{errorMap:X,description:J};return{errorMap:(H,U)=>{let{message:M}=$;if(H.code==="invalid_enum_value")return{message:M??U.defaultError};if(typeof U.data>"u")return{message:M??Y??U.defaultError};if(H.code!=="invalid_type")return{message:U.defaultError};return{message:M??G??U.defaultError}},description:J}}class K0{get description(){return this._def.description}_getType($){return G2($.data)}_getOrReturnCtx($,X){return X||{common:$.parent.common,data:$.data,parsedType:G2($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}_processInputParams($){return{status:new $1,ctx:{common:$.parent.common,data:$.data,parsedType:G2($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}}_parseSync($){let X=this._parse($);if(P5(X))throw Error("Synchronous parse encountered promise.");return X}_parseAsync($){let X=this._parse($);return Promise.resolve(X)}parse($,X){let G=this.safeParse($,X);if(G.success)return G.data;throw G.error}safeParse($,X){let G={common:{issues:[],async:X?.async??!1,contextualErrorMap:X?.errorMap},path:X?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:G2($)},Y=this._parseSync({data:$,path:G.path,parent:G});return fF(G,Y)}"~validate"($){let X={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:G2($)};if(!this["~standard"].async)try{let G=this._parseSync({data:$,path:[],parent:X});return r2(G)?{value:G.value}:{issues:X.common.issues}}catch(G){if(G?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;X.common={issues:[],async:!0}}return this._parseAsync({data:$,path:[],parent:X}).then((G)=>r2(G)?{value:G.value}:{issues:X.common.issues})}async parseAsync($,X){let G=await this.safeParseAsync($,X);if(G.success)return G.data;throw G.error}async safeParseAsync($,X){let G={common:{issues:[],contextualErrorMap:X?.errorMap,async:!0},path:X?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:G2($)},Y=this._parse({data:$,path:G.path,parent:G}),J=await(P5(Y)?Y:Promise.resolve(Y));return fF(G,J)}refine($,X){let G=(Y)=>{if(typeof X==="string"||typeof X>"u")return{message:X};else if(typeof X==="function")return X(Y);else return X};return this._refinement((Y,J)=>{let W=$(Y),H=()=>J.addIssue({code:j.custom,...G(Y)});if(typeof Promise<"u"&&W instanceof Promise)return W.then((U)=>{if(!U)return H(),!1;else return!0});if(!W)return H(),!1;else return!0})}refinement($,X){return this._refinement((G,Y)=>{if(!$(G))return Y.addIssue(typeof X==="function"?X(G,Y):X),!1;else return!0})}_refinement($){return new o1({schema:this,typeName:n.ZodEffects,effect:{type:"refinement",refinement:$}})}superRefine($){return this._refinement($)}constructor($){this.spa=this.safeParseAsync,this._def=$,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(X)=>this["~validate"](X)}}optional(){return r1.create(this,this._def)}nullable(){return L2.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return c1.create(this)}promise(){return f6.create(this,this._def)}or($){return j5.create([this,$],this._def)}and($){return S5.create(this,$,this._def)}transform($){return new o1({...Y0(this._def),schema:this,typeName:n.ZodEffects,effect:{type:"transform",transform:$}})}default($){let X=typeof $==="function"?$:()=>$;return new b5({...Y0(this._def),innerType:this,defaultValue:X,typeName:n.ZodDefault})}brand(){return new f9({typeName:n.ZodBranded,type:this,...Y0(this._def)})}catch($){let X=typeof $==="function"?$:()=>$;return new h5({...Y0(this._def),innerType:this,catchValue:X,typeName:n.ZodCatch})}describe($){return new this.constructor({...this._def,description:$})}pipe($){return y4.create(this,$)}readonly(){return y5.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}function pF($){let X="[0-5]\\d";if($.precision)X=`${X}\\.\\d{${$.precision}}`;else if($.precision==null)X=`${X}(\\.\\d+)?`;let G=$.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${X})${G}`}function JC($){return new RegExp(`^${pF($)}$`)}function uF($){let X=`${mF}T${pF($)}`,G=[];if(G.push($.local?"Z?":"Z"),$.offset)G.push("([+-]\\d{2}:?\\d{2})");return X=`${X}(${G.join("|")})`,new RegExp(`^${X}$`)}function WC($,X){if((X==="v4"||!X)&&aL.test($))return!0;if((X==="v6"||!X)&&eL.test($))return!0;return!1}function HC($,X){if(!iL.test($))return!1;try{let[G]=$.split(".");if(!G)return!1;let Y=G.replace(/-/g,"+").replace(/_/g,"/").padEnd(G.length+(4-G.length%4)%4,"="),J=JSON.parse(atob(Y));if(typeof J!=="object"||J===null)return!1;if("typ"in J&&J?.typ!=="JWT")return!1;if(!J.alg)return!1;if(X&&J.alg!==X)return!1;return!0}catch{return!1}}function UC($,X){if((X==="v4"||!X)&&tL.test($))return!0;if((X==="v6"||!X)&&$C.test($))return!0;return!1}function KC($,X){let G=($.toString().split(".")[1]||"").length,Y=(X.toString().split(".")[1]||"").length,J=G>Y?G:Y,W=Number.parseInt($.toFixed(J).replace(".","")),H=Number.parseInt(X.toFixed(J).replace(".",""));return W%H/10**J}function L5($){if($ instanceof S0){let X={};for(let G in $.shape){let Y=$.shape[G];X[G]=r1.create(L5(Y))}return new S0({...$._def,shape:()=>X})}else if($ instanceof c1)return new c1({...$._def,type:L5($.element)});else if($ instanceof r1)return r1.create(L5($.unwrap()));else if($ instanceof L2)return L2.create(L5($.unwrap()));else if($ instanceof J2)return J2.create($.items.map((X)=>L5(X)));else return $}function Y3($,X){let G=G2($),Y=G2(X);if($===X)return{valid:!0,data:$};else if(G===v.object&&Y===v.object){let J=Q0.objectKeys(X),W=Q0.objectKeys($).filter((U)=>J.indexOf(U)!==-1),H={...$,...X};for(let U of W){let M=Y3($[U],X[U]);if(!M.valid)return{valid:!1};H[U]=M.data}return{valid:!0,data:H}}else if(G===v.array&&Y===v.array){if($.length!==X.length)return{valid:!1};let J=[];for(let W=0;W<$.length;W++){let H=$[W],U=X[W],M=Y3(H,U);if(!M.valid)return{valid:!1};J.push(M.data)}return{valid:!0,data:J}}else if(G===v.date&&Y===v.date&&+$===+X)return{valid:!0,data:$};else return{valid:!1}}function dF($,X){return new s2({values:$,typeName:n.ZodEnum,...Y0(X)})}function gF($,X){let G=typeof $==="function"?$(X):typeof $==="string"?{message:$}:$;return typeof G==="string"?{message:G}:G}function lF($,X={},G){if($)return h6.create().superRefine((Y,J)=>{let W=$(Y);if(W instanceof Promise)return W.then((H)=>{if(!H){let U=gF(X,Y),M=U.fatal??G??!0;J.addIssue({code:"custom",...U,fatal:M})}});if(!W){let H=gF(X,Y),U=H.fatal??G??!0;J.addIssue({code:"custom",...H,fatal:U})}return});return h6.create()}var fF=($,X)=>{if(r2(X))return{success:!0,data:X.value};else{if(!$.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let G=new Q1($.common.issues);return this._error=G,this._error}}}},uL,dL,lL,cL,rL,iL,oL,nL,sL="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",G3,aL,tL,eL,$C,XC,GC,mF="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",YC,l1,o2,n2,T5,b6,k4,E5,I5,h6,i2,Y2,v4,c1,S0,j5,P2=($)=>{if($ instanceof k5)return P2($.schema);else if($ instanceof o1)return P2($.innerType());else if($ instanceof v5)return[$.value];else if($ instanceof s2)return $.options;else if($ instanceof x5)return Q0.objectValues($.enum);else if($ instanceof b5)return P2($._def.innerType);else if($ instanceof E5)return[void 0];else if($ instanceof I5)return[null];else if($ instanceof r1)return[void 0,...P2($.unwrap())];else if($ instanceof L2)return[null,...P2($.unwrap())];else if($ instanceof f9)return P2($.unwrap());else if($ instanceof y5)return P2($.unwrap());else if($ instanceof h5)return P2($._def.innerType);else return[]},y9,S5,J2,x4,b4,y6,C5,k5,v5,s2,x5,f6,o1,r1,L2,b5,h5,h4,MC,f9,y4,y5,FC,n,QC=($,X={message:`Input not instance of ${$.name}`})=>lF((G)=>G instanceof $,X),cF,rF,qC,OC,iF,ZC,RC,AC,BC,NC,VC,wC,_C,zC,DC,PC,LC,CC,TC,EC,IC,jC,SC,kC,vC,xC,bC,hC,yC,fC,gC,mC,pC,uC,dC=()=>cF().optional(),lC=()=>rF().optional(),cC=()=>iF().optional(),rC,iC;var oF=B(()=>{v9();x9();yF();X3();j4();uL=/^c[^\s-]{8,}$/i,dL=/^[0-9a-z]+$/,lL=/^[0-9A-HJKMNP-TV-Z]{26}$/i,cL=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,rL=/^[a-z0-9_-]{21}$/i,iL=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,oL=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,nL=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,aL=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,tL=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,eL=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,$C=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,XC=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,GC=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,YC=new RegExp(`^${mF}$`);l1=class l1 extends K0{_parse($){if(this._def.coerce)$.data=String($.data);if(this._getType($)!==v.string){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_type,expected:v.string,received:J.parsedType}),r}let G=new $1,Y=void 0;for(let J of this._def.checks)if(J.kind==="min"){if($.data.length<J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_small,minimum:J.value,type:"string",inclusive:!0,exact:!1,message:J.message}),G.dirty()}else if(J.kind==="max"){if($.data.length>J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_big,maximum:J.value,type:"string",inclusive:!0,exact:!1,message:J.message}),G.dirty()}else if(J.kind==="length"){let W=$.data.length>J.value,H=$.data.length<J.value;if(W||H){if(Y=this._getOrReturnCtx($,Y),W)h(Y,{code:j.too_big,maximum:J.value,type:"string",inclusive:!0,exact:!0,message:J.message});else if(H)h(Y,{code:j.too_small,minimum:J.value,type:"string",inclusive:!0,exact:!0,message:J.message});G.dirty()}}else if(J.kind==="email"){if(!nL.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"email",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="emoji"){if(!G3)G3=new RegExp(sL,"u");if(!G3.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"emoji",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="uuid"){if(!cL.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"uuid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="nanoid"){if(!rL.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"nanoid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="cuid"){if(!uL.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"cuid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="cuid2"){if(!dL.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"cuid2",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="ulid"){if(!lL.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"ulid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="url")try{new URL($.data)}catch{Y=this._getOrReturnCtx($,Y),h(Y,{validation:"url",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="regex"){if(J.regex.lastIndex=0,!J.regex.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"regex",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="trim")$.data=$.data.trim();else if(J.kind==="includes"){if(!$.data.includes(J.value,J.position))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:{includes:J.value,position:J.position},message:J.message}),G.dirty()}else if(J.kind==="toLowerCase")$.data=$.data.toLowerCase();else if(J.kind==="toUpperCase")$.data=$.data.toUpperCase();else if(J.kind==="startsWith"){if(!$.data.startsWith(J.value))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:{startsWith:J.value},message:J.message}),G.dirty()}else if(J.kind==="endsWith"){if(!$.data.endsWith(J.value))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:{endsWith:J.value},message:J.message}),G.dirty()}else if(J.kind==="datetime"){if(!uF(J).test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:"datetime",message:J.message}),G.dirty()}else if(J.kind==="date"){if(!YC.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:"date",message:J.message}),G.dirty()}else if(J.kind==="time"){if(!JC(J).test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:"time",message:J.message}),G.dirty()}else if(J.kind==="duration"){if(!oL.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"duration",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="ip"){if(!WC($.data,J.version))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"ip",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="jwt"){if(!HC($.data,J.alg))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"jwt",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="cidr"){if(!UC($.data,J.version))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"cidr",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="base64"){if(!XC.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"base64",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="base64url"){if(!GC.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"base64url",code:j.invalid_string,message:J.message}),G.dirty()}else Q0.assertNever(J);return{status:G.value,value:$.data}}_regex($,X,G){return this.refinement((Y)=>$.test(Y),{validation:X,code:j.invalid_string,...m.errToObj(G)})}_addCheck($){return new l1({...this._def,checks:[...this._def.checks,$]})}email($){return this._addCheck({kind:"email",...m.errToObj($)})}url($){return this._addCheck({kind:"url",...m.errToObj($)})}emoji($){return this._addCheck({kind:"emoji",...m.errToObj($)})}uuid($){return this._addCheck({kind:"uuid",...m.errToObj($)})}nanoid($){return this._addCheck({kind:"nanoid",...m.errToObj($)})}cuid($){return this._addCheck({kind:"cuid",...m.errToObj($)})}cuid2($){return this._addCheck({kind:"cuid2",...m.errToObj($)})}ulid($){return this._addCheck({kind:"ulid",...m.errToObj($)})}base64($){return this._addCheck({kind:"base64",...m.errToObj($)})}base64url($){return this._addCheck({kind:"base64url",...m.errToObj($)})}jwt($){return this._addCheck({kind:"jwt",...m.errToObj($)})}ip($){return this._addCheck({kind:"ip",...m.errToObj($)})}cidr($){return this._addCheck({kind:"cidr",...m.errToObj($)})}datetime($){if(typeof $==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:$});return this._addCheck({kind:"datetime",precision:typeof $?.precision>"u"?null:$?.precision,offset:$?.offset??!1,local:$?.local??!1,...m.errToObj($?.message)})}date($){return this._addCheck({kind:"date",message:$})}time($){if(typeof $==="string")return this._addCheck({kind:"time",precision:null,message:$});return this._addCheck({kind:"time",precision:typeof $?.precision>"u"?null:$?.precision,...m.errToObj($?.message)})}duration($){return this._addCheck({kind:"duration",...m.errToObj($)})}regex($,X){return this._addCheck({kind:"regex",regex:$,...m.errToObj(X)})}includes($,X){return this._addCheck({kind:"includes",value:$,position:X?.position,...m.errToObj(X?.message)})}startsWith($,X){return this._addCheck({kind:"startsWith",value:$,...m.errToObj(X)})}endsWith($,X){return this._addCheck({kind:"endsWith",value:$,...m.errToObj(X)})}min($,X){return this._addCheck({kind:"min",value:$,...m.errToObj(X)})}max($,X){return this._addCheck({kind:"max",value:$,...m.errToObj(X)})}length($,X){return this._addCheck({kind:"length",value:$,...m.errToObj(X)})}nonempty($){return this.min(1,m.errToObj($))}trim(){return new l1({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new l1({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new l1({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(($)=>$.kind==="datetime")}get isDate(){return!!this._def.checks.find(($)=>$.kind==="date")}get isTime(){return!!this._def.checks.find(($)=>$.kind==="time")}get isDuration(){return!!this._def.checks.find(($)=>$.kind==="duration")}get isEmail(){return!!this._def.checks.find(($)=>$.kind==="email")}get isURL(){return!!this._def.checks.find(($)=>$.kind==="url")}get isEmoji(){return!!this._def.checks.find(($)=>$.kind==="emoji")}get isUUID(){return!!this._def.checks.find(($)=>$.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(($)=>$.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(($)=>$.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(($)=>$.kind==="cuid2")}get isULID(){return!!this._def.checks.find(($)=>$.kind==="ulid")}get isIP(){return!!this._def.checks.find(($)=>$.kind==="ip")}get isCIDR(){return!!this._def.checks.find(($)=>$.kind==="cidr")}get isBase64(){return!!this._def.checks.find(($)=>$.kind==="base64")}get isBase64url(){return!!this._def.checks.find(($)=>$.kind==="base64url")}get minLength(){let $=null;for(let X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $}get maxLength(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $}};l1.create=($)=>{return new l1({checks:[],typeName:n.ZodString,coerce:$?.coerce??!1,...Y0($)})};o2=class o2 extends K0{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse($){if(this._def.coerce)$.data=Number($.data);if(this._getType($)!==v.number){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_type,expected:v.number,received:J.parsedType}),r}let G=void 0,Y=new $1;for(let J of this._def.checks)if(J.kind==="int"){if(!Q0.isInteger($.data))G=this._getOrReturnCtx($,G),h(G,{code:j.invalid_type,expected:"integer",received:"float",message:J.message}),Y.dirty()}else if(J.kind==="min"){if(J.inclusive?$.data<J.value:$.data<=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_small,minimum:J.value,type:"number",inclusive:J.inclusive,exact:!1,message:J.message}),Y.dirty()}else if(J.kind==="max"){if(J.inclusive?$.data>J.value:$.data>=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_big,maximum:J.value,type:"number",inclusive:J.inclusive,exact:!1,message:J.message}),Y.dirty()}else if(J.kind==="multipleOf"){if(KC($.data,J.value)!==0)G=this._getOrReturnCtx($,G),h(G,{code:j.not_multiple_of,multipleOf:J.value,message:J.message}),Y.dirty()}else if(J.kind==="finite"){if(!Number.isFinite($.data))G=this._getOrReturnCtx($,G),h(G,{code:j.not_finite,message:J.message}),Y.dirty()}else Q0.assertNever(J);return{status:Y.value,value:$.data}}gte($,X){return this.setLimit("min",$,!0,m.toString(X))}gt($,X){return this.setLimit("min",$,!1,m.toString(X))}lte($,X){return this.setLimit("max",$,!0,m.toString(X))}lt($,X){return this.setLimit("max",$,!1,m.toString(X))}setLimit($,X,G,Y){return new o2({...this._def,checks:[...this._def.checks,{kind:$,value:X,inclusive:G,message:m.toString(Y)}]})}_addCheck($){return new o2({...this._def,checks:[...this._def.checks,$]})}int($){return this._addCheck({kind:"int",message:m.toString($)})}positive($){return this._addCheck({kind:"min",value:0,inclusive:!1,message:m.toString($)})}negative($){return this._addCheck({kind:"max",value:0,inclusive:!1,message:m.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:0,inclusive:!0,message:m.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:0,inclusive:!0,message:m.toString($)})}multipleOf($,X){return this._addCheck({kind:"multipleOf",value:$,message:m.toString(X)})}finite($){return this._addCheck({kind:"finite",message:m.toString($)})}safe($){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:m.toString($)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:m.toString($)})}get minValue(){let $=null;for(let X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $}get maxValue(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $}get isInt(){return!!this._def.checks.find(($)=>$.kind==="int"||$.kind==="multipleOf"&&Q0.isInteger($.value))}get isFinite(){let $=null,X=null;for(let G of this._def.checks)if(G.kind==="finite"||G.kind==="int"||G.kind==="multipleOf")return!0;else if(G.kind==="min"){if(X===null||G.value>X)X=G.value}else if(G.kind==="max"){if($===null||G.value<$)$=G.value}return Number.isFinite(X)&&Number.isFinite($)}};o2.create=($)=>{return new o2({checks:[],typeName:n.ZodNumber,coerce:$?.coerce||!1,...Y0($)})};n2=class n2 extends K0{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse($){if(this._def.coerce)try{$.data=BigInt($.data)}catch{return this._getInvalidInput($)}if(this._getType($)!==v.bigint)return this._getInvalidInput($);let G=void 0,Y=new $1;for(let J of this._def.checks)if(J.kind==="min"){if(J.inclusive?$.data<J.value:$.data<=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_small,type:"bigint",minimum:J.value,inclusive:J.inclusive,message:J.message}),Y.dirty()}else if(J.kind==="max"){if(J.inclusive?$.data>J.value:$.data>=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_big,type:"bigint",maximum:J.value,inclusive:J.inclusive,message:J.message}),Y.dirty()}else if(J.kind==="multipleOf"){if($.data%J.value!==BigInt(0))G=this._getOrReturnCtx($,G),h(G,{code:j.not_multiple_of,multipleOf:J.value,message:J.message}),Y.dirty()}else Q0.assertNever(J);return{status:Y.value,value:$.data}}_getInvalidInput($){let X=this._getOrReturnCtx($);return h(X,{code:j.invalid_type,expected:v.bigint,received:X.parsedType}),r}gte($,X){return this.setLimit("min",$,!0,m.toString(X))}gt($,X){return this.setLimit("min",$,!1,m.toString(X))}lte($,X){return this.setLimit("max",$,!0,m.toString(X))}lt($,X){return this.setLimit("max",$,!1,m.toString(X))}setLimit($,X,G,Y){return new n2({...this._def,checks:[...this._def.checks,{kind:$,value:X,inclusive:G,message:m.toString(Y)}]})}_addCheck($){return new n2({...this._def,checks:[...this._def.checks,$]})}positive($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:m.toString($)})}negative($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:m.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:m.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:m.toString($)})}multipleOf($,X){return this._addCheck({kind:"multipleOf",value:$,message:m.toString(X)})}get minValue(){let $=null;for(let X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $}get maxValue(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $}};n2.create=($)=>{return new n2({checks:[],typeName:n.ZodBigInt,coerce:$?.coerce??!1,...Y0($)})};T5=class T5 extends K0{_parse($){if(this._def.coerce)$.data=Boolean($.data);if(this._getType($)!==v.boolean){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.boolean,received:G.parsedType}),r}return q1($.data)}};T5.create=($)=>{return new T5({typeName:n.ZodBoolean,coerce:$?.coerce||!1,...Y0($)})};b6=class b6 extends K0{_parse($){if(this._def.coerce)$.data=new Date($.data);if(this._getType($)!==v.date){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_type,expected:v.date,received:J.parsedType}),r}if(Number.isNaN($.data.getTime())){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_date}),r}let G=new $1,Y=void 0;for(let J of this._def.checks)if(J.kind==="min"){if($.data.getTime()<J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_small,message:J.message,inclusive:!0,exact:!1,minimum:J.value,type:"date"}),G.dirty()}else if(J.kind==="max"){if($.data.getTime()>J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_big,message:J.message,inclusive:!0,exact:!1,maximum:J.value,type:"date"}),G.dirty()}else Q0.assertNever(J);return{status:G.value,value:new Date($.data.getTime())}}_addCheck($){return new b6({...this._def,checks:[...this._def.checks,$]})}min($,X){return this._addCheck({kind:"min",value:$.getTime(),message:m.toString(X)})}max($,X){return this._addCheck({kind:"max",value:$.getTime(),message:m.toString(X)})}get minDate(){let $=null;for(let X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $!=null?new Date($):null}get maxDate(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $!=null?new Date($):null}};b6.create=($)=>{return new b6({checks:[],coerce:$?.coerce||!1,typeName:n.ZodDate,...Y0($)})};k4=class k4 extends K0{_parse($){if(this._getType($)!==v.symbol){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.symbol,received:G.parsedType}),r}return q1($.data)}};k4.create=($)=>{return new k4({typeName:n.ZodSymbol,...Y0($)})};E5=class E5 extends K0{_parse($){if(this._getType($)!==v.undefined){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.undefined,received:G.parsedType}),r}return q1($.data)}};E5.create=($)=>{return new E5({typeName:n.ZodUndefined,...Y0($)})};I5=class I5 extends K0{_parse($){if(this._getType($)!==v.null){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.null,received:G.parsedType}),r}return q1($.data)}};I5.create=($)=>{return new I5({typeName:n.ZodNull,...Y0($)})};h6=class h6 extends K0{constructor(){super(...arguments);this._any=!0}_parse($){return q1($.data)}};h6.create=($)=>{return new h6({typeName:n.ZodAny,...Y0($)})};i2=class i2 extends K0{constructor(){super(...arguments);this._unknown=!0}_parse($){return q1($.data)}};i2.create=($)=>{return new i2({typeName:n.ZodUnknown,...Y0($)})};Y2=class Y2 extends K0{_parse($){let X=this._getOrReturnCtx($);return h(X,{code:j.invalid_type,expected:v.never,received:X.parsedType}),r}};Y2.create=($)=>{return new Y2({typeName:n.ZodNever,...Y0($)})};v4=class v4 extends K0{_parse($){if(this._getType($)!==v.undefined){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.void,received:G.parsedType}),r}return q1($.data)}};v4.create=($)=>{return new v4({typeName:n.ZodVoid,...Y0($)})};c1=class c1 extends K0{_parse($){let{ctx:X,status:G}=this._processInputParams($),Y=this._def;if(X.parsedType!==v.array)return h(X,{code:j.invalid_type,expected:v.array,received:X.parsedType}),r;if(Y.exactLength!==null){let W=X.data.length>Y.exactLength.value,H=X.data.length<Y.exactLength.value;if(W||H)h(X,{code:W?j.too_big:j.too_small,minimum:H?Y.exactLength.value:void 0,maximum:W?Y.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:Y.exactLength.message}),G.dirty()}if(Y.minLength!==null){if(X.data.length<Y.minLength.value)h(X,{code:j.too_small,minimum:Y.minLength.value,type:"array",inclusive:!0,exact:!1,message:Y.minLength.message}),G.dirty()}if(Y.maxLength!==null){if(X.data.length>Y.maxLength.value)h(X,{code:j.too_big,maximum:Y.maxLength.value,type:"array",inclusive:!0,exact:!1,message:Y.maxLength.message}),G.dirty()}if(X.common.async)return Promise.all([...X.data].map((W,H)=>{return Y.type._parseAsync(new i1(X,W,X.path,H))})).then((W)=>{return $1.mergeArray(G,W)});let J=[...X.data].map((W,H)=>{return Y.type._parseSync(new i1(X,W,X.path,H))});return $1.mergeArray(G,J)}get element(){return this._def.type}min($,X){return new c1({...this._def,minLength:{value:$,message:m.toString(X)}})}max($,X){return new c1({...this._def,maxLength:{value:$,message:m.toString(X)}})}length($,X){return new c1({...this._def,exactLength:{value:$,message:m.toString(X)}})}nonempty($){return this.min(1,$)}};c1.create=($,X)=>{return new c1({type:$,minLength:null,maxLength:null,exactLength:null,typeName:n.ZodArray,...Y0(X)})};S0=class S0 extends K0{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let $=this._def.shape(),X=Q0.objectKeys($);return this._cached={shape:$,keys:X},this._cached}_parse($){if(this._getType($)!==v.object){let M=this._getOrReturnCtx($);return h(M,{code:j.invalid_type,expected:v.object,received:M.parsedType}),r}let{status:G,ctx:Y}=this._processInputParams($),{shape:J,keys:W}=this._getCached(),H=[];if(!(this._def.catchall instanceof Y2&&this._def.unknownKeys==="strip")){for(let M in Y.data)if(!W.includes(M))H.push(M)}let U=[];for(let M of W){let F=J[M],Q=Y.data[M];U.push({key:{status:"valid",value:M},value:F._parse(new i1(Y,Q,Y.path,M)),alwaysSet:M in Y.data})}if(this._def.catchall instanceof Y2){let M=this._def.unknownKeys;if(M==="passthrough")for(let F of H)U.push({key:{status:"valid",value:F},value:{status:"valid",value:Y.data[F]}});else if(M==="strict"){if(H.length>0)h(Y,{code:j.unrecognized_keys,keys:H}),G.dirty()}else if(M==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let M=this._def.catchall;for(let F of H){let Q=Y.data[F];U.push({key:{status:"valid",value:F},value:M._parse(new i1(Y,Q,Y.path,F)),alwaysSet:F in Y.data})}}if(Y.common.async)return Promise.resolve().then(async()=>{let M=[];for(let F of U){let Q=await F.key,q=await F.value;M.push({key:Q,value:q,alwaysSet:F.alwaysSet})}return M}).then((M)=>{return $1.mergeObjectSync(G,M)});else return $1.mergeObjectSync(G,U)}get shape(){return this._def.shape()}strict($){return m.errToObj,new S0({...this._def,unknownKeys:"strict",...$!==void 0?{errorMap:(X,G)=>{let Y=this._def.errorMap?.(X,G).message??G.defaultError;if(X.code==="unrecognized_keys")return{message:m.errToObj($).message??Y};return{message:Y}}}:{}})}strip(){return new S0({...this._def,unknownKeys:"strip"})}passthrough(){return new S0({...this._def,unknownKeys:"passthrough"})}extend($){return new S0({...this._def,shape:()=>({...this._def.shape(),...$})})}merge($){return new S0({unknownKeys:$._def.unknownKeys,catchall:$._def.catchall,shape:()=>({...this._def.shape(),...$._def.shape()}),typeName:n.ZodObject})}setKey($,X){return this.augment({[$]:X})}catchall($){return new S0({...this._def,catchall:$})}pick($){let X={};for(let G of Q0.objectKeys($))if($[G]&&this.shape[G])X[G]=this.shape[G];return new S0({...this._def,shape:()=>X})}omit($){let X={};for(let G of Q0.objectKeys(this.shape))if(!$[G])X[G]=this.shape[G];return new S0({...this._def,shape:()=>X})}deepPartial(){return L5(this)}partial($){let X={};for(let G of Q0.objectKeys(this.shape)){let Y=this.shape[G];if($&&!$[G])X[G]=Y;else X[G]=Y.optional()}return new S0({...this._def,shape:()=>X})}required($){let X={};for(let G of Q0.objectKeys(this.shape))if($&&!$[G])X[G]=this.shape[G];else{let J=this.shape[G];while(J instanceof r1)J=J._def.innerType;X[G]=J}return new S0({...this._def,shape:()=>X})}keyof(){return dF(Q0.objectKeys(this.shape))}};S0.create=($,X)=>{return new S0({shape:()=>$,unknownKeys:"strip",catchall:Y2.create(),typeName:n.ZodObject,...Y0(X)})};S0.strictCreate=($,X)=>{return new S0({shape:()=>$,unknownKeys:"strict",catchall:Y2.create(),typeName:n.ZodObject,...Y0(X)})};S0.lazycreate=($,X)=>{return new S0({shape:$,unknownKeys:"strip",catchall:Y2.create(),typeName:n.ZodObject,...Y0(X)})};j5=class j5 extends K0{_parse($){let{ctx:X}=this._processInputParams($),G=this._def.options;function Y(J){for(let H of J)if(H.result.status==="valid")return H.result;for(let H of J)if(H.result.status==="dirty")return X.common.issues.push(...H.ctx.common.issues),H.result;let W=J.map((H)=>new Q1(H.ctx.common.issues));return h(X,{code:j.invalid_union,unionErrors:W}),r}if(X.common.async)return Promise.all(G.map(async(J)=>{let W={...X,common:{...X.common,issues:[]},parent:null};return{result:await J._parseAsync({data:X.data,path:X.path,parent:W}),ctx:W}})).then(Y);else{let J=void 0,W=[];for(let U of G){let M={...X,common:{...X.common,issues:[]},parent:null},F=U._parseSync({data:X.data,path:X.path,parent:M});if(F.status==="valid")return F;else if(F.status==="dirty"&&!J)J={result:F,ctx:M};if(M.common.issues.length)W.push(M.common.issues)}if(J)return X.common.issues.push(...J.ctx.common.issues),J.result;let H=W.map((U)=>new Q1(U));return h(X,{code:j.invalid_union,unionErrors:H}),r}}get options(){return this._def.options}};j5.create=($,X)=>{return new j5({options:$,typeName:n.ZodUnion,...Y0(X)})};y9=class y9 extends K0{_parse($){let{ctx:X}=this._processInputParams($);if(X.parsedType!==v.object)return h(X,{code:j.invalid_type,expected:v.object,received:X.parsedType}),r;let G=this.discriminator,Y=X.data[G],J=this.optionsMap.get(Y);if(!J)return h(X,{code:j.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[G]}),r;if(X.common.async)return J._parseAsync({data:X.data,path:X.path,parent:X});else return J._parseSync({data:X.data,path:X.path,parent:X})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create($,X,G){let Y=new Map;for(let J of X){let W=P2(J.shape[$]);if(!W.length)throw Error(`A discriminator value for key \`${$}\` could not be extracted from all schema options`);for(let H of W){if(Y.has(H))throw Error(`Discriminator property ${String($)} has duplicate value ${String(H)}`);Y.set(H,J)}}return new y9({typeName:n.ZodDiscriminatedUnion,discriminator:$,options:X,optionsMap:Y,...Y0(G)})}};S5=class S5 extends K0{_parse($){let{status:X,ctx:G}=this._processInputParams($),Y=(J,W)=>{if(b9(J)||b9(W))return r;let H=Y3(J.value,W.value);if(!H.valid)return h(G,{code:j.invalid_intersection_types}),r;if(h9(J)||h9(W))X.dirty();return{status:X.value,value:H.data}};if(G.common.async)return Promise.all([this._def.left._parseAsync({data:G.data,path:G.path,parent:G}),this._def.right._parseAsync({data:G.data,path:G.path,parent:G})]).then(([J,W])=>Y(J,W));else return Y(this._def.left._parseSync({data:G.data,path:G.path,parent:G}),this._def.right._parseSync({data:G.data,path:G.path,parent:G}))}};S5.create=($,X,G)=>{return new S5({left:$,right:X,typeName:n.ZodIntersection,...Y0(G)})};J2=class J2 extends K0{_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.array)return h(G,{code:j.invalid_type,expected:v.array,received:G.parsedType}),r;if(G.data.length<this._def.items.length)return h(G,{code:j.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r;if(!this._def.rest&&G.data.length>this._def.items.length)h(G,{code:j.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),X.dirty();let J=[...G.data].map((W,H)=>{let U=this._def.items[H]||this._def.rest;if(!U)return null;return U._parse(new i1(G,W,G.path,H))}).filter((W)=>!!W);if(G.common.async)return Promise.all(J).then((W)=>{return $1.mergeArray(X,W)});else return $1.mergeArray(X,J)}get items(){return this._def.items}rest($){return new J2({...this._def,rest:$})}};J2.create=($,X)=>{if(!Array.isArray($))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new J2({items:$,typeName:n.ZodTuple,rest:null,...Y0(X)})};x4=class x4 extends K0{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.object)return h(G,{code:j.invalid_type,expected:v.object,received:G.parsedType}),r;let Y=[],J=this._def.keyType,W=this._def.valueType;for(let H in G.data)Y.push({key:J._parse(new i1(G,H,G.path,H)),value:W._parse(new i1(G,G.data[H],G.path,H)),alwaysSet:H in G.data});if(G.common.async)return $1.mergeObjectAsync(X,Y);else return $1.mergeObjectSync(X,Y)}get element(){return this._def.valueType}static create($,X,G){if(X instanceof K0)return new x4({keyType:$,valueType:X,typeName:n.ZodRecord,...Y0(G)});return new x4({keyType:l1.create(),valueType:$,typeName:n.ZodRecord,...Y0(X)})}};b4=class b4 extends K0{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.map)return h(G,{code:j.invalid_type,expected:v.map,received:G.parsedType}),r;let Y=this._def.keyType,J=this._def.valueType,W=[...G.data.entries()].map(([H,U],M)=>{return{key:Y._parse(new i1(G,H,G.path,[M,"key"])),value:J._parse(new i1(G,U,G.path,[M,"value"]))}});if(G.common.async){let H=new Map;return Promise.resolve().then(async()=>{for(let U of W){let M=await U.key,F=await U.value;if(M.status==="aborted"||F.status==="aborted")return r;if(M.status==="dirty"||F.status==="dirty")X.dirty();H.set(M.value,F.value)}return{status:X.value,value:H}})}else{let H=new Map;for(let U of W){let{key:M,value:F}=U;if(M.status==="aborted"||F.status==="aborted")return r;if(M.status==="dirty"||F.status==="dirty")X.dirty();H.set(M.value,F.value)}return{status:X.value,value:H}}}};b4.create=($,X,G)=>{return new b4({valueType:X,keyType:$,typeName:n.ZodMap,...Y0(G)})};y6=class y6 extends K0{_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.set)return h(G,{code:j.invalid_type,expected:v.set,received:G.parsedType}),r;let Y=this._def;if(Y.minSize!==null){if(G.data.size<Y.minSize.value)h(G,{code:j.too_small,minimum:Y.minSize.value,type:"set",inclusive:!0,exact:!1,message:Y.minSize.message}),X.dirty()}if(Y.maxSize!==null){if(G.data.size>Y.maxSize.value)h(G,{code:j.too_big,maximum:Y.maxSize.value,type:"set",inclusive:!0,exact:!1,message:Y.maxSize.message}),X.dirty()}let J=this._def.valueType;function W(U){let M=new Set;for(let F of U){if(F.status==="aborted")return r;if(F.status==="dirty")X.dirty();M.add(F.value)}return{status:X.value,value:M}}let H=[...G.data.values()].map((U,M)=>J._parse(new i1(G,U,G.path,M)));if(G.common.async)return Promise.all(H).then((U)=>W(U));else return W(H)}min($,X){return new y6({...this._def,minSize:{value:$,message:m.toString(X)}})}max($,X){return new y6({...this._def,maxSize:{value:$,message:m.toString(X)}})}size($,X){return this.min($,X).max($,X)}nonempty($){return this.min(1,$)}};y6.create=($,X)=>{return new y6({valueType:$,minSize:null,maxSize:null,typeName:n.ZodSet,...Y0(X)})};C5=class C5 extends K0{constructor(){super(...arguments);this.validate=this.implement}_parse($){let{ctx:X}=this._processInputParams($);if(X.parsedType!==v.function)return h(X,{code:j.invalid_type,expected:v.function,received:X.parsedType}),r;function G(H,U){return S4({data:H,path:X.path,errorMaps:[X.common.contextualErrorMap,X.schemaErrorMap,D5(),D2].filter((M)=>!!M),issueData:{code:j.invalid_arguments,argumentsError:U}})}function Y(H,U){return S4({data:H,path:X.path,errorMaps:[X.common.contextualErrorMap,X.schemaErrorMap,D5(),D2].filter((M)=>!!M),issueData:{code:j.invalid_return_type,returnTypeError:U}})}let J={errorMap:X.common.contextualErrorMap},W=X.data;if(this._def.returns instanceof f6){let H=this;return q1(async function(...U){let M=new Q1([]),F=await H._def.args.parseAsync(U,J).catch((R)=>{throw M.addIssue(G(U,R)),M}),Q=await Reflect.apply(W,this,F);return await H._def.returns._def.type.parseAsync(Q,J).catch((R)=>{throw M.addIssue(Y(Q,R)),M})})}else{let H=this;return q1(function(...U){let M=H._def.args.safeParse(U,J);if(!M.success)throw new Q1([G(U,M.error)]);let F=Reflect.apply(W,this,M.data),Q=H._def.returns.safeParse(F,J);if(!Q.success)throw new Q1([Y(F,Q.error)]);return Q.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...$){return new C5({...this._def,args:J2.create($).rest(i2.create())})}returns($){return new C5({...this._def,returns:$})}implement($){return this.parse($)}strictImplement($){return this.parse($)}static create($,X,G){return new C5({args:$?$:J2.create([]).rest(i2.create()),returns:X||i2.create(),typeName:n.ZodFunction,...Y0(G)})}};k5=class k5 extends K0{get schema(){return this._def.getter()}_parse($){let{ctx:X}=this._processInputParams($);return this._def.getter()._parse({data:X.data,path:X.path,parent:X})}};k5.create=($,X)=>{return new k5({getter:$,typeName:n.ZodLazy,...Y0(X)})};v5=class v5 extends K0{_parse($){if($.data!==this._def.value){let X=this._getOrReturnCtx($);return h(X,{received:X.data,code:j.invalid_literal,expected:this._def.value}),r}return{status:"valid",value:$.data}}get value(){return this._def.value}};v5.create=($,X)=>{return new v5({value:$,typeName:n.ZodLiteral,...Y0(X)})};s2=class s2 extends K0{_parse($){if(typeof $.data!=="string"){let X=this._getOrReturnCtx($),G=this._def.values;return h(X,{expected:Q0.joinValues(G),received:X.parsedType,code:j.invalid_type}),r}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has($.data)){let X=this._getOrReturnCtx($),G=this._def.values;return h(X,{received:X.data,code:j.invalid_enum_value,options:G}),r}return q1($.data)}get options(){return this._def.values}get enum(){let $={};for(let X of this._def.values)$[X]=X;return $}get Values(){let $={};for(let X of this._def.values)$[X]=X;return $}get Enum(){let $={};for(let X of this._def.values)$[X]=X;return $}extract($,X=this._def){return s2.create($,{...this._def,...X})}exclude($,X=this._def){return s2.create(this.options.filter((G)=>!$.includes(G)),{...this._def,...X})}};s2.create=dF;x5=class x5 extends K0{_parse($){let X=Q0.getValidEnumValues(this._def.values),G=this._getOrReturnCtx($);if(G.parsedType!==v.string&&G.parsedType!==v.number){let Y=Q0.objectValues(X);return h(G,{expected:Q0.joinValues(Y),received:G.parsedType,code:j.invalid_type}),r}if(!this._cache)this._cache=new Set(Q0.getValidEnumValues(this._def.values));if(!this._cache.has($.data)){let Y=Q0.objectValues(X);return h(G,{received:G.data,code:j.invalid_enum_value,options:Y}),r}return q1($.data)}get enum(){return this._def.values}};x5.create=($,X)=>{return new x5({values:$,typeName:n.ZodNativeEnum,...Y0(X)})};f6=class f6 extends K0{unwrap(){return this._def.type}_parse($){let{ctx:X}=this._processInputParams($);if(X.parsedType!==v.promise&&X.common.async===!1)return h(X,{code:j.invalid_type,expected:v.promise,received:X.parsedType}),r;let G=X.parsedType===v.promise?X.data:Promise.resolve(X.data);return q1(G.then((Y)=>{return this._def.type.parseAsync(Y,{path:X.path,errorMap:X.common.contextualErrorMap})}))}};f6.create=($,X)=>{return new f6({type:$,typeName:n.ZodPromise,...Y0(X)})};o1=class o1 extends K0{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===n.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse($){let{status:X,ctx:G}=this._processInputParams($),Y=this._def.effect||null,J={addIssue:(W)=>{if(h(G,W),W.fatal)X.abort();else X.dirty()},get path(){return G.path}};if(J.addIssue=J.addIssue.bind(J),Y.type==="preprocess"){let W=Y.transform(G.data,J);if(G.common.async)return Promise.resolve(W).then(async(H)=>{if(X.value==="aborted")return r;let U=await this._def.schema._parseAsync({data:H,path:G.path,parent:G});if(U.status==="aborted")return r;if(U.status==="dirty")return x6(U.value);if(X.value==="dirty")return x6(U.value);return U});else{if(X.value==="aborted")return r;let H=this._def.schema._parseSync({data:W,path:G.path,parent:G});if(H.status==="aborted")return r;if(H.status==="dirty")return x6(H.value);if(X.value==="dirty")return x6(H.value);return H}}if(Y.type==="refinement"){let W=(H)=>{let U=Y.refinement(H,J);if(G.common.async)return Promise.resolve(U);if(U instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return H};if(G.common.async===!1){let H=this._def.schema._parseSync({data:G.data,path:G.path,parent:G});if(H.status==="aborted")return r;if(H.status==="dirty")X.dirty();return W(H.value),{status:X.value,value:H.value}}else return this._def.schema._parseAsync({data:G.data,path:G.path,parent:G}).then((H)=>{if(H.status==="aborted")return r;if(H.status==="dirty")X.dirty();return W(H.value).then(()=>{return{status:X.value,value:H.value}})})}if(Y.type==="transform")if(G.common.async===!1){let W=this._def.schema._parseSync({data:G.data,path:G.path,parent:G});if(!r2(W))return r;let H=Y.transform(W.value,J);if(H instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:X.value,value:H}}else return this._def.schema._parseAsync({data:G.data,path:G.path,parent:G}).then((W)=>{if(!r2(W))return r;return Promise.resolve(Y.transform(W.value,J)).then((H)=>({status:X.value,value:H}))});Q0.assertNever(Y)}};o1.create=($,X,G)=>{return new o1({schema:$,typeName:n.ZodEffects,effect:X,...Y0(G)})};o1.createWithPreprocess=($,X,G)=>{return new o1({schema:X,effect:{type:"preprocess",transform:$},typeName:n.ZodEffects,...Y0(G)})};r1=class r1 extends K0{_parse($){if(this._getType($)===v.undefined)return q1(void 0);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}};r1.create=($,X)=>{return new r1({innerType:$,typeName:n.ZodOptional,...Y0(X)})};L2=class L2 extends K0{_parse($){if(this._getType($)===v.null)return q1(null);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}};L2.create=($,X)=>{return new L2({innerType:$,typeName:n.ZodNullable,...Y0(X)})};b5=class b5 extends K0{_parse($){let{ctx:X}=this._processInputParams($),G=X.data;if(X.parsedType===v.undefined)G=this._def.defaultValue();return this._def.innerType._parse({data:G,path:X.path,parent:X})}removeDefault(){return this._def.innerType}};b5.create=($,X)=>{return new b5({innerType:$,typeName:n.ZodDefault,defaultValue:typeof X.default==="function"?X.default:()=>X.default,...Y0(X)})};h5=class h5 extends K0{_parse($){let{ctx:X}=this._processInputParams($),G={...X,common:{...X.common,issues:[]}},Y=this._def.innerType._parse({data:G.data,path:G.path,parent:{...G}});if(P5(Y))return Y.then((J)=>{return{status:"valid",value:J.status==="valid"?J.value:this._def.catchValue({get error(){return new Q1(G.common.issues)},input:G.data})}});else return{status:"valid",value:Y.status==="valid"?Y.value:this._def.catchValue({get error(){return new Q1(G.common.issues)},input:G.data})}}removeCatch(){return this._def.innerType}};h5.create=($,X)=>{return new h5({innerType:$,typeName:n.ZodCatch,catchValue:typeof X.catch==="function"?X.catch:()=>X.catch,...Y0(X)})};h4=class h4 extends K0{_parse($){if(this._getType($)!==v.nan){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.nan,received:G.parsedType}),r}return{status:"valid",value:$.data}}};h4.create=($)=>{return new h4({typeName:n.ZodNaN,...Y0($)})};MC=Symbol("zod_brand");f9=class f9 extends K0{_parse($){let{ctx:X}=this._processInputParams($),G=X.data;return this._def.type._parse({data:G,path:X.path,parent:X})}unwrap(){return this._def.type}};y4=class y4 extends K0{_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.common.async)return(async()=>{let J=await this._def.in._parseAsync({data:G.data,path:G.path,parent:G});if(J.status==="aborted")return r;if(J.status==="dirty")return X.dirty(),x6(J.value);else return this._def.out._parseAsync({data:J.value,path:G.path,parent:G})})();else{let Y=this._def.in._parseSync({data:G.data,path:G.path,parent:G});if(Y.status==="aborted")return r;if(Y.status==="dirty")return X.dirty(),{status:"dirty",value:Y.value};else return this._def.out._parseSync({data:Y.value,path:G.path,parent:G})}}static create($,X){return new y4({in:$,out:X,typeName:n.ZodPipeline})}};y5=class y5 extends K0{_parse($){let X=this._def.innerType._parse($),G=(Y)=>{if(r2(Y))Y.value=Object.freeze(Y.value);return Y};return P5(X)?X.then((Y)=>G(Y)):G(X)}unwrap(){return this._def.innerType}};y5.create=($,X)=>{return new y5({innerType:$,typeName:n.ZodReadonly,...Y0(X)})};FC={object:S0.lazycreate};(function($){$.ZodString="ZodString",$.ZodNumber="ZodNumber",$.ZodNaN="ZodNaN",$.ZodBigInt="ZodBigInt",$.ZodBoolean="ZodBoolean",$.ZodDate="ZodDate",$.ZodSymbol="ZodSymbol",$.ZodUndefined="ZodUndefined",$.ZodNull="ZodNull",$.ZodAny="ZodAny",$.ZodUnknown="ZodUnknown",$.ZodNever="ZodNever",$.ZodVoid="ZodVoid",$.ZodArray="ZodArray",$.ZodObject="ZodObject",$.ZodUnion="ZodUnion",$.ZodDiscriminatedUnion="ZodDiscriminatedUnion",$.ZodIntersection="ZodIntersection",$.ZodTuple="ZodTuple",$.ZodRecord="ZodRecord",$.ZodMap="ZodMap",$.ZodSet="ZodSet",$.ZodFunction="ZodFunction",$.ZodLazy="ZodLazy",$.ZodLiteral="ZodLiteral",$.ZodEnum="ZodEnum",$.ZodEffects="ZodEffects",$.ZodNativeEnum="ZodNativeEnum",$.ZodOptional="ZodOptional",$.ZodNullable="ZodNullable",$.ZodDefault="ZodDefault",$.ZodCatch="ZodCatch",$.ZodPromise="ZodPromise",$.ZodBranded="ZodBranded",$.ZodPipeline="ZodPipeline",$.ZodReadonly="ZodReadonly"})(n||(n={}));cF=l1.create,rF=o2.create,qC=h4.create,OC=n2.create,iF=T5.create,ZC=b6.create,RC=k4.create,AC=E5.create,BC=I5.create,NC=h6.create,VC=i2.create,wC=Y2.create,_C=v4.create,zC=c1.create,DC=S0.create,PC=S0.strictCreate,LC=j5.create,CC=y9.create,TC=S5.create,EC=J2.create,IC=x4.create,jC=b4.create,SC=y6.create,kC=C5.create,vC=k5.create,xC=v5.create,bC=s2.create,hC=x5.create,yC=f6.create,fC=o1.create,gC=r1.create,mC=L2.create,pC=o1.createWithPreprocess,uC=y4.create,rC={string:($)=>l1.create({...$,coerce:!0}),number:($)=>o2.create({...$,coerce:!0}),boolean:($)=>T5.create({...$,coerce:!0}),bigint:($)=>n2.create({...$,coerce:!0}),date:($)=>b6.create({...$,coerce:!0})},iC=r});var K={};v8(K,{void:()=>_C,util:()=>Q0,unknown:()=>VC,union:()=>LC,undefined:()=>AC,tuple:()=>EC,transformer:()=>fC,symbol:()=>RC,string:()=>cF,strictObject:()=>PC,setErrorMap:()=>mL,set:()=>SC,record:()=>IC,quotelessJson:()=>fL,promise:()=>yC,preprocess:()=>pC,pipeline:()=>uC,ostring:()=>dC,optional:()=>gC,onumber:()=>lC,oboolean:()=>cC,objectUtil:()=>eX,object:()=>DC,number:()=>rF,nullable:()=>mC,null:()=>BC,never:()=>wC,nativeEnum:()=>hC,nan:()=>qC,map:()=>jC,makeIssue:()=>S4,literal:()=>xC,lazy:()=>vC,late:()=>FC,isValid:()=>r2,isDirty:()=>h9,isAsync:()=>P5,isAborted:()=>b9,intersection:()=>TC,instanceof:()=>QC,getParsedType:()=>G2,getErrorMap:()=>D5,function:()=>kC,enum:()=>bC,effect:()=>fC,discriminatedUnion:()=>CC,defaultErrorMap:()=>D2,datetimeRegex:()=>uF,date:()=>ZC,custom:()=>lF,coerce:()=>rC,boolean:()=>iF,bigint:()=>OC,array:()=>zC,any:()=>NC,addIssueToContext:()=>h,ZodVoid:()=>v4,ZodUnknown:()=>i2,ZodUnion:()=>j5,ZodUndefined:()=>E5,ZodType:()=>K0,ZodTuple:()=>J2,ZodTransformer:()=>o1,ZodSymbol:()=>k4,ZodString:()=>l1,ZodSet:()=>y6,ZodSchema:()=>K0,ZodRecord:()=>x4,ZodReadonly:()=>y5,ZodPromise:()=>f6,ZodPipeline:()=>y4,ZodParsedType:()=>v,ZodOptional:()=>r1,ZodObject:()=>S0,ZodNumber:()=>o2,ZodNullable:()=>L2,ZodNull:()=>I5,ZodNever:()=>Y2,ZodNativeEnum:()=>x5,ZodNaN:()=>h4,ZodMap:()=>b4,ZodLiteral:()=>v5,ZodLazy:()=>k5,ZodIssueCode:()=>j,ZodIntersection:()=>S5,ZodFunction:()=>C5,ZodFirstPartyTypeKind:()=>n,ZodError:()=>Q1,ZodEnum:()=>s2,ZodEffects:()=>o1,ZodDiscriminatedUnion:()=>y9,ZodDefault:()=>b5,ZodDate:()=>b6,ZodCatch:()=>h5,ZodBranded:()=>f9,ZodBoolean:()=>T5,ZodBigInt:()=>n2,ZodArray:()=>c1,ZodAny:()=>h6,Schema:()=>K0,ParseStatus:()=>$1,OK:()=>q1,NEVER:()=>iC,INVALID:()=>r,EMPTY_PATH:()=>pL,DIRTY:()=>x6,BRAND:()=>MC});var J3=B(()=>{x9();X3();hF();j4();oF();v9()});var P1=B(()=>{J3();J3()});var nF=B(()=>{P1()});function f0($){return $ instanceof Error?$.message:String($)}function f4($){return $ instanceof Error?$:Error(String($))}var S=B(()=>{Y$();Y$();gM();EF();vF();xF();nF()});var W3=()=>{};var C2;var H3=B(()=>{S();W3();C2=K.enum(["anchor","trusted","public"])});function tF($,X){return(G)=>{let Y=$.parse(G);return X(Y)}}function T0($){let{layout:X,schema:G,...Y}=$,J={...Y,schema:G};if(X){if(J.layout={},X.component)J.layout.component=tF(G,X.component);if(X.fullscreen!==void 0)J.layout.fullscreen=X.fullscreen}return J}var tC;var eF=B(()=>{S();H3();tC=K.object({name:K.string(),description:K.string(),schema:K.any(),basePrompt:K.string().optional(),useKnowledgeContext:K.boolean().optional(),requiredPermission:C2,formatter:K.any().optional(),layout:K.object({component:K.any(),fullscreen:K.boolean().optional()}).optional(),dataSourceId:K.string().optional()})});class g4{static canGenerate($){return!!$.basePrompt&&!!$.dataSourceId&&$.dataSourceId.includes("ai-content")}static canFetch($){return!!$.dataSourceId&&!this.canGenerate($)}static canRender($){return!!$.layout?.component}static isStaticOnly($){return!this.canGenerate($)&&!this.canFetch($)}static getCapabilities($){return{canGenerate:this.canGenerate($),canFetch:this.canFetch($),canRender:this.canRender($),isStaticOnly:this.isStaticOnly($)}}static validate($){let X=[];if($.dataSourceId?.includes("ai-content")&&!$.basePrompt)X.push(`Template "${$.name}" has AI-content dataSourceId but no basePrompt. AI generation requires a basePrompt.`);if($.basePrompt&&(!$.dataSourceId||!$.dataSourceId.includes("ai-content")))X.push(`Template "${$.name}" has basePrompt but no AI-content dataSourceId. The basePrompt won't be used.`);return X}static logCapabilities($,X){let G=this.getCapabilities($),Y=this.validate($);if(X)X.debug(`Template capabilities for "${$.name}":`,{...G,errors:Y.length>0?Y:void 0})}}var $Q=()=>{};var eC,$T,XT,GT;var XQ=B(()=>{S();eC=K.enum(["site-content-preview","site-content-production"]),$T=K.object({name:K.string(),schema:K.any(),description:K.string().optional(),pluginId:K.string(),renderers:K.object({web:K.union([K.function(),K.string()]).optional()})}),XT=K.object({enableContentGeneration:K.boolean().default(!1),outputDir:K.string(),workingDir:K.string().optional(),environment:K.enum(["preview","production"]).default("preview"),siteConfig:K.object({title:K.string(),description:K.string(),url:K.string().optional()}).optional()}),GT=K.object({success:K.boolean(),routesBuilt:K.number(),errors:K.array(K.string()).optional(),warnings:K.array(K.string()).optional()})});var g1=B(()=>{eF();$Q();H3();W3();XQ()});var YT;var YQ=B(()=>{P1();YT=K.object({url:K.string(),authToken:K.string().optional()})});var m4;var JQ=B(()=>{P1();m4=K.object({success:K.boolean(),entityId:K.string().optional(),error:K.string().optional()})});var U3;var WQ=B(()=>{U3={success($){return{success:!0,...$}},failure($){return{success:!1,error:$ instanceof Error?$.message:String($)}}}});var p4;var HQ=B(()=>{p4={START:0,INIT:10,FETCH:20,PROCESS:40,GENERATE:50,EXTRACT:60,SAVE:80,COMPLETE:100}});var K3,UQ,M3,F3;var KQ=B(()=>{P1();K3=K.object({message:K.string().describe("Natural language response to the query"),summary:K.string().optional().describe("Brief summary if applicable"),topics:K.array(K.string()).optional().describe("Related topics mentioned"),sources:K.array(K.object({id:K.string(),type:K.string(),excerpt:K.string().optional(),relevance:K.number().min(0).max(1).optional()})).optional().describe("Source entities used to answer the query"),metadata:K.record(K.string(),K.unknown()).optional()}).describe("defaultQueryResponse"),UQ=K.object({message:K.string()}).describe("simpleTextResponse"),M3=K.object({success:K.boolean(),entityId:K.string().optional(),message:K.string()}).describe("createEntityResponse"),F3=K.object({success:K.boolean(),entityId:K.string(),changes:K.array(K.string()).optional(),message:K.string()}).describe("updateEntityResponse")});var g6=B(()=>{YQ();JQ();WQ();HQ();KQ()});var JT,MQ;var FQ=B(()=>{S();JT=K.object({status:K.enum(["healthy","warning","error","unknown"]),message:K.string().optional(),lastCheck:K.date().optional(),details:K.record(K.string(),K.unknown()).optional()}),MQ=K.object({name:K.string(),pluginId:K.string(),status:K.string(),health:JT.optional()})});import{McpServer as Ed,ResourceTemplate as Id}from"@modelcontextprotocol/sdk/server/mcp.js";var QQ=B(()=>{g1();S()});var qQ=B(()=>{QQ()});var g9,OQ,ZQ,RQ,Q3;var AQ=B(()=>{S();g9=K.object({interfaceType:K.string(),userId:K.string(),channelId:K.string().optional(),channelName:K.string().optional()}),OQ=K.object({success:K.literal(!0),data:K.unknown(),message:K.string().optional()}),ZQ=K.object({success:K.literal(!1),error:K.string(),code:K.string().optional()}),RQ=K.object({needsConfirmation:K.literal(!0),toolName:K.string(),description:K.string(),args:K.unknown()}),Q3=K.union([OQ,ZQ,RQ])});var BQ;var NQ=B(()=>{S();BQ=K.union([K.object({success:K.literal(!0),data:K.unknown(),message:K.string().optional()}),K.object({success:K.literal(!1),error:K.string(),code:K.string().optional()})])});var VQ=B(()=>{S()});var q3=B(()=>{qQ();AQ();NQ();VQ()});var Jl,Wl,m9,wQ,_Q,p9,O3,MT,FT;var u9=B(()=>{S();g1();g6();FQ();q3();Jl=K.object({id:K.string(),type:K.string(),version:K.string(),status:K.string()}),Wl=K.object({name:K.string(),description:K.string()}),m9=K.object({label:K.string(),url:K.string(),pluginId:K.string(),priority:K.number().default(100),visibility:C2.default("public")}),wQ=K.enum(["human","agent","admin","protocol"]),_Q=K.enum(["available","coming-soon","disabled"]),p9=K.object({id:K.string(),label:K.string(),description:K.string().optional(),href:K.string(),kind:wQ,pluginId:K.string(),priority:K.number().default(100),visibility:C2.default("public"),status:_Q.default("available")}),O3=K.object({entityType:K.string(),count:K.number()}),MT=K.object({model:K.string(),version:K.string(),uptime:K.number(),entities:K.number(),entityCounts:K.array(O3),embeddings:K.number(),ai:K.object({model:K.string(),embeddingModel:K.string()}),daemons:K.array(MQ),endpoints:K.array(m9),interactions:K.array(p9)}),FT=K.object({id:K.string(),version:K.string(),type:K.enum(["core","entity","service","interface"]),description:K.string().optional(),dependencies:K.array(K.string()).optional(),packageName:K.string()})});class f5{id;version;description;packageName;config;context;get logger(){return this.context?.logger??a0.createFresh({context:this.id})}constructor($,X,G,Y){this.id=$,this.packageName=X.name,this.version=X.version,this.description=X.description??`${X.name} plugin`,this.config=Y.parse(G)}setupMessageHandlers($){$.messaging.subscribe(`plugin:${this.id}:tool:execute`,async(X)=>{try{let{toolName:G,args:Y,progressToken:J,hasProgress:W,interfaceType:H,userId:U,channelId:M}=QT.parse(X.payload),Q=(await this.getTools()).find((O)=>O.name===G);if(!Q)return{success:!1,error:`Tool not found: ${G}`};let q={interfaceType:H,userId:U,...M&&{channelId:M},...W&&J!==void 0&&{progressToken:J,sendProgress:async(O)=>{await $.messaging.send({type:`plugin:${this.id}:progress`,payload:{progressToken:J,notification:O}})}}};return{success:!0,data:await Q.handler(Y,q)}}catch(G){if(G instanceof K.ZodError)return{success:!1,error:"Invalid tool execution request format"};return this.logger.error("Tool execution error",G),{success:!1,error:f0(G)}}}),$.messaging.subscribe(`plugin:${this.id}:resource:get`,async(X)=>{try{let{resourceUri:G}=qT.parse(X.payload),J=(await this.getResources()).find((H)=>H.uri===G);if(!J)return{success:!1,error:`Resource not found: ${G}`};return{success:!0,data:await J.handler()}}catch(G){if(G instanceof K.ZodError)return{success:!1,error:"Invalid resource get request format"};return this.logger.error("Resource fetch error",G),{success:!1,error:f0(G)}}})}async onRegister($){}async onReady($){}async ready(){await this.onReady(this.getContext())}async getCapabilities(){let $=await this.getInstructions();return{tools:await this.getTools(),resources:await this.getResources(),...$&&{instructions:$}}}async getTools(){return[]}async getResources(){return[]}async getInstructions(){return}async shutdown(){await this.onShutdown()}async onShutdown(){}getContext(){if(!this.context)throw Error(`Plugin ${this.id}: Plugin not registered yet`);return this.context}determineUserPermissionLevel($){return"public"}createProgressBridge($){if(!$)return;let X=this.context;if(!X)return;let G=this.id;return u2.from(async(Y)=>{await X.messaging.send({type:`plugin:${G}:progress`,payload:{progressToken:$,notification:{progress:Y.progress,total:Y.total,message:Y.message}}})})}}var QT,qT;var d9=B(()=>{u9();S();S();QT=K.object({toolName:K.string(),args:K.unknown(),progressToken:K.union([K.string(),K.number()]).optional(),hasProgress:K.boolean().optional(),...g9.shape}),qT=K.object({resourceUri:K.string()})});var zQ,Z3,DQ,R3,PQ,LQ,CQ,TQ,l9;var A3=B(()=>{S();zQ=K.object({id:K.string(),template:K.string(),content:K.unknown().optional(),dataQuery:K.object({entityType:K.string().optional(),template:K.string().optional(),query:K.object({id:K.string().optional(),limit:K.number().optional(),offset:K.number().optional()}).passthrough().optional()}).passthrough().optional(),order:K.number().optional()}),Z3=["primary","secondary"],DQ=K.object({show:K.boolean().default(!1),label:K.string().optional(),slot:K.enum(Z3).default("primary"),priority:K.number().min(0).max(100).default(50)}).optional(),R3=K.object({id:K.string(),path:K.string(),title:K.string().default(""),pageLabel:K.string().optional(),description:K.string().default(""),sections:K.array(zQ).default([]),layout:K.string().default("default"),fullscreen:K.boolean().optional(),pluginId:K.string().optional(),sourceEntityType:K.string().optional(),external:K.boolean().optional(),navigation:DQ}),PQ=K.object({routes:K.array(R3),pluginId:K.string()}),LQ=K.object({paths:K.array(K.string()).optional(),pluginId:K.string().optional()}),CQ=K.object({pluginId:K.string().optional()}),TQ=K.object({path:K.string()}),l9=K.object({label:K.string(),href:K.string(),priority:K.number()})});var c9,r9,i9,OT,ZT;var EQ=B(()=>{S();A3();c9=K.object({heading:K.string().describe("Main CTA heading text"),buttonText:K.string().describe("Call-to-action button text"),buttonLink:K.string().describe("URL or anchor for the CTA button")}),r9=K.object({blurb:K.string().optional().describe("Short italic subtitle under the section title")}),i9=K.object({title:K.string().describe("The site's title"),description:K.string().describe("The site's description"),url:K.string().optional().describe("Canonical site URL"),copyright:K.string().optional().describe("Copyright notice text"),logo:K.boolean().optional().describe("Whether to display logo instead of title text in header"),themeMode:K.enum(["light","dark"]).optional().describe("Default theme mode"),analyticsScript:K.string().optional().describe("Analytics script HTML"),cta:c9.optional().describe("Call-to-action configuration"),sections:K.record(K.string(),r9).optional().describe("Optional per-section blurbs, keyed by section id (e.g. 'essays', 'presentations', 'about'). Used by homepage templates that render editorial section headers.")}),OT=K.object({platform:K.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:K.string().describe("Profile or contact URL"),label:K.string().optional().describe("Optional display label")}),ZT=i9.extend({navigation:K.object({primary:K.array(l9),secondary:K.array(l9)}),copyright:K.string(),socialLinks:K.array(OT).optional().describe("Social media links from profile metadata")})});function B3($){return`preview.${$.trim().replace(/^https?:\/\//,"")}`}var IQ=B(()=>{S()});var RT,AT,BT,NT,VT;var jQ=B(()=>{S();RT=K.string(),AT=K.object({id:K.string().min(1)}).passthrough(),BT=K.object({label:K.string().min(1)}).passthrough(),NT=K.object({layouts:K.record(K.unknown()),plugin:K.function(),routes:K.array(AT),entityDisplay:K.record(BT),staticAssets:K.record(K.string()).optional()}).passthrough(),VT=K.custom(($)=>NT.safeParse($).success)});var g5=B(()=>{A3();EQ();IQ();jQ()});var SQ,kQ,u4,Sl;var o9=B(()=>{S();SQ=K.enum(["file_operations","content_operations","data_processing","batch_processing"]),kQ=K.object({pluginId:K.string().optional(),progressToken:K.union([K.string(),K.number()]).optional(),operationType:SQ,operationTarget:K.string().optional(),interfaceType:K.string().optional(),channelId:K.string().optional()}),u4=kQ.extend({rootJobId:K.string()}),Sl=K.enum(["none","skip","replace","coalesce"])});var N3,vQ,zT,DT,xQ,V3;var a2=B(()=>{S();o9();N3=K.enum(["pending","processing","completed","failed"]),vQ=K.enum(["completed","failed"]),zT=K.object({id:K.string(),type:K.string(),status:N3,data:K.unknown(),result:K.unknown().optional(),lastError:K.string().optional().nullable(),attempts:K.number(),maxRetries:K.number(),priority:K.number(),createdAt:K.date(),updatedAt:K.date(),processedAt:K.date().optional().nullable(),completedAt:K.date().optional().nullable(),failedAt:K.date().optional().nullable()}),DT=K.object({jobId:K.string(),type:K.string(),status:vQ,result:K.unknown().optional(),error:K.string().optional()}),xQ=K.object({success:K.literal(!1),error:K.string().optional()}),V3=K.object({id:K.string(),type:K.enum(["job","batch"]),status:N3,message:K.string().optional(),progress:K.object({current:K.number(),total:K.number(),percentage:K.number()}).optional(),aggregationKey:K.string().optional(),batchDetails:K.object({totalOperations:K.number(),completedOperations:K.number(),failedOperations:K.number(),currentOperation:K.string().optional(),errors:K.array(K.string()).optional()}).optional(),jobDetails:K.object({jobType:K.string(),priority:K.number(),retryCount:K.number()}).optional(),metadata:u4})});function X0($,X){if(!$||typeof $!=="object")return!1;if($ instanceof X)return!0;if(!Object.prototype.hasOwnProperty.call(X,k))throw Error(`Class "${X.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let G=Object.getPrototypeOf($).constructor;if(G)while(G){if(k in G&&G[k]===X[k])return!0;G=Object.getPrototypeOf(G)}return!1}var k;var z0=B(()=>{k=Symbol.for("drizzle:entityKind")});var L1;var t2=B(()=>{z0();L1=class L1{constructor($,X){this.table=$,this.config=X,this.name=X.name,this.keyAsName=X.keyAsName,this.notNull=X.notNull,this.default=X.default,this.defaultFn=X.defaultFn,this.onUpdateFn=X.onUpdateFn,this.hasDefault=X.hasDefault,this.primary=X.primaryKey,this.isUnique=X.isUnique,this.uniqueName=X.uniqueName,this.uniqueType=X.uniqueType,this.dataType=X.dataType,this.columnType=X.columnType,this.generated=X.generated,this.generatedIdentity=X.generatedIdentity}static[k]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue($){return $}mapToDriverValue($){return $}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}}});var w3;var _3=B(()=>{z0();w3=class w3{static[k]="ColumnBuilder";config;constructor($,X,G){this.config={name:$,keyAsName:$==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:X,columnType:G,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default($){return this.config.default=$,this.config.hasDefault=!0,this}$defaultFn($){return this.config.defaultFn=$,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn($){return this.config.onUpdateFn=$,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName($){if(this.config.name!=="")return;this.config.name=$}}});var n1;var d4=B(()=>{n1=Symbol.for("drizzle:Name")});function bQ($,...X){return $(...X)}var hQ=()=>{};function yQ($,X){return`${$[n1]}_${X.join("_")}_unique`}var fQ=B(()=>{d4()});var l4,PT;var gQ=B(()=>{t2();z0();fQ();l4=class l4 extends L1{constructor($,X){if(!X.uniqueName)X.uniqueName=yQ($,[X.name]);super($,X);this.table=$}static[k]="PgColumn"};PT=class PT extends l4{static[k]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op($){return this.indexConfig.opClass=$,this}}});function pQ($){return!!$&&typeof $==="function"&&mQ in $&&$[mQ]===!0}var LT,mQ,CT;var uQ=B(()=>{z0();gQ();LT=class LT extends l4{static[k]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor($,X){super($,X);this.enum=X.enum}getSQLType(){return this.enum.enumName}};mQ=Symbol.for("drizzle:isPgEnum");CT=class CT extends l4{static[k]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor($,X){super($,X);this.enum=X.enum}getSQLType(){return this.enum.enumName}}});var N1;var e2=B(()=>{z0();N1=class N1{static[k]="Subquery";constructor($,X,G,Y=!1,J=[]){this._={brand:"Subquery",sql:$,selectedFields:X,alias:G,isWith:Y,usedTables:J}}}});var dQ="0.44.7";var lQ=()=>{};var z3,D3,cQ;var rQ=B(()=>{hQ();lQ();cQ={startActiveSpan($,X){if(!z3)return X();if(!D3)D3=z3.trace.getTracer("drizzle-orm",dQ);return bQ((G,Y)=>Y.startActiveSpan($,(J)=>{try{return X(J)}catch(W){throw J.setStatus({code:G.SpanStatusCode.ERROR,message:W instanceof Error?W.message:"Unknown error"}),W}finally{J.end()}}),z3,D3)}}});var p0;var $6=B(()=>{p0=Symbol.for("drizzle:ViewBaseConfig")});var P3,iQ,oQ,L3,C3,c4,nQ,TT,H0;var T2=B(()=>{z0();d4();P3=Symbol.for("drizzle:Schema"),iQ=Symbol.for("drizzle:Columns"),oQ=Symbol.for("drizzle:ExtraConfigColumns"),L3=Symbol.for("drizzle:OriginalName"),C3=Symbol.for("drizzle:BaseName"),c4=Symbol.for("drizzle:IsAlias"),nQ=Symbol.for("drizzle:ExtraConfigBuilder"),TT=Symbol.for("drizzle:IsDrizzleTable");H0=class H0{static[k]="Table";static Symbol={Name:n1,Schema:P3,OriginalName:L3,Columns:iQ,ExtraConfigColumns:oQ,BaseName:C3,IsAlias:c4,ExtraConfigBuilder:nQ};[n1];[L3];[P3];[iQ];[oQ];[C3];[c4]=!1;[TT]=!0;[nQ]=void 0;constructor($,X,G){this[n1]=this[L3]=$,this[P3]=X,this[C3]=G}}});function ET($){return $!==null&&$!==void 0&&typeof $.getSQL==="function"}function IT($){let X={sql:"",params:[]};for(let G of $)if(X.sql+=G.sql,X.params.push(...G.params),G.typings?.length){if(!X.typings)X.typings=[];X.typings.push(...G.typings)}return X}function m5($,...X){let G=[];if(X.length>0||$.length>0&&$[0]!=="")G.push(new m1($[0]));for(let[Y,J]of X.entries())G.push(J,new m1($[Y+1]));return new A0(G)}var m1,A0,n9,sQ,aQ,Ac,a9,s9,jT,W2;var X6=B(()=>{z0();uQ();e2();rQ();$6();t2();T2();m1=class m1{static[k]="StringChunk";value;constructor($){this.value=Array.isArray($)?$:[$]}getSQL(){return new A0([this])}};A0=class A0{constructor($){this.queryChunks=$;for(let X of $)if(X0(X,H0)){let G=X[H0.Symbol.Schema];this.usedTables.push(G===void 0?X[H0.Symbol.Name]:G+"."+X[H0.Symbol.Name])}}static[k]="SQL";decoder=sQ;shouldInlineParams=!1;usedTables=[];append($){return this.queryChunks.push(...$.queryChunks),this}toQuery($){return cQ.startActiveSpan("drizzle.buildSQL",(X)=>{let G=this.buildQueryFromSourceParams(this.queryChunks,$);return X?.setAttributes({"drizzle.query.text":G.sql,"drizzle.query.params":JSON.stringify(G.params)}),G})}buildQueryFromSourceParams($,X){let G=Object.assign({},X,{inlineParams:X.inlineParams||this.shouldInlineParams,paramStartIndex:X.paramStartIndex||{value:0}}),{casing:Y,escapeName:J,escapeParam:W,prepareTyping:H,inlineParams:U,paramStartIndex:M}=G;return IT($.map((F)=>{if(X0(F,m1))return{sql:F.value.join(""),params:[]};if(X0(F,n9))return{sql:J(F.value),params:[]};if(F===void 0)return{sql:"",params:[]};if(Array.isArray(F)){let Q=[new m1("(")];for(let[q,R]of F.entries())if(Q.push(R),q<F.length-1)Q.push(new m1(", "));return Q.push(new m1(")")),this.buildQueryFromSourceParams(Q,G)}if(X0(F,A0))return this.buildQueryFromSourceParams(F.queryChunks,{...G,inlineParams:U||F.shouldInlineParams});if(X0(F,H0)){let Q=F[H0.Symbol.Schema],q=F[H0.Symbol.Name];return{sql:Q===void 0||F[c4]?J(q):J(Q)+"."+J(q),params:[]}}if(X0(F,L1)){let Q=Y.getColumnCasing(F);if(X.invokeSource==="indexes")return{sql:J(Q),params:[]};let q=F.table[H0.Symbol.Schema];return{sql:F.table[c4]||q===void 0?J(F.table[H0.Symbol.Name])+"."+J(Q):J(q)+"."+J(F.table[H0.Symbol.Name])+"."+J(Q),params:[]}}if(X0(F,W2)){let Q=F[p0].schema,q=F[p0].name;return{sql:Q===void 0||F[p0].isAlias?J(q):J(Q)+"."+J(q),params:[]}}if(X0(F,a9)){if(X0(F.value,s9))return{sql:W(M.value++,F),params:[F],typings:["none"]};let Q=F.value===null?null:F.encoder.mapToDriverValue(F.value);if(X0(Q,A0))return this.buildQueryFromSourceParams([Q],G);if(U)return{sql:this.mapInlineParam(Q,G),params:[]};let q=["none"];if(H)q=[H(F.encoder)];return{sql:W(M.value++,Q),params:[Q],typings:q}}if(X0(F,s9))return{sql:W(M.value++,F),params:[F],typings:["none"]};if(X0(F,A0.Aliased)&&F.fieldAlias!==void 0)return{sql:J(F.fieldAlias),params:[]};if(X0(F,N1)){if(F._.isWith)return{sql:J(F._.alias),params:[]};return this.buildQueryFromSourceParams([new m1("("),F._.sql,new m1(") "),new n9(F._.alias)],G)}if(pQ(F)){if(F.schema)return{sql:J(F.schema)+"."+J(F.enumName),params:[]};return{sql:J(F.enumName),params:[]}}if(ET(F)){if(F.shouldOmitSQLParens?.())return this.buildQueryFromSourceParams([F.getSQL()],G);return this.buildQueryFromSourceParams([new m1("("),F.getSQL(),new m1(")")],G)}if(U)return{sql:this.mapInlineParam(F,G),params:[]};return{sql:W(M.value++,F),params:[F],typings:["none"]}}))}mapInlineParam($,{escapeString:X}){if($===null)return"null";if(typeof $==="number"||typeof $==="boolean")return $.toString();if(typeof $==="string")return X($);if(typeof $==="object"){let G=$.toString();if(G==="[object Object]")return X(JSON.stringify($));return X(G)}throw Error("Unexpected param value: "+$)}getSQL(){return this}as($){if($===void 0)return this;return new A0.Aliased(this,$)}mapWith($){return this.decoder=typeof $==="function"?{mapFromDriverValue:$}:$,this}inlineParams(){return this.shouldInlineParams=!0,this}if($){return $?this:void 0}};n9=class n9{constructor($){this.value=$}static[k]="Name";brand;getSQL(){return new A0([this])}};sQ={mapFromDriverValue:($)=>$},aQ={mapToDriverValue:($)=>$},Ac={...sQ,...aQ};a9=class a9{constructor($,X=aQ){this.value=$,this.encoder=X}static[k]="Param";brand;getSQL(){return new A0([this])}};(($)=>{function X(){return new A0([])}$.empty=X;function G(M){return new A0(M)}$.fromList=G;function Y(M){return new A0([new m1(M)])}$.raw=Y;function J(M,F){let Q=[];for(let[q,R]of M.entries()){if(q>0&&F!==void 0)Q.push(F);Q.push(R)}return new A0(Q)}$.join=J;function W(M){return new n9(M)}$.identifier=W;function H(M){return new s9(M)}$.placeholder=H;function U(M,F){return new a9(M,F)}$.param=U})(m5||(m5={}));(($)=>{class X{constructor(G,Y){this.sql=G,this.fieldAlias=Y}static[k]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new X(this.sql,this.fieldAlias)}}$.Aliased=X})(A0||(A0={}));s9=class s9{constructor($){this.name=$}static[k]="Placeholder";getSQL(){return new A0([this])}};jT=Symbol.for("drizzle:IsDrizzleView");W2=class W2{static[k]="View";[p0];[jT]=!0;constructor({name:$,schema:X,selectedFields:G,query:Y}){this[p0]={name:$,originalName:$,schema:X,selectedFields:G,query:Y,isExisting:!Y,isAlias:!1}}getSQL(){return new A0([this])}};L1.prototype.getSQL=function(){return new A0([this])};H0.prototype.getSQL=function(){return new A0([this])};N1.prototype.getSQL=function(){return new A0([this])}});function p5($,X){return Object.entries($).reduce((G,[Y,J])=>{if(typeof Y!=="string")return G;let W=X?[...X,Y]:[Y];if(X0(J,L1)||X0(J,A0)||X0(J,A0.Aliased))G.push({path:W,field:J});else if(X0(J,H0))G.push(...p5(J[H0.Symbol.Columns],W));else G.push(...p5(J,W));return G},[])}function T3($,X){let G=Object.keys($),Y=Object.keys(X);if(G.length!==Y.length)return!1;for(let[J,W]of G.entries())if(W!==Y[J])return!1;return!0}function tQ($,X){for(let G of X)for(let Y of Object.getOwnPropertyNames(G.prototype)){if(Y==="constructor")continue;Object.defineProperty($.prototype,Y,Object.getOwnPropertyDescriptor(G.prototype,Y)||Object.create(null))}}function r4($){return X0($,N1)?$._.alias:X0($,W2)?$[p0].name:X0($,A0)?void 0:$[H0.Symbol.IsAlias]?$[H0.Symbol.Name]:$[H0.Symbol.BaseName]}function H2($,X){return{name:typeof $==="string"&&$.length>0?$:"",config:typeof $==="object"?$:X}}var E3;var E2=B(()=>{t2();z0();X6();e2();T2();$6();E3=typeof TextDecoder>"u"?null:new TextDecoder});var eQ=()=>{};var $q=()=>{};var Xq=()=>{};var Gq=B(()=>{$q();Xq()});var Yq=()=>{};var i4,I3;var j3=B(()=>{t2();z0();T2();$6();i4=class i4{constructor($){this.table=$}static[k]="ColumnAliasProxyHandler";get($,X){if(X==="table")return this.table;return $[X]}};I3=class I3{constructor($,X){this.alias=$,this.replaceOriginalName=X}static[k]="TableAliasProxyHandler";get($,X){if(X===H0.Symbol.IsAlias)return!0;if(X===H0.Symbol.Name)return this.alias;if(this.replaceOriginalName&&X===H0.Symbol.OriginalName)return this.alias;if(X===p0)return{...$[p0],name:this.alias,isAlias:!0};if(X===H0.Symbol.Columns){let Y=$[H0.Symbol.Columns];if(!Y)return Y;let J={};return Object.keys(Y).map((W)=>{J[W]=new Proxy(Y[W],new i4(new Proxy($,this)))}),J}let G=$[X];if(X0(G,L1))return new Proxy(G,new i4(new Proxy($,this)));return G}}});var C1;var S3=B(()=>{j3();t2();z0();X6();e2();$6();C1=class C1{static[k]="SelectionProxyHandler";config;constructor($){this.config={...$}}get($,X){if(X==="_")return{...$._,selectedFields:new Proxy($._.selectedFields,this)};if(X===p0)return{...$[p0],selectedFields:new Proxy($[p0].selectedFields,this)};if(typeof X==="symbol")return $[X];let Y=(X0($,N1)?$._.selectedFields:X0($,W2)?$[p0].selectedFields:$)[X];if(X0(Y,A0.Aliased)){if(this.config.sqlAliasedBehavior==="sql"&&!Y.isSelectionField)return Y.sql;let J=Y.clone();return J.isSelectionField=!0,J}if(X0(Y,A0)){if(this.config.sqlBehavior==="sql")return Y;throw Error(`You tried to reference "${X}" field from a subquery, which is a raw SQL field, but it doesn't have an alias declared. Please add an alias to the field using ".as('alias')" method.`)}if(X0(Y,L1)){if(this.config.alias)return new Proxy(Y,new i4(new Proxy(Y.table,new I3(this.config.alias,this.config.replaceOriginalName??!1))));return Y}if(typeof Y!=="object"||Y===null)return Y;return new Proxy(Y,new C1(this.config))}}});var o4;var t9=B(()=>{z0();o4=class o4{static[k]="QueryPromise";[Symbol.toStringTag]="QueryPromise";catch($){return this.then(void 0,$)}finally($){return this.then((X)=>{return $?.(),X},(X)=>{throw $?.(),X})}then($,X){return this.execute().then($,X)}}});var k3,Jq;var v3=B(()=>{z0();d4();k3=class k3{static[k]="SQLiteForeignKeyBuilder";reference;_onUpdate;_onDelete;constructor($,X){if(this.reference=()=>{let{name:G,columns:Y,foreignColumns:J}=$();return{name:G,columns:Y,foreignTable:J[0].table,foreignColumns:J}},X)this._onUpdate=X.onUpdate,this._onDelete=X.onDelete}onUpdate($){return this._onUpdate=$,this}onDelete($){return this._onDelete=$,this}build($){return new Jq($,this)}};Jq=class Jq{constructor($,X){this.table=$,this.reference=X.reference,this.onUpdate=X._onUpdate,this.onDelete=X._onDelete}static[k]="SQLiteForeignKey";reference;onUpdate;onDelete;getName(){let{name:$,columns:X,foreignColumns:G}=this.reference(),Y=X.map((H)=>H.name),J=G.map((H)=>H.name),W=[this.table[n1],...Y,G[0].table[n1],...J];return $??`${W.join("_")}_fk`}}});function Wq($,X){return`${$[n1]}_${X.join("_")}_unique`}var x3=B(()=>{d4()});var o0,n0;var G6=B(()=>{_3();t2();z0();v3();x3();o0=class o0 extends w3{static[k]="SQLiteColumnBuilder";foreignKeyConfigs=[];references($,X={}){return this.foreignKeyConfigs.push({ref:$,actions:X}),this}unique($){return this.config.isUnique=!0,this.config.uniqueName=$,this}generatedAlwaysAs($,X){return this.config.generated={as:$,type:"always",mode:X?.mode??"virtual"},this}buildForeignKeys($,X){return this.foreignKeyConfigs.map(({ref:G,actions:Y})=>{return((J,W)=>{let H=new k3(()=>{let U=J();return{columns:[$],foreignColumns:[U]}});if(W.onUpdate)H.onUpdate(W.onUpdate);if(W.onDelete)H.onDelete(W.onDelete);return H.build(X)})(G,Y)})}};n0=class n0 extends L1{constructor($,X){if(!X.uniqueName)X.uniqueName=Wq($,[X.name]);super($,X);this.table=$}static[k]="SQLiteColumn"}});function qq($,X){let{name:G,config:Y}=H2($,X);if(Y?.mode==="json")return new Kq(G);if(Y?.mode==="bigint")return new Hq(G);return new Fq(G)}var Hq,Uq,Kq,Mq,Fq,Qq;var b3=B(()=>{z0();E2();G6();Hq=class Hq extends o0{static[k]="SQLiteBigIntBuilder";constructor($){super($,"bigint","SQLiteBigInt")}build($){return new Uq($,this.config)}};Uq=class Uq extends n0{static[k]="SQLiteBigInt";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let X=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return BigInt(X.toString("utf8"))}return BigInt(E3.decode($))}mapToDriverValue($){return Buffer.from($.toString())}};Kq=class Kq extends o0{static[k]="SQLiteBlobJsonBuilder";constructor($){super($,"json","SQLiteBlobJson")}build($){return new Mq($,this.config)}};Mq=class Mq extends n0{static[k]="SQLiteBlobJson";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let X=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return JSON.parse(X.toString("utf8"))}return JSON.parse(E3.decode($))}mapToDriverValue($){return Buffer.from(JSON.stringify($))}};Fq=class Fq extends o0{static[k]="SQLiteBlobBufferBuilder";constructor($){super($,"buffer","SQLiteBlobBuffer")}build($){return new Qq($,this.config)}};Qq=class Qq extends n0{static[k]="SQLiteBlobBuffer";mapFromDriverValue($){if(Buffer.isBuffer($))return $;return Buffer.from($)}getSQLType(){return"blob"}}});function e9($){return(X,G)=>{let{name:Y,config:J}=H2(X,G);return new Oq(Y,J,$)}}var Oq,Zq;var h3=B(()=>{z0();E2();G6();Oq=class Oq extends o0{static[k]="SQLiteCustomColumnBuilder";constructor($,X,G){super($,"custom","SQLiteCustomColumn");this.config.fieldConfig=X,this.config.customTypeParams=G}build($){return new Zq($,this.config)}};Zq=class Zq extends n0{static[k]="SQLiteCustomColumn";sqlName;mapTo;mapFrom;constructor($,X){super($,X);this.sqlName=X.customTypeParams.dataType(X.fieldConfig),this.mapTo=X.customTypeParams.toDriver,this.mapFrom=X.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue($){return typeof this.mapFrom==="function"?this.mapFrom($):$}mapToDriverValue($){return typeof this.mapTo==="function"?this.mapTo($):$}}});function V1($,X){let{name:G,config:Y}=H2($,X);if(Y?.mode==="timestamp"||Y?.mode==="timestamp_ms")return new Bq(G,Y.mode);if(Y?.mode==="boolean")return new Vq(G,Y.mode);return new Rq(G)}var $7,X7,Rq,Aq,Bq,Nq,Vq,wq;var y3=B(()=>{z0();X6();E2();G6();$7=class $7 extends o0{static[k]="SQLiteBaseIntegerBuilder";constructor($,X,G){super($,X,G);this.config.autoIncrement=!1}primaryKey($){if($?.autoIncrement)this.config.autoIncrement=!0;return this.config.hasDefault=!0,super.primaryKey()}};X7=class X7 extends n0{static[k]="SQLiteBaseInteger";autoIncrement=this.config.autoIncrement;getSQLType(){return"integer"}};Rq=class Rq extends $7{static[k]="SQLiteIntegerBuilder";constructor($){super($,"number","SQLiteInteger")}build($){return new Aq($,this.config)}};Aq=class Aq extends X7{static[k]="SQLiteInteger"};Bq=class Bq extends $7{static[k]="SQLiteTimestampBuilder";constructor($,X){super($,"date","SQLiteTimestamp");this.config.mode=X}defaultNow(){return this.default(m5`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build($){return new Nq($,this.config)}};Nq=class Nq extends X7{static[k]="SQLiteTimestamp";mode=this.config.mode;mapFromDriverValue($){if(this.config.mode==="timestamp")return new Date($*1000);return new Date($)}mapToDriverValue($){let X=$.getTime();if(this.config.mode==="timestamp")return Math.floor(X/1000);return X}};Vq=class Vq extends $7{static[k]="SQLiteBooleanBuilder";constructor($,X){super($,"boolean","SQLiteBoolean");this.config.mode=X}build($){return new wq($,this.config)}};wq=class wq extends X7{static[k]="SQLiteBoolean";mode=this.config.mode;mapFromDriverValue($){return Number($)===1}mapToDriverValue($){return $?1:0}}});function Tq($,X){let{name:G,config:Y}=H2($,X),J=Y?.mode;return J==="number"?new Dq(G):J==="bigint"?new Lq(G):new _q(G)}var _q,zq,Dq,Pq,Lq,Cq;var f3=B(()=>{z0();E2();G6();_q=class _q extends o0{static[k]="SQLiteNumericBuilder";constructor($){super($,"string","SQLiteNumeric")}build($){return new zq($,this.config)}};zq=class zq extends n0{static[k]="SQLiteNumeric";mapFromDriverValue($){if(typeof $==="string")return $;return String($)}getSQLType(){return"numeric"}};Dq=class Dq extends o0{static[k]="SQLiteNumericNumberBuilder";constructor($){super($,"number","SQLiteNumericNumber")}build($){return new Pq($,this.config)}};Pq=class Pq extends n0{static[k]="SQLiteNumericNumber";mapFromDriverValue($){if(typeof $==="number")return $;return Number($)}mapToDriverValue=String;getSQLType(){return"numeric"}};Lq=class Lq extends o0{static[k]="SQLiteNumericBigIntBuilder";constructor($){super($,"bigint","SQLiteNumericBigInt")}build($){return new Cq($,this.config)}};Cq=class Cq extends n0{static[k]="SQLiteNumericBigInt";mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return"numeric"}}});function jq($){return new Eq($??"")}var Eq,Iq;var g3=B(()=>{z0();G6();Eq=class Eq extends o0{static[k]="SQLiteRealBuilder";constructor($){super($,"number","SQLiteReal")}build($){return new Iq($,this.config)}};Iq=class Iq extends n0{static[k]="SQLiteReal";getSQLType(){return"real"}}});function J0($,X={}){let{name:G,config:Y}=H2($,X);if(Y.mode==="json")return new vq(G);return new Sq(G,Y)}var Sq,kq,vq,xq;var m3=B(()=>{z0();E2();G6();Sq=class Sq extends o0{static[k]="SQLiteTextBuilder";constructor($,X){super($,"string","SQLiteText");this.config.enumValues=X.enum,this.config.length=X.length}build($){return new kq($,this.config)}};kq=class kq extends n0{static[k]="SQLiteText";enumValues=this.config.enumValues;length=this.config.length;constructor($,X){super($,X)}getSQLType(){return`text${this.config.length?`(${this.config.length})`:""}`}};vq=class vq extends o0{static[k]="SQLiteTextJsonBuilder";constructor($){super($,"json","SQLiteTextJson")}build($){return new xq($,this.config)}};xq=class xq extends n0{static[k]="SQLiteTextJson";getSQLType(){return"text"}mapFromDriverValue($){return JSON.parse($)}mapToDriverValue($){return JSON.stringify($)}}});function bq(){return{blob:qq,customType:e9,integer:V1,numeric:Tq,real:jq,text:J0}}var hq=B(()=>{b3();h3();y3();f3();g3();m3()});function ST($,X,G,Y,J=$){let W=new U2($,Y,J),H=typeof X==="function"?X(bq()):X,U=Object.fromEntries(Object.entries(H).map(([F,Q])=>{let q=Q;q.setName(F);let R=q.build(W);return W[p3].push(...q.buildForeignKeys(R,W)),[F,R]})),M=Object.assign(W,U);if(M[H0.Symbol.Columns]=U,M[H0.Symbol.ExtraConfigColumns]=U,G)M[U2.Symbol.ExtraConfigBuilder]=G;return M}var p3,U2,K2=($,X,G)=>{return ST($,X,G)};var n4=B(()=>{z0();T2();hq();p3=Symbol.for("drizzle:SQLiteInlineForeignKeys");U2=class U2 extends H0{static[k]="SQLiteTable";static Symbol=Object.assign({},H0.Symbol,{InlineForeignKeys:p3});[H0.Symbol.Columns];[p3]=[];[H0.Symbol.ExtraConfigBuilder]=void 0}});var yq=()=>{};function s1($){return new fq($,!1)}var fq,gq,mq;var pq=B(()=>{z0();fq=class fq{constructor($,X){this.name=$,this.unique=X}static[k]="SQLiteIndexBuilderOn";on(...$){return new gq(this.name,$,this.unique)}};gq=class gq{static[k]="SQLiteIndexBuilder";config;constructor($,X,G){this.config={name:$,columns:X,unique:G,where:void 0}}where($){return this.config.where=$,this}build($){return new mq(this.config,$)}};mq=class mq{static[k]="SQLiteIndex";config;constructor($,X){this.config={...$,table:X}}}});function G7(...$){if($[0].columns)return new u3($[0].columns,$[0].name);return new u3($)}var u3,uq;var dq=B(()=>{z0();n4();u3=class u3{static[k]="SQLitePrimaryKeyBuilder";columns;name;constructor($,X){this.columns=$,this.name=X}build($){return new uq($,this.columns,this.name)}};uq=class uq{constructor($,X,G){this.table=$,this.columns=X,this.name=G}static[k]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[U2.Symbol.Name]}_${this.columns.map(($)=>$.name).join("_")}_pk`}}});function m6($){if(X0($,U2))return[`${$[H0.Symbol.BaseName]}`];if(X0($,N1))return $._.usedTables??[];if(X0($,A0))return $.usedTables??[];return[]}var Y7=B(()=>{z0();X6();e2();T2();n4()});var lq=()=>{};var cq=()=>{};var rq=()=>{};var iq=()=>{};var oq=B(()=>{rq();iq()});var nq=B(()=>{Gq();oq();X6()});var sq=B(()=>{b3();G6();h3();y3();f3();g3();m3()});var d3;var aq=B(()=>{z0();X6();d3=class d3 extends W2{static[k]="SQLiteViewBase"}});var tq=()=>{};var l3;var eq=B(()=>{z0();l3=class l3{static[k]="TypedQueryBuilder";getSelectedFields(){return this._.selectedFields}}});function J7($,X){return(G,Y,...J)=>{let W=[Y,...J].map((H)=>({type:$,isAll:X,rightSelect:H}));for(let H of W)if(!T3(G.getSelectedFields(),H.rightSelect.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return G.addSetOperators(W)}}var $O,XO,kT=()=>({union:vT,unionAll:xT,intersect:bT,except:hT}),vT,xT,bT,hT;var GO=B(()=>{z0();eq();t9();S3();X6();e2();T2();E2();$6();Y7();$O=class $O extends l3{static[k]="SQLiteSelectQueryBuilder";_;config;joinsNotNullableMap;tableName;isPartialSelect;session;dialect;cacheConfig=void 0;usedTables=new Set;constructor({table:$,fields:X,isPartialSelect:G,session:Y,dialect:J,withList:W,distinct:H}){super();this.config={withList:W,table:$,fields:{...X},distinct:H,setOperators:[]},this.isPartialSelect=G,this.session=Y,this.dialect=J,this._={selectedFields:X,config:this.config},this.tableName=r4($),this.joinsNotNullableMap=typeof this.tableName==="string"?{[this.tableName]:!0}:{};for(let U of m6($))this.usedTables.add(U)}getUsedTables(){return[...this.usedTables]}createJoin($){return(X,G)=>{let Y=this.tableName,J=r4(X);for(let W of m6(X))this.usedTables.add(W);if(typeof J==="string"&&this.config.joins?.some((W)=>W.alias===J))throw Error(`Alias "${J}" is already used in this query`);if(!this.isPartialSelect){if(Object.keys(this.joinsNotNullableMap).length===1&&typeof Y==="string")this.config.fields={[Y]:this.config.fields};if(typeof J==="string"&&!X0(X,A0)){let W=X0(X,N1)?X._.selectedFields:X0(X,W2)?X[p0].selectedFields:X[H0.Symbol.Columns];this.config.fields[J]=W}}if(typeof G==="function")G=G(new Proxy(this.config.fields,new C1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})));if(!this.config.joins)this.config.joins=[];if(this.config.joins.push({on:G,table:X,joinType:$,alias:J}),typeof J==="string")switch($){case"left":{this.joinsNotNullableMap[J]=!1;break}case"right":{this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([W])=>[W,!1])),this.joinsNotNullableMap[J]=!0;break}case"cross":case"inner":{this.joinsNotNullableMap[J]=!0;break}case"full":{this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([W])=>[W,!1])),this.joinsNotNullableMap[J]=!1;break}}return this}}leftJoin=this.createJoin("left");rightJoin=this.createJoin("right");innerJoin=this.createJoin("inner");fullJoin=this.createJoin("full");crossJoin=this.createJoin("cross");createSetOperator($,X){return(G)=>{let Y=typeof G==="function"?G(kT()):G;if(!T3(this.getSelectedFields(),Y.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return this.config.setOperators.push({type:$,isAll:X,rightSelect:Y}),this}}union=this.createSetOperator("union",!1);unionAll=this.createSetOperator("union",!0);intersect=this.createSetOperator("intersect",!1);except=this.createSetOperator("except",!1);addSetOperators($){return this.config.setOperators.push(...$),this}where($){if(typeof $==="function")$=$(new Proxy(this.config.fields,new C1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})));return this.config.where=$,this}having($){if(typeof $==="function")$=$(new Proxy(this.config.fields,new C1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})));return this.config.having=$,this}groupBy(...$){if(typeof $[0]==="function"){let X=$[0](new Proxy(this.config.fields,new C1({sqlAliasedBehavior:"alias",sqlBehavior:"sql"})));this.config.groupBy=Array.isArray(X)?X:[X]}else this.config.groupBy=$;return this}orderBy(...$){if(typeof $[0]==="function"){let X=$[0](new Proxy(this.config.fields,new C1({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),G=Array.isArray(X)?X:[X];if(this.config.setOperators.length>0)this.config.setOperators.at(-1).orderBy=G;else this.config.orderBy=G}else{let X=$;if(this.config.setOperators.length>0)this.config.setOperators.at(-1).orderBy=X;else this.config.orderBy=X}return this}limit($){if(this.config.setOperators.length>0)this.config.setOperators.at(-1).limit=$;else this.config.limit=$;return this}offset($){if(this.config.setOperators.length>0)this.config.setOperators.at(-1).offset=$;else this.config.offset=$;return this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:$,...X}=this.dialect.sqlToQuery(this.getSQL());return X}as($){let X=[];if(X.push(...m6(this.config.table)),this.config.joins)for(let G of this.config.joins)X.push(...m6(G.table));return new Proxy(new N1(this.getSQL(),this.config.fields,$,!1,[...new Set(X)]),new C1({alias:$,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new C1({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}};XO=class XO extends $O{static[k]="SQLiteSelect";_prepare($=!0){if(!this.session)throw Error("Cannot execute a query on a query builder. Please use a database instance instead.");let X=p5(this.config.fields),G=this.session[$?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),X,"all",!0,void 0,{type:"select",tables:[...this.usedTables]},this.cacheConfig);return G.joinsNotNullableMap=this.joinsNotNullableMap,G}$withCache($){return this.cacheConfig=$===void 0?{config:{},enable:!0,autoInvalidate:!0}:$===!1?{enable:!1}:{enable:!0,autoInvalidate:!0,...$},this}prepare(){return this._prepare(!1)}run=($)=>{return this._prepare().run($)};all=($)=>{return this._prepare().all($)};get=($)=>{return this._prepare().get($)};values=($)=>{return this._prepare().values($)};async execute(){return this.all()}};tQ(XO,[o4]);vT=J7("union",!1),xT=J7("union",!0),bT=J7("intersect",!1),hT=J7("except",!1)});var YO=()=>{};var JO=()=>{};var yT;var WO=B(()=>{z0();t9();S3();n4();e2();T2();E2();$6();Y7();aq();yT=class yT extends o4{constructor($,X,G,Y,J){super();this.session=G,this.dialect=Y,this.config={set:X,table:$,withList:J,joins:[]}}static[k]="SQLiteUpdate";config;from($){return this.config.from=$,this}createJoin($){return(X,G)=>{let Y=r4(X);if(typeof Y==="string"&&this.config.joins.some((J)=>J.alias===Y))throw Error(`Alias "${Y}" is already used in this query`);if(typeof G==="function"){let J=this.config.from?X0(X,U2)?X[H0.Symbol.Columns]:X0(X,N1)?X._.selectedFields:X0(X,d3)?X[p0].selectedFields:void 0:void 0;G=G(new Proxy(this.config.table[H0.Symbol.Columns],new C1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})),J&&new Proxy(J,new C1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))}return this.config.joins.push({on:G,table:X,joinType:$,alias:Y}),this}}leftJoin=this.createJoin("left");rightJoin=this.createJoin("right");innerJoin=this.createJoin("inner");fullJoin=this.createJoin("full");where($){return this.config.where=$,this}orderBy(...$){if(typeof $[0]==="function"){let X=$[0](new Proxy(this.config.table[H0.Symbol.Columns],new C1({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),G=Array.isArray(X)?X:[X];this.config.orderBy=G}else{let X=$;this.config.orderBy=X}return this}limit($){return this.config.limit=$,this}returning($=this.config.table[U2.Symbol.Columns]){return this.config.returning=p5($),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:$,...X}=this.dialect.sqlToQuery(this.getSQL());return X}_prepare($=!0){return this.session[$?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run",!0,void 0,{type:"insert",tables:m6(this.config.table)})}prepare(){return this._prepare(!1)}run=($)=>{return this._prepare().run($)};all=($)=>{return this._prepare().all($)};get=($)=>{return this._prepare().get($)};values=($)=>{return this._prepare().values($)};async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}}});var HO=B(()=>{lq();JO();YO();GO();WO()});var UO=()=>{};var KO=()=>{};var MO=()=>{};var FO=()=>{};var u5=B(()=>{KO();yq();sq();UO();tq();v3();pq();dq();HO();MO();n4();x3();Y7();FO()});var QO;var c3=B(()=>{u5();S();QO=K2("job_queue",{id:J0("id").primaryKey().$defaultFn(()=>z2()),type:J0("type").notNull(),data:J0("data").notNull(),result:J0("result",{mode:"json"}),source:J0("source"),metadata:J0("metadata",{mode:"json"}).$type().notNull(),status:J0("status",{enum:["pending","processing","completed","failed"]}).notNull().default("pending"),priority:V1("priority").notNull().default(0),retryCount:V1("retryCount").notNull().default(0),maxRetries:V1("maxRetries").notNull().default(3),lastError:J0("lastError"),createdAt:V1("createdAt").notNull().$defaultFn(()=>Date.now()),scheduledFor:V1("scheduledFor").notNull().$defaultFn(()=>Date.now()),startedAt:V1("startedAt"),completedAt:V1("completedAt")},($)=>({queueReadyIdx:s1("idx_job_queue_ready").on($.status,$.priority,$.scheduledFor),jobTypeIdx:s1("idx_job_queue_type").on($.type,$.status),jobSourceIdx:s1("idx_job_queue_source").on($.source)}))});import{createClient as Lo}from"@libsql/client";var qO=B(()=>{c3()});var OO=B(()=>{j3();_3();t2();z0();cq();eQ();t9();Yq();nq();e2();T2();E2();$6()});var ZO=B(()=>{c3();a2()});var RO=B(()=>{a2()});var AO=B(()=>{S();a2();qO();ZO();RO()});var BO=B(()=>{S();a2();a2()});var NO=B(()=>{a2()});var VO=B(()=>{S()});class a4{logger;schema;jobTypeName;constructor($,X){this.logger=$,this.schema=X.schema,this.jobTypeName=X.jobTypeName}validateAndParse($){if(!this.schema)throw Error(`${this.jobTypeName}: No schema provided. Override validateAndParse() or provide a schema.`);try{let X=this.schema.parse($);return this.logger.debug(`${this.jobTypeName} job data validation successful`,{data:this.summarizeDataForLog(X)}),X}catch(X){return this.logger.warn(`Invalid ${this.jobTypeName} job data`,{data:$,validationError:X instanceof K.ZodError?X.issues:X}),null}}async onError($,X,G,Y){this.logger.error(`${this.jobTypeName} job error handler triggered`,{jobId:G,errorMessage:$.message,errorStack:$.stack,data:this.summarizeDataForLog(X)})}async reportProgress($,X){await $.report({progress:X.progress,total:X.total??100,message:X.message})}summarizeDataForLog($){return $}}var wO=B(()=>{S()});var fT;var _O=B(()=>{o9();S();fT=K.object({id:K.string(),type:K.string(),data:K.string(),status:K.enum(["pending","processing","completed","failed"]),source:K.string().nullable(),priority:K.number(),retryCount:K.number(),maxRetries:K.number(),lastError:K.string().nullable(),createdAt:K.number(),scheduledFor:K.number(),startedAt:K.number().nullable(),completedAt:K.number().nullable(),metadata:u4,result:K.unknown().nullable().optional()})});function r3($,X,G){return async(Y)=>{let{type:J,data:W,toolContext:H=null,options:U}=Y,{metadata:M,...F}=U??{},Q={source:X,...U?.rootJobId&&{rootJobId:U.rootJobId},...F,metadata:{operationType:"data_processing",pluginId:X,...H&&{interfaceType:H.interfaceType,channelId:H.channelId},...M}},q=G&&!J.includes(":")?`${X}:${J}`:J;return $.enqueue({type:q,data:W,options:Q})}}function i3($,X){return async(G,Y)=>{let J=z2(),W=G.map((U)=>({...U,type:U.type.includes(":")?U.type:`${X}:${U.type}`})),H={...Y,source:X,rootJobId:J,metadata:{...Y?.metadata,operationType:"batch_processing",pluginId:X}};return await $.enqueueBatch(W,H,J,X),J}}function o3($,X){return(G,Y)=>{let J=G.includes(":")?G:`${X}:${G}`;$.registerHandler(J,Y,X)}}var zO=B(()=>{S()});var t4=B(()=>{AO();BO();NO();VO();wO();_O();a2();o9();zO()});function DO($){return gT.safeParse($).success}var gT;var n3=B(()=>{S();gT=K.object({name:K.string(),schema:K.custom(($)=>$ instanceof K.ZodType)})});function mT($){if(!$)return;return{status:$.status,message:$.message,lastCheck:$.lastCheck?.toISOString(),details:$.details}}function PO($){return{model:$.model,version:$.version,uptime:$.uptime,entities:$.entities,entityCounts:$.entityCounts,embeddings:$.embeddings,ai:$.ai,daemons:$.daemons.map((X)=>({name:X.name,pluginId:X.pluginId,status:X.status,health:mT(X.health)})),endpoints:$.endpoints,interactions:$.interactions}}var e4;var s3=B(()=>{P1();e4=K.record(K.unknown())});var pT,a3,uT;var t3=B(()=>{P1();s3();pT=K.object({id:K.string(),sessionId:K.string(),interfaceType:K.string(),channelId:K.string(),channelName:K.string().optional(),startedAt:K.string(),lastActiveAt:K.string(),createdAt:K.string(),updatedAt:K.string(),metadata:e4}),a3=K.enum(["user","assistant","system"]),uT=K.object({id:K.string(),conversationId:K.string(),role:a3,content:K.string(),timestamp:K.string(),metadata:e4})});function LO($){if(!$)return{};try{let X=JSON.parse($);if(X&&typeof X==="object"&&!Array.isArray(X))return X}catch{}return{}}function dT($){let X=a3.safeParse($);return X.success?X.data:"user"}function W7($){let X=LO($.metadata),G=typeof X.channelName==="string"?X.channelName:void 0;return{id:$.id,sessionId:$.sessionId,interfaceType:$.interfaceType,channelId:$.channelId,channelName:G,startedAt:$.started,lastActiveAt:$.lastActive,createdAt:$.created,updatedAt:$.updated,metadata:X}}function CO($){return{id:$.id,conversationId:$.conversationId,role:dT($.role),content:$.content,timestamp:$.timestamp,metadata:LO($.metadata)}}var TO=B(()=>{t3()});var e3,$G;var XG=B(()=>{P1();e3=K.object({name:K.string(),role:K.string(),purpose:K.string(),values:K.array(K.string())}),$G=K.object({name:K.string(),kind:K.enum(["professional","team","collective"]),organization:K.string().optional(),description:K.string().optional(),avatar:K.string().optional(),website:K.string().optional(),email:K.string().optional(),socialLinks:K.array(K.object({platform:K.enum(["github","instagram","linkedin","email","website"]),url:K.string(),label:K.string().optional()})).optional()})});function EO($){return e3.parse($)}function IO($){return $G.parse($)}var jO=B(()=>{XG()});function SO($){return async()=>{return PO(await $.getAppInfo())}}function kO($,X){return{get:()=>EO($.getIdentity()),getProfile:()=>IO($.getProfile()),getAppInfo:X}}function vO($,X,G){let Y=$.getMessageBus();return{send:async(W)=>{return Y.send({...W,sender:X})},subscribe:(W,H)=>{if(DO(W)){let U=W,M=H,F=async(Q)=>{let q=U.schema.safeParse(Q.payload);if(!q.success)return G.warn(`Invalid payload for channel ${U.name}`,{error:q.error.message}),{noop:!0};let{payload:R,...O}=Q;return M(q.data,O)};return Y.subscribe(U.name,F)}return Y.subscribe(W,H)}}}function xO($,X){let G=$.getJobQueueService();return{...$.jobs,enqueue:r3(G,X,!0),enqueueBatch:i3($.jobs,X),registerHandler:o3(G,X)}}function bO($){return{get:async(X)=>{let Y=await $.getConversationService().getConversation(X);return Y?W7(Y):null},search:async(X)=>{return(await $.getConversationService().searchConversations(X)).map(W7)},list:async(X)=>{return(await $.getConversationService().listConversations(X)).map(W7)},getMessages:async(X,G)=>{return(await $.getConversationService().getMessages(X,G)).map(CO)},countMessages:async(X)=>{return $.getConversationService().countMessages(X)}}}function hO($,X){return{registerHandler:(G,Y)=>{$.registerEvalHandler(X,G,Y)}}}function yO($){return{register:(X,G)=>{$.getInsightsRegistry().register(X,G)}}}function fO($,X){return{register:(G)=>{$.registerEndpoint({...G,pluginId:X})}}}function gO($,X){return{register:(G)=>{$.registerInteraction({...G,pluginId:X})}}}var mO=B(()=>{t4();n3();TO();jO()});function d5($,X,G){let Y=$.getEntityService(),J=$.getLogger().child(X),W=$.getDomain(),H=$.getLocalSiteUrl(),U=$.shouldPreferLocalUrls(),M=SO($);return{pluginId:X,logger:J,entityService:Y,identity:kO($,M),appInfo:M,domain:W,siteUrl:W?`https://${W}`:void 0,localSiteUrl:H,previewUrl:W?`https://${B3(W)}`:void 0,preferLocalUrls:U,entityDisplay:G?.entityDisplay,spaces:$.getSpaces(),messaging:vO($,X,J),jobs:xO($,X),conversations:bO($),dataDir:$.getDataDir(),eval:hO($,X),insights:yO($),endpoints:fO($,X),interactions:gO($,X)}}var $8=B(()=>{g5();mO()});var H7;var X8=B(()=>{OO();u5();H7=K2("entities",{id:J0("id").notNull(),entityType:J0("entityType").notNull(),content:J0("content").notNull(),contentHash:J0("contentHash").notNull(),metadata:J0("metadata",{mode:"json"}).$type().notNull().default(m5`'{}'`),created:V1("created").notNull().$defaultFn(()=>Date.now()),updated:V1("updated").notNull().$defaultFn(()=>Date.now())},($)=>{return{pk:G7({columns:[$.id,$.entityType]})}})});import{createClient as Qs}from"@libsql/client";var pO=B(()=>{X8()});var uO;var dO=B(()=>{u5();uO=e9({dataType(){return"F32_BLOB(1536)"},toDriver($){return Buffer.from($.buffer)},fromDriver($){return new Float32Array($.buffer,$.byteOffset,$.byteLength/4)}})});var U7;var G8=B(()=>{u5();dO();U7=K2("embeddings",{entityId:J0("entity_id").notNull(),entityType:J0("entity_type").notNull(),embedding:uO("embedding").notNull(),contentHash:J0("content_hash").notNull()},($)=>{return{pk:G7({columns:[$.entityId,$.entityType]})}})});import{createClient as ws}from"@libsql/client";var GG=B(()=>{G8()});var Ls;var YG=B(()=>{S();Ls=K.object({id:K.string().min(1,"Entity ID is required"),entityType:K.string().min(1,"Entity type is required"),contentHash:K.string().min(1,"Content hash is required"),operation:K.enum(["create","update"])})});var Is;var lO=B(()=>{S();X8();Is=K.object({limit:K.number().int().positive().optional().default(20),offset:K.number().int().min(0).optional().default(0),types:K.array(K.string()).optional().default([]),excludeTypes:K.array(K.string()).optional().default([]),weight:K.record(K.string(),K.number()).optional()})});var cO=B(()=>{S()});var lT,gs;var rO=B(()=>{X8();G8();S();lT=K.object({field:K.string(),direction:K.enum(["asc","desc"]),nullsFirst:K.boolean().optional()}),gs=K.object({limit:K.number().int().positive().optional(),offset:K.number().int().min(0).optional().default(0),sortFields:K.array(lT).optional(),filter:K.object({metadata:K.record(K.string(),K.unknown()).optional()}).optional(),publishedOnly:K.boolean().optional()})});var iO=()=>{};var oO=B(()=>{S();iO();X8();G8()});var nO=B(()=>{S()});var sO=B(()=>{pO();GG();G8();S();YG();lO();cO();rO();oO();nO()});function Y6($,X){if(Object.keys(X).length===0)return $;let G=Object.fromEntries(Object.entries(X).filter(([,Y])=>Y!==void 0));return K7.default.stringify($,G)}function JG($){if($ instanceof Date)return $.toISOString();if(Array.isArray($))return $.map(JG);if($!==null&&typeof $==="object"){let X={};for(let[G,Y]of Object.entries($))X[G]=JG(Y);return X}return $}function b0($,X){let{content:G,data:Y}=K7.default($),J=JG(Y);return{content:G.trim(),metadata:X.parse(J)}}function WG($){if(Object.keys($).length===0)return"";let G=K7.default.stringify("",$).match(/^---\n[\s\S]*?\n---/);return G?G[0]:""}var K7;var M7=B(()=>{K7=k8(L$(),1)});var aO=B(()=>{S();M7()});class X1{entityType;schema;frontmatterSchema;isSingleton;hasBody;supportsCoverImage;fmSchema;bodyFormatter;constructor($){if(this.entityType=$.entityType,this.schema=$.schema,this.frontmatterSchema=$.frontmatterSchema,this.fmSchema=$.frontmatterSchema,this.bodyFormatter=$.bodyFormatter??eT,$.isSingleton!==void 0)this.isSingleton=$.isSingleton;if($.hasBody!==void 0)this.hasBody=$.hasBody;if($.supportsCoverImage!==void 0)this.supportsCoverImage=$.supportsCoverImage}toMarkdown($){let X=this.renderBody($),Y={...this.readExistingFrontmatter($.content)},J=Object.keys(this.frontmatterSchema.shape);for(let[W,H]of Object.entries($.metadata))if(J.includes(W))Y[W]=H;return this.buildMarkdown(X,Y)}renderBody($){return this.extractBody($.content)}readExistingFrontmatter($){try{return b0($,K.record(K.unknown())).metadata}catch{return{}}}extractMetadata($){return $.metadata}parseFrontMatter($,X){return b0($,X).metadata}getBodyTemplate(){return this.bodyFormatter.generateBodyTemplate()}generateFrontMatter($){let X=$.metadata;return WG(X)}extractBody($){try{return b0($,K.record(K.unknown())).content}catch{return $}}parseFrontmatter($){return b0($,this.fmSchema).metadata}buildMarkdown($,X){return Y6($,X)}}var eT;var HG=B(()=>{S();M7();eT={generateBodyTemplate:()=>""}});var G1;var UG=B(()=>{S();G1=K.object({id:K.string(),entityType:K.string(),content:K.string(),created:K.string().datetime(),updated:K.string().datetime(),metadata:K.record(K.string(),K.unknown()),contentHash:K.string()})});var tO=B(()=>{S();UG();HG()});var eO=B(()=>{HG();tO()});class l5{cache=null;cacheParseError=null;logger;entityService;entityType;defaultBody;constructor($,X,G,Y){this.entityService=$,this.logger=X.child(this.constructor.name),this.entityType=G,this.defaultBody=Y}async initialize(){if(await this.load())return;if(await this.load())return;this.logger.info(`No ${this.entityType} found, creating default ${this.entityType}`);try{let $=this.createContent(this.defaultBody);await this.entityService.createEntity({entity:{id:this.entityType,entityType:this.entityType,content:$,metadata:{}}}),await this.load(),this.logger.info(`Default ${this.entityType} created successfully`)}catch($){this.logger.error(`Failed to create default ${this.entityType}`,{error:$})}}get(){if(this.cache&&!this.cacheParseError)return this.parseBody(this.cache.content);return this.defaultBody}getContent(){if(this.cache)return this.cache.content;return this.createContent(this.defaultBody)}async refreshCache(){await this.load()}async load(){try{let $=await this.entityService.getEntity({entityType:this.entityType,id:this.entityType});if(this.cache=$,this.cacheParseError=null,$)try{return this.parseBody($.content),this.logger.debug(`${this.entityType} loaded`),!0}catch(X){return this.cacheParseError=X instanceof Error?X:Error(String(X)),this.logger.error(`Failed to parse ${this.entityType} \u2014 using default. Fix the entity content to clear this error.`,{error:this.cacheParseError.message}),!0}else this.logger.debug(`No ${this.entityType} found in database`)}catch($){this.logger.warn(`Failed to load ${this.entityType}`,{error:$}),this.cache=null,this.cacheParseError=null}return!1}}function KG($,X,G){let Y=Math.max(1,Math.ceil($/G));return{currentPage:X,totalPages:Y,totalItems:$,pageSize:G,hasNextPage:X<Y,hasPrevPage:X>1}}var F7;var $Z=B(()=>{S();F7=K.object({currentPage:K.number(),totalPages:K.number(),totalItems:K.number(),pageSize:K.number(),hasNextPage:K.boolean(),hasPrevPage:K.boolean()})});var T1=B(()=>{sO();YG();aO();eO();GG();UG();M7();$Z()});function XE($){return $.replace(/:/g,"-")}function GE($){return $.split(/[:.-]/).map((X)=>X.charAt(0).toUpperCase()+X.slice(1)).join(" ")}async function FG($,X,G){let Y=MG.get(X);if(Y!==void 0)return Y;let J=XE(X),W;try{W=await $.getEntity({entityType:"prompt",id:J})}catch{return G}if(W?.content){let H=b0(W.content,K.record(K.unknown())).content;return MG.set(X,H),H}try{let H=GE(X),U=Y6(G,{title:H,target:X});await $.createEntity({entity:{id:J,entityType:"prompt",content:U,metadata:{title:H,target:X,slug:J}}})}catch{}return MG.set(X,G),G}var MG;var QG=B(()=>{T1();S();MG=new Map});function Q7($){let X=$.getEntityService(),G=$.getEntityRegistry(),Y=$.getDataSourceRegistry();return{register:(J,W,H,U)=>{G.registerEntityType(J,W,H,U)},getAdapter:(J)=>{try{return G.getAdapter(J)}catch{return}},extendFrontmatterSchema:(J,W)=>{G.extendFrontmatterSchema(J,W)},getEffectiveFrontmatterSchema:(J)=>{return G.getEffectiveFrontmatterSchema(J)},registerCreateInterceptor:(J,W)=>{G.registerCreateInterceptor(J,W)},update:async(J)=>{return X.updateEntity({entity:J})},registerDataSource:(J)=>{Y.register(J)}}}function q7($){return{resolve:(X,G)=>{return FG($,X,G)}}}var qG=B(()=>{QG()});function OG($,X,G){let Y=d5($,X,G),J=$.getEntityService(),W=$.getRenderService(),H=$.getContentService();return{...Y,entityService:J,entities:Q7($),templates:{register:(U,M)=>{$.registerTemplates(U,M??X)},format:(U,M)=>{return H.formatContent(U,M,{pluginId:X})},parse:(U,M)=>{return H.parseContent(U,M,X)},resolve:async(U,M)=>{return await H.resolveContent(U,M,X)},getCapabilities:(U)=>{let M=U.includes(":")?U:`${X}:${U}`,F=$.getTemplate(M);if(!F)return null;let Q=g4.getCapabilities(F);return{canGenerate:Q.canGenerate,canFetch:Q.canFetch,canRender:Q.canRender,isStaticOnly:Q.isStaticOnly}}},views:{get:(U)=>{return W.get(U)??void 0},list:()=>{return W.list()},hasRenderer:(U)=>{return W.hasRenderer(U,"web")},getRenderer:(U)=>{return W.getRenderer(U,"web")},validate:(U,M)=>{return W.validate(U,M)}},prompts:q7(J),registerInstructions:(U)=>{$.registerInstructions(X,U)}}}var ZG=B(()=>{$8();qG();g1()});var c5;var XZ=B(()=>{d9();ZG();c5=class c5 extends f5{type="service";getApiRoutes(){return[]}getWebRoutes(){return[]}async register($,X){let G=OG($,this.id,X);return this.context=G,this.setupMessageHandlers(G),await this.onRegister(G),this.getCapabilities()}get entityService(){return this.getContext().entityService}registerEntityType($,X,G,Y){this.getContext().entities.register($,X,G,Y)}async enqueueJob($){return this.getContext().jobs.enqueue($)}async enqueueBatch($,X){return this.getContext().jobs.enqueueBatch($,X)}async registerEntityTypes($){}async registerJobHandlers($){}async onRegister($){await this.registerEntityTypes($),await this.registerJobHandlers($)}}});function RG($,X,G){let Y=d5($,X,G),J=$.getEntityService();return{...Y,entityService:J,entities:Q7($),ai:{query:(W,H)=>$.query(W,H),generate:async(W)=>{return $.generateContent(W)},generateObject:async(W,H)=>{return $.generateObject(W,H)},generateImage:async(W,H)=>{return $.generateImage(W,H)},canGenerateImages:()=>{return $.canGenerateImages()}},prompts:q7(J)}}var AG=B(()=>{$8();qG()});function BG($,X,G){let Y=!1,J=!1;if($.jobs.registerHandler(G.job.type,G.job.handler),G.initialSync){let W=G.initialSync;$.messaging.subscribe("sync:initial:completed",async()=>{if(Y)return{success:!0};if(Y=!0,!(await W.shouldEnqueue?.()??!0))return X.info("Skipping derived entity projection initial sync",{projectionId:G.id,targetType:G.targetType}),{success:!0};return J=await GZ($,X,G,W.jobData,JE(W.jobOptions),"initial-sync"),{success:!0}})}if(G.sourceChange){let W=G.sourceChange,H=new Set(W.sourceTypes),U=W.events??["entity:created","entity:updated"],M=async(F)=>{if(W.requireInitialSync&&!Y)return{success:!0};let Q=F.payload,q=YE(W,Q);if(!q||!H.has("*")&&!H.has(q))return{success:!0};if(!(await W.shouldEnqueue?.(Q)??!0))return{success:!0};let O=await W.jobData(Q);if(!O)return{success:!0};return await GZ($,X,G,O,W.jobOptions?.(Q),"source-change"),{success:!0}};for(let F of U)$.messaging.subscribe(F,M)}return{hasObservedInitialSync:()=>Y,hasQueuedInitialSync:()=>J}}function YE($,X){if($.sourceType)return $.sourceType;if($.sourceKind&&$.sourceKind!=="entity")return $.sourceKind;return X.entityType}async function GZ($,X,G,Y,J,W){try{return await $.jobs.enqueue({type:G.job.type,data:Y,...J?{options:J}:{}}),X.info("Queued derived entity projection",{projectionId:G.id,targetType:G.targetType,reason:W}),!0}catch(H){return X.error("Failed to queue derived entity projection",{projectionId:G.id,targetType:G.targetType,reason:W,error:f0(H)}),!1}}function JE($){return typeof $==="function"?$():$}var NG=B(()=>{S()});var WE,J6;var YZ=B(()=>{d9();S();AG();NG();WE=K.object({});J6=class J6 extends f5{type="entity";derivedEntityProjectionControllers=new Map;constructor($,X,G={},Y=WE){super($,X,G,Y)}async register($,X){let G=RG($,this.id,X);if(this.context=G,this.setupMessageHandlers(G),G.entities.register(this.entityType,this.schema,this.adapter,this.getEntityTypeConfig()),this.interceptCreate!==J6.prototype.interceptCreate)G.entities.registerCreateInterceptor(this.entityType,(M,F)=>this.interceptCreate(M,F,G));let Y=this.createGenerationHandler(G);if(Y)G.jobs.registerHandler(`${this.entityType}:generation`,Y);let J=this.getTemplates();if(J&&Object.keys(J).length>0)$.registerTemplates(J,this.id);let W=this.getDataSources();for(let M of W)G.entities.registerDataSource(M);let H=this.getDerivedEntityProjections(G);for(let M of H){let F=BG(G,this.logger,M);this.derivedEntityProjectionControllers.set(M.id,F)}await this.onRegister(this.context);let U=await this.getInstructions();return{tools:[],resources:[],...U&&{instructions:U}}}async interceptCreate($,X,G){return{kind:"continue",input:$}}createGenerationHandler($){return null}getTemplates(){return null}getDataSources(){return[]}getEntityTypeConfig(){return}getDerivedEntityProjections($){return[]}getDerivedEntityProjectionController($){return this.derivedEntityProjectionControllers.get($)}}});var VG=B(()=>{$8()});var wG=B(()=>{d9();VG()});var JZ=()=>{};class r5{logger;constructor($){this.logger=$}buildDetailResult($,X){throw Error(`${this.id}: buildDetailResult() not implemented. Override this method or override fetch() to handle detail views.`)}parseQuery($){let X=Z7.parse($);return{entityType:X.entityType??this.config.entityType,query:X.query??{}}}async fetch($,X,G){let Y=this.parseQuery($),J=G.entityService;if(Y.query.id){let H=await this.fetchDetail(Y.query.id,J);return X.parse(this.buildDetailResult(H.item,H.navigation))}let W=await this.fetchList(Y.query,J);return X.parse(this.buildListResult(W.items,W.pagination,Y.query))}async fetchDetail($,X){let G=await this.lookupEntity($,X),Y=this.transformEntity(G),J=null;if(this.config.enableNavigation)J=await this.resolveNavigation(G,X);return{item:Y,navigation:J}}async fetchList($,X,G){let Y=$.page??1,J=$.pageSize??$.limit??this.config.defaultLimit??100,W=(Y-1)*J,H=$.page!==void 0,[U,M]=await Promise.all([X.listEntities({entityType:this.config.entityType,options:{limit:J,offset:W,sortFields:this.config.defaultSort,...G}}),H?X.countEntities({entityType:this.config.entityType,options:G?.filter?{filter:G.filter}:void 0}):Promise.resolve(0)]),F=U.map((q)=>this.transformEntity(q)),Q=H?KG(M,Y,J):null;return{items:F,pagination:Q}}async resolveNavigation($,X,G){let Y=this.config.navigationLimit??1000,J=await X.listEntities({entityType:this.config.entityType,options:{limit:Y,sortFields:G??this.config.defaultSort}}),W=J.findIndex((Q)=>Q.id===$.id),H=W>0?J[W-1]:void 0,U=W<J.length-1?J[W+1]:void 0,M=H?this.transformEntity(H):null,F=U?this.transformEntity(U):null;return{prev:M,next:F}}async lookupEntity($,X){if(this.config.lookupField==="id"){let J=await X.getEntity({entityType:this.config.entityType,id:$});if(!J)throw Error(`${this.config.entityType} not found: ${$}`);return J}let Y=(await X.listEntities({entityType:this.config.entityType,options:{filter:{metadata:{slug:$}},limit:1}}))[0];if(!Y)throw Error(`${this.config.entityType} not found with slug: ${$}`);return Y}}var O7,Z7;var WZ=B(()=>{T1();S();O7=K.object({id:K.string().optional(),limit:K.number().optional(),page:K.number().optional(),pageSize:K.number().optional(),baseUrl:K.string().optional()}).passthrough(),Z7=K.object({entityType:K.string().optional(),query:O7.optional()}).passthrough()});function HZ($){if(typeof $!=="object"||$===null||!("coverImage"in $))return;let X=$.coverImage;if(X===void 0||X===!1)return;if(X===!0)return{generate:!0};if(typeof X!=="object"||X===null)return;let G=X;if(G.generate===!1)return;let Y=G.prompt?.trim();return{generate:!0,...Y&&{prompt:Y}}}var i5,_G;var UZ=B(()=>{t4();S();g6();i5=class i5 extends a4{context;entityType;constructor($,X,G){super($,{schema:G.schema,jobTypeName:G.jobTypeName});this.context=X,this.entityType=G.entityType}async afterCreate($,X,G,Y){}async onGenerationFailure($,X){}validateAndParse($){let X=super.validateAndParse($);if(!X)return null;let G=HZ($);if(!G||typeof X!=="object")return X;return{...X,coverImage:G}}async process($,X,G){try{await this.reportProgress(G,{progress:p4.START,message:`Starting ${this.jobTypeName}`});let Y=await this.generate($,G);await this.reportProgress(G,{progress:p4.SAVE,message:`Saving ${this.entityType} to database`});let J=await this.context.entityService.createEntity({entity:{id:Y.id,entityType:this.entityType,content:Y.content,metadata:Y.metadata},options:Y.createOptions});return await this.afterCreate($,J.entityId,G,Y),await this.enqueueGenericCoverImageIfRequested($,J.entityId,G,Y),await this.reportProgress(G,{progress:p4.COMPLETE,message:`${Y.title??this.entityType} created successfully`}),{success:!0,entityId:J.entityId,...Y.resultExtras}}catch(Y){if(Y instanceof _G)return await this.onGenerationFailure($,Y.message),{success:!1,error:Y.message};let J=f0(Y);return this.logger.error(`${this.jobTypeName} job failed`,{error:Y,jobId:X,data:this.summarizeDataForLog($)}),await this.onGenerationFailure($,J),U3.failure(Y)}}async enqueueGenericCoverImageIfRequested($,X,G,Y){let J=HZ($);if(!J)return;await this.reportProgress(G,{progress:90,message:"Queueing cover image generation"});let W=Y.title??X;await this.context.jobs.enqueue({type:"image:image-generate",data:{prompt:J.prompt??`Editorial cover image for: ${W}. `,title:`${W} Cover`,aspectRatio:"16:9",targetEntityType:this.entityType,targetEntityId:X,entityTitle:W,entityContent:Y.content},toolContext:{interfaceType:"job",userId:"system"}})}failEarly($){throw new _G($)}};_G=class _G extends Error{constructor($){super($);this.name="GenerationFailure"}}});var R7,KZ,MZ;var zG=B(()=>{u5();R7=K2("conversations",{id:J0("id").primaryKey(),sessionId:J0("session_id").notNull(),interfaceType:J0("interface_type").notNull(),channelId:J0("channel_id").notNull(),started:J0("started").notNull(),lastActive:J0("last_active").notNull(),metadata:J0("metadata"),created:J0("created").notNull(),updated:J0("updated").notNull()},($)=>({sessionIdx:s1("idx_conversations_session").on($.sessionId),channelIdx:s1("idx_conversations_channel").on($.channelId),interfaceSessionIdx:s1("idx_conversations_interface_session").on($.interfaceType,$.sessionId),interfaceChannelIdx:s1("idx_conversations_interface_channel").on($.interfaceType,$.channelId)})),KZ=K2("messages",{id:J0("id").primaryKey(),conversationId:J0("conversation_id").notNull().references(()=>R7.id,{onDelete:"cascade"}),role:J0("role").notNull(),content:J0("content").notNull(),timestamp:J0("timestamp").notNull(),metadata:J0("metadata")},($)=>({conversationIdx:s1("idx_messages_conversation").on($.conversationId),timestampIdx:s1("idx_messages_timestamp").on($.timestamp)})),MZ=K2("summary_tracking",{conversationId:J0("conversation_id").primaryKey().references(()=>R7.id,{onDelete:"cascade"}),lastSummarizedAt:J0("last_summarized_at"),lastMessageId:J0("last_message_id"),messagesSinceSummary:V1("messages_since_summary").default(0),updated:J0("updated").notNull()})});import{createClient as ct}from"@libsql/client";var FZ=B(()=>{zG()});var A7,B7,UE,KE,QZ;var DG=B(()=>{S();A7=K.object({actorId:K.string(),canonicalId:K.string().optional(),interfaceType:K.string(),role:K.enum(["user","assistant","system"]),displayName:K.string().optional(),username:K.string().optional(),isBot:K.boolean().optional()}),B7=K.object({messageId:K.string().optional(),channelId:K.string().optional(),channelName:K.string().optional(),threadId:K.string().optional(),metadata:K.record(K.unknown()).optional()}),UE=K.object({actor:A7.optional(),source:B7.optional()}).passthrough(),KE=K.object({id:K.string(),conversationId:K.string(),role:K.string(),content:K.string(),timestamp:K.string(),metadata:K.string().nullable()}),QZ=K.object({conversationId:K.string(),messageCount:K.number(),messages:K.array(KE),windowStart:K.number(),windowEnd:K.number(),windowSize:K.number(),timestamp:K.string()})});var qZ=B(()=>{FZ();DG();zG();S()});var PG=B(()=>{qZ();DG()});var QE,OZ,ZZ,qE;var RZ=B(()=>{g1();P1();PG();QE=K.object({userPermissionLevel:C2.optional(),interfaceType:K.string().optional(),channelId:K.string().optional(),channelName:K.string().optional(),actor:A7.optional(),source:B7.optional()}),OZ=K.object({toolName:K.string(),description:K.string(),args:K.unknown()}),ZZ=K.object({toolName:K.string(),args:K.record(K.unknown()).optional(),jobId:K.string().optional(),data:K.unknown().optional()}),qE=K.object({text:K.string(),toolResults:K.array(ZZ).optional(),pendingConfirmation:OZ.optional(),usage:K.object({promptTokens:K.number(),completionTokens:K.number(),totalTokens:K.number()})})});var OE,ZE,RE;var AZ=B(()=>{P1();u9();OE=K.object({status:K.enum(["healthy","warning","error","unknown"]),message:K.string().optional(),lastCheck:K.string().optional(),details:K.record(K.unknown()).optional()}),ZE=K.object({name:K.string(),pluginId:K.string(),status:K.string(),health:OE.optional()}),RE=K.object({model:K.string(),version:K.string(),uptime:K.number(),entities:K.number(),entityCounts:K.array(O3),embeddings:K.number(),ai:K.object({model:K.string(),embeddingModel:K.string()}),daemons:K.array(ZE),endpoints:K.array(m9),interactions:K.array(p9)})});var AE,BE;var BZ=B(()=>{P1();s3();AE=K.union([K.object({success:K.boolean(),data:K.unknown().optional(),error:K.string().optional()}),K.object({noop:K.literal(!0)})]),BE=K.object({id:K.string(),timestamp:K.string(),type:K.string(),source:K.string(),target:K.string().optional(),metadata:e4.optional()})});var LG=B(()=>{t4()});var NE,CG;var NZ=B(()=>{S();NE=["meet.google.com","zoom.us","teams.microsoft.com","whereby.com","gather.town","calendly.com","cal.com","discord.com","discord.gg","cdn.discordapp.com","media.discordapp.net","giphy.com","tenor.com","wetransfer.com","file.io"],CG=K.object({captureUrls:K.boolean().default(!1),blockedUrlDomains:K.array(K.string()).default(NE)})});var VZ=B(()=>{wG();LG();NZ()});var wZ=()=>{};var _Z=B(()=>{VZ();LG();wZ()});async function Y8($){let{entityType:X,title:G,deriveId:Y,regeneratePrompt:J,context:W}=$,H=Y(G);if(!await W.entityService.getEntity({entityType:X,id:H}))return G;W.logger.debug(`Entity ID collision: ${X}/${H}, asking AI for a new title`);let M=K.object({title:K.string().max(80).describe("A short, unique title (2-6 words)")}),{object:F}=await W.ai.generateObject(`The title "${G}" is already taken. ${J}`,M),Q=F.title;return W.logger.debug(`AI suggested new title: "${Q}"`),Q}var zZ=B(()=>{S()});var CE;var DZ=B(()=>{S();CE=K.object({enabled:K.boolean().describe("Whether the plugin is enabled"),debug:K.boolean().describe("Enable debug logging for this plugin")})});var TG,N7;var EG=B(()=>{S();T1();TG=G1.extend({id:K.literal("brain-character"),entityType:K.literal("brain-character")}),N7=K.object({name:K.string().describe("The brain's friendly display name"),role:K.string().describe("The brain's primary role"),purpose:K.string().describe("The brain's purpose and goals"),values:K.array(K.string()).describe("Core values that guide behavior")})});var V7;var IG=B(()=>{T1();EG();V7=class V7 extends X1{constructor(){super({entityType:"brain-character",schema:TG,frontmatterSchema:N7,isSingleton:!0,hasBody:!1})}createCharacterContent($){return this.buildMarkdown("",$)}parseCharacterBody($){return this.parseFrontmatter($)}toMarkdown($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}fromMarkdown($){return{content:$,entityType:"brain-character"}}extractMetadata($){let X=this.parseFrontmatter($.content);return{role:X.role,values:X.values}}generateFrontMatter($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}}});var W6;var PZ=B(()=>{T1();IG();W6=class W6 extends l5{static instance=null;adapter=new V7;static getDefaultCharacter(){return{name:"Brain",role:"Knowledge assistant",purpose:"Help organize, understand, and retrieve information from your knowledge base",values:["clarity","accuracy","helpfulness"]}}static getInstance($,X,G){return W6.instance??=new W6($,X,G),W6.instance}static resetInstance(){W6.instance=null}static createFresh($,X,G){return new W6($,X,G)}constructor($,X,G){super($,X,"brain-character",G??W6.getDefaultCharacter())}parseBody($){return this.adapter.parseCharacterBody($)}createContent($){return this.adapter.createCharacterContent($)}getCharacter(){return this.get()}getCharacterContent(){return this.getContent()}}});async function M2($){let G=(await $.listEntities({entityType:"anchor-profile",options:{limit:1}}))[0];if(!G)throw Error("Profile not found \u2014 create an anchor-profile entity");return G.content}var o5;var LZ=B(()=>{S();o5=K.object({tagline:K.string().optional().describe("Short, punchy one-liner for homepage"),intro:K.string().optional().describe("Optional longer introduction for homepage"),story:K.string().optional().describe("Extended bio/narrative (multi-paragraph markdown)")})});var jG,F2;var SG=B(()=>{S();T1();jG=G1.extend({id:K.literal("anchor-profile"),entityType:K.literal("anchor-profile")}),F2=K.object({name:K.string().describe("Name (person or organization)"),kind:K.enum(["professional","team","collective"]).describe("Type of anchor: professional (individual), team, or collective"),organization:K.string().optional().describe("Organization the anchor belongs to"),description:K.string().optional().describe("Short description or biography"),avatar:K.string().optional().describe("URL or asset path to avatar/logo"),website:K.string().optional().describe("Primary website URL"),email:K.string().optional().describe("Contact email"),socialLinks:K.array(K.object({platform:K.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:K.string().describe("Profile or contact URL"),label:K.string().optional().describe("Optional display label")})).optional().describe("Social media and contact links")})});var p1;var kG=B(()=>{T1();SG();p1=class p1 extends X1{constructor(){super({entityType:"anchor-profile",schema:jG,frontmatterSchema:F2,isSingleton:!0,hasBody:!0})}createProfileContent($){let X=F2.parse($);return this.buildMarkdown("",X)}parseProfileBody($,X){if(X){let{metadata:G,content:Y}=b0($,X);return Y?{...G,story:Y}:G}return this.parseFrontmatter($)}fromMarkdown($){return{content:$,entityType:"anchor-profile"}}extractMetadata($){let X=this.parseFrontmatter($.content);return{name:X.name,email:X.email,website:X.website}}generateFrontMatter($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}}});var I2;var CZ=B(()=>{T1();kG();I2=class I2 extends l5{static instance=null;adapter=new p1;static getDefaultProfile(){return{name:"Unknown",kind:"professional"}}static getInstance($,X,G){return I2.instance??=new I2($,X,G),I2.instance}static resetInstance(){I2.instance=null}static createFresh($,X,G){return new I2($,X,G)}constructor($,X,G){super($,X,"anchor-profile",G??I2.getDefaultProfile())}parseBody($){return this.adapter.parseProfileBody($)}createContent($){return this.adapter.createProfileContent($)}getProfile(){return this.get()}getProfileContent(){return this.getContent()}}});var H6="canonical-identity-link",TZ,w7,_7,vG;var z7=B(()=>{T1();S();TZ=K.object({actorId:K.string().min(1),interfaceType:K.string().min(1),displayName:K.string().min(1).optional()}),w7=K.object({canonicalId:K.string().regex(/^person:[a-z0-9][a-z0-9-]*$/,"canonicalId must use person:<slug> format"),displayName:K.string().min(1).optional(),actors:K.array(TZ).min(1)}),_7=w7.superRefine(($,X)=>{let G=new Set;for(let[Y,J]of $.actors.entries()){if(!G.has(J.actorId)){G.add(J.actorId);continue}X.addIssue({code:K.ZodIssueCode.custom,path:["actors",Y,"actorId"],message:`Duplicate actorId ${J.actorId}`})}}),vG=G1.extend({entityType:K.literal(H6)})});var D7;var xG=B(()=>{T1();z7();D7=class D7 extends X1{constructor(){super({entityType:H6,schema:vG,frontmatterSchema:w7,hasBody:!1})}createLinkContent($){let X=_7.parse($);return this.buildMarkdown("",X)}parseLinkBody($){return _7.parse(this.parseFrontmatter($))}toMarkdown($){return this.createLinkContent(this.parseLinkBody($.content))}fromMarkdown($){return{content:$,entityType:H6}}extractMetadata($){let X=this.parseLinkBody($.content);return{canonicalId:X.canonicalId,displayName:X.displayName,actorIds:X.actors.map((G)=>G.actorId)}}generateFrontMatter($){return this.createLinkContent(this.parseLinkBody($.content))}}});class p6{entityService;static instance=null;adapter=new D7;logger;links=[];actorIndex=new Map;static getInstance($,X){return p6.instance??=new p6($,X),p6.instance}static createFresh($,X){return new p6($,X)}static resetInstance(){p6.instance=null}constructor($,X){this.entityService=$;this.logger=X.child("CanonicalIdentityService")}async refreshCache(){let $;try{$=await this.entityService.listEntities({entityType:H6,options:{limit:1e4}})}catch(Y){this.links=[],this.actorIndex=new Map,this.logger.warn("Failed to load canonical identity links",{error:Y});return}let X=$.map((Y)=>this.adapter.parseLinkBody(Y.content)),G=this.buildActorIndex(X);this.links=X,this.actorIndex=G,this.logger.debug("Canonical identity links refreshed",{linkCount:X.length,actorCount:G.size})}getLinks(){return this.links}resolveActor($){return this.actorIndex.get($)??null}enrichActor($){if($.canonicalId||$.role!=="user")return $;let X=this.resolveActor($.actorId);if(!X)return $;return{...$,canonicalId:X.canonicalId}}async validateLink($,X){let G=this.adapter.parseLinkBody($.content),Y=await this.entityService.listEntities({entityType:H6,options:{limit:1e4}}),J=new Set(G.actors.map((W)=>W.actorId));for(let W of Y){if(W.id===$.id)continue;let H=this.adapter.parseLinkBody(W.content);for(let U of H.actors)if(J.has(U.actorId))throw Error(`Cannot persist canonical identity link ${G.canonicalId}: actorId ${U.actorId} is already claimed by ${H.canonicalId}`)}}buildActorIndex($){let X=new Map;for(let G of $)for(let Y of G.actors){let J=X.get(Y.actorId);if(J){this.logger.error("Duplicate canonical identity actor id in cache; keeping first match (invariant should be enforced at write time)",{actorId:Y.actorId,keptCanonicalId:J.canonicalId,droppedCanonicalId:G.canonicalId});continue}X.set(Y.actorId,{...G,matchedActor:Y})}return X}}var EZ=B(()=>{xG();z7()});var u6=B(()=>{PZ();IG();EG();LZ();CZ();kG();SG();EZ();xG();z7()});var IZ,TE,EE,IE;var jZ=B(()=>{S();u6();IZ=K.object({id:K.string(),description:K.string(),name:K.string().optional(),tags:K.array(K.string()).optional().default([])}).passthrough(),TE=K.object({uri:K.string(),params:K.record(K.unknown()).optional()}).passthrough(),EE=K.object({name:K.string(),url:K.string(),description:K.string().optional(),skills:K.array(IZ).optional().default([]),capabilities:K.object({extensions:K.array(TE).optional().default([])}).passthrough().optional()}).passthrough(),IE=K.object({name:K.string(),description:K.string(),tags:K.array(K.string()),examples:K.array(K.string())})});var n5=()=>{};var a1;var J8=B(()=>{a1=class a1 extends Error{pluginId;constructor($,X){super(`Plugin ${$}: ${X}`);this.name="PluginError",this.pluginId=$}}});class bG{plugins;events;daemonRegistry;logger;constructor($,X,G,Y){this.plugins=$;this.events=X;this.daemonRegistry=G;this.logger=Y.child("PluginLifecycle")}async initializePlugin($,X,G){let Y=this.plugins.get($);if(!Y)throw new a1($,"Registration failed: Plugin is not registered");let J=Y.plugin;this.logger.debug(`Initializing plugin: ${$}`),this.events.emit("plugin:before_initialize",$,J);try{let W=await J.register(X,G);return Y.status="initialized",this.logger.debug(`Initialized plugin: ${$}`),this.events.emit("plugin:initialized",$,J),W}catch(W){let H=f0(W);throw this.logger.error(`Error initializing plugin ${$}: ${H}`),Y.status="error",Y.error=f4(W),this.events.emit("plugin:error",$,W),W}}async readyPlugin($){let X=this.plugins.get($);if(!X)throw new a1($,"Ready failed: Plugin is not registered");if(X.status!=="initialized"){this.logger.debug(`Skipping ready hook for non-initialized plugin: ${$}`);return}try{await X.plugin.ready?.(),this.logger.debug(`Ready hook completed for plugin: ${$}`)}catch(G){let Y=f4(G);throw X.status="error",X.error=Y,this.events.emit("plugin:error",$,Y),Y}}async startPluginDaemons($){let X=this.plugins.get($);if(X?.status!=="initialized")return;try{await this.daemonRegistry.startPlugin($),this.logger.debug(`Started daemons for plugin: ${$}`)}catch(G){if(X.plugin.requiresDaemonStartup?.())throw G;this.logger.warn(`Daemon ${$} failed to start: ${f0(G)}`)}}async disablePlugin($){let X=this.plugins.get($);if(!X){this.logger.warn(`Cannot disable plugin ${$}: not registered`);return}this.logger.debug(`Disabling plugin: ${$}`);try{await this.daemonRegistry.stopPlugin($),this.logger.debug(`Stopped daemons for plugin: ${$}`)}catch(G){this.logger.error(`Failed to stop daemons for plugin: ${$}`,G)}if(X.plugin.shutdown)try{await X.plugin.shutdown(),this.logger.debug(`Shutdown completed for plugin: ${$}`)}catch(G){this.logger.error(`Plugin shutdown failed for ${$}:`,G)}X.status="disabled",this.events.emit("plugin:disabled",$,X.plugin),this.logger.debug(`Disabled plugin: ${$}`)}async enablePlugin($){let X=this.plugins.get($);if(!X){this.logger.warn(`Cannot enable plugin ${$}: not registered`);return}if(X.status!=="disabled"){this.logger.warn(`Cannot enable plugin ${$}: not disabled`);return}this.logger.debug(`Enabling plugin: ${$}`),X.status="initialized";try{await this.daemonRegistry.startPlugin($),this.logger.debug(`Started daemons for plugin: ${$}`)}catch(G){this.logger.error(`Failed to start daemons for plugin: ${$}`,G)}this.events.emit("plugin:enabled",$,X.plugin),this.logger.debug(`Enabled plugin: ${$}`)}}var SZ=B(()=>{S();n5();J8()});class hG{plugins;events;logger;constructor($,X,G){this.plugins=$;this.events=X;this.logger=G.child("DependencyResolver")}async resolveInitializationOrder($){this.logger.debug("Resolving plugin initialization order...");let X=Array.from(this.plugins.keys()),G=new Set,Y=!0;while(Y&&G.size<X.length){Y=!1;for(let H of X){if(G.has(H))continue;if(!this.plugins.get(H))continue;if(this.getUnmetDependencies(H).length===0)try{await $(H),G.add(H),Y=!0}catch(F){let Q=f0(F);this.logger.error(`Failed to initialize plugin ${H}: ${Q}`),G.add(H),Y=!0}}}let J=X.filter((H)=>!G.has(H));if(J.length>0){let H=J.join(", ");this.logger.error(`Failed to initialize plugins due to dependency issues: ${H}`);for(let U of J){let M=this.getUnmetDependencies(U);this.logger.error(`Plugin ${U} has unmet dependencies: ${M.join(", ")}`);let F=this.plugins.get(U);if(F)F.status="error",F.error=new a1(U,`Unmet dependencies: ${M.join(", ")}`);this.events.emit("plugin:error",U,F?.error)}}let W=new Set;for(let[H,U]of this.plugins)if(U.status==="initialized")W.add(H);return this.logger.debug(`Resolved ${W.size} of ${X.length} plugins`),{initialized:W,failed:J}}getUnmetDependencies($){let X=this.plugins.get($);if(!X)return[];let{dependencies:G}=X,Y=[];for(let J of G){let W=this.plugins.get(J);if(!W){Y.push(J);continue}if(W.status!=="initialized")Y.push(J)}return Y}}var kZ=B(()=>{S();n5();J8()});class yG{logger;constructor($){this.logger=$.child("CapabilityRegistrar")}async registerCapabilities($,X,G){if(G.tools.length>0)$.registerTools(X,G.tools),this.logger.debug(`Registered ${G.tools.length} tools from ${X}`);if(G.resources.length>0)$.registerResources(X,G.resources),this.logger.debug(`Registered ${G.resources.length} resources from ${X}`);if(G.instructions)$.registerInstructions(X,G.instructions),this.logger.debug(`Registered instructions from ${X}`)}}import{EventEmitter as vZ}from"events";class U6{static instance=null;plugins=new Map;logger;events=new vZ;daemonRegistry;shell=null;initializedPluginIds=[];pluginLifecycle;dependencyResolver;capabilityRegistrar;static getInstance($,X){return U6.instance??=new U6($,X),U6.instance}static resetInstance(){U6.instance=null}static createFresh($,X){return new U6($,X)}setShell($){this.shell=$}constructor($,X){this.logger=$.child("PluginManager"),this.events=new vZ,this.daemonRegistry=X,this.pluginLifecycle=new bG(this.plugins,this.events,this.daemonRegistry,$),this.dependencyResolver=new hG(this.plugins,this.events,$),this.capabilityRegistrar=new yG($)}registerPlugin($){if(!$.id)throw new a1("unknown","Registration failed: Plugin must have an id");if(this.logger.debug(`Registering plugin: ${$.id} (${$.version})`),this.plugins.has($.id)){let J=this.plugins.get($.id)?.plugin.version;throw new a1($.id,`Registration failed: Plugin is already registered with version ${J}`)}let X=$.dependencies??[],G={plugin:$,status:"registered",dependencies:X};this.plugins.set($.id,G),this.logger.debug(`Registered plugin: ${$.id} (${$.version})`),this.events.emit("plugin:registered",$.id,$)}async initializePlugins($){this.logger.debug("Initializing plugins..."),this.initializedPluginIds=[];let X=await this.dependencyResolver.resolveInitializationOrder(async(G)=>{await this.initializePlugin(G,$)});this.logger.debug(`Initialized ${X.initialized.size} of ${this.plugins.size} plugins`)}async initializePlugin($,X){if(!this.shell)throw new a1($,"Cannot initialize plugin: Shell not set. Call setShell() first.");let G=this.shell,Y=await this.pluginLifecycle.initializePlugin($,G,X);await this.capabilityRegistrar.registerCapabilities(G,$,Y),this.initializedPluginIds.push($)}async readyPlugins(){this.logger.debug("Dispatching plugin ready hooks..."),await Promise.all(this.initializedPluginIds.map(($)=>this.pluginLifecycle.readyPlugin($)))}async startPluginDaemons(){this.logger.debug("Starting plugin daemons..."),await Promise.all(this.initializedPluginIds.map(($)=>this.pluginLifecycle.startPluginDaemons($)))}getPlugin($){return this.plugins.get($)?.plugin}getPluginStatus($){return this.plugins.get($)?.status}hasPlugin($){return this.plugins.has($)}isPluginInitialized($){return this.plugins.get($)?.status==="initialized"}getAllPluginIds(){return Array.from(this.plugins.keys())}getAllPlugins(){return new Map(this.plugins)}getFailedPlugins(){return Array.from(this.plugins.entries()).filter(($)=>$[1].status==="error"&&$[1].error!==void 0).map(([$,X])=>({id:$,error:X.error}))}getPluginPackageName($){return this.plugins.get($)?.plugin.packageName}async disablePlugin($){await this.pluginLifecycle.disablePlugin($)}async enablePlugin($){await this.pluginLifecycle.enablePlugin($)}on($,X){this.events.on($,X)}once($,X){this.events.once($,X)}off($,X){this.events.off($,X)}getEventEmitter(){return this.events}}var xZ=B(()=>{n5();J8();SZ();kZ();n5()});var bZ=B(()=>{xZ();n5()});var O0=B(()=>{XZ();YZ();NG();AG();QG();wG();JZ();n3();ZG();$8();VG();u9();T1();WZ();T1();t4();UZ();g1();RZ();AZ();t3();XG();BZ();PG();_Z();q3();zZ();S();g5();DZ();u6();jZ();bZ();J8()});var jE,O1,SE,s5,W8,t1,H8;var Q2=B(()=>{S();O0();jE=K.enum(["draft","queued","published"]),O1=K.object({title:K.string(),slug:K.string().optional(),status:jE,publishedAt:K.string().datetime().optional(),excerpt:K.string(),author:K.string(),coverImageId:K.string().optional(),seriesName:K.string().optional(),seriesIndex:K.number().optional(),ogImage:K.string().url().optional(),ogDescription:K.string().optional(),twitterCard:K.enum(["summary","summary_large_image"]).optional(),canonicalUrl:K.string().url().optional()}),SE=O1.pick({title:!0,status:!0,publishedAt:!0,seriesName:!0,seriesIndex:!0}).extend({slug:K.string()}),s5=G1.extend({entityType:K.literal("post"),metadata:SE}),W8=s5.extend({frontmatter:O1,body:K.string(),coverImageUrl:K.string().optional()}),t1=W8.extend({url:K.string().optional(),typeLabel:K.string().optional(),listUrl:K.string().optional(),listLabel:K.string().optional(),seriesUrl:K.string().optional(),coverImageUrl:K.string().optional(),coverImageWidth:K.number().optional(),coverImageHeight:K.number().optional(),coverImageSrcset:K.string().optional(),coverImageSizes:K.string().optional()}),H8=W8.extend({url:K.string(),typeLabel:K.string(),listUrl:K.string(),listLabel:K.string(),seriesUrl:K.string().optional(),coverImageUrl:K.string().optional(),coverImageWidth:K.number().optional(),coverImageHeight:K.number().optional(),coverImageSrcset:K.string().optional(),coverImageSizes:K.string().optional()})});var hZ={};v8(hZ,{blogPostAdapter:()=>d6,BlogPostAdapter:()=>C7});var C7,d6;var U8=B(()=>{O0();S();Q2();C7=class C7 extends X1{constructor(){super({entityType:"post",schema:s5,frontmatterSchema:O1,supportsCoverImage:!0})}toMarkdown($){let X=this.extractBody($.content);try{let G=this.parseFrontMatter($.content,O1),Y={...G,slug:G.slug??$.metadata.slug};return this.buildMarkdown(X,Y)}catch{return X}}fromMarkdown($){let X=this.parseFrontMatter($,O1),G=X.slug??f1(X.title);return{content:$,entityType:"post",metadata:{title:X.title,slug:G,status:X.status,publishedAt:X.publishedAt,seriesName:X.seriesName,seriesIndex:X.seriesIndex}}}parsePostFrontmatter($){return this.parseFrontMatter($.content,O1)}createPostContent($,X){return this.buildMarkdown(X,$)}};d6=new C7});function b1($){return $.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function kR($){return new Date($).toUTCString()}function g7($,X){let G=$.filter((F)=>{if(X.includeAllPosts)return!0;return F.frontmatter.status==="published"&&F.frontmatter.publishedAt}).sort((F,Q)=>{let q=new Date(F.frontmatter.publishedAt??F.created);return new Date(Q.frontmatter.publishedAt??Q.created).getTime()-q.getTime()}),Y=G.length>0&&G[0]?G[0].frontmatter.publishedAt??G[0].created:new Date().toISOString(),J=G.map((F)=>{let Q=`${X.link}/posts/${F.metadata.slug}`,q=F.frontmatter.publishedAt??F.created,R=F.frontmatter.excerpt,O=F.frontmatter.author;return` <item>
119
+ \r`,BP,NP,VP,zP,DP,CP,TP,jP,WF,c6,C9=1,HF=2,UF=3,T9=4,fX=1,SP=2,pM=3,kP,vP,xP,KF,MF,QF,qF,d6,lM,tP,eP,RF,AF,BF,iX=65279,$L=9,T4=10,XL=13,GL=32,YL=33,JL=34,mX=35,WL=37,HL=38,UL=39,KL=42,NF=44,ML=45,I9=58,FL=61,QL=62,qL=63,OL=64,VF=91,wF=93,ZL=96,_F=123,RL=124,zF=125,F1,AL,BL,wL=1,E4=2,PF=1,uX=2,LF=3,CF=4,B2=5,xL,bL,nX,Gp,TF,Yp,Jp,Wp;var k9=B(()=>{/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */VD=XF,wD=ZD,_D=RD,zD=BD,DD=ND,PD=AD,c0={isNothing:VD,isObject:wD,toArray:_D,repeat:zD,isNegativeZero:DD,extend:PD};C4.prototype=Object.create(Error.prototype);C4.prototype.constructor=C4;C4.prototype.toString=function(X){return this.name+": "+GF(this,X)};z1=C4;CD=LD,TD=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ED=["scalar","sequence","mapping"];M1=jD;gX.prototype.extend=function(X){var G=[],Y=[];if(X instanceof M1)Y.push(X);else if(Array.isArray(X))Y=Y.concat(X);else if(X&&(Array.isArray(X.implicit)||Array.isArray(X.explicit))){if(X.implicit)G=G.concat(X.implicit);if(X.explicit)Y=Y.concat(X.explicit)}else throw new z1("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");G.forEach(function(W){if(!(W instanceof M1))throw new z1("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(W.loadKind&&W.loadKind!=="scalar")throw new z1("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(W.multi)throw new z1("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),Y.forEach(function(W){if(!(W instanceof M1))throw new z1("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var J=Object.create(gX.prototype);return J.implicit=(this.implicit||[]).concat(G),J.explicit=(this.explicit||[]).concat(Y),J.compiledImplicit=mM(J,"implicit"),J.compiledExplicit=mM(J,"explicit"),J.compiledTypeMap=SD(J.compiledImplicit,J.compiledExplicit),J};kD=gX,vD=new M1("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}}),xD=new M1("tag:yaml.org,2002:seq",{kind:"sequence",construct:function($){return $!==null?$:[]}}),bD=new M1("tag:yaml.org,2002:map",{kind:"mapping",construct:function($){return $!==null?$:{}}}),hD=new kD({explicit:[vD,xD,bD]});mD=new M1("tag:yaml.org,2002:null",{kind:"scalar",resolve:yD,construct:fD,predicate:gD,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});lD=new M1("tag:yaml.org,2002:bool",{kind:"scalar",resolve:pD,construct:uD,predicate:dD,represent:{lowercase:function($){return $?"true":"false"},uppercase:function($){return $?"TRUE":"FALSE"},camelcase:function($){return $?"True":"False"}},defaultStyle:"lowercase"});aD=new M1("tag:yaml.org,2002:int",{kind:"scalar",resolve:oD,construct:nD,predicate:sD,represent:{binary:function($){return $>=0?"0b"+$.toString(2):"-0b"+$.toString(2).slice(1)},octal:function($){return $>=0?"0o"+$.toString(8):"-0o"+$.toString(8).slice(1)},decimal:function($){return $.toString(10)},hexadecimal:function($){return $>=0?"0x"+$.toString(16).toUpperCase():"-0x"+$.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),tD=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");XP=/^[-+]?[0-9]+e/;JP=new M1("tag:yaml.org,2002:float",{kind:"scalar",resolve:eD,construct:$P,predicate:YP,represent:GP,defaultStyle:"lowercase"}),WP=hD.extend({implicit:[mD,lD,aD,JP]}),HP=WP,YF=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),JF=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");FP=new M1("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:UP,construct:KP,instanceOf:Date,represent:MP});qP=new M1("tag:yaml.org,2002:merge",{kind:"scalar",resolve:QP});BP=new M1("tag:yaml.org,2002:binary",{kind:"scalar",resolve:OP,construct:ZP,predicate:AP,represent:RP}),NP=Object.prototype.hasOwnProperty,VP=Object.prototype.toString;zP=new M1("tag:yaml.org,2002:omap",{kind:"sequence",resolve:wP,construct:_P}),DP=Object.prototype.toString;CP=new M1("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:PP,construct:LP}),TP=Object.prototype.hasOwnProperty;jP=new M1("tag:yaml.org,2002:set",{kind:"mapping",resolve:EP,construct:IP}),WF=HP.extend({implicit:[FP,qP],explicit:[BP,zP,CP,jP]}),c6=Object.prototype.hasOwnProperty,kP=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,vP=/[\x85\u2028\u2029]/,xP=/[,\[\]\{\}]/,KF=/^(?:!|!!|![a-z\-]+!)$/i,MF=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;QF=Array(256),qF=Array(256);for(d6=0;d6<256;d6++)QF[d6]=dM(d6)?1:0,qF[d6]=dM(d6);lM={YAML:function(X,G,Y){var J,W,H;if(X.version!==null)p(X,"duplication of %YAML directive");if(Y.length!==1)p(X,"YAML directive accepts exactly one argument");if(J=/^([0-9]+)\.([0-9]+)$/.exec(Y[0]),J===null)p(X,"ill-formed argument of the YAML directive");if(W=parseInt(J[1],10),H=parseInt(J[2],10),W!==1)p(X,"unacceptable YAML version of the document");if(X.version=Y[0],X.checkLineBreaks=H<2,H!==1&&H!==2)E9(X,"unsupported YAML version of the document")},TAG:function(X,G,Y){var J,W;if(Y.length!==2)p(X,"TAG directive accepts exactly two arguments");if(J=Y[0],W=Y[1],!KF.test(J))p(X,"ill-formed tag handle (first argument) of the TAG directive");if(c6.call(X.tagMap,J))p(X,'there is a previously declared suffix for "'+J+'" tag handle');if(!MF.test(W))p(X,"ill-formed tag prefix (second argument) of the TAG directive");try{W=decodeURIComponent(W)}catch(H){p(X,"tag prefix is malformed: "+W)}X.tagMap[J]=W}};tP=sP,eP=aP,RF={loadAll:tP,load:eP},AF=Object.prototype.toString,BF=Object.prototype.hasOwnProperty,F1={};F1[0]="\\0";F1[7]="\\a";F1[8]="\\b";F1[9]="\\t";F1[10]="\\n";F1[11]="\\v";F1[12]="\\f";F1[13]="\\r";F1[27]="\\e";F1[34]="\\\"";F1[92]="\\\\";F1[133]="\\N";F1[160]="\\_";F1[8232]="\\L";F1[8233]="\\P";AL=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],BL=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;xL=vL,bL={dump:xL};nX=RF.load,Gp=RF.loadAll,TF=bL.dump,Yp=oX("safeLoad","load"),Jp=oX("safeLoadAll","loadAll"),Wp=oX("safeDump","dump")});function aX($){return nX($)}var EF=B(()=>{k9()});var IF="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";import{webcrypto as jF}from"crypto";function yL($){if(!v5||v5.length<$)v5=Buffer.allocUnsafe($*hL),jF.getRandomValues(v5),_2=0;else if(_2+$>v5.length)jF.getRandomValues(v5),_2=0;_2+=$}function SF($=21){yL($|=0);let X="";for(let G=_2-$;G<_2;G++)X+=IF[v5[G]&63];return X}var hL=128,v5,_2;var kF=()=>{};function z6($=12){return SF($)}var vF=B(()=>{kF()});function f1($){return $.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function tX($){let G=$.split(/\s+/).filter((Y)=>Y.length>0).length;return Math.max(1,Math.ceil(G/200))}var xF=()=>{};function z2($,X){let G=$.metadata.publishedAt??$.created,Y=X.metadata.publishedAt??X.created;return new Date(Y).getTime()-new Date(G).getTime()}var Q0,eX,v,G6=($)=>{switch(typeof $){case"undefined":return v.undefined;case"string":return v.string;case"number":return Number.isNaN($)?v.nan:v.number;case"boolean":return v.boolean;case"function":return v.function;case"bigint":return v.bigint;case"symbol":return v.symbol;case"object":if(Array.isArray($))return v.array;if($===null)return v.null;if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return v.promise;if(typeof Map<"u"&&$ instanceof Map)return v.map;if(typeof Set<"u"&&$ instanceof Set)return v.set;if(typeof Date<"u"&&$ instanceof Date)return v.date;return v.object;default:return v.unknown}};var j4=B(()=>{(function($){$.assertEqual=(J)=>{};function X(J){}$.assertIs=X;function G(J){throw Error()}$.assertNever=G,$.arrayToEnum=(J)=>{let W={};for(let H of J)W[H]=H;return W},$.getValidEnumValues=(J)=>{let W=$.objectKeys(J).filter((U)=>typeof J[J[U]]!=="number"),H={};for(let U of W)H[U]=J[U];return $.objectValues(H)},$.objectValues=(J)=>{return $.objectKeys(J).map(function(W){return J[W]})},$.objectKeys=typeof Object.keys==="function"?(J)=>Object.keys(J):(J)=>{let W=[];for(let H in J)if(Object.prototype.hasOwnProperty.call(J,H))W.push(H);return W},$.find=(J,W)=>{for(let H of J)if(W(H))return H;return},$.isInteger=typeof Number.isInteger==="function"?(J)=>Number.isInteger(J):(J)=>typeof J==="number"&&Number.isFinite(J)&&Math.floor(J)===J;function Y(J,W=" | "){return J.map((H)=>typeof H==="string"?`'${H}'`:H).join(W)}$.joinValues=Y,$.jsonStringifyReplacer=(J,W)=>{if(typeof W==="bigint")return W.toString();return W}})(Q0||(Q0={}));(function($){$.mergeShapes=(X,G)=>{return{...X,...G}}})(eX||(eX={}));v=Q0.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"])});var j,fL=($)=>{return JSON.stringify($,null,2).replace(/"([^"]+)":/g,"$1:")},Q1;var v9=B(()=>{j4();j=Q0.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);Q1=class Q1 extends Error{get errors(){return this.issues}constructor($){super();this.issues=[],this.addIssue=(G)=>{this.issues=[...this.issues,G]},this.addIssues=(G=[])=>{this.issues=[...this.issues,...G]};let X=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,X);else this.__proto__=X;this.name="ZodError",this.issues=$}format($){let X=$||function(J){return J.message},G={_errors:[]},Y=(J)=>{for(let W of J.issues)if(W.code==="invalid_union")W.unionErrors.map(Y);else if(W.code==="invalid_return_type")Y(W.returnTypeError);else if(W.code==="invalid_arguments")Y(W.argumentsError);else if(W.path.length===0)G._errors.push(X(W));else{let H=G,U=0;while(U<W.path.length){let M=W.path[U];if(U!==W.path.length-1)H[M]=H[M]||{_errors:[]};else H[M]=H[M]||{_errors:[]},H[M]._errors.push(X(W));H=H[M],U++}}};return Y(this),G}static assert($){if(!($ instanceof Q1))throw Error(`Not a ZodError: ${$}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Q0.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten($=(X)=>X.message){let X={},G=[];for(let Y of this.issues)if(Y.path.length>0){let J=Y.path[0];X[J]=X[J]||[],X[J].push($(Y))}else G.push($(Y));return{formErrors:G,fieldErrors:X}}get formErrors(){return this.flatten()}};Q1.create=($)=>{return new Q1($)}});var gL=($,X)=>{let G;switch($.code){case j.invalid_type:if($.received===v.undefined)G="Required";else G=`Expected ${$.expected}, received ${$.received}`;break;case j.invalid_literal:G=`Invalid literal value, expected ${JSON.stringify($.expected,Q0.jsonStringifyReplacer)}`;break;case j.unrecognized_keys:G=`Unrecognized key(s) in object: ${Q0.joinValues($.keys,", ")}`;break;case j.invalid_union:G="Invalid input";break;case j.invalid_union_discriminator:G=`Invalid discriminator value. Expected ${Q0.joinValues($.options)}`;break;case j.invalid_enum_value:G=`Invalid enum value. Expected ${Q0.joinValues($.options)}, received '${$.received}'`;break;case j.invalid_arguments:G="Invalid function arguments";break;case j.invalid_return_type:G="Invalid function return type";break;case j.invalid_date:G="Invalid date";break;case j.invalid_string:if(typeof $.validation==="object")if("includes"in $.validation){if(G=`Invalid input: must include "${$.validation.includes}"`,typeof $.validation.position==="number")G=`${G} at one or more positions greater than or equal to ${$.validation.position}`}else if("startsWith"in $.validation)G=`Invalid input: must start with "${$.validation.startsWith}"`;else if("endsWith"in $.validation)G=`Invalid input: must end with "${$.validation.endsWith}"`;else Q0.assertNever($.validation);else if($.validation!=="regex")G=`Invalid ${$.validation}`;else G="Invalid";break;case j.too_small:if($.type==="array")G=`Array must contain ${$.exact?"exactly":$.inclusive?"at least":"more than"} ${$.minimum} element(s)`;else if($.type==="string")G=`String must contain ${$.exact?"exactly":$.inclusive?"at least":"over"} ${$.minimum} character(s)`;else if($.type==="number")G=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="bigint")G=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="date")G=`Date must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${new Date(Number($.minimum))}`;else G="Invalid input";break;case j.too_big:if($.type==="array")G=`Array must contain ${$.exact?"exactly":$.inclusive?"at most":"less than"} ${$.maximum} element(s)`;else if($.type==="string")G=`String must contain ${$.exact?"exactly":$.inclusive?"at most":"under"} ${$.maximum} character(s)`;else if($.type==="number")G=`Number must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="bigint")G=`BigInt must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="date")G=`Date must be ${$.exact?"exactly":$.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number($.maximum))}`;else G="Invalid input";break;case j.custom:G="Invalid input";break;case j.invalid_intersection_types:G="Intersection results could not be merged";break;case j.not_multiple_of:G=`Number must be a multiple of ${$.multipleOf}`;break;case j.not_finite:G="Number must be finite";break;default:G=X.defaultError,Q0.assertNever($)}return{message:G}},D6;var $3=B(()=>{v9();j4();D6=gL});function mL($){bF=$}function D2(){return bF}var bF;var x9=B(()=>{$3();bF=D6});function h($,X){let G=D2(),Y=S4({issueData:X,data:$.data,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,G,G===D6?void 0:D6].filter((J)=>!!J)});$.common.issues.push(Y)}class $1{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray($,X){let G=[];for(let Y of X){if(Y.status==="aborted")return r;if(Y.status==="dirty")$.dirty();G.push(Y.value)}return{status:$.value,value:G}}static async mergeObjectAsync($,X){let G=[];for(let Y of X){let J=await Y.key,W=await Y.value;G.push({key:J,value:W})}return $1.mergeObjectSync($,G)}static mergeObjectSync($,X){let G={};for(let Y of X){let{key:J,value:W}=Y;if(J.status==="aborted")return r;if(W.status==="aborted")return r;if(J.status==="dirty")$.dirty();if(W.status==="dirty")$.dirty();if(J.value!=="__proto__"&&(typeof W.value<"u"||Y.alwaysSet))G[J.value]=W.value}return{status:$.value,value:G}}}var S4=($)=>{let{data:X,path:G,errorMaps:Y,issueData:J}=$,W=[...G,...J.path||[]],H={...J,path:W};if(J.message!==void 0)return{...J,path:W,message:J.message};let U="",M=Y.filter((F)=>!!F).slice().reverse();for(let F of M)U=F(H,{data:X,defaultError:U}).message;return{...J,path:W,message:U}},pL,r,x5=($)=>({status:"dirty",value:$}),q1=($)=>({status:"valid",value:$}),b9=($)=>$.status==="aborted",h9=($)=>$.status==="dirty",r6=($)=>$.status==="valid",P2=($)=>typeof Promise<"u"&&$ instanceof Promise;var X3=B(()=>{x9();$3();pL=[];r=Object.freeze({status:"aborted"})});var hF=()=>{};var m;var yF=B(()=>{(function($){$.errToObj=(X)=>typeof X==="string"?{message:X}:X||{},$.toString=(X)=>typeof X==="string"?X:X?.message})(m||(m={}))});class i1{constructor($,X,G,Y){this._cachedPath=[],this.parent=$,this.data=X,this._path=G,this._key=Y}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}function Y0($){if(!$)return{};let{errorMap:X,invalid_type_error:G,required_error:Y,description:J}=$;if(X&&(G||Y))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(X)return{errorMap:X,description:J};return{errorMap:(H,U)=>{let{message:M}=$;if(H.code==="invalid_enum_value")return{message:M??U.defaultError};if(typeof U.data>"u")return{message:M??Y??U.defaultError};if(H.code!=="invalid_type")return{message:U.defaultError};return{message:M??G??U.defaultError}},description:J}}class K0{get description(){return this._def.description}_getType($){return G6($.data)}_getOrReturnCtx($,X){return X||{common:$.parent.common,data:$.data,parsedType:G6($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}_processInputParams($){return{status:new $1,ctx:{common:$.parent.common,data:$.data,parsedType:G6($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}}_parseSync($){let X=this._parse($);if(P2(X))throw Error("Synchronous parse encountered promise.");return X}_parseAsync($){let X=this._parse($);return Promise.resolve(X)}parse($,X){let G=this.safeParse($,X);if(G.success)return G.data;throw G.error}safeParse($,X){let G={common:{issues:[],async:X?.async??!1,contextualErrorMap:X?.errorMap},path:X?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:G6($)},Y=this._parseSync({data:$,path:G.path,parent:G});return fF(G,Y)}"~validate"($){let X={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:G6($)};if(!this["~standard"].async)try{let G=this._parseSync({data:$,path:[],parent:X});return r6(G)?{value:G.value}:{issues:X.common.issues}}catch(G){if(G?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;X.common={issues:[],async:!0}}return this._parseAsync({data:$,path:[],parent:X}).then((G)=>r6(G)?{value:G.value}:{issues:X.common.issues})}async parseAsync($,X){let G=await this.safeParseAsync($,X);if(G.success)return G.data;throw G.error}async safeParseAsync($,X){let G={common:{issues:[],contextualErrorMap:X?.errorMap,async:!0},path:X?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:G6($)},Y=this._parse({data:$,path:G.path,parent:G}),J=await(P2(Y)?Y:Promise.resolve(Y));return fF(G,J)}refine($,X){let G=(Y)=>{if(typeof X==="string"||typeof X>"u")return{message:X};else if(typeof X==="function")return X(Y);else return X};return this._refinement((Y,J)=>{let W=$(Y),H=()=>J.addIssue({code:j.custom,...G(Y)});if(typeof Promise<"u"&&W instanceof Promise)return W.then((U)=>{if(!U)return H(),!1;else return!0});if(!W)return H(),!1;else return!0})}refinement($,X){return this._refinement((G,Y)=>{if(!$(G))return Y.addIssue(typeof X==="function"?X(G,Y):X),!1;else return!0})}_refinement($){return new o1({schema:this,typeName:n.ZodEffects,effect:{type:"refinement",refinement:$}})}superRefine($){return this._refinement($)}constructor($){this.spa=this.safeParseAsync,this._def=$,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(X)=>this["~validate"](X)}}optional(){return r1.create(this,this._def)}nullable(){return L6.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return c1.create(this)}promise(){return f5.create(this,this._def)}or($){return j2.create([this,$],this._def)}and($){return S2.create(this,$,this._def)}transform($){return new o1({...Y0(this._def),schema:this,typeName:n.ZodEffects,effect:{type:"transform",transform:$}})}default($){let X=typeof $==="function"?$:()=>$;return new b2({...Y0(this._def),innerType:this,defaultValue:X,typeName:n.ZodDefault})}brand(){return new f9({typeName:n.ZodBranded,type:this,...Y0(this._def)})}catch($){let X=typeof $==="function"?$:()=>$;return new h2({...Y0(this._def),innerType:this,catchValue:X,typeName:n.ZodCatch})}describe($){return new this.constructor({...this._def,description:$})}pipe($){return y4.create(this,$)}readonly(){return y2.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}function pF($){let X="[0-5]\\d";if($.precision)X=`${X}\\.\\d{${$.precision}}`;else if($.precision==null)X=`${X}(\\.\\d+)?`;let G=$.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${X})${G}`}function JC($){return new RegExp(`^${pF($)}$`)}function uF($){let X=`${mF}T${pF($)}`,G=[];if(G.push($.local?"Z?":"Z"),$.offset)G.push("([+-]\\d{2}:?\\d{2})");return X=`${X}(${G.join("|")})`,new RegExp(`^${X}$`)}function WC($,X){if((X==="v4"||!X)&&aL.test($))return!0;if((X==="v6"||!X)&&eL.test($))return!0;return!1}function HC($,X){if(!iL.test($))return!1;try{let[G]=$.split(".");if(!G)return!1;let Y=G.replace(/-/g,"+").replace(/_/g,"/").padEnd(G.length+(4-G.length%4)%4,"="),J=JSON.parse(atob(Y));if(typeof J!=="object"||J===null)return!1;if("typ"in J&&J?.typ!=="JWT")return!1;if(!J.alg)return!1;if(X&&J.alg!==X)return!1;return!0}catch{return!1}}function UC($,X){if((X==="v4"||!X)&&tL.test($))return!0;if((X==="v6"||!X)&&$C.test($))return!0;return!1}function KC($,X){let G=($.toString().split(".")[1]||"").length,Y=(X.toString().split(".")[1]||"").length,J=G>Y?G:Y,W=Number.parseInt($.toFixed(J).replace(".","")),H=Number.parseInt(X.toFixed(J).replace(".",""));return W%H/10**J}function L2($){if($ instanceof S0){let X={};for(let G in $.shape){let Y=$.shape[G];X[G]=r1.create(L2(Y))}return new S0({...$._def,shape:()=>X})}else if($ instanceof c1)return new c1({...$._def,type:L2($.element)});else if($ instanceof r1)return r1.create(L2($.unwrap()));else if($ instanceof L6)return L6.create(L2($.unwrap()));else if($ instanceof J6)return J6.create($.items.map((X)=>L2(X)));else return $}function Y3($,X){let G=G6($),Y=G6(X);if($===X)return{valid:!0,data:$};else if(G===v.object&&Y===v.object){let J=Q0.objectKeys(X),W=Q0.objectKeys($).filter((U)=>J.indexOf(U)!==-1),H={...$,...X};for(let U of W){let M=Y3($[U],X[U]);if(!M.valid)return{valid:!1};H[U]=M.data}return{valid:!0,data:H}}else if(G===v.array&&Y===v.array){if($.length!==X.length)return{valid:!1};let J=[];for(let W=0;W<$.length;W++){let H=$[W],U=X[W],M=Y3(H,U);if(!M.valid)return{valid:!1};J.push(M.data)}return{valid:!0,data:J}}else if(G===v.date&&Y===v.date&&+$===+X)return{valid:!0,data:$};else return{valid:!1}}function dF($,X){return new s6({values:$,typeName:n.ZodEnum,...Y0(X)})}function gF($,X){let G=typeof $==="function"?$(X):typeof $==="string"?{message:$}:$;return typeof G==="string"?{message:G}:G}function lF($,X={},G){if($)return h5.create().superRefine((Y,J)=>{let W=$(Y);if(W instanceof Promise)return W.then((H)=>{if(!H){let U=gF(X,Y),M=U.fatal??G??!0;J.addIssue({code:"custom",...U,fatal:M})}});if(!W){let H=gF(X,Y),U=H.fatal??G??!0;J.addIssue({code:"custom",...H,fatal:U})}return});return h5.create()}var fF=($,X)=>{if(r6(X))return{success:!0,data:X.value};else{if(!$.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let G=new Q1($.common.issues);return this._error=G,this._error}}}},uL,dL,lL,cL,rL,iL,oL,nL,sL="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",G3,aL,tL,eL,$C,XC,GC,mF="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",YC,l1,o6,n6,T2,b5,k4,E2,I2,h5,i6,Y6,v4,c1,S0,j2,P6=($)=>{if($ instanceof k2)return P6($.schema);else if($ instanceof o1)return P6($.innerType());else if($ instanceof v2)return[$.value];else if($ instanceof s6)return $.options;else if($ instanceof x2)return Q0.objectValues($.enum);else if($ instanceof b2)return P6($._def.innerType);else if($ instanceof E2)return[void 0];else if($ instanceof I2)return[null];else if($ instanceof r1)return[void 0,...P6($.unwrap())];else if($ instanceof L6)return[null,...P6($.unwrap())];else if($ instanceof f9)return P6($.unwrap());else if($ instanceof y2)return P6($.unwrap());else if($ instanceof h2)return P6($._def.innerType);else return[]},y9,S2,J6,x4,b4,y5,C2,k2,v2,s6,x2,f5,o1,r1,L6,b2,h2,h4,MC,f9,y4,y2,FC,n,QC=($,X={message:`Input not instance of ${$.name}`})=>lF((G)=>G instanceof $,X),cF,rF,qC,OC,iF,ZC,RC,AC,BC,NC,VC,wC,_C,zC,DC,PC,LC,CC,TC,EC,IC,jC,SC,kC,vC,xC,bC,hC,yC,fC,gC,mC,pC,uC,dC=()=>cF().optional(),lC=()=>rF().optional(),cC=()=>iF().optional(),rC,iC;var oF=B(()=>{v9();x9();yF();X3();j4();uL=/^c[^\s-]{8,}$/i,dL=/^[0-9a-z]+$/,lL=/^[0-9A-HJKMNP-TV-Z]{26}$/i,cL=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,rL=/^[a-z0-9_-]{21}$/i,iL=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,oL=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,nL=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,aL=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,tL=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,eL=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,$C=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,XC=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,GC=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,YC=new RegExp(`^${mF}$`);l1=class l1 extends K0{_parse($){if(this._def.coerce)$.data=String($.data);if(this._getType($)!==v.string){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_type,expected:v.string,received:J.parsedType}),r}let G=new $1,Y=void 0;for(let J of this._def.checks)if(J.kind==="min"){if($.data.length<J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_small,minimum:J.value,type:"string",inclusive:!0,exact:!1,message:J.message}),G.dirty()}else if(J.kind==="max"){if($.data.length>J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_big,maximum:J.value,type:"string",inclusive:!0,exact:!1,message:J.message}),G.dirty()}else if(J.kind==="length"){let W=$.data.length>J.value,H=$.data.length<J.value;if(W||H){if(Y=this._getOrReturnCtx($,Y),W)h(Y,{code:j.too_big,maximum:J.value,type:"string",inclusive:!0,exact:!0,message:J.message});else if(H)h(Y,{code:j.too_small,minimum:J.value,type:"string",inclusive:!0,exact:!0,message:J.message});G.dirty()}}else if(J.kind==="email"){if(!nL.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"email",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="emoji"){if(!G3)G3=new RegExp(sL,"u");if(!G3.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"emoji",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="uuid"){if(!cL.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"uuid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="nanoid"){if(!rL.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"nanoid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="cuid"){if(!uL.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"cuid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="cuid2"){if(!dL.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"cuid2",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="ulid"){if(!lL.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"ulid",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="url")try{new URL($.data)}catch{Y=this._getOrReturnCtx($,Y),h(Y,{validation:"url",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="regex"){if(J.regex.lastIndex=0,!J.regex.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"regex",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="trim")$.data=$.data.trim();else if(J.kind==="includes"){if(!$.data.includes(J.value,J.position))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:{includes:J.value,position:J.position},message:J.message}),G.dirty()}else if(J.kind==="toLowerCase")$.data=$.data.toLowerCase();else if(J.kind==="toUpperCase")$.data=$.data.toUpperCase();else if(J.kind==="startsWith"){if(!$.data.startsWith(J.value))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:{startsWith:J.value},message:J.message}),G.dirty()}else if(J.kind==="endsWith"){if(!$.data.endsWith(J.value))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:{endsWith:J.value},message:J.message}),G.dirty()}else if(J.kind==="datetime"){if(!uF(J).test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:"datetime",message:J.message}),G.dirty()}else if(J.kind==="date"){if(!YC.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:"date",message:J.message}),G.dirty()}else if(J.kind==="time"){if(!JC(J).test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{code:j.invalid_string,validation:"time",message:J.message}),G.dirty()}else if(J.kind==="duration"){if(!oL.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"duration",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="ip"){if(!WC($.data,J.version))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"ip",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="jwt"){if(!HC($.data,J.alg))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"jwt",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="cidr"){if(!UC($.data,J.version))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"cidr",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="base64"){if(!XC.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"base64",code:j.invalid_string,message:J.message}),G.dirty()}else if(J.kind==="base64url"){if(!GC.test($.data))Y=this._getOrReturnCtx($,Y),h(Y,{validation:"base64url",code:j.invalid_string,message:J.message}),G.dirty()}else Q0.assertNever(J);return{status:G.value,value:$.data}}_regex($,X,G){return this.refinement((Y)=>$.test(Y),{validation:X,code:j.invalid_string,...m.errToObj(G)})}_addCheck($){return new l1({...this._def,checks:[...this._def.checks,$]})}email($){return this._addCheck({kind:"email",...m.errToObj($)})}url($){return this._addCheck({kind:"url",...m.errToObj($)})}emoji($){return this._addCheck({kind:"emoji",...m.errToObj($)})}uuid($){return this._addCheck({kind:"uuid",...m.errToObj($)})}nanoid($){return this._addCheck({kind:"nanoid",...m.errToObj($)})}cuid($){return this._addCheck({kind:"cuid",...m.errToObj($)})}cuid2($){return this._addCheck({kind:"cuid2",...m.errToObj($)})}ulid($){return this._addCheck({kind:"ulid",...m.errToObj($)})}base64($){return this._addCheck({kind:"base64",...m.errToObj($)})}base64url($){return this._addCheck({kind:"base64url",...m.errToObj($)})}jwt($){return this._addCheck({kind:"jwt",...m.errToObj($)})}ip($){return this._addCheck({kind:"ip",...m.errToObj($)})}cidr($){return this._addCheck({kind:"cidr",...m.errToObj($)})}datetime($){if(typeof $==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:$});return this._addCheck({kind:"datetime",precision:typeof $?.precision>"u"?null:$?.precision,offset:$?.offset??!1,local:$?.local??!1,...m.errToObj($?.message)})}date($){return this._addCheck({kind:"date",message:$})}time($){if(typeof $==="string")return this._addCheck({kind:"time",precision:null,message:$});return this._addCheck({kind:"time",precision:typeof $?.precision>"u"?null:$?.precision,...m.errToObj($?.message)})}duration($){return this._addCheck({kind:"duration",...m.errToObj($)})}regex($,X){return this._addCheck({kind:"regex",regex:$,...m.errToObj(X)})}includes($,X){return this._addCheck({kind:"includes",value:$,position:X?.position,...m.errToObj(X?.message)})}startsWith($,X){return this._addCheck({kind:"startsWith",value:$,...m.errToObj(X)})}endsWith($,X){return this._addCheck({kind:"endsWith",value:$,...m.errToObj(X)})}min($,X){return this._addCheck({kind:"min",value:$,...m.errToObj(X)})}max($,X){return this._addCheck({kind:"max",value:$,...m.errToObj(X)})}length($,X){return this._addCheck({kind:"length",value:$,...m.errToObj(X)})}nonempty($){return this.min(1,m.errToObj($))}trim(){return new l1({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new l1({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new l1({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(($)=>$.kind==="datetime")}get isDate(){return!!this._def.checks.find(($)=>$.kind==="date")}get isTime(){return!!this._def.checks.find(($)=>$.kind==="time")}get isDuration(){return!!this._def.checks.find(($)=>$.kind==="duration")}get isEmail(){return!!this._def.checks.find(($)=>$.kind==="email")}get isURL(){return!!this._def.checks.find(($)=>$.kind==="url")}get isEmoji(){return!!this._def.checks.find(($)=>$.kind==="emoji")}get isUUID(){return!!this._def.checks.find(($)=>$.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(($)=>$.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(($)=>$.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(($)=>$.kind==="cuid2")}get isULID(){return!!this._def.checks.find(($)=>$.kind==="ulid")}get isIP(){return!!this._def.checks.find(($)=>$.kind==="ip")}get isCIDR(){return!!this._def.checks.find(($)=>$.kind==="cidr")}get isBase64(){return!!this._def.checks.find(($)=>$.kind==="base64")}get isBase64url(){return!!this._def.checks.find(($)=>$.kind==="base64url")}get minLength(){let $=null;for(let X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $}get maxLength(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $}};l1.create=($)=>{return new l1({checks:[],typeName:n.ZodString,coerce:$?.coerce??!1,...Y0($)})};o6=class o6 extends K0{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse($){if(this._def.coerce)$.data=Number($.data);if(this._getType($)!==v.number){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_type,expected:v.number,received:J.parsedType}),r}let G=void 0,Y=new $1;for(let J of this._def.checks)if(J.kind==="int"){if(!Q0.isInteger($.data))G=this._getOrReturnCtx($,G),h(G,{code:j.invalid_type,expected:"integer",received:"float",message:J.message}),Y.dirty()}else if(J.kind==="min"){if(J.inclusive?$.data<J.value:$.data<=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_small,minimum:J.value,type:"number",inclusive:J.inclusive,exact:!1,message:J.message}),Y.dirty()}else if(J.kind==="max"){if(J.inclusive?$.data>J.value:$.data>=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_big,maximum:J.value,type:"number",inclusive:J.inclusive,exact:!1,message:J.message}),Y.dirty()}else if(J.kind==="multipleOf"){if(KC($.data,J.value)!==0)G=this._getOrReturnCtx($,G),h(G,{code:j.not_multiple_of,multipleOf:J.value,message:J.message}),Y.dirty()}else if(J.kind==="finite"){if(!Number.isFinite($.data))G=this._getOrReturnCtx($,G),h(G,{code:j.not_finite,message:J.message}),Y.dirty()}else Q0.assertNever(J);return{status:Y.value,value:$.data}}gte($,X){return this.setLimit("min",$,!0,m.toString(X))}gt($,X){return this.setLimit("min",$,!1,m.toString(X))}lte($,X){return this.setLimit("max",$,!0,m.toString(X))}lt($,X){return this.setLimit("max",$,!1,m.toString(X))}setLimit($,X,G,Y){return new o6({...this._def,checks:[...this._def.checks,{kind:$,value:X,inclusive:G,message:m.toString(Y)}]})}_addCheck($){return new o6({...this._def,checks:[...this._def.checks,$]})}int($){return this._addCheck({kind:"int",message:m.toString($)})}positive($){return this._addCheck({kind:"min",value:0,inclusive:!1,message:m.toString($)})}negative($){return this._addCheck({kind:"max",value:0,inclusive:!1,message:m.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:0,inclusive:!0,message:m.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:0,inclusive:!0,message:m.toString($)})}multipleOf($,X){return this._addCheck({kind:"multipleOf",value:$,message:m.toString(X)})}finite($){return this._addCheck({kind:"finite",message:m.toString($)})}safe($){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:m.toString($)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:m.toString($)})}get minValue(){let $=null;for(let X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $}get maxValue(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $}get isInt(){return!!this._def.checks.find(($)=>$.kind==="int"||$.kind==="multipleOf"&&Q0.isInteger($.value))}get isFinite(){let $=null,X=null;for(let G of this._def.checks)if(G.kind==="finite"||G.kind==="int"||G.kind==="multipleOf")return!0;else if(G.kind==="min"){if(X===null||G.value>X)X=G.value}else if(G.kind==="max"){if($===null||G.value<$)$=G.value}return Number.isFinite(X)&&Number.isFinite($)}};o6.create=($)=>{return new o6({checks:[],typeName:n.ZodNumber,coerce:$?.coerce||!1,...Y0($)})};n6=class n6 extends K0{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse($){if(this._def.coerce)try{$.data=BigInt($.data)}catch{return this._getInvalidInput($)}if(this._getType($)!==v.bigint)return this._getInvalidInput($);let G=void 0,Y=new $1;for(let J of this._def.checks)if(J.kind==="min"){if(J.inclusive?$.data<J.value:$.data<=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_small,type:"bigint",minimum:J.value,inclusive:J.inclusive,message:J.message}),Y.dirty()}else if(J.kind==="max"){if(J.inclusive?$.data>J.value:$.data>=J.value)G=this._getOrReturnCtx($,G),h(G,{code:j.too_big,type:"bigint",maximum:J.value,inclusive:J.inclusive,message:J.message}),Y.dirty()}else if(J.kind==="multipleOf"){if($.data%J.value!==BigInt(0))G=this._getOrReturnCtx($,G),h(G,{code:j.not_multiple_of,multipleOf:J.value,message:J.message}),Y.dirty()}else Q0.assertNever(J);return{status:Y.value,value:$.data}}_getInvalidInput($){let X=this._getOrReturnCtx($);return h(X,{code:j.invalid_type,expected:v.bigint,received:X.parsedType}),r}gte($,X){return this.setLimit("min",$,!0,m.toString(X))}gt($,X){return this.setLimit("min",$,!1,m.toString(X))}lte($,X){return this.setLimit("max",$,!0,m.toString(X))}lt($,X){return this.setLimit("max",$,!1,m.toString(X))}setLimit($,X,G,Y){return new n6({...this._def,checks:[...this._def.checks,{kind:$,value:X,inclusive:G,message:m.toString(Y)}]})}_addCheck($){return new n6({...this._def,checks:[...this._def.checks,$]})}positive($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:m.toString($)})}negative($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:m.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:m.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:m.toString($)})}multipleOf($,X){return this._addCheck({kind:"multipleOf",value:$,message:m.toString(X)})}get minValue(){let $=null;for(let X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $}get maxValue(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $}};n6.create=($)=>{return new n6({checks:[],typeName:n.ZodBigInt,coerce:$?.coerce??!1,...Y0($)})};T2=class T2 extends K0{_parse($){if(this._def.coerce)$.data=Boolean($.data);if(this._getType($)!==v.boolean){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.boolean,received:G.parsedType}),r}return q1($.data)}};T2.create=($)=>{return new T2({typeName:n.ZodBoolean,coerce:$?.coerce||!1,...Y0($)})};b5=class b5 extends K0{_parse($){if(this._def.coerce)$.data=new Date($.data);if(this._getType($)!==v.date){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_type,expected:v.date,received:J.parsedType}),r}if(Number.isNaN($.data.getTime())){let J=this._getOrReturnCtx($);return h(J,{code:j.invalid_date}),r}let G=new $1,Y=void 0;for(let J of this._def.checks)if(J.kind==="min"){if($.data.getTime()<J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_small,message:J.message,inclusive:!0,exact:!1,minimum:J.value,type:"date"}),G.dirty()}else if(J.kind==="max"){if($.data.getTime()>J.value)Y=this._getOrReturnCtx($,Y),h(Y,{code:j.too_big,message:J.message,inclusive:!0,exact:!1,maximum:J.value,type:"date"}),G.dirty()}else Q0.assertNever(J);return{status:G.value,value:new Date($.data.getTime())}}_addCheck($){return new b5({...this._def,checks:[...this._def.checks,$]})}min($,X){return this._addCheck({kind:"min",value:$.getTime(),message:m.toString(X)})}max($,X){return this._addCheck({kind:"max",value:$.getTime(),message:m.toString(X)})}get minDate(){let $=null;for(let X of this._def.checks)if(X.kind==="min"){if($===null||X.value>$)$=X.value}return $!=null?new Date($):null}get maxDate(){let $=null;for(let X of this._def.checks)if(X.kind==="max"){if($===null||X.value<$)$=X.value}return $!=null?new Date($):null}};b5.create=($)=>{return new b5({checks:[],coerce:$?.coerce||!1,typeName:n.ZodDate,...Y0($)})};k4=class k4 extends K0{_parse($){if(this._getType($)!==v.symbol){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.symbol,received:G.parsedType}),r}return q1($.data)}};k4.create=($)=>{return new k4({typeName:n.ZodSymbol,...Y0($)})};E2=class E2 extends K0{_parse($){if(this._getType($)!==v.undefined){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.undefined,received:G.parsedType}),r}return q1($.data)}};E2.create=($)=>{return new E2({typeName:n.ZodUndefined,...Y0($)})};I2=class I2 extends K0{_parse($){if(this._getType($)!==v.null){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.null,received:G.parsedType}),r}return q1($.data)}};I2.create=($)=>{return new I2({typeName:n.ZodNull,...Y0($)})};h5=class h5 extends K0{constructor(){super(...arguments);this._any=!0}_parse($){return q1($.data)}};h5.create=($)=>{return new h5({typeName:n.ZodAny,...Y0($)})};i6=class i6 extends K0{constructor(){super(...arguments);this._unknown=!0}_parse($){return q1($.data)}};i6.create=($)=>{return new i6({typeName:n.ZodUnknown,...Y0($)})};Y6=class Y6 extends K0{_parse($){let X=this._getOrReturnCtx($);return h(X,{code:j.invalid_type,expected:v.never,received:X.parsedType}),r}};Y6.create=($)=>{return new Y6({typeName:n.ZodNever,...Y0($)})};v4=class v4 extends K0{_parse($){if(this._getType($)!==v.undefined){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.void,received:G.parsedType}),r}return q1($.data)}};v4.create=($)=>{return new v4({typeName:n.ZodVoid,...Y0($)})};c1=class c1 extends K0{_parse($){let{ctx:X,status:G}=this._processInputParams($),Y=this._def;if(X.parsedType!==v.array)return h(X,{code:j.invalid_type,expected:v.array,received:X.parsedType}),r;if(Y.exactLength!==null){let W=X.data.length>Y.exactLength.value,H=X.data.length<Y.exactLength.value;if(W||H)h(X,{code:W?j.too_big:j.too_small,minimum:H?Y.exactLength.value:void 0,maximum:W?Y.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:Y.exactLength.message}),G.dirty()}if(Y.minLength!==null){if(X.data.length<Y.minLength.value)h(X,{code:j.too_small,minimum:Y.minLength.value,type:"array",inclusive:!0,exact:!1,message:Y.minLength.message}),G.dirty()}if(Y.maxLength!==null){if(X.data.length>Y.maxLength.value)h(X,{code:j.too_big,maximum:Y.maxLength.value,type:"array",inclusive:!0,exact:!1,message:Y.maxLength.message}),G.dirty()}if(X.common.async)return Promise.all([...X.data].map((W,H)=>{return Y.type._parseAsync(new i1(X,W,X.path,H))})).then((W)=>{return $1.mergeArray(G,W)});let J=[...X.data].map((W,H)=>{return Y.type._parseSync(new i1(X,W,X.path,H))});return $1.mergeArray(G,J)}get element(){return this._def.type}min($,X){return new c1({...this._def,minLength:{value:$,message:m.toString(X)}})}max($,X){return new c1({...this._def,maxLength:{value:$,message:m.toString(X)}})}length($,X){return new c1({...this._def,exactLength:{value:$,message:m.toString(X)}})}nonempty($){return this.min(1,$)}};c1.create=($,X)=>{return new c1({type:$,minLength:null,maxLength:null,exactLength:null,typeName:n.ZodArray,...Y0(X)})};S0=class S0 extends K0{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let $=this._def.shape(),X=Q0.objectKeys($);return this._cached={shape:$,keys:X},this._cached}_parse($){if(this._getType($)!==v.object){let M=this._getOrReturnCtx($);return h(M,{code:j.invalid_type,expected:v.object,received:M.parsedType}),r}let{status:G,ctx:Y}=this._processInputParams($),{shape:J,keys:W}=this._getCached(),H=[];if(!(this._def.catchall instanceof Y6&&this._def.unknownKeys==="strip")){for(let M in Y.data)if(!W.includes(M))H.push(M)}let U=[];for(let M of W){let F=J[M],Q=Y.data[M];U.push({key:{status:"valid",value:M},value:F._parse(new i1(Y,Q,Y.path,M)),alwaysSet:M in Y.data})}if(this._def.catchall instanceof Y6){let M=this._def.unknownKeys;if(M==="passthrough")for(let F of H)U.push({key:{status:"valid",value:F},value:{status:"valid",value:Y.data[F]}});else if(M==="strict"){if(H.length>0)h(Y,{code:j.unrecognized_keys,keys:H}),G.dirty()}else if(M==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let M=this._def.catchall;for(let F of H){let Q=Y.data[F];U.push({key:{status:"valid",value:F},value:M._parse(new i1(Y,Q,Y.path,F)),alwaysSet:F in Y.data})}}if(Y.common.async)return Promise.resolve().then(async()=>{let M=[];for(let F of U){let Q=await F.key,q=await F.value;M.push({key:Q,value:q,alwaysSet:F.alwaysSet})}return M}).then((M)=>{return $1.mergeObjectSync(G,M)});else return $1.mergeObjectSync(G,U)}get shape(){return this._def.shape()}strict($){return m.errToObj,new S0({...this._def,unknownKeys:"strict",...$!==void 0?{errorMap:(X,G)=>{let Y=this._def.errorMap?.(X,G).message??G.defaultError;if(X.code==="unrecognized_keys")return{message:m.errToObj($).message??Y};return{message:Y}}}:{}})}strip(){return new S0({...this._def,unknownKeys:"strip"})}passthrough(){return new S0({...this._def,unknownKeys:"passthrough"})}extend($){return new S0({...this._def,shape:()=>({...this._def.shape(),...$})})}merge($){return new S0({unknownKeys:$._def.unknownKeys,catchall:$._def.catchall,shape:()=>({...this._def.shape(),...$._def.shape()}),typeName:n.ZodObject})}setKey($,X){return this.augment({[$]:X})}catchall($){return new S0({...this._def,catchall:$})}pick($){let X={};for(let G of Q0.objectKeys($))if($[G]&&this.shape[G])X[G]=this.shape[G];return new S0({...this._def,shape:()=>X})}omit($){let X={};for(let G of Q0.objectKeys(this.shape))if(!$[G])X[G]=this.shape[G];return new S0({...this._def,shape:()=>X})}deepPartial(){return L2(this)}partial($){let X={};for(let G of Q0.objectKeys(this.shape)){let Y=this.shape[G];if($&&!$[G])X[G]=Y;else X[G]=Y.optional()}return new S0({...this._def,shape:()=>X})}required($){let X={};for(let G of Q0.objectKeys(this.shape))if($&&!$[G])X[G]=this.shape[G];else{let J=this.shape[G];while(J instanceof r1)J=J._def.innerType;X[G]=J}return new S0({...this._def,shape:()=>X})}keyof(){return dF(Q0.objectKeys(this.shape))}};S0.create=($,X)=>{return new S0({shape:()=>$,unknownKeys:"strip",catchall:Y6.create(),typeName:n.ZodObject,...Y0(X)})};S0.strictCreate=($,X)=>{return new S0({shape:()=>$,unknownKeys:"strict",catchall:Y6.create(),typeName:n.ZodObject,...Y0(X)})};S0.lazycreate=($,X)=>{return new S0({shape:$,unknownKeys:"strip",catchall:Y6.create(),typeName:n.ZodObject,...Y0(X)})};j2=class j2 extends K0{_parse($){let{ctx:X}=this._processInputParams($),G=this._def.options;function Y(J){for(let H of J)if(H.result.status==="valid")return H.result;for(let H of J)if(H.result.status==="dirty")return X.common.issues.push(...H.ctx.common.issues),H.result;let W=J.map((H)=>new Q1(H.ctx.common.issues));return h(X,{code:j.invalid_union,unionErrors:W}),r}if(X.common.async)return Promise.all(G.map(async(J)=>{let W={...X,common:{...X.common,issues:[]},parent:null};return{result:await J._parseAsync({data:X.data,path:X.path,parent:W}),ctx:W}})).then(Y);else{let J=void 0,W=[];for(let U of G){let M={...X,common:{...X.common,issues:[]},parent:null},F=U._parseSync({data:X.data,path:X.path,parent:M});if(F.status==="valid")return F;else if(F.status==="dirty"&&!J)J={result:F,ctx:M};if(M.common.issues.length)W.push(M.common.issues)}if(J)return X.common.issues.push(...J.ctx.common.issues),J.result;let H=W.map((U)=>new Q1(U));return h(X,{code:j.invalid_union,unionErrors:H}),r}}get options(){return this._def.options}};j2.create=($,X)=>{return new j2({options:$,typeName:n.ZodUnion,...Y0(X)})};y9=class y9 extends K0{_parse($){let{ctx:X}=this._processInputParams($);if(X.parsedType!==v.object)return h(X,{code:j.invalid_type,expected:v.object,received:X.parsedType}),r;let G=this.discriminator,Y=X.data[G],J=this.optionsMap.get(Y);if(!J)return h(X,{code:j.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[G]}),r;if(X.common.async)return J._parseAsync({data:X.data,path:X.path,parent:X});else return J._parseSync({data:X.data,path:X.path,parent:X})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create($,X,G){let Y=new Map;for(let J of X){let W=P6(J.shape[$]);if(!W.length)throw Error(`A discriminator value for key \`${$}\` could not be extracted from all schema options`);for(let H of W){if(Y.has(H))throw Error(`Discriminator property ${String($)} has duplicate value ${String(H)}`);Y.set(H,J)}}return new y9({typeName:n.ZodDiscriminatedUnion,discriminator:$,options:X,optionsMap:Y,...Y0(G)})}};S2=class S2 extends K0{_parse($){let{status:X,ctx:G}=this._processInputParams($),Y=(J,W)=>{if(b9(J)||b9(W))return r;let H=Y3(J.value,W.value);if(!H.valid)return h(G,{code:j.invalid_intersection_types}),r;if(h9(J)||h9(W))X.dirty();return{status:X.value,value:H.data}};if(G.common.async)return Promise.all([this._def.left._parseAsync({data:G.data,path:G.path,parent:G}),this._def.right._parseAsync({data:G.data,path:G.path,parent:G})]).then(([J,W])=>Y(J,W));else return Y(this._def.left._parseSync({data:G.data,path:G.path,parent:G}),this._def.right._parseSync({data:G.data,path:G.path,parent:G}))}};S2.create=($,X,G)=>{return new S2({left:$,right:X,typeName:n.ZodIntersection,...Y0(G)})};J6=class J6 extends K0{_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.array)return h(G,{code:j.invalid_type,expected:v.array,received:G.parsedType}),r;if(G.data.length<this._def.items.length)return h(G,{code:j.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r;if(!this._def.rest&&G.data.length>this._def.items.length)h(G,{code:j.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),X.dirty();let J=[...G.data].map((W,H)=>{let U=this._def.items[H]||this._def.rest;if(!U)return null;return U._parse(new i1(G,W,G.path,H))}).filter((W)=>!!W);if(G.common.async)return Promise.all(J).then((W)=>{return $1.mergeArray(X,W)});else return $1.mergeArray(X,J)}get items(){return this._def.items}rest($){return new J6({...this._def,rest:$})}};J6.create=($,X)=>{if(!Array.isArray($))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new J6({items:$,typeName:n.ZodTuple,rest:null,...Y0(X)})};x4=class x4 extends K0{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.object)return h(G,{code:j.invalid_type,expected:v.object,received:G.parsedType}),r;let Y=[],J=this._def.keyType,W=this._def.valueType;for(let H in G.data)Y.push({key:J._parse(new i1(G,H,G.path,H)),value:W._parse(new i1(G,G.data[H],G.path,H)),alwaysSet:H in G.data});if(G.common.async)return $1.mergeObjectAsync(X,Y);else return $1.mergeObjectSync(X,Y)}get element(){return this._def.valueType}static create($,X,G){if(X instanceof K0)return new x4({keyType:$,valueType:X,typeName:n.ZodRecord,...Y0(G)});return new x4({keyType:l1.create(),valueType:$,typeName:n.ZodRecord,...Y0(X)})}};b4=class b4 extends K0{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.map)return h(G,{code:j.invalid_type,expected:v.map,received:G.parsedType}),r;let Y=this._def.keyType,J=this._def.valueType,W=[...G.data.entries()].map(([H,U],M)=>{return{key:Y._parse(new i1(G,H,G.path,[M,"key"])),value:J._parse(new i1(G,U,G.path,[M,"value"]))}});if(G.common.async){let H=new Map;return Promise.resolve().then(async()=>{for(let U of W){let M=await U.key,F=await U.value;if(M.status==="aborted"||F.status==="aborted")return r;if(M.status==="dirty"||F.status==="dirty")X.dirty();H.set(M.value,F.value)}return{status:X.value,value:H}})}else{let H=new Map;for(let U of W){let{key:M,value:F}=U;if(M.status==="aborted"||F.status==="aborted")return r;if(M.status==="dirty"||F.status==="dirty")X.dirty();H.set(M.value,F.value)}return{status:X.value,value:H}}}};b4.create=($,X,G)=>{return new b4({valueType:X,keyType:$,typeName:n.ZodMap,...Y0(G)})};y5=class y5 extends K0{_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.parsedType!==v.set)return h(G,{code:j.invalid_type,expected:v.set,received:G.parsedType}),r;let Y=this._def;if(Y.minSize!==null){if(G.data.size<Y.minSize.value)h(G,{code:j.too_small,minimum:Y.minSize.value,type:"set",inclusive:!0,exact:!1,message:Y.minSize.message}),X.dirty()}if(Y.maxSize!==null){if(G.data.size>Y.maxSize.value)h(G,{code:j.too_big,maximum:Y.maxSize.value,type:"set",inclusive:!0,exact:!1,message:Y.maxSize.message}),X.dirty()}let J=this._def.valueType;function W(U){let M=new Set;for(let F of U){if(F.status==="aborted")return r;if(F.status==="dirty")X.dirty();M.add(F.value)}return{status:X.value,value:M}}let H=[...G.data.values()].map((U,M)=>J._parse(new i1(G,U,G.path,M)));if(G.common.async)return Promise.all(H).then((U)=>W(U));else return W(H)}min($,X){return new y5({...this._def,minSize:{value:$,message:m.toString(X)}})}max($,X){return new y5({...this._def,maxSize:{value:$,message:m.toString(X)}})}size($,X){return this.min($,X).max($,X)}nonempty($){return this.min(1,$)}};y5.create=($,X)=>{return new y5({valueType:$,minSize:null,maxSize:null,typeName:n.ZodSet,...Y0(X)})};C2=class C2 extends K0{constructor(){super(...arguments);this.validate=this.implement}_parse($){let{ctx:X}=this._processInputParams($);if(X.parsedType!==v.function)return h(X,{code:j.invalid_type,expected:v.function,received:X.parsedType}),r;function G(H,U){return S4({data:H,path:X.path,errorMaps:[X.common.contextualErrorMap,X.schemaErrorMap,D2(),D6].filter((M)=>!!M),issueData:{code:j.invalid_arguments,argumentsError:U}})}function Y(H,U){return S4({data:H,path:X.path,errorMaps:[X.common.contextualErrorMap,X.schemaErrorMap,D2(),D6].filter((M)=>!!M),issueData:{code:j.invalid_return_type,returnTypeError:U}})}let J={errorMap:X.common.contextualErrorMap},W=X.data;if(this._def.returns instanceof f5){let H=this;return q1(async function(...U){let M=new Q1([]),F=await H._def.args.parseAsync(U,J).catch((R)=>{throw M.addIssue(G(U,R)),M}),Q=await Reflect.apply(W,this,F);return await H._def.returns._def.type.parseAsync(Q,J).catch((R)=>{throw M.addIssue(Y(Q,R)),M})})}else{let H=this;return q1(function(...U){let M=H._def.args.safeParse(U,J);if(!M.success)throw new Q1([G(U,M.error)]);let F=Reflect.apply(W,this,M.data),Q=H._def.returns.safeParse(F,J);if(!Q.success)throw new Q1([Y(F,Q.error)]);return Q.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...$){return new C2({...this._def,args:J6.create($).rest(i6.create())})}returns($){return new C2({...this._def,returns:$})}implement($){return this.parse($)}strictImplement($){return this.parse($)}static create($,X,G){return new C2({args:$?$:J6.create([]).rest(i6.create()),returns:X||i6.create(),typeName:n.ZodFunction,...Y0(G)})}};k2=class k2 extends K0{get schema(){return this._def.getter()}_parse($){let{ctx:X}=this._processInputParams($);return this._def.getter()._parse({data:X.data,path:X.path,parent:X})}};k2.create=($,X)=>{return new k2({getter:$,typeName:n.ZodLazy,...Y0(X)})};v2=class v2 extends K0{_parse($){if($.data!==this._def.value){let X=this._getOrReturnCtx($);return h(X,{received:X.data,code:j.invalid_literal,expected:this._def.value}),r}return{status:"valid",value:$.data}}get value(){return this._def.value}};v2.create=($,X)=>{return new v2({value:$,typeName:n.ZodLiteral,...Y0(X)})};s6=class s6 extends K0{_parse($){if(typeof $.data!=="string"){let X=this._getOrReturnCtx($),G=this._def.values;return h(X,{expected:Q0.joinValues(G),received:X.parsedType,code:j.invalid_type}),r}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has($.data)){let X=this._getOrReturnCtx($),G=this._def.values;return h(X,{received:X.data,code:j.invalid_enum_value,options:G}),r}return q1($.data)}get options(){return this._def.values}get enum(){let $={};for(let X of this._def.values)$[X]=X;return $}get Values(){let $={};for(let X of this._def.values)$[X]=X;return $}get Enum(){let $={};for(let X of this._def.values)$[X]=X;return $}extract($,X=this._def){return s6.create($,{...this._def,...X})}exclude($,X=this._def){return s6.create(this.options.filter((G)=>!$.includes(G)),{...this._def,...X})}};s6.create=dF;x2=class x2 extends K0{_parse($){let X=Q0.getValidEnumValues(this._def.values),G=this._getOrReturnCtx($);if(G.parsedType!==v.string&&G.parsedType!==v.number){let Y=Q0.objectValues(X);return h(G,{expected:Q0.joinValues(Y),received:G.parsedType,code:j.invalid_type}),r}if(!this._cache)this._cache=new Set(Q0.getValidEnumValues(this._def.values));if(!this._cache.has($.data)){let Y=Q0.objectValues(X);return h(G,{received:G.data,code:j.invalid_enum_value,options:Y}),r}return q1($.data)}get enum(){return this._def.values}};x2.create=($,X)=>{return new x2({values:$,typeName:n.ZodNativeEnum,...Y0(X)})};f5=class f5 extends K0{unwrap(){return this._def.type}_parse($){let{ctx:X}=this._processInputParams($);if(X.parsedType!==v.promise&&X.common.async===!1)return h(X,{code:j.invalid_type,expected:v.promise,received:X.parsedType}),r;let G=X.parsedType===v.promise?X.data:Promise.resolve(X.data);return q1(G.then((Y)=>{return this._def.type.parseAsync(Y,{path:X.path,errorMap:X.common.contextualErrorMap})}))}};f5.create=($,X)=>{return new f5({type:$,typeName:n.ZodPromise,...Y0(X)})};o1=class o1 extends K0{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===n.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse($){let{status:X,ctx:G}=this._processInputParams($),Y=this._def.effect||null,J={addIssue:(W)=>{if(h(G,W),W.fatal)X.abort();else X.dirty()},get path(){return G.path}};if(J.addIssue=J.addIssue.bind(J),Y.type==="preprocess"){let W=Y.transform(G.data,J);if(G.common.async)return Promise.resolve(W).then(async(H)=>{if(X.value==="aborted")return r;let U=await this._def.schema._parseAsync({data:H,path:G.path,parent:G});if(U.status==="aborted")return r;if(U.status==="dirty")return x5(U.value);if(X.value==="dirty")return x5(U.value);return U});else{if(X.value==="aborted")return r;let H=this._def.schema._parseSync({data:W,path:G.path,parent:G});if(H.status==="aborted")return r;if(H.status==="dirty")return x5(H.value);if(X.value==="dirty")return x5(H.value);return H}}if(Y.type==="refinement"){let W=(H)=>{let U=Y.refinement(H,J);if(G.common.async)return Promise.resolve(U);if(U instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return H};if(G.common.async===!1){let H=this._def.schema._parseSync({data:G.data,path:G.path,parent:G});if(H.status==="aborted")return r;if(H.status==="dirty")X.dirty();return W(H.value),{status:X.value,value:H.value}}else return this._def.schema._parseAsync({data:G.data,path:G.path,parent:G}).then((H)=>{if(H.status==="aborted")return r;if(H.status==="dirty")X.dirty();return W(H.value).then(()=>{return{status:X.value,value:H.value}})})}if(Y.type==="transform")if(G.common.async===!1){let W=this._def.schema._parseSync({data:G.data,path:G.path,parent:G});if(!r6(W))return r;let H=Y.transform(W.value,J);if(H instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:X.value,value:H}}else return this._def.schema._parseAsync({data:G.data,path:G.path,parent:G}).then((W)=>{if(!r6(W))return r;return Promise.resolve(Y.transform(W.value,J)).then((H)=>({status:X.value,value:H}))});Q0.assertNever(Y)}};o1.create=($,X,G)=>{return new o1({schema:$,typeName:n.ZodEffects,effect:X,...Y0(G)})};o1.createWithPreprocess=($,X,G)=>{return new o1({schema:X,effect:{type:"preprocess",transform:$},typeName:n.ZodEffects,...Y0(G)})};r1=class r1 extends K0{_parse($){if(this._getType($)===v.undefined)return q1(void 0);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}};r1.create=($,X)=>{return new r1({innerType:$,typeName:n.ZodOptional,...Y0(X)})};L6=class L6 extends K0{_parse($){if(this._getType($)===v.null)return q1(null);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}};L6.create=($,X)=>{return new L6({innerType:$,typeName:n.ZodNullable,...Y0(X)})};b2=class b2 extends K0{_parse($){let{ctx:X}=this._processInputParams($),G=X.data;if(X.parsedType===v.undefined)G=this._def.defaultValue();return this._def.innerType._parse({data:G,path:X.path,parent:X})}removeDefault(){return this._def.innerType}};b2.create=($,X)=>{return new b2({innerType:$,typeName:n.ZodDefault,defaultValue:typeof X.default==="function"?X.default:()=>X.default,...Y0(X)})};h2=class h2 extends K0{_parse($){let{ctx:X}=this._processInputParams($),G={...X,common:{...X.common,issues:[]}},Y=this._def.innerType._parse({data:G.data,path:G.path,parent:{...G}});if(P2(Y))return Y.then((J)=>{return{status:"valid",value:J.status==="valid"?J.value:this._def.catchValue({get error(){return new Q1(G.common.issues)},input:G.data})}});else return{status:"valid",value:Y.status==="valid"?Y.value:this._def.catchValue({get error(){return new Q1(G.common.issues)},input:G.data})}}removeCatch(){return this._def.innerType}};h2.create=($,X)=>{return new h2({innerType:$,typeName:n.ZodCatch,catchValue:typeof X.catch==="function"?X.catch:()=>X.catch,...Y0(X)})};h4=class h4 extends K0{_parse($){if(this._getType($)!==v.nan){let G=this._getOrReturnCtx($);return h(G,{code:j.invalid_type,expected:v.nan,received:G.parsedType}),r}return{status:"valid",value:$.data}}};h4.create=($)=>{return new h4({typeName:n.ZodNaN,...Y0($)})};MC=Symbol("zod_brand");f9=class f9 extends K0{_parse($){let{ctx:X}=this._processInputParams($),G=X.data;return this._def.type._parse({data:G,path:X.path,parent:X})}unwrap(){return this._def.type}};y4=class y4 extends K0{_parse($){let{status:X,ctx:G}=this._processInputParams($);if(G.common.async)return(async()=>{let J=await this._def.in._parseAsync({data:G.data,path:G.path,parent:G});if(J.status==="aborted")return r;if(J.status==="dirty")return X.dirty(),x5(J.value);else return this._def.out._parseAsync({data:J.value,path:G.path,parent:G})})();else{let Y=this._def.in._parseSync({data:G.data,path:G.path,parent:G});if(Y.status==="aborted")return r;if(Y.status==="dirty")return X.dirty(),{status:"dirty",value:Y.value};else return this._def.out._parseSync({data:Y.value,path:G.path,parent:G})}}static create($,X){return new y4({in:$,out:X,typeName:n.ZodPipeline})}};y2=class y2 extends K0{_parse($){let X=this._def.innerType._parse($),G=(Y)=>{if(r6(Y))Y.value=Object.freeze(Y.value);return Y};return P2(X)?X.then((Y)=>G(Y)):G(X)}unwrap(){return this._def.innerType}};y2.create=($,X)=>{return new y2({innerType:$,typeName:n.ZodReadonly,...Y0(X)})};FC={object:S0.lazycreate};(function($){$.ZodString="ZodString",$.ZodNumber="ZodNumber",$.ZodNaN="ZodNaN",$.ZodBigInt="ZodBigInt",$.ZodBoolean="ZodBoolean",$.ZodDate="ZodDate",$.ZodSymbol="ZodSymbol",$.ZodUndefined="ZodUndefined",$.ZodNull="ZodNull",$.ZodAny="ZodAny",$.ZodUnknown="ZodUnknown",$.ZodNever="ZodNever",$.ZodVoid="ZodVoid",$.ZodArray="ZodArray",$.ZodObject="ZodObject",$.ZodUnion="ZodUnion",$.ZodDiscriminatedUnion="ZodDiscriminatedUnion",$.ZodIntersection="ZodIntersection",$.ZodTuple="ZodTuple",$.ZodRecord="ZodRecord",$.ZodMap="ZodMap",$.ZodSet="ZodSet",$.ZodFunction="ZodFunction",$.ZodLazy="ZodLazy",$.ZodLiteral="ZodLiteral",$.ZodEnum="ZodEnum",$.ZodEffects="ZodEffects",$.ZodNativeEnum="ZodNativeEnum",$.ZodOptional="ZodOptional",$.ZodNullable="ZodNullable",$.ZodDefault="ZodDefault",$.ZodCatch="ZodCatch",$.ZodPromise="ZodPromise",$.ZodBranded="ZodBranded",$.ZodPipeline="ZodPipeline",$.ZodReadonly="ZodReadonly"})(n||(n={}));cF=l1.create,rF=o6.create,qC=h4.create,OC=n6.create,iF=T2.create,ZC=b5.create,RC=k4.create,AC=E2.create,BC=I2.create,NC=h5.create,VC=i6.create,wC=Y6.create,_C=v4.create,zC=c1.create,DC=S0.create,PC=S0.strictCreate,LC=j2.create,CC=y9.create,TC=S2.create,EC=J6.create,IC=x4.create,jC=b4.create,SC=y5.create,kC=C2.create,vC=k2.create,xC=v2.create,bC=s6.create,hC=x2.create,yC=f5.create,fC=o1.create,gC=r1.create,mC=L6.create,pC=o1.createWithPreprocess,uC=y4.create,rC={string:($)=>l1.create({...$,coerce:!0}),number:($)=>o6.create({...$,coerce:!0}),boolean:($)=>T2.create({...$,coerce:!0}),bigint:($)=>n6.create({...$,coerce:!0}),date:($)=>b5.create({...$,coerce:!0})},iC=r});var K={};v8(K,{void:()=>_C,util:()=>Q0,unknown:()=>VC,union:()=>LC,undefined:()=>AC,tuple:()=>EC,transformer:()=>fC,symbol:()=>RC,string:()=>cF,strictObject:()=>PC,setErrorMap:()=>mL,set:()=>SC,record:()=>IC,quotelessJson:()=>fL,promise:()=>yC,preprocess:()=>pC,pipeline:()=>uC,ostring:()=>dC,optional:()=>gC,onumber:()=>lC,oboolean:()=>cC,objectUtil:()=>eX,object:()=>DC,number:()=>rF,nullable:()=>mC,null:()=>BC,never:()=>wC,nativeEnum:()=>hC,nan:()=>qC,map:()=>jC,makeIssue:()=>S4,literal:()=>xC,lazy:()=>vC,late:()=>FC,isValid:()=>r6,isDirty:()=>h9,isAsync:()=>P2,isAborted:()=>b9,intersection:()=>TC,instanceof:()=>QC,getParsedType:()=>G6,getErrorMap:()=>D2,function:()=>kC,enum:()=>bC,effect:()=>fC,discriminatedUnion:()=>CC,defaultErrorMap:()=>D6,datetimeRegex:()=>uF,date:()=>ZC,custom:()=>lF,coerce:()=>rC,boolean:()=>iF,bigint:()=>OC,array:()=>zC,any:()=>NC,addIssueToContext:()=>h,ZodVoid:()=>v4,ZodUnknown:()=>i6,ZodUnion:()=>j2,ZodUndefined:()=>E2,ZodType:()=>K0,ZodTuple:()=>J6,ZodTransformer:()=>o1,ZodSymbol:()=>k4,ZodString:()=>l1,ZodSet:()=>y5,ZodSchema:()=>K0,ZodRecord:()=>x4,ZodReadonly:()=>y2,ZodPromise:()=>f5,ZodPipeline:()=>y4,ZodParsedType:()=>v,ZodOptional:()=>r1,ZodObject:()=>S0,ZodNumber:()=>o6,ZodNullable:()=>L6,ZodNull:()=>I2,ZodNever:()=>Y6,ZodNativeEnum:()=>x2,ZodNaN:()=>h4,ZodMap:()=>b4,ZodLiteral:()=>v2,ZodLazy:()=>k2,ZodIssueCode:()=>j,ZodIntersection:()=>S2,ZodFunction:()=>C2,ZodFirstPartyTypeKind:()=>n,ZodError:()=>Q1,ZodEnum:()=>s6,ZodEffects:()=>o1,ZodDiscriminatedUnion:()=>y9,ZodDefault:()=>b2,ZodDate:()=>b5,ZodCatch:()=>h2,ZodBranded:()=>f9,ZodBoolean:()=>T2,ZodBigInt:()=>n6,ZodArray:()=>c1,ZodAny:()=>h5,Schema:()=>K0,ParseStatus:()=>$1,OK:()=>q1,NEVER:()=>iC,INVALID:()=>r,EMPTY_PATH:()=>pL,DIRTY:()=>x5,BRAND:()=>MC});var J3=B(()=>{x9();X3();hF();j4();oF();v9()});var P1=B(()=>{J3();J3()});var nF=B(()=>{P1()});function f0($){return $ instanceof Error?$.message:String($)}function f4($){return $ instanceof Error?$:Error(String($))}var S=B(()=>{Y$();Y$();gM();EF();vF();xF();nF()});var W3=()=>{};var C6;var H3=B(()=>{S();W3();C6=K.enum(["anchor","trusted","public"])});function tF($,X){return(G)=>{let Y=$.parse(G);return X(Y)}}function T0($){let{layout:X,schema:G,...Y}=$,J={...Y,schema:G};if(X){if(J.layout={},X.component)J.layout.component=tF(G,X.component);if(X.fullscreen!==void 0)J.layout.fullscreen=X.fullscreen}return J}var tC;var eF=B(()=>{S();H3();tC=K.object({name:K.string(),description:K.string(),schema:K.any(),basePrompt:K.string().optional(),useKnowledgeContext:K.boolean().optional(),requiredPermission:C6,formatter:K.any().optional(),layout:K.object({component:K.any(),fullscreen:K.boolean().optional()}).optional(),dataSourceId:K.string().optional()})});class g4{static canGenerate($){return!!$.basePrompt&&!!$.dataSourceId&&$.dataSourceId.includes("ai-content")}static canFetch($){return!!$.dataSourceId&&!this.canGenerate($)}static canRender($){return!!$.layout?.component}static isStaticOnly($){return!this.canGenerate($)&&!this.canFetch($)}static getCapabilities($){return{canGenerate:this.canGenerate($),canFetch:this.canFetch($),canRender:this.canRender($),isStaticOnly:this.isStaticOnly($)}}static validate($){let X=[];if($.dataSourceId?.includes("ai-content")&&!$.basePrompt)X.push(`Template "${$.name}" has AI-content dataSourceId but no basePrompt. AI generation requires a basePrompt.`);if($.basePrompt&&(!$.dataSourceId||!$.dataSourceId.includes("ai-content")))X.push(`Template "${$.name}" has basePrompt but no AI-content dataSourceId. The basePrompt won't be used.`);return X}static logCapabilities($,X){let G=this.getCapabilities($),Y=this.validate($);if(X)X.debug(`Template capabilities for "${$.name}":`,{...G,errors:Y.length>0?Y:void 0})}}var $Q=()=>{};var eC,$T,XT,GT;var XQ=B(()=>{S();eC=K.enum(["site-content-preview","site-content-production"]),$T=K.object({name:K.string(),schema:K.any(),description:K.string().optional(),pluginId:K.string(),renderers:K.object({web:K.union([K.function(),K.string()]).optional()})}),XT=K.object({enableContentGeneration:K.boolean().default(!1),outputDir:K.string(),workingDir:K.string().optional(),environment:K.enum(["preview","production"]).default("preview"),siteConfig:K.object({title:K.string(),description:K.string(),url:K.string().optional()}).optional()}),GT=K.object({success:K.boolean(),routesBuilt:K.number(),errors:K.array(K.string()).optional(),warnings:K.array(K.string()).optional()})});var g1=B(()=>{eF();$Q();H3();W3();XQ()});var YT;var YQ=B(()=>{P1();YT=K.object({url:K.string(),authToken:K.string().optional()})});var m4;var JQ=B(()=>{P1();m4=K.object({success:K.boolean(),entityId:K.string().optional(),error:K.string().optional()})});var U3;var WQ=B(()=>{U3={success($){return{success:!0,...$}},failure($){return{success:!1,error:$ instanceof Error?$.message:String($)}}}});var p4;var HQ=B(()=>{p4={START:0,INIT:10,FETCH:20,PROCESS:40,GENERATE:50,EXTRACT:60,SAVE:80,COMPLETE:100}});var K3,UQ,M3,F3;var KQ=B(()=>{P1();K3=K.object({message:K.string().describe("Natural language response to the query"),summary:K.string().optional().describe("Brief summary if applicable"),topics:K.array(K.string()).optional().describe("Related topics mentioned"),sources:K.array(K.object({id:K.string(),type:K.string(),excerpt:K.string().optional(),relevance:K.number().min(0).max(1).optional()})).optional().describe("Source entities used to answer the query"),metadata:K.record(K.string(),K.unknown()).optional()}).describe("defaultQueryResponse"),UQ=K.object({message:K.string()}).describe("simpleTextResponse"),M3=K.object({success:K.boolean(),entityId:K.string().optional(),message:K.string()}).describe("createEntityResponse"),F3=K.object({success:K.boolean(),entityId:K.string(),changes:K.array(K.string()).optional(),message:K.string()}).describe("updateEntityResponse")});var g5=B(()=>{YQ();JQ();WQ();HQ();KQ()});var JT,MQ;var FQ=B(()=>{S();JT=K.object({status:K.enum(["healthy","warning","error","unknown"]),message:K.string().optional(),lastCheck:K.date().optional(),details:K.record(K.string(),K.unknown()).optional()}),MQ=K.object({name:K.string(),pluginId:K.string(),status:K.string(),health:JT.optional()})});import{McpServer as Ed,ResourceTemplate as Id}from"@modelcontextprotocol/sdk/server/mcp.js";var QQ=B(()=>{g1();S()});var qQ=B(()=>{QQ()});var g9,OQ,ZQ,RQ,Q3;var AQ=B(()=>{S();g9=K.object({interfaceType:K.string(),userId:K.string(),channelId:K.string().optional(),channelName:K.string().optional()}),OQ=K.object({success:K.literal(!0),data:K.unknown(),message:K.string().optional()}),ZQ=K.object({success:K.literal(!1),error:K.string(),code:K.string().optional()}),RQ=K.object({needsConfirmation:K.literal(!0),toolName:K.string(),description:K.string(),args:K.unknown()}),Q3=K.union([OQ,ZQ,RQ])});var BQ;var NQ=B(()=>{S();BQ=K.union([K.object({success:K.literal(!0),data:K.unknown(),message:K.string().optional()}),K.object({success:K.literal(!1),error:K.string(),code:K.string().optional()})])});var VQ=B(()=>{S()});var q3=B(()=>{qQ();AQ();NQ();VQ()});var Jl,Wl,m9,wQ,_Q,p9,O3,MT,FT;var u9=B(()=>{S();g1();g5();FQ();q3();Jl=K.object({id:K.string(),type:K.string(),version:K.string(),status:K.string()}),Wl=K.object({name:K.string(),description:K.string()}),m9=K.object({label:K.string(),url:K.string(),pluginId:K.string(),priority:K.number().default(100),visibility:C6.default("public")}),wQ=K.enum(["human","agent","admin","protocol"]),_Q=K.enum(["available","coming-soon","disabled"]),p9=K.object({id:K.string(),label:K.string(),description:K.string().optional(),href:K.string(),kind:wQ,pluginId:K.string(),priority:K.number().default(100),visibility:C6.default("public"),status:_Q.default("available")}),O3=K.object({entityType:K.string(),count:K.number()}),MT=K.object({model:K.string(),version:K.string(),uptime:K.number(),entities:K.number(),entityCounts:K.array(O3),embeddings:K.number(),ai:K.object({model:K.string(),embeddingModel:K.string()}),daemons:K.array(MQ),endpoints:K.array(m9),interactions:K.array(p9)}),FT=K.object({id:K.string(),version:K.string(),type:K.enum(["core","entity","service","interface"]),description:K.string().optional(),dependencies:K.array(K.string()).optional(),packageName:K.string()})});class f2{id;version;description;packageName;config;context;get logger(){return this.context?.logger??a0.createFresh({context:this.id})}constructor($,X,G,Y){this.id=$,this.packageName=X.name,this.version=X.version,this.description=X.description??`${X.name} plugin`,this.config=Y.parse(G)}setupMessageHandlers($){$.messaging.subscribe(`plugin:${this.id}:tool:execute`,async(X)=>{try{let{toolName:G,args:Y,progressToken:J,hasProgress:W,interfaceType:H,userId:U,channelId:M}=QT.parse(X.payload),Q=(await this.getTools()).find((O)=>O.name===G);if(!Q)return{success:!1,error:`Tool not found: ${G}`};let q={interfaceType:H,userId:U,...M&&{channelId:M},...W&&J!==void 0&&{progressToken:J,sendProgress:async(O)=>{await $.messaging.send({type:`plugin:${this.id}:progress`,payload:{progressToken:J,notification:O}})}}};return{success:!0,data:await Q.handler(Y,q)}}catch(G){if(G instanceof K.ZodError)return{success:!1,error:"Invalid tool execution request format"};return this.logger.error("Tool execution error",G),{success:!1,error:f0(G)}}}),$.messaging.subscribe(`plugin:${this.id}:resource:get`,async(X)=>{try{let{resourceUri:G}=qT.parse(X.payload),J=(await this.getResources()).find((H)=>H.uri===G);if(!J)return{success:!1,error:`Resource not found: ${G}`};return{success:!0,data:await J.handler()}}catch(G){if(G instanceof K.ZodError)return{success:!1,error:"Invalid resource get request format"};return this.logger.error("Resource fetch error",G),{success:!1,error:f0(G)}}})}async onRegister($){}async onReady($){}async ready(){await this.onReady(this.getContext())}async getCapabilities(){let $=await this.getInstructions();return{tools:await this.getTools(),resources:await this.getResources(),...$&&{instructions:$}}}async getTools(){return[]}async getResources(){return[]}async getInstructions(){return}async shutdown(){await this.onShutdown()}async onShutdown(){}getContext(){if(!this.context)throw Error(`Plugin ${this.id}: Plugin not registered yet`);return this.context}determineUserPermissionLevel($){return"public"}createProgressBridge($){if(!$)return;let X=this.context;if(!X)return;let G=this.id;return u6.from(async(Y)=>{await X.messaging.send({type:`plugin:${G}:progress`,payload:{progressToken:$,notification:{progress:Y.progress,total:Y.total,message:Y.message}}})})}}var QT,qT;var d9=B(()=>{u9();S();S();QT=K.object({toolName:K.string(),args:K.unknown(),progressToken:K.union([K.string(),K.number()]).optional(),hasProgress:K.boolean().optional(),...g9.shape}),qT=K.object({resourceUri:K.string()})});var zQ,Z3,DQ,R3,PQ,LQ,CQ,TQ,l9;var A3=B(()=>{S();zQ=K.object({id:K.string(),template:K.string(),content:K.unknown().optional(),dataQuery:K.object({entityType:K.string().optional(),template:K.string().optional(),query:K.object({id:K.string().optional(),limit:K.number().optional(),offset:K.number().optional()}).passthrough().optional()}).passthrough().optional(),order:K.number().optional()}),Z3=["primary","secondary"],DQ=K.object({show:K.boolean().default(!1),label:K.string().optional(),slot:K.enum(Z3).default("primary"),priority:K.number().min(0).max(100).default(50)}).optional(),R3=K.object({id:K.string(),path:K.string(),title:K.string().default(""),pageLabel:K.string().optional(),description:K.string().default(""),sections:K.array(zQ).default([]),layout:K.string().default("default"),fullscreen:K.boolean().optional(),pluginId:K.string().optional(),sourceEntityType:K.string().optional(),external:K.boolean().optional(),navigation:DQ}),PQ=K.object({routes:K.array(R3),pluginId:K.string()}),LQ=K.object({paths:K.array(K.string()).optional(),pluginId:K.string().optional()}),CQ=K.object({pluginId:K.string().optional()}),TQ=K.object({path:K.string()}),l9=K.object({label:K.string(),href:K.string(),priority:K.number()})});var c9,r9,i9,OT,ZT;var EQ=B(()=>{S();A3();c9=K.object({heading:K.string().describe("Main CTA heading text"),buttonText:K.string().describe("Call-to-action button text"),buttonLink:K.string().describe("URL or anchor for the CTA button")}),r9=K.object({blurb:K.string().optional().describe("Short italic subtitle under the section title")}),i9=K.object({title:K.string().describe("The site's title"),description:K.string().describe("The site's description"),url:K.string().optional().describe("Canonical site URL"),copyright:K.string().optional().describe("Copyright notice text"),logo:K.boolean().optional().describe("Whether to display logo instead of title text in header"),themeMode:K.enum(["light","dark"]).optional().describe("Default theme mode"),analyticsScript:K.string().optional().describe("Analytics script HTML"),cta:c9.optional().describe("Call-to-action configuration"),sections:K.record(K.string(),r9).optional().describe("Optional per-section blurbs, keyed by section id (e.g. 'essays', 'presentations', 'about'). Used by homepage templates that render editorial section headers.")}),OT=K.object({platform:K.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:K.string().describe("Profile or contact URL"),label:K.string().optional().describe("Optional display label")}),ZT=i9.extend({navigation:K.object({primary:K.array(l9),secondary:K.array(l9)}),copyright:K.string(),socialLinks:K.array(OT).optional().describe("Social media links from profile metadata")})});function B3($){return`preview.${$.trim().replace(/^https?:\/\//,"")}`}var IQ=B(()=>{S()});var RT,AT,BT,NT,VT;var jQ=B(()=>{S();RT=K.string(),AT=K.object({id:K.string().min(1)}).passthrough(),BT=K.object({label:K.string().min(1)}).passthrough(),NT=K.object({layouts:K.record(K.unknown()),plugin:K.function(),routes:K.array(AT),entityDisplay:K.record(BT),staticAssets:K.record(K.string()).optional()}).passthrough(),VT=K.custom(($)=>NT.safeParse($).success)});var g2=B(()=>{A3();EQ();IQ();jQ()});var SQ,kQ,u4,Sl;var o9=B(()=>{S();SQ=K.enum(["file_operations","content_operations","data_processing","batch_processing"]),kQ=K.object({pluginId:K.string().optional(),progressToken:K.union([K.string(),K.number()]).optional(),operationType:SQ,operationTarget:K.string().optional(),interfaceType:K.string().optional(),channelId:K.string().optional()}),u4=kQ.extend({rootJobId:K.string()}),Sl=K.enum(["none","skip","replace","coalesce"])});var N3,vQ,zT,DT,xQ,V3;var a6=B(()=>{S();o9();N3=K.enum(["pending","processing","completed","failed"]),vQ=K.enum(["completed","failed"]),zT=K.object({id:K.string(),type:K.string(),status:N3,data:K.unknown(),result:K.unknown().optional(),lastError:K.string().optional().nullable(),attempts:K.number(),maxRetries:K.number(),priority:K.number(),createdAt:K.date(),updatedAt:K.date(),processedAt:K.date().optional().nullable(),completedAt:K.date().optional().nullable(),failedAt:K.date().optional().nullable()}),DT=K.object({jobId:K.string(),type:K.string(),status:vQ,result:K.unknown().optional(),error:K.string().optional()}),xQ=K.object({success:K.literal(!1),error:K.string().optional()}),V3=K.object({id:K.string(),type:K.enum(["job","batch"]),status:N3,message:K.string().optional(),progress:K.object({current:K.number(),total:K.number(),percentage:K.number()}).optional(),aggregationKey:K.string().optional(),batchDetails:K.object({totalOperations:K.number(),completedOperations:K.number(),failedOperations:K.number(),currentOperation:K.string().optional(),errors:K.array(K.string()).optional()}).optional(),jobDetails:K.object({jobType:K.string(),priority:K.number(),retryCount:K.number()}).optional(),metadata:u4})});function X0($,X){if(!$||typeof $!=="object")return!1;if($ instanceof X)return!0;if(!Object.prototype.hasOwnProperty.call(X,k))throw Error(`Class "${X.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let G=Object.getPrototypeOf($).constructor;if(G)while(G){if(k in G&&G[k]===X[k])return!0;G=Object.getPrototypeOf(G)}return!1}var k;var z0=B(()=>{k=Symbol.for("drizzle:entityKind")});var L1;var t6=B(()=>{z0();L1=class L1{constructor($,X){this.table=$,this.config=X,this.name=X.name,this.keyAsName=X.keyAsName,this.notNull=X.notNull,this.default=X.default,this.defaultFn=X.defaultFn,this.onUpdateFn=X.onUpdateFn,this.hasDefault=X.hasDefault,this.primary=X.primaryKey,this.isUnique=X.isUnique,this.uniqueName=X.uniqueName,this.uniqueType=X.uniqueType,this.dataType=X.dataType,this.columnType=X.columnType,this.generated=X.generated,this.generatedIdentity=X.generatedIdentity}static[k]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue($){return $}mapToDriverValue($){return $}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}}});var w3;var _3=B(()=>{z0();w3=class w3{static[k]="ColumnBuilder";config;constructor($,X,G){this.config={name:$,keyAsName:$==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:X,columnType:G,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default($){return this.config.default=$,this.config.hasDefault=!0,this}$defaultFn($){return this.config.defaultFn=$,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn($){return this.config.onUpdateFn=$,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName($){if(this.config.name!=="")return;this.config.name=$}}});var n1;var d4=B(()=>{n1=Symbol.for("drizzle:Name")});function bQ($,...X){return $(...X)}var hQ=()=>{};function yQ($,X){return`${$[n1]}_${X.join("_")}_unique`}var fQ=B(()=>{d4()});var l4,PT;var gQ=B(()=>{t6();z0();fQ();l4=class l4 extends L1{constructor($,X){if(!X.uniqueName)X.uniqueName=yQ($,[X.name]);super($,X);this.table=$}static[k]="PgColumn"};PT=class PT extends l4{static[k]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op($){return this.indexConfig.opClass=$,this}}});function pQ($){return!!$&&typeof $==="function"&&mQ in $&&$[mQ]===!0}var LT,mQ,CT;var uQ=B(()=>{z0();gQ();LT=class LT extends l4{static[k]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor($,X){super($,X);this.enum=X.enum}getSQLType(){return this.enum.enumName}};mQ=Symbol.for("drizzle:isPgEnum");CT=class CT extends l4{static[k]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor($,X){super($,X);this.enum=X.enum}getSQLType(){return this.enum.enumName}}});var N1;var e6=B(()=>{z0();N1=class N1{static[k]="Subquery";constructor($,X,G,Y=!1,J=[]){this._={brand:"Subquery",sql:$,selectedFields:X,alias:G,isWith:Y,usedTables:J}}}});var dQ="0.44.7";var lQ=()=>{};var z3,D3,cQ;var rQ=B(()=>{hQ();lQ();cQ={startActiveSpan($,X){if(!z3)return X();if(!D3)D3=z3.trace.getTracer("drizzle-orm",dQ);return bQ((G,Y)=>Y.startActiveSpan($,(J)=>{try{return X(J)}catch(W){throw J.setStatus({code:G.SpanStatusCode.ERROR,message:W instanceof Error?W.message:"Unknown error"}),W}finally{J.end()}}),z3,D3)}}});var p0;var $5=B(()=>{p0=Symbol.for("drizzle:ViewBaseConfig")});var P3,iQ,oQ,L3,C3,c4,nQ,TT,H0;var T6=B(()=>{z0();d4();P3=Symbol.for("drizzle:Schema"),iQ=Symbol.for("drizzle:Columns"),oQ=Symbol.for("drizzle:ExtraConfigColumns"),L3=Symbol.for("drizzle:OriginalName"),C3=Symbol.for("drizzle:BaseName"),c4=Symbol.for("drizzle:IsAlias"),nQ=Symbol.for("drizzle:ExtraConfigBuilder"),TT=Symbol.for("drizzle:IsDrizzleTable");H0=class H0{static[k]="Table";static Symbol={Name:n1,Schema:P3,OriginalName:L3,Columns:iQ,ExtraConfigColumns:oQ,BaseName:C3,IsAlias:c4,ExtraConfigBuilder:nQ};[n1];[L3];[P3];[iQ];[oQ];[C3];[c4]=!1;[TT]=!0;[nQ]=void 0;constructor($,X,G){this[n1]=this[L3]=$,this[P3]=X,this[C3]=G}}});function ET($){return $!==null&&$!==void 0&&typeof $.getSQL==="function"}function IT($){let X={sql:"",params:[]};for(let G of $)if(X.sql+=G.sql,X.params.push(...G.params),G.typings?.length){if(!X.typings)X.typings=[];X.typings.push(...G.typings)}return X}function m2($,...X){let G=[];if(X.length>0||$.length>0&&$[0]!=="")G.push(new m1($[0]));for(let[Y,J]of X.entries())G.push(J,new m1($[Y+1]));return new A0(G)}var m1,A0,n9,sQ,aQ,Ac,a9,s9,jT,W6;var X5=B(()=>{z0();uQ();e6();rQ();$5();t6();T6();m1=class m1{static[k]="StringChunk";value;constructor($){this.value=Array.isArray($)?$:[$]}getSQL(){return new A0([this])}};A0=class A0{constructor($){this.queryChunks=$;for(let X of $)if(X0(X,H0)){let G=X[H0.Symbol.Schema];this.usedTables.push(G===void 0?X[H0.Symbol.Name]:G+"."+X[H0.Symbol.Name])}}static[k]="SQL";decoder=sQ;shouldInlineParams=!1;usedTables=[];append($){return this.queryChunks.push(...$.queryChunks),this}toQuery($){return cQ.startActiveSpan("drizzle.buildSQL",(X)=>{let G=this.buildQueryFromSourceParams(this.queryChunks,$);return X?.setAttributes({"drizzle.query.text":G.sql,"drizzle.query.params":JSON.stringify(G.params)}),G})}buildQueryFromSourceParams($,X){let G=Object.assign({},X,{inlineParams:X.inlineParams||this.shouldInlineParams,paramStartIndex:X.paramStartIndex||{value:0}}),{casing:Y,escapeName:J,escapeParam:W,prepareTyping:H,inlineParams:U,paramStartIndex:M}=G;return IT($.map((F)=>{if(X0(F,m1))return{sql:F.value.join(""),params:[]};if(X0(F,n9))return{sql:J(F.value),params:[]};if(F===void 0)return{sql:"",params:[]};if(Array.isArray(F)){let Q=[new m1("(")];for(let[q,R]of F.entries())if(Q.push(R),q<F.length-1)Q.push(new m1(", "));return Q.push(new m1(")")),this.buildQueryFromSourceParams(Q,G)}if(X0(F,A0))return this.buildQueryFromSourceParams(F.queryChunks,{...G,inlineParams:U||F.shouldInlineParams});if(X0(F,H0)){let Q=F[H0.Symbol.Schema],q=F[H0.Symbol.Name];return{sql:Q===void 0||F[c4]?J(q):J(Q)+"."+J(q),params:[]}}if(X0(F,L1)){let Q=Y.getColumnCasing(F);if(X.invokeSource==="indexes")return{sql:J(Q),params:[]};let q=F.table[H0.Symbol.Schema];return{sql:F.table[c4]||q===void 0?J(F.table[H0.Symbol.Name])+"."+J(Q):J(q)+"."+J(F.table[H0.Symbol.Name])+"."+J(Q),params:[]}}if(X0(F,W6)){let Q=F[p0].schema,q=F[p0].name;return{sql:Q===void 0||F[p0].isAlias?J(q):J(Q)+"."+J(q),params:[]}}if(X0(F,a9)){if(X0(F.value,s9))return{sql:W(M.value++,F),params:[F],typings:["none"]};let Q=F.value===null?null:F.encoder.mapToDriverValue(F.value);if(X0(Q,A0))return this.buildQueryFromSourceParams([Q],G);if(U)return{sql:this.mapInlineParam(Q,G),params:[]};let q=["none"];if(H)q=[H(F.encoder)];return{sql:W(M.value++,Q),params:[Q],typings:q}}if(X0(F,s9))return{sql:W(M.value++,F),params:[F],typings:["none"]};if(X0(F,A0.Aliased)&&F.fieldAlias!==void 0)return{sql:J(F.fieldAlias),params:[]};if(X0(F,N1)){if(F._.isWith)return{sql:J(F._.alias),params:[]};return this.buildQueryFromSourceParams([new m1("("),F._.sql,new m1(") "),new n9(F._.alias)],G)}if(pQ(F)){if(F.schema)return{sql:J(F.schema)+"."+J(F.enumName),params:[]};return{sql:J(F.enumName),params:[]}}if(ET(F)){if(F.shouldOmitSQLParens?.())return this.buildQueryFromSourceParams([F.getSQL()],G);return this.buildQueryFromSourceParams([new m1("("),F.getSQL(),new m1(")")],G)}if(U)return{sql:this.mapInlineParam(F,G),params:[]};return{sql:W(M.value++,F),params:[F],typings:["none"]}}))}mapInlineParam($,{escapeString:X}){if($===null)return"null";if(typeof $==="number"||typeof $==="boolean")return $.toString();if(typeof $==="string")return X($);if(typeof $==="object"){let G=$.toString();if(G==="[object Object]")return X(JSON.stringify($));return X(G)}throw Error("Unexpected param value: "+$)}getSQL(){return this}as($){if($===void 0)return this;return new A0.Aliased(this,$)}mapWith($){return this.decoder=typeof $==="function"?{mapFromDriverValue:$}:$,this}inlineParams(){return this.shouldInlineParams=!0,this}if($){return $?this:void 0}};n9=class n9{constructor($){this.value=$}static[k]="Name";brand;getSQL(){return new A0([this])}};sQ={mapFromDriverValue:($)=>$},aQ={mapToDriverValue:($)=>$},Ac={...sQ,...aQ};a9=class a9{constructor($,X=aQ){this.value=$,this.encoder=X}static[k]="Param";brand;getSQL(){return new A0([this])}};(($)=>{function X(){return new A0([])}$.empty=X;function G(M){return new A0(M)}$.fromList=G;function Y(M){return new A0([new m1(M)])}$.raw=Y;function J(M,F){let Q=[];for(let[q,R]of M.entries()){if(q>0&&F!==void 0)Q.push(F);Q.push(R)}return new A0(Q)}$.join=J;function W(M){return new n9(M)}$.identifier=W;function H(M){return new s9(M)}$.placeholder=H;function U(M,F){return new a9(M,F)}$.param=U})(m2||(m2={}));(($)=>{class X{constructor(G,Y){this.sql=G,this.fieldAlias=Y}static[k]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new X(this.sql,this.fieldAlias)}}$.Aliased=X})(A0||(A0={}));s9=class s9{constructor($){this.name=$}static[k]="Placeholder";getSQL(){return new A0([this])}};jT=Symbol.for("drizzle:IsDrizzleView");W6=class W6{static[k]="View";[p0];[jT]=!0;constructor({name:$,schema:X,selectedFields:G,query:Y}){this[p0]={name:$,originalName:$,schema:X,selectedFields:G,query:Y,isExisting:!Y,isAlias:!1}}getSQL(){return new A0([this])}};L1.prototype.getSQL=function(){return new A0([this])};H0.prototype.getSQL=function(){return new A0([this])};N1.prototype.getSQL=function(){return new A0([this])}});function p2($,X){return Object.entries($).reduce((G,[Y,J])=>{if(typeof Y!=="string")return G;let W=X?[...X,Y]:[Y];if(X0(J,L1)||X0(J,A0)||X0(J,A0.Aliased))G.push({path:W,field:J});else if(X0(J,H0))G.push(...p2(J[H0.Symbol.Columns],W));else G.push(...p2(J,W));return G},[])}function T3($,X){let G=Object.keys($),Y=Object.keys(X);if(G.length!==Y.length)return!1;for(let[J,W]of G.entries())if(W!==Y[J])return!1;return!0}function tQ($,X){for(let G of X)for(let Y of Object.getOwnPropertyNames(G.prototype)){if(Y==="constructor")continue;Object.defineProperty($.prototype,Y,Object.getOwnPropertyDescriptor(G.prototype,Y)||Object.create(null))}}function r4($){return X0($,N1)?$._.alias:X0($,W6)?$[p0].name:X0($,A0)?void 0:$[H0.Symbol.IsAlias]?$[H0.Symbol.Name]:$[H0.Symbol.BaseName]}function H6($,X){return{name:typeof $==="string"&&$.length>0?$:"",config:typeof $==="object"?$:X}}var E3;var E6=B(()=>{t6();z0();X5();e6();T6();$5();E3=typeof TextDecoder>"u"?null:new TextDecoder});var eQ=()=>{};var $q=()=>{};var Xq=()=>{};var Gq=B(()=>{$q();Xq()});var Yq=()=>{};var i4,I3;var j3=B(()=>{t6();z0();T6();$5();i4=class i4{constructor($){this.table=$}static[k]="ColumnAliasProxyHandler";get($,X){if(X==="table")return this.table;return $[X]}};I3=class I3{constructor($,X){this.alias=$,this.replaceOriginalName=X}static[k]="TableAliasProxyHandler";get($,X){if(X===H0.Symbol.IsAlias)return!0;if(X===H0.Symbol.Name)return this.alias;if(this.replaceOriginalName&&X===H0.Symbol.OriginalName)return this.alias;if(X===p0)return{...$[p0],name:this.alias,isAlias:!0};if(X===H0.Symbol.Columns){let Y=$[H0.Symbol.Columns];if(!Y)return Y;let J={};return Object.keys(Y).map((W)=>{J[W]=new Proxy(Y[W],new i4(new Proxy($,this)))}),J}let G=$[X];if(X0(G,L1))return new Proxy(G,new i4(new Proxy($,this)));return G}}});var C1;var S3=B(()=>{j3();t6();z0();X5();e6();$5();C1=class C1{static[k]="SelectionProxyHandler";config;constructor($){this.config={...$}}get($,X){if(X==="_")return{...$._,selectedFields:new Proxy($._.selectedFields,this)};if(X===p0)return{...$[p0],selectedFields:new Proxy($[p0].selectedFields,this)};if(typeof X==="symbol")return $[X];let Y=(X0($,N1)?$._.selectedFields:X0($,W6)?$[p0].selectedFields:$)[X];if(X0(Y,A0.Aliased)){if(this.config.sqlAliasedBehavior==="sql"&&!Y.isSelectionField)return Y.sql;let J=Y.clone();return J.isSelectionField=!0,J}if(X0(Y,A0)){if(this.config.sqlBehavior==="sql")return Y;throw Error(`You tried to reference "${X}" field from a subquery, which is a raw SQL field, but it doesn't have an alias declared. Please add an alias to the field using ".as('alias')" method.`)}if(X0(Y,L1)){if(this.config.alias)return new Proxy(Y,new i4(new Proxy(Y.table,new I3(this.config.alias,this.config.replaceOriginalName??!1))));return Y}if(typeof Y!=="object"||Y===null)return Y;return new Proxy(Y,new C1(this.config))}}});var o4;var t9=B(()=>{z0();o4=class o4{static[k]="QueryPromise";[Symbol.toStringTag]="QueryPromise";catch($){return this.then(void 0,$)}finally($){return this.then((X)=>{return $?.(),X},(X)=>{throw $?.(),X})}then($,X){return this.execute().then($,X)}}});var k3,Jq;var v3=B(()=>{z0();d4();k3=class k3{static[k]="SQLiteForeignKeyBuilder";reference;_onUpdate;_onDelete;constructor($,X){if(this.reference=()=>{let{name:G,columns:Y,foreignColumns:J}=$();return{name:G,columns:Y,foreignTable:J[0].table,foreignColumns:J}},X)this._onUpdate=X.onUpdate,this._onDelete=X.onDelete}onUpdate($){return this._onUpdate=$,this}onDelete($){return this._onDelete=$,this}build($){return new Jq($,this)}};Jq=class Jq{constructor($,X){this.table=$,this.reference=X.reference,this.onUpdate=X._onUpdate,this.onDelete=X._onDelete}static[k]="SQLiteForeignKey";reference;onUpdate;onDelete;getName(){let{name:$,columns:X,foreignColumns:G}=this.reference(),Y=X.map((H)=>H.name),J=G.map((H)=>H.name),W=[this.table[n1],...Y,G[0].table[n1],...J];return $??`${W.join("_")}_fk`}}});function Wq($,X){return`${$[n1]}_${X.join("_")}_unique`}var x3=B(()=>{d4()});var o0,n0;var G5=B(()=>{_3();t6();z0();v3();x3();o0=class o0 extends w3{static[k]="SQLiteColumnBuilder";foreignKeyConfigs=[];references($,X={}){return this.foreignKeyConfigs.push({ref:$,actions:X}),this}unique($){return this.config.isUnique=!0,this.config.uniqueName=$,this}generatedAlwaysAs($,X){return this.config.generated={as:$,type:"always",mode:X?.mode??"virtual"},this}buildForeignKeys($,X){return this.foreignKeyConfigs.map(({ref:G,actions:Y})=>{return((J,W)=>{let H=new k3(()=>{let U=J();return{columns:[$],foreignColumns:[U]}});if(W.onUpdate)H.onUpdate(W.onUpdate);if(W.onDelete)H.onDelete(W.onDelete);return H.build(X)})(G,Y)})}};n0=class n0 extends L1{constructor($,X){if(!X.uniqueName)X.uniqueName=Wq($,[X.name]);super($,X);this.table=$}static[k]="SQLiteColumn"}});function qq($,X){let{name:G,config:Y}=H6($,X);if(Y?.mode==="json")return new Kq(G);if(Y?.mode==="bigint")return new Hq(G);return new Fq(G)}var Hq,Uq,Kq,Mq,Fq,Qq;var b3=B(()=>{z0();E6();G5();Hq=class Hq extends o0{static[k]="SQLiteBigIntBuilder";constructor($){super($,"bigint","SQLiteBigInt")}build($){return new Uq($,this.config)}};Uq=class Uq extends n0{static[k]="SQLiteBigInt";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let X=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return BigInt(X.toString("utf8"))}return BigInt(E3.decode($))}mapToDriverValue($){return Buffer.from($.toString())}};Kq=class Kq extends o0{static[k]="SQLiteBlobJsonBuilder";constructor($){super($,"json","SQLiteBlobJson")}build($){return new Mq($,this.config)}};Mq=class Mq extends n0{static[k]="SQLiteBlobJson";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let X=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return JSON.parse(X.toString("utf8"))}return JSON.parse(E3.decode($))}mapToDriverValue($){return Buffer.from(JSON.stringify($))}};Fq=class Fq extends o0{static[k]="SQLiteBlobBufferBuilder";constructor($){super($,"buffer","SQLiteBlobBuffer")}build($){return new Qq($,this.config)}};Qq=class Qq extends n0{static[k]="SQLiteBlobBuffer";mapFromDriverValue($){if(Buffer.isBuffer($))return $;return Buffer.from($)}getSQLType(){return"blob"}}});function e9($){return(X,G)=>{let{name:Y,config:J}=H6(X,G);return new Oq(Y,J,$)}}var Oq,Zq;var h3=B(()=>{z0();E6();G5();Oq=class Oq extends o0{static[k]="SQLiteCustomColumnBuilder";constructor($,X,G){super($,"custom","SQLiteCustomColumn");this.config.fieldConfig=X,this.config.customTypeParams=G}build($){return new Zq($,this.config)}};Zq=class Zq extends n0{static[k]="SQLiteCustomColumn";sqlName;mapTo;mapFrom;constructor($,X){super($,X);this.sqlName=X.customTypeParams.dataType(X.fieldConfig),this.mapTo=X.customTypeParams.toDriver,this.mapFrom=X.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue($){return typeof this.mapFrom==="function"?this.mapFrom($):$}mapToDriverValue($){return typeof this.mapTo==="function"?this.mapTo($):$}}});function V1($,X){let{name:G,config:Y}=H6($,X);if(Y?.mode==="timestamp"||Y?.mode==="timestamp_ms")return new Bq(G,Y.mode);if(Y?.mode==="boolean")return new Vq(G,Y.mode);return new Rq(G)}var $7,X7,Rq,Aq,Bq,Nq,Vq,wq;var y3=B(()=>{z0();X5();E6();G5();$7=class $7 extends o0{static[k]="SQLiteBaseIntegerBuilder";constructor($,X,G){super($,X,G);this.config.autoIncrement=!1}primaryKey($){if($?.autoIncrement)this.config.autoIncrement=!0;return this.config.hasDefault=!0,super.primaryKey()}};X7=class X7 extends n0{static[k]="SQLiteBaseInteger";autoIncrement=this.config.autoIncrement;getSQLType(){return"integer"}};Rq=class Rq extends $7{static[k]="SQLiteIntegerBuilder";constructor($){super($,"number","SQLiteInteger")}build($){return new Aq($,this.config)}};Aq=class Aq extends X7{static[k]="SQLiteInteger"};Bq=class Bq extends $7{static[k]="SQLiteTimestampBuilder";constructor($,X){super($,"date","SQLiteTimestamp");this.config.mode=X}defaultNow(){return this.default(m2`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build($){return new Nq($,this.config)}};Nq=class Nq extends X7{static[k]="SQLiteTimestamp";mode=this.config.mode;mapFromDriverValue($){if(this.config.mode==="timestamp")return new Date($*1000);return new Date($)}mapToDriverValue($){let X=$.getTime();if(this.config.mode==="timestamp")return Math.floor(X/1000);return X}};Vq=class Vq extends $7{static[k]="SQLiteBooleanBuilder";constructor($,X){super($,"boolean","SQLiteBoolean");this.config.mode=X}build($){return new wq($,this.config)}};wq=class wq extends X7{static[k]="SQLiteBoolean";mode=this.config.mode;mapFromDriverValue($){return Number($)===1}mapToDriverValue($){return $?1:0}}});function Tq($,X){let{name:G,config:Y}=H6($,X),J=Y?.mode;return J==="number"?new Dq(G):J==="bigint"?new Lq(G):new _q(G)}var _q,zq,Dq,Pq,Lq,Cq;var f3=B(()=>{z0();E6();G5();_q=class _q extends o0{static[k]="SQLiteNumericBuilder";constructor($){super($,"string","SQLiteNumeric")}build($){return new zq($,this.config)}};zq=class zq extends n0{static[k]="SQLiteNumeric";mapFromDriverValue($){if(typeof $==="string")return $;return String($)}getSQLType(){return"numeric"}};Dq=class Dq extends o0{static[k]="SQLiteNumericNumberBuilder";constructor($){super($,"number","SQLiteNumericNumber")}build($){return new Pq($,this.config)}};Pq=class Pq extends n0{static[k]="SQLiteNumericNumber";mapFromDriverValue($){if(typeof $==="number")return $;return Number($)}mapToDriverValue=String;getSQLType(){return"numeric"}};Lq=class Lq extends o0{static[k]="SQLiteNumericBigIntBuilder";constructor($){super($,"bigint","SQLiteNumericBigInt")}build($){return new Cq($,this.config)}};Cq=class Cq extends n0{static[k]="SQLiteNumericBigInt";mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return"numeric"}}});function jq($){return new Eq($??"")}var Eq,Iq;var g3=B(()=>{z0();G5();Eq=class Eq extends o0{static[k]="SQLiteRealBuilder";constructor($){super($,"number","SQLiteReal")}build($){return new Iq($,this.config)}};Iq=class Iq extends n0{static[k]="SQLiteReal";getSQLType(){return"real"}}});function J0($,X={}){let{name:G,config:Y}=H6($,X);if(Y.mode==="json")return new vq(G);return new Sq(G,Y)}var Sq,kq,vq,xq;var m3=B(()=>{z0();E6();G5();Sq=class Sq extends o0{static[k]="SQLiteTextBuilder";constructor($,X){super($,"string","SQLiteText");this.config.enumValues=X.enum,this.config.length=X.length}build($){return new kq($,this.config)}};kq=class kq extends n0{static[k]="SQLiteText";enumValues=this.config.enumValues;length=this.config.length;constructor($,X){super($,X)}getSQLType(){return`text${this.config.length?`(${this.config.length})`:""}`}};vq=class vq extends o0{static[k]="SQLiteTextJsonBuilder";constructor($){super($,"json","SQLiteTextJson")}build($){return new xq($,this.config)}};xq=class xq extends n0{static[k]="SQLiteTextJson";getSQLType(){return"text"}mapFromDriverValue($){return JSON.parse($)}mapToDriverValue($){return JSON.stringify($)}}});function bq(){return{blob:qq,customType:e9,integer:V1,numeric:Tq,real:jq,text:J0}}var hq=B(()=>{b3();h3();y3();f3();g3();m3()});function ST($,X,G,Y,J=$){let W=new U6($,Y,J),H=typeof X==="function"?X(bq()):X,U=Object.fromEntries(Object.entries(H).map(([F,Q])=>{let q=Q;q.setName(F);let R=q.build(W);return W[p3].push(...q.buildForeignKeys(R,W)),[F,R]})),M=Object.assign(W,U);if(M[H0.Symbol.Columns]=U,M[H0.Symbol.ExtraConfigColumns]=U,G)M[U6.Symbol.ExtraConfigBuilder]=G;return M}var p3,U6,K6=($,X,G)=>{return ST($,X,G)};var n4=B(()=>{z0();T6();hq();p3=Symbol.for("drizzle:SQLiteInlineForeignKeys");U6=class U6 extends H0{static[k]="SQLiteTable";static Symbol=Object.assign({},H0.Symbol,{InlineForeignKeys:p3});[H0.Symbol.Columns];[p3]=[];[H0.Symbol.ExtraConfigBuilder]=void 0}});var yq=()=>{};function s1($){return new fq($,!1)}var fq,gq,mq;var pq=B(()=>{z0();fq=class fq{constructor($,X){this.name=$,this.unique=X}static[k]="SQLiteIndexBuilderOn";on(...$){return new gq(this.name,$,this.unique)}};gq=class gq{static[k]="SQLiteIndexBuilder";config;constructor($,X,G){this.config={name:$,columns:X,unique:G,where:void 0}}where($){return this.config.where=$,this}build($){return new mq(this.config,$)}};mq=class mq{static[k]="SQLiteIndex";config;constructor($,X){this.config={...$,table:X}}}});function G7(...$){if($[0].columns)return new u3($[0].columns,$[0].name);return new u3($)}var u3,uq;var dq=B(()=>{z0();n4();u3=class u3{static[k]="SQLitePrimaryKeyBuilder";columns;name;constructor($,X){this.columns=$,this.name=X}build($){return new uq($,this.columns,this.name)}};uq=class uq{constructor($,X,G){this.table=$,this.columns=X,this.name=G}static[k]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[U6.Symbol.Name]}_${this.columns.map(($)=>$.name).join("_")}_pk`}}});function m5($){if(X0($,U6))return[`${$[H0.Symbol.BaseName]}`];if(X0($,N1))return $._.usedTables??[];if(X0($,A0))return $.usedTables??[];return[]}var Y7=B(()=>{z0();X5();e6();T6();n4()});var lq=()=>{};var cq=()=>{};var rq=()=>{};var iq=()=>{};var oq=B(()=>{rq();iq()});var nq=B(()=>{Gq();oq();X5()});var sq=B(()=>{b3();G5();h3();y3();f3();g3();m3()});var d3;var aq=B(()=>{z0();X5();d3=class d3 extends W6{static[k]="SQLiteViewBase"}});var tq=()=>{};var l3;var eq=B(()=>{z0();l3=class l3{static[k]="TypedQueryBuilder";getSelectedFields(){return this._.selectedFields}}});function J7($,X){return(G,Y,...J)=>{let W=[Y,...J].map((H)=>({type:$,isAll:X,rightSelect:H}));for(let H of W)if(!T3(G.getSelectedFields(),H.rightSelect.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return G.addSetOperators(W)}}var $O,XO,kT=()=>({union:vT,unionAll:xT,intersect:bT,except:hT}),vT,xT,bT,hT;var GO=B(()=>{z0();eq();t9();S3();X5();e6();T6();E6();$5();Y7();$O=class $O extends l3{static[k]="SQLiteSelectQueryBuilder";_;config;joinsNotNullableMap;tableName;isPartialSelect;session;dialect;cacheConfig=void 0;usedTables=new Set;constructor({table:$,fields:X,isPartialSelect:G,session:Y,dialect:J,withList:W,distinct:H}){super();this.config={withList:W,table:$,fields:{...X},distinct:H,setOperators:[]},this.isPartialSelect=G,this.session=Y,this.dialect=J,this._={selectedFields:X,config:this.config},this.tableName=r4($),this.joinsNotNullableMap=typeof this.tableName==="string"?{[this.tableName]:!0}:{};for(let U of m5($))this.usedTables.add(U)}getUsedTables(){return[...this.usedTables]}createJoin($){return(X,G)=>{let Y=this.tableName,J=r4(X);for(let W of m5(X))this.usedTables.add(W);if(typeof J==="string"&&this.config.joins?.some((W)=>W.alias===J))throw Error(`Alias "${J}" is already used in this query`);if(!this.isPartialSelect){if(Object.keys(this.joinsNotNullableMap).length===1&&typeof Y==="string")this.config.fields={[Y]:this.config.fields};if(typeof J==="string"&&!X0(X,A0)){let W=X0(X,N1)?X._.selectedFields:X0(X,W6)?X[p0].selectedFields:X[H0.Symbol.Columns];this.config.fields[J]=W}}if(typeof G==="function")G=G(new Proxy(this.config.fields,new C1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})));if(!this.config.joins)this.config.joins=[];if(this.config.joins.push({on:G,table:X,joinType:$,alias:J}),typeof J==="string")switch($){case"left":{this.joinsNotNullableMap[J]=!1;break}case"right":{this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([W])=>[W,!1])),this.joinsNotNullableMap[J]=!0;break}case"cross":case"inner":{this.joinsNotNullableMap[J]=!0;break}case"full":{this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([W])=>[W,!1])),this.joinsNotNullableMap[J]=!1;break}}return this}}leftJoin=this.createJoin("left");rightJoin=this.createJoin("right");innerJoin=this.createJoin("inner");fullJoin=this.createJoin("full");crossJoin=this.createJoin("cross");createSetOperator($,X){return(G)=>{let Y=typeof G==="function"?G(kT()):G;if(!T3(this.getSelectedFields(),Y.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return this.config.setOperators.push({type:$,isAll:X,rightSelect:Y}),this}}union=this.createSetOperator("union",!1);unionAll=this.createSetOperator("union",!0);intersect=this.createSetOperator("intersect",!1);except=this.createSetOperator("except",!1);addSetOperators($){return this.config.setOperators.push(...$),this}where($){if(typeof $==="function")$=$(new Proxy(this.config.fields,new C1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})));return this.config.where=$,this}having($){if(typeof $==="function")$=$(new Proxy(this.config.fields,new C1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})));return this.config.having=$,this}groupBy(...$){if(typeof $[0]==="function"){let X=$[0](new Proxy(this.config.fields,new C1({sqlAliasedBehavior:"alias",sqlBehavior:"sql"})));this.config.groupBy=Array.isArray(X)?X:[X]}else this.config.groupBy=$;return this}orderBy(...$){if(typeof $[0]==="function"){let X=$[0](new Proxy(this.config.fields,new C1({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),G=Array.isArray(X)?X:[X];if(this.config.setOperators.length>0)this.config.setOperators.at(-1).orderBy=G;else this.config.orderBy=G}else{let X=$;if(this.config.setOperators.length>0)this.config.setOperators.at(-1).orderBy=X;else this.config.orderBy=X}return this}limit($){if(this.config.setOperators.length>0)this.config.setOperators.at(-1).limit=$;else this.config.limit=$;return this}offset($){if(this.config.setOperators.length>0)this.config.setOperators.at(-1).offset=$;else this.config.offset=$;return this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:$,...X}=this.dialect.sqlToQuery(this.getSQL());return X}as($){let X=[];if(X.push(...m5(this.config.table)),this.config.joins)for(let G of this.config.joins)X.push(...m5(G.table));return new Proxy(new N1(this.getSQL(),this.config.fields,$,!1,[...new Set(X)]),new C1({alias:$,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new C1({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}};XO=class XO extends $O{static[k]="SQLiteSelect";_prepare($=!0){if(!this.session)throw Error("Cannot execute a query on a query builder. Please use a database instance instead.");let X=p2(this.config.fields),G=this.session[$?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),X,"all",!0,void 0,{type:"select",tables:[...this.usedTables]},this.cacheConfig);return G.joinsNotNullableMap=this.joinsNotNullableMap,G}$withCache($){return this.cacheConfig=$===void 0?{config:{},enable:!0,autoInvalidate:!0}:$===!1?{enable:!1}:{enable:!0,autoInvalidate:!0,...$},this}prepare(){return this._prepare(!1)}run=($)=>{return this._prepare().run($)};all=($)=>{return this._prepare().all($)};get=($)=>{return this._prepare().get($)};values=($)=>{return this._prepare().values($)};async execute(){return this.all()}};tQ(XO,[o4]);vT=J7("union",!1),xT=J7("union",!0),bT=J7("intersect",!1),hT=J7("except",!1)});var YO=()=>{};var JO=()=>{};var yT;var WO=B(()=>{z0();t9();S3();n4();e6();T6();E6();$5();Y7();aq();yT=class yT extends o4{constructor($,X,G,Y,J){super();this.session=G,this.dialect=Y,this.config={set:X,table:$,withList:J,joins:[]}}static[k]="SQLiteUpdate";config;from($){return this.config.from=$,this}createJoin($){return(X,G)=>{let Y=r4(X);if(typeof Y==="string"&&this.config.joins.some((J)=>J.alias===Y))throw Error(`Alias "${Y}" is already used in this query`);if(typeof G==="function"){let J=this.config.from?X0(X,U6)?X[H0.Symbol.Columns]:X0(X,N1)?X._.selectedFields:X0(X,d3)?X[p0].selectedFields:void 0:void 0;G=G(new Proxy(this.config.table[H0.Symbol.Columns],new C1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})),J&&new Proxy(J,new C1({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))}return this.config.joins.push({on:G,table:X,joinType:$,alias:Y}),this}}leftJoin=this.createJoin("left");rightJoin=this.createJoin("right");innerJoin=this.createJoin("inner");fullJoin=this.createJoin("full");where($){return this.config.where=$,this}orderBy(...$){if(typeof $[0]==="function"){let X=$[0](new Proxy(this.config.table[H0.Symbol.Columns],new C1({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),G=Array.isArray(X)?X:[X];this.config.orderBy=G}else{let X=$;this.config.orderBy=X}return this}limit($){return this.config.limit=$,this}returning($=this.config.table[U6.Symbol.Columns]){return this.config.returning=p2($),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:$,...X}=this.dialect.sqlToQuery(this.getSQL());return X}_prepare($=!0){return this.session[$?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run",!0,void 0,{type:"insert",tables:m5(this.config.table)})}prepare(){return this._prepare(!1)}run=($)=>{return this._prepare().run($)};all=($)=>{return this._prepare().all($)};get=($)=>{return this._prepare().get($)};values=($)=>{return this._prepare().values($)};async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}}});var HO=B(()=>{lq();JO();YO();GO();WO()});var UO=()=>{};var KO=()=>{};var MO=()=>{};var FO=()=>{};var u2=B(()=>{KO();yq();sq();UO();tq();v3();pq();dq();HO();MO();n4();x3();Y7();FO()});var QO;var c3=B(()=>{u2();S();QO=K6("job_queue",{id:J0("id").primaryKey().$defaultFn(()=>z6()),type:J0("type").notNull(),data:J0("data").notNull(),result:J0("result",{mode:"json"}),source:J0("source"),metadata:J0("metadata",{mode:"json"}).$type().notNull(),status:J0("status",{enum:["pending","processing","completed","failed"]}).notNull().default("pending"),priority:V1("priority").notNull().default(0),retryCount:V1("retryCount").notNull().default(0),maxRetries:V1("maxRetries").notNull().default(3),lastError:J0("lastError"),createdAt:V1("createdAt").notNull().$defaultFn(()=>Date.now()),scheduledFor:V1("scheduledFor").notNull().$defaultFn(()=>Date.now()),startedAt:V1("startedAt"),completedAt:V1("completedAt")},($)=>({queueReadyIdx:s1("idx_job_queue_ready").on($.status,$.priority,$.scheduledFor),jobTypeIdx:s1("idx_job_queue_type").on($.type,$.status),jobSourceIdx:s1("idx_job_queue_source").on($.source)}))});import{createClient as Lo}from"@libsql/client";var qO=B(()=>{c3()});var OO=B(()=>{j3();_3();t6();z0();cq();eQ();t9();Yq();nq();e6();T6();E6();$5()});var ZO=B(()=>{c3();a6()});var RO=B(()=>{a6()});var AO=B(()=>{S();a6();qO();ZO();RO()});var BO=B(()=>{S();a6();a6()});var NO=B(()=>{a6()});var VO=B(()=>{S()});class a4{logger;schema;jobTypeName;constructor($,X){this.logger=$,this.schema=X.schema,this.jobTypeName=X.jobTypeName}validateAndParse($){if(!this.schema)throw Error(`${this.jobTypeName}: No schema provided. Override validateAndParse() or provide a schema.`);try{let X=this.schema.parse($);return this.logger.debug(`${this.jobTypeName} job data validation successful`,{data:this.summarizeDataForLog(X)}),X}catch(X){return this.logger.warn(`Invalid ${this.jobTypeName} job data`,{data:$,validationError:X instanceof K.ZodError?X.issues:X}),null}}async onError($,X,G,Y){this.logger.error(`${this.jobTypeName} job error handler triggered`,{jobId:G,errorMessage:$.message,errorStack:$.stack,data:this.summarizeDataForLog(X)})}async reportProgress($,X){await $.report({progress:X.progress,total:X.total??100,message:X.message})}summarizeDataForLog($){return $}}var wO=B(()=>{S()});var fT;var _O=B(()=>{o9();S();fT=K.object({id:K.string(),type:K.string(),data:K.string(),status:K.enum(["pending","processing","completed","failed"]),source:K.string().nullable(),priority:K.number(),retryCount:K.number(),maxRetries:K.number(),lastError:K.string().nullable(),createdAt:K.number(),scheduledFor:K.number(),startedAt:K.number().nullable(),completedAt:K.number().nullable(),metadata:u4,result:K.unknown().nullable().optional()})});function r3($,X,G){return async(Y)=>{let{type:J,data:W,toolContext:H=null,options:U}=Y,{metadata:M,...F}=U??{},Q={source:X,...U?.rootJobId&&{rootJobId:U.rootJobId},...F,metadata:{operationType:"data_processing",pluginId:X,...H&&{interfaceType:H.interfaceType,channelId:H.channelId},...M}},q=G&&!J.includes(":")?`${X}:${J}`:J;return $.enqueue({type:q,data:W,options:Q})}}function i3($,X){return async(G,Y)=>{let J=z6(),W=G.map((U)=>({...U,type:U.type.includes(":")?U.type:`${X}:${U.type}`})),H={...Y,source:X,rootJobId:J,metadata:{...Y?.metadata,operationType:"batch_processing",pluginId:X}};return await $.enqueueBatch(W,H,J,X),J}}function o3($,X){return(G,Y)=>{let J=G.includes(":")?G:`${X}:${G}`;$.registerHandler(J,Y,X)}}var zO=B(()=>{S()});var t4=B(()=>{AO();BO();NO();VO();wO();_O();a6();o9();zO()});function DO($){return gT.safeParse($).success}var gT;var n3=B(()=>{S();gT=K.object({name:K.string(),schema:K.custom(($)=>$ instanceof K.ZodType)})});function mT($){if(!$)return;return{status:$.status,message:$.message,lastCheck:$.lastCheck?.toISOString(),details:$.details}}function PO($){return{model:$.model,version:$.version,uptime:$.uptime,entities:$.entities,entityCounts:$.entityCounts,embeddings:$.embeddings,ai:$.ai,daemons:$.daemons.map((X)=>({name:X.name,pluginId:X.pluginId,status:X.status,health:mT(X.health)})),endpoints:$.endpoints,interactions:$.interactions}}var e4;var s3=B(()=>{P1();e4=K.record(K.unknown())});var pT,a3,uT;var t3=B(()=>{P1();s3();pT=K.object({id:K.string(),sessionId:K.string(),interfaceType:K.string(),channelId:K.string(),channelName:K.string().optional(),startedAt:K.string(),lastActiveAt:K.string(),createdAt:K.string(),updatedAt:K.string(),metadata:e4}),a3=K.enum(["user","assistant","system"]),uT=K.object({id:K.string(),conversationId:K.string(),role:a3,content:K.string(),timestamp:K.string(),metadata:e4})});function LO($){if(!$)return{};try{let X=JSON.parse($);if(X&&typeof X==="object"&&!Array.isArray(X))return X}catch{}return{}}function dT($){let X=a3.safeParse($);return X.success?X.data:"user"}function W7($){let X=LO($.metadata),G=typeof X.channelName==="string"?X.channelName:void 0;return{id:$.id,sessionId:$.sessionId,interfaceType:$.interfaceType,channelId:$.channelId,channelName:G,startedAt:$.started,lastActiveAt:$.lastActive,createdAt:$.created,updatedAt:$.updated,metadata:X}}function CO($){return{id:$.id,conversationId:$.conversationId,role:dT($.role),content:$.content,timestamp:$.timestamp,metadata:LO($.metadata)}}var TO=B(()=>{t3()});var e3,$G;var XG=B(()=>{P1();e3=K.object({name:K.string(),role:K.string(),purpose:K.string(),values:K.array(K.string())}),$G=K.object({name:K.string(),kind:K.enum(["professional","team","collective"]),organization:K.string().optional(),description:K.string().optional(),avatar:K.string().optional(),website:K.string().optional(),email:K.string().optional(),socialLinks:K.array(K.object({platform:K.enum(["github","instagram","linkedin","email","website"]),url:K.string(),label:K.string().optional()})).optional()})});function EO($){return e3.parse($)}function IO($){return $G.parse($)}var jO=B(()=>{XG()});function SO($){return async()=>{return PO(await $.getAppInfo())}}function kO($,X){return{get:()=>EO($.getIdentity()),getProfile:()=>IO($.getProfile()),getAppInfo:X}}function vO($,X,G){let Y=$.getMessageBus();return{send:async(W)=>{return Y.send({...W,sender:X})},subscribe:(W,H)=>{if(DO(W)){let U=W,M=H,F=async(Q)=>{let q=U.schema.safeParse(Q.payload);if(!q.success)return G.warn(`Invalid payload for channel ${U.name}`,{error:q.error.message}),{noop:!0};let{payload:R,...O}=Q;return M(q.data,O)};return Y.subscribe(U.name,F)}return Y.subscribe(W,H)}}}function xO($,X){let G=$.getJobQueueService();return{...$.jobs,enqueue:r3(G,X,!0),enqueueBatch:i3($.jobs,X),registerHandler:o3(G,X)}}function bO($){return{get:async(X)=>{let Y=await $.getConversationService().getConversation(X);return Y?W7(Y):null},search:async(X)=>{return(await $.getConversationService().searchConversations(X)).map(W7)},list:async(X)=>{return(await $.getConversationService().listConversations(X)).map(W7)},getMessages:async(X,G)=>{return(await $.getConversationService().getMessages(X,G)).map(CO)},countMessages:async(X)=>{return $.getConversationService().countMessages(X)}}}function hO($,X){return{registerHandler:(G,Y)=>{$.registerEvalHandler(X,G,Y)}}}function yO($){return{register:(X,G)=>{$.getInsightsRegistry().register(X,G)}}}function fO($,X){return{register:(G)=>{$.registerEndpoint({...G,pluginId:X})}}}function gO($,X){return{register:(G)=>{$.registerInteraction({...G,pluginId:X})}}}var mO=B(()=>{t4();n3();TO();jO()});function d2($,X,G){let Y=$.getEntityService(),J=$.getLogger().child(X),W=$.getDomain(),H=$.getLocalSiteUrl(),U=$.shouldPreferLocalUrls(),M=SO($);return{pluginId:X,logger:J,entityService:Y,identity:kO($,M),appInfo:M,domain:W,siteUrl:W?`https://${W}`:void 0,localSiteUrl:H,previewUrl:W?`https://${B3(W)}`:void 0,preferLocalUrls:U,entityDisplay:G?.entityDisplay,spaces:$.getSpaces(),messaging:vO($,X,J),jobs:xO($,X),conversations:bO($),dataDir:$.getDataDir(),eval:hO($,X),insights:yO($),endpoints:fO($,X),interactions:gO($,X)}}var $8=B(()=>{g2();mO()});var H7;var X8=B(()=>{OO();u2();H7=K6("entities",{id:J0("id").notNull(),entityType:J0("entityType").notNull(),content:J0("content").notNull(),contentHash:J0("contentHash").notNull(),metadata:J0("metadata",{mode:"json"}).$type().notNull().default(m2`'{}'`),created:V1("created").notNull().$defaultFn(()=>Date.now()),updated:V1("updated").notNull().$defaultFn(()=>Date.now())},($)=>{return{pk:G7({columns:[$.id,$.entityType]})}})});import{createClient as Qs}from"@libsql/client";var pO=B(()=>{X8()});var uO;var dO=B(()=>{u2();uO=e9({dataType(){return"F32_BLOB(1536)"},toDriver($){return Buffer.from($.buffer)},fromDriver($){return new Float32Array($.buffer,$.byteOffset,$.byteLength/4)}})});var U7;var G8=B(()=>{u2();dO();U7=K6("embeddings",{entityId:J0("entity_id").notNull(),entityType:J0("entity_type").notNull(),embedding:uO("embedding").notNull(),contentHash:J0("content_hash").notNull()},($)=>{return{pk:G7({columns:[$.entityId,$.entityType]})}})});import{createClient as ws}from"@libsql/client";var GG=B(()=>{G8()});var Ls;var YG=B(()=>{S();Ls=K.object({id:K.string().min(1,"Entity ID is required"),entityType:K.string().min(1,"Entity type is required"),contentHash:K.string().min(1,"Content hash is required"),operation:K.enum(["create","update"])})});var Is;var lO=B(()=>{S();X8();Is=K.object({limit:K.number().int().positive().optional().default(20),offset:K.number().int().min(0).optional().default(0),types:K.array(K.string()).optional().default([]),excludeTypes:K.array(K.string()).optional().default([]),weight:K.record(K.string(),K.number()).optional()})});var cO=B(()=>{S()});var lT,gs;var rO=B(()=>{X8();G8();S();lT=K.object({field:K.string(),direction:K.enum(["asc","desc"]),nullsFirst:K.boolean().optional()}),gs=K.object({limit:K.number().int().positive().optional(),offset:K.number().int().min(0).optional().default(0),sortFields:K.array(lT).optional(),filter:K.object({metadata:K.record(K.string(),K.unknown()).optional()}).optional(),publishedOnly:K.boolean().optional()})});var iO=()=>{};var oO=B(()=>{S();iO();X8();G8()});var nO=B(()=>{S()});var sO=B(()=>{pO();GG();G8();S();YG();lO();cO();rO();oO();nO()});function Y5($,X){if(Object.keys(X).length===0)return $;let G=Object.fromEntries(Object.entries(X).filter(([,Y])=>Y!==void 0));return K7.default.stringify($,G)}function JG($){if($ instanceof Date)return $.toISOString();if(Array.isArray($))return $.map(JG);if($!==null&&typeof $==="object"){let X={};for(let[G,Y]of Object.entries($))X[G]=JG(Y);return X}return $}function b0($,X){let{content:G,data:Y}=K7.default($),J=JG(Y);return{content:G.trim(),metadata:X.parse(J)}}function WG($){if(Object.keys($).length===0)return"";let G=K7.default.stringify("",$).match(/^---\n[\s\S]*?\n---/);return G?G[0]:""}var K7;var M7=B(()=>{K7=k8(L$(),1)});var aO=B(()=>{S();M7()});class X1{entityType;schema;frontmatterSchema;isSingleton;hasBody;supportsCoverImage;fmSchema;bodyFormatter;constructor($){if(this.entityType=$.entityType,this.schema=$.schema,this.frontmatterSchema=$.frontmatterSchema,this.fmSchema=$.frontmatterSchema,this.bodyFormatter=$.bodyFormatter??eT,$.isSingleton!==void 0)this.isSingleton=$.isSingleton;if($.hasBody!==void 0)this.hasBody=$.hasBody;if($.supportsCoverImage!==void 0)this.supportsCoverImage=$.supportsCoverImage}toMarkdown($){let X=this.renderBody($),Y={...this.readExistingFrontmatter($.content)},J=Object.keys(this.frontmatterSchema.shape);for(let[W,H]of Object.entries($.metadata))if(J.includes(W))Y[W]=H;return this.buildMarkdown(X,Y)}renderBody($){return this.extractBody($.content)}readExistingFrontmatter($){try{return b0($,K.record(K.unknown())).metadata}catch{return{}}}extractMetadata($){return $.metadata}parseFrontMatter($,X){return b0($,X).metadata}getBodyTemplate(){return this.bodyFormatter.generateBodyTemplate()}generateFrontMatter($){let X=$.metadata;return WG(X)}extractBody($){try{return b0($,K.record(K.unknown())).content}catch{return $}}parseFrontmatter($){return b0($,this.fmSchema).metadata}buildMarkdown($,X){return Y5($,X)}}var eT;var HG=B(()=>{S();M7();eT={generateBodyTemplate:()=>""}});var G1;var UG=B(()=>{S();G1=K.object({id:K.string(),entityType:K.string(),content:K.string(),created:K.string().datetime(),updated:K.string().datetime(),metadata:K.record(K.string(),K.unknown()),contentHash:K.string()})});var tO=B(()=>{S();UG();HG()});var eO=B(()=>{HG();tO()});class l2{cache=null;cacheParseError=null;logger;entityService;entityType;defaultBody;constructor($,X,G,Y){this.entityService=$,this.logger=X.child(this.constructor.name),this.entityType=G,this.defaultBody=Y}async initialize(){if(await this.load())return;if(await this.load())return;this.logger.info(`No ${this.entityType} found, creating default ${this.entityType}`);try{let $=this.createContent(this.defaultBody);await this.entityService.createEntity({entity:{id:this.entityType,entityType:this.entityType,content:$,metadata:{}}}),await this.load(),this.logger.info(`Default ${this.entityType} created successfully`)}catch($){this.logger.error(`Failed to create default ${this.entityType}`,{error:$})}}get(){if(this.cache&&!this.cacheParseError)return this.parseBody(this.cache.content);return this.defaultBody}getContent(){if(this.cache)return this.cache.content;return this.createContent(this.defaultBody)}async refreshCache(){await this.load()}async load(){try{let $=await this.entityService.getEntity({entityType:this.entityType,id:this.entityType});if(this.cache=$,this.cacheParseError=null,$)try{return this.parseBody($.content),this.logger.debug(`${this.entityType} loaded`),!0}catch(X){return this.cacheParseError=X instanceof Error?X:Error(String(X)),this.logger.error(`Failed to parse ${this.entityType} \u2014 using default. Fix the entity content to clear this error.`,{error:this.cacheParseError.message}),!0}else this.logger.debug(`No ${this.entityType} found in database`)}catch($){this.logger.warn(`Failed to load ${this.entityType}`,{error:$}),this.cache=null,this.cacheParseError=null}return!1}}function KG($,X,G){let Y=Math.max(1,Math.ceil($/G));return{currentPage:X,totalPages:Y,totalItems:$,pageSize:G,hasNextPage:X<Y,hasPrevPage:X>1}}var F7;var $Z=B(()=>{S();F7=K.object({currentPage:K.number(),totalPages:K.number(),totalItems:K.number(),pageSize:K.number(),hasNextPage:K.boolean(),hasPrevPage:K.boolean()})});var T1=B(()=>{sO();YG();aO();eO();GG();UG();M7();$Z()});function XE($){return $.replace(/:/g,"-")}function GE($){return $.split(/[:.-]/).map((X)=>X.charAt(0).toUpperCase()+X.slice(1)).join(" ")}async function FG($,X,G){let Y=MG.get(X);if(Y!==void 0)return Y;let J=XE(X),W;try{W=await $.getEntity({entityType:"prompt",id:J})}catch{return G}if(W?.content){let H=b0(W.content,K.record(K.unknown())).content;return MG.set(X,H),H}try{let H=GE(X),U=Y5(G,{title:H,target:X});await $.createEntity({entity:{id:J,entityType:"prompt",content:U,metadata:{title:H,target:X,slug:J}}})}catch{}return MG.set(X,G),G}var MG;var QG=B(()=>{T1();S();MG=new Map});function Q7($){let X=$.getEntityService(),G=$.getEntityRegistry(),Y=$.getDataSourceRegistry();return{register:(J,W,H,U)=>{G.registerEntityType(J,W,H,U)},getAdapter:(J)=>{try{return G.getAdapter(J)}catch{return}},extendFrontmatterSchema:(J,W)=>{G.extendFrontmatterSchema(J,W)},getEffectiveFrontmatterSchema:(J)=>{return G.getEffectiveFrontmatterSchema(J)},registerCreateInterceptor:(J,W)=>{G.registerCreateInterceptor(J,W)},update:async(J)=>{return X.updateEntity({entity:J})},registerDataSource:(J)=>{Y.register(J)}}}function q7($){return{resolve:(X,G)=>{return FG($,X,G)}}}var qG=B(()=>{QG()});function OG($,X,G){let Y=d2($,X,G),J=$.getEntityService(),W=$.getRenderService(),H=$.getContentService();return{...Y,entityService:J,entities:Q7($),templates:{register:(U,M)=>{$.registerTemplates(U,M??X)},format:(U,M)=>{return H.formatContent(U,M,{pluginId:X})},parse:(U,M)=>{return H.parseContent(U,M,X)},resolve:async(U,M)=>{return await H.resolveContent(U,M,X)},getCapabilities:(U)=>{let M=U.includes(":")?U:`${X}:${U}`,F=$.getTemplate(M);if(!F)return null;let Q=g4.getCapabilities(F);return{canGenerate:Q.canGenerate,canFetch:Q.canFetch,canRender:Q.canRender,isStaticOnly:Q.isStaticOnly}}},views:{get:(U)=>{return W.get(U)??void 0},list:()=>{return W.list()},hasRenderer:(U)=>{return W.hasRenderer(U,"web")},getRenderer:(U)=>{return W.getRenderer(U,"web")},validate:(U,M)=>{return W.validate(U,M)}},prompts:q7(J),registerInstructions:(U)=>{$.registerInstructions(X,U)}}}var ZG=B(()=>{$8();qG();g1()});var c2;var XZ=B(()=>{d9();ZG();c2=class c2 extends f2{type="service";getApiRoutes(){return[]}getWebRoutes(){return[]}async register($,X){let G=OG($,this.id,X);return this.context=G,this.setupMessageHandlers(G),await this.onRegister(G),this.getCapabilities()}get entityService(){return this.getContext().entityService}registerEntityType($,X,G,Y){this.getContext().entities.register($,X,G,Y)}async enqueueJob($){return this.getContext().jobs.enqueue($)}async enqueueBatch($,X){return this.getContext().jobs.enqueueBatch($,X)}async registerEntityTypes($){}async registerJobHandlers($){}async onRegister($){await this.registerEntityTypes($),await this.registerJobHandlers($)}}});function RG($,X,G){let Y=d2($,X,G),J=$.getEntityService();return{...Y,entityService:J,entities:Q7($),ai:{query:(W,H)=>$.query(W,H),generate:async(W)=>{return $.generateContent(W)},generateObject:async(W,H)=>{return $.generateObject(W,H)},generateImage:async(W,H)=>{return $.generateImage(W,H)},canGenerateImages:()=>{return $.canGenerateImages()}},prompts:q7(J)}}var AG=B(()=>{$8();qG()});function BG($,X,G){let Y=!1,J=!1;if($.jobs.registerHandler(G.job.type,G.job.handler),G.initialSync){let W=G.initialSync;$.messaging.subscribe("sync:initial:completed",async()=>{if(Y)return{success:!0};if(Y=!0,!(await W.shouldEnqueue?.()??!0))return X.info("Skipping derived entity projection initial sync",{projectionId:G.id,targetType:G.targetType}),{success:!0};return J=await GZ($,X,G,W.jobData,JE(W.jobOptions),"initial-sync"),{success:!0}})}if(G.sourceChange){let W=G.sourceChange,H=new Set(W.sourceTypes),U=W.events??["entity:created","entity:updated"],M=async(F)=>{if(W.requireInitialSync&&!Y)return{success:!0};let Q=F.payload,q=YE(W,Q);if(!q||!H.has("*")&&!H.has(q))return{success:!0};if(!(await W.shouldEnqueue?.(Q)??!0))return{success:!0};let O=await W.jobData(Q);if(!O)return{success:!0};return await GZ($,X,G,O,W.jobOptions?.(Q),"source-change"),{success:!0}};for(let F of U)$.messaging.subscribe(F,M)}return{hasObservedInitialSync:()=>Y,hasQueuedInitialSync:()=>J}}function YE($,X){if($.sourceType)return $.sourceType;if($.sourceKind&&$.sourceKind!=="entity")return $.sourceKind;return X.entityType}async function GZ($,X,G,Y,J,W){try{return await $.jobs.enqueue({type:G.job.type,data:Y,...J?{options:J}:{}}),X.info("Queued derived entity projection",{projectionId:G.id,targetType:G.targetType,reason:W}),!0}catch(H){return X.error("Failed to queue derived entity projection",{projectionId:G.id,targetType:G.targetType,reason:W,error:f0(H)}),!1}}function JE($){return typeof $==="function"?$():$}var NG=B(()=>{S()});var WE,J5;var YZ=B(()=>{d9();S();AG();NG();WE=K.object({});J5=class J5 extends f2{type="entity";derivedEntityProjectionControllers=new Map;constructor($,X,G={},Y=WE){super($,X,G,Y)}async register($,X){let G=RG($,this.id,X);if(this.context=G,this.setupMessageHandlers(G),G.entities.register(this.entityType,this.schema,this.adapter,this.getEntityTypeConfig()),this.interceptCreate!==J5.prototype.interceptCreate)G.entities.registerCreateInterceptor(this.entityType,(M,F)=>this.interceptCreate(M,F,G));let Y=this.createGenerationHandler(G);if(Y)G.jobs.registerHandler(`${this.entityType}:generation`,Y);let J=this.getTemplates();if(J&&Object.keys(J).length>0)$.registerTemplates(J,this.id);let W=this.getDataSources();for(let M of W)G.entities.registerDataSource(M);let H=this.getDerivedEntityProjections(G);for(let M of H){let F=BG(G,this.logger,M);this.derivedEntityProjectionControllers.set(M.id,F)}await this.onRegister(this.context);let U=await this.getInstructions();return{tools:[],resources:[],...U&&{instructions:U}}}async interceptCreate($,X,G){return{kind:"continue",input:$}}createGenerationHandler($){return null}getTemplates(){return null}getDataSources(){return[]}getEntityTypeConfig(){return}getDerivedEntityProjections($){return[]}getDerivedEntityProjectionController($){return this.derivedEntityProjectionControllers.get($)}}});var VG=B(()=>{$8()});var wG=B(()=>{d9();VG()});var JZ=()=>{};class r2{logger;constructor($){this.logger=$}buildDetailResult($,X){throw Error(`${this.id}: buildDetailResult() not implemented. Override this method or override fetch() to handle detail views.`)}parseQuery($){let X=Z7.parse($);return{entityType:X.entityType??this.config.entityType,query:X.query??{}}}async fetch($,X,G){let Y=this.parseQuery($),J=G.entityService;if(Y.query.id){let H=await this.fetchDetail(Y.query.id,J);return X.parse(this.buildDetailResult(H.item,H.navigation))}let W=await this.fetchList(Y.query,J);return X.parse(this.buildListResult(W.items,W.pagination,Y.query))}async fetchDetail($,X){let G=await this.lookupEntity($,X),Y=this.transformEntity(G),J=null;if(this.config.enableNavigation)J=await this.resolveNavigation(G,X);return{item:Y,navigation:J}}async fetchList($,X,G){let Y=$.page??1,J=$.pageSize??$.limit??this.config.defaultLimit??100,W=(Y-1)*J,H=$.page!==void 0,[U,M]=await Promise.all([X.listEntities({entityType:this.config.entityType,options:{limit:J,offset:W,sortFields:this.config.defaultSort,...G}}),H?X.countEntities({entityType:this.config.entityType,options:G?.filter?{filter:G.filter}:void 0}):Promise.resolve(0)]),F=U.map((q)=>this.transformEntity(q)),Q=H?KG(M,Y,J):null;return{items:F,pagination:Q}}async resolveNavigation($,X,G){let Y=this.config.navigationLimit??1000,J=await X.listEntities({entityType:this.config.entityType,options:{limit:Y,sortFields:G??this.config.defaultSort}}),W=J.findIndex((Q)=>Q.id===$.id),H=W>0?J[W-1]:void 0,U=W<J.length-1?J[W+1]:void 0,M=H?this.transformEntity(H):null,F=U?this.transformEntity(U):null;return{prev:M,next:F}}async lookupEntity($,X){if(this.config.lookupField==="id"){let J=await X.getEntity({entityType:this.config.entityType,id:$});if(!J)throw Error(`${this.config.entityType} not found: ${$}`);return J}let Y=(await X.listEntities({entityType:this.config.entityType,options:{filter:{metadata:{slug:$}},limit:1}}))[0];if(!Y)throw Error(`${this.config.entityType} not found with slug: ${$}`);return Y}}var O7,Z7;var WZ=B(()=>{T1();S();O7=K.object({id:K.string().optional(),limit:K.number().optional(),page:K.number().optional(),pageSize:K.number().optional(),baseUrl:K.string().optional()}).passthrough(),Z7=K.object({entityType:K.string().optional(),query:O7.optional()}).passthrough()});function HZ($){if(typeof $!=="object"||$===null||!("coverImage"in $))return;let X=$.coverImage;if(X===void 0||X===!1)return;if(X===!0)return{generate:!0};if(typeof X!=="object"||X===null)return;let G=X;if(G.generate===!1)return;let Y=G.prompt?.trim();return{generate:!0,...Y&&{prompt:Y}}}var i2,_G;var UZ=B(()=>{t4();S();g5();i2=class i2 extends a4{context;entityType;constructor($,X,G){super($,{schema:G.schema,jobTypeName:G.jobTypeName});this.context=X,this.entityType=G.entityType}async afterCreate($,X,G,Y){}async onGenerationFailure($,X){}validateAndParse($){let X=super.validateAndParse($);if(!X)return null;let G=HZ($);if(!G||typeof X!=="object")return X;return{...X,coverImage:G}}async process($,X,G){try{await this.reportProgress(G,{progress:p4.START,message:`Starting ${this.jobTypeName}`});let Y=await this.generate($,G);await this.reportProgress(G,{progress:p4.SAVE,message:`Saving ${this.entityType} to database`});let J=await this.context.entityService.createEntity({entity:{id:Y.id,entityType:this.entityType,content:Y.content,metadata:Y.metadata},options:Y.createOptions});return await this.afterCreate($,J.entityId,G,Y),await this.enqueueGenericCoverImageIfRequested($,J.entityId,G,Y),await this.reportProgress(G,{progress:p4.COMPLETE,message:`${Y.title??this.entityType} created successfully`}),{success:!0,entityId:J.entityId,...Y.resultExtras}}catch(Y){if(Y instanceof _G)return await this.onGenerationFailure($,Y.message),{success:!1,error:Y.message};let J=f0(Y);return this.logger.error(`${this.jobTypeName} job failed`,{error:Y,jobId:X,data:this.summarizeDataForLog($)}),await this.onGenerationFailure($,J),U3.failure(Y)}}async enqueueGenericCoverImageIfRequested($,X,G,Y){let J=HZ($);if(!J)return;await this.reportProgress(G,{progress:90,message:"Queueing cover image generation"});let W=Y.title??X;await this.context.jobs.enqueue({type:"image:image-generate",data:{prompt:J.prompt??`Editorial cover image for: ${W}. `,title:`${W} Cover`,aspectRatio:"16:9",targetEntityType:this.entityType,targetEntityId:X,entityTitle:W,entityContent:Y.content},toolContext:{interfaceType:"job",userId:"system"}})}failEarly($){throw new _G($)}};_G=class _G extends Error{constructor($){super($);this.name="GenerationFailure"}}});var R7,KZ,MZ;var zG=B(()=>{u2();R7=K6("conversations",{id:J0("id").primaryKey(),sessionId:J0("session_id").notNull(),interfaceType:J0("interface_type").notNull(),channelId:J0("channel_id").notNull(),started:J0("started").notNull(),lastActive:J0("last_active").notNull(),metadata:J0("metadata"),created:J0("created").notNull(),updated:J0("updated").notNull()},($)=>({sessionIdx:s1("idx_conversations_session").on($.sessionId),channelIdx:s1("idx_conversations_channel").on($.channelId),interfaceSessionIdx:s1("idx_conversations_interface_session").on($.interfaceType,$.sessionId),interfaceChannelIdx:s1("idx_conversations_interface_channel").on($.interfaceType,$.channelId)})),KZ=K6("messages",{id:J0("id").primaryKey(),conversationId:J0("conversation_id").notNull().references(()=>R7.id,{onDelete:"cascade"}),role:J0("role").notNull(),content:J0("content").notNull(),timestamp:J0("timestamp").notNull(),metadata:J0("metadata")},($)=>({conversationIdx:s1("idx_messages_conversation").on($.conversationId),timestampIdx:s1("idx_messages_timestamp").on($.timestamp)})),MZ=K6("summary_tracking",{conversationId:J0("conversation_id").primaryKey().references(()=>R7.id,{onDelete:"cascade"}),lastSummarizedAt:J0("last_summarized_at"),lastMessageId:J0("last_message_id"),messagesSinceSummary:V1("messages_since_summary").default(0),updated:J0("updated").notNull()})});import{createClient as ct}from"@libsql/client";var FZ=B(()=>{zG()});var A7,B7,UE,KE,QZ;var DG=B(()=>{S();A7=K.object({actorId:K.string(),canonicalId:K.string().optional(),interfaceType:K.string(),role:K.enum(["user","assistant","system"]),displayName:K.string().optional(),username:K.string().optional(),isBot:K.boolean().optional()}),B7=K.object({messageId:K.string().optional(),channelId:K.string().optional(),channelName:K.string().optional(),threadId:K.string().optional(),metadata:K.record(K.unknown()).optional()}),UE=K.object({actor:A7.optional(),source:B7.optional()}).passthrough(),KE=K.object({id:K.string(),conversationId:K.string(),role:K.string(),content:K.string(),timestamp:K.string(),metadata:K.string().nullable()}),QZ=K.object({conversationId:K.string(),messageCount:K.number(),messages:K.array(KE),windowStart:K.number(),windowEnd:K.number(),windowSize:K.number(),timestamp:K.string()})});var qZ=B(()=>{FZ();DG();zG();S()});var PG=B(()=>{qZ();DG()});var QE,OZ,ZZ,qE;var RZ=B(()=>{g1();P1();PG();QE=K.object({userPermissionLevel:C6.optional(),interfaceType:K.string().optional(),channelId:K.string().optional(),channelName:K.string().optional(),actor:A7.optional(),source:B7.optional()}),OZ=K.object({toolName:K.string(),description:K.string(),args:K.unknown()}),ZZ=K.object({toolName:K.string(),args:K.record(K.unknown()).optional(),jobId:K.string().optional(),data:K.unknown().optional()}),qE=K.object({text:K.string(),toolResults:K.array(ZZ).optional(),pendingConfirmation:OZ.optional(),usage:K.object({promptTokens:K.number(),completionTokens:K.number(),totalTokens:K.number()})})});var OE,ZE,RE;var AZ=B(()=>{P1();u9();OE=K.object({status:K.enum(["healthy","warning","error","unknown"]),message:K.string().optional(),lastCheck:K.string().optional(),details:K.record(K.unknown()).optional()}),ZE=K.object({name:K.string(),pluginId:K.string(),status:K.string(),health:OE.optional()}),RE=K.object({model:K.string(),version:K.string(),uptime:K.number(),entities:K.number(),entityCounts:K.array(O3),embeddings:K.number(),ai:K.object({model:K.string(),embeddingModel:K.string()}),daemons:K.array(ZE),endpoints:K.array(m9),interactions:K.array(p9)})});var AE,BE;var BZ=B(()=>{P1();s3();AE=K.union([K.object({success:K.boolean(),data:K.unknown().optional(),error:K.string().optional()}),K.object({noop:K.literal(!0)})]),BE=K.object({id:K.string(),timestamp:K.string(),type:K.string(),source:K.string(),target:K.string().optional(),metadata:e4.optional()})});var LG=B(()=>{t4()});var NE,CG;var NZ=B(()=>{S();NE=["meet.google.com","zoom.us","teams.microsoft.com","whereby.com","gather.town","calendly.com","cal.com","discord.com","discord.gg","cdn.discordapp.com","media.discordapp.net","giphy.com","tenor.com","wetransfer.com","file.io"],CG=K.object({captureUrls:K.boolean().default(!1),blockedUrlDomains:K.array(K.string()).default(NE)})});var VZ=B(()=>{wG();LG();NZ()});var wZ=()=>{};var _Z=B(()=>{VZ();LG();wZ()});async function Y8($){let{entityType:X,title:G,deriveId:Y,regeneratePrompt:J,context:W}=$,H=Y(G);if(!await W.entityService.getEntity({entityType:X,id:H}))return G;W.logger.debug(`Entity ID collision: ${X}/${H}, asking AI for a new title`);let M=K.object({title:K.string().max(80).describe("A short, unique title (2-6 words)")}),{object:F}=await W.ai.generateObject(`The title "${G}" is already taken. ${J}`,M),Q=F.title;return W.logger.debug(`AI suggested new title: "${Q}"`),Q}var zZ=B(()=>{S()});var CE;var DZ=B(()=>{S();CE=K.object({enabled:K.boolean().describe("Whether the plugin is enabled"),debug:K.boolean().describe("Enable debug logging for this plugin")})});var TG,N7;var EG=B(()=>{S();T1();TG=G1.extend({id:K.literal("brain-character"),entityType:K.literal("brain-character")}),N7=K.object({name:K.string().describe("The brain's friendly display name"),role:K.string().describe("The brain's primary role"),purpose:K.string().describe("The brain's purpose and goals"),values:K.array(K.string()).describe("Core values that guide behavior")})});var V7;var IG=B(()=>{T1();EG();V7=class V7 extends X1{constructor(){super({entityType:"brain-character",schema:TG,frontmatterSchema:N7,isSingleton:!0,hasBody:!1})}createCharacterContent($){return this.buildMarkdown("",$)}parseCharacterBody($){return this.parseFrontmatter($)}toMarkdown($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}fromMarkdown($){return{content:$,entityType:"brain-character"}}extractMetadata($){let X=this.parseFrontmatter($.content);return{role:X.role,values:X.values}}generateFrontMatter($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}}});var W5;var PZ=B(()=>{T1();IG();W5=class W5 extends l2{static instance=null;adapter=new V7;static getDefaultCharacter(){return{name:"Brain",role:"Knowledge assistant",purpose:"Help organize, understand, and retrieve information from your knowledge base",values:["clarity","accuracy","helpfulness"]}}static getInstance($,X,G){return W5.instance??=new W5($,X,G),W5.instance}static resetInstance(){W5.instance=null}static createFresh($,X,G){return new W5($,X,G)}constructor($,X,G){super($,X,"brain-character",G??W5.getDefaultCharacter())}parseBody($){return this.adapter.parseCharacterBody($)}createContent($){return this.adapter.createCharacterContent($)}getCharacter(){return this.get()}getCharacterContent(){return this.getContent()}}});async function M6($){let G=(await $.listEntities({entityType:"anchor-profile",options:{limit:1}}))[0];if(!G)throw Error("Profile not found \u2014 create an anchor-profile entity");return G.content}var o2;var LZ=B(()=>{S();o2=K.object({tagline:K.string().optional().describe("Short, punchy one-liner for homepage"),intro:K.string().optional().describe("Optional longer introduction for homepage"),story:K.string().optional().describe("Extended bio/narrative (multi-paragraph markdown)")})});var jG,F6;var SG=B(()=>{S();T1();jG=G1.extend({id:K.literal("anchor-profile"),entityType:K.literal("anchor-profile")}),F6=K.object({name:K.string().describe("Name (person or organization)"),kind:K.enum(["professional","team","collective"]).describe("Type of anchor: professional (individual), team, or collective"),organization:K.string().optional().describe("Organization the anchor belongs to"),description:K.string().optional().describe("Short description or biography"),avatar:K.string().optional().describe("URL or asset path to avatar/logo"),website:K.string().optional().describe("Primary website URL"),email:K.string().optional().describe("Contact email"),socialLinks:K.array(K.object({platform:K.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:K.string().describe("Profile or contact URL"),label:K.string().optional().describe("Optional display label")})).optional().describe("Social media and contact links")})});var p1;var kG=B(()=>{T1();SG();p1=class p1 extends X1{constructor(){super({entityType:"anchor-profile",schema:jG,frontmatterSchema:F6,isSingleton:!0,hasBody:!0})}createProfileContent($){let X=F6.parse($);return this.buildMarkdown("",X)}parseProfileBody($,X){if(X){let{metadata:G,content:Y}=b0($,X);return Y?{...G,story:Y}:G}return this.parseFrontmatter($)}fromMarkdown($){return{content:$,entityType:"anchor-profile"}}extractMetadata($){let X=this.parseFrontmatter($.content);return{name:X.name,email:X.email,website:X.website}}generateFrontMatter($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}}});var I6;var CZ=B(()=>{T1();kG();I6=class I6 extends l2{static instance=null;adapter=new p1;static getDefaultProfile(){return{name:"Unknown",kind:"professional"}}static getInstance($,X,G){return I6.instance??=new I6($,X,G),I6.instance}static resetInstance(){I6.instance=null}static createFresh($,X,G){return new I6($,X,G)}constructor($,X,G){super($,X,"anchor-profile",G??I6.getDefaultProfile())}parseBody($){return this.adapter.parseProfileBody($)}createContent($){return this.adapter.createProfileContent($)}getProfile(){return this.get()}getProfileContent(){return this.getContent()}}});var H5="canonical-identity-link",TZ,w7,_7,vG;var z7=B(()=>{T1();S();TZ=K.object({actorId:K.string().min(1),interfaceType:K.string().min(1),displayName:K.string().min(1).optional()}),w7=K.object({canonicalId:K.string().regex(/^person:[a-z0-9][a-z0-9-]*$/,"canonicalId must use person:<slug> format"),displayName:K.string().min(1).optional(),actors:K.array(TZ).min(1)}),_7=w7.superRefine(($,X)=>{let G=new Set;for(let[Y,J]of $.actors.entries()){if(!G.has(J.actorId)){G.add(J.actorId);continue}X.addIssue({code:K.ZodIssueCode.custom,path:["actors",Y,"actorId"],message:`Duplicate actorId ${J.actorId}`})}}),vG=G1.extend({entityType:K.literal(H5)})});var D7;var xG=B(()=>{T1();z7();D7=class D7 extends X1{constructor(){super({entityType:H5,schema:vG,frontmatterSchema:w7,hasBody:!1})}createLinkContent($){let X=_7.parse($);return this.buildMarkdown("",X)}parseLinkBody($){return _7.parse(this.parseFrontmatter($))}toMarkdown($){return this.createLinkContent(this.parseLinkBody($.content))}fromMarkdown($){return{content:$,entityType:H5}}extractMetadata($){let X=this.parseLinkBody($.content);return{canonicalId:X.canonicalId,displayName:X.displayName,actorIds:X.actors.map((G)=>G.actorId)}}generateFrontMatter($){return this.createLinkContent(this.parseLinkBody($.content))}}});class p5{entityService;static instance=null;adapter=new D7;logger;links=[];actorIndex=new Map;static getInstance($,X){return p5.instance??=new p5($,X),p5.instance}static createFresh($,X){return new p5($,X)}static resetInstance(){p5.instance=null}constructor($,X){this.entityService=$;this.logger=X.child("CanonicalIdentityService")}async refreshCache(){let $;try{$=await this.entityService.listEntities({entityType:H5,options:{limit:1e4}})}catch(Y){this.links=[],this.actorIndex=new Map,this.logger.warn("Failed to load canonical identity links",{error:Y});return}let X=$.map((Y)=>this.adapter.parseLinkBody(Y.content)),G=this.buildActorIndex(X);this.links=X,this.actorIndex=G,this.logger.debug("Canonical identity links refreshed",{linkCount:X.length,actorCount:G.size})}getLinks(){return this.links}resolveActor($){return this.actorIndex.get($)??null}enrichActor($){if($.canonicalId||$.role!=="user")return $;let X=this.resolveActor($.actorId);if(!X)return $;return{...$,canonicalId:X.canonicalId}}async validateLink($,X){let G=this.adapter.parseLinkBody($.content),Y=await this.entityService.listEntities({entityType:H5,options:{limit:1e4}}),J=new Set(G.actors.map((W)=>W.actorId));for(let W of Y){if(W.id===$.id)continue;let H=this.adapter.parseLinkBody(W.content);for(let U of H.actors)if(J.has(U.actorId))throw Error(`Cannot persist canonical identity link ${G.canonicalId}: actorId ${U.actorId} is already claimed by ${H.canonicalId}`)}}buildActorIndex($){let X=new Map;for(let G of $)for(let Y of G.actors){let J=X.get(Y.actorId);if(J){this.logger.error("Duplicate canonical identity actor id in cache; keeping first match (invariant should be enforced at write time)",{actorId:Y.actorId,keptCanonicalId:J.canonicalId,droppedCanonicalId:G.canonicalId});continue}X.set(Y.actorId,{...G,matchedActor:Y})}return X}}var EZ=B(()=>{xG();z7()});var u5=B(()=>{PZ();IG();EG();LZ();CZ();kG();SG();EZ();xG();z7()});var IZ,TE,EE,IE;var jZ=B(()=>{S();u5();IZ=K.object({id:K.string(),description:K.string(),name:K.string().optional(),tags:K.array(K.string()).optional().default([])}).passthrough(),TE=K.object({uri:K.string(),params:K.record(K.unknown()).optional()}).passthrough(),EE=K.object({name:K.string(),url:K.string(),description:K.string().optional(),skills:K.array(IZ).optional().default([]),capabilities:K.object({extensions:K.array(TE).optional().default([])}).passthrough().optional()}).passthrough(),IE=K.object({name:K.string(),description:K.string(),tags:K.array(K.string()),examples:K.array(K.string())})});var n2=()=>{};var a1;var J8=B(()=>{a1=class a1 extends Error{pluginId;constructor($,X){super(`Plugin ${$}: ${X}`);this.name="PluginError",this.pluginId=$}}});class bG{plugins;events;daemonRegistry;logger;constructor($,X,G,Y){this.plugins=$;this.events=X;this.daemonRegistry=G;this.logger=Y.child("PluginLifecycle")}async initializePlugin($,X,G){let Y=this.plugins.get($);if(!Y)throw new a1($,"Registration failed: Plugin is not registered");let J=Y.plugin;this.logger.debug(`Initializing plugin: ${$}`),this.events.emit("plugin:before_initialize",$,J);try{let W=await J.register(X,G);return Y.status="initialized",this.logger.debug(`Initialized plugin: ${$}`),this.events.emit("plugin:initialized",$,J),W}catch(W){let H=f0(W);throw this.logger.error(`Error initializing plugin ${$}: ${H}`),Y.status="error",Y.error=f4(W),this.events.emit("plugin:error",$,W),W}}async readyPlugin($){let X=this.plugins.get($);if(!X)throw new a1($,"Ready failed: Plugin is not registered");if(X.status!=="initialized"){this.logger.debug(`Skipping ready hook for non-initialized plugin: ${$}`);return}try{await X.plugin.ready?.(),this.logger.debug(`Ready hook completed for plugin: ${$}`)}catch(G){let Y=f4(G);throw X.status="error",X.error=Y,this.events.emit("plugin:error",$,Y),Y}}async startPluginDaemons($){let X=this.plugins.get($);if(X?.status!=="initialized")return;try{await this.daemonRegistry.startPlugin($),this.logger.debug(`Started daemons for plugin: ${$}`)}catch(G){if(X.plugin.requiresDaemonStartup?.())throw G;this.logger.warn(`Daemon ${$} failed to start: ${f0(G)}`)}}async disablePlugin($){let X=this.plugins.get($);if(!X){this.logger.warn(`Cannot disable plugin ${$}: not registered`);return}this.logger.debug(`Disabling plugin: ${$}`);try{await this.daemonRegistry.stopPlugin($),this.logger.debug(`Stopped daemons for plugin: ${$}`)}catch(G){this.logger.error(`Failed to stop daemons for plugin: ${$}`,G)}if(X.plugin.shutdown)try{await X.plugin.shutdown(),this.logger.debug(`Shutdown completed for plugin: ${$}`)}catch(G){this.logger.error(`Plugin shutdown failed for ${$}:`,G)}X.status="disabled",this.events.emit("plugin:disabled",$,X.plugin),this.logger.debug(`Disabled plugin: ${$}`)}async enablePlugin($){let X=this.plugins.get($);if(!X){this.logger.warn(`Cannot enable plugin ${$}: not registered`);return}if(X.status!=="disabled"){this.logger.warn(`Cannot enable plugin ${$}: not disabled`);return}this.logger.debug(`Enabling plugin: ${$}`),X.status="initialized";try{await this.daemonRegistry.startPlugin($),this.logger.debug(`Started daemons for plugin: ${$}`)}catch(G){this.logger.error(`Failed to start daemons for plugin: ${$}`,G)}this.events.emit("plugin:enabled",$,X.plugin),this.logger.debug(`Enabled plugin: ${$}`)}}var SZ=B(()=>{S();n2();J8()});class hG{plugins;events;logger;constructor($,X,G){this.plugins=$;this.events=X;this.logger=G.child("DependencyResolver")}async resolveInitializationOrder($){this.logger.debug("Resolving plugin initialization order...");let X=Array.from(this.plugins.keys()),G=new Set,Y=!0;while(Y&&G.size<X.length){Y=!1;for(let H of X){if(G.has(H))continue;if(!this.plugins.get(H))continue;if(this.getUnmetDependencies(H).length===0)try{await $(H),G.add(H),Y=!0}catch(F){let Q=f0(F);this.logger.error(`Failed to initialize plugin ${H}: ${Q}`),G.add(H),Y=!0}}}let J=X.filter((H)=>!G.has(H));if(J.length>0){let H=J.join(", ");this.logger.error(`Failed to initialize plugins due to dependency issues: ${H}`);for(let U of J){let M=this.getUnmetDependencies(U);this.logger.error(`Plugin ${U} has unmet dependencies: ${M.join(", ")}`);let F=this.plugins.get(U);if(F)F.status="error",F.error=new a1(U,`Unmet dependencies: ${M.join(", ")}`);this.events.emit("plugin:error",U,F?.error)}}let W=new Set;for(let[H,U]of this.plugins)if(U.status==="initialized")W.add(H);return this.logger.debug(`Resolved ${W.size} of ${X.length} plugins`),{initialized:W,failed:J}}getUnmetDependencies($){let X=this.plugins.get($);if(!X)return[];let{dependencies:G}=X,Y=[];for(let J of G){let W=this.plugins.get(J);if(!W){Y.push(J);continue}if(W.status!=="initialized")Y.push(J)}return Y}}var kZ=B(()=>{S();n2();J8()});class yG{logger;constructor($){this.logger=$.child("CapabilityRegistrar")}async registerCapabilities($,X,G){if(G.tools.length>0)$.registerTools(X,G.tools),this.logger.debug(`Registered ${G.tools.length} tools from ${X}`);if(G.resources.length>0)$.registerResources(X,G.resources),this.logger.debug(`Registered ${G.resources.length} resources from ${X}`);if(G.instructions)$.registerInstructions(X,G.instructions),this.logger.debug(`Registered instructions from ${X}`)}}import{EventEmitter as vZ}from"events";class U5{static instance=null;plugins=new Map;logger;events=new vZ;daemonRegistry;shell=null;initializedPluginIds=[];pluginLifecycle;dependencyResolver;capabilityRegistrar;static getInstance($,X){return U5.instance??=new U5($,X),U5.instance}static resetInstance(){U5.instance=null}static createFresh($,X){return new U5($,X)}setShell($){this.shell=$}constructor($,X){this.logger=$.child("PluginManager"),this.events=new vZ,this.daemonRegistry=X,this.pluginLifecycle=new bG(this.plugins,this.events,this.daemonRegistry,$),this.dependencyResolver=new hG(this.plugins,this.events,$),this.capabilityRegistrar=new yG($)}registerPlugin($){if(!$.id)throw new a1("unknown","Registration failed: Plugin must have an id");if(this.logger.debug(`Registering plugin: ${$.id} (${$.version})`),this.plugins.has($.id)){let J=this.plugins.get($.id)?.plugin.version;throw new a1($.id,`Registration failed: Plugin is already registered with version ${J}`)}let X=$.dependencies??[],G={plugin:$,status:"registered",dependencies:X};this.plugins.set($.id,G),this.logger.debug(`Registered plugin: ${$.id} (${$.version})`),this.events.emit("plugin:registered",$.id,$)}async initializePlugins($){this.logger.debug("Initializing plugins..."),this.initializedPluginIds=[];let X=await this.dependencyResolver.resolveInitializationOrder(async(G)=>{await this.initializePlugin(G,$)});this.logger.debug(`Initialized ${X.initialized.size} of ${this.plugins.size} plugins`)}async initializePlugin($,X){if(!this.shell)throw new a1($,"Cannot initialize plugin: Shell not set. Call setShell() first.");let G=this.shell,Y=await this.pluginLifecycle.initializePlugin($,G,X);await this.capabilityRegistrar.registerCapabilities(G,$,Y),this.initializedPluginIds.push($)}async readyPlugins(){this.logger.debug("Dispatching plugin ready hooks..."),await Promise.all(this.initializedPluginIds.map(($)=>this.pluginLifecycle.readyPlugin($)))}async startPluginDaemons(){this.logger.debug("Starting plugin daemons..."),await Promise.all(this.initializedPluginIds.map(($)=>this.pluginLifecycle.startPluginDaemons($)))}getPlugin($){return this.plugins.get($)?.plugin}getPluginStatus($){return this.plugins.get($)?.status}hasPlugin($){return this.plugins.has($)}isPluginInitialized($){return this.plugins.get($)?.status==="initialized"}getAllPluginIds(){return Array.from(this.plugins.keys())}getAllPlugins(){return new Map(this.plugins)}getFailedPlugins(){return Array.from(this.plugins.entries()).filter(($)=>$[1].status==="error"&&$[1].error!==void 0).map(([$,X])=>({id:$,error:X.error}))}getPluginPackageName($){return this.plugins.get($)?.plugin.packageName}async disablePlugin($){await this.pluginLifecycle.disablePlugin($)}async enablePlugin($){await this.pluginLifecycle.enablePlugin($)}on($,X){this.events.on($,X)}once($,X){this.events.once($,X)}off($,X){this.events.off($,X)}getEventEmitter(){return this.events}}var xZ=B(()=>{n2();J8();SZ();kZ();n2()});var bZ=B(()=>{xZ();n2()});var O0=B(()=>{XZ();YZ();NG();AG();QG();wG();JZ();n3();ZG();$8();VG();u9();T1();WZ();T1();t4();UZ();g1();RZ();AZ();t3();XG();BZ();PG();_Z();q3();zZ();S();g2();DZ();u5();jZ();bZ();J8()});var jE,O1,SE,s2,W8,t1,H8;var Q6=B(()=>{S();O0();jE=K.enum(["draft","queued","published"]),O1=K.object({title:K.string(),slug:K.string().optional(),status:jE,publishedAt:K.string().datetime().optional(),excerpt:K.string(),author:K.string(),coverImageId:K.string().optional(),seriesName:K.string().optional(),seriesIndex:K.number().optional(),ogImage:K.string().url().optional(),ogDescription:K.string().optional(),twitterCard:K.enum(["summary","summary_large_image"]).optional(),canonicalUrl:K.string().url().optional()}),SE=O1.pick({title:!0,status:!0,publishedAt:!0,seriesName:!0,seriesIndex:!0}).extend({slug:K.string()}),s2=G1.extend({entityType:K.literal("post"),metadata:SE}),W8=s2.extend({frontmatter:O1,body:K.string(),coverImageUrl:K.string().optional()}),t1=W8.extend({url:K.string().optional(),typeLabel:K.string().optional(),listUrl:K.string().optional(),listLabel:K.string().optional(),seriesUrl:K.string().optional(),coverImageUrl:K.string().optional(),coverImageWidth:K.number().optional(),coverImageHeight:K.number().optional(),coverImageSrcset:K.string().optional(),coverImageSizes:K.string().optional()}),H8=W8.extend({url:K.string(),typeLabel:K.string(),listUrl:K.string(),listLabel:K.string(),seriesUrl:K.string().optional(),coverImageUrl:K.string().optional(),coverImageWidth:K.number().optional(),coverImageHeight:K.number().optional(),coverImageSrcset:K.string().optional(),coverImageSizes:K.string().optional()})});var hZ={};v8(hZ,{blogPostAdapter:()=>d5,BlogPostAdapter:()=>C7});var C7,d5;var U8=B(()=>{O0();S();Q6();C7=class C7 extends X1{constructor(){super({entityType:"post",schema:s2,frontmatterSchema:O1,supportsCoverImage:!0})}toMarkdown($){let X=this.extractBody($.content);try{let G=this.parseFrontMatter($.content,O1),Y={...G,slug:G.slug??$.metadata.slug};return this.buildMarkdown(X,Y)}catch{return X}}fromMarkdown($){let X=this.parseFrontMatter($,O1),G=X.slug??f1(X.title);return{content:$,entityType:"post",metadata:{title:X.title,slug:G,status:X.status,publishedAt:X.publishedAt,seriesName:X.seriesName,seriesIndex:X.seriesIndex}}}parsePostFrontmatter($){return this.parseFrontMatter($.content,O1)}createPostContent($,X){return this.buildMarkdown(X,$)}};d5=new C7});function b1($){return $.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function kR($){return new Date($).toUTCString()}function g7($,X){let G=$.filter((F)=>{if(X.includeAllPosts)return!0;return F.frontmatter.status==="published"&&F.frontmatter.publishedAt}).sort((F,Q)=>{let q=new Date(F.frontmatter.publishedAt??F.created);return new Date(Q.frontmatter.publishedAt??Q.created).getTime()-q.getTime()}),Y=G.length>0&&G[0]?G[0].frontmatter.publishedAt??G[0].created:new Date().toISOString(),J=G.map((F)=>{let Q=`${X.link}/posts/${F.metadata.slug}`,q=F.frontmatter.publishedAt??F.created,R=F.frontmatter.excerpt,O=F.frontmatter.author;return` <item>
120
120
  <title>${b1(F.frontmatter.title)}</title>
121
121
  <link>${b1(Q)}</link>
122
122
  <guid isPermaLink="true">${b1(Q)}</guid>
@@ -140,7 +140,7 @@ return `+str.trim()+`;
140
140
  <atom:link href="${b1(X.link)}/feed.xml" rel="self" type="application/rss+xml"/>${W}${H}${U}
141
141
  ${J}
142
142
  </channel>
143
- </rss>`}var yR={};v8(yR,{RSSDataSource:()=>hR});class hR{logger;id="blog:rss";name="Blog RSS Feed DataSource";description="Generates RSS 2.0 feed XML from published blog posts";constructor($){this.logger=$;this.logger.debug("RSSDataSource initialized")}async fetch($,X,G){let Y=JS.parse($),H=(await G.entityService.listEntities({entityType:"post",options:{limit:1000}})).filter((Q)=>Q.metadata.status==="published"&&Q.metadata.publishedAt).map((Q)=>{let q=b0(Q.content,O1);return{...Q,frontmatter:q.metadata,body:q.content}});this.logger.debug(`Generating RSS feed with ${H.length} posts`);let U={title:Y.title,description:Y.description,link:Y.siteUrl,language:Y.language??"en-us",...Y.copyright&&{copyright:Y.copyright}},F={xml:g7(H,U)};return X.parse(F)}}var JS;var fR=B(()=>{S();O0();Q2();JS=K.object({siteUrl:K.string().url(),title:K.string(),description:K.string(),language:K.string().optional(),copyright:K.string().optional()})});O0();S();g1();O0();Q2();U8();S();var fG=K.object({defaultPrompt:K.string().default("Write a blog post about my recent work and insights"),paginate:K.boolean().default(!0),pageSize:K.number().default(10)});O0();S();g6();var kE=K.object({prompt:K.string().optional(),title:K.string().optional(),content:K.string().optional(),excerpt:K.string().optional(),coverImageId:K.string().optional(),seriesName:K.string().optional(),seriesIndex:K.number().optional(),skipAi:K.boolean().optional()}),t10=m4.extend({title:K.string().optional(),slug:K.string().optional()});class gG extends i5{constructor($,X){super($,X,{schema:kE,jobTypeName:"blog-generation",entityType:"post"})}async generate($,X){let{prompt:G,coverImageId:Y,seriesName:J,seriesIndex:W,skipAi:H}=$,{title:U,content:M,excerpt:F}=$;if(H){if(!U)this.failEarly("Title is required when skipAi is true");M=M??`## Introduction
143
+ </rss>`}var yR={};v8(yR,{RSSDataSource:()=>hR});class hR{logger;id="blog:rss";name="Blog RSS Feed DataSource";description="Generates RSS 2.0 feed XML from published blog posts";constructor($){this.logger=$;this.logger.debug("RSSDataSource initialized")}async fetch($,X,G){let Y=JS.parse($),H=(await G.entityService.listEntities({entityType:"post",options:{limit:1000}})).filter((Q)=>Q.metadata.status==="published"&&Q.metadata.publishedAt).map((Q)=>{let q=b0(Q.content,O1);return{...Q,frontmatter:q.metadata,body:q.content}});this.logger.debug(`Generating RSS feed with ${H.length} posts`);let U={title:Y.title,description:Y.description,link:Y.siteUrl,language:Y.language??"en-us",...Y.copyright&&{copyright:Y.copyright}},F={xml:g7(H,U)};return X.parse(F)}}var JS;var fR=B(()=>{S();O0();Q6();JS=K.object({siteUrl:K.string().url(),title:K.string(),description:K.string(),language:K.string().optional(),copyright:K.string().optional()})});O0();S();g1();O0();Q6();U8();S();var fG=K.object({defaultPrompt:K.string().default("Write a blog post about my recent work and insights"),paginate:K.boolean().default(!0),pageSize:K.number().default(10)});O0();S();g5();var kE=K.object({prompt:K.string().optional(),title:K.string().optional(),content:K.string().optional(),excerpt:K.string().optional(),coverImageId:K.string().optional(),seriesName:K.string().optional(),seriesIndex:K.number().optional(),skipAi:K.boolean().optional()}),t10=m4.extend({title:K.string().optional(),slug:K.string().optional()});class gG extends i2{constructor($,X){super($,X,{schema:kE,jobTypeName:"blog-generation",entityType:"post"})}async generate($,X){let{prompt:G,coverImageId:Y,seriesName:J,seriesIndex:W,skipAi:H}=$,{title:U,content:M,excerpt:F}=$;if(H){if(!U)this.failEarly("Title is required when skipAi is true");M=M??`## Introduction
144
144
 
145
145
  Add your introduction here.
146
146
 
@@ -155,9 +155,9 @@ Add your conclusion here.`,F=F??`Blog post about ${U}`,await this.reportProgress
155
155
  Note: This is part of a series called "${J}".`:""}`,y=await this.context.ai.generate({prompt:b,templateName:"blog:generation"});U=U??y.title,M=M??y.content,F=F??y.excerpt,await this.reportProgress(X,{progress:50,message:`Generated blog post: "${U}"`})}else if(!F)await this.reportProgress(X,{progress:30,message:"Generating excerpt with AI"}),F=(await this.context.ai.generate({prompt:`Title: ${U}
156
156
 
157
157
  Content:
158
- ${M}`,templateName:"blog:excerpt"})).excerpt,await this.reportProgress(X,{progress:50,message:"Excerpt generated"});else await this.reportProgress(X,{progress:50,message:"Using provided content"});let Q=this.context.identity.getProfile().name,q=W;if(J&&!W)q=(await this.context.entityService.listEntities({entityType:"post"})).filter((b)=>b.metadata.seriesName===J&&b.metadata.publishedAt).length+1;if(!U||!M)this.failEarly("Title and content are required");let R=await Y8({entityType:"post",title:U,deriveId:(D)=>D,regeneratePrompt:"Generate a different blog post title on the same topic.",context:this.context}),O=f1(R),{blogPostAdapter:_}=await Promise.resolve().then(() => (U8(),hZ)),z={title:R,slug:O,status:"draft",excerpt:F,author:Q,...Y&&{coverImageId:Y},...J&&{seriesName:J},...q&&{seriesIndex:q}};return{id:R,content:_.createPostContent(z,M),metadata:{title:R,slug:O,status:z.status,publishedAt:z.publishedAt,seriesName:z.seriesName,seriesIndex:z.seriesIndex},title:R,resultExtras:{title:R,slug:O},createOptions:{deduplicateId:!0}}}summarizeDataForLog($){return{prompt:$.prompt,title:$.title}}}O0();S();O0();Q2();function l6($){let X=b0($.content,O1);return W8.parse({...$,frontmatter:X.metadata,body:X.content})}var vE=O7.extend({latest:K.boolean().optional(),"metadata.seriesName":K.string().optional()}),xE=Z7.extend({query:vE.optional()});function mG($){let X=l6($),G=X.frontmatter.seriesName,Y=G?`/series/${f1(G)}`:void 0;return{...X,...Y&&{seriesUrl:Y}}}class pG extends r5{id="blog:entities";name="Blog Entity DataSource";description="Fetches and transforms blog post entities for rendering";config={entityType:"post",defaultSort:[{field:"publishedAt",direction:"desc"}],defaultLimit:10,enableNavigation:!0};constructor($){super($);this.logger.debug("BlogDataSource initialized")}parseQuery($){let X=xE.parse($);return{entityType:X.entityType??this.config.entityType,query:X.query??{}}}transformEntity($){return mG($)}buildDetailResult($,X){return{post:$,prevPost:X?.prev??null,nextPost:X?.next??null,seriesPosts:null}}buildListResult($,X,G){return{posts:$,pagination:X,baseUrl:G.baseUrl}}async fetch($,X,G){let{query:Y}=this.parseQuery($),J=G.entityService;if(Y.latest)return this.fetchLatestPost(X,J);if(Y.id)return this.fetchSinglePost(Y.id,X,J);if(Y["metadata.seriesName"])return this.fetchSeriesPosts(Y["metadata.seriesName"],X,J);let{items:W,pagination:H}=await this.fetchList(Y,J);return X.parse(this.buildListResult(W,H,Y))}async fetchLatestPost($,X){let G=await X.listEntities({entityType:this.config.entityType,options:{limit:1,sortFields:[{field:"publishedAt",direction:"desc"}]}});if(G.length===0)throw this.logger.info("No published blog posts found for homepage"),Error("NO_PUBLISHED_POSTS");let Y=G[0];if(!Y)throw Error("Failed to retrieve latest blog post");let J=mG(Y),W=await this.fetchSeriesPostsForEntity(Y,X);return $.parse({post:J,prevPost:null,nextPost:null,seriesPosts:W})}async fetchSinglePost($,X,G){let Y=await this.lookupEntity($,G),J=this.transformEntity(Y),[W,H]=await Promise.all([this.config.enableNavigation?this.resolveNavigation(Y,G):Promise.resolve(null),J.frontmatter.seriesName?this.fetchPostsBySeries(J.frontmatter.seriesName,G):Promise.resolve(null)]);return X.parse({post:J,prevPost:W?.prev??null,nextPost:W?.next??null,seriesPosts:H})}async fetchPostsBySeries($,X){return(await X.listEntities({entityType:this.config.entityType,options:{limit:100,filter:{metadata:{seriesName:$}},sortFields:[{field:"seriesIndex",direction:"asc"}]}})).map(mG)}async fetchSeriesPostsForEntity($,X){let G=$.metadata.seriesName;if(!G)return null;return this.fetchPostsBySeries(G,X)}async fetchSeriesPosts($,X,G){let Y=await this.fetchPostsBySeries($,G);return X.parse({seriesName:$,posts:Y})}}O0();g1();S();Q2();function yZ($){var X,G,Y="";if(typeof $=="string"||typeof $=="number")Y+=$;else if(typeof $=="object")if(Array.isArray($)){var J=$.length;for(X=0;X<J;X++)$[X]&&(G=yZ($[X]))&&(Y&&(Y+=" "),Y+=G)}else for(G in $)$[G]&&(Y&&(Y+=" "),Y+=G);return Y}function T7(){for(var $,X,G=0,Y="",J=arguments.length;G<J;G++)($=arguments[G])&&(X=yZ($))&&(Y&&(Y+=" "),Y+=X);return Y}var bE=($)=>{let X=yE($),{conflictingClassGroups:G,conflictingClassGroupModifiers:Y}=$;return{getClassGroupId:(H)=>{let U=H.split("-");if(U[0]===""&&U.length!==1)U.shift();return uZ(U,X)||hE(H)},getConflictingClassGroupIds:(H,U)=>{let M=G[H]||[];if(U&&Y[H])return[...M,...Y[H]];return M}}},uZ=($,X)=>{if($.length===0)return X.classGroupId;let G=$[0],Y=X.nextPart.get(G),J=Y?uZ($.slice(1),Y):void 0;if(J)return J;if(X.validators.length===0)return;let W=$.join("-");return X.validators.find(({validator:H})=>H(W))?.classGroupId},fZ=/^\[(.+)\]$/,hE=($)=>{if(fZ.test($)){let X=fZ.exec($)[1],G=X?.substring(0,X.indexOf(":"));if(G)return"arbitrary.."+G}},yE=($)=>{let{theme:X,prefix:G}=$,Y={nextPart:new Map,validators:[]};return gE(Object.entries($.classGroups),G).forEach(([W,H])=>{dG(H,Y,W,X)}),Y},dG=($,X,G,Y)=>{$.forEach((J)=>{if(typeof J==="string"){let W=J===""?X:gZ(X,J);W.classGroupId=G;return}if(typeof J==="function"){if(fE(J)){dG(J(Y),X,G,Y);return}X.validators.push({validator:J,classGroupId:G});return}Object.entries(J).forEach(([W,H])=>{dG(H,gZ(X,W),G,Y)})})},gZ=($,X)=>{let G=$;return X.split("-").forEach((Y)=>{if(!G.nextPart.has(Y))G.nextPart.set(Y,{nextPart:new Map,validators:[]});G=G.nextPart.get(Y)}),G},fE=($)=>$.isThemeGetter,gE=($,X)=>{if(!X)return $;return $.map(([G,Y])=>{let J=Y.map((W)=>{if(typeof W==="string")return X+W;if(typeof W==="object")return Object.fromEntries(Object.entries(W).map(([H,U])=>[X+H,U]));return W});return[G,J]})},mE=($)=>{if($<1)return{get:()=>{return},set:()=>{}};let X=0,G=new Map,Y=new Map,J=(W,H)=>{if(G.set(W,H),X++,X>$)X=0,Y=G,G=new Map};return{get(W){let H=G.get(W);if(H!==void 0)return H;if((H=Y.get(W))!==void 0)return J(W,H),H},set(W,H){if(G.has(W))G.set(W,H);else J(W,H)}}};var pE=($)=>{let{separator:X,experimentalParseClassName:G}=$,Y=X.length===1,J=X[0],W=X.length,H=(U)=>{let M=[],F=0,Q=0,q;for(let D=0;D<U.length;D++){let P=U[D];if(F===0){if(P===J&&(Y||U.slice(D,D+W)===X)){M.push(U.slice(Q,D)),Q=D+W;continue}if(P==="/"){q=D;continue}}if(P==="[")F++;else if(P==="]")F--}let R=M.length===0?U:U.substring(Q),O=R.startsWith("!"),_=O?R.substring(1):R,z=q&&q>Q?q-Q:void 0;return{modifiers:M,hasImportantModifier:O,baseClassName:_,maybePostfixModifierPosition:z}};if(G)return(U)=>G({className:U,parseClassName:H});return H},uE=($)=>{if($.length<=1)return $;let X=[],G=[];return $.forEach((Y)=>{if(Y[0]==="[")X.push(...G.sort(),Y),G=[];else G.push(Y)}),X.push(...G.sort()),X},dE=($)=>({cache:mE($.cacheSize),parseClassName:pE($),...bE($)}),lE=/\s+/,cE=($,X)=>{let{parseClassName:G,getClassGroupId:Y,getConflictingClassGroupIds:J}=X,W=[],H=$.trim().split(lE),U="";for(let M=H.length-1;M>=0;M-=1){let F=H[M],{modifiers:Q,hasImportantModifier:q,baseClassName:R,maybePostfixModifierPosition:O}=G(F),_=Boolean(O),z=Y(_?R.substring(0,O):R);if(!z){if(!_){U=F+(U.length>0?" "+U:U);continue}if(z=Y(R),!z){U=F+(U.length>0?" "+U:U);continue}_=!1}let D=uE(Q).join(":"),P=q?D+"!":D,b=P+z;if(W.includes(b))continue;W.push(b);let y=J(z,_);for(let G0=0;G0<y.length;++G0){let B0=y[G0];W.push(P+B0)}U=F+(U.length>0?" "+U:U)}return U};function rE(){let $=0,X,G,Y="";while($<arguments.length)if(X=arguments[$++]){if(G=dZ(X))Y&&(Y+=" "),Y+=G}return Y}var dZ=($)=>{if(typeof $==="string")return $;let X,G="";for(let Y=0;Y<$.length;Y++)if($[Y]){if(X=dZ($[Y]))G&&(G+=" "),G+=X}return G};function mZ($,...X){let G,Y,J,W=H;function H(M){let F=X.reduce((Q,q)=>q(Q),$());return G=dE(F),Y=G.cache.get,J=G.cache.set,W=U,U(M)}function U(M){let F=Y(M);if(F)return F;let Q=cE(M,G);return J(M,Q),Q}return function(){return W(rE.apply(null,arguments))}}var j0=($)=>{let X=(G)=>G[$]||[];return X.isThemeGetter=!0,X},lZ=/^\[(?:([a-z-]+):)?(.+)\]$/i,iE=/^\d+\/\d+$/,oE=new Set(["px","full","screen"]),nE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,aE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j2=($)=>a5($)||oE.has($)||iE.test($),K6=($)=>t5($,"length",UI),a5=($)=>Boolean($)&&!Number.isNaN(Number($)),uG=($)=>t5($,"number",a5),K8=($)=>Boolean($)&&Number.isInteger(Number($)),$I=($)=>$.endsWith("%")&&a5($.slice(0,-1)),W0=($)=>lZ.test($),M6=($)=>nE.test($),XI=new Set(["length","size","percentage"]),GI=($)=>t5($,XI,cZ),YI=($)=>t5($,"position",cZ),JI=new Set(["image","url"]),WI=($)=>t5($,JI,MI),HI=($)=>t5($,"",KI),M8=()=>!0,t5=($,X,G)=>{let Y=lZ.exec($);if(Y){if(Y[1])return typeof X==="string"?Y[1]===X:X.has(Y[1]);return G(Y[2])}return!1},UI=($)=>sE.test($)&&!aE.test($),cZ=()=>!1,KI=($)=>tE.test($),MI=($)=>eE.test($);var pZ=()=>{let $=j0("colors"),X=j0("spacing"),G=j0("blur"),Y=j0("brightness"),J=j0("borderColor"),W=j0("borderRadius"),H=j0("borderSpacing"),U=j0("borderWidth"),M=j0("contrast"),F=j0("grayscale"),Q=j0("hueRotate"),q=j0("invert"),R=j0("gap"),O=j0("gradientColorStops"),_=j0("gradientColorStopPositions"),z=j0("inset"),D=j0("margin"),P=j0("opacity"),b=j0("padding"),y=j0("saturate"),G0=j0("scale"),B0=j0("sepia"),T=j0("skew"),Z0=j0("space"),I0=j0("translate"),q0=()=>["auto","contain","none"],w0=()=>["auto","hidden","clip","visible","scroll"],J1=()=>["auto",W0,X],d=()=>[W0,X],f=()=>["",j2,K6],o=()=>["auto",a5,W0],t=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],C0=()=>["solid","dashed","dotted","double","none"],k0=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W1=()=>["start","end","center","between","around","evenly","stretch"],H1=()=>["","0",W0],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v0=()=>[a5,W0];return{cacheSize:500,separator:":",theme:{colors:[M8],spacing:[j2,K6],blur:["none","",M6,W0],brightness:v0(),borderColor:[$],borderRadius:["none","","full",M6,W0],borderSpacing:d(),borderWidth:f(),contrast:v0(),grayscale:H1(),hueRotate:v0(),invert:H1(),gap:d(),gradientColorStops:[$],gradientColorStopPositions:[$I,K6],inset:J1(),margin:J1(),opacity:v0(),padding:d(),saturate:v0(),scale:v0(),sepia:H1(),skew:v0(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",W0]}],container:["container"],columns:[{columns:[M6]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...t(),W0]}],overflow:[{overflow:w0()}],"overflow-x":[{"overflow-x":w0()}],"overflow-y":[{"overflow-y":w0()}],overscroll:[{overscroll:q0()}],"overscroll-x":[{"overscroll-x":q0()}],"overscroll-y":[{"overscroll-y":q0()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",K8,W0]}],basis:[{basis:J1()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W0]}],grow:[{grow:H1()}],shrink:[{shrink:H1()}],order:[{order:["first","last","none",K8,W0]}],"grid-cols":[{"grid-cols":[M8]}],"col-start-end":[{col:["auto",{span:["full",K8,W0]},W0]}],"col-start":[{"col-start":o()}],"col-end":[{"col-end":o()}],"grid-rows":[{"grid-rows":[M8]}],"row-start-end":[{row:["auto",{span:[K8,W0]},W0]}],"row-start":[{"row-start":o()}],"row-end":[{"row-end":o()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W0]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W0]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...W1()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W1(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W1(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[D]}],mx:[{mx:[D]}],my:[{my:[D]}],ms:[{ms:[D]}],me:[{me:[D]}],mt:[{mt:[D]}],mr:[{mr:[D]}],mb:[{mb:[D]}],ml:[{ml:[D]}],"space-x":[{"space-x":[Z0]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Z0]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W0,X]}],"min-w":[{"min-w":[W0,X,"min","max","fit"]}],"max-w":[{"max-w":[W0,X,"none","full","min","max","fit","prose",{screen:[M6]},M6]}],h:[{h:[W0,X,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W0,X,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W0,X,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W0,X,"auto","min","max","fit"]}],"font-size":[{text:["base",M6,K6]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",uG]}],"font-family":[{font:[M8]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W0]}],"line-clamp":[{"line-clamp":["none",a5,uG]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",j2,W0]}],"list-image":[{"list-image":["none",W0]}],"list-style-type":[{list:["none","disc","decimal",W0]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[$]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[$]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...C0(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",j2,K6]}],"underline-offset":[{"underline-offset":["auto",j2,W0]}],"text-decoration-color":[{decoration:[$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W0]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W0]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...t(),YI]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",GI]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},WI]}],"bg-color":[{bg:[$]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[O]}],"gradient-via":[{via:[O]}],"gradient-to":[{to:[O]}],rounded:[{rounded:[W]}],"rounded-s":[{"rounded-s":[W]}],"rounded-e":[{"rounded-e":[W]}],"rounded-t":[{"rounded-t":[W]}],"rounded-r":[{"rounded-r":[W]}],"rounded-b":[{"rounded-b":[W]}],"rounded-l":[{"rounded-l":[W]}],"rounded-ss":[{"rounded-ss":[W]}],"rounded-se":[{"rounded-se":[W]}],"rounded-ee":[{"rounded-ee":[W]}],"rounded-es":[{"rounded-es":[W]}],"rounded-tl":[{"rounded-tl":[W]}],"rounded-tr":[{"rounded-tr":[W]}],"rounded-br":[{"rounded-br":[W]}],"rounded-bl":[{"rounded-bl":[W]}],"border-w":[{border:[U]}],"border-w-x":[{"border-x":[U]}],"border-w-y":[{"border-y":[U]}],"border-w-s":[{"border-s":[U]}],"border-w-e":[{"border-e":[U]}],"border-w-t":[{"border-t":[U]}],"border-w-r":[{"border-r":[U]}],"border-w-b":[{"border-b":[U]}],"border-w-l":[{"border-l":[U]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...C0(),"hidden"]}],"divide-x":[{"divide-x":[U]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[U]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:C0()}],"border-color":[{border:[J]}],"border-color-x":[{"border-x":[J]}],"border-color-y":[{"border-y":[J]}],"border-color-s":[{"border-s":[J]}],"border-color-e":[{"border-e":[J]}],"border-color-t":[{"border-t":[J]}],"border-color-r":[{"border-r":[J]}],"border-color-b":[{"border-b":[J]}],"border-color-l":[{"border-l":[J]}],"divide-color":[{divide:[J]}],"outline-style":[{outline:["",...C0()]}],"outline-offset":[{"outline-offset":[j2,W0]}],"outline-w":[{outline:[j2,K6]}],"outline-color":[{outline:[$]}],"ring-w":[{ring:f()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[$]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[j2,K6]}],"ring-offset-color":[{"ring-offset":[$]}],shadow:[{shadow:["","inner","none",M6,HI]}],"shadow-color":[{shadow:[M8]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...k0(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":k0()}],filter:[{filter:["","none"]}],blur:[{blur:[G]}],brightness:[{brightness:[Y]}],contrast:[{contrast:[M]}],"drop-shadow":[{"drop-shadow":["","none",M6,W0]}],grayscale:[{grayscale:[F]}],"hue-rotate":[{"hue-rotate":[Q]}],invert:[{invert:[q]}],saturate:[{saturate:[y]}],sepia:[{sepia:[B0]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[G]}],"backdrop-brightness":[{"backdrop-brightness":[Y]}],"backdrop-contrast":[{"backdrop-contrast":[M]}],"backdrop-grayscale":[{"backdrop-grayscale":[F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q]}],"backdrop-invert":[{"backdrop-invert":[q]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[B0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[H]}],"border-spacing-x":[{"border-spacing-x":[H]}],"border-spacing-y":[{"border-spacing-y":[H]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W0]}],duration:[{duration:v0()}],ease:[{ease:["linear","in","out","in-out",W0]}],delay:[{delay:v0()}],animate:[{animate:["none","spin","ping","pulse","bounce",W0]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G0]}],"scale-x":[{"scale-x":[G0]}],"scale-y":[{"scale-y":[G0]}],rotate:[{rotate:[K8,W0]}],"translate-x":[{"translate-x":[I0]}],"translate-y":[{"translate-y":[I0]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W0]}],accent:[{accent:["auto",$]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W0]}],"caret-color":[{caret:[$]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W0]}],fill:[{fill:[$,"none"]}],"stroke-w":[{stroke:[j2,K6,uG]}],stroke:[{stroke:[$,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},FI=($,{cacheSize:X,prefix:G,separator:Y,experimentalParseClassName:J,extend:W={},override:H={}})=>{F8($,"cacheSize",X),F8($,"prefix",G),F8($,"separator",Y),F8($,"experimentalParseClassName",J);for(let U in H)QI($[U],H[U]);for(let U in W)qI($[U],W[U]);return $},F8=($,X,G)=>{if(G!==void 0)$[X]=G},QI=($,X)=>{if(X)for(let G in X)F8($,G,X[G])},qI=($,X)=>{if(X)for(let G in X){let Y=X[G];if(Y!==void 0)$[G]=($[G]||[]).concat(Y)}},rZ=($,...X)=>typeof $==="function"?mZ(pZ,$,...X):mZ(()=>FI(pZ(),$),...X);var OI=rZ({extend:{classGroups:{"font-size":[{text:["display-2xl","display-xl","display-lg","display-md","display-sm","heading-lg","heading-md","heading-sm","body-xl","body-lg","body-md","body-sm","body-xs","label-md","label-sm","label-xs"]}]}}});function U0(...$){return OI(T7($))}var iZ=($)=>typeof $==="boolean"?`${$}`:$===0?"0":$,oZ=T7,D0=($,X)=>(G)=>{var Y;if((X===null||X===void 0?void 0:X.variants)==null)return oZ($,G===null||G===void 0?void 0:G.class,G===null||G===void 0?void 0:G.className);let{variants:J,defaultVariants:W}=X,H=Object.keys(J).map((F)=>{let Q=G===null||G===void 0?void 0:G[F],q=W===null||W===void 0?void 0:W[F];if(Q===null)return null;let R=iZ(Q)||iZ(q);return J[F][R]}),U=G&&Object.entries(G).reduce((F,Q)=>{let[q,R]=Q;if(R===void 0)return F;return F[q]=R,F},{}),M=X===null||X===void 0?void 0:(Y=X.compoundVariants)===null||Y===void 0?void 0:Y.reduce((F,Q)=>{let{class:q,className:R,...O}=Q;return Object.entries(O).every((_)=>{let[z,D]=_;return Array.isArray(D)?D.includes({...W,...U}[z]):{...W,...U}[z]===D})?[...F,q,R]:F},[]);return oZ($,H,M,G===null||G===void 0?void 0:G.class,G===null||G===void 0?void 0:G.className)};import{jsxDEV as B20}from"preact/jsx-dev-runtime";var ZI=D0("p-4 rounded-lg border",{variants:{variant:{warning:"bg-warning border-warning text-warning",error:"bg-error border-error text-error",success:"bg-success border-success text-success",info:"bg-info border-info text-info"}},defaultVariants:{variant:"info"}});import{jsxDEV as RI}from"preact/jsx-dev-runtime";var nZ=D0("inline-flex items-center justify-center font-bold transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",{variants:{variant:{default:"bg-brand hover:bg-brand-dark text-theme-inverse",secondary:"bg-theme-muted hover:bg-theme-subtle text-theme border border-theme",ghost:"hover:bg-theme-subtle text-theme"},size:{sm:"h-8 px-3 text-sm rounded-md",md:"h-10 px-4 py-2 text-sm rounded-lg",lg:"h-12 px-6 text-base rounded-lg"}},defaultVariants:{variant:"default",size:"md"}});function E7({variant:$,size:X,className:G,children:Y,ssrOnClick:J,type:W="button",...H}){return RI("button",{type:W,className:U0(nZ({variant:$,size:X}),G),...H,...J&&{onclick:J},children:Y},void 0,!1,void 0,this)}import{jsxDEV as AI}from"preact/jsx-dev-runtime";var sZ=D0("inline-flex items-center justify-center font-semibold transition-all text-center",{variants:{variant:{primary:"bg-brand text-theme-inverse hover:bg-brand-dark focus:ring-brand/20 focus:outline-none focus:ring-4",accent:"bg-accent text-theme-inverse hover:bg-accent-dark focus:ring-accent/20 focus:outline-none focus:ring-4",secondary:"bg-theme-muted text-theme hover:bg-theme-muted-dark focus:outline-none focus:ring-4",outline:"border-2 border-brand text-brand hover:bg-brand hover:text-theme-inverse focus:ring-brand/20 focus:outline-none focus:ring-4","outline-light":"border-2 border-theme-light text-theme-inverse hover:bg-theme-inverse hover:text-brand hover:border-theme-inverse focus:outline-none focus:ring-4",unstyled:""},size:{icon:"w-10 h-10 rounded-full",sm:"px-3 py-1.5 text-sm rounded-lg",md:"px-4 py-2 text-sm rounded-lg",lg:"px-6 py-3 text-base rounded-xl",xl:"px-8 py-4 text-lg rounded-xl","2xl":"px-10 py-5 text-lg rounded-2xl"}},defaultVariants:{size:"md"}});function e1({href:$,children:X,variant:G,size:Y,external:J=!1,className:W,"aria-label":H}){let U=J?{target:"_blank",rel:"noopener noreferrer"}:{};return AI("a",{href:$,className:U0(sZ({variant:G,size:Y}),W),"aria-label":H,...U,children:X},void 0,!1,void 0,this)}import{jsxDEV as I7}from"preact/jsx-dev-runtime";var aZ=D0("transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2",{variants:{variant:{default:"rounded-[10px] bg-theme-subtle border border-theme text-theme-muted hover:text-accent hover:border-brand/40",light:"rounded-[10px] bg-theme-subtle border border-theme text-theme-muted hover:text-accent",dark:"rounded-[10px] bg-theme-dark hover:bg-theme-muted text-theme-inverse",footer:"rounded-full bg-theme-toggle hover:bg-theme-toggle-hover text-theme-toggle-icon"},size:{sm:"p-1.5",md:"p-2",lg:"p-3"}},defaultVariants:{variant:"default",size:"md"}}),BI={sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"};function F6({variant:$,size:X,className:G}){let Y=BI[X??"md"];return I7("button",{onclick:"toggleTheme()",type:"button",className:U0(aZ({variant:$,size:X}),G),"aria-label":"Toggle dark mode",children:I7("svg",{className:U0(Y,"transition-colors"),fill:"none",stroke:"currentColor",strokeWidth:1.6,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[I7("path",{className:"sun-icon",strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"},void 0,!1,void 0,this),I7("path",{className:"moon-icon",strokeLinecap:"round",strokeLinejoin:"round",d:"M20.354 15.354A9 9 0 018.646 3.646 9 9 0 1020.354 15.354z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as lG}from"preact/jsx-dev-runtime";var tZ=D0("flex flex-wrap",{variants:{orientation:{horizontal:"justify-center gap-6 items-center",vertical:"flex-col gap-2.5"}},defaultVariants:{orientation:"horizontal"}});function j7({items:$,className:X,linkClassName:G="hover:text-accent transition-colors",orientation:Y,children:J}){if($.length===0&&!J)return null;let W=[...$].sort((H,U)=>H.priority-U.priority);return lG("ul",{className:U0(tZ({orientation:Y}),X),children:[W.map((H)=>lG("li",{children:lG("a",{href:H.href,className:G,children:H.label},void 0,!1,void 0,this)},H.href,!1,void 0,this)),J]},void 0,!0,void 0,this)}import{jsxDEV as h20}from"preact/jsx-dev-runtime";import{jsxDEV as g20}from"preact/jsx-dev-runtime";import{createContext as eI,h as t20}from"preact";import{useContext as $j}from"preact/hooks";function rG(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var r6=rG();function JR($){r6=$}var WR=/[&<>"']/,NI=new RegExp(WR.source,"g"),HR=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,VI=new RegExp(HR.source,"g"),wI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eZ=($)=>wI[$];function v1($,X){if(X){if(WR.test($))return $.replace(NI,eZ)}else if(HR.test($))return $.replace(VI,eZ);return $}var _I=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function zI($){return $.replace(_I,(X,G)=>{if(G=G.toLowerCase(),G==="colon")return":";if(G.charAt(0)==="#")return G.charAt(1)==="x"?String.fromCharCode(parseInt(G.substring(2),16)):String.fromCharCode(+G.substring(1));return""})}var DI=/(^|[^\[])\^/g;function L0($,X){let G=typeof $==="string"?$:$.source;X=X||"";let Y={replace:(J,W)=>{let H=typeof W==="string"?W:W.source;return H=H.replace(DI,"$1"),G=G.replace(J,H),Y},getRegex:()=>{return new RegExp(G,X)}};return Y}function $R($){try{$=encodeURI($).replace(/%25/g,"%")}catch(X){return null}return $}var q8={exec:()=>null};function XR($,X){let G=$.replace(/\|/g,(W,H,U)=>{let M=!1,F=H;while(--F>=0&&U[F]==="\\")M=!M;if(M)return"|";else return" |"}),Y=G.split(/ \|/),J=0;if(!Y[0].trim())Y.shift();if(Y.length>0&&!Y[Y.length-1].trim())Y.pop();if(X)if(Y.length>X)Y.splice(X);else while(Y.length<X)Y.push("");for(;J<Y.length;J++)Y[J]=Y[J].trim().replace(/\\\|/g,"|");return Y}function S7($,X,G){let Y=$.length;if(Y===0)return"";let J=0;while(J<Y){let W=$.charAt(Y-J-1);if(W===X&&!G)J++;else if(W!==X&&G)J++;else break}return $.slice(0,Y-J)}function PI($,X){if($.indexOf(X[1])===-1)return-1;let G=0;for(let Y=0;Y<$.length;Y++)if($[Y]==="\\")Y++;else if($[Y]===X[0])G++;else if($[Y]===X[1]){if(G--,G<0)return Y}return-1}function GR($,X,G,Y){let J=X.href,W=X.title?v1(X.title):null,H=$[1].replace(/\\([\[\]])/g,"$1");if($[0].charAt(0)!=="!"){Y.state.inLink=!0;let U={type:"link",raw:G,href:J,title:W,text:H,tokens:Y.inlineTokens(H)};return Y.state.inLink=!1,U}return{type:"image",raw:G,href:J,title:W,text:v1(H)}}function LI($,X){let G=$.match(/^(\s+)(?:```)/);if(G===null)return X;let Y=G[1];return X.split(`
158
+ ${M}`,templateName:"blog:excerpt"})).excerpt,await this.reportProgress(X,{progress:50,message:"Excerpt generated"});else await this.reportProgress(X,{progress:50,message:"Using provided content"});let Q=this.context.identity.getProfile().name,q=W;if(J&&!W)q=(await this.context.entityService.listEntities({entityType:"post"})).filter((b)=>b.metadata.seriesName===J&&b.metadata.publishedAt).length+1;if(!U||!M)this.failEarly("Title and content are required");let R=await Y8({entityType:"post",title:U,deriveId:(D)=>D,regeneratePrompt:"Generate a different blog post title on the same topic.",context:this.context}),O=f1(R),{blogPostAdapter:_}=await Promise.resolve().then(() => (U8(),hZ)),z={title:R,slug:O,status:"draft",excerpt:F,author:Q,...Y&&{coverImageId:Y},...J&&{seriesName:J},...q&&{seriesIndex:q}};return{id:R,content:_.createPostContent(z,M),metadata:{title:R,slug:O,status:z.status,publishedAt:z.publishedAt,seriesName:z.seriesName,seriesIndex:z.seriesIndex},title:R,resultExtras:{title:R,slug:O},createOptions:{deduplicateId:!0}}}summarizeDataForLog($){return{prompt:$.prompt,title:$.title}}}O0();S();O0();Q6();function l5($){let X=b0($.content,O1);return W8.parse({...$,frontmatter:X.metadata,body:X.content})}var vE=O7.extend({latest:K.boolean().optional(),"metadata.seriesName":K.string().optional()}),xE=Z7.extend({query:vE.optional()});function mG($){let X=l5($),G=X.frontmatter.seriesName,Y=G?`/series/${f1(G)}`:void 0;return{...X,...Y&&{seriesUrl:Y}}}class pG extends r2{id="blog:entities";name="Blog Entity DataSource";description="Fetches and transforms blog post entities for rendering";config={entityType:"post",defaultSort:[{field:"publishedAt",direction:"desc"}],defaultLimit:10,enableNavigation:!0};constructor($){super($);this.logger.debug("BlogDataSource initialized")}parseQuery($){let X=xE.parse($);return{entityType:X.entityType??this.config.entityType,query:X.query??{}}}transformEntity($){return mG($)}buildDetailResult($,X){return{post:$,prevPost:X?.prev??null,nextPost:X?.next??null,seriesPosts:null}}buildListResult($,X,G){return{posts:$,pagination:X,baseUrl:G.baseUrl}}async fetch($,X,G){let{query:Y}=this.parseQuery($),J=G.entityService;if(Y.latest)return this.fetchLatestPost(X,J);if(Y.id)return this.fetchSinglePost(Y.id,X,J);if(Y["metadata.seriesName"])return this.fetchSeriesPosts(Y["metadata.seriesName"],X,J);let{items:W,pagination:H}=await this.fetchList(Y,J);return X.parse(this.buildListResult(W,H,Y))}async fetchLatestPost($,X){let G=await X.listEntities({entityType:this.config.entityType,options:{limit:1,sortFields:[{field:"publishedAt",direction:"desc"}]}});if(G.length===0)throw this.logger.info("No published blog posts found for homepage"),Error("NO_PUBLISHED_POSTS");let Y=G[0];if(!Y)throw Error("Failed to retrieve latest blog post");let J=mG(Y),W=await this.fetchSeriesPostsForEntity(Y,X);return $.parse({post:J,prevPost:null,nextPost:null,seriesPosts:W})}async fetchSinglePost($,X,G){let Y=await this.lookupEntity($,G),J=this.transformEntity(Y),[W,H]=await Promise.all([this.config.enableNavigation?this.resolveNavigation(Y,G):Promise.resolve(null),J.frontmatter.seriesName?this.fetchPostsBySeries(J.frontmatter.seriesName,G):Promise.resolve(null)]);return X.parse({post:J,prevPost:W?.prev??null,nextPost:W?.next??null,seriesPosts:H})}async fetchPostsBySeries($,X){return(await X.listEntities({entityType:this.config.entityType,options:{limit:100,filter:{metadata:{seriesName:$}},sortFields:[{field:"seriesIndex",direction:"asc"}]}})).map(mG)}async fetchSeriesPostsForEntity($,X){let G=$.metadata.seriesName;if(!G)return null;return this.fetchPostsBySeries(G,X)}async fetchSeriesPosts($,X,G){let Y=await this.fetchPostsBySeries($,G);return X.parse({seriesName:$,posts:Y})}}O0();g1();S();Q6();function yZ($){var X,G,Y="";if(typeof $=="string"||typeof $=="number")Y+=$;else if(typeof $=="object")if(Array.isArray($)){var J=$.length;for(X=0;X<J;X++)$[X]&&(G=yZ($[X]))&&(Y&&(Y+=" "),Y+=G)}else for(G in $)$[G]&&(Y&&(Y+=" "),Y+=G);return Y}function T7(){for(var $,X,G=0,Y="",J=arguments.length;G<J;G++)($=arguments[G])&&(X=yZ($))&&(Y&&(Y+=" "),Y+=X);return Y}var bE=($)=>{let X=yE($),{conflictingClassGroups:G,conflictingClassGroupModifiers:Y}=$;return{getClassGroupId:(H)=>{let U=H.split("-");if(U[0]===""&&U.length!==1)U.shift();return uZ(U,X)||hE(H)},getConflictingClassGroupIds:(H,U)=>{let M=G[H]||[];if(U&&Y[H])return[...M,...Y[H]];return M}}},uZ=($,X)=>{if($.length===0)return X.classGroupId;let G=$[0],Y=X.nextPart.get(G),J=Y?uZ($.slice(1),Y):void 0;if(J)return J;if(X.validators.length===0)return;let W=$.join("-");return X.validators.find(({validator:H})=>H(W))?.classGroupId},fZ=/^\[(.+)\]$/,hE=($)=>{if(fZ.test($)){let X=fZ.exec($)[1],G=X?.substring(0,X.indexOf(":"));if(G)return"arbitrary.."+G}},yE=($)=>{let{theme:X,prefix:G}=$,Y={nextPart:new Map,validators:[]};return gE(Object.entries($.classGroups),G).forEach(([W,H])=>{dG(H,Y,W,X)}),Y},dG=($,X,G,Y)=>{$.forEach((J)=>{if(typeof J==="string"){let W=J===""?X:gZ(X,J);W.classGroupId=G;return}if(typeof J==="function"){if(fE(J)){dG(J(Y),X,G,Y);return}X.validators.push({validator:J,classGroupId:G});return}Object.entries(J).forEach(([W,H])=>{dG(H,gZ(X,W),G,Y)})})},gZ=($,X)=>{let G=$;return X.split("-").forEach((Y)=>{if(!G.nextPart.has(Y))G.nextPart.set(Y,{nextPart:new Map,validators:[]});G=G.nextPart.get(Y)}),G},fE=($)=>$.isThemeGetter,gE=($,X)=>{if(!X)return $;return $.map(([G,Y])=>{let J=Y.map((W)=>{if(typeof W==="string")return X+W;if(typeof W==="object")return Object.fromEntries(Object.entries(W).map(([H,U])=>[X+H,U]));return W});return[G,J]})},mE=($)=>{if($<1)return{get:()=>{return},set:()=>{}};let X=0,G=new Map,Y=new Map,J=(W,H)=>{if(G.set(W,H),X++,X>$)X=0,Y=G,G=new Map};return{get(W){let H=G.get(W);if(H!==void 0)return H;if((H=Y.get(W))!==void 0)return J(W,H),H},set(W,H){if(G.has(W))G.set(W,H);else J(W,H)}}};var pE=($)=>{let{separator:X,experimentalParseClassName:G}=$,Y=X.length===1,J=X[0],W=X.length,H=(U)=>{let M=[],F=0,Q=0,q;for(let D=0;D<U.length;D++){let P=U[D];if(F===0){if(P===J&&(Y||U.slice(D,D+W)===X)){M.push(U.slice(Q,D)),Q=D+W;continue}if(P==="/"){q=D;continue}}if(P==="[")F++;else if(P==="]")F--}let R=M.length===0?U:U.substring(Q),O=R.startsWith("!"),_=O?R.substring(1):R,z=q&&q>Q?q-Q:void 0;return{modifiers:M,hasImportantModifier:O,baseClassName:_,maybePostfixModifierPosition:z}};if(G)return(U)=>G({className:U,parseClassName:H});return H},uE=($)=>{if($.length<=1)return $;let X=[],G=[];return $.forEach((Y)=>{if(Y[0]==="[")X.push(...G.sort(),Y),G=[];else G.push(Y)}),X.push(...G.sort()),X},dE=($)=>({cache:mE($.cacheSize),parseClassName:pE($),...bE($)}),lE=/\s+/,cE=($,X)=>{let{parseClassName:G,getClassGroupId:Y,getConflictingClassGroupIds:J}=X,W=[],H=$.trim().split(lE),U="";for(let M=H.length-1;M>=0;M-=1){let F=H[M],{modifiers:Q,hasImportantModifier:q,baseClassName:R,maybePostfixModifierPosition:O}=G(F),_=Boolean(O),z=Y(_?R.substring(0,O):R);if(!z){if(!_){U=F+(U.length>0?" "+U:U);continue}if(z=Y(R),!z){U=F+(U.length>0?" "+U:U);continue}_=!1}let D=uE(Q).join(":"),P=q?D+"!":D,b=P+z;if(W.includes(b))continue;W.push(b);let y=J(z,_);for(let G0=0;G0<y.length;++G0){let B0=y[G0];W.push(P+B0)}U=F+(U.length>0?" "+U:U)}return U};function rE(){let $=0,X,G,Y="";while($<arguments.length)if(X=arguments[$++]){if(G=dZ(X))Y&&(Y+=" "),Y+=G}return Y}var dZ=($)=>{if(typeof $==="string")return $;let X,G="";for(let Y=0;Y<$.length;Y++)if($[Y]){if(X=dZ($[Y]))G&&(G+=" "),G+=X}return G};function mZ($,...X){let G,Y,J,W=H;function H(M){let F=X.reduce((Q,q)=>q(Q),$());return G=dE(F),Y=G.cache.get,J=G.cache.set,W=U,U(M)}function U(M){let F=Y(M);if(F)return F;let Q=cE(M,G);return J(M,Q),Q}return function(){return W(rE.apply(null,arguments))}}var j0=($)=>{let X=(G)=>G[$]||[];return X.isThemeGetter=!0,X},lZ=/^\[(?:([a-z-]+):)?(.+)\]$/i,iE=/^\d+\/\d+$/,oE=new Set(["px","full","screen"]),nE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,aE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j6=($)=>a2($)||oE.has($)||iE.test($),K5=($)=>t2($,"length",UI),a2=($)=>Boolean($)&&!Number.isNaN(Number($)),uG=($)=>t2($,"number",a2),K8=($)=>Boolean($)&&Number.isInteger(Number($)),$I=($)=>$.endsWith("%")&&a2($.slice(0,-1)),W0=($)=>lZ.test($),M5=($)=>nE.test($),XI=new Set(["length","size","percentage"]),GI=($)=>t2($,XI,cZ),YI=($)=>t2($,"position",cZ),JI=new Set(["image","url"]),WI=($)=>t2($,JI,MI),HI=($)=>t2($,"",KI),M8=()=>!0,t2=($,X,G)=>{let Y=lZ.exec($);if(Y){if(Y[1])return typeof X==="string"?Y[1]===X:X.has(Y[1]);return G(Y[2])}return!1},UI=($)=>sE.test($)&&!aE.test($),cZ=()=>!1,KI=($)=>tE.test($),MI=($)=>eE.test($);var pZ=()=>{let $=j0("colors"),X=j0("spacing"),G=j0("blur"),Y=j0("brightness"),J=j0("borderColor"),W=j0("borderRadius"),H=j0("borderSpacing"),U=j0("borderWidth"),M=j0("contrast"),F=j0("grayscale"),Q=j0("hueRotate"),q=j0("invert"),R=j0("gap"),O=j0("gradientColorStops"),_=j0("gradientColorStopPositions"),z=j0("inset"),D=j0("margin"),P=j0("opacity"),b=j0("padding"),y=j0("saturate"),G0=j0("scale"),B0=j0("sepia"),T=j0("skew"),Z0=j0("space"),I0=j0("translate"),q0=()=>["auto","contain","none"],w0=()=>["auto","hidden","clip","visible","scroll"],J1=()=>["auto",W0,X],d=()=>[W0,X],f=()=>["",j6,K5],o=()=>["auto",a2,W0],t=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],C0=()=>["solid","dashed","dotted","double","none"],k0=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W1=()=>["start","end","center","between","around","evenly","stretch"],H1=()=>["","0",W0],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v0=()=>[a2,W0];return{cacheSize:500,separator:":",theme:{colors:[M8],spacing:[j6,K5],blur:["none","",M5,W0],brightness:v0(),borderColor:[$],borderRadius:["none","","full",M5,W0],borderSpacing:d(),borderWidth:f(),contrast:v0(),grayscale:H1(),hueRotate:v0(),invert:H1(),gap:d(),gradientColorStops:[$],gradientColorStopPositions:[$I,K5],inset:J1(),margin:J1(),opacity:v0(),padding:d(),saturate:v0(),scale:v0(),sepia:H1(),skew:v0(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",W0]}],container:["container"],columns:[{columns:[M5]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...t(),W0]}],overflow:[{overflow:w0()}],"overflow-x":[{"overflow-x":w0()}],"overflow-y":[{"overflow-y":w0()}],overscroll:[{overscroll:q0()}],"overscroll-x":[{"overscroll-x":q0()}],"overscroll-y":[{"overscroll-y":q0()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",K8,W0]}],basis:[{basis:J1()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W0]}],grow:[{grow:H1()}],shrink:[{shrink:H1()}],order:[{order:["first","last","none",K8,W0]}],"grid-cols":[{"grid-cols":[M8]}],"col-start-end":[{col:["auto",{span:["full",K8,W0]},W0]}],"col-start":[{"col-start":o()}],"col-end":[{"col-end":o()}],"grid-rows":[{"grid-rows":[M8]}],"row-start-end":[{row:["auto",{span:[K8,W0]},W0]}],"row-start":[{"row-start":o()}],"row-end":[{"row-end":o()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W0]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W0]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...W1()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W1(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W1(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[D]}],mx:[{mx:[D]}],my:[{my:[D]}],ms:[{ms:[D]}],me:[{me:[D]}],mt:[{mt:[D]}],mr:[{mr:[D]}],mb:[{mb:[D]}],ml:[{ml:[D]}],"space-x":[{"space-x":[Z0]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Z0]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W0,X]}],"min-w":[{"min-w":[W0,X,"min","max","fit"]}],"max-w":[{"max-w":[W0,X,"none","full","min","max","fit","prose",{screen:[M5]},M5]}],h:[{h:[W0,X,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W0,X,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W0,X,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W0,X,"auto","min","max","fit"]}],"font-size":[{text:["base",M5,K5]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",uG]}],"font-family":[{font:[M8]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W0]}],"line-clamp":[{"line-clamp":["none",a2,uG]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",j6,W0]}],"list-image":[{"list-image":["none",W0]}],"list-style-type":[{list:["none","disc","decimal",W0]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[$]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[$]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...C0(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",j6,K5]}],"underline-offset":[{"underline-offset":["auto",j6,W0]}],"text-decoration-color":[{decoration:[$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W0]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W0]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...t(),YI]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",GI]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},WI]}],"bg-color":[{bg:[$]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[O]}],"gradient-via":[{via:[O]}],"gradient-to":[{to:[O]}],rounded:[{rounded:[W]}],"rounded-s":[{"rounded-s":[W]}],"rounded-e":[{"rounded-e":[W]}],"rounded-t":[{"rounded-t":[W]}],"rounded-r":[{"rounded-r":[W]}],"rounded-b":[{"rounded-b":[W]}],"rounded-l":[{"rounded-l":[W]}],"rounded-ss":[{"rounded-ss":[W]}],"rounded-se":[{"rounded-se":[W]}],"rounded-ee":[{"rounded-ee":[W]}],"rounded-es":[{"rounded-es":[W]}],"rounded-tl":[{"rounded-tl":[W]}],"rounded-tr":[{"rounded-tr":[W]}],"rounded-br":[{"rounded-br":[W]}],"rounded-bl":[{"rounded-bl":[W]}],"border-w":[{border:[U]}],"border-w-x":[{"border-x":[U]}],"border-w-y":[{"border-y":[U]}],"border-w-s":[{"border-s":[U]}],"border-w-e":[{"border-e":[U]}],"border-w-t":[{"border-t":[U]}],"border-w-r":[{"border-r":[U]}],"border-w-b":[{"border-b":[U]}],"border-w-l":[{"border-l":[U]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...C0(),"hidden"]}],"divide-x":[{"divide-x":[U]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[U]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:C0()}],"border-color":[{border:[J]}],"border-color-x":[{"border-x":[J]}],"border-color-y":[{"border-y":[J]}],"border-color-s":[{"border-s":[J]}],"border-color-e":[{"border-e":[J]}],"border-color-t":[{"border-t":[J]}],"border-color-r":[{"border-r":[J]}],"border-color-b":[{"border-b":[J]}],"border-color-l":[{"border-l":[J]}],"divide-color":[{divide:[J]}],"outline-style":[{outline:["",...C0()]}],"outline-offset":[{"outline-offset":[j6,W0]}],"outline-w":[{outline:[j6,K5]}],"outline-color":[{outline:[$]}],"ring-w":[{ring:f()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[$]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[j6,K5]}],"ring-offset-color":[{"ring-offset":[$]}],shadow:[{shadow:["","inner","none",M5,HI]}],"shadow-color":[{shadow:[M8]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...k0(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":k0()}],filter:[{filter:["","none"]}],blur:[{blur:[G]}],brightness:[{brightness:[Y]}],contrast:[{contrast:[M]}],"drop-shadow":[{"drop-shadow":["","none",M5,W0]}],grayscale:[{grayscale:[F]}],"hue-rotate":[{"hue-rotate":[Q]}],invert:[{invert:[q]}],saturate:[{saturate:[y]}],sepia:[{sepia:[B0]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[G]}],"backdrop-brightness":[{"backdrop-brightness":[Y]}],"backdrop-contrast":[{"backdrop-contrast":[M]}],"backdrop-grayscale":[{"backdrop-grayscale":[F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q]}],"backdrop-invert":[{"backdrop-invert":[q]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[B0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[H]}],"border-spacing-x":[{"border-spacing-x":[H]}],"border-spacing-y":[{"border-spacing-y":[H]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W0]}],duration:[{duration:v0()}],ease:[{ease:["linear","in","out","in-out",W0]}],delay:[{delay:v0()}],animate:[{animate:["none","spin","ping","pulse","bounce",W0]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G0]}],"scale-x":[{"scale-x":[G0]}],"scale-y":[{"scale-y":[G0]}],rotate:[{rotate:[K8,W0]}],"translate-x":[{"translate-x":[I0]}],"translate-y":[{"translate-y":[I0]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W0]}],accent:[{accent:["auto",$]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W0]}],"caret-color":[{caret:[$]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W0]}],fill:[{fill:[$,"none"]}],"stroke-w":[{stroke:[j6,K5,uG]}],stroke:[{stroke:[$,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},FI=($,{cacheSize:X,prefix:G,separator:Y,experimentalParseClassName:J,extend:W={},override:H={}})=>{F8($,"cacheSize",X),F8($,"prefix",G),F8($,"separator",Y),F8($,"experimentalParseClassName",J);for(let U in H)QI($[U],H[U]);for(let U in W)qI($[U],W[U]);return $},F8=($,X,G)=>{if(G!==void 0)$[X]=G},QI=($,X)=>{if(X)for(let G in X)F8($,G,X[G])},qI=($,X)=>{if(X)for(let G in X){let Y=X[G];if(Y!==void 0)$[G]=($[G]||[]).concat(Y)}},rZ=($,...X)=>typeof $==="function"?mZ(pZ,$,...X):mZ(()=>FI(pZ(),$),...X);var OI=rZ({extend:{classGroups:{"font-size":[{text:["display-2xl","display-xl","display-lg","display-md","display-sm","heading-lg","heading-md","heading-sm","body-xl","body-lg","body-md","body-sm","body-xs","label-md","label-sm","label-xs"]}]}}});function U0(...$){return OI(T7($))}var iZ=($)=>typeof $==="boolean"?`${$}`:$===0?"0":$,oZ=T7,D0=($,X)=>(G)=>{var Y;if((X===null||X===void 0?void 0:X.variants)==null)return oZ($,G===null||G===void 0?void 0:G.class,G===null||G===void 0?void 0:G.className);let{variants:J,defaultVariants:W}=X,H=Object.keys(J).map((F)=>{let Q=G===null||G===void 0?void 0:G[F],q=W===null||W===void 0?void 0:W[F];if(Q===null)return null;let R=iZ(Q)||iZ(q);return J[F][R]}),U=G&&Object.entries(G).reduce((F,Q)=>{let[q,R]=Q;if(R===void 0)return F;return F[q]=R,F},{}),M=X===null||X===void 0?void 0:(Y=X.compoundVariants)===null||Y===void 0?void 0:Y.reduce((F,Q)=>{let{class:q,className:R,...O}=Q;return Object.entries(O).every((_)=>{let[z,D]=_;return Array.isArray(D)?D.includes({...W,...U}[z]):{...W,...U}[z]===D})?[...F,q,R]:F},[]);return oZ($,H,M,G===null||G===void 0?void 0:G.class,G===null||G===void 0?void 0:G.className)};import{jsxDEV as B60}from"preact/jsx-dev-runtime";var ZI=D0("p-4 rounded-lg border",{variants:{variant:{warning:"bg-warning border-warning text-warning",error:"bg-error border-error text-error",success:"bg-success border-success text-success",info:"bg-info border-info text-info"}},defaultVariants:{variant:"info"}});import{jsxDEV as RI}from"preact/jsx-dev-runtime";var nZ=D0("inline-flex items-center justify-center font-bold transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",{variants:{variant:{default:"bg-brand hover:bg-brand-dark text-theme-inverse",secondary:"bg-theme-muted hover:bg-theme-subtle text-theme border border-theme",ghost:"hover:bg-theme-subtle text-theme"},size:{sm:"h-8 px-3 text-sm rounded-md",md:"h-10 px-4 py-2 text-sm rounded-lg",lg:"h-12 px-6 text-base rounded-lg"}},defaultVariants:{variant:"default",size:"md"}});function E7({variant:$,size:X,className:G,children:Y,ssrOnClick:J,type:W="button",...H}){return RI("button",{type:W,className:U0(nZ({variant:$,size:X}),G),...H,...J&&{onclick:J},children:Y},void 0,!1,void 0,this)}import{jsxDEV as AI}from"preact/jsx-dev-runtime";var sZ=D0("inline-flex items-center justify-center font-semibold transition-all text-center",{variants:{variant:{primary:"bg-brand text-theme-inverse hover:bg-brand-dark focus:ring-brand/20 focus:outline-none focus:ring-4",accent:"bg-accent text-theme-inverse hover:bg-accent-dark focus:ring-accent/20 focus:outline-none focus:ring-4",secondary:"bg-theme-muted text-theme hover:bg-theme-muted-dark focus:outline-none focus:ring-4",outline:"border-2 border-brand text-brand hover:bg-brand hover:text-theme-inverse focus:ring-brand/20 focus:outline-none focus:ring-4","outline-light":"border-2 border-theme-light text-theme-inverse hover:bg-theme-inverse hover:text-brand hover:border-theme-inverse focus:outline-none focus:ring-4",unstyled:""},size:{icon:"w-10 h-10 rounded-full",sm:"px-3 py-1.5 text-sm rounded-lg",md:"px-4 py-2 text-sm rounded-lg",lg:"px-6 py-3 text-base rounded-xl",xl:"px-8 py-4 text-lg rounded-xl","2xl":"px-10 py-5 text-lg rounded-2xl"}},defaultVariants:{size:"md"}});function e1({href:$,children:X,variant:G,size:Y,external:J=!1,className:W,"aria-label":H}){let U=J?{target:"_blank",rel:"noopener noreferrer"}:{};return AI("a",{href:$,className:U0(sZ({variant:G,size:Y}),W),"aria-label":H,...U,children:X},void 0,!1,void 0,this)}import{jsxDEV as I7}from"preact/jsx-dev-runtime";var aZ=D0("transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2",{variants:{variant:{default:"rounded-[10px] bg-theme-subtle border border-theme text-theme-muted hover:text-accent hover:border-brand/40",light:"rounded-[10px] bg-theme-subtle border border-theme text-theme-muted hover:text-accent",dark:"rounded-[10px] bg-theme-dark hover:bg-theme-muted text-theme-inverse",footer:"rounded-full bg-theme-toggle hover:bg-theme-toggle-hover text-theme-toggle-icon"},size:{sm:"p-1.5",md:"p-2",lg:"p-3"}},defaultVariants:{variant:"default",size:"md"}}),BI={sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"};function F5({variant:$,size:X,className:G}){let Y=BI[X??"md"];return I7("button",{onclick:"toggleTheme()",type:"button",className:U0(aZ({variant:$,size:X}),G),"aria-label":"Toggle dark mode",children:I7("svg",{className:U0(Y,"transition-colors"),fill:"none",stroke:"currentColor",strokeWidth:1.6,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[I7("path",{className:"sun-icon",strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"},void 0,!1,void 0,this),I7("path",{className:"moon-icon",strokeLinecap:"round",strokeLinejoin:"round",d:"M20.354 15.354A9 9 0 018.646 3.646 9 9 0 1020.354 15.354z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as lG}from"preact/jsx-dev-runtime";var tZ=D0("flex flex-wrap",{variants:{orientation:{horizontal:"justify-center gap-6 items-center",vertical:"flex-col gap-2.5"}},defaultVariants:{orientation:"horizontal"}});function j7({items:$,className:X,linkClassName:G="hover:text-accent transition-colors",orientation:Y,children:J}){if($.length===0&&!J)return null;let W=[...$].sort((H,U)=>H.priority-U.priority);return lG("ul",{className:U0(tZ({orientation:Y}),X),children:[W.map((H)=>lG("li",{children:lG("a",{href:H.href,className:G,children:H.label},void 0,!1,void 0,this)},H.href,!1,void 0,this)),J]},void 0,!0,void 0,this)}import{jsxDEV as h60}from"preact/jsx-dev-runtime";import{jsxDEV as g60}from"preact/jsx-dev-runtime";import{createContext as eI,h as t60}from"preact";import{useContext as $j}from"preact/hooks";function rG(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var r5=rG();function JR($){r5=$}var WR=/[&<>"']/,NI=new RegExp(WR.source,"g"),HR=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,VI=new RegExp(HR.source,"g"),wI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eZ=($)=>wI[$];function v1($,X){if(X){if(WR.test($))return $.replace(NI,eZ)}else if(HR.test($))return $.replace(VI,eZ);return $}var _I=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function zI($){return $.replace(_I,(X,G)=>{if(G=G.toLowerCase(),G==="colon")return":";if(G.charAt(0)==="#")return G.charAt(1)==="x"?String.fromCharCode(parseInt(G.substring(2),16)):String.fromCharCode(+G.substring(1));return""})}var DI=/(^|[^\[])\^/g;function L0($,X){let G=typeof $==="string"?$:$.source;X=X||"";let Y={replace:(J,W)=>{let H=typeof W==="string"?W:W.source;return H=H.replace(DI,"$1"),G=G.replace(J,H),Y},getRegex:()=>{return new RegExp(G,X)}};return Y}function $R($){try{$=encodeURI($).replace(/%25/g,"%")}catch(X){return null}return $}var q8={exec:()=>null};function XR($,X){let G=$.replace(/\|/g,(W,H,U)=>{let M=!1,F=H;while(--F>=0&&U[F]==="\\")M=!M;if(M)return"|";else return" |"}),Y=G.split(/ \|/),J=0;if(!Y[0].trim())Y.shift();if(Y.length>0&&!Y[Y.length-1].trim())Y.pop();if(X)if(Y.length>X)Y.splice(X);else while(Y.length<X)Y.push("");for(;J<Y.length;J++)Y[J]=Y[J].trim().replace(/\\\|/g,"|");return Y}function S7($,X,G){let Y=$.length;if(Y===0)return"";let J=0;while(J<Y){let W=$.charAt(Y-J-1);if(W===X&&!G)J++;else if(W!==X&&G)J++;else break}return $.slice(0,Y-J)}function PI($,X){if($.indexOf(X[1])===-1)return-1;let G=0;for(let Y=0;Y<$.length;Y++)if($[Y]==="\\")Y++;else if($[Y]===X[0])G++;else if($[Y]===X[1]){if(G--,G<0)return Y}return-1}function GR($,X,G,Y){let J=X.href,W=X.title?v1(X.title):null,H=$[1].replace(/\\([\[\]])/g,"$1");if($[0].charAt(0)!=="!"){Y.state.inLink=!0;let U={type:"link",raw:G,href:J,title:W,text:H,tokens:Y.inlineTokens(H)};return Y.state.inLink=!1,U}return{type:"image",raw:G,href:J,title:W,text:v1(H)}}function LI($,X){let G=$.match(/^(\s+)(?:```)/);if(G===null)return X;let Y=G[1];return X.split(`
159
159
  `).map((J)=>{let W=J.match(/^\s+/);if(W===null)return J;let[H]=W;if(H.length>=Y.length)return J.slice(Y.length);return J}).join(`
160
- `)}class Z8{options;rules;lexer;constructor($){this.options=$||r6}space($){let X=this.rules.block.newline.exec($);if(X&&X[0].length>0)return{type:"space",raw:X[0]}}code($){let X=this.rules.block.code.exec($);if(X){let G=X[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:X[0],codeBlockStyle:"indented",text:!this.options.pedantic?S7(G,`
160
+ `)}class Z8{options;rules;lexer;constructor($){this.options=$||r5}space($){let X=this.rules.block.newline.exec($);if(X&&X[0].length>0)return{type:"space",raw:X[0]}}code($){let X=this.rules.block.code.exec($);if(X){let G=X[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:X[0],codeBlockStyle:"indented",text:!this.options.pedantic?S7(G,`
161
161
  `):G}}}fences($){let X=this.rules.block.fences.exec($);if(X){let G=X[0],Y=LI(G,X[3]||"");return{type:"code",raw:G,lang:X[2]?X[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):X[2],text:Y}}}heading($){let X=this.rules.block.heading.exec($);if(X){let G=X[2].trim();if(/#$/.test(G)){let Y=S7(G,"#");if(this.options.pedantic)G=Y.trim();else if(!Y||/ $/.test(Y))G=Y.trim()}return{type:"heading",raw:X[0],depth:X[1].length,text:G,tokens:this.lexer.inline(G)}}}hr($){let X=this.rules.block.hr.exec($);if(X)return{type:"hr",raw:X[0]}}blockquote($){let X=this.rules.block.blockquote.exec($);if(X){let G=X[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
162
162
  $1`);G=S7(G.replace(/^ *>[ \t]?/gm,""),`
163
163
  `);let Y=this.lexer.state.top;this.lexer.state.top=!0;let J=this.lexer.blockTokens(G);return this.lexer.state.top=Y,{type:"blockquote",raw:X[0],tokens:J,text:G}}}list($){let X=this.rules.block.list.exec($);if(X){let G=X[1].trim(),Y=G.length>1,J={type:"list",raw:"",ordered:Y,start:Y?+G.slice(0,-1):"",loose:!1,items:[]};if(G=Y?`\\d{1,9}\\${G.slice(-1)}`:`\\${G}`,this.options.pedantic)G=Y?G:"[*+-]";let W=new RegExp(`^( {0,3}${G})((?:[ ][^\\n]*)?(?:\\n|$))`),H="",U="",M=!1;while($){let F=!1;if(!(X=W.exec($)))break;if(this.rules.block.hr.test($))break;H=X[0],$=$.substring(H.length);let Q=X[2].split(`
@@ -170,7 +170,7 @@ ${M}`,templateName:"blog:excerpt"})).excerpt,await this.reportProgress(X,{progre
170
170
  `,$=$.substring(G0.length+1),Q=q.slice(R)}}if(!J.loose){if(M)J.loose=!0;else if(/\n *\n *$/.test(H))M=!0}let _=null,z;if(this.options.gfm){if(_=/^\[[ xX]\] /.exec(U),_)z=_[0]!=="[ ] ",U=U.replace(/^\[[ xX]\] +/,"")}J.items.push({type:"list_item",raw:H,task:!!_,checked:z,loose:!1,text:U,tokens:[]}),J.raw+=H}J.items[J.items.length-1].raw=H.trimEnd(),J.items[J.items.length-1].text=U.trimEnd(),J.raw=J.raw.trimEnd();for(let F=0;F<J.items.length;F++)if(this.lexer.state.top=!1,J.items[F].tokens=this.lexer.blockTokens(J.items[F].text,[]),!J.loose){let Q=J.items[F].tokens.filter((R)=>R.type==="space"),q=Q.length>0&&Q.some((R)=>/\n.*\n/.test(R.raw));J.loose=q}if(J.loose)for(let F=0;F<J.items.length;F++)J.items[F].loose=!0;return J}}html($){let X=this.rules.block.html.exec($);if(X)return{type:"html",block:!0,raw:X[0],pre:X[1]==="pre"||X[1]==="script"||X[1]==="style",text:X[0]}}def($){let X=this.rules.block.def.exec($);if(X){let G=X[1].toLowerCase().replace(/\s+/g," "),Y=X[2]?X[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",J=X[3]?X[3].substring(1,X[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):X[3];return{type:"def",tag:G,raw:X[0],href:Y,title:J}}}table($){let X=this.rules.block.table.exec($);if(!X)return;if(!/[:|]/.test(X[2]))return;let G=XR(X[1]),Y=X[2].replace(/^\||\| *$/g,"").split("|"),J=X[3]&&X[3].trim()?X[3].replace(/\n[ \t]*$/,"").split(`
171
171
  `):[],W={type:"table",raw:X[0],header:[],align:[],rows:[]};if(G.length!==Y.length)return;for(let H of Y)if(/^ *-+: *$/.test(H))W.align.push("right");else if(/^ *:-+: *$/.test(H))W.align.push("center");else if(/^ *:-+ *$/.test(H))W.align.push("left");else W.align.push(null);for(let H of G)W.header.push({text:H,tokens:this.lexer.inline(H)});for(let H of J)W.rows.push(XR(H,W.header.length).map((U)=>{return{text:U,tokens:this.lexer.inline(U)}}));return W}lheading($){let X=this.rules.block.lheading.exec($);if(X)return{type:"heading",raw:X[0],depth:X[2].charAt(0)==="="?1:2,text:X[1],tokens:this.lexer.inline(X[1])}}paragraph($){let X=this.rules.block.paragraph.exec($);if(X){let G=X[1].charAt(X[1].length-1)===`
172
172
  `?X[1].slice(0,-1):X[1];return{type:"paragraph",raw:X[0],text:G,tokens:this.lexer.inline(G)}}}text($){let X=this.rules.block.text.exec($);if(X)return{type:"text",raw:X[0],text:X[0],tokens:this.lexer.inline(X[0])}}escape($){let X=this.rules.inline.escape.exec($);if(X)return{type:"escape",raw:X[0],text:v1(X[1])}}tag($){let X=this.rules.inline.tag.exec($);if(X){if(!this.lexer.state.inLink&&/^<a /i.test(X[0]))this.lexer.state.inLink=!0;else if(this.lexer.state.inLink&&/^<\/a>/i.test(X[0]))this.lexer.state.inLink=!1;if(!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(X[0]))this.lexer.state.inRawBlock=!0;else if(this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(X[0]))this.lexer.state.inRawBlock=!1;return{type:"html",raw:X[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:X[0]}}}link($){let X=this.rules.inline.link.exec($);if(X){let G=X[2].trim();if(!this.options.pedantic&&/^</.test(G)){if(!/>$/.test(G))return;let W=S7(G.slice(0,-1),"\\");if((G.length-W.length)%2===0)return}else{let W=PI(X[2],"()");if(W>-1){let U=(X[0].indexOf("!")===0?5:4)+X[1].length+W;X[2]=X[2].substring(0,W),X[0]=X[0].substring(0,U).trim(),X[3]=""}}let Y=X[2],J="";if(this.options.pedantic){let W=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Y);if(W)Y=W[1],J=W[3]}else J=X[3]?X[3].slice(1,-1):"";if(Y=Y.trim(),/^</.test(Y))if(this.options.pedantic&&!/>$/.test(G))Y=Y.slice(1);else Y=Y.slice(1,-1);return GR(X,{href:Y?Y.replace(this.rules.inline.anyPunctuation,"$1"):Y,title:J?J.replace(this.rules.inline.anyPunctuation,"$1"):J},X[0],this.lexer)}}reflink($,X){let G;if((G=this.rules.inline.reflink.exec($))||(G=this.rules.inline.nolink.exec($))){let Y=(G[2]||G[1]).replace(/\s+/g," "),J=X[Y.toLowerCase()];if(!J){let W=G[0].charAt(0);return{type:"text",raw:W,text:W}}return GR(G,J,G[0],this.lexer)}}emStrong($,X,G=""){let Y=this.rules.inline.emStrongLDelim.exec($);if(!Y)return;if(Y[3]&&G.match(/[\p{L}\p{N}]/u))return;if(!(Y[1]||Y[2])||!G||this.rules.inline.punctuation.exec(G)){let W=[...Y[0]].length-1,H,U,M=W,F=0,Q=Y[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;Q.lastIndex=0,X=X.slice(-1*$.length+W);while((Y=Q.exec(X))!=null){if(H=Y[1]||Y[2]||Y[3]||Y[4]||Y[5]||Y[6],!H)continue;if(U=[...H].length,Y[3]||Y[4]){M+=U;continue}else if(Y[5]||Y[6]){if(W%3&&!((W+U)%3)){F+=U;continue}}if(M-=U,M>0)continue;U=Math.min(U,U+M+F);let q=[...Y[0]][0].length,R=$.slice(0,W+Y.index+q+U);if(Math.min(W,U)%2){let _=R.slice(1,-1);return{type:"em",raw:R,text:_,tokens:this.lexer.inlineTokens(_)}}let O=R.slice(2,-2);return{type:"strong",raw:R,text:O,tokens:this.lexer.inlineTokens(O)}}}}codespan($){let X=this.rules.inline.code.exec($);if(X){let G=X[2].replace(/\n/g," "),Y=/[^ ]/.test(G),J=/^ /.test(G)&&/ $/.test(G);if(Y&&J)G=G.substring(1,G.length-1);return G=v1(G,!0),{type:"codespan",raw:X[0],text:G}}}br($){let X=this.rules.inline.br.exec($);if(X)return{type:"br",raw:X[0]}}del($){let X=this.rules.inline.del.exec($);if(X)return{type:"del",raw:X[0],text:X[2],tokens:this.lexer.inlineTokens(X[2])}}autolink($){let X=this.rules.inline.autolink.exec($);if(X){let G,Y;if(X[2]==="@")G=v1(X[1]),Y="mailto:"+G;else G=v1(X[1]),Y=G;return{type:"link",raw:X[0],text:G,href:Y,tokens:[{type:"text",raw:G,text:G}]}}}url($){let X;if(X=this.rules.inline.url.exec($)){let G,Y;if(X[2]==="@")G=v1(X[0]),Y="mailto:"+G;else{let J;do J=X[0],X[0]=this.rules.inline._backpedal.exec(X[0])?.[0]??"";while(J!==X[0]);if(G=v1(X[0]),X[1]==="www.")Y="http://"+X[0];else Y=X[0]}return{type:"link",raw:X[0],text:G,href:Y,tokens:[{type:"text",raw:G,text:G}]}}}inlineText($){let X=this.rules.inline.text.exec($);if(X){let G;if(this.lexer.state.inRawBlock)G=X[0];else G=v1(X[0]);return{type:"text",raw:X[0],text:G}}}}var CI=/^(?: *(?:\n|$))+/,TI=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,EI=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,A8=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,II=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,UR=/(?:[*+-]|\d{1,9}[.)])/,KR=L0(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,UR).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),iG=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,jI=/^[^\n]+/,oG=/(?!\s*\])(?:\\.|[^\[\]\\])+/,SI=L0(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",oG).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),kI=L0(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,UR).getRegex(),x7="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",nG=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,vI=L0("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",nG).replace("tag",x7).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),MR=L0(iG).replace("hr",A8).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x7).getRegex(),xI=L0(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",MR).getRegex(),sG={blockquote:xI,code:TI,def:SI,fences:EI,heading:II,hr:A8,html:vI,lheading:KR,list:kI,newline:CI,paragraph:MR,table:q8,text:jI},YR=L0("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",A8).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x7).getRegex(),bI={...sG,table:YR,paragraph:L0(iG).replace("hr",A8).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",YR).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x7).getRegex()},hI={...sG,html:L0(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",nG).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:q8,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:L0(iG).replace("hr",A8).replace("heading",` *#{1,6} *[^
173
- ]`).replace("lheading",KR).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},FR=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,yI=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,QR=/^( {2,}|\\)\n(?!\s*$)/,fI=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,B8="\\p{P}\\p{S}",gI=L0(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,B8).getRegex(),mI=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,pI=L0(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,B8).getRegex(),uI=L0("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,B8).getRegex(),dI=L0("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,B8).getRegex(),lI=L0(/\\([punct])/,"gu").replace(/punct/g,B8).getRegex(),cI=L0(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),rI=L0(nG).replace("(?:-->|$)","-->").getRegex(),iI=L0("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",rI).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),v7=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,oI=L0(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",v7).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qR=L0(/^!?\[(label)\]\[(ref)\]/).replace("label",v7).replace("ref",oG).getRegex(),OR=L0(/^!?\[(ref)\](?:\[\])?/).replace("ref",oG).getRegex(),nI=L0("reflink|nolink(?!\\()","g").replace("reflink",qR).replace("nolink",OR).getRegex(),aG={_backpedal:q8,anyPunctuation:lI,autolink:cI,blockSkip:mI,br:QR,code:yI,del:q8,emStrongLDelim:pI,emStrongRDelimAst:uI,emStrongRDelimUnd:dI,escape:FR,link:oI,nolink:OR,punctuation:gI,reflink:qR,reflinkSearch:nI,tag:iI,text:fI,url:q8},sI={...aG,link:L0(/^!?\[(label)\]\((.*?)\)/).replace("label",v7).getRegex(),reflink:L0(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",v7).getRegex()},cG={...aG,escape:L0(FR).replace("])","~|])").getRegex(),url:L0(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},aI={...cG,br:L0(QR).replace("{2,}","*").getRegex(),text:L0(cG.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},k7={normal:sG,gfm:bI,pedantic:hI},Q8={normal:aG,gfm:cG,breaks:aI,pedantic:sI};class q2{tokens;options;state;tokenizer;inlineQueue;constructor($){this.tokens=[],this.tokens.links=Object.create(null),this.options=$||r6,this.options.tokenizer=this.options.tokenizer||new Z8,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let X={block:k7.normal,inline:Q8.normal};if(this.options.pedantic)X.block=k7.pedantic,X.inline=Q8.pedantic;else if(this.options.gfm)if(X.block=k7.gfm,this.options.breaks)X.inline=Q8.breaks;else X.inline=Q8.gfm;this.tokenizer.rules=X}static get rules(){return{block:k7,inline:Q8}}static lex($,X){return new q2(X).lex($)}static lexInline($,X){return new q2(X).inlineTokens($)}lex($){$=$.replace(/\r\n|\r/g,`
173
+ ]`).replace("lheading",KR).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},FR=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,yI=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,QR=/^( {2,}|\\)\n(?!\s*$)/,fI=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,B8="\\p{P}\\p{S}",gI=L0(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,B8).getRegex(),mI=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,pI=L0(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,B8).getRegex(),uI=L0("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,B8).getRegex(),dI=L0("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,B8).getRegex(),lI=L0(/\\([punct])/,"gu").replace(/punct/g,B8).getRegex(),cI=L0(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),rI=L0(nG).replace("(?:-->|$)","-->").getRegex(),iI=L0("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",rI).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),v7=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,oI=L0(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",v7).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qR=L0(/^!?\[(label)\]\[(ref)\]/).replace("label",v7).replace("ref",oG).getRegex(),OR=L0(/^!?\[(ref)\](?:\[\])?/).replace("ref",oG).getRegex(),nI=L0("reflink|nolink(?!\\()","g").replace("reflink",qR).replace("nolink",OR).getRegex(),aG={_backpedal:q8,anyPunctuation:lI,autolink:cI,blockSkip:mI,br:QR,code:yI,del:q8,emStrongLDelim:pI,emStrongRDelimAst:uI,emStrongRDelimUnd:dI,escape:FR,link:oI,nolink:OR,punctuation:gI,reflink:qR,reflinkSearch:nI,tag:iI,text:fI,url:q8},sI={...aG,link:L0(/^!?\[(label)\]\((.*?)\)/).replace("label",v7).getRegex(),reflink:L0(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",v7).getRegex()},cG={...aG,escape:L0(FR).replace("])","~|])").getRegex(),url:L0(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},aI={...cG,br:L0(QR).replace("{2,}","*").getRegex(),text:L0(cG.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},k7={normal:sG,gfm:bI,pedantic:hI},Q8={normal:aG,gfm:cG,breaks:aI,pedantic:sI};class q6{tokens;options;state;tokenizer;inlineQueue;constructor($){this.tokens=[],this.tokens.links=Object.create(null),this.options=$||r5,this.options.tokenizer=this.options.tokenizer||new Z8,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let X={block:k7.normal,inline:Q8.normal};if(this.options.pedantic)X.block=k7.pedantic,X.inline=Q8.pedantic;else if(this.options.gfm)if(X.block=k7.gfm,this.options.breaks)X.inline=Q8.breaks;else X.inline=Q8.gfm;this.tokenizer.rules=X}static get rules(){return{block:k7,inline:Q8}}static lex($,X){return new q6(X).lex($)}static lexInline($,X){return new q6(X).inlineTokens($)}lex($){$=$.replace(/\r\n|\r/g,`
174
174
  `),this.blockTokens($,this.tokens);for(let X=0;X<this.inlineQueue.length;X++){let G=this.inlineQueue[X];this.inlineTokens(G.src,G.tokens)}return this.inlineQueue=[],this.tokens}blockTokens($,X=[]){if(this.options.pedantic)$=$.replace(/\t/g," ").replace(/^ +$/gm,"");else $=$.replace(/^( *)(\t+)/gm,(H,U,M)=>{return U+" ".repeat(M.length)});let G,Y,J,W;while($){if(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((H)=>{if(G=H.call({lexer:this},$,X))return $=$.substring(G.raw.length),X.push(G),!0;return!1}))continue;if(G=this.tokenizer.space($)){if($=$.substring(G.raw.length),G.raw.length===1&&X.length>0)X[X.length-1].raw+=`
175
175
  `;else X.push(G);continue}if(G=this.tokenizer.code($)){if($=$.substring(G.raw.length),Y=X[X.length-1],Y&&(Y.type==="paragraph"||Y.type==="text"))Y.raw+=`
176
176
  `+G.raw,Y.text+=`
@@ -180,7 +180,7 @@ ${M}`,templateName:"blog:excerpt"})).excerpt,await this.reportProgress(X,{progre
180
180
  `+G.raw,Y.text+=`
181
181
  `+G.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Y.text;else X.push(G);W=J.length!==$.length,$=$.substring(G.raw.length);continue}if(G=this.tokenizer.text($)){if($=$.substring(G.raw.length),Y=X[X.length-1],Y&&Y.type==="text")Y.raw+=`
182
182
  `+G.raw,Y.text+=`
183
- `+G.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Y.text;else X.push(G);continue}if($){let H="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(H);break}else throw Error(H)}}return this.state.top=!0,X}inline($,X=[]){return this.inlineQueue.push({src:$,tokens:X}),X}inlineTokens($,X=[]){let G,Y,J,W=$,H,U,M;if(this.tokens.links){let F=Object.keys(this.tokens.links);if(F.length>0){while((H=this.tokenizer.rules.inline.reflinkSearch.exec(W))!=null)if(F.includes(H[0].slice(H[0].lastIndexOf("[")+1,-1)))W=W.slice(0,H.index)+"["+"a".repeat(H[0].length-2)+"]"+W.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex)}}while((H=this.tokenizer.rules.inline.blockSkip.exec(W))!=null)W=W.slice(0,H.index)+"["+"a".repeat(H[0].length-2)+"]"+W.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while((H=this.tokenizer.rules.inline.anyPunctuation.exec(W))!=null)W=W.slice(0,H.index)+"++"+W.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);while($){if(!U)M="";if(U=!1,this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((F)=>{if(G=F.call({lexer:this},$,X))return $=$.substring(G.raw.length),X.push(G),!0;return!1}))continue;if(G=this.tokenizer.escape($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.tag($)){if($=$.substring(G.raw.length),Y=X[X.length-1],Y&&G.type==="text"&&Y.type==="text")Y.raw+=G.raw,Y.text+=G.text;else X.push(G);continue}if(G=this.tokenizer.link($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.reflink($,this.tokens.links)){if($=$.substring(G.raw.length),Y=X[X.length-1],Y&&G.type==="text"&&Y.type==="text")Y.raw+=G.raw,Y.text+=G.text;else X.push(G);continue}if(G=this.tokenizer.emStrong($,W,M)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.codespan($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.br($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.del($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.autolink($)){$=$.substring(G.raw.length),X.push(G);continue}if(!this.state.inLink&&(G=this.tokenizer.url($))){$=$.substring(G.raw.length),X.push(G);continue}if(J=$,this.options.extensions&&this.options.extensions.startInline){let F=1/0,Q=$.slice(1),q;if(this.options.extensions.startInline.forEach((R)=>{if(q=R.call({lexer:this},Q),typeof q==="number"&&q>=0)F=Math.min(F,q)}),F<1/0&&F>=0)J=$.substring(0,F+1)}if(G=this.tokenizer.inlineText(J)){if($=$.substring(G.raw.length),G.raw.slice(-1)!=="_")M=G.raw.slice(-1);if(U=!0,Y=X[X.length-1],Y&&Y.type==="text")Y.raw+=G.raw,Y.text+=G.text;else X.push(G);continue}if($){let F="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(F);break}else throw Error(F)}}return X}}class R8{options;constructor($){this.options=$||r6}code($,X,G){let Y=(X||"").match(/^\S*/)?.[0];if($=$.replace(/\n$/,"")+`
183
+ `+G.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Y.text;else X.push(G);continue}if($){let H="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(H);break}else throw Error(H)}}return this.state.top=!0,X}inline($,X=[]){return this.inlineQueue.push({src:$,tokens:X}),X}inlineTokens($,X=[]){let G,Y,J,W=$,H,U,M;if(this.tokens.links){let F=Object.keys(this.tokens.links);if(F.length>0){while((H=this.tokenizer.rules.inline.reflinkSearch.exec(W))!=null)if(F.includes(H[0].slice(H[0].lastIndexOf("[")+1,-1)))W=W.slice(0,H.index)+"["+"a".repeat(H[0].length-2)+"]"+W.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex)}}while((H=this.tokenizer.rules.inline.blockSkip.exec(W))!=null)W=W.slice(0,H.index)+"["+"a".repeat(H[0].length-2)+"]"+W.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while((H=this.tokenizer.rules.inline.anyPunctuation.exec(W))!=null)W=W.slice(0,H.index)+"++"+W.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);while($){if(!U)M="";if(U=!1,this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((F)=>{if(G=F.call({lexer:this},$,X))return $=$.substring(G.raw.length),X.push(G),!0;return!1}))continue;if(G=this.tokenizer.escape($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.tag($)){if($=$.substring(G.raw.length),Y=X[X.length-1],Y&&G.type==="text"&&Y.type==="text")Y.raw+=G.raw,Y.text+=G.text;else X.push(G);continue}if(G=this.tokenizer.link($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.reflink($,this.tokens.links)){if($=$.substring(G.raw.length),Y=X[X.length-1],Y&&G.type==="text"&&Y.type==="text")Y.raw+=G.raw,Y.text+=G.text;else X.push(G);continue}if(G=this.tokenizer.emStrong($,W,M)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.codespan($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.br($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.del($)){$=$.substring(G.raw.length),X.push(G);continue}if(G=this.tokenizer.autolink($)){$=$.substring(G.raw.length),X.push(G);continue}if(!this.state.inLink&&(G=this.tokenizer.url($))){$=$.substring(G.raw.length),X.push(G);continue}if(J=$,this.options.extensions&&this.options.extensions.startInline){let F=1/0,Q=$.slice(1),q;if(this.options.extensions.startInline.forEach((R)=>{if(q=R.call({lexer:this},Q),typeof q==="number"&&q>=0)F=Math.min(F,q)}),F<1/0&&F>=0)J=$.substring(0,F+1)}if(G=this.tokenizer.inlineText(J)){if($=$.substring(G.raw.length),G.raw.slice(-1)!=="_")M=G.raw.slice(-1);if(U=!0,Y=X[X.length-1],Y&&Y.type==="text")Y.raw+=G.raw,Y.text+=G.text;else X.push(G);continue}if($){let F="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(F);break}else throw Error(F)}}return X}}class R8{options;constructor($){this.options=$||r5}code($,X,G){let Y=(X||"").match(/^\S*/)?.[0];if($=$.replace(/\n$/,"")+`
184
184
  `,!Y)return"<pre><code>"+(G?$:v1($,!0))+`</code></pre>
185
185
  `;return'<pre><code class="language-'+v1(Y)+'">'+(G?$:v1($,!0))+`</code></pre>
186
186
  `}blockquote($){return`<blockquote>
@@ -198,12 +198,12 @@ ${$}</blockquote>
198
198
  `}tablerow($){return`<tr>
199
199
  ${$}</tr>
200
200
  `}tablecell($,X){let G=X.header?"th":"td";return(X.align?`<${G} align="${X.align}">`:`<${G}>`)+$+`</${G}>
201
- `}strong($){return`<strong>${$}</strong>`}em($){return`<em>${$}</em>`}codespan($){return`<code>${$}</code>`}br(){return"<br>"}del($){return`<del>${$}</del>`}link($,X,G){let Y=$R($);if(Y===null)return G;$=Y;let J='<a href="'+$+'"';if(X)J+=' title="'+X+'"';return J+=">"+G+"</a>",J}image($,X,G){let Y=$R($);if(Y===null)return G;$=Y;let J=`<img src="${$}" alt="${G}"`;if(X)J+=` title="${X}"`;return J+=">",J}text($){return $}}class b7{strong($){return $}em($){return $}codespan($){return $}del($){return $}html($){return $}text($){return $}link($,X,G){return""+G}image($,X,G){return""+G}br(){return""}}class O2{options;renderer;textRenderer;constructor($){this.options=$||r6,this.options.renderer=this.options.renderer||new R8,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new b7}static parse($,X){return new O2(X).parse($)}static parseInline($,X){return new O2(X).parseInline($)}parse($,X=!0){let G="";for(let Y=0;Y<$.length;Y++){let J=$[Y];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[J.type]){let W=J,H=this.options.extensions.renderers[W.type].call({parser:this},W);if(H!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(W.type)){G+=H||"";continue}}switch(J.type){case"space":continue;case"hr":{G+=this.renderer.hr();continue}case"heading":{let W=J;G+=this.renderer.heading(this.parseInline(W.tokens),W.depth,zI(this.parseInline(W.tokens,this.textRenderer)));continue}case"code":{let W=J;G+=this.renderer.code(W.text,W.lang,!!W.escaped);continue}case"table":{let W=J,H="",U="";for(let F=0;F<W.header.length;F++)U+=this.renderer.tablecell(this.parseInline(W.header[F].tokens),{header:!0,align:W.align[F]});H+=this.renderer.tablerow(U);let M="";for(let F=0;F<W.rows.length;F++){let Q=W.rows[F];U="";for(let q=0;q<Q.length;q++)U+=this.renderer.tablecell(this.parseInline(Q[q].tokens),{header:!1,align:W.align[q]});M+=this.renderer.tablerow(U)}G+=this.renderer.table(H,M);continue}case"blockquote":{let W=J,H=this.parse(W.tokens);G+=this.renderer.blockquote(H);continue}case"list":{let W=J,H=W.ordered,U=W.start,M=W.loose,F="";for(let Q=0;Q<W.items.length;Q++){let q=W.items[Q],R=q.checked,O=q.task,_="";if(q.task){let z=this.renderer.checkbox(!!R);if(M)if(q.tokens.length>0&&q.tokens[0].type==="paragraph"){if(q.tokens[0].text=z+" "+q.tokens[0].text,q.tokens[0].tokens&&q.tokens[0].tokens.length>0&&q.tokens[0].tokens[0].type==="text")q.tokens[0].tokens[0].text=z+" "+q.tokens[0].tokens[0].text}else q.tokens.unshift({type:"text",text:z+" "});else _+=z+" "}_+=this.parse(q.tokens,M),F+=this.renderer.listitem(_,O,!!R)}G+=this.renderer.list(F,H,U);continue}case"html":{let W=J;G+=this.renderer.html(W.text,W.block);continue}case"paragraph":{let W=J;G+=this.renderer.paragraph(this.parseInline(W.tokens));continue}case"text":{let W=J,H=W.tokens?this.parseInline(W.tokens):W.text;while(Y+1<$.length&&$[Y+1].type==="text")W=$[++Y],H+=`
202
- `+(W.tokens?this.parseInline(W.tokens):W.text);G+=X?this.renderer.paragraph(H):H;continue}default:{let W='Token with "'+J.type+'" type was not found.';if(this.options.silent)return console.error(W),"";else throw Error(W)}}}return G}parseInline($,X){X=X||this.renderer;let G="";for(let Y=0;Y<$.length;Y++){let J=$[Y];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[J.type]){let W=this.options.extensions.renderers[J.type].call({parser:this},J);if(W!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(J.type)){G+=W||"";continue}}switch(J.type){case"escape":{let W=J;G+=X.text(W.text);break}case"html":{let W=J;G+=X.html(W.text);break}case"link":{let W=J;G+=X.link(W.href,W.title,this.parseInline(W.tokens,X));break}case"image":{let W=J;G+=X.image(W.href,W.title,W.text);break}case"strong":{let W=J;G+=X.strong(this.parseInline(W.tokens,X));break}case"em":{let W=J;G+=X.em(this.parseInline(W.tokens,X));break}case"codespan":{let W=J;G+=X.codespan(W.text);break}case"br":{G+=X.br();break}case"del":{let W=J;G+=X.del(this.parseInline(W.tokens,X));break}case"text":{let W=J;G+=X.text(W.text);break}default:{let W='Token with "'+J.type+'" type was not found.';if(this.options.silent)return console.error(W),"";else throw Error(W)}}}return G}}class O8{options;constructor($){this.options=$||r6}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess($){return $}postprocess($){return $}processAllTokens($){return $}}class N8{defaults=rG();options=this.setOptions;parse=this.#$(q2.lex,O2.parse);parseInline=this.#$(q2.lexInline,O2.parseInline);Parser=O2;Renderer=R8;TextRenderer=b7;Lexer=q2;Tokenizer=Z8;Hooks=O8;constructor(...$){this.use(...$)}walkTokens($,X){let G=[];for(let Y of $)switch(G=G.concat(X.call(this,Y)),Y.type){case"table":{let J=Y;for(let W of J.header)G=G.concat(this.walkTokens(W.tokens,X));for(let W of J.rows)for(let H of W)G=G.concat(this.walkTokens(H.tokens,X));break}case"list":{let J=Y;G=G.concat(this.walkTokens(J.items,X));break}default:{let J=Y;if(this.defaults.extensions?.childTokens?.[J.type])this.defaults.extensions.childTokens[J.type].forEach((W)=>{let H=J[W].flat(1/0);G=G.concat(this.walkTokens(H,X))});else if(J.tokens)G=G.concat(this.walkTokens(J.tokens,X))}}return G}use(...$){let X=this.defaults.extensions||{renderers:{},childTokens:{}};return $.forEach((G)=>{let Y={...G};if(Y.async=this.defaults.async||Y.async||!1,G.extensions)G.extensions.forEach((J)=>{if(!J.name)throw Error("extension name required");if("renderer"in J){let W=X.renderers[J.name];if(W)X.renderers[J.name]=function(...H){let U=J.renderer.apply(this,H);if(U===!1)U=W.apply(this,H);return U};else X.renderers[J.name]=J.renderer}if("tokenizer"in J){if(!J.level||J.level!=="block"&&J.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let W=X[J.level];if(W)W.unshift(J.tokenizer);else X[J.level]=[J.tokenizer];if(J.start){if(J.level==="block")if(X.startBlock)X.startBlock.push(J.start);else X.startBlock=[J.start];else if(J.level==="inline")if(X.startInline)X.startInline.push(J.start);else X.startInline=[J.start]}}if("childTokens"in J&&J.childTokens)X.childTokens[J.name]=J.childTokens}),Y.extensions=X;if(G.renderer){let J=this.defaults.renderer||new R8(this.defaults);for(let W in G.renderer){if(!(W in J))throw Error(`renderer '${W}' does not exist`);if(W==="options")continue;let H=W,U=G.renderer[H],M=J[H];J[H]=(...F)=>{let Q=U.apply(J,F);if(Q===!1)Q=M.apply(J,F);return Q||""}}Y.renderer=J}if(G.tokenizer){let J=this.defaults.tokenizer||new Z8(this.defaults);for(let W in G.tokenizer){if(!(W in J))throw Error(`tokenizer '${W}' does not exist`);if(["options","rules","lexer"].includes(W))continue;let H=W,U=G.tokenizer[H],M=J[H];J[H]=(...F)=>{let Q=U.apply(J,F);if(Q===!1)Q=M.apply(J,F);return Q}}Y.tokenizer=J}if(G.hooks){let J=this.defaults.hooks||new O8;for(let W in G.hooks){if(!(W in J))throw Error(`hook '${W}' does not exist`);if(W==="options")continue;let H=W,U=G.hooks[H],M=J[H];if(O8.passThroughHooks.has(W))J[H]=(F)=>{if(this.defaults.async)return Promise.resolve(U.call(J,F)).then((q)=>{return M.call(J,q)});let Q=U.call(J,F);return M.call(J,Q)};else J[H]=(...F)=>{let Q=U.apply(J,F);if(Q===!1)Q=M.apply(J,F);return Q}}Y.hooks=J}if(G.walkTokens){let J=this.defaults.walkTokens,W=G.walkTokens;Y.walkTokens=function(H){let U=[];if(U.push(W.call(this,H)),J)U=U.concat(J.call(this,H));return U}}this.defaults={...this.defaults,...Y}}),this}setOptions($){return this.defaults={...this.defaults,...$},this}lexer($,X){return q2.lex($,X??this.defaults)}parser($,X){return O2.parse($,X??this.defaults)}#$($,X){return(G,Y)=>{let J={...Y},W={...this.defaults,...J};if(this.defaults.async===!0&&J.async===!1){if(!W.silent)console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored.");W.async=!0}let H=this.#X(!!W.silent,!!W.async);if(typeof G>"u"||G===null)return H(Error("marked(): input parameter is undefined or null"));if(typeof G!=="string")return H(Error("marked(): input parameter is of type "+Object.prototype.toString.call(G)+", string expected"));if(W.hooks)W.hooks.options=W;if(W.async)return Promise.resolve(W.hooks?W.hooks.preprocess(G):G).then((U)=>$(U,W)).then((U)=>W.hooks?W.hooks.processAllTokens(U):U).then((U)=>W.walkTokens?Promise.all(this.walkTokens(U,W.walkTokens)).then(()=>U):U).then((U)=>X(U,W)).then((U)=>W.hooks?W.hooks.postprocess(U):U).catch(H);try{if(W.hooks)G=W.hooks.preprocess(G);let U=$(G,W);if(W.hooks)U=W.hooks.processAllTokens(U);if(W.walkTokens)this.walkTokens(U,W.walkTokens);let M=X(U,W);if(W.hooks)M=W.hooks.postprocess(M);return M}catch(U){return H(U)}}}#X($,X){return(G)=>{if(G.message+=`
203
- Please report this to https://github.com/markedjs/marked.`,$){let Y="<p>An error occurred:</p><pre>"+v1(G.message+"",!0)+"</pre>";if(X)return Promise.resolve(Y);return Y}if(X)return Promise.reject(G);throw G}}}var c6=new N8;function P0($,X){return c6.parse($,X)}P0.options=P0.setOptions=function($){return c6.setOptions($),P0.defaults=c6.defaults,JR(P0.defaults),P0};P0.getDefaults=rG;P0.defaults=r6;P0.use=function(...$){return c6.use(...$),P0.defaults=c6.defaults,JR(P0.defaults),P0};P0.walkTokens=function($,X){return c6.walkTokens($,X)};P0.parseInline=c6.parseInline;P0.Parser=O2;P0.parser=O2.parse;P0.Renderer=R8;P0.TextRenderer=b7;P0.Lexer=q2;P0.lexer=q2.lex;P0.Tokenizer=Z8;P0.Hooks=O8;P0.parse=P0;var{options:p20,setOptions:u20,use:d20,walkTokens:l20,parseInline:c20}=P0;var r20=O2.parse,i20=q2.lex;var tI=new N8({gfm:!0,breaks:!0});function tG($,X){let{imageRenderer:G}=X??{},J=(G?new N8({gfm:!0,breaks:!0}).use({renderer:{image(W,H,U){return G(W,H,U)??!1}}}):tI).parse($);return J=J.replace(/<\/blockquote>\s*<p>(\u2014|--|\u2013)([\s\S]*?)<\/p>/g,`</blockquote>
204
- <cite class="block-attribution"><span class="emdash">$1</span>$2</cite>`),J}var Xj=eI(null);function ZR(){return $j(Xj)}function i6(){let $=ZR();return(X)=>tG(X,$?{imageRenderer:$}:void 0)}var Gj=/<pre><code class="language-mermaid">([\s\S]*?)<\/code><\/pre>/g,Yj={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Jj=/&(?:amp|lt|gt|quot|#39);/g;function Wj($){return $.replace(Jj,(X)=>Yj[X]??X)}function eG($){return $.replace(Gj,(X,G)=>{return`<div class="mermaid">${Wj(G)}</div>`})}var RR=/<!--\s*\.slide:\s*(.*?)\s*-->/g;function AR($){let X={};for(let Y of $.matchAll(RR)){let J=Y[1]??"";for(let H of J.matchAll(/([\w-]+)=["']([^"']*?)["']/g)){let U=H[1],M=H[2];if(U&&M!==void 0)X[U]=M}let W=J.replace(/([\w-]+)=["']([^"']*?)["']/g,"").trim();if(W)for(let H of W.matchAll(/(?:^|\s)([\w-]+)(?=\s|$)/g)){let U=H[1];if(U)X[U]="true"}}let G=$.replace(RR,"").replace(/^\n+/,"").replace(/\n{3,}/g,`
201
+ `}strong($){return`<strong>${$}</strong>`}em($){return`<em>${$}</em>`}codespan($){return`<code>${$}</code>`}br(){return"<br>"}del($){return`<del>${$}</del>`}link($,X,G){let Y=$R($);if(Y===null)return G;$=Y;let J='<a href="'+$+'"';if(X)J+=' title="'+X+'"';return J+=">"+G+"</a>",J}image($,X,G){let Y=$R($);if(Y===null)return G;$=Y;let J=`<img src="${$}" alt="${G}"`;if(X)J+=` title="${X}"`;return J+=">",J}text($){return $}}class b7{strong($){return $}em($){return $}codespan($){return $}del($){return $}html($){return $}text($){return $}link($,X,G){return""+G}image($,X,G){return""+G}br(){return""}}class O6{options;renderer;textRenderer;constructor($){this.options=$||r5,this.options.renderer=this.options.renderer||new R8,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new b7}static parse($,X){return new O6(X).parse($)}static parseInline($,X){return new O6(X).parseInline($)}parse($,X=!0){let G="";for(let Y=0;Y<$.length;Y++){let J=$[Y];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[J.type]){let W=J,H=this.options.extensions.renderers[W.type].call({parser:this},W);if(H!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(W.type)){G+=H||"";continue}}switch(J.type){case"space":continue;case"hr":{G+=this.renderer.hr();continue}case"heading":{let W=J;G+=this.renderer.heading(this.parseInline(W.tokens),W.depth,zI(this.parseInline(W.tokens,this.textRenderer)));continue}case"code":{let W=J;G+=this.renderer.code(W.text,W.lang,!!W.escaped);continue}case"table":{let W=J,H="",U="";for(let F=0;F<W.header.length;F++)U+=this.renderer.tablecell(this.parseInline(W.header[F].tokens),{header:!0,align:W.align[F]});H+=this.renderer.tablerow(U);let M="";for(let F=0;F<W.rows.length;F++){let Q=W.rows[F];U="";for(let q=0;q<Q.length;q++)U+=this.renderer.tablecell(this.parseInline(Q[q].tokens),{header:!1,align:W.align[q]});M+=this.renderer.tablerow(U)}G+=this.renderer.table(H,M);continue}case"blockquote":{let W=J,H=this.parse(W.tokens);G+=this.renderer.blockquote(H);continue}case"list":{let W=J,H=W.ordered,U=W.start,M=W.loose,F="";for(let Q=0;Q<W.items.length;Q++){let q=W.items[Q],R=q.checked,O=q.task,_="";if(q.task){let z=this.renderer.checkbox(!!R);if(M)if(q.tokens.length>0&&q.tokens[0].type==="paragraph"){if(q.tokens[0].text=z+" "+q.tokens[0].text,q.tokens[0].tokens&&q.tokens[0].tokens.length>0&&q.tokens[0].tokens[0].type==="text")q.tokens[0].tokens[0].text=z+" "+q.tokens[0].tokens[0].text}else q.tokens.unshift({type:"text",text:z+" "});else _+=z+" "}_+=this.parse(q.tokens,M),F+=this.renderer.listitem(_,O,!!R)}G+=this.renderer.list(F,H,U);continue}case"html":{let W=J;G+=this.renderer.html(W.text,W.block);continue}case"paragraph":{let W=J;G+=this.renderer.paragraph(this.parseInline(W.tokens));continue}case"text":{let W=J,H=W.tokens?this.parseInline(W.tokens):W.text;while(Y+1<$.length&&$[Y+1].type==="text")W=$[++Y],H+=`
202
+ `+(W.tokens?this.parseInline(W.tokens):W.text);G+=X?this.renderer.paragraph(H):H;continue}default:{let W='Token with "'+J.type+'" type was not found.';if(this.options.silent)return console.error(W),"";else throw Error(W)}}}return G}parseInline($,X){X=X||this.renderer;let G="";for(let Y=0;Y<$.length;Y++){let J=$[Y];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[J.type]){let W=this.options.extensions.renderers[J.type].call({parser:this},J);if(W!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(J.type)){G+=W||"";continue}}switch(J.type){case"escape":{let W=J;G+=X.text(W.text);break}case"html":{let W=J;G+=X.html(W.text);break}case"link":{let W=J;G+=X.link(W.href,W.title,this.parseInline(W.tokens,X));break}case"image":{let W=J;G+=X.image(W.href,W.title,W.text);break}case"strong":{let W=J;G+=X.strong(this.parseInline(W.tokens,X));break}case"em":{let W=J;G+=X.em(this.parseInline(W.tokens,X));break}case"codespan":{let W=J;G+=X.codespan(W.text);break}case"br":{G+=X.br();break}case"del":{let W=J;G+=X.del(this.parseInline(W.tokens,X));break}case"text":{let W=J;G+=X.text(W.text);break}default:{let W='Token with "'+J.type+'" type was not found.';if(this.options.silent)return console.error(W),"";else throw Error(W)}}}return G}}class O8{options;constructor($){this.options=$||r5}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess($){return $}postprocess($){return $}processAllTokens($){return $}}class N8{defaults=rG();options=this.setOptions;parse=this.#$(q6.lex,O6.parse);parseInline=this.#$(q6.lexInline,O6.parseInline);Parser=O6;Renderer=R8;TextRenderer=b7;Lexer=q6;Tokenizer=Z8;Hooks=O8;constructor(...$){this.use(...$)}walkTokens($,X){let G=[];for(let Y of $)switch(G=G.concat(X.call(this,Y)),Y.type){case"table":{let J=Y;for(let W of J.header)G=G.concat(this.walkTokens(W.tokens,X));for(let W of J.rows)for(let H of W)G=G.concat(this.walkTokens(H.tokens,X));break}case"list":{let J=Y;G=G.concat(this.walkTokens(J.items,X));break}default:{let J=Y;if(this.defaults.extensions?.childTokens?.[J.type])this.defaults.extensions.childTokens[J.type].forEach((W)=>{let H=J[W].flat(1/0);G=G.concat(this.walkTokens(H,X))});else if(J.tokens)G=G.concat(this.walkTokens(J.tokens,X))}}return G}use(...$){let X=this.defaults.extensions||{renderers:{},childTokens:{}};return $.forEach((G)=>{let Y={...G};if(Y.async=this.defaults.async||Y.async||!1,G.extensions)G.extensions.forEach((J)=>{if(!J.name)throw Error("extension name required");if("renderer"in J){let W=X.renderers[J.name];if(W)X.renderers[J.name]=function(...H){let U=J.renderer.apply(this,H);if(U===!1)U=W.apply(this,H);return U};else X.renderers[J.name]=J.renderer}if("tokenizer"in J){if(!J.level||J.level!=="block"&&J.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let W=X[J.level];if(W)W.unshift(J.tokenizer);else X[J.level]=[J.tokenizer];if(J.start){if(J.level==="block")if(X.startBlock)X.startBlock.push(J.start);else X.startBlock=[J.start];else if(J.level==="inline")if(X.startInline)X.startInline.push(J.start);else X.startInline=[J.start]}}if("childTokens"in J&&J.childTokens)X.childTokens[J.name]=J.childTokens}),Y.extensions=X;if(G.renderer){let J=this.defaults.renderer||new R8(this.defaults);for(let W in G.renderer){if(!(W in J))throw Error(`renderer '${W}' does not exist`);if(W==="options")continue;let H=W,U=G.renderer[H],M=J[H];J[H]=(...F)=>{let Q=U.apply(J,F);if(Q===!1)Q=M.apply(J,F);return Q||""}}Y.renderer=J}if(G.tokenizer){let J=this.defaults.tokenizer||new Z8(this.defaults);for(let W in G.tokenizer){if(!(W in J))throw Error(`tokenizer '${W}' does not exist`);if(["options","rules","lexer"].includes(W))continue;let H=W,U=G.tokenizer[H],M=J[H];J[H]=(...F)=>{let Q=U.apply(J,F);if(Q===!1)Q=M.apply(J,F);return Q}}Y.tokenizer=J}if(G.hooks){let J=this.defaults.hooks||new O8;for(let W in G.hooks){if(!(W in J))throw Error(`hook '${W}' does not exist`);if(W==="options")continue;let H=W,U=G.hooks[H],M=J[H];if(O8.passThroughHooks.has(W))J[H]=(F)=>{if(this.defaults.async)return Promise.resolve(U.call(J,F)).then((q)=>{return M.call(J,q)});let Q=U.call(J,F);return M.call(J,Q)};else J[H]=(...F)=>{let Q=U.apply(J,F);if(Q===!1)Q=M.apply(J,F);return Q}}Y.hooks=J}if(G.walkTokens){let J=this.defaults.walkTokens,W=G.walkTokens;Y.walkTokens=function(H){let U=[];if(U.push(W.call(this,H)),J)U=U.concat(J.call(this,H));return U}}this.defaults={...this.defaults,...Y}}),this}setOptions($){return this.defaults={...this.defaults,...$},this}lexer($,X){return q6.lex($,X??this.defaults)}parser($,X){return O6.parse($,X??this.defaults)}#$($,X){return(G,Y)=>{let J={...Y},W={...this.defaults,...J};if(this.defaults.async===!0&&J.async===!1){if(!W.silent)console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored.");W.async=!0}let H=this.#X(!!W.silent,!!W.async);if(typeof G>"u"||G===null)return H(Error("marked(): input parameter is undefined or null"));if(typeof G!=="string")return H(Error("marked(): input parameter is of type "+Object.prototype.toString.call(G)+", string expected"));if(W.hooks)W.hooks.options=W;if(W.async)return Promise.resolve(W.hooks?W.hooks.preprocess(G):G).then((U)=>$(U,W)).then((U)=>W.hooks?W.hooks.processAllTokens(U):U).then((U)=>W.walkTokens?Promise.all(this.walkTokens(U,W.walkTokens)).then(()=>U):U).then((U)=>X(U,W)).then((U)=>W.hooks?W.hooks.postprocess(U):U).catch(H);try{if(W.hooks)G=W.hooks.preprocess(G);let U=$(G,W);if(W.hooks)U=W.hooks.processAllTokens(U);if(W.walkTokens)this.walkTokens(U,W.walkTokens);let M=X(U,W);if(W.hooks)M=W.hooks.postprocess(M);return M}catch(U){return H(U)}}}#X($,X){return(G)=>{if(G.message+=`
203
+ Please report this to https://github.com/markedjs/marked.`,$){let Y="<p>An error occurred:</p><pre>"+v1(G.message+"",!0)+"</pre>";if(X)return Promise.resolve(Y);return Y}if(X)return Promise.reject(G);throw G}}}var c5=new N8;function P0($,X){return c5.parse($,X)}P0.options=P0.setOptions=function($){return c5.setOptions($),P0.defaults=c5.defaults,JR(P0.defaults),P0};P0.getDefaults=rG;P0.defaults=r5;P0.use=function(...$){return c5.use(...$),P0.defaults=c5.defaults,JR(P0.defaults),P0};P0.walkTokens=function($,X){return c5.walkTokens($,X)};P0.parseInline=c5.parseInline;P0.Parser=O6;P0.parser=O6.parse;P0.Renderer=R8;P0.TextRenderer=b7;P0.Lexer=q6;P0.lexer=q6.lex;P0.Tokenizer=Z8;P0.Hooks=O8;P0.parse=P0;var{options:p60,setOptions:u60,use:d60,walkTokens:l60,parseInline:c60}=P0;var r60=O6.parse,i60=q6.lex;var tI=new N8({gfm:!0,breaks:!0});function tG($,X){let{imageRenderer:G}=X??{},J=(G?new N8({gfm:!0,breaks:!0}).use({renderer:{image(W,H,U){return G(W,H,U)??!1}}}):tI).parse($);return J=J.replace(/<\/blockquote>\s*<p>(\u2014|--|\u2013)([\s\S]*?)<\/p>/g,`</blockquote>
204
+ <cite class="block-attribution"><span class="emdash">$1</span>$2</cite>`),J}var Xj=eI(null);function ZR(){return $j(Xj)}function i5(){let $=ZR();return(X)=>tG(X,$?{imageRenderer:$}:void 0)}var Gj=/<pre><code class="language-mermaid">([\s\S]*?)<\/code><\/pre>/g,Yj={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Jj=/&(?:amp|lt|gt|quot|#39);/g;function Wj($){return $.replace(Jj,(X)=>Yj[X]??X)}function eG($){return $.replace(Gj,(X,G)=>{return`<div class="mermaid">${Wj(G)}</div>`})}var RR=/<!--\s*\.slide:\s*(.*?)\s*-->/g;function AR($){let X={};for(let Y of $.matchAll(RR)){let J=Y[1]??"";for(let H of J.matchAll(/([\w-]+)=["']([^"']*?)["']/g)){let U=H[1],M=H[2];if(U&&M!==void 0)X[U]=M}let W=J.replace(/([\w-]+)=["']([^"']*?)["']/g,"").trim();if(W)for(let H of W.matchAll(/(?:^|\s)([\w-]+)(?=\s|$)/g)){let U=H[1];if(U)X[U]="true"}}let G=$.replace(RR,"").replace(/^\n+/,"").replace(/\n{3,}/g,`
205
205
 
206
- `).trim();return{attributes:X,markdown:G}}var Hj=/<!--\s*\.break\s*-->/;function BR($){let X=$.split(Hj);return X.length>1?X:null}import{jsxDEV as S2}from"preact/jsx-dev-runtime";var $Y=({markdown:$})=>{let X=i6(),Y=$.split(/^---$/gm).map((H)=>H.trim()).map((H)=>{let{attributes:U,markdown:M}=AR(H),F=BR(M),Q;if(F)Q=`<div class="slide-columns">${F.map((R)=>`<div class="slide-column">${eG(X(R.trim()))}</div>`).join("")}</div>`;else Q=eG(X(M));return{attributes:U,htmlContent:Q}}),J=Y.some((H)=>H.htmlContent.includes('class="mermaid"')),W=Y.map(({attributes:H,htmlContent:U},M)=>S2("section",{...H,dangerouslySetInnerHTML:{__html:U}},M,!1,void 0,this));return S2("section",{className:"presentation-section",children:[S2("link",{rel:"stylesheet",href:"https://cdn.jsdelivr.net/npm/reveal.js@5.1.0/dist/reveal.min.css"},void 0,!1,void 0,this),S2("div",{className:"reveal",children:S2("div",{className:"slides",children:W},void 0,!1,void 0,this)},void 0,!1,void 0,this),S2("script",{src:"https://cdn.jsdelivr.net/npm/reveal.js@5.1.0/dist/reveal.min.js",defer:!0},void 0,!1,void 0,this),J&&S2("script",{src:"https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js",defer:!0},void 0,!1,void 0,this),S2("script",{dangerouslySetInnerHTML:{__html:`
206
+ `).trim();return{attributes:X,markdown:G}}var Hj=/<!--\s*\.break\s*-->/;function BR($){let X=$.split(Hj);return X.length>1?X:null}import{jsxDEV as S6}from"preact/jsx-dev-runtime";var $Y=({markdown:$})=>{let X=i5(),Y=$.split(/^---$/gm).map((H)=>H.trim()).map((H)=>{let{attributes:U,markdown:M}=AR(H),F=BR(M),Q;if(F)Q=`<div class="slide-columns">${F.map((R)=>`<div class="slide-column">${eG(X(R.trim()))}</div>`).join("")}</div>`;else Q=eG(X(M));return{attributes:U,htmlContent:Q}}),J=Y.some((H)=>H.htmlContent.includes('class="mermaid"')),W=Y.map(({attributes:H,htmlContent:U},M)=>S6("section",{...H,dangerouslySetInnerHTML:{__html:U}},M,!1,void 0,this));return S6("section",{className:"presentation-section",children:[S6("link",{rel:"stylesheet",href:"https://cdn.jsdelivr.net/npm/reveal.js@5.1.0/dist/reveal.min.css"},void 0,!1,void 0,this),S6("div",{className:"reveal",children:S6("div",{className:"slides",children:W},void 0,!1,void 0,this)},void 0,!1,void 0,this),S6("script",{src:"https://cdn.jsdelivr.net/npm/reveal.js@5.1.0/dist/reveal.min.js",defer:!0},void 0,!1,void 0,this),J&&S6("script",{src:"https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js",defer:!0},void 0,!1,void 0,this),S6("script",{dangerouslySetInnerHTML:{__html:`
207
207
  window.addEventListener('DOMContentLoaded', () => {
208
208
  if (window.Reveal) {
209
209
  window.Reveal.initialize({
@@ -224,7 +224,7 @@ Please report this to https://github.com/markedjs/marked.`,$){let Y="<p>An error
224
224
  window.mermaid.initialize({ startOnLoad: true, theme: 'dark' });
225
225
  }
226
226
  });
227
- `}},void 0,!1,void 0,this),S2("style",{dangerouslySetInnerHTML:{__html:`
227
+ `}},void 0,!1,void 0,this),S6("style",{dangerouslySetInnerHTML:{__html:`
228
228
  .presentation-section {
229
229
  width: 100vw;
230
230
  height: 100vh;
@@ -739,7 +739,7 @@ Please report this to https://github.com/markedjs/marked.`,$){let Y="<p>An error
739
739
  font-size: 0.68rem;
740
740
  }
741
741
  }
742
- `}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as u1}from"preact/jsx-dev-runtime";var Uj={github:($)=>u1("svg",{className:$,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),instagram:($)=>u1("svg",{className:$,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),linkedin:($)=>u1("svg",{className:$,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),email:($)=>u1("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),website:($)=>u1("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};function XY({links:$,className:X,iconClassName:G="w-5 h-5"}){if($.length===0)return null;return u1("div",{className:U0("flex gap-4 items-center",X),children:$.map((Y,J)=>{let W=Uj[Y.platform],H=`${Y.platform.charAt(0).toUpperCase()}${Y.platform.slice(1)}`;return u1("a",{href:Y.url,target:"_blank",rel:"noopener noreferrer","aria-label":Y.label??H,className:"inline-block transition-opacity hover:opacity-70",children:W(G)},`${Y.platform}-${J}`,!1,void 0,this)})},void 0,!1,void 0,this)}import{jsxDEV as x1}from"preact/jsx-dev-runtime";function GY({cta:$,variant:X="centered",socialLinks:G}){if(X==="editorial")return x1("section",{className:"cta-bg-pattern py-28 md:py-32 px-6 md:px-12",children:x1("div",{className:"max-w-5xl mx-auto",children:[x1("span",{className:"inline-flex items-center gap-[0.6rem] font-mono text-[0.7rem] font-medium uppercase tracking-[0.22em] text-accent mb-6 before:content-[''] before:w-[18px] before:h-px before:bg-accent",children:"Get in touch"},void 0,!1,void 0,this),x1("h2",{className:"font-heading font-normal text-heading leading-[1.05] tracking-[-0.02em] text-[clamp(2.25rem,4.5vw,3.5rem)] max-w-[18ch] mb-10 [font-variation-settings:'opsz'_96,'SOFT'_60]",children:$.heading},void 0,!1,void 0,this),x1("div",{className:"flex flex-wrap items-center gap-7",children:[x1("a",{href:$.buttonLink,className:"inline-flex items-center gap-2 font-mono text-[0.78rem] font-medium uppercase tracking-[0.14em] bg-accent text-theme-inverse px-6 py-[0.95rem] rounded-xl transition-[background,transform] duration-150 hover:bg-[var(--color-text)] hover:-translate-y-px",children:[$.buttonText,x1("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G&&G.length>0&&G.map((Y,J)=>x1("a",{href:Y.url,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-[0.72rem] font-medium uppercase tracking-[0.16em] text-theme-muted hover:text-accent transition-colors relative pb-[3px] before:content-[''] before:absolute before:left-0 before:right-full before:bottom-0 before:h-px before:bg-accent before:transition-[right] before:duration-300 hover:before:right-0",children:Y.label??Y.platform},J,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return x1("section",{className:"cta-bg-pattern bg-brand py-16 md:py-24 px-6 md:px-12",children:x1("div",{className:"max-w-4xl mx-auto text-center",children:[x1("h2",{className:"text-2xl md:text-3xl font-bold text-inverse mb-4 font-heading",children:$.heading},void 0,!1,void 0,this),$.subtitle&&x1("p",{className:"text-base md:text-lg text-inverse opacity-80 mb-6 max-w-md mx-auto",children:$.subtitle},void 0,!1,void 0,this),x1(e1,{href:$.buttonLink,variant:"outline-light",size:"lg",children:$.buttonText},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as YY}from"preact/jsx-dev-runtime";var JY=({primaryNavigation:$,secondaryNavigation:X,copyright:G,socialLinks:Y,title:J,tagline:W,children:H})=>{return YY("footer",{className:"footer pt-14 pb-10 bg-footer border-t border-rule",children:YY("div",{className:"container mx-auto px-6 max-w-layout",children:YY(WY,{primaryNav:$,secondaryNav:X,copyright:G??"Powered by Rizom",socialLinks:Y,showThemeToggle:!0,variant:"default",title:J,tagline:W,children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as a}from"preact/jsx-dev-runtime";var Kj=D0("",{variants:{variant:{full:"",icon:"",text:""}},defaultVariants:{variant:"full"}});function e5({variant:$,height:X=32,className:G,color:Y="currentColor",title:J}){if(J)return a("span",{className:U0("font-heading font-medium text-[1.4rem] leading-none tracking-[-0.01em] [font-variation-settings:'opsz'_24,'SOFT'_50]",G),children:J},void 0,!1,void 0,this);let W=$??"full";if(W==="icon")return a("svg",{height:X,viewBox:"0 0 60 59",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:G,"aria-label":"Rizom logo",children:a("g",{id:"Group",children:[a("path",{id:"Vector",d:"M29.8235 22.1142C31.7219 22.1142 33.5065 22.8336 34.8489 24.1412C36.1913 25.4481 36.9309 27.1856 36.9309 29.0338C36.9309 30.882 36.192 32.6195 34.8489 33.9265C33.5065 35.2334 31.7219 35.9535 29.8235 35.9535C27.9251 35.9535 26.1405 35.234 24.7981 33.9265C23.4557 32.6189 22.7167 30.882 22.7167 29.0338C22.7167 27.1856 23.4557 25.4481 24.7981 24.1412C26.1405 22.8342 27.9251 22.1142 29.8235 22.1142ZM29.8235 17.1881C23.104 17.1881 17.6562 22.4918 17.6562 29.0338C17.6562 35.5758 23.104 40.8796 29.8235 40.8796C36.543 40.8796 41.9907 35.5758 41.9907 29.0338C41.9907 22.4918 36.543 17.1881 29.8235 17.1881Z",fill:Y},void 0,!1,void 0,this),a("g",{id:"Group_2",children:[a("path",{id:"Vector_2",d:"M13.2469 29.0338C13.2469 33.2709 14.9323 37.1315 17.6846 40.0136C11.8265 39.6006 7.20517 34.8424 7.20517 29.0338C7.20517 23.2253 11.8265 18.4671 17.6846 18.0541C14.9323 20.9362 13.2469 24.798 13.2469 29.0338Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_3",d:"M52.4385 29.0338C52.4385 34.8424 47.8172 39.6006 41.9591 40.0136C44.7114 37.1315 46.3967 33.2709 46.3967 29.0338C46.3967 24.7968 44.7114 20.9362 41.9591 18.0541C47.8172 18.4671 52.4385 23.2253 52.4385 29.0338Z",fill:Y},void 0,!1,void 0,this),a("g",{id:"Group_3",children:[a("path",{id:"Vector_4",d:"M59.7265 29.0338C59.7265 32.172 57.6563 34.84 54.7735 35.8142C56.0553 31.4628 56.056 26.6042 54.7735 22.2535C57.6563 23.2277 59.7265 25.8957 59.7265 29.0338Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_5",d:"M3.97003 30.5734C4.08122 32.3778 4.3873 34.1312 4.86955 35.8139C-1.62448 33.824 -1.62136 24.2431 4.86955 22.2544C4.17929 24.8932 3.65582 27.8106 3.97003 30.5734Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a("path",{id:"Vector_6",d:"M41.0996 40.8504C40.6754 46.5537 35.788 51.0529 29.8218 51.0529C23.8557 51.0529 18.9683 46.5537 18.5441 40.8504C21.5044 43.5299 25.471 45.1708 29.8218 45.1708C34.1726 45.1708 38.1393 43.5299 41.0996 40.8504Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_7",d:"M41.0996 17.2173C38.1393 14.5377 34.1739 12.8969 29.8218 12.8969C25.4698 12.8969 21.5044 14.5377 18.5441 17.2173C18.9683 11.514 23.8557 7.01479 29.8218 7.01479C35.788 7.01479 40.6754 11.514 41.0996 17.2173Z",fill:Y},void 0,!1,void 0,this),a("g",{id:"Group_4",children:[a("path",{id:"Vector_8",d:"M36.7862 53.3262C34.7417 59.6493 24.9007 59.6462 22.8574 53.3262C27.3257 54.5742 32.318 54.5742 36.7862 53.3262Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_9",d:"M36.7862 4.74088C32.318 3.49294 27.3257 3.49294 22.8574 4.74088C24.902 -1.58155 34.743 -1.57851 36.7862 4.74088Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(W==="text")return a("svg",{height:X,viewBox:"0 0 138 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:G,"aria-label":"Rizom",children:a("g",{id:"RIZOM",children:[a("path",{d:"M5.24978 24.3876V31.7373H0V0.715879H10.0223C12.4086 0.715879 14.2858 1.43176 15.6539 2.86352C17.0538 4.26346 17.7538 6.01339 17.7538 8.1133C17.7538 9.99049 16.9902 11.7086 15.463 13.2676C17.7538 13.7767 19.5992 15.0494 20.9991 17.0857C22.3991 19.1219 23.099 21.54 23.099 24.3399V31.7373H17.8493V24.8172C17.8493 22.5263 17.2606 20.7287 16.0834 19.4242C14.938 18.1197 13.4108 17.4675 11.5018 17.4675C9.72005 17.4675 8.22466 18.0879 7.01562 19.3287C5.83839 20.5696 5.24978 22.2559 5.24978 24.3876ZM9.11553 5.82249H5.24978V14.7948C5.4725 14.5721 5.72704 14.3494 6.01339 14.1267C6.29974 13.904 6.602 13.6972 6.92017 13.5063C7.27015 13.3154 7.55651 13.1563 7.77922 13.029C8.03376 12.8699 8.36783 12.6949 8.78145 12.504C9.19507 12.2813 9.49733 12.1222 9.68824 12.0268C11.5972 11.0086 12.5518 9.86323 12.5518 8.59055C12.5518 7.7315 12.2495 7.06334 11.645 6.58609C11.0405 6.07702 10.1973 5.82249 9.11553 5.82249Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M33.3536 0.715879V31.7373H28.1039V0.715879H33.3536Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M61.3617 0.715879L46.71 26.5353H61.5049V31.7373H37.6422L52.3416 5.91794H39.3603V0.715879H61.3617Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M79.0133 32.4055C74.5908 32.4055 70.8205 30.8305 67.7024 27.6807C64.6162 24.5308 63.0731 20.6969 63.0731 16.1789C63.0731 11.7245 64.6162 7.9224 67.7024 4.77253C70.8205 1.59084 74.5908 0 79.0133 0C83.4359 0 87.2062 1.59084 90.3242 4.77253C93.4741 7.9224 95.049 11.7245 95.049 16.1789C95.049 20.6969 93.49 24.5308 90.3719 27.6807C87.2539 30.8305 83.4677 32.4055 79.0133 32.4055ZM79.0133 27.0125C81.9723 27.0125 84.4699 25.9626 86.5062 23.8626C88.5743 21.7627 89.6083 19.2015 89.6083 16.1789C89.6083 13.1881 88.5743 10.6586 86.5062 8.59055C84.4699 6.49064 81.9723 5.44068 79.0133 5.44068C76.0862 5.44068 73.6045 6.49064 71.5682 8.59055C69.5319 10.6586 68.5138 13.1881 68.5138 16.1789C68.5138 19.2015 69.5319 21.7627 71.5682 23.8626C73.6045 25.9626 76.0862 27.0125 79.0133 27.0125Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M126.682 0C129.545 0 132.011 1.04996 134.079 3.14987C136.147 5.21796 137.182 7.82695 137.182 10.9768V31.6896H131.932V10.7859C131.932 9.29052 131.423 8.01785 130.405 6.96789C129.386 5.91794 128.146 5.39296 126.682 5.39296C125.25 5.39296 124.025 5.90203 123.007 6.92017C121.989 7.93831 121.48 9.14735 121.48 10.5473V31.7373H116.182L116.23 10.5473C116.23 9.17917 115.705 7.98603 114.655 6.96789C113.605 5.91794 112.364 5.39296 110.933 5.39296C109.437 5.39296 108.165 5.91794 107.115 6.96789C106.065 8.01785 105.54 9.29052 105.54 10.7859V31.7373H100.338L100.29 10.9768C100.29 7.82695 101.324 5.21796 103.392 3.14987C105.492 1.04996 108.005 0 110.933 0C114.146 0 116.771 1.24086 118.807 3.72257C120.844 1.24086 123.468 0 126.682 0Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let H=X,U=X*33/59,M=X*0.2;return a("div",{className:U0("inline-flex items-center",G),style:{gap:`${M}px`},"aria-label":"Rizom logo",children:[a("svg",{height:H,viewBox:"0 0 60 59",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:a("g",{id:"Group",children:[a("path",{id:"Vector",d:"M29.8235 22.1142C31.7219 22.1142 33.5065 22.8336 34.8489 24.1412C36.1913 25.4481 36.9309 27.1856 36.9309 29.0338C36.9309 30.882 36.192 32.6195 34.8489 33.9265C33.5065 35.2334 31.7219 35.9535 29.8235 35.9535C27.9251 35.9535 26.1405 35.234 24.7981 33.9265C23.4557 32.6189 22.7167 30.882 22.7167 29.0338C22.7167 27.1856 23.4557 25.4481 24.7981 24.1412C26.1405 22.8342 27.9251 22.1142 29.8235 22.1142ZM29.8235 17.1881C23.104 17.1881 17.6562 22.4918 17.6562 29.0338C17.6562 35.5758 23.104 40.8796 29.8235 40.8796C36.543 40.8796 41.9907 35.5758 41.9907 29.0338C41.9907 22.4918 36.543 17.1881 29.8235 17.1881Z",fill:Y},void 0,!1,void 0,this),a("g",{id:"Group_2",children:[a("path",{id:"Vector_2",d:"M13.2469 29.0338C13.2469 33.2709 14.9323 37.1315 17.6846 40.0136C11.8265 39.6006 7.20517 34.8424 7.20517 29.0338C7.20517 23.2253 11.8265 18.4671 17.6846 18.0541C14.9323 20.9362 13.2469 24.798 13.2469 29.0338Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_3",d:"M52.4385 29.0338C52.4385 34.8424 47.8172 39.6006 41.9591 40.0136C44.7114 37.1315 46.3967 33.2709 46.3967 29.0338C46.3967 24.7968 44.7114 20.9362 41.9591 18.0541C47.8172 18.4671 52.4385 23.2253 52.4385 29.0338Z",fill:Y},void 0,!1,void 0,this),a("g",{id:"Group_3",children:[a("path",{id:"Vector_4",d:"M59.7265 29.0338C59.7265 32.172 57.6563 34.84 54.7735 35.8142C56.0553 31.4628 56.056 26.6042 54.7735 22.2535C57.6563 23.2277 59.7265 25.8957 59.7265 29.0338Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_5",d:"M3.97003 30.5734C4.08122 32.3778 4.3873 34.1312 4.86955 35.8139C-1.62448 33.824 -1.62136 24.2431 4.86955 22.2544C4.17929 24.8932 3.65582 27.8106 3.97003 30.5734Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a("path",{id:"Vector_6",d:"M41.0996 40.8504C40.6754 46.5537 35.788 51.0529 29.8218 51.0529C23.8557 51.0529 18.9683 46.5537 18.5441 40.8504C21.5044 43.5299 25.471 45.1708 29.8218 45.1708C34.1726 45.1708 38.1393 43.5299 41.0996 40.8504Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_7",d:"M41.0996 17.2173C38.1393 14.5377 34.1739 12.8969 29.8218 12.8969C25.4698 12.8969 21.5044 14.5377 18.5441 17.2173C18.9683 11.514 23.8557 7.01479 29.8218 7.01479C35.788 7.01479 40.6754 11.514 41.0996 17.2173Z",fill:Y},void 0,!1,void 0,this),a("g",{id:"Group_4",children:[a("path",{id:"Vector_8",d:"M36.7862 53.3262C34.7417 59.6493 24.9007 59.6462 22.8574 53.3262C27.3257 54.5742 32.318 54.5742 36.7862 53.3262Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_9",d:"M36.7862 4.74088C32.318 3.49294 27.3257 3.49294 22.8574 4.74088C24.902 -1.58155 34.743 -1.57851 36.7862 4.74088Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),a("svg",{height:U,viewBox:"0 0 138 33",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:a("g",{id:"RIZOM",children:[a("path",{d:"M5.24978 24.3876V31.7373H0V0.715879H10.0223C12.4086 0.715879 14.2858 1.43176 15.6539 2.86352C17.0538 4.26346 17.7538 6.01339 17.7538 8.1133C17.7538 9.99049 16.9902 11.7086 15.463 13.2676C17.7538 13.7767 19.5992 15.0494 20.9991 17.0857C22.3991 19.1219 23.099 21.54 23.099 24.3399V31.7373H17.8493V24.8172C17.8493 22.5263 17.2606 20.7287 16.0834 19.4242C14.938 18.1197 13.4108 17.4675 11.5018 17.4675C9.72005 17.4675 8.22466 18.0879 7.01562 19.3287C5.83839 20.5696 5.24978 22.2559 5.24978 24.3876ZM9.11553 5.82249H5.24978V14.7948C5.4725 14.5721 5.72704 14.3494 6.01339 14.1267C6.29974 13.904 6.602 13.6972 6.92017 13.5063C7.27015 13.3154 7.55651 13.1563 7.77922 13.029C8.03376 12.8699 8.36783 12.6949 8.78145 12.504C9.19507 12.2813 9.49733 12.1222 9.68824 12.0268C11.5972 11.0086 12.5518 9.86323 12.5518 8.59055C12.5518 7.7315 12.2495 7.06334 11.645 6.58609C11.0405 6.07702 10.1973 5.82249 9.11553 5.82249Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M33.3536 0.715879V31.7373H28.1039V0.715879H33.3536Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M61.3617 0.715879L46.71 26.5353H61.5049V31.7373H37.6422L52.3416 5.91794H39.3603V0.715879H61.3617Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M79.0133 32.4055C74.5908 32.4055 70.8205 30.8305 67.7024 27.6807C64.6162 24.5308 63.0731 20.6969 63.0731 16.1789C63.0731 11.7245 64.6162 7.9224 67.7024 4.77253C70.8205 1.59084 74.5908 0 79.0133 0C83.4359 0 87.2062 1.59084 90.3242 4.77253C93.4741 7.9224 95.049 11.7245 95.049 16.1789C95.049 20.6969 93.49 24.5308 90.3719 27.6807C87.2539 30.8305 83.4677 32.4055 79.0133 32.4055ZM79.0133 27.0125C81.9723 27.0125 84.4699 25.9626 86.5062 23.8626C88.5743 21.7627 89.6083 19.2015 89.6083 16.1789C89.6083 13.1881 88.5743 10.6586 86.5062 8.59055C84.4699 6.49064 81.9723 5.44068 79.0133 5.44068C76.0862 5.44068 73.6045 6.49064 71.5682 8.59055C69.5319 10.6586 68.5138 13.1881 68.5138 16.1789C68.5138 19.2015 69.5319 21.7627 71.5682 23.8626C73.6045 25.9626 76.0862 27.0125 79.0133 27.0125Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M126.682 0C129.545 0 132.011 1.04996 134.079 3.14987C136.147 5.21796 137.182 7.82695 137.182 10.9768V31.6896H131.932V10.7859C131.932 9.29052 131.423 8.01785 130.405 6.96789C129.386 5.91794 128.146 5.39296 126.682 5.39296C125.25 5.39296 124.025 5.90203 123.007 6.92017C121.989 7.93831 121.48 9.14735 121.48 10.5473V31.7373H116.182L116.23 10.5473C116.23 9.17917 115.705 7.98603 114.655 6.96789C113.605 5.91794 112.364 5.39296 110.933 5.39296C109.437 5.39296 108.165 5.91794 107.115 6.96789C106.065 8.01785 105.54 9.29052 105.54 10.7859V31.7373H100.338L100.29 10.9768C100.29 7.82695 101.324 5.21796 103.392 3.14987C105.492 1.04996 108.005 0 110.933 0C114.146 0 116.771 1.24086 118.807 3.72257C120.844 1.24086 123.468 0 126.682 0Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}import{jsxDEV as u0}from"preact/jsx-dev-runtime";function NR({children:$,variant:X}){return u0("div",{className:X==="cta"?"font-mono text-[11px] font-medium uppercase tracking-[0.2em] text-white/70 mb-5":"font-mono text-[11px] font-medium uppercase tracking-[0.2em] text-accent/80 mb-5",children:$},void 0,!1,void 0,this)}function WY({primaryNav:$,secondaryNav:X,copyright:G,socialLinks:Y,showThemeToggle:J=!1,variant:W="default",title:H,tagline:U,children:M}){let F=W==="cta"?"text-white/70 hover:text-accent text-sm":"text-theme-muted hover:text-brand text-sm",Q=W==="cta"?"w-4 h-4 text-white opacity-40 hover:opacity-100 hover:text-accent":"w-4 h-4 text-theme-light hover:text-brand hover:opacity-100",q=X.length>0,R=Y&&Y.length>0,O=Boolean(H),_=Array.isArray(M)?M.length>0:Boolean(M);return u0("div",{children:[u0("div",{className:"flex flex-col gap-10 sm:flex-row sm:items-start sm:gap-12",children:[O&&u0("div",{className:"sm:max-w-[18rem] sm:flex-1",children:[u0("a",{href:"/",className:"text-logo inline-block mb-2",children:u0(e5,{title:H,className:"text-[1.25rem]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U&&u0("p",{className:`text-[0.85rem] leading-[1.55] ${W==="cta"?"text-white/60":"text-theme-muted"} max-w-[30ch]`,children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u0("div",{className:"grid grid-cols-2 sm:flex sm:gap-12",children:[$.length>0&&u0("div",{children:[u0(NR,{variant:W,children:"Navigate"},void 0,!1,void 0,this),u0(j7,{items:$,orientation:"vertical",linkClassName:F},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&u0("div",{children:[u0(NR,{variant:W,children:"More"},void 0,!1,void 0,this),u0(j7,{items:X,orientation:"vertical",linkClassName:F},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_&&u0("div",{className:"sm:ml-auto sm:max-w-[20rem]",children:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u0("div",{className:"mt-14 pt-6 border-t border-rule flex flex-row flex-wrap justify-between items-center gap-4",children:[G&&u0("p",{className:"font-mono text-[0.7rem] uppercase tracking-[0.16em] text-theme-light",children:G},void 0,!1,void 0,this),u0("div",{className:"flex items-center gap-5",children:[R&&u0(XY,{links:Y,iconClassName:Q},void 0,!1,void 0,this),J&&u0(F6,{variant:"footer",size:"sm"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}import{jsxDEV as h0}from"preact/jsx-dev-runtime";function V8({title:$,logo:X,titleClassName:G,wordmark:Y,navigation:J,cta:W,showThemeToggle:H=!1,themeToggleClassName:U}){return h0("header",{className:"sticky top-0 z-50 py-5 border-b border-rule bg-header",children:h0("div",{className:"px-6 md:px-12",children:[h0("div",{className:"max-w-layout mx-auto flex flex-row justify-between items-center gap-8",children:[h0("a",{href:"/",className:"text-logo hover:opacity-80 transition-opacity",children:Y?Y:X?h0(e5,{height:36},void 0,!1,void 0,this):G?h0("span",{className:G,children:$},void 0,!1,void 0,this):h0(e5,{title:$,height:36},void 0,!1,void 0,this)},void 0,!1,void 0,this),h0("nav",{className:"hidden md:flex gap-7","aria-label":"Main navigation",children:J.map((F)=>h0("a",{href:F.href,className:"nav-link",children:F.label},F.href,!1,void 0,this))},void 0,!1,void 0,this),h0("div",{className:"hidden md:flex items-center gap-4",children:[W&&h0(e1,{href:W.buttonLink,variant:"accent",size:"sm",external:!0,className:"whitespace-nowrap",children:W.buttonText},void 0,!1,void 0,this),H&&h0(F6,{size:"md",...U?{className:U}:{}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h0(E7,{variant:"ghost",ssrOnClick:"toggleMobileMenu()",type:"button",className:U0("md:hidden p-2 h-auto rounded-[10px]","text-theme-muted border border-theme bg-theme-subtle","hover:text-accent hover:border-brand/40"),"aria-label":"Toggle navigation menu","aria-expanded":"false","aria-controls":"mobile-menu",id:"mobile-menu-button",children:h0("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:[h0("path",{className:"menu-icon",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"},void 0,!1,void 0,this),h0("path",{className:"close-icon hidden",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h0("nav",{id:"mobile-menu","aria-label":"Mobile navigation",className:"md:hidden overflow-hidden transition-all duration-300 ease-in-out max-h-0 opacity-0",children:h0("div",{className:"flex flex-col gap-3 mt-4 pb-2 pt-4 border-t border-theme",children:[J.map((F)=>h0("a",{href:F.href,onclick:"closeMobileMenu()",className:"nav-link",children:F.label},F.href,!1,void 0,this)),W&&h0(e1,{href:W.buttonLink,variant:"accent",size:"sm",external:!0,className:"mt-2",children:W.buttonText},void 0,!1,void 0,this),H&&h0("div",{className:"pt-2 mt-2 border-t border-theme",children:h0(F6,{size:"sm",...U?{className:U}:{}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as Mj}from"preact/jsx-dev-runtime";var HY=({html:$,className:X})=>{return Mj("article",{className:U0(`prose prose-lg max-w-none
742
+ `}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as u1}from"preact/jsx-dev-runtime";var Uj={github:($)=>u1("svg",{className:$,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),instagram:($)=>u1("svg",{className:$,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),linkedin:($)=>u1("svg",{className:$,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),email:($)=>u1("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),website:($)=>u1("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:u1("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};function XY({links:$,className:X,iconClassName:G="w-5 h-5"}){if($.length===0)return null;return u1("div",{className:U0("flex gap-4 items-center",X),children:$.map((Y,J)=>{let W=Uj[Y.platform],H=`${Y.platform.charAt(0).toUpperCase()}${Y.platform.slice(1)}`;return u1("a",{href:Y.url,target:"_blank",rel:"noopener noreferrer","aria-label":Y.label??H,className:"inline-block transition-opacity hover:opacity-70",children:W(G)},`${Y.platform}-${J}`,!1,void 0,this)})},void 0,!1,void 0,this)}import{jsxDEV as x1}from"preact/jsx-dev-runtime";function GY({cta:$,variant:X="centered",socialLinks:G}){if(X==="editorial")return x1("section",{className:"cta-bg-pattern py-28 md:py-32 px-6 md:px-12",children:x1("div",{className:"max-w-5xl mx-auto",children:[x1("span",{className:"inline-flex items-center gap-[0.6rem] font-mono text-[0.7rem] font-medium uppercase tracking-[0.22em] text-accent mb-6 before:content-[''] before:w-[18px] before:h-px before:bg-accent",children:"Get in touch"},void 0,!1,void 0,this),x1("h2",{className:"font-heading font-normal text-heading leading-[1.05] tracking-[-0.02em] text-[clamp(2.25rem,4.5vw,3.5rem)] max-w-[18ch] mb-10 [font-variation-settings:'opsz'_96,'SOFT'_60]",children:$.heading},void 0,!1,void 0,this),x1("div",{className:"flex flex-wrap items-center gap-7",children:[x1("a",{href:$.buttonLink,className:"inline-flex items-center gap-2 font-mono text-[0.78rem] font-medium uppercase tracking-[0.14em] bg-accent text-theme-inverse px-6 py-[0.95rem] rounded-xl transition-[background,transform] duration-150 hover:bg-[var(--color-text)] hover:-translate-y-px",children:[$.buttonText,x1("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G&&G.length>0&&G.map((Y,J)=>x1("a",{href:Y.url,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-[0.72rem] font-medium uppercase tracking-[0.16em] text-theme-muted hover:text-accent transition-colors relative pb-[3px] before:content-[''] before:absolute before:left-0 before:right-full before:bottom-0 before:h-px before:bg-accent before:transition-[right] before:duration-300 hover:before:right-0",children:Y.label??Y.platform},J,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return x1("section",{className:"cta-bg-pattern bg-brand py-16 md:py-24 px-6 md:px-12",children:x1("div",{className:"max-w-4xl mx-auto text-center",children:[x1("h2",{className:"text-2xl md:text-3xl font-bold text-inverse mb-4 font-heading",children:$.heading},void 0,!1,void 0,this),$.subtitle&&x1("p",{className:"text-base md:text-lg text-inverse opacity-80 mb-6 max-w-md mx-auto",children:$.subtitle},void 0,!1,void 0,this),x1(e1,{href:$.buttonLink,variant:"outline-light",size:"lg",children:$.buttonText},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as YY}from"preact/jsx-dev-runtime";var JY=({primaryNavigation:$,secondaryNavigation:X,copyright:G,socialLinks:Y,title:J,tagline:W,children:H})=>{return YY("footer",{className:"footer pt-14 pb-10 bg-footer border-t border-rule",children:YY("div",{className:"container mx-auto px-6 max-w-layout",children:YY(WY,{primaryNav:$,secondaryNav:X,copyright:G??"Powered by Rizom",socialLinks:Y,showThemeToggle:!0,variant:"default",title:J,tagline:W,children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as a}from"preact/jsx-dev-runtime";var Kj=D0("",{variants:{variant:{full:"",icon:"",text:""}},defaultVariants:{variant:"full"}});function e2({variant:$,height:X=32,className:G,color:Y="currentColor",title:J}){if(J)return a("span",{className:U0("font-heading font-medium text-[1.4rem] leading-none tracking-[-0.01em] [font-variation-settings:'opsz'_24,'SOFT'_50]",G),children:J},void 0,!1,void 0,this);let W=$??"full";if(W==="icon")return a("svg",{height:X,viewBox:"0 0 60 59",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:G,"aria-label":"Rizom logo",children:a("g",{id:"Group",children:[a("path",{id:"Vector",d:"M29.8235 22.1142C31.7219 22.1142 33.5065 22.8336 34.8489 24.1412C36.1913 25.4481 36.9309 27.1856 36.9309 29.0338C36.9309 30.882 36.192 32.6195 34.8489 33.9265C33.5065 35.2334 31.7219 35.9535 29.8235 35.9535C27.9251 35.9535 26.1405 35.234 24.7981 33.9265C23.4557 32.6189 22.7167 30.882 22.7167 29.0338C22.7167 27.1856 23.4557 25.4481 24.7981 24.1412C26.1405 22.8342 27.9251 22.1142 29.8235 22.1142ZM29.8235 17.1881C23.104 17.1881 17.6562 22.4918 17.6562 29.0338C17.6562 35.5758 23.104 40.8796 29.8235 40.8796C36.543 40.8796 41.9907 35.5758 41.9907 29.0338C41.9907 22.4918 36.543 17.1881 29.8235 17.1881Z",fill:Y},void 0,!1,void 0,this),a("g",{id:"Group_2",children:[a("path",{id:"Vector_2",d:"M13.2469 29.0338C13.2469 33.2709 14.9323 37.1315 17.6846 40.0136C11.8265 39.6006 7.20517 34.8424 7.20517 29.0338C7.20517 23.2253 11.8265 18.4671 17.6846 18.0541C14.9323 20.9362 13.2469 24.798 13.2469 29.0338Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_3",d:"M52.4385 29.0338C52.4385 34.8424 47.8172 39.6006 41.9591 40.0136C44.7114 37.1315 46.3967 33.2709 46.3967 29.0338C46.3967 24.7968 44.7114 20.9362 41.9591 18.0541C47.8172 18.4671 52.4385 23.2253 52.4385 29.0338Z",fill:Y},void 0,!1,void 0,this),a("g",{id:"Group_3",children:[a("path",{id:"Vector_4",d:"M59.7265 29.0338C59.7265 32.172 57.6563 34.84 54.7735 35.8142C56.0553 31.4628 56.056 26.6042 54.7735 22.2535C57.6563 23.2277 59.7265 25.8957 59.7265 29.0338Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_5",d:"M3.97003 30.5734C4.08122 32.3778 4.3873 34.1312 4.86955 35.8139C-1.62448 33.824 -1.62136 24.2431 4.86955 22.2544C4.17929 24.8932 3.65582 27.8106 3.97003 30.5734Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a("path",{id:"Vector_6",d:"M41.0996 40.8504C40.6754 46.5537 35.788 51.0529 29.8218 51.0529C23.8557 51.0529 18.9683 46.5537 18.5441 40.8504C21.5044 43.5299 25.471 45.1708 29.8218 45.1708C34.1726 45.1708 38.1393 43.5299 41.0996 40.8504Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_7",d:"M41.0996 17.2173C38.1393 14.5377 34.1739 12.8969 29.8218 12.8969C25.4698 12.8969 21.5044 14.5377 18.5441 17.2173C18.9683 11.514 23.8557 7.01479 29.8218 7.01479C35.788 7.01479 40.6754 11.514 41.0996 17.2173Z",fill:Y},void 0,!1,void 0,this),a("g",{id:"Group_4",children:[a("path",{id:"Vector_8",d:"M36.7862 53.3262C34.7417 59.6493 24.9007 59.6462 22.8574 53.3262C27.3257 54.5742 32.318 54.5742 36.7862 53.3262Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_9",d:"M36.7862 4.74088C32.318 3.49294 27.3257 3.49294 22.8574 4.74088C24.902 -1.58155 34.743 -1.57851 36.7862 4.74088Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(W==="text")return a("svg",{height:X,viewBox:"0 0 138 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:G,"aria-label":"Rizom",children:a("g",{id:"RIZOM",children:[a("path",{d:"M5.24978 24.3876V31.7373H0V0.715879H10.0223C12.4086 0.715879 14.2858 1.43176 15.6539 2.86352C17.0538 4.26346 17.7538 6.01339 17.7538 8.1133C17.7538 9.99049 16.9902 11.7086 15.463 13.2676C17.7538 13.7767 19.5992 15.0494 20.9991 17.0857C22.3991 19.1219 23.099 21.54 23.099 24.3399V31.7373H17.8493V24.8172C17.8493 22.5263 17.2606 20.7287 16.0834 19.4242C14.938 18.1197 13.4108 17.4675 11.5018 17.4675C9.72005 17.4675 8.22466 18.0879 7.01562 19.3287C5.83839 20.5696 5.24978 22.2559 5.24978 24.3876ZM9.11553 5.82249H5.24978V14.7948C5.4725 14.5721 5.72704 14.3494 6.01339 14.1267C6.29974 13.904 6.602 13.6972 6.92017 13.5063C7.27015 13.3154 7.55651 13.1563 7.77922 13.029C8.03376 12.8699 8.36783 12.6949 8.78145 12.504C9.19507 12.2813 9.49733 12.1222 9.68824 12.0268C11.5972 11.0086 12.5518 9.86323 12.5518 8.59055C12.5518 7.7315 12.2495 7.06334 11.645 6.58609C11.0405 6.07702 10.1973 5.82249 9.11553 5.82249Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M33.3536 0.715879V31.7373H28.1039V0.715879H33.3536Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M61.3617 0.715879L46.71 26.5353H61.5049V31.7373H37.6422L52.3416 5.91794H39.3603V0.715879H61.3617Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M79.0133 32.4055C74.5908 32.4055 70.8205 30.8305 67.7024 27.6807C64.6162 24.5308 63.0731 20.6969 63.0731 16.1789C63.0731 11.7245 64.6162 7.9224 67.7024 4.77253C70.8205 1.59084 74.5908 0 79.0133 0C83.4359 0 87.2062 1.59084 90.3242 4.77253C93.4741 7.9224 95.049 11.7245 95.049 16.1789C95.049 20.6969 93.49 24.5308 90.3719 27.6807C87.2539 30.8305 83.4677 32.4055 79.0133 32.4055ZM79.0133 27.0125C81.9723 27.0125 84.4699 25.9626 86.5062 23.8626C88.5743 21.7627 89.6083 19.2015 89.6083 16.1789C89.6083 13.1881 88.5743 10.6586 86.5062 8.59055C84.4699 6.49064 81.9723 5.44068 79.0133 5.44068C76.0862 5.44068 73.6045 6.49064 71.5682 8.59055C69.5319 10.6586 68.5138 13.1881 68.5138 16.1789C68.5138 19.2015 69.5319 21.7627 71.5682 23.8626C73.6045 25.9626 76.0862 27.0125 79.0133 27.0125Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M126.682 0C129.545 0 132.011 1.04996 134.079 3.14987C136.147 5.21796 137.182 7.82695 137.182 10.9768V31.6896H131.932V10.7859C131.932 9.29052 131.423 8.01785 130.405 6.96789C129.386 5.91794 128.146 5.39296 126.682 5.39296C125.25 5.39296 124.025 5.90203 123.007 6.92017C121.989 7.93831 121.48 9.14735 121.48 10.5473V31.7373H116.182L116.23 10.5473C116.23 9.17917 115.705 7.98603 114.655 6.96789C113.605 5.91794 112.364 5.39296 110.933 5.39296C109.437 5.39296 108.165 5.91794 107.115 6.96789C106.065 8.01785 105.54 9.29052 105.54 10.7859V31.7373H100.338L100.29 10.9768C100.29 7.82695 101.324 5.21796 103.392 3.14987C105.492 1.04996 108.005 0 110.933 0C114.146 0 116.771 1.24086 118.807 3.72257C120.844 1.24086 123.468 0 126.682 0Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let H=X,U=X*33/59,M=X*0.2;return a("div",{className:U0("inline-flex items-center",G),style:{gap:`${M}px`},"aria-label":"Rizom logo",children:[a("svg",{height:H,viewBox:"0 0 60 59",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:a("g",{id:"Group",children:[a("path",{id:"Vector",d:"M29.8235 22.1142C31.7219 22.1142 33.5065 22.8336 34.8489 24.1412C36.1913 25.4481 36.9309 27.1856 36.9309 29.0338C36.9309 30.882 36.192 32.6195 34.8489 33.9265C33.5065 35.2334 31.7219 35.9535 29.8235 35.9535C27.9251 35.9535 26.1405 35.234 24.7981 33.9265C23.4557 32.6189 22.7167 30.882 22.7167 29.0338C22.7167 27.1856 23.4557 25.4481 24.7981 24.1412C26.1405 22.8342 27.9251 22.1142 29.8235 22.1142ZM29.8235 17.1881C23.104 17.1881 17.6562 22.4918 17.6562 29.0338C17.6562 35.5758 23.104 40.8796 29.8235 40.8796C36.543 40.8796 41.9907 35.5758 41.9907 29.0338C41.9907 22.4918 36.543 17.1881 29.8235 17.1881Z",fill:Y},void 0,!1,void 0,this),a("g",{id:"Group_2",children:[a("path",{id:"Vector_2",d:"M13.2469 29.0338C13.2469 33.2709 14.9323 37.1315 17.6846 40.0136C11.8265 39.6006 7.20517 34.8424 7.20517 29.0338C7.20517 23.2253 11.8265 18.4671 17.6846 18.0541C14.9323 20.9362 13.2469 24.798 13.2469 29.0338Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_3",d:"M52.4385 29.0338C52.4385 34.8424 47.8172 39.6006 41.9591 40.0136C44.7114 37.1315 46.3967 33.2709 46.3967 29.0338C46.3967 24.7968 44.7114 20.9362 41.9591 18.0541C47.8172 18.4671 52.4385 23.2253 52.4385 29.0338Z",fill:Y},void 0,!1,void 0,this),a("g",{id:"Group_3",children:[a("path",{id:"Vector_4",d:"M59.7265 29.0338C59.7265 32.172 57.6563 34.84 54.7735 35.8142C56.0553 31.4628 56.056 26.6042 54.7735 22.2535C57.6563 23.2277 59.7265 25.8957 59.7265 29.0338Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_5",d:"M3.97003 30.5734C4.08122 32.3778 4.3873 34.1312 4.86955 35.8139C-1.62448 33.824 -1.62136 24.2431 4.86955 22.2544C4.17929 24.8932 3.65582 27.8106 3.97003 30.5734Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a("path",{id:"Vector_6",d:"M41.0996 40.8504C40.6754 46.5537 35.788 51.0529 29.8218 51.0529C23.8557 51.0529 18.9683 46.5537 18.5441 40.8504C21.5044 43.5299 25.471 45.1708 29.8218 45.1708C34.1726 45.1708 38.1393 43.5299 41.0996 40.8504Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_7",d:"M41.0996 17.2173C38.1393 14.5377 34.1739 12.8969 29.8218 12.8969C25.4698 12.8969 21.5044 14.5377 18.5441 17.2173C18.9683 11.514 23.8557 7.01479 29.8218 7.01479C35.788 7.01479 40.6754 11.514 41.0996 17.2173Z",fill:Y},void 0,!1,void 0,this),a("g",{id:"Group_4",children:[a("path",{id:"Vector_8",d:"M36.7862 53.3262C34.7417 59.6493 24.9007 59.6462 22.8574 53.3262C27.3257 54.5742 32.318 54.5742 36.7862 53.3262Z",fill:Y},void 0,!1,void 0,this),a("path",{id:"Vector_9",d:"M36.7862 4.74088C32.318 3.49294 27.3257 3.49294 22.8574 4.74088C24.902 -1.58155 34.743 -1.57851 36.7862 4.74088Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),a("svg",{height:U,viewBox:"0 0 138 33",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:a("g",{id:"RIZOM",children:[a("path",{d:"M5.24978 24.3876V31.7373H0V0.715879H10.0223C12.4086 0.715879 14.2858 1.43176 15.6539 2.86352C17.0538 4.26346 17.7538 6.01339 17.7538 8.1133C17.7538 9.99049 16.9902 11.7086 15.463 13.2676C17.7538 13.7767 19.5992 15.0494 20.9991 17.0857C22.3991 19.1219 23.099 21.54 23.099 24.3399V31.7373H17.8493V24.8172C17.8493 22.5263 17.2606 20.7287 16.0834 19.4242C14.938 18.1197 13.4108 17.4675 11.5018 17.4675C9.72005 17.4675 8.22466 18.0879 7.01562 19.3287C5.83839 20.5696 5.24978 22.2559 5.24978 24.3876ZM9.11553 5.82249H5.24978V14.7948C5.4725 14.5721 5.72704 14.3494 6.01339 14.1267C6.29974 13.904 6.602 13.6972 6.92017 13.5063C7.27015 13.3154 7.55651 13.1563 7.77922 13.029C8.03376 12.8699 8.36783 12.6949 8.78145 12.504C9.19507 12.2813 9.49733 12.1222 9.68824 12.0268C11.5972 11.0086 12.5518 9.86323 12.5518 8.59055C12.5518 7.7315 12.2495 7.06334 11.645 6.58609C11.0405 6.07702 10.1973 5.82249 9.11553 5.82249Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M33.3536 0.715879V31.7373H28.1039V0.715879H33.3536Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M61.3617 0.715879L46.71 26.5353H61.5049V31.7373H37.6422L52.3416 5.91794H39.3603V0.715879H61.3617Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M79.0133 32.4055C74.5908 32.4055 70.8205 30.8305 67.7024 27.6807C64.6162 24.5308 63.0731 20.6969 63.0731 16.1789C63.0731 11.7245 64.6162 7.9224 67.7024 4.77253C70.8205 1.59084 74.5908 0 79.0133 0C83.4359 0 87.2062 1.59084 90.3242 4.77253C93.4741 7.9224 95.049 11.7245 95.049 16.1789C95.049 20.6969 93.49 24.5308 90.3719 27.6807C87.2539 30.8305 83.4677 32.4055 79.0133 32.4055ZM79.0133 27.0125C81.9723 27.0125 84.4699 25.9626 86.5062 23.8626C88.5743 21.7627 89.6083 19.2015 89.6083 16.1789C89.6083 13.1881 88.5743 10.6586 86.5062 8.59055C84.4699 6.49064 81.9723 5.44068 79.0133 5.44068C76.0862 5.44068 73.6045 6.49064 71.5682 8.59055C69.5319 10.6586 68.5138 13.1881 68.5138 16.1789C68.5138 19.2015 69.5319 21.7627 71.5682 23.8626C73.6045 25.9626 76.0862 27.0125 79.0133 27.0125Z",fill:Y},void 0,!1,void 0,this),a("path",{d:"M126.682 0C129.545 0 132.011 1.04996 134.079 3.14987C136.147 5.21796 137.182 7.82695 137.182 10.9768V31.6896H131.932V10.7859C131.932 9.29052 131.423 8.01785 130.405 6.96789C129.386 5.91794 128.146 5.39296 126.682 5.39296C125.25 5.39296 124.025 5.90203 123.007 6.92017C121.989 7.93831 121.48 9.14735 121.48 10.5473V31.7373H116.182L116.23 10.5473C116.23 9.17917 115.705 7.98603 114.655 6.96789C113.605 5.91794 112.364 5.39296 110.933 5.39296C109.437 5.39296 108.165 5.91794 107.115 6.96789C106.065 8.01785 105.54 9.29052 105.54 10.7859V31.7373H100.338L100.29 10.9768C100.29 7.82695 101.324 5.21796 103.392 3.14987C105.492 1.04996 108.005 0 110.933 0C114.146 0 116.771 1.24086 118.807 3.72257C120.844 1.24086 123.468 0 126.682 0Z",fill:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}import{jsxDEV as u0}from"preact/jsx-dev-runtime";function NR({children:$,variant:X}){return u0("div",{className:X==="cta"?"font-mono text-[11px] font-medium uppercase tracking-[0.2em] text-white/70 mb-5":"font-mono text-[11px] font-medium uppercase tracking-[0.2em] text-accent/80 mb-5",children:$},void 0,!1,void 0,this)}function WY({primaryNav:$,secondaryNav:X,copyright:G,socialLinks:Y,showThemeToggle:J=!1,variant:W="default",title:H,tagline:U,children:M}){let F=W==="cta"?"text-white/70 hover:text-accent text-sm":"text-theme-muted hover:text-brand text-sm",Q=W==="cta"?"w-4 h-4 text-white opacity-40 hover:opacity-100 hover:text-accent":"w-4 h-4 text-theme-light hover:text-brand hover:opacity-100",q=X.length>0,R=Y&&Y.length>0,O=Boolean(H),_=Array.isArray(M)?M.length>0:Boolean(M);return u0("div",{children:[u0("div",{className:"flex flex-col gap-10 sm:flex-row sm:items-start sm:gap-12",children:[O&&u0("div",{className:"sm:max-w-[18rem] sm:flex-1",children:[u0("a",{href:"/",className:"text-logo inline-block mb-2",children:u0(e2,{title:H,className:"text-[1.25rem]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U&&u0("p",{className:`text-[0.85rem] leading-[1.55] ${W==="cta"?"text-white/60":"text-theme-muted"} max-w-[30ch]`,children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u0("div",{className:"grid grid-cols-2 sm:flex sm:gap-12",children:[$.length>0&&u0("div",{children:[u0(NR,{variant:W,children:"Navigate"},void 0,!1,void 0,this),u0(j7,{items:$,orientation:"vertical",linkClassName:F},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&u0("div",{children:[u0(NR,{variant:W,children:"More"},void 0,!1,void 0,this),u0(j7,{items:X,orientation:"vertical",linkClassName:F},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_&&u0("div",{className:"sm:ml-auto sm:max-w-[20rem]",children:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u0("div",{className:"mt-14 pt-6 border-t border-rule flex flex-row flex-wrap justify-between items-center gap-4",children:[G&&u0("p",{className:"font-mono text-[0.7rem] uppercase tracking-[0.16em] text-theme-light",children:G},void 0,!1,void 0,this),u0("div",{className:"flex items-center gap-5",children:[R&&u0(XY,{links:Y,iconClassName:Q},void 0,!1,void 0,this),J&&u0(F5,{variant:"footer",size:"sm"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}import{jsxDEV as h0}from"preact/jsx-dev-runtime";function V8({title:$,logo:X,titleClassName:G,wordmark:Y,navigation:J,cta:W,showThemeToggle:H=!1,themeToggleClassName:U}){return h0("header",{className:"sticky top-0 z-50 py-5 border-b border-rule bg-header",children:h0("div",{className:"px-6 md:px-12",children:[h0("div",{className:"max-w-layout mx-auto flex flex-row justify-between items-center gap-8",children:[h0("a",{href:"/",className:"text-logo hover:opacity-80 transition-opacity",children:Y?Y:X?h0(e2,{height:36},void 0,!1,void 0,this):G?h0("span",{className:G,children:$},void 0,!1,void 0,this):h0(e2,{title:$,height:36},void 0,!1,void 0,this)},void 0,!1,void 0,this),h0("nav",{className:"hidden md:flex gap-7","aria-label":"Main navigation",children:J.map((F)=>h0("a",{href:F.href,className:"nav-link",children:F.label},F.href,!1,void 0,this))},void 0,!1,void 0,this),h0("div",{className:"hidden md:flex items-center gap-4",children:[W&&h0(e1,{href:W.buttonLink,variant:"accent",size:"sm",external:!0,className:"whitespace-nowrap",children:W.buttonText},void 0,!1,void 0,this),H&&h0(F5,{size:"md",...U?{className:U}:{}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h0(E7,{variant:"ghost",ssrOnClick:"toggleMobileMenu()",type:"button",className:U0("md:hidden p-2 h-auto rounded-[10px]","text-theme-muted border border-theme bg-theme-subtle","hover:text-accent hover:border-brand/40"),"aria-label":"Toggle navigation menu","aria-expanded":"false","aria-controls":"mobile-menu",id:"mobile-menu-button",children:h0("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:[h0("path",{className:"menu-icon",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"},void 0,!1,void 0,this),h0("path",{className:"close-icon hidden",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h0("nav",{id:"mobile-menu","aria-label":"Mobile navigation",className:"md:hidden overflow-hidden transition-all duration-300 ease-in-out max-h-0 opacity-0",children:h0("div",{className:"flex flex-col gap-3 mt-4 pb-2 pt-4 border-t border-theme",children:[J.map((F)=>h0("a",{href:F.href,onclick:"closeMobileMenu()",className:"nav-link",children:F.label},F.href,!1,void 0,this)),W&&h0(e1,{href:W.buttonLink,variant:"accent",size:"sm",external:!0,className:"mt-2",children:W.buttonText},void 0,!1,void 0,this),H&&h0("div",{className:"pt-2 mt-2 border-t border-theme",children:h0(F5,{size:"sm",...U?{className:U}:{}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as Mj}from"preact/jsx-dev-runtime";var HY=({html:$,className:X})=>{return Mj("article",{className:U0(`prose prose-lg max-w-none
743
743
  prose-h1:text-4xl prose-h1:font-bold prose-h1:mb-8 prose-h1:mt-0
744
744
  prose-h2:text-3xl prose-h2:font-semibold prose-h2:mt-16 prose-h2:mb-6 prose-h2:border-b prose-h2:pb-4
745
745
  prose-h3:text-2xl prose-h3:font-semibold prose-h3:mt-10 prose-h3:mb-4
@@ -751,8 +751,8 @@ Please report this to https://github.com/markedjs/marked.`,$){let Y="<p>An error
751
751
  prose-pre:rounded-lg prose-pre:my-6 prose-pre:p-4 prose-pre:overflow-x-auto prose-pre:text-sm
752
752
  prose-blockquote:border-l-2 prose-blockquote:border-brand prose-blockquote:pl-6 prose-blockquote:py-2 prose-blockquote:mt-8 prose-blockquote:mb-2 prose-blockquote:text-lg prose-blockquote:leading-relaxed prose-blockquote:font-light prose-blockquote:not-italic
753
753
  prose-hr:my-12
754
- prose-img:rounded-lg prose-img:shadow-md prose-img:my-8`,X),dangerouslySetInnerHTML:{__html:$}},void 0,!1,void 0,this)};import{jsxDEV as p60}from"preact/jsx-dev-runtime";var Fj=D0("",{variants:{level:{1:"text-4xl font-bold mb-8 mt-0 leading-tight tracking-tight",2:"text-3xl font-semibold mt-16 mb-6 border-b pb-4 leading-snug tracking-tight",3:"text-2xl font-semibold mt-10 mb-4 leading-snug tracking-tight"}},defaultVariants:{level:1}});import{jsxDEV as r60}from"preact/jsx-dev-runtime";var Qj=D0("bg-theme-subtle rounded-lg border border-theme hover:shadow-lg transition-shadow",{variants:{variant:{vertical:"flex flex-col p-6",horizontal:"flex flex-col sm:flex-row items-start gap-4 p-6",compact:"flex flex-col p-4"}},defaultVariants:{variant:"vertical"}});import{jsxDEV as a60}from"preact/jsx-dev-runtime";var qj=D0("object-cover rounded-lg",{variants:{size:{small:"w-full sm:w-32 h-48 sm:h-32 flex-shrink-0",medium:"w-full sm:w-48 h-48",large:"w-full h-48"}},defaultVariants:{size:"medium"}});import{jsxDEV as VR}from"preact/jsx-dev-runtime";var UY=({src:$,alt:X,width:G,height:Y,srcset:J,sizes:W,className:H})=>{return VR("div",{className:U0("w-full overflow-hidden",H),children:VR("img",{src:$,alt:X,width:G,height:Y,...J&&{srcset:J},...W&&{sizes:W},loading:"lazy",decoding:"async",style:{aspectRatio:`${G}/${Y}`},className:"w-full h-auto rounded-lg"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as J50}from"preact/jsx-dev-runtime";import{jsxDEV as K50}from"preact/jsx-dev-runtime";import{jsxDEV as q50}from"preact/jsx-dev-runtime";import{jsxDEV as A50}from"preact/jsx-dev-runtime";import{jsxDEV as z50}from"preact/jsx-dev-runtime";var KY=D0("rounded-full",{variants:{variant:{default:"bg-theme-muted text-theme",muted:"bg-theme text-theme-muted",accent:"bg-accent/10 text-accent"},size:{xs:"text-xs px-2 py-1",sm:"text-sm px-3 py-1",md:"text-sm px-3 py-1 font-medium",lg:"text-sm px-4 py-2 font-medium"}},defaultVariants:{variant:"default",size:"xs"}});import{jsxDEV as C50}from"preact/jsx-dev-runtime";import{jsxDEV as k50}from"preact/jsx-dev-runtime";var Oj=D0("",{variants:{titleSize:{"3xl":"text-3xl","4xl":"text-4xl"}},defaultVariants:{titleSize:"4xl"}});import{jsxDEV as y50}from"preact/jsx-dev-runtime";var Zj=D0("px-2 py-1 rounded-full",{variants:{variant:{default:"bg-theme",muted:"bg-theme-muted"}},defaultVariants:{variant:"default"}});import{jsxDEV as p50}from"preact/jsx-dev-runtime";import{jsxDEV as c50}from"preact/jsx-dev-runtime";import{jsxDEV as s50}from"preact/jsx-dev-runtime";import{jsxDEV as X40}from"preact/jsx-dev-runtime";var Rj=D0("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",{variants:{status:{draft:"bg-status-neutral text-status-neutral",queued:"bg-status-info text-status-info",sent:"bg-status-success text-status-success",failed:"bg-status-danger text-status-danger",published:"bg-status-success text-status-success",pending:"bg-status-warning text-status-warning",captured:"bg-status-info text-status-info",available:"bg-status-success text-status-success","early access":"bg-status-info text-status-info","coming soon":"bg-status-warning text-status-warning",planned:"bg-status-neutral text-status-neutral"}},defaultVariants:{status:"draft"}});import{jsxDEV as $4}from"preact/jsx-dev-runtime";var h7=({url:$,title:X,date:G,description:Y,series:J,featured:W})=>{return $4("li",{className:"block pb-10 border-b border-rule last:border-b-0 last:pb-0 transition-transform duration-200 hover:translate-x-1",children:$4("a",{href:$,className:"group block",children:[J&&$4("span",{className:"block font-mono text-[0.65rem] font-medium uppercase tracking-[0.18em] text-accent mb-3",children:[String(J.index).padStart(3,"0")," \xB7 ",J.name]},void 0,!0,void 0,this),$4("h3",{className:U0("font-heading font-normal text-heading mb-2 leading-[1.15] tracking-[-0.01em] transition-colors group-hover:text-accent",W?"text-[clamp(1.75rem,3.2vw,2.65rem)] leading-[1.05] tracking-[-0.018em] [font-variation-settings:'opsz'_96,'SOFT'_30]":"text-[clamp(1.4rem,2.4vw,2rem)] [font-variation-settings:'opsz'_72,'SOFT'_30]"),children:X},void 0,!1,void 0,this),$4("time",{className:"block font-mono text-[0.7rem] uppercase tracking-[0.14em] text-theme-light mb-4",children:new Date(G).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})},void 0,!1,void 0,this),Y&&$4("p",{className:"text-[0.95rem] leading-[1.6] text-theme-muted max-w-[60ch]",children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as K40,Fragment as M40}from"preact/jsx-dev-runtime";import{jsxDEV as i,Fragment as MY}from"preact/jsx-dev-runtime";var QY="grid grid-cols-1 gap-3 md:grid-cols-[200px_minmax(0,1fr)] md:gap-14",FY=($,X)=>String(Math.max(0,$)).padStart(X,"0"),Aj=($)=>new Date($).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"2-digit"}),zR=($)=>new Date($).toLocaleDateString("en-GB",{month:"short",day:"2-digit"}),X4=($)=>{let X=new Date($).getFullYear();return Number.isFinite(X)?String(X):"Undated"},_R=($,X)=>{if(X===1)return $;return`${$.endsWith("/")?$.slice(0,-1):$}/page/${X}`},Bj=($)=>{let X=$.trim().toLowerCase();if(X.endsWith("ies"))return X.slice(0,-3)+"y";if(X.endsWith("s"))return X.slice(0,-1);return X||"entry"},DR=({series:$})=>{if(!$)return null;return i("span",{className:"inline-block font-mono text-[0.65rem] uppercase tracking-[0.2em] text-accent",children:[i("span",{className:"mr-1 text-theme-light",children:String($.index).padStart(3,"0")},void 0,!1,void 0,this),$.name]},void 0,!0,void 0,this)},Nj=({item:$})=>i("section",{"aria-label":"Latest",className:`${QY} mb-14 border-b border-rule pb-[4.5rem]`,children:[i("div",{className:"flex flex-row items-baseline gap-6 pt-0.5 md:flex-col md:items-start md:gap-0",children:[i("span",{className:"font-heading text-[clamp(3.2rem,7vw,5.4rem)] font-light leading-[0.9] tracking-[-0.03em] text-accent [font-variant-numeric:tabular-nums] [font-variation-settings:'opsz'_144,'SOFT'_30] md:mb-5",children:X4($.date)},void 0,!1,void 0,this),i("div",{className:"flex w-full max-w-[168px] flex-col gap-1.5 border-rule-strong pt-2 font-mono md:border-t md:pt-3",children:[i("span",{className:"text-[0.625rem] uppercase tracking-[0.26em] text-theme-light",children:"Latest"},void 0,!1,void 0,this),i("time",{dateTime:$.date,className:"text-xs tracking-[0.04em] text-theme-muted [font-variant-numeric:tabular-nums]",children:Aj($.date)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),i("div",{className:"min-w-0",children:i("a",{href:$.url,className:"group block text-inherit no-underline",children:[$.series&&i("div",{className:"mb-[22px]",children:i(DR,{series:$.series},void 0,!1,void 0,this)},void 0,!1,void 0,this),i("h2",{className:"mb-[22px] max-w-[15ch] font-heading text-[clamp(2.4rem,5vw,3.75rem)] font-normal leading-[0.98] tracking-[-0.028em] text-heading transition-colors duration-150 [font-variation-settings:'opsz'_144,'SOFT'_30] [text-wrap:balance] group-hover:text-accent",children:$.title},void 0,!1,void 0,this),$.description&&i("p",{className:"max-w-[50ch] font-heading text-[clamp(1.1rem,1.5vw,1.32rem)] font-normal italic leading-[1.45] text-theme-muted [font-variation-settings:'opsz'_24,'SOFT'_70]",children:$.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Vj=({item:$})=>i("li",{className:"group grid grid-cols-1 items-baseline gap-3 border-t border-rule py-[22px] transition-colors duration-150 hover:bg-[rgb(from_var(--color-accent)_r_g_b_/_0.025)] md:grid-cols-[200px_minmax(0,1fr)] md:gap-14",children:i("a",{href:$.url,className:"contents text-inherit no-underline",children:[i("div",{className:"flex flex-row items-baseline gap-3.5 pt-0.5 md:flex-col md:gap-1.5",children:[i("span",{className:"font-heading text-[1.55rem] font-normal leading-none tracking-[-0.018em] text-theme-muted transition-colors duration-150 [font-variant-numeric:tabular-nums] [font-variation-settings:'opsz'_72,'SOFT'_50] group-hover:text-accent",children:zR($.date)},void 0,!1,void 0,this),i("time",{dateTime:$.date,className:"font-mono text-[0.62rem] uppercase tracking-[0.18em] text-theme-light [font-variant-numeric:tabular-nums]",children:X4($.date)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i("div",{className:"min-w-0",children:[$.series&&i("div",{className:"mb-2",children:i(DR,{series:$.series},void 0,!1,void 0,this)},void 0,!1,void 0,this),i("h3",{className:"mb-2 font-heading text-[clamp(1.2rem,1.85vw,1.5rem)] font-medium leading-[1.2] tracking-[-0.016em] text-heading transition-colors duration-150 [font-variation-settings:'opsz'_48,'SOFT'_40] [text-wrap:balance] group-hover:text-accent",children:$.title},void 0,!1,void 0,this),$.description&&i("p",{className:"max-w-[62ch] text-[0.90625rem] leading-[1.55] text-theme-muted",children:$.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),wj=({year:$,count:X,label:G,latestDate:Y})=>i("div",{className:`${QY} relative items-baseline py-3 before:absolute before:left-0 before:right-0 before:top-3.5 before:h-px before:bg-rule-strong md:py-[18px] md:pt-14 md:before:top-6`,children:[i("span",{className:"pt-7 font-heading text-[clamp(2.4rem,5.4vw,3.6rem)] font-light leading-[0.95] tracking-[-0.025em] text-accent [font-variant-numeric:tabular-nums] [font-variation-settings:'opsz'_144,'SOFT'_30] md:pt-0",children:$},void 0,!1,void 0,this),i("span",{className:"font-mono text-[0.68rem] uppercase tracking-[0.22em] text-theme-light [font-variant-numeric:tabular-nums] md:pt-1.5",children:[X," ",G,X===1?"":"s"," \xB7 finished ",zR(Y)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_j=({pagination:$,baseUrl:X})=>{if(!$||$.totalPages<=1)return null;let G=Math.max(2,String($.totalPages).length),Y=$.hasPrevPage??$.currentPage>1,J=$.hasNextPage??$.currentPage<$.totalPages;return i("nav",{"aria-label":"Pagination",className:`${QY} mt-16 border-t border-rule pt-6 font-mono text-[0.68rem] uppercase tracking-[0.2em] text-theme-light [font-variant-numeric:tabular-nums]`,children:[i("span",{children:[FY($.currentPage,G)," /"," ",FY($.totalPages,G)]},void 0,!0,void 0,this),i("span",{className:"flex items-baseline justify-between gap-6",children:[Y?i("a",{href:_R(X,$.currentPage-1),className:"text-theme-muted no-underline transition-colors duration-150 hover:text-brand",children:"\u2190 Newer"},void 0,!1,void 0,this):i("span",{"aria-disabled":"true",className:"opacity-30",children:"\u2190 Newer"},void 0,!1,void 0,this),J?i("a",{href:_R(X,$.currentPage+1),className:"text-theme-muted no-underline transition-colors duration-150 hover:text-brand",children:"Older \u2192"},void 0,!1,void 0,this):i("span",{"aria-disabled":"true",className:"opacity-30",children:"Older \u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},w8=({label:$,items:X,pagination:G,baseUrl:Y="",emptyMessage:J})=>{let W=G?.currentPage??1,H=W===1&&X.length>0,U=H&&X[0]?X4(X[0].date):void 0,M=H?X.slice(1):X,F=Bj($);return i("section",{"aria-labelledby":"content-archive-title",children:[i("h1",{id:"content-archive-title",className:"sr-only",children:$},void 0,!1,void 0,this),i("div",{className:"mb-10 flex items-center gap-2.5 font-mono text-[0.7rem] font-medium uppercase tracking-[0.22em] text-accent",children:[i("span",{className:"h-px w-[18px] bg-accent","aria-hidden":"true"},void 0,!1,void 0,this),i("span",{children:$},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.length===0?i("p",{className:"text-theme-muted italic",children:J??`No ${$.toLowerCase()} yet.`},void 0,!1,void 0,this):i(MY,{children:[H&&X[0]&&i(Nj,{item:X[0]},void 0,!1,void 0,this),M.length>0&&i(MY,{children:[i("header",{className:"mb-7 flex items-baseline justify-between gap-6 font-mono text-[0.68rem] uppercase tracking-[0.24em] text-theme-light",children:[i("span",{children:"Archive"},void 0,!1,void 0,this),i("span",{className:"text-theme-muted",children:H?"Older entries":`Page ${FY(W,2)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i("ol",{className:"m-0 list-none p-0",children:M.map((Q,q)=>{let R=X4(Q.date),O=q>0?X4(M[q-1]?.date??""):U,_=O===void 0||R!==O,z=M.filter((D)=>X4(D.date)===R).length;return i(MY,{children:[_&&i(wj,{year:R,count:z,label:F,latestDate:Q.date},void 0,!1,void 0,this),i(Vj,{item:Q},void 0,!1,void 0,this)]},Q.id,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i(_j,{pagination:G,baseUrl:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as G4,Fragment as zj}from"preact/jsx-dev-runtime";var y7=({items:$,viewAllUrl:X,viewAllLabel:G,emptyMessage:Y})=>{if($.length===0)return G4("p",{className:"text-theme-muted italic",children:Y??"Nothing here yet."},void 0,!1,void 0,this);return G4(zj,{children:[G4("ul",{className:"flex flex-col gap-10",children:$.map((J,W)=>G4(h7,{url:J.url,title:J.title,date:J.date,description:J.description,series:J.series,featured:W===0},J.id,!1,void 0,this))},void 0,!1,void 0,this),X&&G4("a",{href:X,className:"mt-10 inline-flex items-center gap-2 font-mono text-[0.7rem] font-medium uppercase tracking-[0.18em] text-accent pb-1 relative before:content-[''] before:absolute before:left-0 before:right-full before:bottom-0 before:h-px before:bg-accent before:transition-[right] before:duration-300 hover:before:right-0",children:[G??"View All",G4("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as _8}from"preact/jsx-dev-runtime";var qY=({title:$,number:X,blurb:G,variant:Y="editorial"})=>{if(Y==="compact")return _8("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-8",children:$},void 0,!1,void 0,this);return _8("header",{children:[X!==void 0&&_8("span",{className:"block font-mono text-[0.7rem] font-medium uppercase tracking-[0.22em] text-accent mb-[0.85rem]",children:X},void 0,!1,void 0,this),_8("h2",{className:"font-heading font-normal text-heading leading-[1.05] tracking-[-0.015em] text-[clamp(1.75rem,2.6vw,2.1rem)] [font-variation-settings:'opsz'_48,'SOFT'_30]",children:$},void 0,!1,void 0,this),G!==void 0&&_8("p",{className:"font-heading italic font-light text-[0.95rem] leading-[1.5] text-theme-light mt-3 max-w-[22ch] [font-variation-settings:'opsz'_18,'SOFT'_50]",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as z8}from"preact/jsx-dev-runtime";var Dj=($)=>`/topics/${$.toLowerCase().replace(/\s+/g,"-")}`,OY=({subjects:$,hrefFor:X=Dj})=>z8("ul",{className:"grid grid-cols-1 sm:grid-cols-2 sm:gap-x-10 max-w-[40rem] border-t border-rule-strong list-none p-0 mt-8",children:$.map((G,Y)=>z8("li",{className:"border-b border-rule",children:z8("a",{href:X(G),className:"flex items-baseline gap-[1.1rem] py-[0.95rem] text-theme transition-[color,padding-left] duration-200 hover:text-accent hover:pl-[0.4rem]",children:[z8("span",{className:"font-mono text-[0.66rem] font-medium tracking-[0.18em] text-theme-light min-w-[1.6rem] transition-colors",children:String(Y+1).padStart(2,"0")},void 0,!1,void 0,this),z8("span",{className:"font-heading italic font-normal text-[1.05rem] tracking-[-0.005em] [font-variation-settings:'opsz'_24,'SOFT'_60]",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},G,!1,void 0,this))},void 0,!1,void 0,this);import{Fragment as ZY}from"preact";import{jsxDEV as D8}from"preact/jsx-dev-runtime";var Pj=/(\*[^*]+\*)/;function f7($,X){let G=$.split(`
755
- `);return D8(ZY,{children:G.map((Y,J)=>D8(ZY,{children:[J>0&&D8("br",{},void 0,!1,void 0,this),Y.split(Pj).map((W,H)=>{if(W.length>=3&&W.startsWith("*")&&W.endsWith("*"))return D8("span",{className:X,children:W.slice(1,-1)},H,!1,void 0,this);return D8(ZY,{children:W},H,!1,void 0,this)})]},J,!0,void 0,this))},void 0,!1,void 0,this)}import{createContext as Lj,h as P40}from"preact";import{useContext as Cj}from"preact/hooks";var PR=Lj(null);function LR(){return Cj(PR)}function s0($){let X=LR();if(X)X.setHeadProps($);return null}import{jsxDEV as Tj}from"preact/jsx-dev-runtime";var o6=({markdown:$,className:X})=>{let G=i6();return Tj(HY,{html:G($),...X&&{className:X}},void 0,!1,void 0,this)};import{jsxDEV as k40}from"preact/jsx-dev-runtime";import{jsxDEV as b40}from"preact/jsx-dev-runtime";import{jsxDEV as p40}from"preact/jsx-dev-runtime";var Ej=D0("newsletter-signup",{variants:{variant:{inline:"",card:"p-6 rounded-lg bg-theme-subtle",section:"py-16 text-center"}},defaultVariants:{variant:"card"}});S();import{useState as l40}from"preact/hooks";import{jsxDEV as o40}from"preact/jsx-dev-runtime";var r40=K.record(K.unknown());S();import{jsxDEV as e40}from"preact/jsx-dev-runtime";var RY=K.object({id:K.string(),type:K.string().optional(),name:K.string().optional(),count:K.number().optional(),priority:K.string().optional(),status:K.string().optional()}),a40=K.object({jobs:K.array(RY).optional(),batches:K.array(RY).optional(),items:K.array(RY).optional()});S();import{jsxDEV as J80}from"preact/jsx-dev-runtime";var G80=K.record(K.unknown());S();import{useState as U80}from"preact/hooks";import{jsxDEV as Q80}from"preact/jsx-dev-runtime";var Ij=K.object({id:K.string(),title:K.string(),type:K.string(),status:K.enum(["draft","queued","published","failed"]),scheduledFor:K.string().optional(),retryInfo:K.string().optional()}),M80=K.object({summary:K.object({draft:K.number(),queued:K.number(),published:K.number(),failed:K.number()}),items:K.array(Ij)});S();import{jsxDEV as A80}from"preact/jsx-dev-runtime";var Z80=K.object({name:K.string(),role:K.string(),purpose:K.string(),values:K.array(K.string())});S();import{jsxDEV as _80}from"preact/jsx-dev-runtime";var V80=K.object({name:K.string(),description:K.string().optional(),links:K.array(K.object({label:K.string(),url:K.string()})).optional()});S();import{jsxDEV as C80}from"preact/jsx-dev-runtime";var P80=K.object({version:K.string(),plugins:K.string(),rendered:K.string(),links:K.array(K.object({label:K.string(),url:K.string()})).optional()});import{jsxDEV as P8,Fragment as fj}from"preact/jsx-dev-runtime";var yj="Essays",AY=({posts:$,pageTitle:X,pageLabel:G,pagination:Y,baseUrl:J="/posts"})=>{let W=$.map((Q)=>({id:Q.id,url:Q.url,title:Q.metadata.title,date:Q.metadata.publishedAt||Q.created,description:Q.frontmatter.excerpt,series:Q.frontmatter.seriesName&&Q.frontmatter.seriesIndex?{name:Q.frontmatter.seriesName,index:Q.frontmatter.seriesIndex}:void 0})),H=G&&G!=="Posts"?G:yj,U=X&&X!=="Posts"?X:H,M=Y?.totalItems??$.length,F=`Browse all ${M} ${M===1?"essay":"essays"}`;return P8(fj,{children:[P8(s0,{title:U,description:F},void 0,!1,void 0,this),P8("div",{className:"blog-list bg-theme",children:P8("div",{className:"container mx-auto max-w-[1100px] px-6 py-16 md:px-12 md:py-24",children:P8(w8,{label:H,items:W,pagination:Y,baseUrl:J},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};S();import{jsxDEV as u,Fragment as cj}from"preact/jsx-dev-runtime";var BY="grid grid-cols-1 gap-7 md:grid-cols-[140px_minmax(0,720px)] md:gap-14",gj=($)=>new Date($).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"2-digit"}),mj=($,X)=>{if(X){let G=X.findIndex((Y)=>Y.id===$.id);if(G>=0)return G+1}return $.frontmatter.seriesIndex},pj=({post:$})=>{let X=[{label:"Home",href:"/"},{label:$.listLabel,href:$.listUrl},...$.frontmatter.seriesName?[{label:$.frontmatter.seriesName,href:$.seriesUrl}]:[],{label:$.frontmatter.title}];return u("nav",{"aria-label":"Breadcrumb",className:"mb-16 text-[13px] text-theme-muted",children:u("ol",{className:"flex flex-wrap gap-1",children:X.map((G,Y)=>{let J=Y===X.length-1;return u("li",{className:"inline-flex items-center gap-1",children:[Y>0&&u("span",{className:"mx-1.5 text-theme-light","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),J||!G.href?u("span",{className:"font-medium text-heading","aria-current":J?"page":void 0,children:G.label},void 0,!1,void 0,this):u("a",{href:G.href,className:"text-inherit no-underline transition-colors duration-150 hover:text-brand",children:G.label},void 0,!1,void 0,this)]},`${G.label}-${Y}`,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this)},uj=({post:$,readingTime:X,seriesPosition:G})=>u("aside",{"aria-label":"Post details",className:"relative flex flex-row flex-wrap gap-6 border-t border-rule-strong pt-3.5 before:absolute before:-top-px before:left-0 before:h-px before:w-14 before:bg-accent md:flex-col md:gap-[18px] md:pt-[18px]",children:[$.frontmatter.publishedAt&&u("div",{className:"flex flex-col gap-1",children:[u("span",{className:"font-mono text-[0.625rem] uppercase tracking-[0.18em] text-theme-light",children:"Published"},void 0,!1,void 0,this),u("time",{dateTime:$.frontmatter.publishedAt,className:"text-sm text-theme [font-variant-numeric:tabular-nums]",children:gj($.frontmatter.publishedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X>0&&u("div",{className:"flex flex-col gap-1",children:[u("span",{className:"font-mono text-[0.625rem] uppercase tracking-[0.18em] text-theme-light",children:"Reading"},void 0,!1,void 0,this),u("span",{className:"text-sm text-theme [font-variant-numeric:tabular-nums]",children:[X," min"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$.frontmatter.seriesName&&u("div",{className:"flex flex-col gap-1",children:[u("span",{className:"font-mono text-[0.625rem] uppercase tracking-[0.18em] text-theme-light",children:"Series"},void 0,!1,void 0,this),u("span",{className:"text-sm text-theme [font-variant-numeric:tabular-nums]",children:[G&&u("span",{className:"mr-1.5 font-mono text-[0.6875rem] text-theme-light",children:String(G).padStart(3,"0")},void 0,!1,void 0,this),$.seriesUrl?u("a",{href:$.seriesUrl,className:"border-b border-transparent text-inherit no-underline transition-colors duration-150 hover:border-brand hover:text-brand",children:$.frontmatter.seriesName},void 0,!1,void 0,this):$.frontmatter.seriesName]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),dj=({currentPost:$,seriesPosts:X,seriesPosition:G})=>{if(!$.frontmatter.seriesName||!X?.length)return null;return u("section",{className:"border-t border-rule pt-6","aria-label":"Series",children:[u("header",{className:"mb-[18px] flex items-baseline justify-between gap-6",children:[u("span",{className:"font-mono text-[0.6875rem] uppercase tracking-[0.18em] text-theme-light",children:"Series"},void 0,!1,void 0,this),u("span",{className:"font-heading text-[15px] font-normal italic text-theme-muted [font-variation-settings:'opsz'_24,'SOFT'_60]",children:[$.frontmatter.seriesName,G?` \xB7 Part ${G} of ${X.length}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),u("ol",{className:"m-0 list-none p-0",children:X.map((Y,J)=>{let W=Y.id===$.id;return u("li",{className:"grid grid-cols-[36px_minmax(0,1fr)] items-baseline gap-3.5 py-2",children:W?u("span",{className:"contents","aria-current":"page",children:[u("span",{className:"pt-0.5 font-mono text-[0.6875rem] text-accent [font-variant-numeric:tabular-nums]",children:[J+1,"."]},void 0,!0,void 0,this),u("span",{className:"text-[15.5px] leading-[1.4] text-theme",children:Y.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this):u("a",{href:Y.url,className:"contents text-theme-muted no-underline transition-colors duration-150 hover:text-theme",children:[u("span",{className:"pt-0.5 font-mono text-[0.6875rem] text-theme-light [font-variant-numeric:tabular-nums]",children:[J+1,"."]},void 0,!0,void 0,this),u("span",{className:"text-[15.5px] leading-[1.4]",children:Y.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},Y.id,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},lj=({prevPost:$,nextPost:X})=>{if(!$&&!X)return null;return u("nav",{className:"mt-14 grid grid-cols-1 gap-5 border-t border-rule pt-6 md:grid-cols-2 md:gap-9","aria-label":"Adjacent posts",children:[$?u("a",{href:$.url,className:"block text-inherit no-underline group",children:[u("span",{className:"mb-2 block font-mono text-[0.65625rem] uppercase tracking-[0.18em] text-theme-light",children:"\u2190 Previous"},void 0,!1,void 0,this),u("span",{className:"block font-heading text-[1.15rem] font-medium leading-[1.3] tracking-[-0.014em] text-heading transition-colors duration-150 [font-variation-settings:'opsz'_36,'SOFT'_40] group-hover:text-accent",children:$.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this):u("span",{"aria-hidden":"true"},void 0,!1,void 0,this),X&&u("a",{href:X.url,className:"block text-inherit no-underline group md:text-right",children:[u("span",{className:"mb-2 block font-mono text-[0.65625rem] uppercase tracking-[0.18em] text-theme-light",children:"Next \u2192"},void 0,!1,void 0,this),u("span",{className:"block font-heading text-[1.15rem] font-medium leading-[1.3] tracking-[-0.014em] text-heading transition-colors duration-150 [font-variation-settings:'opsz'_36,'SOFT'_40] group-hover:text-accent",children:X.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},L8=({post:$,prevPost:X,nextPost:G,seriesPosts:Y})=>{let J=tX($.body),W=mj($,Y);return u(cj,{children:[u(s0,{title:$.frontmatter.title,description:$.frontmatter.excerpt,...$.coverImageUrl&&{ogImage:$.coverImageUrl},ogType:"article"},void 0,!1,void 0,this),u("article",{className:"blog-post-section bg-theme",children:u("div",{className:"mx-auto max-w-[1100px] px-5 py-16 md:px-14 md:pb-24",children:[u(pj,{post:$},void 0,!1,void 0,this),u("header",{className:`${BY} mb-14`,children:[u(uj,{post:$,readingTime:J,seriesPosition:W},void 0,!1,void 0,this),u("div",{className:"pt-0 md:pt-3",children:u("h1",{className:"font-heading text-[clamp(2.4rem,5.4vw,4rem)] font-normal leading-[0.98] tracking-[-0.028em] text-heading [font-variation-settings:'opsz'_144,'SOFT'_30] [text-wrap:balance]",children:$.frontmatter.title},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.coverImageUrl&&$.coverImageWidth&&$.coverImageHeight&&u(UY,{src:$.coverImageUrl,alt:$.frontmatter.title,width:$.coverImageWidth,height:$.coverImageHeight,srcset:$.coverImageSrcset,sizes:$.coverImageSizes,className:"mb-16 rounded-[14px]"},void 0,!1,void 0,this),u("div",{className:BY,children:[u("div",{"aria-hidden":"true"},void 0,!1,void 0,this),u(o6,{markdown:$.body,className:"max-w-none font-sans text-theme prose-p:text-[18px] prose-p:leading-[1.72] prose-p:text-theme prose-p:[text-wrap:pretty] prose-h2:border-0 prose-h2:pb-0 prose-h2:font-heading prose-h2:text-[clamp(1.5rem,2.6vw,1.9rem)] prose-h2:font-semibold prose-h2:leading-[1.15] prose-h2:tracking-[-0.022em] prose-h2:text-heading prose-h2:[font-variation-settings:'opsz'_72,'SOFT'_40] prose-em:text-accent prose-strong:text-heading prose-a:text-brand prose-a:decoration-[1px] prose-a:underline-offset-[0.22em] prose-code:bg-theme-muted prose-code:text-theme prose-pre:bg-theme-subtle prose-pre:text-theme prose-blockquote:border-rule-strong prose-blockquote:text-theme-muted prose-blockquote:italic prose-li:marker:text-theme-light prose-img:rounded-[14px]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u("div",{className:`${BY} mt-[72px]`,children:[u("div",{"aria-hidden":"true"},void 0,!1,void 0,this),u("div",{children:[u(dj,{currentPost:$,seriesPosts:Y,seriesPosition:W},void 0,!1,void 0,this),u(lj,{prevPost:X,nextPost:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};S();O0();var rj=K.object({title:K.string().trim().min(1).max(80).describe("A short, punchy title (2-4 words) that's memorable and evocative. Must not be empty."),content:K.string().trim().min(1).describe("Blog post content in markdown format, relatively concise (30-80 lines), with flowing narrative style. Must not be empty."),excerpt:K.string().trim().min(1).describe("A concise 1-2 sentence summary that captures the essence of the post. Must not be empty.")}),CR=T0({name:"blog:generation",description:"Template for AI to generate complete blog posts from prompts",schema:rj,dataSourceId:"shell:ai-content",requiredPermission:"public",useKnowledgeContext:!0,basePrompt:`You are writing blog posts in a distinctive voice that blends philosophy, technology, and culture.
754
+ prose-img:rounded-lg prose-img:shadow-md prose-img:my-8`,X),dangerouslySetInnerHTML:{__html:$}},void 0,!1,void 0,this)};import{jsxDEV as p50}from"preact/jsx-dev-runtime";var Fj=D0("",{variants:{level:{1:"text-4xl font-bold mb-8 mt-0 leading-tight tracking-tight",2:"text-3xl font-semibold mt-16 mb-6 border-b pb-4 leading-snug tracking-tight",3:"text-2xl font-semibold mt-10 mb-4 leading-snug tracking-tight"}},defaultVariants:{level:1}});import{jsxDEV as r50}from"preact/jsx-dev-runtime";var Qj=D0("bg-theme-subtle rounded-lg border border-theme hover:shadow-lg transition-shadow",{variants:{variant:{vertical:"flex flex-col p-6",horizontal:"flex flex-col sm:flex-row items-start gap-4 p-6",compact:"flex flex-col p-4"}},defaultVariants:{variant:"vertical"}});import{jsxDEV as a50}from"preact/jsx-dev-runtime";var qj=D0("object-cover rounded-lg",{variants:{size:{small:"w-full sm:w-32 h-48 sm:h-32 flex-shrink-0",medium:"w-full sm:w-48 h-48",large:"w-full h-48"}},defaultVariants:{size:"medium"}});import{jsxDEV as VR}from"preact/jsx-dev-runtime";var UY=({src:$,alt:X,width:G,height:Y,srcset:J,sizes:W,className:H})=>{return VR("div",{className:U0("w-full overflow-hidden",H),children:VR("img",{src:$,alt:X,width:G,height:Y,...J&&{srcset:J},...W&&{sizes:W},loading:"lazy",decoding:"async",style:{aspectRatio:`${G}/${Y}`},className:"w-full h-auto rounded-lg"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as J20}from"preact/jsx-dev-runtime";import{jsxDEV as K20}from"preact/jsx-dev-runtime";import{jsxDEV as q20}from"preact/jsx-dev-runtime";import{jsxDEV as A20}from"preact/jsx-dev-runtime";import{jsxDEV as z20}from"preact/jsx-dev-runtime";var KY=D0("rounded-full",{variants:{variant:{default:"bg-theme-muted text-theme",muted:"bg-theme text-theme-muted",accent:"bg-accent/10 text-accent"},size:{xs:"text-xs px-2 py-1",sm:"text-sm px-3 py-1",md:"text-sm px-3 py-1 font-medium",lg:"text-sm px-4 py-2 font-medium"}},defaultVariants:{variant:"default",size:"xs"}});import{jsxDEV as C20}from"preact/jsx-dev-runtime";import{jsxDEV as k20}from"preact/jsx-dev-runtime";var Oj=D0("",{variants:{titleSize:{"3xl":"text-3xl","4xl":"text-4xl"}},defaultVariants:{titleSize:"4xl"}});import{jsxDEV as y20}from"preact/jsx-dev-runtime";var Zj=D0("px-2 py-1 rounded-full",{variants:{variant:{default:"bg-theme",muted:"bg-theme-muted"}},defaultVariants:{variant:"default"}});import{jsxDEV as p20}from"preact/jsx-dev-runtime";import{jsxDEV as c20}from"preact/jsx-dev-runtime";import{jsxDEV as s20}from"preact/jsx-dev-runtime";import{jsxDEV as X40}from"preact/jsx-dev-runtime";var Rj=D0("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",{variants:{status:{draft:"bg-status-neutral text-status-neutral",queued:"bg-status-info text-status-info",sent:"bg-status-success text-status-success",failed:"bg-status-danger text-status-danger",published:"bg-status-success text-status-success",pending:"bg-status-warning text-status-warning",captured:"bg-status-info text-status-info",available:"bg-status-success text-status-success","early access":"bg-status-info text-status-info","coming soon":"bg-status-warning text-status-warning",planned:"bg-status-neutral text-status-neutral"}},defaultVariants:{status:"draft"}});import{jsxDEV as $4}from"preact/jsx-dev-runtime";var h7=({url:$,title:X,date:G,description:Y,series:J,featured:W})=>{return $4("li",{className:"block pb-10 border-b border-rule last:border-b-0 last:pb-0 transition-transform duration-200 hover:translate-x-1",children:$4("a",{href:$,className:"group block",children:[J&&$4("span",{className:"block font-mono text-[0.65rem] font-medium uppercase tracking-[0.18em] text-accent mb-3",children:[String(J.index).padStart(3,"0")," \xB7 ",J.name]},void 0,!0,void 0,this),$4("h3",{className:U0("font-heading font-normal text-heading mb-2 leading-[1.15] tracking-[-0.01em] transition-colors group-hover:text-accent",W?"text-[clamp(1.75rem,3.2vw,2.65rem)] leading-[1.05] tracking-[-0.018em] [font-variation-settings:'opsz'_96,'SOFT'_30]":"text-[clamp(1.4rem,2.4vw,2rem)] [font-variation-settings:'opsz'_72,'SOFT'_30]"),children:X},void 0,!1,void 0,this),$4("time",{className:"block font-mono text-[0.7rem] uppercase tracking-[0.14em] text-theme-light mb-4",children:new Date(G).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})},void 0,!1,void 0,this),Y&&$4("p",{className:"text-[0.95rem] leading-[1.6] text-theme-muted max-w-[60ch]",children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as K40,Fragment as M40}from"preact/jsx-dev-runtime";import{jsxDEV as i,Fragment as MY}from"preact/jsx-dev-runtime";var QY="grid grid-cols-1 gap-3 md:grid-cols-[200px_minmax(0,1fr)] md:gap-14",FY=($,X)=>String(Math.max(0,$)).padStart(X,"0"),Aj=($)=>new Date($).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"2-digit"}),zR=($)=>new Date($).toLocaleDateString("en-GB",{month:"short",day:"2-digit"}),X4=($)=>{let X=new Date($).getFullYear();return Number.isFinite(X)?String(X):"Undated"},_R=($,X)=>{if(X===1)return $;return`${$.endsWith("/")?$.slice(0,-1):$}/page/${X}`},Bj=($)=>{let X=$.trim().toLowerCase();if(X.endsWith("ies"))return X.slice(0,-3)+"y";if(X.endsWith("s"))return X.slice(0,-1);return X||"entry"},DR=({series:$})=>{if(!$)return null;return i("span",{className:"inline-block font-mono text-[0.65rem] uppercase tracking-[0.2em] text-accent",children:[i("span",{className:"mr-1 text-theme-light",children:String($.index).padStart(3,"0")},void 0,!1,void 0,this),$.name]},void 0,!0,void 0,this)},Nj=({item:$})=>i("section",{"aria-label":"Latest",className:`${QY} mb-14 border-b border-rule pb-[4.5rem]`,children:[i("div",{className:"flex flex-row items-baseline gap-6 pt-0.5 md:flex-col md:items-start md:gap-0",children:[i("span",{className:"font-heading text-[clamp(3.2rem,7vw,5.4rem)] font-light leading-[0.9] tracking-[-0.03em] text-accent [font-variant-numeric:tabular-nums] [font-variation-settings:'opsz'_144,'SOFT'_30] md:mb-5",children:X4($.date)},void 0,!1,void 0,this),i("div",{className:"flex w-full max-w-[168px] flex-col gap-1.5 border-rule-strong pt-2 font-mono md:border-t md:pt-3",children:[i("span",{className:"text-[0.625rem] uppercase tracking-[0.26em] text-theme-light",children:"Latest"},void 0,!1,void 0,this),i("time",{dateTime:$.date,className:"text-xs tracking-[0.04em] text-theme-muted [font-variant-numeric:tabular-nums]",children:Aj($.date)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),i("div",{className:"min-w-0",children:i("a",{href:$.url,className:"group block text-inherit no-underline",children:[$.series&&i("div",{className:"mb-[22px]",children:i(DR,{series:$.series},void 0,!1,void 0,this)},void 0,!1,void 0,this),i("h2",{className:"mb-[22px] max-w-[15ch] font-heading text-[clamp(2.4rem,5vw,3.75rem)] font-normal leading-[0.98] tracking-[-0.028em] text-heading transition-colors duration-150 [font-variation-settings:'opsz'_144,'SOFT'_30] [text-wrap:balance] group-hover:text-accent",children:$.title},void 0,!1,void 0,this),$.description&&i("p",{className:"max-w-[50ch] font-heading text-[clamp(1.1rem,1.5vw,1.32rem)] font-normal italic leading-[1.45] text-theme-muted [font-variation-settings:'opsz'_24,'SOFT'_70]",children:$.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Vj=({item:$})=>i("li",{className:"group grid grid-cols-1 items-baseline gap-3 border-t border-rule py-[22px] transition-colors duration-150 hover:bg-[rgb(from_var(--color-accent)_r_g_b_/_0.025)] md:grid-cols-[200px_minmax(0,1fr)] md:gap-14",children:i("a",{href:$.url,className:"contents text-inherit no-underline",children:[i("div",{className:"flex flex-row items-baseline gap-3.5 pt-0.5 md:flex-col md:gap-1.5",children:[i("span",{className:"font-heading text-[1.55rem] font-normal leading-none tracking-[-0.018em] text-theme-muted transition-colors duration-150 [font-variant-numeric:tabular-nums] [font-variation-settings:'opsz'_72,'SOFT'_50] group-hover:text-accent",children:zR($.date)},void 0,!1,void 0,this),i("time",{dateTime:$.date,className:"font-mono text-[0.62rem] uppercase tracking-[0.18em] text-theme-light [font-variant-numeric:tabular-nums]",children:X4($.date)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i("div",{className:"min-w-0",children:[$.series&&i("div",{className:"mb-2",children:i(DR,{series:$.series},void 0,!1,void 0,this)},void 0,!1,void 0,this),i("h3",{className:"mb-2 font-heading text-[clamp(1.2rem,1.85vw,1.5rem)] font-medium leading-[1.2] tracking-[-0.016em] text-heading transition-colors duration-150 [font-variation-settings:'opsz'_48,'SOFT'_40] [text-wrap:balance] group-hover:text-accent",children:$.title},void 0,!1,void 0,this),$.description&&i("p",{className:"max-w-[62ch] text-[0.90625rem] leading-[1.55] text-theme-muted",children:$.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),wj=({year:$,count:X,label:G,latestDate:Y})=>i("div",{className:`${QY} relative items-baseline py-3 before:absolute before:left-0 before:right-0 before:top-3.5 before:h-px before:bg-rule-strong md:py-[18px] md:pt-14 md:before:top-6`,children:[i("span",{className:"pt-7 font-heading text-[clamp(2.4rem,5.4vw,3.6rem)] font-light leading-[0.95] tracking-[-0.025em] text-accent [font-variant-numeric:tabular-nums] [font-variation-settings:'opsz'_144,'SOFT'_30] md:pt-0",children:$},void 0,!1,void 0,this),i("span",{className:"font-mono text-[0.68rem] uppercase tracking-[0.22em] text-theme-light [font-variant-numeric:tabular-nums] md:pt-1.5",children:[X," ",G,X===1?"":"s"," \xB7 finished ",zR(Y)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_j=({pagination:$,baseUrl:X})=>{if(!$||$.totalPages<=1)return null;let G=Math.max(2,String($.totalPages).length),Y=$.hasPrevPage??$.currentPage>1,J=$.hasNextPage??$.currentPage<$.totalPages;return i("nav",{"aria-label":"Pagination",className:`${QY} mt-16 border-t border-rule pt-6 font-mono text-[0.68rem] uppercase tracking-[0.2em] text-theme-light [font-variant-numeric:tabular-nums]`,children:[i("span",{children:[FY($.currentPage,G)," /"," ",FY($.totalPages,G)]},void 0,!0,void 0,this),i("span",{className:"flex items-baseline justify-between gap-6",children:[Y?i("a",{href:_R(X,$.currentPage-1),className:"text-theme-muted no-underline transition-colors duration-150 hover:text-brand",children:"\u2190 Newer"},void 0,!1,void 0,this):i("span",{"aria-disabled":"true",className:"opacity-30",children:"\u2190 Newer"},void 0,!1,void 0,this),J?i("a",{href:_R(X,$.currentPage+1),className:"text-theme-muted no-underline transition-colors duration-150 hover:text-brand",children:"Older \u2192"},void 0,!1,void 0,this):i("span",{"aria-disabled":"true",className:"opacity-30",children:"Older \u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},w8=({label:$,items:X,pagination:G,baseUrl:Y="",emptyMessage:J})=>{let W=G?.currentPage??1,H=W===1&&X.length>0,U=H&&X[0]?X4(X[0].date):void 0,M=H?X.slice(1):X,F=Bj($);return i("section",{"aria-labelledby":"content-archive-title",children:[i("h1",{id:"content-archive-title",className:"sr-only",children:$},void 0,!1,void 0,this),i("div",{className:"mb-10 flex items-center gap-2.5 font-mono text-[0.7rem] font-medium uppercase tracking-[0.22em] text-accent",children:[i("span",{className:"h-px w-[18px] bg-accent","aria-hidden":"true"},void 0,!1,void 0,this),i("span",{children:$},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.length===0?i("p",{className:"text-theme-muted italic",children:J??`No ${$.toLowerCase()} yet.`},void 0,!1,void 0,this):i(MY,{children:[H&&X[0]&&i(Nj,{item:X[0]},void 0,!1,void 0,this),M.length>0&&i(MY,{children:[i("header",{className:"mb-7 flex items-baseline justify-between gap-6 font-mono text-[0.68rem] uppercase tracking-[0.24em] text-theme-light",children:[i("span",{children:"Archive"},void 0,!1,void 0,this),i("span",{className:"text-theme-muted",children:H?"Older entries":`Page ${FY(W,2)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i("ol",{className:"m-0 list-none p-0",children:M.map((Q,q)=>{let R=X4(Q.date),O=q>0?X4(M[q-1]?.date??""):U,_=O===void 0||R!==O,z=M.filter((D)=>X4(D.date)===R).length;return i(MY,{children:[_&&i(wj,{year:R,count:z,label:F,latestDate:Q.date},void 0,!1,void 0,this),i(Vj,{item:Q},void 0,!1,void 0,this)]},Q.id,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i(_j,{pagination:G,baseUrl:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as G4,Fragment as zj}from"preact/jsx-dev-runtime";var y7=({items:$,viewAllUrl:X,viewAllLabel:G,emptyMessage:Y})=>{if($.length===0)return G4("p",{className:"text-theme-muted italic",children:Y??"Nothing here yet."},void 0,!1,void 0,this);return G4(zj,{children:[G4("ul",{className:"flex flex-col gap-10",children:$.map((J,W)=>G4(h7,{url:J.url,title:J.title,date:J.date,description:J.description,series:J.series,featured:W===0},J.id,!1,void 0,this))},void 0,!1,void 0,this),X&&G4("a",{href:X,className:"mt-10 inline-flex items-center gap-2 font-mono text-[0.7rem] font-medium uppercase tracking-[0.18em] text-accent pb-1 relative before:content-[''] before:absolute before:left-0 before:right-full before:bottom-0 before:h-px before:bg-accent before:transition-[right] before:duration-300 hover:before:right-0",children:[G??"View All",G4("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as _8}from"preact/jsx-dev-runtime";var qY=({title:$,number:X,blurb:G,variant:Y="editorial"})=>{if(Y==="compact")return _8("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-8",children:$},void 0,!1,void 0,this);return _8("header",{children:[X!==void 0&&_8("span",{className:"block font-mono text-[0.7rem] font-medium uppercase tracking-[0.22em] text-accent mb-[0.85rem]",children:X},void 0,!1,void 0,this),_8("h2",{className:"font-heading font-normal text-heading leading-[1.05] tracking-[-0.015em] text-[clamp(1.75rem,2.6vw,2.1rem)] [font-variation-settings:'opsz'_48,'SOFT'_30]",children:$},void 0,!1,void 0,this),G!==void 0&&_8("p",{className:"font-heading italic font-light text-[0.95rem] leading-[1.5] text-theme-light mt-3 max-w-[22ch] [font-variation-settings:'opsz'_18,'SOFT'_50]",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as z8}from"preact/jsx-dev-runtime";var Dj=($)=>`/topics/${$.toLowerCase().replace(/\s+/g,"-")}`,OY=({subjects:$,hrefFor:X=Dj})=>z8("ul",{className:"grid grid-cols-1 sm:grid-cols-2 sm:gap-x-10 max-w-[40rem] border-t border-rule-strong list-none p-0 mt-8",children:$.map((G,Y)=>z8("li",{className:"border-b border-rule",children:z8("a",{href:X(G),className:"flex items-baseline gap-[1.1rem] py-[0.95rem] text-theme transition-[color,padding-left] duration-200 hover:text-accent hover:pl-[0.4rem]",children:[z8("span",{className:"font-mono text-[0.66rem] font-medium tracking-[0.18em] text-theme-light min-w-[1.6rem] transition-colors",children:String(Y+1).padStart(2,"0")},void 0,!1,void 0,this),z8("span",{className:"font-heading italic font-normal text-[1.05rem] tracking-[-0.005em] [font-variation-settings:'opsz'_24,'SOFT'_60]",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},G,!1,void 0,this))},void 0,!1,void 0,this);import{Fragment as ZY}from"preact";import{jsxDEV as D8}from"preact/jsx-dev-runtime";var Pj=/(\*[^*]+\*)/;function f7($,X){let G=$.split(`
755
+ `);return D8(ZY,{children:G.map((Y,J)=>D8(ZY,{children:[J>0&&D8("br",{},void 0,!1,void 0,this),Y.split(Pj).map((W,H)=>{if(W.length>=3&&W.startsWith("*")&&W.endsWith("*"))return D8("span",{className:X,children:W.slice(1,-1)},H,!1,void 0,this);return D8(ZY,{children:W},H,!1,void 0,this)})]},J,!0,void 0,this))},void 0,!1,void 0,this)}import{createContext as Lj,h as P40}from"preact";import{useContext as Cj}from"preact/hooks";var PR=Lj(null);function LR(){return Cj(PR)}function s0($){let X=LR();if(X)X.setHeadProps($);return null}import{jsxDEV as Tj}from"preact/jsx-dev-runtime";var o5=({markdown:$,className:X})=>{let G=i5();return Tj(HY,{html:G($),...X&&{className:X}},void 0,!1,void 0,this)};import{jsxDEV as k40}from"preact/jsx-dev-runtime";import{jsxDEV as b40}from"preact/jsx-dev-runtime";import{jsxDEV as p40}from"preact/jsx-dev-runtime";var Ej=D0("newsletter-signup",{variants:{variant:{inline:"",card:"p-6 rounded-lg bg-theme-subtle",section:"py-16 text-center"}},defaultVariants:{variant:"card"}});S();import{useState as l40}from"preact/hooks";import{jsxDEV as o40}from"preact/jsx-dev-runtime";var r40=K.record(K.unknown());S();import{jsxDEV as e40}from"preact/jsx-dev-runtime";var RY=K.object({id:K.string(),type:K.string().optional(),name:K.string().optional(),count:K.number().optional(),priority:K.string().optional(),status:K.string().optional()}),a40=K.object({jobs:K.array(RY).optional(),batches:K.array(RY).optional(),items:K.array(RY).optional()});S();import{jsxDEV as J80}from"preact/jsx-dev-runtime";var G80=K.record(K.unknown());S();import{useState as U80}from"preact/hooks";import{jsxDEV as Q80}from"preact/jsx-dev-runtime";var Ij=K.object({id:K.string(),title:K.string(),type:K.string(),status:K.enum(["draft","queued","published","failed"]),scheduledFor:K.string().optional(),retryInfo:K.string().optional()}),M80=K.object({summary:K.object({draft:K.number(),queued:K.number(),published:K.number(),failed:K.number()}),items:K.array(Ij)});S();import{jsxDEV as A80}from"preact/jsx-dev-runtime";var Z80=K.object({name:K.string(),role:K.string(),purpose:K.string(),values:K.array(K.string())});S();import{jsxDEV as _80}from"preact/jsx-dev-runtime";var V80=K.object({name:K.string(),description:K.string().optional(),links:K.array(K.object({label:K.string(),url:K.string()})).optional()});S();import{jsxDEV as C80}from"preact/jsx-dev-runtime";var P80=K.object({version:K.string(),plugins:K.string(),rendered:K.string(),links:K.array(K.object({label:K.string(),url:K.string()})).optional()});import{jsxDEV as P8,Fragment as fj}from"preact/jsx-dev-runtime";var yj="Essays",AY=({posts:$,pageTitle:X,pageLabel:G,pagination:Y,baseUrl:J="/posts"})=>{let W=$.map((Q)=>({id:Q.id,url:Q.url,title:Q.metadata.title,date:Q.metadata.publishedAt||Q.created,description:Q.frontmatter.excerpt,series:Q.frontmatter.seriesName&&Q.frontmatter.seriesIndex?{name:Q.frontmatter.seriesName,index:Q.frontmatter.seriesIndex}:void 0})),H=G&&G!=="Posts"?G:yj,U=X&&X!=="Posts"?X:H,M=Y?.totalItems??$.length,F=`Browse all ${M} ${M===1?"essay":"essays"}`;return P8(fj,{children:[P8(s0,{title:U,description:F},void 0,!1,void 0,this),P8("div",{className:"blog-list bg-theme",children:P8("div",{className:"container mx-auto max-w-[1100px] px-6 py-16 md:px-12 md:py-24",children:P8(w8,{label:H,items:W,pagination:Y,baseUrl:J},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};S();import{jsxDEV as u,Fragment as cj}from"preact/jsx-dev-runtime";var BY="grid grid-cols-1 gap-7 md:grid-cols-[140px_minmax(0,720px)] md:gap-14",gj=($)=>new Date($).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"2-digit"}),mj=($,X)=>{if(X){let G=X.findIndex((Y)=>Y.id===$.id);if(G>=0)return G+1}return $.frontmatter.seriesIndex},pj=({post:$})=>{let X=[{label:"Home",href:"/"},{label:$.listLabel,href:$.listUrl},...$.frontmatter.seriesName?[{label:$.frontmatter.seriesName,href:$.seriesUrl}]:[],{label:$.frontmatter.title}];return u("nav",{"aria-label":"Breadcrumb",className:"mb-16 text-[13px] text-theme-muted",children:u("ol",{className:"flex flex-wrap gap-1",children:X.map((G,Y)=>{let J=Y===X.length-1;return u("li",{className:"inline-flex items-center gap-1",children:[Y>0&&u("span",{className:"mx-1.5 text-theme-light","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),J||!G.href?u("span",{className:"font-medium text-heading","aria-current":J?"page":void 0,children:G.label},void 0,!1,void 0,this):u("a",{href:G.href,className:"text-inherit no-underline transition-colors duration-150 hover:text-brand",children:G.label},void 0,!1,void 0,this)]},`${G.label}-${Y}`,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this)},uj=({post:$,readingTime:X,seriesPosition:G})=>u("aside",{"aria-label":"Post details",className:"relative flex flex-row flex-wrap gap-6 border-t border-rule-strong pt-3.5 before:absolute before:-top-px before:left-0 before:h-px before:w-14 before:bg-accent md:flex-col md:gap-[18px] md:pt-[18px]",children:[$.frontmatter.publishedAt&&u("div",{className:"flex flex-col gap-1",children:[u("span",{className:"font-mono text-[0.625rem] uppercase tracking-[0.18em] text-theme-light",children:"Published"},void 0,!1,void 0,this),u("time",{dateTime:$.frontmatter.publishedAt,className:"text-sm text-theme [font-variant-numeric:tabular-nums]",children:gj($.frontmatter.publishedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X>0&&u("div",{className:"flex flex-col gap-1",children:[u("span",{className:"font-mono text-[0.625rem] uppercase tracking-[0.18em] text-theme-light",children:"Reading"},void 0,!1,void 0,this),u("span",{className:"text-sm text-theme [font-variant-numeric:tabular-nums]",children:[X," min"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$.frontmatter.seriesName&&u("div",{className:"flex flex-col gap-1",children:[u("span",{className:"font-mono text-[0.625rem] uppercase tracking-[0.18em] text-theme-light",children:"Series"},void 0,!1,void 0,this),u("span",{className:"text-sm text-theme [font-variant-numeric:tabular-nums]",children:[G&&u("span",{className:"mr-1.5 font-mono text-[0.6875rem] text-theme-light",children:String(G).padStart(3,"0")},void 0,!1,void 0,this),$.seriesUrl?u("a",{href:$.seriesUrl,className:"border-b border-transparent text-inherit no-underline transition-colors duration-150 hover:border-brand hover:text-brand",children:$.frontmatter.seriesName},void 0,!1,void 0,this):$.frontmatter.seriesName]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),dj=({currentPost:$,seriesPosts:X,seriesPosition:G})=>{if(!$.frontmatter.seriesName||!X?.length)return null;return u("section",{className:"border-t border-rule pt-6","aria-label":"Series",children:[u("header",{className:"mb-[18px] flex items-baseline justify-between gap-6",children:[u("span",{className:"font-mono text-[0.6875rem] uppercase tracking-[0.18em] text-theme-light",children:"Series"},void 0,!1,void 0,this),u("span",{className:"font-heading text-[15px] font-normal italic text-theme-muted [font-variation-settings:'opsz'_24,'SOFT'_60]",children:[$.frontmatter.seriesName,G?` \xB7 Part ${G} of ${X.length}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),u("ol",{className:"m-0 list-none p-0",children:X.map((Y,J)=>{let W=Y.id===$.id;return u("li",{className:"grid grid-cols-[36px_minmax(0,1fr)] items-baseline gap-3.5 py-2",children:W?u("span",{className:"contents","aria-current":"page",children:[u("span",{className:"pt-0.5 font-mono text-[0.6875rem] text-accent [font-variant-numeric:tabular-nums]",children:[J+1,"."]},void 0,!0,void 0,this),u("span",{className:"text-[15.5px] leading-[1.4] text-theme",children:Y.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this):u("a",{href:Y.url,className:"contents text-theme-muted no-underline transition-colors duration-150 hover:text-theme",children:[u("span",{className:"pt-0.5 font-mono text-[0.6875rem] text-theme-light [font-variant-numeric:tabular-nums]",children:[J+1,"."]},void 0,!0,void 0,this),u("span",{className:"text-[15.5px] leading-[1.4]",children:Y.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},Y.id,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},lj=({prevPost:$,nextPost:X})=>{if(!$&&!X)return null;return u("nav",{className:"mt-14 grid grid-cols-1 gap-5 border-t border-rule pt-6 md:grid-cols-2 md:gap-9","aria-label":"Adjacent posts",children:[$?u("a",{href:$.url,className:"block text-inherit no-underline group",children:[u("span",{className:"mb-2 block font-mono text-[0.65625rem] uppercase tracking-[0.18em] text-theme-light",children:"\u2190 Previous"},void 0,!1,void 0,this),u("span",{className:"block font-heading text-[1.15rem] font-medium leading-[1.3] tracking-[-0.014em] text-heading transition-colors duration-150 [font-variation-settings:'opsz'_36,'SOFT'_40] group-hover:text-accent",children:$.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this):u("span",{"aria-hidden":"true"},void 0,!1,void 0,this),X&&u("a",{href:X.url,className:"block text-inherit no-underline group md:text-right",children:[u("span",{className:"mb-2 block font-mono text-[0.65625rem] uppercase tracking-[0.18em] text-theme-light",children:"Next \u2192"},void 0,!1,void 0,this),u("span",{className:"block font-heading text-[1.15rem] font-medium leading-[1.3] tracking-[-0.014em] text-heading transition-colors duration-150 [font-variation-settings:'opsz'_36,'SOFT'_40] group-hover:text-accent",children:X.frontmatter.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},L8=({post:$,prevPost:X,nextPost:G,seriesPosts:Y})=>{let J=tX($.body),W=mj($,Y);return u(cj,{children:[u(s0,{title:$.frontmatter.title,description:$.frontmatter.excerpt,...$.coverImageUrl&&{ogImage:$.coverImageUrl},ogType:"article"},void 0,!1,void 0,this),u("article",{className:"blog-post-section bg-theme",children:u("div",{className:"mx-auto max-w-[1100px] px-5 py-16 md:px-14 md:pb-24",children:[u(pj,{post:$},void 0,!1,void 0,this),u("header",{className:`${BY} mb-14`,children:[u(uj,{post:$,readingTime:J,seriesPosition:W},void 0,!1,void 0,this),u("div",{className:"pt-0 md:pt-3",children:u("h1",{className:"font-heading text-[clamp(2.4rem,5.4vw,4rem)] font-normal leading-[0.98] tracking-[-0.028em] text-heading [font-variation-settings:'opsz'_144,'SOFT'_30] [text-wrap:balance]",children:$.frontmatter.title},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.coverImageUrl&&$.coverImageWidth&&$.coverImageHeight&&u(UY,{src:$.coverImageUrl,alt:$.frontmatter.title,width:$.coverImageWidth,height:$.coverImageHeight,srcset:$.coverImageSrcset,sizes:$.coverImageSizes,className:"mb-16 rounded-[14px]"},void 0,!1,void 0,this),u("div",{className:BY,children:[u("div",{"aria-hidden":"true"},void 0,!1,void 0,this),u(o5,{markdown:$.body,className:"max-w-none font-sans text-theme prose-p:text-[18px] prose-p:leading-[1.72] prose-p:text-theme prose-p:[text-wrap:pretty] prose-h2:border-0 prose-h2:pb-0 prose-h2:font-heading prose-h2:text-[clamp(1.5rem,2.6vw,1.9rem)] prose-h2:font-semibold prose-h2:leading-[1.15] prose-h2:tracking-[-0.022em] prose-h2:text-heading prose-h2:[font-variation-settings:'opsz'_72,'SOFT'_40] prose-em:text-accent prose-strong:text-heading prose-a:text-brand prose-a:decoration-[1px] prose-a:underline-offset-[0.22em] prose-code:bg-theme-muted prose-code:text-theme prose-pre:bg-theme-subtle prose-pre:text-theme prose-blockquote:border-rule-strong prose-blockquote:text-theme-muted prose-blockquote:italic prose-li:marker:text-theme-light prose-img:rounded-[14px]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u("div",{className:`${BY} mt-[72px]`,children:[u("div",{"aria-hidden":"true"},void 0,!1,void 0,this),u("div",{children:[u(dj,{currentPost:$,seriesPosts:Y,seriesPosition:W},void 0,!1,void 0,this),u(lj,{prevPost:X,nextPost:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};S();O0();var rj=K.object({title:K.string().trim().min(1).max(80).describe("A short, punchy title (2-4 words) that's memorable and evocative. Must not be empty."),content:K.string().trim().min(1).describe("Blog post content in markdown format, relatively concise (30-80 lines), with flowing narrative style. Must not be empty."),excerpt:K.string().trim().min(1).describe("A concise 1-2 sentence summary that captures the essence of the post. Must not be empty.")}),CR=T0({name:"blog:generation",description:"Template for AI to generate complete blog posts from prompts",schema:rj,dataSourceId:"shell:ai-content",requiredPermission:"public",useKnowledgeContext:!0,basePrompt:`You are writing blog posts in a distinctive voice that blends philosophy, technology, and culture.
756
756
 
757
757
  Your task is to generate a complete blog post based on the user's prompt.
758
758
 
@@ -777,12 +777,12 @@ Your task is to create a short excerpt (1-2 sentences) that:
777
777
  3. Works well as a meta description for SEO
778
778
  4. Is between 120-160 characters ideally
779
779
 
780
- The excerpt should be clear, concise, and compelling.`});S();g1();Q2();import{jsxDEV as Y4,Fragment as sj}from"preact/jsx-dev-runtime";var oj=K.union([K.object({type:K.literal("post"),post:H8,prevPost:H8.nullable(),nextPost:H8.nullable(),seriesPosts:K.array(H8).nullable()}),K.object({type:K.literal("markdown"),content:K.string()})]),nj=($)=>{if($.type==="post")return Y4(L8,{post:$.post,prevPost:$.prevPost,nextPost:$.nextPost,seriesPosts:$.seriesPosts},void 0,!1,void 0,this);let G=i6()($.content);return Y4(sj,{children:[Y4(s0,{title:"Home",description:"Welcome to my site"},void 0,!1,void 0,this),Y4("section",{className:"homepage-section flex-grow min-h-screen",children:Y4("div",{className:"container mx-auto px-6 md:px-8 max-w-3xl py-20",children:Y4("article",{className:"prose prose-lg dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:G}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},ER=T0({name:"homepage",description:"Homepage showing latest blog post or fallback content",schema:oj,dataSourceId:"blog:homepage",requiredPermission:"public",layout:{component:nj}});var aj=K.object({posts:K.array(t1),pageTitle:K.string().optional(),pageLabel:K.string().optional(),pagination:F7.nullable(),baseUrl:K.string().optional()});function IR(){return{"post-list":T0({name:"post-list",description:"Blog list page template",schema:aj,dataSourceId:"blog:entities",requiredPermission:"public",layout:{component:AY}}),"post-detail":T0({name:"post-detail",description:"Individual blog post template",schema:K.object({post:t1,prevPost:t1.nullable(),nextPost:t1.nullable(),seriesPosts:K.array(t1).nullable()}),dataSourceId:"blog:entities",requiredPermission:"public",layout:{component:L8}}),homepage:ER,generation:CR,excerpt:TR}}S();O0();Q2();U8();async function jR($,X){let G={name:"internal",publish:async()=>{return{id:"internal"}}};await $.messaging.send({type:"publish:register",payload:{entityType:"post",provider:G}}),X.info("Registered post with publish-pipeline")}function SR($,X){$.messaging.subscribe("publish:execute",async(G)=>{let{entityType:Y,entityId:J}=G.payload;if(Y!=="post")return{success:!0};try{let W=await $.entityService.getEntity({entityType:"post",id:J});if(!W)return await $.messaging.send({type:"publish:report:failure",payload:{entityType:Y,entityId:J,error:`Post not found: ${J}`}}),{success:!0};if(W.metadata.status==="published")return X.debug(`Post already published: ${J}`),{success:!0};let H=b0(W.content,O1),U=new Date().toISOString(),M={...H.metadata,status:"published",publishedAt:U},F=d6.createPostContent(M,H.content);await $.entityService.updateEntity({entity:{...W,content:F,metadata:{...W.metadata,status:"published",publishedAt:U}}}),await $.messaging.send({type:"publish:report:success",payload:{entityType:Y,entityId:J,result:{id:J}}}),X.info(`Published post: ${J}`)}catch(W){let H=f0(W);await $.messaging.send({type:"publish:report:failure",payload:{entityType:Y,entityId:J,error:H}}),X.error(`Failed to publish post: ${H}`)}return{success:!0}}),X.debug("Subscribed to publish:execute messages")}O0();Q2();import{promises as tj}from"fs";import{join as ej}from"path";function vR($,X){$.messaging.subscribe("site:build:completed",async(G)=>{try{let Y=G.payload;X.info(`Received site:build:completed event for ${Y.environment} environment`),await $S($,X,Y)}catch(Y){X.error("Failed to generate RSS feed",Y)}return{success:!0}})}async function $S($,X,G){let Y=G.environment==="preview";X.info(`Auto-generating RSS feed after site build (${Y?"all posts":"published only"})`);let W=(await $.entityService.listEntities({entityType:"post",options:{limit:1000}})).filter((q)=>Y||q.metadata.status==="published"&&q.metadata.publishedAt).map((q)=>{let R=b0(q.content,O1);return{...q,frontmatter:R.metadata,body:R.content,url:G.generateEntityUrl("post",q.metadata.slug)}});if(W.length===0){X.info(`No ${Y?"":"published "}posts found, skipping RSS generation`);return}let H=G.siteConfig.url??"https://example.com",U=G.siteConfig.title??"Blog",M=G.siteConfig.description??"Latest blog posts",F=g7(W,{title:U,description:M,link:H,language:"en-us",includeAllPosts:Y}),Q=ej(G.outputDir,"feed.xml");await tj.writeFile(Q,F,"utf-8"),X.info(`RSS feed generated successfully with ${W.length} posts at ${Q}`)}S();var XS=K.object({prompt:K.string(),seriesName:K.string().optional()}),GS=K.object({title:K.string(),content:K.string()});function xR($){$.eval.registerHandler("generatePost",async(X)=>{let G=XS.parse(X),Y=`${G.prompt}${G.seriesName?`
780
+ The excerpt should be clear, concise, and compelling.`});S();g1();Q6();import{jsxDEV as Y4,Fragment as sj}from"preact/jsx-dev-runtime";var oj=K.union([K.object({type:K.literal("post"),post:H8,prevPost:H8.nullable(),nextPost:H8.nullable(),seriesPosts:K.array(H8).nullable()}),K.object({type:K.literal("markdown"),content:K.string()})]),nj=($)=>{if($.type==="post")return Y4(L8,{post:$.post,prevPost:$.prevPost,nextPost:$.nextPost,seriesPosts:$.seriesPosts},void 0,!1,void 0,this);let G=i5()($.content);return Y4(sj,{children:[Y4(s0,{title:"Home",description:"Welcome to my site"},void 0,!1,void 0,this),Y4("section",{className:"homepage-section flex-grow min-h-screen",children:Y4("div",{className:"container mx-auto px-6 md:px-8 max-w-3xl py-20",children:Y4("article",{className:"prose prose-lg dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:G}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},ER=T0({name:"homepage",description:"Homepage showing latest blog post or fallback content",schema:oj,dataSourceId:"blog:homepage",requiredPermission:"public",layout:{component:nj}});var aj=K.object({posts:K.array(t1),pageTitle:K.string().optional(),pageLabel:K.string().optional(),pagination:F7.nullable(),baseUrl:K.string().optional()});function IR(){return{"post-list":T0({name:"post-list",description:"Blog list page template",schema:aj,dataSourceId:"blog:entities",requiredPermission:"public",layout:{component:AY}}),"post-detail":T0({name:"post-detail",description:"Individual blog post template",schema:K.object({post:t1,prevPost:t1.nullable(),nextPost:t1.nullable(),seriesPosts:K.array(t1).nullable()}),dataSourceId:"blog:entities",requiredPermission:"public",layout:{component:L8}}),homepage:ER,generation:CR,excerpt:TR}}S();O0();Q6();U8();async function jR($,X){let G={name:"internal",publish:async()=>{return{id:"internal"}}};await $.messaging.send({type:"publish:register",payload:{entityType:"post",provider:G}}),X.info("Registered post with publish-pipeline")}function SR($,X){$.messaging.subscribe("publish:execute",async(G)=>{let{entityType:Y,entityId:J}=G.payload;if(Y!=="post")return{success:!0};try{let W=await $.entityService.getEntity({entityType:"post",id:J});if(!W)return await $.messaging.send({type:"publish:report:failure",payload:{entityType:Y,entityId:J,error:`Post not found: ${J}`}}),{success:!0};if(W.metadata.status==="published")return X.debug(`Post already published: ${J}`),{success:!0};let H=b0(W.content,O1),U=new Date().toISOString(),M={...H.metadata,status:"published",publishedAt:U},F=d5.createPostContent(M,H.content);await $.entityService.updateEntity({entity:{...W,content:F,metadata:{...W.metadata,status:"published",publishedAt:U}}}),await $.messaging.send({type:"publish:report:success",payload:{entityType:Y,entityId:J,result:{id:J}}}),X.info(`Published post: ${J}`)}catch(W){let H=f0(W);await $.messaging.send({type:"publish:report:failure",payload:{entityType:Y,entityId:J,error:H}}),X.error(`Failed to publish post: ${H}`)}return{success:!0}}),X.debug("Subscribed to publish:execute messages")}O0();Q6();import{promises as tj}from"fs";import{join as ej}from"path";function vR($,X){$.messaging.subscribe("site:build:completed",async(G)=>{try{let Y=G.payload;X.info(`Received site:build:completed event for ${Y.environment} environment`),await $S($,X,Y)}catch(Y){X.error("Failed to generate RSS feed",Y)}return{success:!0}})}async function $S($,X,G){let Y=G.environment==="preview";X.info(`Auto-generating RSS feed after site build (${Y?"all posts":"published only"})`);let W=(await $.entityService.listEntities({entityType:"post",options:{limit:1000}})).filter((q)=>Y||q.metadata.status==="published"&&q.metadata.publishedAt).map((q)=>{let R=b0(q.content,O1);return{...q,frontmatter:R.metadata,body:R.content,url:G.generateEntityUrl("post",q.metadata.slug)}});if(W.length===0){X.info(`No ${Y?"":"published "}posts found, skipping RSS generation`);return}let H=G.siteConfig.url??"https://example.com",U=G.siteConfig.title??"Blog",M=G.siteConfig.description??"Latest blog posts",F=g7(W,{title:U,description:M,link:H,language:"en-us",includeAllPosts:Y}),Q=ej(G.outputDir,"feed.xml");await tj.writeFile(Q,F,"utf-8"),X.info(`RSS feed generated successfully with ${W.length} posts at ${Q}`)}S();var XS=K.object({prompt:K.string(),seriesName:K.string().optional()}),GS=K.object({title:K.string(),content:K.string()});function xR($){$.eval.registerHandler("generatePost",async(X)=>{let G=XS.parse(X),Y=`${G.prompt}${G.seriesName?`
781
781
 
782
782
  Note: This is part of a series called "${G.seriesName}".`:""}`;return $.ai.generate({prompt:Y,templateName:"blog:generation"})}),$.eval.registerHandler("generateExcerpt",async(X)=>{let G=GS.parse(X);return $.ai.generate({prompt:`Title: ${G.title}
783
783
 
784
784
  Content:
785
- ${G.content}`,templateName:"blog:excerpt"})})}var bR={name:"@brains/blog",private:!0,version:"0.2.0-alpha.72",description:"AI-powered blog post generation from existing brain content",type:"module",exports:{".":"./src/index.ts"},scripts:{typecheck:"tsc --noEmit",test:"bun test",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix",eval:"cd evals && bun run brain-eval"},dependencies:{"@brains/contracts":"workspace:*","@brains/plugins":"workspace:*","@brains/utils":"workspace:*"},devDependencies:{"@brains/app":"workspace:*","@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};class gR extends J6{entityType=d6.entityType;schema=s5;adapter=d6;constructor($={}){super("blog",bR,$,fG)}getEntityTypeConfig(){return{weight:2}}createGenerationHandler($){return new gG(this.logger.child("BlogGenerationJobHandler"),$)}getTemplates(){return IR()}getDataSources(){return[new pG(this.logger.child("BlogDataSource"))]}async onRegister($){let{RSSDataSource:X}=await Promise.resolve().then(() => (fR(),yR));$.entities.registerDataSource(new X(this.logger.child("RSSDataSource"))),await jR($,this.logger),SR($,this.logger),vR($,this.logger),xR($),this.logger.info("Blog plugin registered (routes auto-generated at /posts/)")}}Q2();U8();O0();g5();S();O0();g5();var mR=K.object({}),m7=G1.extend({id:K.literal("site-info"),entityType:K.literal("site-info"),metadata:mR}),C8=c9,J4=i9.omit({url:!0,analyticsScript:!0});O0();class k2 extends X1{constructor(){super({entityType:"site-info",schema:m7,frontmatterSchema:J4,isSingleton:!0,hasBody:!1})}createSiteInfoContent($){let X=J4.parse($);return this.buildMarkdown("",X)}parseSiteInfoBody($){return this.parseFrontmatter($)}fromMarkdown($){return{content:$,entityType:"site-info"}}extractMetadata($){return{}}generateFrontMatter($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}}var T$0=new k2;var g$0=new k2;var US=new k2;async function T8($){let G=(await $.listEntities({entityType:"site-info",options:{limit:1}}))[0];if(!G)throw Error("Site info not found \u2014 create a site-info entity");return US.parseSiteInfoBody(G.content)}S();var KS=J4.extend({navigation:K.object({primary:K.array(K.object({label:K.string(),href:K.string(),priority:K.number()})),secondary:K.array(K.object({label:K.string(),href:K.string(),priority:K.number()}))}),copyright:K.string(),socialLinks:K.array(K.object({platform:K.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:K.string().describe("Profile or contact URL"),label:K.string().optional().describe("Optional display label")})).optional().describe("Social media links from profile entity")});O0();var p7=o5,Q6=F2.extend(p7.shape);O0();u6();S();var MS=new p1;class u7{postsListUrl;id="personal:homepage";name="Personal Homepage DataSource";description="Fetches profile and blog posts for a personal homepage";constructor($){this.postsListUrl=$}async fetch($,X,G){let Y=G.entityService,[J,W,H]=await Promise.all([M2(Y),Y.listEntities({entityType:"post",options:{limit:20}}),T8(Y)]),U=MS.parseProfileBody(J,Q6),M=W.sort(z5).slice(0,6).map(l6);if(!H.cta)throw Error("CTA not configured in site-info");let F={profile:U,posts:M,postsListUrl:this.postsListUrl,cta:H.cta};return X.parse(F)}}O0();u6();var FS=new p1;class d7{id="personal:about";name="About Page DataSource";description="Fetches full profile data for the about page";async fetch($,X,G){let Y=await M2(G.entityService),W={profile:FS.parseProfileBody(Y,Q6)};return X.parse(W)}}import{jsxDEV as M0,Fragment as pR}from"preact/jsx-dev-runtime";function QS($){return new Date($).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}function qS($){return $.split(/(\*[^*]+\*)/).map((X,G)=>{if(X.startsWith("*")&&X.endsWith("*")&&X.length>2)return M0("em",{className:"font-sans italic font-medium text-theme-inverse tracking-[-0.015em] [font-variation-settings:'opsz'_72]",children:X.slice(1,-1)},G,!1,void 0,this);return X})}var NY=({profile:$,posts:X,postsListUrl:G,cta:Y})=>{let J=$.tagline??$.description,W=$.name.split(" ")[0];return M0(pR,{children:[M0(s0,{title:$.name,description:$.description??J??"Personal site",ogType:"website"},void 0,!1,void 0,this),M0("header",{className:"hero-decor bg-brand text-theme-inverse relative flex flex-col items-center justify-center px-6 md:px-12 pt-32 pb-24 gap-7",children:M0("div",{className:"w-full max-w-[1100px] mx-auto text-center flex flex-col items-center gap-7",children:[J&&M0("h1",{className:"font-heading font-bold text-[clamp(2.5rem,6vw,5rem)] leading-[1.05] tracking-[-0.035em] text-theme-inverse text-balance m-0 [font-variation-settings:'wdth'_90,'opsz'_96]",children:qS(J)},void 0,!1,void 0,this),$.description&&M0("p",{className:"text-[clamp(1.0625rem,1.4vw,1.3125rem)] leading-[1.5] text-theme-inverse opacity-95 max-w-[600px] mx-auto m-0",children:$.description},void 0,!1,void 0,this),M0("div",{className:"flex flex-wrap justify-center gap-3.5 mt-2",children:[M0("a",{href:G,className:"inline-flex items-center gap-2 rounded-full py-3.5 px-7 bg-theme text-brand border-2 border-theme font-heading font-semibold text-[15px] hover:bg-theme-subtle hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:["Read the Blog ",M0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0("a",{href:"/about",className:"rounded-full py-3.5 px-7 border-2 border-theme-light text-theme-inverse font-heading font-semibold text-[15px] hover:bg-brand-dark hover:border-theme hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:["About ",W]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X.length>0&&M0("section",{className:"flex flex-col py-24 px-6 md:px-12 gap-11 bg-theme-subtle",children:[M0("div",{className:"flex justify-between items-end max-w-layout mx-auto w-full gap-6 flex-wrap",children:[M0("div",{children:[M0("span",{className:"block font-heading font-semibold text-[13px] uppercase tracking-[0.22em] text-brand mb-3 [font-variation-settings:'wdth'_85,'opsz'_12]",children:"The Archive"},void 0,!1,void 0,this),M0("h2",{className:"font-heading font-bold text-[clamp(2.25rem,5vw,3.75rem)] leading-none tracking-[-0.03em] text-heading m-0 [font-variation-settings:'wdth'_92,'opsz'_64]",children:["Recent"," ",M0("em",{className:"font-sans italic font-medium text-brand [font-variation-settings:'opsz'_60]",children:"posts"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0("a",{href:G,className:"font-heading font-semibold text-[15px] text-brand inline-flex items-center gap-1.5 pb-1.5 border-b-2 border-current hover:text-brand-dark transition-colors [font-variation-settings:'wdth'_88,'opsz'_16]",children:["View the whole archive ",M0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(min(100%,320px),1fr))] gap-8 max-w-layout mx-auto w-full",children:X.map((H)=>M0("a",{href:H.url,className:"group flex flex-col bg-theme border border-theme rounded-md overflow-hidden hover:-translate-y-1 hover:border-brand/50 transition-all no-underline shadow-sm hover:shadow-lg",children:[H.coverImageUrl?M0("img",{src:H.coverImageUrl,alt:H.metadata.title,className:"w-full aspect-[16/10] object-cover bg-theme-muted"},void 0,!1,void 0,this):M0("div",{className:"w-full aspect-[16/10] bg-gradient-to-br from-brand to-accent","aria-hidden":"true"},void 0,!1,void 0,this),M0("div",{className:"flex flex-col gap-4 p-7 flex-1",children:[M0("div",{className:"flex flex-wrap items-center gap-3.5 font-heading text-[11px] font-semibold uppercase tracking-[0.18em] text-theme-muted [font-variation-settings:'wdth'_85,'opsz'_11]",children:[H.frontmatter.seriesName&&M0(pR,{children:[M0("span",{className:"text-brand",children:H.frontmatter.seriesName},void 0,!1,void 0,this),M0("span",{className:"w-[3px] h-[3px] rounded-full bg-current opacity-50","aria-hidden":"true"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0("time",{children:QS(H.metadata.publishedAt??H.created)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0("h3",{className:"font-sans font-semibold text-[clamp(1.375rem,1.8vw,1.625rem)] leading-[1.18] tracking-[-0.012em] text-heading m-0 text-balance",children:H.metadata.title},void 0,!1,void 0,this),H.frontmatter.excerpt&&M0("p",{className:"text-base leading-[1.55] text-theme-muted m-0 flex-1",children:H.frontmatter.excerpt},void 0,!1,void 0,this),M0("span",{className:"inline-flex items-center gap-1.5 font-heading font-semibold text-[13px] uppercase tracking-[0.14em] text-brand mt-1 [font-variation-settings:'wdth'_88,'opsz'_14]",children:["Read the post"," ",M0("span",{"aria-hidden":"true",className:"transition-transform group-hover:translate-x-1",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},H.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0("section",{className:"cta-decor bg-theme-dark text-theme-on-dark flex-grow flex flex-col items-center justify-center py-24 px-6 md:px-12 gap-5",children:[M0("span",{className:"font-heading font-medium text-xs uppercase tracking-[0.24em] text-accent [font-variation-settings:'wdth'_85,'opsz'_12]",children:"Get in touch"},void 0,!1,void 0,this),M0("h2",{className:"text-center font-heading font-bold text-[clamp(2rem,4vw,3rem)] leading-none tracking-[-0.03em] text-theme-on-dark m-0 [font-variation-settings:'wdth'_90,'opsz'_64]",children:Y.heading},void 0,!1,void 0,this),Y.subtitle&&M0("p",{className:"text-center text-base leading-[1.55] text-theme-on-dark opacity-80 max-w-[480px] m-0",children:Y.subtitle},void 0,!1,void 0,this),M0("a",{href:Y.buttonLink,className:"inline-flex items-center gap-2 rounded-full py-3.5 px-7 bg-brand text-theme-inverse border-2 border-brand font-heading font-semibold text-[15px] hover:bg-brand-dark hover:-translate-y-0.5 transition-all mt-2 [font-variation-settings:'wdth'_92,'opsz'_18]",children:[Y.buttonText," ",M0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as Y1,Fragment as OS}from"preact/jsx-dev-runtime";var VY=({profile:$})=>{let X=`About ${$.name}`,G=$.description??$.intro??"About page",Y=Boolean($.email??$.website);return Y1(OS,{children:[Y1(s0,{title:X,description:G,ogType:"profile"},void 0,!1,void 0,this),Y1("section",{className:"hero-decor bg-brand text-theme-inverse relative flex flex-col px-6 md:px-12 pt-32 pb-24",children:Y1("div",{className:"w-full max-w-3xl mx-auto flex flex-col gap-6",children:[Y1("h1",{className:"font-heading font-bold text-[clamp(2.5rem,6vw,4.5rem)] leading-[1.05] tracking-[-0.035em] text-theme-inverse text-balance m-0 [font-variation-settings:'wdth'_90,'opsz'_96]",children:$.name},void 0,!1,void 0,this),$.description&&Y1("p",{className:"text-[clamp(1.0625rem,1.4vw,1.25rem)] leading-[1.55] text-theme-inverse opacity-95 max-w-2xl m-0",children:$.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$.story&&Y1("section",{className:`py-24 px-6 md:px-12 bg-theme-subtle${Y?"":" flex-grow"}`,children:Y1("div",{className:"max-w-3xl mx-auto",children:Y1(o6,{markdown:$.story},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y&&Y1("section",{className:"cta-decor bg-theme-dark text-theme-on-dark flex-grow flex flex-col items-center justify-center py-24 px-6 md:px-12 gap-5",children:[Y1("span",{className:"font-heading font-medium text-xs uppercase tracking-[0.24em] text-accent [font-variation-settings:'wdth'_85,'opsz'_12]",children:"Get in touch"},void 0,!1,void 0,this),Y1("h2",{className:"text-center font-heading font-bold text-[clamp(2rem,4vw,3rem)] leading-none tracking-[-0.03em] text-theme-on-dark m-0 [font-variation-settings:'wdth'_90,'opsz'_64]",children:["Say"," ",Y1("em",{className:"font-sans italic font-medium text-accent [font-variation-settings:'opsz'_72]",children:"hi."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1("div",{className:"flex flex-wrap justify-center gap-3.5 mt-2",children:[$.email&&Y1("a",{href:`mailto:${$.email}`,className:"inline-flex items-center gap-2 rounded-full py-3.5 px-7 bg-brand text-theme-inverse border-2 border-brand font-heading font-semibold text-[15px] hover:bg-brand-dark hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:["Get in Touch ",Y1("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.website&&Y1("a",{href:$.website,className:"rounded-full py-3.5 px-7 border-2 border-theme-light text-theme-on-dark font-heading font-semibold text-[15px] hover:bg-brand-dark hover:border-theme hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:"Website"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};var uR={name:"@brains/site-personal",private:!0,version:"0.2.0-alpha.72",description:"Personal site composition package",type:"module",exports:{".":"./src/index.ts"},files:["src"],scripts:{typecheck:"tsc --noEmit",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix"},dependencies:{"@brains/blog":"workspace:*","@brains/identity-service":"workspace:*","@brains/plugins":"workspace:*","@brains/site-composition":"workspace:*","@brains/site-engine":"workspace:*","@brains/site-info":"workspace:*","@brains/templates":"workspace:*","@brains/ui-library":"workspace:*","@brains/utils":"workspace:*",preact:"^10.27.2"},devDependencies:{"@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};var RS=K.object({entityDisplay:K.object({post:K.object({label:K.string().default("Post"),pluralName:K.string().optional()}).default({})}).default({})});class wY extends c5{dependencies=["blog"];constructor($={}){super("personal-site",uR,$,RS)}async onRegister($){$.entities.extendFrontmatterSchema("anchor-profile",p7);let X=this.config.entityDisplay.post,G=`/${X.pluralName??X.label.toLowerCase()+"s"}`,Y=new u7(G);$.entities.registerDataSource(Y);let J=new d7;$.entities.registerDataSource(J);let W=K.object({profile:Q6,posts:K.array(t1),postsListUrl:K.string(),cta:C8}),H=K.object({profile:Q6});$.templates.register({homepage:T0({name:"homepage",description:"Personal homepage with recent blog posts",schema:W,dataSourceId:"personal:homepage",requiredPermission:"public",layout:{component:NY}}),about:T0({name:"about",description:"About page with profile",schema:H,dataSourceId:"personal:about",requiredPermission:"public",layout:{component:VY}})}),this.logger.info("Personal site plugin registered successfully")}async getTools(){return[]}async getResources(){return[]}}function _Y($){return new wY($??{})}var zY=[{id:"home",path:"/",title:"Home",description:"Personal site homepage",layout:"default",navigation:{show:!0,label:"Home",slot:"secondary",priority:10},sections:[{id:"homepage",template:"personal-site:homepage",dataQuery:{}}]},{id:"about",path:"/about",title:"About",description:"About page",layout:"default",navigation:{show:!0,label:"About",slot:"primary",priority:90},sections:[{id:"about",template:"personal-site:about",dataQuery:{}}]}];import{jsxDEV as h1}from"preact/jsx-dev-runtime";function DY({sections:$,siteInfo:X}){let G=[...X.navigation.primary,...X.navigation.secondary].filter((Y)=>Y.label!=="Home");return h1("div",{className:"flex flex-col min-h-screen bg-theme overflow-x-clip",children:[h1(V8,{title:X.title,titleClassName:"font-heading font-bold text-2xl",navigation:X.navigation.primary,showThemeToggle:!0,themeToggleClassName:"bg-theme-toggle text-theme-toggle-icon hover:bg-theme-toggle-hover rounded-[10px]",...X.logo!==void 0?{logo:X.logo}:{}},void 0,!1,void 0,this),h1("main",{className:"flex-grow flex flex-col",children:$},void 0,!1,void 0,this),h1("footer",{className:"bg-footer text-footer border-t border-theme",children:h1("div",{className:"max-w-layout mx-auto flex flex-col md:flex-row justify-between items-center py-8 px-6 md:px-8",children:[h1("div",{className:"flex flex-col gap-1 mb-4 md:mb-0",children:[h1("span",{className:"text-brand font-heading font-bold text-lg",children:X.title},void 0,!1,void 0,this),X.description&&h1("span",{className:"text-theme-muted text-xs",children:X.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h1("nav",{className:"flex flex-wrap justify-center gap-x-6 gap-y-2 mb-4 md:mb-0",children:G.map((Y)=>h1("a",{href:Y.href,className:"text-theme-muted text-[13px] hover:text-brand transition-colors",children:Y.label},Y.href,!1,void 0,this))},void 0,!1,void 0,this),h1("div",{className:"flex items-center gap-4",children:[X.copyright&&h1("span",{className:"text-theme-light text-[11px]",children:X.copyright},void 0,!1,void 0,this),h1(F6,{variant:"footer",size:"sm"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}O0();S();g1();O0();S();O0();S();S();O0();var AS=K.enum(["draft","queued","published"]),dR="publishedAt is required when deck status is published",lR=($)=>$.status==="published"&&!$.publishedAt,PY=($)=>{if(lR($))throw Error(dR)},q6=K.object({title:K.string(),slug:K.string().optional(),description:K.string().optional(),author:K.string().optional(),status:AS,publishedAt:K.string().datetime().optional(),event:K.string().optional(),coverImageId:K.string().optional()}),BS=q6.pick({title:!0,description:!0,status:!0,publishedAt:!0,coverImageId:!0}).extend({slug:K.string()}).superRefine(($,X)=>{if(!lR($))return;X.addIssue({code:K.ZodIssueCode.custom,path:["publishedAt"],message:dR})}),l7=G1.extend({entityType:K.literal("deck"),metadata:BS}),c7=l7.extend({frontmatter:q6,body:K.string()}),E8=c7.extend({url:K.string().optional(),typeLabel:K.string().optional(),listUrl:K.string().optional(),listLabel:K.string().optional(),coverImageUrl:K.string().optional(),coverImageWidth:K.number().optional(),coverImageHeight:K.number().optional()});class LY extends X1{constructor(){super({entityType:"deck",schema:l7,frontmatterSchema:q6,supportsCoverImage:!0})}validateSlideStructure($){if(!/^---$/gm.test($))throw Error("Invalid deck: markdown must contain slide separators (---) to be a valid presentation")}toMarkdown($){let X=this.extractBody($.content);this.validateSlideStructure(X);let G=this.parseFrontMatter($.content,q6);PY(G);let Y={...G,slug:G.slug??$.metadata.slug};return this.buildMarkdown(X,Y)}fromMarkdown($){let X=this.parseFrontmatter($),G=this.extractBody($);PY(X),this.validateSlideStructure(G);let Y=X.slug??f1(X.title),J=X.status;return{entityType:"deck",content:$,metadata:{slug:Y,title:X.title,description:X.description,status:J,publishedAt:X.publishedAt,coverImageId:X.coverImageId}}}generateTitle($){return $.metadata.title}generateSummary($){if($.metadata.description)return $.metadata.description;return`Presentation: ${$.metadata.title}`}generateFrontMatter($){return this.toMarkdown($)}}var I8=new LY;S();g1();var NS=K.object({markdown:K.string().describe("Markdown content with slide separators (---)")}),CY=T0({name:"deck-detail",description:"Render a presentation deck as Reveal.js slides",schema:NS,dataSourceId:"decks:entities",requiredPermission:"public",layout:{component:$Y,fullscreen:!0}});g1();S();var TY=K.object({decks:K.array(c7)}),EY=K.object({decks:K.array(E8),pageTitle:K.string().optional(),pageLabel:K.string().optional()});import{jsxDEV as IY}from"preact/jsx-dev-runtime";var VS="Presentations",jY=({decks:$,pageLabel:X})=>{let G=$.map((J)=>({id:J.id,url:J.url,title:J.frontmatter.title,date:J.frontmatter.publishedAt??J.created,description:J.frontmatter.description}));return IY("div",{className:"deck-list bg-theme",children:IY("div",{className:"container mx-auto max-w-[1100px] px-6 py-16 md:px-12 md:py-24",children:IY(w8,{label:X&&X!=="Decks"?X:VS,items:G},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)};P1();var N30=K.object({message:K.string()});g6();g6();P1();L9();class r7{schema;config;processor=A5();constructor($,X){this.schema=$;this.config=X}getLabels(){let $={};for(let X of this.config.mappings)$[X.key]=X.label;return $}generateBodyTemplate(){if(this.config.mappings.length===0)return"";let $=[];for(let X of this.config.mappings)$.push(`## ${X.label}`,"",`<!-- Write your ${X.label.toLowerCase()} here -->`,"");return $.join(`
785
+ ${G.content}`,templateName:"blog:excerpt"})})}var bR={name:"@brains/blog",private:!0,version:"0.2.0-alpha.73",description:"AI-powered blog post generation from existing brain content",type:"module",exports:{".":"./src/index.ts"},scripts:{typecheck:"tsc --noEmit",test:"bun test",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix",eval:"cd evals && bun run brain-eval"},dependencies:{"@brains/contracts":"workspace:*","@brains/plugins":"workspace:*","@brains/utils":"workspace:*"},devDependencies:{"@brains/app":"workspace:*","@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};class gR extends J5{entityType=d5.entityType;schema=s2;adapter=d5;constructor($={}){super("blog",bR,$,fG)}getEntityTypeConfig(){return{weight:2}}createGenerationHandler($){return new gG(this.logger.child("BlogGenerationJobHandler"),$)}getTemplates(){return IR()}getDataSources(){return[new pG(this.logger.child("BlogDataSource"))]}async onRegister($){let{RSSDataSource:X}=await Promise.resolve().then(() => (fR(),yR));$.entities.registerDataSource(new X(this.logger.child("RSSDataSource"))),await jR($,this.logger),SR($,this.logger),vR($,this.logger),xR($),this.logger.info("Blog plugin registered (routes auto-generated at /posts/)")}}Q6();U8();O0();g2();S();O0();g2();var mR=K.object({}),m7=G1.extend({id:K.literal("site-info"),entityType:K.literal("site-info"),metadata:mR}),C8=c9,J4=i9.omit({url:!0,analyticsScript:!0});O0();class k6 extends X1{constructor(){super({entityType:"site-info",schema:m7,frontmatterSchema:J4,isSingleton:!0,hasBody:!1})}createSiteInfoContent($){let X=J4.parse($);return this.buildMarkdown("",X)}parseSiteInfoBody($){return this.parseFrontmatter($)}fromMarkdown($){return{content:$,entityType:"site-info"}}extractMetadata($){return{}}generateFrontMatter($){let X=this.parseFrontmatter($.content);return this.buildMarkdown("",X)}}var T$0=new k6;var g$0=new k6;var US=new k6;async function T8($){let G=(await $.listEntities({entityType:"site-info",options:{limit:1}}))[0];if(!G)throw Error("Site info not found \u2014 create a site-info entity");return US.parseSiteInfoBody(G.content)}S();var KS=J4.extend({navigation:K.object({primary:K.array(K.object({label:K.string(),href:K.string(),priority:K.number()})),secondary:K.array(K.object({label:K.string(),href:K.string(),priority:K.number()}))}),copyright:K.string(),socialLinks:K.array(K.object({platform:K.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:K.string().describe("Profile or contact URL"),label:K.string().optional().describe("Optional display label")})).optional().describe("Social media links from profile entity")});O0();var p7=o2,Q5=F6.extend(p7.shape);O0();u5();S();var MS=new p1;class u7{postsListUrl;id="personal:homepage";name="Personal Homepage DataSource";description="Fetches profile and blog posts for a personal homepage";constructor($){this.postsListUrl=$}async fetch($,X,G){let Y=G.entityService,[J,W,H]=await Promise.all([M6(Y),Y.listEntities({entityType:"post",options:{limit:20}}),T8(Y)]),U=MS.parseProfileBody(J,Q5),M=W.sort(z2).slice(0,6).map(l5);if(!H.cta)throw Error("CTA not configured in site-info");let F={profile:U,posts:M,postsListUrl:this.postsListUrl,cta:H.cta};return X.parse(F)}}O0();u5();var FS=new p1;class d7{id="personal:about";name="About Page DataSource";description="Fetches full profile data for the about page";async fetch($,X,G){let Y=await M6(G.entityService),W={profile:FS.parseProfileBody(Y,Q5)};return X.parse(W)}}import{jsxDEV as M0,Fragment as pR}from"preact/jsx-dev-runtime";function QS($){return new Date($).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}function qS($){return $.split(/(\*[^*]+\*)/).map((X,G)=>{if(X.startsWith("*")&&X.endsWith("*")&&X.length>2)return M0("em",{className:"font-sans italic font-medium text-theme-inverse tracking-[-0.015em] [font-variation-settings:'opsz'_72]",children:X.slice(1,-1)},G,!1,void 0,this);return X})}var NY=({profile:$,posts:X,postsListUrl:G,cta:Y})=>{let J=$.tagline??$.description,W=$.name.split(" ")[0];return M0(pR,{children:[M0(s0,{title:$.name,description:$.description??J??"Personal site",ogType:"website"},void 0,!1,void 0,this),M0("header",{className:"hero-decor bg-brand text-theme-inverse relative flex flex-col items-center justify-center px-6 md:px-12 pt-32 pb-24 gap-7",children:M0("div",{className:"w-full max-w-[1100px] mx-auto text-center flex flex-col items-center gap-7",children:[J&&M0("h1",{className:"font-heading font-bold text-[clamp(2.5rem,6vw,5rem)] leading-[1.05] tracking-[-0.035em] text-theme-inverse text-balance m-0 [font-variation-settings:'wdth'_90,'opsz'_96]",children:qS(J)},void 0,!1,void 0,this),$.description&&M0("p",{className:"text-[clamp(1.0625rem,1.4vw,1.3125rem)] leading-[1.5] text-theme-inverse opacity-95 max-w-[600px] mx-auto m-0",children:$.description},void 0,!1,void 0,this),M0("div",{className:"flex flex-wrap justify-center gap-3.5 mt-2",children:[M0("a",{href:G,className:"inline-flex items-center gap-2 rounded-full py-3.5 px-7 bg-theme text-brand border-2 border-theme font-heading font-semibold text-[15px] hover:bg-theme-subtle hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:["Read the Blog ",M0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0("a",{href:"/about",className:"rounded-full py-3.5 px-7 border-2 border-theme-light text-theme-inverse font-heading font-semibold text-[15px] hover:bg-brand-dark hover:border-theme hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:["About ",W]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X.length>0&&M0("section",{className:"flex flex-col py-24 px-6 md:px-12 gap-11 bg-theme-subtle",children:[M0("div",{className:"flex justify-between items-end max-w-layout mx-auto w-full gap-6 flex-wrap",children:[M0("div",{children:[M0("span",{className:"block font-heading font-semibold text-[13px] uppercase tracking-[0.22em] text-brand mb-3 [font-variation-settings:'wdth'_85,'opsz'_12]",children:"The Archive"},void 0,!1,void 0,this),M0("h2",{className:"font-heading font-bold text-[clamp(2.25rem,5vw,3.75rem)] leading-none tracking-[-0.03em] text-heading m-0 [font-variation-settings:'wdth'_92,'opsz'_64]",children:["Recent"," ",M0("em",{className:"font-sans italic font-medium text-brand [font-variation-settings:'opsz'_60]",children:"posts"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0("a",{href:G,className:"font-heading font-semibold text-[15px] text-brand inline-flex items-center gap-1.5 pb-1.5 border-b-2 border-current hover:text-brand-dark transition-colors [font-variation-settings:'wdth'_88,'opsz'_16]",children:["View the whole archive ",M0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(min(100%,320px),1fr))] gap-8 max-w-layout mx-auto w-full",children:X.map((H)=>M0("a",{href:H.url,className:"group flex flex-col bg-theme border border-theme rounded-md overflow-hidden hover:-translate-y-1 hover:border-brand/50 transition-all no-underline shadow-sm hover:shadow-lg",children:[H.coverImageUrl?M0("img",{src:H.coverImageUrl,alt:H.metadata.title,className:"w-full aspect-[16/10] object-cover bg-theme-muted"},void 0,!1,void 0,this):M0("div",{className:"w-full aspect-[16/10] bg-gradient-to-br from-brand to-accent","aria-hidden":"true"},void 0,!1,void 0,this),M0("div",{className:"flex flex-col gap-4 p-7 flex-1",children:[M0("div",{className:"flex flex-wrap items-center gap-3.5 font-heading text-[11px] font-semibold uppercase tracking-[0.18em] text-theme-muted [font-variation-settings:'wdth'_85,'opsz'_11]",children:[H.frontmatter.seriesName&&M0(pR,{children:[M0("span",{className:"text-brand",children:H.frontmatter.seriesName},void 0,!1,void 0,this),M0("span",{className:"w-[3px] h-[3px] rounded-full bg-current opacity-50","aria-hidden":"true"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0("time",{children:QS(H.metadata.publishedAt??H.created)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0("h3",{className:"font-sans font-semibold text-[clamp(1.375rem,1.8vw,1.625rem)] leading-[1.18] tracking-[-0.012em] text-heading m-0 text-balance",children:H.metadata.title},void 0,!1,void 0,this),H.frontmatter.excerpt&&M0("p",{className:"text-base leading-[1.55] text-theme-muted m-0 flex-1",children:H.frontmatter.excerpt},void 0,!1,void 0,this),M0("span",{className:"inline-flex items-center gap-1.5 font-heading font-semibold text-[13px] uppercase tracking-[0.14em] text-brand mt-1 [font-variation-settings:'wdth'_88,'opsz'_14]",children:["Read the post"," ",M0("span",{"aria-hidden":"true",className:"transition-transform group-hover:translate-x-1",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},H.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0("section",{className:"cta-decor bg-theme-dark text-theme-on-dark flex-grow flex flex-col items-center justify-center py-24 px-6 md:px-12 gap-5",children:[M0("span",{className:"font-heading font-medium text-xs uppercase tracking-[0.24em] text-accent [font-variation-settings:'wdth'_85,'opsz'_12]",children:"Get in touch"},void 0,!1,void 0,this),M0("h2",{className:"text-center font-heading font-bold text-[clamp(2rem,4vw,3rem)] leading-none tracking-[-0.03em] text-theme-on-dark m-0 [font-variation-settings:'wdth'_90,'opsz'_64]",children:Y.heading},void 0,!1,void 0,this),Y.subtitle&&M0("p",{className:"text-center text-base leading-[1.55] text-theme-on-dark opacity-80 max-w-[480px] m-0",children:Y.subtitle},void 0,!1,void 0,this),M0("a",{href:Y.buttonLink,className:"inline-flex items-center gap-2 rounded-full py-3.5 px-7 bg-brand text-theme-inverse border-2 border-brand font-heading font-semibold text-[15px] hover:bg-brand-dark hover:-translate-y-0.5 transition-all mt-2 [font-variation-settings:'wdth'_92,'opsz'_18]",children:[Y.buttonText," ",M0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as Y1,Fragment as OS}from"preact/jsx-dev-runtime";var VY=({profile:$})=>{let X=`About ${$.name}`,G=$.description??$.intro??"About page",Y=Boolean($.email??$.website);return Y1(OS,{children:[Y1(s0,{title:X,description:G,ogType:"profile"},void 0,!1,void 0,this),Y1("section",{className:"hero-decor bg-brand text-theme-inverse relative flex flex-col px-6 md:px-12 pt-32 pb-24",children:Y1("div",{className:"w-full max-w-3xl mx-auto flex flex-col gap-6",children:[Y1("h1",{className:"font-heading font-bold text-[clamp(2.5rem,6vw,4.5rem)] leading-[1.05] tracking-[-0.035em] text-theme-inverse text-balance m-0 [font-variation-settings:'wdth'_90,'opsz'_96]",children:$.name},void 0,!1,void 0,this),$.description&&Y1("p",{className:"text-[clamp(1.0625rem,1.4vw,1.25rem)] leading-[1.55] text-theme-inverse opacity-95 max-w-2xl m-0",children:$.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$.story&&Y1("section",{className:`py-24 px-6 md:px-12 bg-theme-subtle${Y?"":" flex-grow"}`,children:Y1("div",{className:"max-w-3xl mx-auto",children:Y1(o5,{markdown:$.story},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y&&Y1("section",{className:"cta-decor bg-theme-dark text-theme-on-dark flex-grow flex flex-col items-center justify-center py-24 px-6 md:px-12 gap-5",children:[Y1("span",{className:"font-heading font-medium text-xs uppercase tracking-[0.24em] text-accent [font-variation-settings:'wdth'_85,'opsz'_12]",children:"Get in touch"},void 0,!1,void 0,this),Y1("h2",{className:"text-center font-heading font-bold text-[clamp(2rem,4vw,3rem)] leading-none tracking-[-0.03em] text-theme-on-dark m-0 [font-variation-settings:'wdth'_90,'opsz'_64]",children:["Say"," ",Y1("em",{className:"font-sans italic font-medium text-accent [font-variation-settings:'opsz'_72]",children:"hi."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1("div",{className:"flex flex-wrap justify-center gap-3.5 mt-2",children:[$.email&&Y1("a",{href:`mailto:${$.email}`,className:"inline-flex items-center gap-2 rounded-full py-3.5 px-7 bg-brand text-theme-inverse border-2 border-brand font-heading font-semibold text-[15px] hover:bg-brand-dark hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:["Get in Touch ",Y1("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.website&&Y1("a",{href:$.website,className:"rounded-full py-3.5 px-7 border-2 border-theme-light text-theme-on-dark font-heading font-semibold text-[15px] hover:bg-brand-dark hover:border-theme hover:-translate-y-0.5 transition-all [font-variation-settings:'wdth'_92,'opsz'_18]",children:"Website"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};var uR={name:"@brains/site-personal",private:!0,version:"0.2.0-alpha.73",description:"Personal site composition package",type:"module",exports:{".":"./src/index.ts"},files:["src"],scripts:{typecheck:"tsc --noEmit",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix"},dependencies:{"@brains/blog":"workspace:*","@brains/identity-service":"workspace:*","@brains/plugins":"workspace:*","@brains/site-composition":"workspace:*","@brains/site-engine":"workspace:*","@brains/site-info":"workspace:*","@brains/templates":"workspace:*","@brains/ui-library":"workspace:*","@brains/utils":"workspace:*",preact:"^10.27.2"},devDependencies:{"@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};var RS=K.object({entityDisplay:K.object({post:K.object({label:K.string().default("Post"),pluralName:K.string().optional()}).default({})}).default({})});class wY extends c2{dependencies=["blog"];constructor($={}){super("personal-site",uR,$,RS)}async onRegister($){$.entities.extendFrontmatterSchema("anchor-profile",p7);let X=this.config.entityDisplay.post,G=`/${X.pluralName??X.label.toLowerCase()+"s"}`,Y=new u7(G);$.entities.registerDataSource(Y);let J=new d7;$.entities.registerDataSource(J);let W=K.object({profile:Q5,posts:K.array(t1),postsListUrl:K.string(),cta:C8}),H=K.object({profile:Q5});$.templates.register({homepage:T0({name:"homepage",description:"Personal homepage with recent blog posts",schema:W,dataSourceId:"personal:homepage",requiredPermission:"public",layout:{component:NY}}),about:T0({name:"about",description:"About page with profile",schema:H,dataSourceId:"personal:about",requiredPermission:"public",layout:{component:VY}})}),this.logger.info("Personal site plugin registered successfully")}async getTools(){return[]}async getResources(){return[]}}function _Y($){return new wY($??{})}var zY=[{id:"home",path:"/",title:"Home",description:"Personal site homepage",layout:"default",navigation:{show:!0,label:"Home",slot:"secondary",priority:10},sections:[{id:"homepage",template:"personal-site:homepage",dataQuery:{}}]},{id:"about",path:"/about",title:"About",description:"About page",layout:"default",navigation:{show:!0,label:"About",slot:"primary",priority:90},sections:[{id:"about",template:"personal-site:about",dataQuery:{}}]}];import{jsxDEV as h1}from"preact/jsx-dev-runtime";function DY({sections:$,siteInfo:X}){let G=[...X.navigation.primary,...X.navigation.secondary].filter((Y)=>Y.label!=="Home");return h1("div",{className:"flex flex-col min-h-screen bg-theme overflow-x-clip",children:[h1(V8,{title:X.title,titleClassName:"font-heading font-bold text-2xl",navigation:X.navigation.primary,showThemeToggle:!0,themeToggleClassName:"bg-theme-toggle text-theme-toggle-icon hover:bg-theme-toggle-hover rounded-[10px]",...X.logo!==void 0?{logo:X.logo}:{}},void 0,!1,void 0,this),h1("main",{className:"flex-grow flex flex-col",children:$},void 0,!1,void 0,this),h1("footer",{className:"bg-footer text-footer border-t border-theme",children:h1("div",{className:"max-w-layout mx-auto flex flex-col md:flex-row justify-between items-center py-8 px-6 md:px-8",children:[h1("div",{className:"flex flex-col gap-1 mb-4 md:mb-0",children:[h1("span",{className:"text-brand font-heading font-bold text-lg",children:X.title},void 0,!1,void 0,this),X.description&&h1("span",{className:"text-theme-muted text-xs",children:X.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h1("nav",{className:"flex flex-wrap justify-center gap-x-6 gap-y-2 mb-4 md:mb-0",children:G.map((Y)=>h1("a",{href:Y.href,className:"text-theme-muted text-[13px] hover:text-brand transition-colors",children:Y.label},Y.href,!1,void 0,this))},void 0,!1,void 0,this),h1("div",{className:"flex items-center gap-4",children:[X.copyright&&h1("span",{className:"text-theme-light text-[11px]",children:X.copyright},void 0,!1,void 0,this),h1(F5,{variant:"footer",size:"sm"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}O0();S();g1();O0();S();O0();S();S();O0();var AS=K.enum(["draft","queued","published"]),dR="publishedAt is required when deck status is published",lR=($)=>$.status==="published"&&!$.publishedAt,PY=($)=>{if(lR($))throw Error(dR)},q5=K.object({title:K.string(),slug:K.string().optional(),description:K.string().optional(),author:K.string().optional(),status:AS,publishedAt:K.string().datetime().optional(),event:K.string().optional(),coverImageId:K.string().optional()}),BS=q5.pick({title:!0,description:!0,status:!0,publishedAt:!0,coverImageId:!0}).extend({slug:K.string()}).superRefine(($,X)=>{if(!lR($))return;X.addIssue({code:K.ZodIssueCode.custom,path:["publishedAt"],message:dR})}),l7=G1.extend({entityType:K.literal("deck"),metadata:BS}),c7=l7.extend({frontmatter:q5,body:K.string()}),E8=c7.extend({url:K.string().optional(),typeLabel:K.string().optional(),listUrl:K.string().optional(),listLabel:K.string().optional(),coverImageUrl:K.string().optional(),coverImageWidth:K.number().optional(),coverImageHeight:K.number().optional()});class LY extends X1{constructor(){super({entityType:"deck",schema:l7,frontmatterSchema:q5,supportsCoverImage:!0})}validateSlideStructure($){if(!/^---$/gm.test($))throw Error("Invalid deck: markdown must contain slide separators (---) to be a valid presentation")}toMarkdown($){let X=this.extractBody($.content);this.validateSlideStructure(X);let G=this.parseFrontMatter($.content,q5);PY(G);let Y={...G,slug:G.slug??$.metadata.slug};return this.buildMarkdown(X,Y)}fromMarkdown($){let X=this.parseFrontmatter($),G=this.extractBody($);PY(X),this.validateSlideStructure(G);let Y=X.slug??f1(X.title),J=X.status;return{entityType:"deck",content:$,metadata:{slug:Y,title:X.title,description:X.description,status:J,publishedAt:X.publishedAt,coverImageId:X.coverImageId}}}generateTitle($){return $.metadata.title}generateSummary($){if($.metadata.description)return $.metadata.description;return`Presentation: ${$.metadata.title}`}generateFrontMatter($){return this.toMarkdown($)}}var I8=new LY;S();g1();var NS=K.object({markdown:K.string().describe("Markdown content with slide separators (---)")}),CY=T0({name:"deck-detail",description:"Render a presentation deck as Reveal.js slides",schema:NS,dataSourceId:"decks:entities",requiredPermission:"public",layout:{component:$Y,fullscreen:!0}});g1();S();var TY=K.object({decks:K.array(c7)}),EY=K.object({decks:K.array(E8),pageTitle:K.string().optional(),pageLabel:K.string().optional()});import{jsxDEV as IY}from"preact/jsx-dev-runtime";var VS="Presentations",jY=({decks:$,pageLabel:X})=>{let G=$.map((J)=>({id:J.id,url:J.url,title:J.frontmatter.title,date:J.frontmatter.publishedAt??J.created,description:J.frontmatter.description}));return IY("div",{className:"deck-list bg-theme",children:IY("div",{className:"container mx-auto max-w-[1100px] px-6 py-16 md:px-12 md:py-24",children:IY(w8,{label:X&&X!=="Decks"?X:VS,items:G},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)};P1();var N30=K.object({message:K.string()});g5();g5();P1();L9();class r7{schema;config;processor=A2();constructor($,X){this.schema=$;this.config=X}getLabels(){let $={};for(let X of this.config.mappings)$[X.key]=X.label;return $}generateBodyTemplate(){if(this.config.mappings.length===0)return"";let $=[];for(let X of this.config.mappings)$.push(`## ${X.label}`,"",`<!-- Write your ${X.label.toLowerCase()} here -->`,"");return $.join(`
786
786
  `).trimEnd()+`
787
787
  `}format($){try{let X=[`# ${this.config.title}`,""];for(let G of this.config.mappings)this.formatField($,G,X,2);return X.join(`
788
788
  `)}catch{throw Error("Failed to format structured content")}}parse($){try{let X=this.processor.parse($),G=this.extractSections(X,2),Y=this.buildDataFromSections(G,this.config.mappings);return this.schema.parse(Y)}catch{throw Error("Failed to parse structured content")}}formatField($,X,G,Y){let J="#".repeat(Y)+" "+X.label,W=this.getValueByPath($,X.key);if(X.type==="custom"&&X.formatter){if(W!==void 0&&W!==null){G.push(J,"");let H=X.formatter(W);if(H)G.push(H,"")}return}switch(X.type){case"string":case"number":G.push(J,String(W??""),"");break;case"object":if(G.push(J),X.children&&W)for(let H of X.children)this.formatField(W,H,G,Y+1);break;case"array":if(G.push(J,""),Array.isArray(W))if(X.itemType==="object"&&X.itemMappings)W.forEach((H,U)=>{if(G.push(`${"#".repeat(Y+1)} ${X.label.slice(0,-1)} ${U+1}`),G.push(""),X.itemMappings)for(let M of X.itemMappings)this.formatField(H,M,G,Y+2)});else{for(let H of W){let U=this.defaultArrayItemFormat(H);G.push(`- ${U}`)}G.push("")}break}}getValueByPath($,X){let G=X.split("."),Y=$;for(let J of G)if(Y&&typeof Y==="object"&&J in Y)Y=Y[J];else return;return Y}defaultArrayItemFormat($){if(typeof $==="string"||typeof $==="number")return String($);return JSON.stringify($)}extractSections($,X){let G=new Map,Y=null,J=[];for(let W of $.children)if(W.type==="heading"&&W.depth===X){if(Y)G.set(Y.toLowerCase(),J);Y=this.getHeadingText(W),J=[]}else if(Y)J.push(W);if(Y)G.set(Y.toLowerCase(),J);return G}extractSubsections($,X){let G=new Map,Y=null,J=[];for(let W of $)if(W.type==="heading"&&W.depth===X){if(Y)G.set(Y.toLowerCase(),J);Y=this.getHeadingText(W),J=[]}else if(Y)J.push(W);if(Y)G.set(Y.toLowerCase(),J);return G}textNodeSchema=K.object({type:K.literal("text"),value:K.string()});extractTextValue($){let X=this.textNodeSchema.safeParse($);return X.success?X.data.value:""}getHeadingText($){return $.children.filter((G)=>G.type==="text").map((G)=>this.extractTextValue(G)).join("")}buildDataFromSections($,X,G=2){let Y={};for(let J of X){let W=$.get(J.label.toLowerCase());if(J.type==="custom"&&J.parser&&W){let H=this.getTextFromSection(W),U=J.parser(H);this.setValueByPath(Y,J.key,U)}else if(J.type==="object"&&J.children&&W){let H=this.extractSubsections(W,G+1),U=this.buildDataFromSections(H,J.children,G+1);this.setValueByPath(Y,J.key,U)}else if(J.type==="array"&&W)if(J.itemType==="object"&&J.itemMappings){let H=this.extractObjectArrayItems(W,G+1,J.itemMappings);this.setValueByPath(Y,J.key,H)}else{let H=this.extractSimpleArrayItems(W);this.setValueByPath(Y,J.key,H)}else if(W){let H=this.getTextFromSection(W),U=J.type==="number"?Number(H):H;this.setValueByPath(Y,J.key,U)}}return Y}setValueByPath($,X,G){let Y=X.split("."),J=$;for(let H=0;H<Y.length-1;H++){let U=Y[H];if(!U)continue;if(!(U in J))J[U]={};J=J[U]}let W=Y[Y.length-1];if(W)J[W]=G}getTextFromSection($){let X=[];for(let G of $)if(G.type==="paragraph"){let Y=this.extractTextFromParagraph(G);if(Y)X.push(Y)}else if(G.type==="list"){let Y=G;for(let J of Y.children){let W=this.extractTextFromListItem(J);if(W)X.push(`- ${W}`)}}return X.join(`
@@ -832,8 +832,8 @@ Guidelines:
832
832
  4. Match the voice of the presentation - if it's opinionated, the description should be too
833
833
 
834
834
  Bad: "An exploration of modern web development practices and their implications"
835
- Good: "Why most web frameworks are solving the wrong problems"`});O0();S();T1();var iR=K.enum(["png","jpg","jpeg","webp","gif","svg"]),oR=K.object({title:K.string().optional(),alt:K.string().optional(),format:iR,width:K.number(),height:K.number(),sourceUrl:K.string().url().optional()}),vY=G1.extend({entityType:K.literal("image"),metadata:oR}),zS=K.object({url:K.string(),alt:K.string(),title:K.string(),width:K.number(),height:K.number()});S();function o7($){let X=$.match(/^data:image\/([a-z+]+);base64,(.+)$/i);if(!X?.[1]||!X[2])throw Error("Invalid image data URL");return{format:X[1].toLowerCase(),base64:X[2]}}var DS={png:"iVBORw",jpg:"/9j/",gif:"R0lGOD",webp:"UklGR"};function xY($){for(let[X,G]of Object.entries(DS))if($.startsWith(G))return X;return null}function n7($){let X=Buffer.from($,"base64");if(X[0]===137&&X[1]===80&&X[2]===78&&X[3]===71){let G=X.readUInt32BE(16),Y=X.readUInt32BE(20);return{width:G,height:Y}}if(X[0]===255&&X[1]===216){let G=2;while(G<X.length-8){if(X[G]!==255){G++;continue}let Y=X[G+1];if(Y===192||Y===194){let W=X.readUInt16BE(G+5);return{width:X.readUInt16BE(G+7),height:W}}let J=X.readUInt16BE(G+2);G+=2+J}}if(X[0]===71&&X[1]===73&&X[2]===70){let G=X.readUInt16LE(6),Y=X.readUInt16LE(8);return{width:G,height:Y}}if(X.length>=30&&X[0]===82&&X[1]===73&&X[2]===70&&X[3]===70){if(X[12]===86&&X[13]===80&&X[14]===56){if(X[15]===32){let G=X[26]??0,Y=X[27]??0,J=X[28]??0,W=X[29]??0,H=(G|Y<<8)&16383,U=(J|W<<8)&16383;return{width:H,height:U}}if(X[15]===76&&X.length>=25){let G=X.readUInt32LE(21),Y=(G&16383)+1,J=(G>>14&16383)+1;return{width:Y,height:J}}}}return null}class bY{entityType="image";schema=vY;toMarkdown($){return $.content}fromMarkdown($){let{format:X,base64:G}=o7($),Y=n7(G);return{entityType:"image",content:$,metadata:{format:X,width:Y?.width??0,height:Y?.height??0}}}extractMetadata($){return $.metadata}parseFrontMatter($,X){return X.parse({})}generateFrontMatter($){return""}getBodyTemplate(){return""}createImageEntity($){let{dataUrl:X,title:G,alt:Y}=$,{format:J,base64:W}=o7(X),H=n7(W),M=xY(W)??J;return{entityType:"image",content:X,metadata:{title:G,alt:Y??G,format:M,width:H?.width??0,height:H?.height??0}}}}var PS=new bY;S();var LS=/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/;async function nR($,X){let G=await X.getEntity({entityType:"image",id:$});if(!G)return null;return{url:G.content,alt:G.metadata.alt??"",title:G.metadata.title??"",width:G.metadata.width,height:G.metadata.height}}function sR($){let X=LS.exec($.content);if(!X?.[1])return;try{let G=aX(X[1]);if(G&&typeof G==="object"&&!Array.isArray(G)){let Y=G.coverImageId;return typeof Y==="string"?Y:void 0}}catch{return}return}async function hY($,X){let G=sR($);if(!G)return;return await nR(G,X)??void 0}L9();var vG0=A5();O0();function j8($){let{metadata:X,content:G}=b0($.content,q6);return{...$,frontmatter:X,body:G}}class yY extends r5{id="decks:entities";name="Deck Entity DataSource";description="Fetches and transforms deck entities for rendering";config={entityType:"deck",defaultSort:[{field:"publishedAt",direction:"desc"}],defaultLimit:100};constructor($){super($);this.logger.debug("DeckDataSource initialized")}transformEntity($){return j8($)}async fetchDetail($,X){let G=await super.fetchDetail($,X),Y=await hY(G.item,X);if(Y){let J=`<!-- .slide: data-background-image="${Y.url}" data-background-opacity="0.4" -->`;G.item={...G.item,body:`${J}
836
- ${G.item.body}`}}return G}buildDetailResult($,X){return{markdown:$.body}}buildListResult($,X,G){return this.logger.debug("Creating deck list data",{deckCount:$.length,firstDeck:$[0]?.id}),{decks:$}}}O0();S();g6();var CS=K.object({prompt:K.string().optional(),title:K.string().optional(),content:K.string().optional(),description:K.string().optional(),author:K.string().optional(),event:K.string().optional(),skipAi:K.boolean().optional()}),GY0=m4.extend({title:K.string().optional(),slug:K.string().optional()});class fY extends i5{constructor($,X){super($,X,{schema:CS,jobTypeName:"deck-generation",entityType:"deck"})}async generate($,X){let{prompt:G,author:Y,event:J,skipAi:W}=$,{title:H,content:U,description:M}=$;if(W){if(!H)this.failEarly("Title is required when skipAi is true");U=U??`# ${H}
835
+ Good: "Why most web frameworks are solving the wrong problems"`});O0();S();T1();var iR=K.enum(["png","jpg","jpeg","webp","gif","svg"]),oR=K.object({title:K.string().optional(),alt:K.string().optional(),format:iR,width:K.number(),height:K.number(),sourceUrl:K.string().url().optional()}),vY=G1.extend({entityType:K.literal("image"),metadata:oR}),zS=K.object({url:K.string(),alt:K.string(),title:K.string(),width:K.number(),height:K.number()});S();function o7($){let X=$.match(/^data:image\/([a-z+]+);base64,(.+)$/i);if(!X?.[1]||!X[2])throw Error("Invalid image data URL");return{format:X[1].toLowerCase(),base64:X[2]}}var DS={png:"iVBORw",jpg:"/9j/",gif:"R0lGOD",webp:"UklGR"};function xY($){for(let[X,G]of Object.entries(DS))if($.startsWith(G))return X;return null}function n7($){let X=Buffer.from($,"base64");if(X[0]===137&&X[1]===80&&X[2]===78&&X[3]===71){let G=X.readUInt32BE(16),Y=X.readUInt32BE(20);return{width:G,height:Y}}if(X[0]===255&&X[1]===216){let G=2;while(G<X.length-8){if(X[G]!==255){G++;continue}let Y=X[G+1];if(Y===192||Y===194){let W=X.readUInt16BE(G+5);return{width:X.readUInt16BE(G+7),height:W}}let J=X.readUInt16BE(G+2);G+=2+J}}if(X[0]===71&&X[1]===73&&X[2]===70){let G=X.readUInt16LE(6),Y=X.readUInt16LE(8);return{width:G,height:Y}}if(X.length>=30&&X[0]===82&&X[1]===73&&X[2]===70&&X[3]===70){if(X[12]===86&&X[13]===80&&X[14]===56){if(X[15]===32){let G=X[26]??0,Y=X[27]??0,J=X[28]??0,W=X[29]??0,H=(G|Y<<8)&16383,U=(J|W<<8)&16383;return{width:H,height:U}}if(X[15]===76&&X.length>=25){let G=X.readUInt32LE(21),Y=(G&16383)+1,J=(G>>14&16383)+1;return{width:Y,height:J}}}}return null}class bY{entityType="image";schema=vY;toMarkdown($){return $.content}fromMarkdown($){let{format:X,base64:G}=o7($),Y=n7(G);return{entityType:"image",content:$,metadata:{format:X,width:Y?.width??0,height:Y?.height??0}}}extractMetadata($){return $.metadata}parseFrontMatter($,X){return X.parse({})}generateFrontMatter($){return""}getBodyTemplate(){return""}createImageEntity($){let{dataUrl:X,title:G,alt:Y}=$,{format:J,base64:W}=o7(X),H=n7(W),M=xY(W)??J;return{entityType:"image",content:X,metadata:{title:G,alt:Y??G,format:M,width:H?.width??0,height:H?.height??0}}}}var PS=new bY;S();var LS=/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/;async function nR($,X){let G=await X.getEntity({entityType:"image",id:$});if(!G)return null;return{url:G.content,alt:G.metadata.alt??"",title:G.metadata.title??"",width:G.metadata.width,height:G.metadata.height}}function sR($){let X=LS.exec($.content);if(!X?.[1])return;try{let G=aX(X[1]);if(G&&typeof G==="object"&&!Array.isArray(G)){let Y=G.coverImageId;return typeof Y==="string"?Y:void 0}}catch{return}return}async function hY($,X){let G=sR($);if(!G)return;return await nR(G,X)??void 0}L9();var vG0=A2();O0();function j8($){let{metadata:X,content:G}=b0($.content,q5);return{...$,frontmatter:X,body:G}}class yY extends r2{id="decks:entities";name="Deck Entity DataSource";description="Fetches and transforms deck entities for rendering";config={entityType:"deck",defaultSort:[{field:"publishedAt",direction:"desc"}],defaultLimit:100};constructor($){super($);this.logger.debug("DeckDataSource initialized")}transformEntity($){return j8($)}async fetchDetail($,X){let G=await super.fetchDetail($,X),Y=await hY(G.item,X);if(Y){let J=`<!-- .slide: data-background-image="${Y.url}" data-background-opacity="0.4" -->`;G.item={...G.item,body:`${J}
836
+ ${G.item.body}`}}return G}buildDetailResult($,X){return{markdown:$.body}}buildListResult($,X,G){return this.logger.debug("Creating deck list data",{deckCount:$.length,firstDeck:$[0]?.id}),{decks:$}}}O0();S();g5();var CS=K.object({prompt:K.string().optional(),title:K.string().optional(),content:K.string().optional(),description:K.string().optional(),author:K.string().optional(),event:K.string().optional(),skipAi:K.boolean().optional()}),GY0=m4.extend({title:K.string().optional(),slug:K.string().optional()});class fY extends i2{constructor($,X){super($,X,{schema:CS,jobTypeName:"deck-generation",entityType:"deck"})}async generate($,X){let{prompt:G,author:Y,event:J,skipAi:W}=$,{title:H,content:U,description:M}=$;if(W){if(!H)this.failEarly("Title is required when skipAi is true");U=U??`# ${H}
837
837
 
838
838
  ---
839
839
 
@@ -856,12 +856,12 @@ Add your conclusion here`,M=M??`Presentation: ${H}`,await this.reportProgress(X,
856
856
  Note: This presentation is for "${J}".`:""}`,P=await this.context.ai.generate({prompt:D,templateName:"decks:generation"});H=H??P.title,U=U??P.content,M=M??P.description,await this.reportProgress(X,{progress:50,message:`Generated deck: "${H}"`})}else if(!M)await this.reportProgress(X,{progress:30,message:"Generating description with AI"}),M=(await this.context.ai.generate({prompt:`Title: ${H}
857
857
 
858
858
  Content:
859
- ${U}`,templateName:"decks:description"})).description,await this.reportProgress(X,{progress:50,message:"Description generated"});else await this.reportProgress(X,{progress:50,message:"Using provided content"});if(!H||!U)this.failEarly("Title and content are required");let Q={slug:f1(H),title:H,status:"draft"},q=await Y8({entityType:"deck",title:H,deriveId:(_)=>_,regeneratePrompt:"Generate a different presentation deck title on the same topic.",context:this.context});if(q!==H)Q.title=q,Q.slug=f1(q);let R={title:Q.title,status:Q.status,slug:Q.slug,description:M,author:Y,event:J},O=Y6(U,R);return{id:q,content:O,metadata:Q,title:q,resultExtras:{title:q,slug:Q.slug},createOptions:{deduplicateId:!0}}}summarizeDataForLog($){return{prompt:$.prompt,title:$.title}}}var aR={name:"@brains/decks",private:!0,version:"0.2.0-alpha.72",description:"Presentation decks plugin for creating and viewing slide presentations",type:"module",exports:{".":"./src/index.ts"},scripts:{typecheck:"tsc --noEmit",test:"bun test",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix",eval:"cd evals && bun run brain-eval"},dependencies:{"@brains/content-formatters":"workspace:*","@brains/contracts":"workspace:*","@brains/image":"workspace:*","@brains/plugins":"workspace:*","@brains/utils":"workspace:*"},devDependencies:{"@brains/app":"workspace:*","@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};class tR extends J6{entityType=I8.entityType;schema=I8.schema;adapter=I8;constructor(){super("decks",aR)}createGenerationHandler($){return new fY(this.logger.child("DeckGenerationJobHandler"),$)}getTemplates(){return{"deck-detail":CY,"deck-list":kY,generation:cR,description:rR}}getDataSources(){return[new yY(this.logger)]}getEntityTypeConfig(){return{weight:1.5}}async onRegister($){await this.registerWithPublishPipeline($),this.subscribeToPublishExecute($),this.registerEvalHandlers($),this.logger.info("Decks plugin registered")}async registerWithPublishPipeline($){await $.messaging.send({type:"publish:register",payload:{entityType:"deck",provider:{name:"internal",publish:async()=>({id:"internal"})}}})}subscribeToPublishExecute($){$.messaging.subscribe("publish:execute",async(X)=>{let{entityType:G,entityId:Y}=X.payload;if(G!=="deck")return{success:!0};try{let J=await $.entityService.getEntity({entityType:"deck",id:Y});if(!J)return await $.messaging.send({type:"publish:report:failure",payload:{entityType:G,entityId:Y,error:`Deck not found: ${Y}`}}),{success:!0};if(J.metadata.status==="published")return{success:!0};let W=new Date().toISOString(),H={...J,metadata:{...J.metadata,status:"published",publishedAt:W}};await $.entityService.updateEntity({entity:{...H,content:this.adapter.toMarkdown(H)}}),await $.messaging.send({type:"publish:report:success",payload:{entityType:G,entityId:Y,result:{id:Y}}})}catch(J){await $.messaging.send({type:"publish:report:failure",payload:{entityType:G,entityId:Y,error:f0(J)}})}return{success:!0}})}registerEvalHandlers($){$.eval.registerHandler("generateDeck",async(X)=>{let G=K.object({prompt:K.string(),event:K.string().optional()}).parse(X);return $.ai.generate({prompt:`${G.prompt}${G.event?`
859
+ ${U}`,templateName:"decks:description"})).description,await this.reportProgress(X,{progress:50,message:"Description generated"});else await this.reportProgress(X,{progress:50,message:"Using provided content"});if(!H||!U)this.failEarly("Title and content are required");let Q={slug:f1(H),title:H,status:"draft"},q=await Y8({entityType:"deck",title:H,deriveId:(_)=>_,regeneratePrompt:"Generate a different presentation deck title on the same topic.",context:this.context});if(q!==H)Q.title=q,Q.slug=f1(q);let R={title:Q.title,status:Q.status,slug:Q.slug,description:M,author:Y,event:J},O=Y5(U,R);return{id:q,content:O,metadata:Q,title:q,resultExtras:{title:q,slug:Q.slug},createOptions:{deduplicateId:!0}}}summarizeDataForLog($){return{prompt:$.prompt,title:$.title}}}var aR={name:"@brains/decks",private:!0,version:"0.2.0-alpha.73",description:"Presentation decks plugin for creating and viewing slide presentations",type:"module",exports:{".":"./src/index.ts"},scripts:{typecheck:"tsc --noEmit",test:"bun test",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix",eval:"cd evals && bun run brain-eval"},dependencies:{"@brains/content-formatters":"workspace:*","@brains/contracts":"workspace:*","@brains/image":"workspace:*","@brains/plugins":"workspace:*","@brains/utils":"workspace:*"},devDependencies:{"@brains/app":"workspace:*","@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};class tR extends J5{entityType=I8.entityType;schema=I8.schema;adapter=I8;constructor(){super("decks",aR)}createGenerationHandler($){return new fY(this.logger.child("DeckGenerationJobHandler"),$)}getTemplates(){return{"deck-detail":CY,"deck-list":kY,generation:cR,description:rR}}getDataSources(){return[new yY(this.logger)]}getEntityTypeConfig(){return{weight:1.5}}async onRegister($){await this.registerWithPublishPipeline($),this.subscribeToPublishExecute($),this.registerEvalHandlers($),this.logger.info("Decks plugin registered")}async registerWithPublishPipeline($){await $.messaging.send({type:"publish:register",payload:{entityType:"deck",provider:{name:"internal",publish:async()=>({id:"internal"})}}})}subscribeToPublishExecute($){$.messaging.subscribe("publish:execute",async(X)=>{let{entityType:G,entityId:Y}=X.payload;if(G!=="deck")return{success:!0};try{let J=await $.entityService.getEntity({entityType:"deck",id:Y});if(!J)return await $.messaging.send({type:"publish:report:failure",payload:{entityType:G,entityId:Y,error:`Deck not found: ${Y}`}}),{success:!0};if(J.metadata.status==="published")return{success:!0};let W=new Date().toISOString(),H={...J,metadata:{...J.metadata,status:"published",publishedAt:W}};await $.entityService.updateEntity({entity:{...H,content:this.adapter.toMarkdown(H)}}),await $.messaging.send({type:"publish:report:success",payload:{entityType:G,entityId:Y,result:{id:Y}}})}catch(J){await $.messaging.send({type:"publish:report:failure",payload:{entityType:G,entityId:Y,error:f0(J)}})}return{success:!0}})}registerEvalHandlers($){$.eval.registerHandler("generateDeck",async(X)=>{let G=K.object({prompt:K.string(),event:K.string().optional()}).parse(X);return $.ai.generate({prompt:`${G.prompt}${G.event?`
860
860
 
861
861
  Note: This presentation is for "${G.event}".`:""}`,templateName:"decks:generation"})}),$.eval.registerHandler("generateDescription",async(X)=>{let G=K.object({title:K.string(),content:K.string()}).parse(X);return $.ai.generate({prompt:`Title: ${G.title}
862
862
 
863
863
  Content:
864
- ${G.content}`,templateName:"decks:description"})})}}g5();S();O0();var s7=o5.extend({expertise:K.array(K.string()).optional().describe("Skills, domains, areas of focus"),currentFocus:K.string().optional().describe("What you're currently working on"),availability:K.string().optional().describe("What you're open to (consulting, speaking, etc.)")}),O6=F2.extend(s7.shape);O0();u6();S();var ES=new p1;class a7{postsListUrl;decksListUrl;id="professional:homepage-list";name="Homepage List DataSource";description="Fetches profile, blog posts, and presentation decks for homepage";constructor($,X){this.postsListUrl=$;this.decksListUrl=X}async fetch($,X,G){let Y=G.entityService,[J,W,H,U]=await Promise.all([M2(Y),Y.listEntities({entityType:"post",options:{limit:20}}),Y.listEntities({entityType:"deck",options:{limit:20}}),T8(Y)]),M=ES.parseProfileBody(J,O6),F=W.sort(z5).slice(0,3).map(l6),Q=H.sort(z5).slice(0,3).map(j8);if(!U.cta)throw Error("CTA not configured in site-info");let q={profile:M,posts:F,decks:Q,postsListUrl:this.postsListUrl,decksListUrl:this.decksListUrl,cta:U.cta,sections:U.sections??{}};return X.parse(q)}}O0();u6();var IS=new p1;class t7{id="professional:about";name="About Page DataSource";description="Fetches full profile data for the about page";async fetch($,X,G){let Y=await M2(G.entityService),W={profile:IS.parseProfileBody(Y,O6)};return X.parse(W)}}import{jsxDEV as E0,Fragment as kS}from"preact/jsx-dev-runtime";var jS="grid md:grid-cols-[14rem_1px_1fr] gap-y-2 gap-x-0 md:gap-16 items-start",SS="border-t md:border-t-0 md:border-l border-rule-strong md:self-stretch",gY=({number:$,title:X,blurb:G,children:Y})=>E0("section",{className:"py-20 border-b border-rule px-6 md:px-12",children:E0("div",{className:"max-w-6xl mx-auto",children:E0("div",{className:jS,children:[E0(qY,{title:X,number:$,blurb:G},void 0,!1,void 0,this),E0("div",{className:SS,"aria-hidden":"true"},void 0,!1,void 0,this),E0("div",{className:"mt-6 md:mt-0",children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),mY=({profile:$,posts:X,decks:G,postsListUrl:Y,decksListUrl:J,cta:W,sections:H})=>{let U=$.tagline||$.description,M=X.map((O)=>({id:O.id,url:O.url,title:O.metadata.title,date:O.metadata.publishedAt||O.created,description:O.frontmatter.excerpt,series:O.frontmatter.seriesName&&O.frontmatter.seriesIndex?{name:O.frontmatter.seriesName,index:O.frontmatter.seriesIndex}:void 0})),F=G.map((O)=>({id:O.id,url:O.url,title:O.frontmatter.title||O.id,date:O.frontmatter.publishedAt??O.created,description:O.frontmatter.description})),Q=$.name||"Home",q=$.intro||$.description||U||"Professional site",R=Boolean($.description)||$.expertise!==void 0&&$.expertise.length>0;return E0(kS,{children:[E0(s0,{title:Q,description:q,ogType:"website"},void 0,!1,void 0,this),E0("div",{className:"homepage-list bg-theme",children:[E0("header",{className:"hero-bg-pattern relative w-full px-6 md:px-12 pt-28 pb-24 md:pt-28 md:pb-24 overflow-hidden border-b border-rule",children:E0("div",{className:"relative z-10 max-w-6xl mx-auto w-full",children:[$.name&&E0("div",{className:"flex items-center gap-[0.6rem] mb-6 font-mono text-[0.7rem] font-medium uppercase tracking-[0.22em] text-accent",children:[E0("span",{className:"w-[18px] h-px bg-accent","aria-hidden":"true"},void 0,!1,void 0,this),E0("span",{children:$.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U&&E0("h1",{className:"font-heading text-[clamp(2.75rem,6.5vw,5.5rem)] font-normal text-heading leading-[1.02] tracking-[-0.025em] max-w-[18ch] [font-variation-settings:'opsz'_144,'SOFT'_30]",children:f7(U,"italic font-normal text-accent [font-variation-settings:'opsz'_144,'SOFT'_80]")},void 0,!1,void 0,this),$.intro&&E0("p",{className:"font-heading font-light text-[clamp(1.1rem,1.8vw,1.4rem)] leading-[1.5] text-theme-muted max-w-[42ch] mt-8 [font-variation-settings:'opsz'_24]",children:f7($.intro,"italic text-accent")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),E0(gY,{number:"01",title:"Essays",blurb:H.essays?.blurb,children:E0(y7,{items:M,viewAllUrl:Y,viewAllLabel:"View all essays"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.length>0&&E0(gY,{number:"02",title:"Presentations",blurb:H.presentations?.blurb,children:E0(y7,{items:F,viewAllUrl:J,viewAllLabel:"View all presentations"},void 0,!1,void 0,this)},void 0,!1,void 0,this),R&&E0(gY,{number:"03",title:"About",blurb:H.about?.blurb,children:E0("div",{className:"flex flex-col gap-8",children:[$.description&&E0("p",{className:"font-heading font-light text-[1.25rem] leading-[1.55] text-theme max-w-[55ch] [font-variation-settings:'opsz'_24,'SOFT'_50]",children:$.description},void 0,!1,void 0,this),$.expertise&&$.expertise.length>0&&E0(OY,{subjects:$.expertise},void 0,!1,void 0,this),E0("a",{href:"/about",className:"mt-6 inline-flex items-center gap-2 font-mono text-[0.7rem] font-medium uppercase tracking-[0.18em] text-accent pb-1 relative before:content-[''] before:absolute before:left-0 before:right-full before:bottom-0 before:h-px before:bg-accent before:transition-[right] before:duration-300 hover:before:right-0",children:["Learn more",E0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),E0(GY,{cta:W,variant:"editorial",socialLinks:$.socialLinks},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as V0,Fragment as vS}from"preact/jsx-dev-runtime";var pY=({profile:$})=>{let X=`About ${$.name||"Me"}`,G=$.description||$.intro||"About page",Y=$.expertise&&$.expertise.length>0||$.currentFocus||$.availability||$.email||$.website||$.socialLinks&&$.socialLinks.length>0;return V0(vS,{children:[V0(s0,{title:X,description:G,ogType:"profile"},void 0,!1,void 0,this),V0("div",{className:"about-page bg-theme",children:[V0("header",{className:"hero-bg-pattern relative w-full py-16 md:py-24 px-6 md:px-12 bg-theme overflow-hidden",children:V0("div",{className:"relative z-10 max-w-4xl mx-auto",children:[V0("h1",{className:"text-5xl md:text-6xl font-semibold mb-6 text-heading",children:["About ",$.name||"Me"]},void 0,!0,void 0,this),$.description&&V0("p",{className:"text-xl md:text-2xl text-theme-muted leading-relaxed",children:$.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),V0("div",{className:"container mx-auto px-6 md:px-12 max-w-4xl py-12 md:py-16",children:[$.story&&V0("section",{className:"content-section-reveal mb-20 md:mb-28",children:V0(o6,{markdown:$.story},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y&&V0("div",{className:"content-section-reveal grid md:grid-cols-2 gap-x-16 gap-y-12",children:[$.expertise&&$.expertise.length>0&&V0("section",{children:[V0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Expertise"},void 0,!1,void 0,this),V0("ul",{className:"flex flex-wrap gap-3",children:$.expertise.map((J,W)=>V0("li",{className:KY({variant:"accent",size:"lg"}),children:J},W,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.currentFocus&&V0("section",{children:[V0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Current Focus"},void 0,!1,void 0,this),V0("p",{className:"text-lg text-theme leading-relaxed",children:$.currentFocus},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.availability&&V0("section",{children:[V0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Availability"},void 0,!1,void 0,this),V0("p",{className:"text-lg text-theme leading-relaxed",children:$.availability},void 0,!1,void 0,this)]},void 0,!0,void 0,this),($.email||$.website||$.socialLinks&&$.socialLinks.length>0)&&V0("section",{children:[V0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Contact"},void 0,!1,void 0,this),V0("div",{className:"space-y-4",children:[$.email&&V0("p",{className:"text-lg",children:V0("a",{href:`mailto:${$.email}`,className:"text-brand hover:text-brand-dark transition-colors",children:$.email},void 0,!1,void 0,this)},void 0,!1,void 0,this),$.website&&V0("p",{className:"text-lg",children:V0("a",{href:$.website,target:"_blank",rel:"noopener noreferrer",className:"text-brand hover:text-brand-dark transition-colors",children:$.website},void 0,!1,void 0,this)},void 0,!1,void 0,this),$.socialLinks&&$.socialLinks.length>0&&V0("div",{className:"flex flex-wrap gap-4 mt-4",children:$.socialLinks.map((J,W)=>V0(e1,{href:J.url,external:!0,variant:"secondary",size:"md",children:J.label||J.platform},W,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as Z1,Fragment as eR}from"preact/jsx-dev-runtime";var uY=()=>{return Z1(eR,{children:[Z1(s0,{title:"Thanks for subscribing!",description:"You've successfully subscribed to the newsletter."},void 0,!1,void 0,this),Z1("div",{className:"min-h-[60vh] flex items-center justify-center px-6",children:Z1("div",{className:"text-center max-w-md",children:[Z1("div",{className:"text-6xl mb-6",children:"\uD83C\uDF89"},void 0,!1,void 0,this),Z1("h1",{className:"text-3xl font-semibold mb-4 text-heading",children:"Thanks for subscribing!"},void 0,!1,void 0,this),Z1("p",{className:"text-lg text-theme-muted mb-8",children:"You'll receive a confirmation email shortly. Check your inbox to confirm your subscription."},void 0,!1,void 0,this),Z1(e1,{href:"/",variant:"primary",children:"Back to Home"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},dY=()=>{return Z1(eR,{children:[Z1(s0,{title:"Subscription failed",description:"There was a problem with your subscription."},void 0,!1,void 0,this),Z1("div",{className:"min-h-[60vh] flex items-center justify-center px-6",children:Z1("div",{className:"text-center max-w-md",children:[Z1("div",{className:"text-6xl mb-6",children:"\uD83D\uDE22"},void 0,!1,void 0,this),Z1("h1",{className:"text-3xl font-semibold mb-4 text-heading",children:"Something went wrong"},void 0,!1,void 0,this),Z1("p",{className:"text-lg text-theme-muted mb-8",children:"We couldn't process your subscription. Please try again or contact us if the problem persists."},void 0,!1,void 0,this),Z1(e1,{href:"/",variant:"primary",children:"Back to Home"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};S();var $A=K.object({label:K.string().describe("Display label for entity type (e.g., 'Essay')"),pluralName:K.string().optional().describe("URL path segment (defaults to label.toLowerCase() + 's')")}),XA=K.object({entityDisplay:K.object({post:$A,deck:$A}).describe("Display metadata for post and deck entity types (required for homepage)")});var GA={name:"@brains/site-professional",private:!0,version:"0.2.0-alpha.72",description:"Professional site composition package",type:"module",exports:{".":"./src/index.ts"},files:["src"],scripts:{typecheck:"tsc --noEmit",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix"},dependencies:{"@brains/blog":"workspace:*","@brains/decks":"workspace:*","@brains/identity-service":"workspace:*","@brains/plugins":"workspace:*","@brains/site-composition":"workspace:*","@brains/site-engine":"workspace:*","@brains/site-info":"workspace:*","@brains/templates":"workspace:*","@brains/ui-library":"workspace:*","@brains/utils":"workspace:*",preact:"^10.27.2"},devDependencies:{"@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};class lY extends c5{dependencies=["blog","decks"];constructor($){super("professional-site",GA,$,XA)}async onRegister($){$.entities.extendFrontmatterSchema("anchor-profile",s7);let X=this.config.entityDisplay.post,G=this.config.entityDisplay.deck,Y=`/${X.pluralName??X.label.toLowerCase()+"s"}`,J=`/${G.pluralName??G.label.toLowerCase()+"s"}`,W=new a7(Y,J);$.entities.registerDataSource(W);let H=new t7;$.entities.registerDataSource(H);let U=K.object({profile:O6,posts:K.array(t1),decks:K.array(E8),postsListUrl:K.string(),decksListUrl:K.string(),cta:C8,sections:K.record(K.string(),r9)}),M=K.object({profile:O6}),F=K.object({});$.templates.register({"homepage-list":T0({name:"homepage-list",description:"Professional homepage with essays and presentations",schema:U,dataSourceId:"professional:homepage-list",requiredPermission:"public",layout:{component:mY}}),about:T0({name:"about",description:"About page with full profile information",schema:M,dataSourceId:"professional:about",requiredPermission:"public",layout:{component:pY}}),"subscribe-thanks":T0({name:"subscribe-thanks",description:"Newsletter subscription success page",schema:F,requiredPermission:"public",layout:{component:uY}}),"subscribe-error":T0({name:"subscribe-error",description:"Newsletter subscription error page",schema:F,requiredPermission:"public",layout:{component:dY}})}),this.logger.info("Professional site plugin registered successfully")}async getTools(){return[]}async getResources(){return[]}}function cY($){return new lY($??{})}var rY=[{id:"home",path:"/",title:"Home",description:"Professional site homepage",layout:"default",navigation:{show:!0,label:"Home",slot:"secondary",priority:10},sections:[{id:"homepage",template:"professional-site:homepage-list",dataQuery:{}}]},{id:"about",path:"/about",title:"About",description:"About page",layout:"default",navigation:{show:!0,label:"About",slot:"primary",priority:90},sections:[{id:"about",template:"professional-site:about",dataQuery:{}}]},{id:"subscribe-thanks",path:"/subscribe/thanks",title:"Thanks for subscribing",description:"Newsletter subscription confirmation",layout:"default",navigation:{show:!1},sections:[{id:"subscribe-thanks",template:"professional-site:subscribe-thanks",dataQuery:{},content:{}}]},{id:"subscribe-error",path:"/subscribe/error",title:"Subscription failed",description:"Newsletter subscription error",layout:"default",navigation:{show:!1},sections:[{id:"subscribe-error",template:"professional-site:subscribe-error",dataQuery:{},content:{}}]}];import{jsxDEV as e7}from"preact/jsx-dev-runtime";function iY({sections:$,siteInfo:X,slots:G,wordmark:Y}){return e7("div",{className:"flex flex-col min-h-screen bg-theme overflow-x-clip",children:[e7(V8,{title:X.title,navigation:X.navigation.primary,showThemeToggle:!0,...X.logo!==void 0?{logo:X.logo}:{},...Y!==void 0?{wordmark:Y}:{}},void 0,!1,void 0,this),e7("main",{className:"flex-grow flex flex-col bg-theme",children:$},void 0,!1,void 0,this),e7(JY,{primaryNavigation:X.navigation.primary,secondaryNavigation:X.navigation.secondary,copyright:X.copyright,socialLinks:X.socialLinks,title:X.title,tagline:X.description,children:G?.getSlot("footer-top").map((J)=>J.render())},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function YA($){return{id:$.id,version:$.version,type:$.type,packageName:$.packageName}}var SJ0=DY;function kJ0($){return YA(_Y($))}var bS=zY,vJ0=bS,xJ0=iY;function bJ0($){return YA(cY($))}var hJ0=rY;export{bS as routes,bJ0 as professionalSitePlugin,hJ0 as professionalRoutes,kJ0 as personalSitePlugin,vJ0 as personalRoutes,xJ0 as ProfessionalLayout,SJ0 as PersonalLayout};
864
+ ${G.content}`,templateName:"decks:description"})})}}g2();S();O0();var s7=o2.extend({expertise:K.array(K.string()).optional().describe("Skills, domains, areas of focus"),currentFocus:K.string().optional().describe("What you're currently working on"),availability:K.string().optional().describe("What you're open to (consulting, speaking, etc.)")}),O5=F6.extend(s7.shape);O0();u5();S();var ES=new p1;class a7{postsListUrl;decksListUrl;id="professional:homepage-list";name="Homepage List DataSource";description="Fetches profile, blog posts, and presentation decks for homepage";constructor($,X){this.postsListUrl=$;this.decksListUrl=X}async fetch($,X,G){let Y=G.entityService,[J,W,H,U]=await Promise.all([M6(Y),Y.listEntities({entityType:"post",options:{limit:20}}),Y.listEntities({entityType:"deck",options:{limit:20}}),T8(Y)]),M=ES.parseProfileBody(J,O5),F=W.sort(z2).slice(0,3).map(l5),Q=H.sort(z2).slice(0,3).map(j8);if(!U.cta)throw Error("CTA not configured in site-info");let q={profile:M,posts:F,decks:Q,postsListUrl:this.postsListUrl,decksListUrl:this.decksListUrl,cta:U.cta,sections:U.sections??{}};return X.parse(q)}}O0();u5();var IS=new p1;class t7{id="professional:about";name="About Page DataSource";description="Fetches full profile data for the about page";async fetch($,X,G){let Y=await M6(G.entityService),W={profile:IS.parseProfileBody(Y,O5)};return X.parse(W)}}import{jsxDEV as E0,Fragment as kS}from"preact/jsx-dev-runtime";var jS="grid md:grid-cols-[14rem_1px_1fr] gap-y-2 gap-x-0 md:gap-16 items-start",SS="border-t md:border-t-0 md:border-l border-rule-strong md:self-stretch",gY=({number:$,title:X,blurb:G,children:Y})=>E0("section",{className:"py-20 border-b border-rule px-6 md:px-12",children:E0("div",{className:"max-w-6xl mx-auto",children:E0("div",{className:jS,children:[E0(qY,{title:X,number:$,blurb:G},void 0,!1,void 0,this),E0("div",{className:SS,"aria-hidden":"true"},void 0,!1,void 0,this),E0("div",{className:"mt-6 md:mt-0",children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),mY=({profile:$,posts:X,decks:G,postsListUrl:Y,decksListUrl:J,cta:W,sections:H})=>{let U=$.tagline||$.description,M=X.map((O)=>({id:O.id,url:O.url,title:O.metadata.title,date:O.metadata.publishedAt||O.created,description:O.frontmatter.excerpt,series:O.frontmatter.seriesName&&O.frontmatter.seriesIndex?{name:O.frontmatter.seriesName,index:O.frontmatter.seriesIndex}:void 0})),F=G.map((O)=>({id:O.id,url:O.url,title:O.frontmatter.title||O.id,date:O.frontmatter.publishedAt??O.created,description:O.frontmatter.description})),Q=$.name||"Home",q=$.intro||$.description||U||"Professional site",R=Boolean($.description)||$.expertise!==void 0&&$.expertise.length>0;return E0(kS,{children:[E0(s0,{title:Q,description:q,ogType:"website"},void 0,!1,void 0,this),E0("div",{className:"homepage-list bg-theme",children:[E0("header",{className:"hero-bg-pattern relative w-full px-6 md:px-12 pt-28 pb-24 md:pt-28 md:pb-24 overflow-hidden border-b border-rule",children:E0("div",{className:"relative z-10 max-w-6xl mx-auto w-full",children:[$.name&&E0("div",{className:"flex items-center gap-[0.6rem] mb-6 font-mono text-[0.7rem] font-medium uppercase tracking-[0.22em] text-accent",children:[E0("span",{className:"w-[18px] h-px bg-accent","aria-hidden":"true"},void 0,!1,void 0,this),E0("span",{children:$.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U&&E0("h1",{className:"font-heading text-[clamp(2.75rem,6.5vw,5.5rem)] font-normal text-heading leading-[1.02] tracking-[-0.025em] max-w-[18ch] [font-variation-settings:'opsz'_144,'SOFT'_30]",children:f7(U,"italic font-normal text-accent [font-variation-settings:'opsz'_144,'SOFT'_80]")},void 0,!1,void 0,this),$.intro&&E0("p",{className:"font-heading font-light text-[clamp(1.1rem,1.8vw,1.4rem)] leading-[1.5] text-theme-muted max-w-[42ch] mt-8 [font-variation-settings:'opsz'_24]",children:f7($.intro,"italic text-accent")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),E0(gY,{number:"01",title:"Essays",blurb:H.essays?.blurb,children:E0(y7,{items:M,viewAllUrl:Y,viewAllLabel:"View all essays"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.length>0&&E0(gY,{number:"02",title:"Presentations",blurb:H.presentations?.blurb,children:E0(y7,{items:F,viewAllUrl:J,viewAllLabel:"View all presentations"},void 0,!1,void 0,this)},void 0,!1,void 0,this),R&&E0(gY,{number:"03",title:"About",blurb:H.about?.blurb,children:E0("div",{className:"flex flex-col gap-8",children:[$.description&&E0("p",{className:"font-heading font-light text-[1.25rem] leading-[1.55] text-theme max-w-[55ch] [font-variation-settings:'opsz'_24,'SOFT'_50]",children:$.description},void 0,!1,void 0,this),$.expertise&&$.expertise.length>0&&E0(OY,{subjects:$.expertise},void 0,!1,void 0,this),E0("a",{href:"/about",className:"mt-6 inline-flex items-center gap-2 font-mono text-[0.7rem] font-medium uppercase tracking-[0.18em] text-accent pb-1 relative before:content-[''] before:absolute before:left-0 before:right-full before:bottom-0 before:h-px before:bg-accent before:transition-[right] before:duration-300 hover:before:right-0",children:["Learn more",E0("span",{"aria-hidden":"true",children:"\u2192"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),E0(GY,{cta:W,variant:"editorial",socialLinks:$.socialLinks},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as V0,Fragment as vS}from"preact/jsx-dev-runtime";var pY=({profile:$})=>{let X=`About ${$.name||"Me"}`,G=$.description||$.intro||"About page",Y=$.expertise&&$.expertise.length>0||$.currentFocus||$.availability||$.email||$.website||$.socialLinks&&$.socialLinks.length>0;return V0(vS,{children:[V0(s0,{title:X,description:G,ogType:"profile"},void 0,!1,void 0,this),V0("div",{className:"about-page bg-theme",children:[V0("header",{className:"hero-bg-pattern relative w-full py-16 md:py-24 px-6 md:px-12 bg-theme overflow-hidden",children:V0("div",{className:"relative z-10 max-w-4xl mx-auto",children:[V0("h1",{className:"text-5xl md:text-6xl font-semibold mb-6 text-heading",children:["About ",$.name||"Me"]},void 0,!0,void 0,this),$.description&&V0("p",{className:"text-xl md:text-2xl text-theme-muted leading-relaxed",children:$.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),V0("div",{className:"container mx-auto px-6 md:px-12 max-w-4xl py-12 md:py-16",children:[$.story&&V0("section",{className:"content-section-reveal mb-20 md:mb-28",children:V0(o5,{markdown:$.story},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y&&V0("div",{className:"content-section-reveal grid md:grid-cols-2 gap-x-16 gap-y-12",children:[$.expertise&&$.expertise.length>0&&V0("section",{children:[V0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Expertise"},void 0,!1,void 0,this),V0("ul",{className:"flex flex-wrap gap-3",children:$.expertise.map((J,W)=>V0("li",{className:KY({variant:"accent",size:"lg"}),children:J},W,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.currentFocus&&V0("section",{children:[V0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Current Focus"},void 0,!1,void 0,this),V0("p",{className:"text-lg text-theme leading-relaxed",children:$.currentFocus},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.availability&&V0("section",{children:[V0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Availability"},void 0,!1,void 0,this),V0("p",{className:"text-lg text-theme leading-relaxed",children:$.availability},void 0,!1,void 0,this)]},void 0,!0,void 0,this),($.email||$.website||$.socialLinks&&$.socialLinks.length>0)&&V0("section",{children:[V0("h2",{className:"text-sm tracking-widest uppercase text-theme-muted mb-6",children:"Contact"},void 0,!1,void 0,this),V0("div",{className:"space-y-4",children:[$.email&&V0("p",{className:"text-lg",children:V0("a",{href:`mailto:${$.email}`,className:"text-brand hover:text-brand-dark transition-colors",children:$.email},void 0,!1,void 0,this)},void 0,!1,void 0,this),$.website&&V0("p",{className:"text-lg",children:V0("a",{href:$.website,target:"_blank",rel:"noopener noreferrer",className:"text-brand hover:text-brand-dark transition-colors",children:$.website},void 0,!1,void 0,this)},void 0,!1,void 0,this),$.socialLinks&&$.socialLinks.length>0&&V0("div",{className:"flex flex-wrap gap-4 mt-4",children:$.socialLinks.map((J,W)=>V0(e1,{href:J.url,external:!0,variant:"secondary",size:"md",children:J.label||J.platform},W,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as Z1,Fragment as eR}from"preact/jsx-dev-runtime";var uY=()=>{return Z1(eR,{children:[Z1(s0,{title:"Thanks for subscribing!",description:"You've successfully subscribed to the newsletter."},void 0,!1,void 0,this),Z1("div",{className:"min-h-[60vh] flex items-center justify-center px-6",children:Z1("div",{className:"text-center max-w-md",children:[Z1("div",{className:"text-6xl mb-6",children:"\uD83C\uDF89"},void 0,!1,void 0,this),Z1("h1",{className:"text-3xl font-semibold mb-4 text-heading",children:"Thanks for subscribing!"},void 0,!1,void 0,this),Z1("p",{className:"text-lg text-theme-muted mb-8",children:"You'll receive a confirmation email shortly. Check your inbox to confirm your subscription."},void 0,!1,void 0,this),Z1(e1,{href:"/",variant:"primary",children:"Back to Home"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},dY=()=>{return Z1(eR,{children:[Z1(s0,{title:"Subscription failed",description:"There was a problem with your subscription."},void 0,!1,void 0,this),Z1("div",{className:"min-h-[60vh] flex items-center justify-center px-6",children:Z1("div",{className:"text-center max-w-md",children:[Z1("div",{className:"text-6xl mb-6",children:"\uD83D\uDE22"},void 0,!1,void 0,this),Z1("h1",{className:"text-3xl font-semibold mb-4 text-heading",children:"Something went wrong"},void 0,!1,void 0,this),Z1("p",{className:"text-lg text-theme-muted mb-8",children:"We couldn't process your subscription. Please try again or contact us if the problem persists."},void 0,!1,void 0,this),Z1(e1,{href:"/",variant:"primary",children:"Back to Home"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};S();var $A=K.object({label:K.string().describe("Display label for entity type (e.g., 'Essay')"),pluralName:K.string().optional().describe("URL path segment (defaults to label.toLowerCase() + 's')")}),XA=K.object({entityDisplay:K.object({post:$A,deck:$A}).describe("Display metadata for post and deck entity types (required for homepage)")});var GA={name:"@brains/site-professional",private:!0,version:"0.2.0-alpha.73",description:"Professional site composition package",type:"module",exports:{".":"./src/index.ts"},files:["src"],scripts:{typecheck:"tsc --noEmit",lint:"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix"},dependencies:{"@brains/blog":"workspace:*","@brains/decks":"workspace:*","@brains/identity-service":"workspace:*","@brains/plugins":"workspace:*","@brains/site-composition":"workspace:*","@brains/site-engine":"workspace:*","@brains/site-info":"workspace:*","@brains/templates":"workspace:*","@brains/ui-library":"workspace:*","@brains/utils":"workspace:*",preact:"^10.27.2"},devDependencies:{"@brains/eslint-config":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};class lY extends c2{dependencies=["blog","decks"];constructor($){super("professional-site",GA,$,XA)}async onRegister($){$.entities.extendFrontmatterSchema("anchor-profile",s7);let X=this.config.entityDisplay.post,G=this.config.entityDisplay.deck,Y=`/${X.pluralName??X.label.toLowerCase()+"s"}`,J=`/${G.pluralName??G.label.toLowerCase()+"s"}`,W=new a7(Y,J);$.entities.registerDataSource(W);let H=new t7;$.entities.registerDataSource(H);let U=K.object({profile:O5,posts:K.array(t1),decks:K.array(E8),postsListUrl:K.string(),decksListUrl:K.string(),cta:C8,sections:K.record(K.string(),r9)}),M=K.object({profile:O5}),F=K.object({});$.templates.register({"homepage-list":T0({name:"homepage-list",description:"Professional homepage with essays and presentations",schema:U,dataSourceId:"professional:homepage-list",requiredPermission:"public",layout:{component:mY}}),about:T0({name:"about",description:"About page with full profile information",schema:M,dataSourceId:"professional:about",requiredPermission:"public",layout:{component:pY}}),"subscribe-thanks":T0({name:"subscribe-thanks",description:"Newsletter subscription success page",schema:F,requiredPermission:"public",layout:{component:uY}}),"subscribe-error":T0({name:"subscribe-error",description:"Newsletter subscription error page",schema:F,requiredPermission:"public",layout:{component:dY}})}),this.logger.info("Professional site plugin registered successfully")}async getTools(){return[]}async getResources(){return[]}}function cY($){return new lY($??{})}var rY=[{id:"home",path:"/",title:"Home",description:"Professional site homepage",layout:"default",navigation:{show:!0,label:"Home",slot:"secondary",priority:10},sections:[{id:"homepage",template:"professional-site:homepage-list",dataQuery:{}}]},{id:"about",path:"/about",title:"About",description:"About page",layout:"default",navigation:{show:!0,label:"About",slot:"primary",priority:90},sections:[{id:"about",template:"professional-site:about",dataQuery:{}}]},{id:"subscribe-thanks",path:"/subscribe/thanks",title:"Thanks for subscribing",description:"Newsletter subscription confirmation",layout:"default",navigation:{show:!1},sections:[{id:"subscribe-thanks",template:"professional-site:subscribe-thanks",dataQuery:{},content:{}}]},{id:"subscribe-error",path:"/subscribe/error",title:"Subscription failed",description:"Newsletter subscription error",layout:"default",navigation:{show:!1},sections:[{id:"subscribe-error",template:"professional-site:subscribe-error",dataQuery:{},content:{}}]}];import{jsxDEV as e7}from"preact/jsx-dev-runtime";function iY({sections:$,siteInfo:X,slots:G,wordmark:Y}){return e7("div",{className:"flex flex-col min-h-screen bg-theme overflow-x-clip",children:[e7(V8,{title:X.title,navigation:X.navigation.primary,showThemeToggle:!0,...X.logo!==void 0?{logo:X.logo}:{},...Y!==void 0?{wordmark:Y}:{}},void 0,!1,void 0,this),e7("main",{className:"flex-grow flex flex-col bg-theme",children:$},void 0,!1,void 0,this),e7(JY,{primaryNavigation:X.navigation.primary,secondaryNavigation:X.navigation.secondary,copyright:X.copyright,socialLinks:X.socialLinks,title:X.title,tagline:X.description,children:G?.getSlot("footer-top").map((J)=>J.render())},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function YA($){return{id:$.id,version:$.version,type:$.type,packageName:$.packageName}}var SJ0=DY;function kJ0($){return YA(_Y($))}var bS=zY,vJ0=bS,xJ0=iY;function bJ0($){return YA(cY($))}var hJ0=rY;export{bS as routes,bJ0 as professionalSitePlugin,hJ0 as professionalRoutes,kJ0 as personalSitePlugin,vJ0 as personalRoutes,xJ0 as ProfessionalLayout,SJ0 as PersonalLayout};
865
865
 
866
- //# debugId=263B03DBC97BAC6E64756E2164756E21
866
+ //# debugId=D53D238D35A5BE3064756E2164756E21
867
867
  //# sourceMappingURL=site.js.map