@rizom/brain 0.2.0-alpha.140 → 0.2.0-alpha.141
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/brain.js +808 -808
- package/dist/entities.d.ts +2 -0
- package/dist/entities.js +2 -2
- package/dist/entities.js.map +4 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins.d.ts +2 -0
- package/dist/plugins.js +26 -26
- package/dist/plugins.js.map +4 -4
- package/dist/services.d.ts +2 -0
- package/dist/services.js +19 -19
- package/dist/services.js.map +4 -4
- package/dist/site.js +5 -5
- package/dist/site.js.map +4 -4
- package/package.json +1 -1
package/dist/services.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var EY=Object.create;var{getPrototypeOf:ZY,defineProperty:K5,getOwnPropertyNames:
|
|
2
|
+
var EY=Object.create;var{getPrototypeOf:ZY,defineProperty:K5,getOwnPropertyNames:TY}=Object;var SY=Object.prototype.hasOwnProperty;function IY($){return this[$]}var CY,bY,D4=($,G,Y)=>{var J=$!=null&&typeof $==="object";if(J){var X=G?CY??=new WeakMap:bY??=new WeakMap,q=X.get($);if(q)return q}Y=$!=null?EY(ZY($)):{};let W=G||!$||!$.__esModule?K5(Y,"default",{value:$,enumerable:!0}):Y;for(let H of TY($))if(!SY.call(W,H))K5(W,H,{get:IY.bind($,H),enumerable:!0});if(J)X.set($,W);return W};var v=($,G)=>()=>(G||$((G={exports:{}}).exports,G),G.exports);var xY=($)=>$;function hY($,G){this[$]=xY.bind(null,G)}var e6=($,G)=>{for(var Y in G)K5($,Y,{get:G[Y],enumerable:!0,configurable:!0,set:hY.bind(G,Y)})};var q2=import.meta.require;var i0=v((UR,V$)=>{var HX=Object.prototype.toString;V$.exports=function(G){if(G===void 0)return"undefined";if(G===null)return"null";var Y=typeof G;if(Y==="boolean")return"boolean";if(Y==="string")return"string";if(Y==="number")return"number";if(Y==="symbol")return"symbol";if(Y==="function")return QX(G)?"generatorfunction":"function";if(VX(G))return"array";if(zX(G))return"buffer";if(KX(G))return"arguments";if(MX(G))return"date";if(UX(G))return"error";if(DX(G))return"regexp";switch(H$(G)){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(RX(G))return"generator";switch(Y=HX.call(G),Y){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 Y.slice(8,-1).toLowerCase().replace(/\s/g,"")};function H$($){return typeof $.constructor==="function"?$.constructor.name:null}function VX($){if(Array.isArray)return Array.isArray($);return $ instanceof Array}function UX($){return $ instanceof Error||typeof $.message==="string"&&$.constructor&&typeof $.constructor.stackTraceLimit==="number"}function MX($){if($ instanceof Date)return!0;return typeof $.toDateString==="function"&&typeof $.getDate==="function"&&typeof $.setDate==="function"}function DX($){if($ instanceof RegExp)return!0;return typeof $.flags==="string"&&typeof $.ignoreCase==="boolean"&&typeof $.multiline==="boolean"&&typeof $.global==="boolean"}function QX($,G){return H$($)==="GeneratorFunction"}function RX($){return typeof $.throw==="function"&&typeof $.return==="function"&&typeof $.next==="function"}function KX($){try{if(typeof $.length==="number"&&typeof $.callee==="function")return!0}catch(G){if(G.message.indexOf("callee")!==-1)return!0}return!1}function zX($){if($.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var M$=v((MR,U$)=>{/*!
|
|
3
3
|
* is-extendable <https://github.com/jonschlinkert/is-extendable>
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2015, Jon Schlinkert.
|
|
6
6
|
* Licensed under the MIT License.
|
|
7
|
-
*/U$.exports=function(G){return typeof G<"u"&&G!==null&&(typeof G==="object"||typeof G==="function")}});var R$=v((DR,Q$)=>{var D$=M$();Q$.exports=function(G){if(!D$(G))G={};var Y=arguments.length;for(var J=1;J<Y;J++){var X=arguments[J];if(D$(X))AX(G,X)}return G};function AX($,G){for(var Y in G)if(OX(G,Y))$[Y]=G[Y]}function OX($,G){return Object.prototype.hasOwnProperty.call($,G)}});var A$=v((QR,z$)=>{var FX=i0(),_X=R$();z$.exports=function($,G){if(typeof G==="function")G={parse:G};var Y=BX($),J={section_delimiter:"---",parse:jX},X=_X({},J,G),q=X.section_delimiter,W=Y.content.split(/\r?\n/),H=null,V=K$(),U=[],M=[];function R(P){Y.content=P,H=[],U=[]}function z(P){if(M.length)V.key=NX(M[0],q),V.content=P,X.parse(V,H),H.push(V),V=K$(),U=[],M=[]}for(var K=0;K<W.length;K++){var Z=W[K],
|
|
7
|
+
*/U$.exports=function(G){return typeof G<"u"&&G!==null&&(typeof G==="object"||typeof G==="function")}});var R$=v((DR,Q$)=>{var D$=M$();Q$.exports=function(G){if(!D$(G))G={};var Y=arguments.length;for(var J=1;J<Y;J++){var X=arguments[J];if(D$(X))AX(G,X)}return G};function AX($,G){for(var Y in G)if(OX(G,Y))$[Y]=G[Y]}function OX($,G){return Object.prototype.hasOwnProperty.call($,G)}});var A$=v((QR,z$)=>{var FX=i0(),_X=R$();z$.exports=function($,G){if(typeof G==="function")G={parse:G};var Y=BX($),J={section_delimiter:"---",parse:jX},X=_X({},J,G),q=X.section_delimiter,W=Y.content.split(/\r?\n/),H=null,V=K$(),U=[],M=[];function R(P){Y.content=P,H=[],U=[]}function z(P){if(M.length)V.key=NX(M[0],q),V.content=P,X.parse(V,H),H.push(V),V=K$(),U=[],M=[]}for(var K=0;K<W.length;K++){var Z=W[K],S=M.length,I=Z.trim();if(wX(I,q)){if(I.length===3&&K!==0){if(S===0||S===2){U.push(Z);continue}M.push(I),V.data=U.join(`
|
|
8
8
|
`),U=[];continue}if(H===null)R(U.join(`
|
|
9
|
-
`));if(
|
|
9
|
+
`));if(S===2)z(U.join(`
|
|
10
10
|
`));M.push(I);continue}U.push(Z)}if(H===null)R(U.join(`
|
|
11
11
|
`));else z(U.join(`
|
|
12
|
-
`));return Y.sections=H,Y};function wX($,G){if($.slice(0,G.length)!==G)return!1;if($.charAt(G.length+1)===G.slice(-1))return!1;return!0}function BX($){if(FX($)!=="object")$={content:$};if(typeof $.content!=="string"&&!LX($.content))throw TypeError("expected a buffer or string");return $.content=$.content.toString(),$.sections=[],$}function NX($,G){return $?$.slice(G.length).trim():""}function K$(){return{key:"",data:"",content:""}}function jX($){return $}function LX($){if($&&$.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var g2=v((IX,k2)=>{function O$($){return typeof $>"u"||$===null}function PX($){return typeof $==="object"&&$!==null}function EX($){if(Array.isArray($))return $;else if(O$($))return[];return[$]}function ZX($,G){var Y,J,X,q;if(G){q=Object.keys(G);for(Y=0,J=q.length;Y<J;Y+=1)X=q[Y],$[X]=G[X]}return $}function
|
|
12
|
+
`));return Y.sections=H,Y};function wX($,G){if($.slice(0,G.length)!==G)return!1;if($.charAt(G.length+1)===G.slice(-1))return!1;return!0}function BX($){if(FX($)!=="object")$={content:$};if(typeof $.content!=="string"&&!LX($.content))throw TypeError("expected a buffer or string");return $.content=$.content.toString(),$.sections=[],$}function NX($,G){return $?$.slice(G.length).trim():""}function K$(){return{key:"",data:"",content:""}}function jX($){return $}function LX($){if($&&$.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var g2=v((IX,k2)=>{function O$($){return typeof $>"u"||$===null}function PX($){return typeof $==="object"&&$!==null}function EX($){if(Array.isArray($))return $;else if(O$($))return[];return[$]}function ZX($,G){var Y,J,X,q;if(G){q=Object.keys(G);for(Y=0,J=q.length;Y<J;Y+=1)X=q[Y],$[X]=G[X]}return $}function TX($,G){var Y="",J;for(J=0;J<G;J+=1)Y+=$;return Y}function SX($){return $===0&&Number.NEGATIVE_INFINITY===1/$}IX.isNothing=O$;IX.isObject=PX;IX.toArray=EX;IX.repeat=TX;IX.isNegativeZero=SX;IX.extend=ZX});var K0=v((RR,F$)=>{function o0($,G){if(Error.call(this),this.name="YAMLException",this.reason=$,this.mark=G,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}o0.prototype=Object.create(Error.prototype);o0.prototype.constructor=o0;o0.prototype.toString=function(G){var Y=this.name+": ";if(Y+=this.reason||"(unknown reason)",!G&&this.mark)Y+=" "+this.mark.toString();return Y};F$.exports=o0});var B$=v((KR,w$)=>{var _$=g2();function C5($,G,Y,J,X){this.name=$,this.buffer=G,this.position=Y,this.line=J,this.column=X}C5.prototype.getSnippet=function(G,Y){var J,X,q,W,H;if(!this.buffer)return null;G=G||4,Y=Y||75,J="",X=this.position;while(X>0&&`\x00\r
|
|
13
13
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(X-1))===-1)if(X-=1,this.position-X>Y/2-1){J=" ... ",X+=5;break}q="",W=this.position;while(W<this.buffer.length&&`\x00\r
|
|
14
14
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(W))===-1)if(W+=1,W-this.position>Y/2-1){q=" ... ",W-=5;break}return H=this.buffer.slice(X,W),_$.repeat(" ",G)+J+H+q+`
|
|
15
15
|
`+_$.repeat(" ",G+this.position-X+J.length)+"^"};C5.prototype.toString=function(G){var Y,J="";if(this.name)J+='in "'+this.name+'" ';if(J+="at line "+(this.line+1)+", column "+(this.column+1),!G){if(Y=this.getSnippet(),Y)J+=`:
|
|
16
|
-
`+Y}return J};w$.exports=C5});var R1=v((zR,j$)=>{var N$=K0(),vX=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],yX=["scalar","sequence","mapping"];function mX($){var G={};if($!==null)Object.keys($).forEach(function(Y){$[Y].forEach(function(J){G[String(J)]=Y})});return G}function fX($,G){if(G=G||{},Object.keys(G).forEach(function(Y){if(vX.indexOf(Y)===-1)throw new N$('Unknown option "'+Y+'" is met in definition of "'+$+'" YAML type.')}),this.tag=$,this.kind=G.kind||null,this.resolve=G.resolve||function(){return!0},this.construct=G.construct||function(Y){return Y},this.instanceOf=G.instanceOf||null,this.predicate=G.predicate||null,this.represent=G.represent||null,this.defaultStyle=G.defaultStyle||null,this.styleAliases=mX(G.styleAliases||null),yX.indexOf(this.kind)===-1)throw new N$('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}j$.exports=fX});var v2=v((AR,P$)=>{var L$=g2(),E4=K0(),pX=R1();function b5($,G,Y){var J=[];return $.include.forEach(function(X){Y=b5(X,G,Y)}),$[G].forEach(function(X){Y.forEach(function(q,W){if(q.tag===X.tag&&q.kind===X.kind)J.push(W)}),Y.push(X)}),Y.filter(function(X,q){return J.indexOf(q)===-1})}function uX(){var $={scalar:{},sequence:{},mapping:{},fallback:{}},G,Y;function J(X){$[X.kind][X.tag]=$.fallback[X.tag]=X}for(G=0,Y=arguments.length;G<Y;G+=1)arguments[G].forEach(J);return $}function z0($){this.include=$.include||[],this.implicit=$.implicit||[],this.explicit=$.explicit||[],this.implicit.forEach(function(G){if(G.loadKind&&G.loadKind!=="scalar")throw new E4("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=b5(this,"implicit",[]),this.compiledExplicit=b5(this,"explicit",[]),this.compiledTypeMap=uX(this.compiledImplicit,this.compiledExplicit)}z0.DEFAULT=null;z0.create=function(){var G,Y;switch(arguments.length){case 1:G=z0.DEFAULT,Y=arguments[0];break;case 2:G=arguments[0],Y=arguments[1];break;default:throw new E4("Wrong number of arguments for Schema.create function")}if(G=L$.toArray(G),Y=L$.toArray(Y),!G.every(function(J){return J instanceof z0}))throw new E4("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!Y.every(function(J){return J instanceof pX}))throw new E4("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new z0({include:G,explicit:Y})};P$.exports=z0});var Z$=v((OR,E$)=>{var lX=R1();E$.exports=new lX("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}})});var
|
|
17
|
-
\r`;function P3($){if($===null)return!1;var G,Y,J=0,X=$.length,q=g5;for(Y=0;Y<X;Y++){if(G=q.indexOf($.charAt(Y)),G>64)continue;if(G<0)return!1;J+=6}return J%8===0}function E3($){var G,Y,J=$.replace(/[\r\n=]/g,""),X=J.length,q=g5,W=0,H=[];for(G=0;G<X;G++){if(G%4===0&&G)H.push(W>>16&255),H.push(W>>8&255),H.push(W&255);W=W<<6|q.indexOf(J.charAt(G))}if(Y=X%4*6,Y===0)H.push(W>>16&255),H.push(W>>8&255),H.push(W&255);else if(Y===18)H.push(W>>10&255),H.push(W>>2&255);else if(Y===12)H.push(W>>4&255);if(y2)return y2.from?y2.from(H):new y2(H);return H}function Z3($){var G="",Y=0,J,X,q=$.length,W=g5;for(J=0;J<q;J++){if(J%3===0&&J)G+=W[Y>>18&63],G+=W[Y>>12&63],G+=W[Y>>6&63],G+=W[Y&63];Y=(Y<<8)+$[J]}if(X=q%3,X===0)G+=W[Y>>18&63],G+=W[Y>>12&63],G+=W[Y>>6&63],G+=W[Y&63];else if(X===2)G+=W[Y>>10&63],G+=W[Y>>4&63],G+=W[Y<<2&63],G+=W[64];else if(X===1)G+=W[Y>>2&63],G+=W[Y<<4&63],G+=W[64],G+=W[64];return G}function
|
|
18
|
-
`:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function Rq($){if($<=65535)return String.fromCharCode($);return String.fromCharCode(($-65536>>10)+55296,($-65536&1023)+56320)}function P7($,G,Y){if(G==="__proto__")Object.defineProperty($,G,{configurable:!0,enumerable:!0,writable:!0,value:Y});else $[G]=Y}var E7=Array(256),Z7=Array(256);for(O2=0;O2<256;O2++)E7[O2]=z7(O2)?1:0,Z7[O2]=z7(O2);var O2;function Kq($,G){this.input=$,this.filename=G.filename||null,this.schema=G.schema||qq,this.onWarning=G.onWarning||null,this.legacy=G.legacy||!1,this.json=G.json||!1,this.listener=G.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
|
|
19
|
-
`,G-1)}function zq($,G,Y){var J,X,q,W,H,V,U,M,R=$.kind,z=$.result,K;if(K=$.input.charCodeAt($.position),
|
|
16
|
+
`+Y}return J};w$.exports=C5});var R1=v((zR,j$)=>{var N$=K0(),vX=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],yX=["scalar","sequence","mapping"];function mX($){var G={};if($!==null)Object.keys($).forEach(function(Y){$[Y].forEach(function(J){G[String(J)]=Y})});return G}function fX($,G){if(G=G||{},Object.keys(G).forEach(function(Y){if(vX.indexOf(Y)===-1)throw new N$('Unknown option "'+Y+'" is met in definition of "'+$+'" YAML type.')}),this.tag=$,this.kind=G.kind||null,this.resolve=G.resolve||function(){return!0},this.construct=G.construct||function(Y){return Y},this.instanceOf=G.instanceOf||null,this.predicate=G.predicate||null,this.represent=G.represent||null,this.defaultStyle=G.defaultStyle||null,this.styleAliases=mX(G.styleAliases||null),yX.indexOf(this.kind)===-1)throw new N$('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}j$.exports=fX});var v2=v((AR,P$)=>{var L$=g2(),E4=K0(),pX=R1();function b5($,G,Y){var J=[];return $.include.forEach(function(X){Y=b5(X,G,Y)}),$[G].forEach(function(X){Y.forEach(function(q,W){if(q.tag===X.tag&&q.kind===X.kind)J.push(W)}),Y.push(X)}),Y.filter(function(X,q){return J.indexOf(q)===-1})}function uX(){var $={scalar:{},sequence:{},mapping:{},fallback:{}},G,Y;function J(X){$[X.kind][X.tag]=$.fallback[X.tag]=X}for(G=0,Y=arguments.length;G<Y;G+=1)arguments[G].forEach(J);return $}function z0($){this.include=$.include||[],this.implicit=$.implicit||[],this.explicit=$.explicit||[],this.implicit.forEach(function(G){if(G.loadKind&&G.loadKind!=="scalar")throw new E4("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=b5(this,"implicit",[]),this.compiledExplicit=b5(this,"explicit",[]),this.compiledTypeMap=uX(this.compiledImplicit,this.compiledExplicit)}z0.DEFAULT=null;z0.create=function(){var G,Y;switch(arguments.length){case 1:G=z0.DEFAULT,Y=arguments[0];break;case 2:G=arguments[0],Y=arguments[1];break;default:throw new E4("Wrong number of arguments for Schema.create function")}if(G=L$.toArray(G),Y=L$.toArray(Y),!G.every(function(J){return J instanceof z0}))throw new E4("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!Y.every(function(J){return J instanceof pX}))throw new E4("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new z0({include:G,explicit:Y})};P$.exports=z0});var Z$=v((OR,E$)=>{var lX=R1();E$.exports=new lX("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}})});var S$=v((FR,T$)=>{var rX=R1();T$.exports=new rX("tag:yaml.org,2002:seq",{kind:"sequence",construct:function($){return $!==null?$:[]}})});var C$=v((_R,I$)=>{var cX=R1();I$.exports=new cX("tag:yaml.org,2002:map",{kind:"mapping",construct:function($){return $!==null?$:{}}})});var Z4=v((wR,b$)=>{var dX=v2();b$.exports=new dX({explicit:[Z$(),S$(),C$()]})});var h$=v((BR,x$)=>{var iX=R1();function oX($){if($===null)return!0;var G=$.length;return G===1&&$==="~"||G===4&&($==="null"||$==="Null"||$==="NULL")}function nX(){return null}function aX($){return $===null}x$.exports=new iX("tag:yaml.org,2002:null",{kind:"scalar",resolve:oX,construct:nX,predicate:aX,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var g$=v((NR,k$)=>{var sX=R1();function tX($){if($===null)return!1;var G=$.length;return G===4&&($==="true"||$==="True"||$==="TRUE")||G===5&&($==="false"||$==="False"||$==="FALSE")}function eX($){return $==="true"||$==="True"||$==="TRUE"}function $3($){return Object.prototype.toString.call($)==="[object Boolean]"}k$.exports=new sX("tag:yaml.org,2002:bool",{kind:"scalar",resolve:tX,construct:eX,predicate:$3,represent:{lowercase:function($){return $?"true":"false"},uppercase:function($){return $?"TRUE":"FALSE"},camelcase:function($){return $?"True":"False"}},defaultStyle:"lowercase"})});var y$=v((jR,v$)=>{var G3=g2(),Y3=R1();function J3($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function X3($){return 48<=$&&$<=55}function q3($){return 48<=$&&$<=57}function W3($){if($===null)return!1;var G=$.length,Y=0,J=!1,X;if(!G)return!1;if(X=$[Y],X==="-"||X==="+")X=$[++Y];if(X==="0"){if(Y+1===G)return!0;if(X=$[++Y],X==="b"){Y++;for(;Y<G;Y++){if(X=$[Y],X==="_")continue;if(X!=="0"&&X!=="1")return!1;J=!0}return J&&X!=="_"}if(X==="x"){Y++;for(;Y<G;Y++){if(X=$[Y],X==="_")continue;if(!J3($.charCodeAt(Y)))return!1;J=!0}return J&&X!=="_"}for(;Y<G;Y++){if(X=$[Y],X==="_")continue;if(!X3($.charCodeAt(Y)))return!1;J=!0}return J&&X!=="_"}if(X==="_")return!1;for(;Y<G;Y++){if(X=$[Y],X==="_")continue;if(X===":")break;if(!q3($.charCodeAt(Y)))return!1;J=!0}if(!J||X==="_")return!1;if(X!==":")return!0;return/^(:[0-5]?[0-9])+$/.test($.slice(Y))}function H3($){var G=$,Y=1,J,X,q=[];if(G.indexOf("_")!==-1)G=G.replace(/_/g,"");if(J=G[0],J==="-"||J==="+"){if(J==="-")Y=-1;G=G.slice(1),J=G[0]}if(G==="0")return 0;if(J==="0"){if(G[1]==="b")return Y*parseInt(G.slice(2),2);if(G[1]==="x")return Y*parseInt(G,16);return Y*parseInt(G,8)}if(G.indexOf(":")!==-1)return G.split(":").forEach(function(W){q.unshift(parseInt(W,10))}),G=0,X=1,q.forEach(function(W){G+=W*X,X*=60}),Y*G;return Y*parseInt(G,10)}function V3($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!G3.isNegativeZero($))}v$.exports=new Y3("tag:yaml.org,2002:int",{kind:"scalar",resolve:W3,construct:H3,predicate:V3,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 p$=v((LR,f$)=>{var m$=g2(),U3=R1(),M3=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 D3($){if($===null)return!1;if(!M3.test($)||$[$.length-1]==="_")return!1;return!0}function Q3($){var G,Y,J,X;if(G=$.replace(/_/g,"").toLowerCase(),Y=G[0]==="-"?-1:1,X=[],"+-".indexOf(G[0])>=0)G=G.slice(1);if(G===".inf")return Y===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(G===".nan")return NaN;else if(G.indexOf(":")>=0)return G.split(":").forEach(function(q){X.unshift(parseFloat(q,10))}),G=0,J=1,X.forEach(function(q){G+=q*J,J*=60}),Y*G;return Y*parseFloat(G,10)}var R3=/^[-+]?[0-9]+e/;function K3($,G){var Y;if(isNaN($))switch(G){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(G){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(G){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(m$.isNegativeZero($))return"-0.0";return Y=$.toString(10),R3.test(Y)?Y.replace("e",".e"):Y}function z3($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||m$.isNegativeZero($))}f$.exports=new U3("tag:yaml.org,2002:float",{kind:"scalar",resolve:D3,construct:Q3,predicate:z3,represent:K3,defaultStyle:"lowercase"})});var x5=v((PR,u$)=>{var A3=v2();u$.exports=new A3({include:[Z4()],implicit:[h$(),g$(),y$(),p$()]})});var h5=v((ER,l$)=>{var O3=v2();l$.exports=new O3({include:[x5()]})});var i$=v((ZR,d$)=>{var F3=R1(),r$=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),c$=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 _3($){if($===null)return!1;if(r$.exec($)!==null)return!0;if(c$.exec($)!==null)return!0;return!1}function w3($){var G,Y,J,X,q,W,H,V=0,U=null,M,R,z;if(G=r$.exec($),G===null)G=c$.exec($);if(G===null)throw Error("Date resolve error");if(Y=+G[1],J=+G[2]-1,X=+G[3],!G[4])return new Date(Date.UTC(Y,J,X));if(q=+G[4],W=+G[5],H=+G[6],G[7]){V=G[7].slice(0,3);while(V.length<3)V+="0";V=+V}if(G[9]){if(M=+G[10],R=+(G[11]||0),U=(M*60+R)*60000,G[9]==="-")U=-U}if(z=new Date(Date.UTC(Y,J,X,q,W,H,V)),U)z.setTime(z.getTime()-U);return z}function B3($){return $.toISOString()}d$.exports=new F3("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:_3,construct:w3,instanceOf:Date,represent:B3})});var n$=v((TR,o$)=>{var N3=R1();function j3($){return $==="<<"||$===null}o$.exports=new N3("tag:yaml.org,2002:merge",{kind:"scalar",resolve:j3})});var s$=v((SR,a$)=>{var y2;try{k5=q2,y2=k5("buffer").Buffer}catch($){}var k5,L3=R1(),g5=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
17
|
+
\r`;function P3($){if($===null)return!1;var G,Y,J=0,X=$.length,q=g5;for(Y=0;Y<X;Y++){if(G=q.indexOf($.charAt(Y)),G>64)continue;if(G<0)return!1;J+=6}return J%8===0}function E3($){var G,Y,J=$.replace(/[\r\n=]/g,""),X=J.length,q=g5,W=0,H=[];for(G=0;G<X;G++){if(G%4===0&&G)H.push(W>>16&255),H.push(W>>8&255),H.push(W&255);W=W<<6|q.indexOf(J.charAt(G))}if(Y=X%4*6,Y===0)H.push(W>>16&255),H.push(W>>8&255),H.push(W&255);else if(Y===18)H.push(W>>10&255),H.push(W>>2&255);else if(Y===12)H.push(W>>4&255);if(y2)return y2.from?y2.from(H):new y2(H);return H}function Z3($){var G="",Y=0,J,X,q=$.length,W=g5;for(J=0;J<q;J++){if(J%3===0&&J)G+=W[Y>>18&63],G+=W[Y>>12&63],G+=W[Y>>6&63],G+=W[Y&63];Y=(Y<<8)+$[J]}if(X=q%3,X===0)G+=W[Y>>18&63],G+=W[Y>>12&63],G+=W[Y>>6&63],G+=W[Y&63];else if(X===2)G+=W[Y>>10&63],G+=W[Y>>4&63],G+=W[Y<<2&63],G+=W[64];else if(X===1)G+=W[Y>>2&63],G+=W[Y<<4&63],G+=W[64],G+=W[64];return G}function T3($){return y2&&y2.isBuffer($)}a$.exports=new L3("tag:yaml.org,2002:binary",{kind:"scalar",resolve:P3,construct:E3,predicate:T3,represent:Z3})});var e$=v((CR,t$)=>{var S3=R1(),I3=Object.prototype.hasOwnProperty,C3=Object.prototype.toString;function b3($){if($===null)return!0;var G=[],Y,J,X,q,W,H=$;for(Y=0,J=H.length;Y<J;Y+=1){if(X=H[Y],W=!1,C3.call(X)!=="[object Object]")return!1;for(q in X)if(I3.call(X,q))if(!W)W=!0;else return!1;if(!W)return!1;if(G.indexOf(q)===-1)G.push(q);else return!1}return!0}function x3($){return $!==null?$:[]}t$.exports=new S3("tag:yaml.org,2002:omap",{kind:"sequence",resolve:b3,construct:x3})});var G7=v((bR,$7)=>{var h3=R1(),k3=Object.prototype.toString;function g3($){if($===null)return!0;var G,Y,J,X,q,W=$;q=Array(W.length);for(G=0,Y=W.length;G<Y;G+=1){if(J=W[G],k3.call(J)!=="[object Object]")return!1;if(X=Object.keys(J),X.length!==1)return!1;q[G]=[X[0],J[X[0]]]}return!0}function v3($){if($===null)return[];var G,Y,J,X,q,W=$;q=Array(W.length);for(G=0,Y=W.length;G<Y;G+=1)J=W[G],X=Object.keys(J),q[G]=[X[0],J[X[0]]];return q}$7.exports=new h3("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:g3,construct:v3})});var J7=v((xR,Y7)=>{var y3=R1(),m3=Object.prototype.hasOwnProperty;function f3($){if($===null)return!0;var G,Y=$;for(G in Y)if(m3.call(Y,G)){if(Y[G]!==null)return!1}return!0}function p3($){return $!==null?$:{}}Y7.exports=new y3("tag:yaml.org,2002:set",{kind:"mapping",resolve:f3,construct:p3})});var A0=v((hR,X7)=>{var u3=v2();X7.exports=new u3({include:[h5()],implicit:[i$(),n$()],explicit:[s$(),e$(),G7(),J7()]})});var W7=v((kR,q7)=>{var l3=R1();function r3(){return!0}function c3(){return}function d3(){return""}function i3($){return typeof $>"u"}q7.exports=new l3("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:r3,construct:c3,predicate:i3,represent:d3})});var V7=v((gR,H7)=>{var o3=R1();function n3($){if($===null)return!1;if($.length===0)return!1;var G=$,Y=/\/([gim]*)$/.exec($),J="";if(G[0]==="/"){if(Y)J=Y[1];if(J.length>3)return!1;if(G[G.length-J.length-1]!=="/")return!1}return!0}function a3($){var G=$,Y=/\/([gim]*)$/.exec($),J="";if(G[0]==="/"){if(Y)J=Y[1];G=G.slice(1,G.length-J.length-1)}return new RegExp(G,J)}function s3($){var G="/"+$.source+"/";if($.global)G+="g";if($.multiline)G+="m";if($.ignoreCase)G+="i";return G}function t3($){return Object.prototype.toString.call($)==="[object RegExp]"}H7.exports=new o3("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:n3,construct:a3,predicate:t3,represent:s3})});var M7=v((vR,U7)=>{var T4;try{v5=q2,T4=v5("esprima")}catch($){if(typeof window<"u")T4=window.esprima}var v5,e3=R1();function $q($){if($===null)return!1;try{var G="("+$+")",Y=T4.parse(G,{range:!0});if(Y.type!=="Program"||Y.body.length!==1||Y.body[0].type!=="ExpressionStatement"||Y.body[0].expression.type!=="ArrowFunctionExpression"&&Y.body[0].expression.type!=="FunctionExpression")return!1;return!0}catch(J){return!1}}function Gq($){var G="("+$+")",Y=T4.parse(G,{range:!0}),J=[],X;if(Y.type!=="Program"||Y.body.length!==1||Y.body[0].type!=="ExpressionStatement"||Y.body[0].expression.type!=="ArrowFunctionExpression"&&Y.body[0].expression.type!=="FunctionExpression")throw Error("Failed to resolve function");if(Y.body[0].expression.params.forEach(function(q){J.push(q.name)}),X=Y.body[0].expression.body.range,Y.body[0].expression.body.type==="BlockStatement")return Function(J,G.slice(X[0]+1,X[1]-1));return Function(J,"return "+G.slice(X[0],X[1]))}function Yq($){return $.toString()}function Jq($){return Object.prototype.toString.call($)==="[object Function]"}U7.exports=new e3("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:$q,construct:Gq,predicate:Jq,represent:Yq})});var n0=v((mR,Q7)=>{var D7=v2();Q7.exports=D7.DEFAULT=new D7({include:[A0()],explicit:[W7(),V7(),M7()]})});var b7=v((Zq,a0)=>{var U2=g2(),_7=K0(),Xq=B$(),w7=A0(),qq=n0(),_2=Object.prototype.hasOwnProperty,S4=1,B7=2,N7=3,I4=4,y5=1,Wq=2,R7=3,Hq=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Vq=/[\x85\u2028\u2029]/,Uq=/[,\[\]\{\}]/,j7=/^(?:!|!!|![a-z\-]+!)$/i,L7=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function K7($){return Object.prototype.toString.call($)}function $2($){return $===10||$===13}function m2($){return $===9||$===32}function S1($){return $===9||$===32||$===10||$===13}function O0($){return $===44||$===91||$===93||$===123||$===125}function Mq($){var G;if(48<=$&&$<=57)return $-48;if(G=$|32,97<=G&&G<=102)return G-97+10;return-1}function Dq($){if($===120)return 2;if($===117)return 4;if($===85)return 8;return 0}function Qq($){if(48<=$&&$<=57)return $-48;return-1}function z7($){return $===48?"\x00":$===97?"\x07":$===98?"\b":$===116?"\t":$===9?"\t":$===110?`
|
|
18
|
+
`:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function Rq($){if($<=65535)return String.fromCharCode($);return String.fromCharCode(($-65536>>10)+55296,($-65536&1023)+56320)}function P7($,G,Y){if(G==="__proto__")Object.defineProperty($,G,{configurable:!0,enumerable:!0,writable:!0,value:Y});else $[G]=Y}var E7=Array(256),Z7=Array(256);for(O2=0;O2<256;O2++)E7[O2]=z7(O2)?1:0,Z7[O2]=z7(O2);var O2;function Kq($,G){this.input=$,this.filename=G.filename||null,this.schema=G.schema||qq,this.onWarning=G.onWarning||null,this.legacy=G.legacy||!1,this.json=G.json||!1,this.listener=G.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 T7($,G){return new _7(G,new Xq($.filename,$.input,$.position,$.line,$.position-$.lineStart))}function m($,G){throw T7($,G)}function C4($,G){if($.onWarning)$.onWarning.call(null,T7($,G))}var A7={YAML:function(G,Y,J){var X,q,W;if(G.version!==null)m(G,"duplication of %YAML directive");if(J.length!==1)m(G,"YAML directive accepts exactly one argument");if(X=/^([0-9]+)\.([0-9]+)$/.exec(J[0]),X===null)m(G,"ill-formed argument of the YAML directive");if(q=parseInt(X[1],10),W=parseInt(X[2],10),q!==1)m(G,"unacceptable YAML version of the document");if(G.version=J[0],G.checkLineBreaks=W<2,W!==1&&W!==2)C4(G,"unsupported YAML version of the document")},TAG:function(G,Y,J){var X,q;if(J.length!==2)m(G,"TAG directive accepts exactly two arguments");if(X=J[0],q=J[1],!j7.test(X))m(G,"ill-formed tag handle (first argument) of the TAG directive");if(_2.call(G.tagMap,X))m(G,'there is a previously declared suffix for "'+X+'" tag handle');if(!L7.test(q))m(G,"ill-formed tag prefix (second argument) of the TAG directive");G.tagMap[X]=q}};function F2($,G,Y,J){var X,q,W,H;if(G<Y){if(H=$.input.slice(G,Y),J){for(X=0,q=H.length;X<q;X+=1)if(W=H.charCodeAt(X),!(W===9||32<=W&&W<=1114111))m($,"expected valid JSON character")}else if(Hq.test(H))m($,"the stream contains non-printable characters");$.result+=H}}function O7($,G,Y,J){var X,q,W,H;if(!U2.isObject(Y))m($,"cannot merge mappings; the provided source object is unacceptable");X=Object.keys(Y);for(W=0,H=X.length;W<H;W+=1)if(q=X[W],!_2.call(G,q))P7(G,q,Y[q]),J[q]=!0}function F0($,G,Y,J,X,q,W,H){var V,U;if(Array.isArray(X)){X=Array.prototype.slice.call(X);for(V=0,U=X.length;V<U;V+=1){if(Array.isArray(X[V]))m($,"nested arrays are not supported inside keys");if(typeof X==="object"&&K7(X[V])==="[object Object]")X[V]="[object Object]"}}if(typeof X==="object"&&K7(X)==="[object Object]")X="[object Object]";if(X=String(X),G===null)G={};if(J==="tag:yaml.org,2002:merge")if(Array.isArray(q))for(V=0,U=q.length;V<U;V+=1)O7($,G,q[V],Y);else O7($,G,q,Y);else{if(!$.json&&!_2.call(Y,X)&&_2.call(G,X))$.line=W||$.line,$.position=H||$.position,m($,"duplicated mapping key");P7(G,X,q),delete Y[X]}return G}function m5($){var G=$.input.charCodeAt($.position);if(G===10)$.position++;else if(G===13){if($.position++,$.input.charCodeAt($.position)===10)$.position++}else m($,"a line break is expected");$.line+=1,$.lineStart=$.position}function M1($,G,Y){var J=0,X=$.input.charCodeAt($.position);while(X!==0){while(m2(X))X=$.input.charCodeAt(++$.position);if(G&&X===35)do X=$.input.charCodeAt(++$.position);while(X!==10&&X!==13&&X!==0);if($2(X)){m5($),X=$.input.charCodeAt($.position),J++,$.lineIndent=0;while(X===32)$.lineIndent++,X=$.input.charCodeAt(++$.position)}else break}if(Y!==-1&&J!==0&&$.lineIndent<Y)C4($,"deficient indentation");return J}function b4($){var G=$.position,Y;if(Y=$.input.charCodeAt(G),(Y===45||Y===46)&&Y===$.input.charCodeAt(G+1)&&Y===$.input.charCodeAt(G+2)){if(G+=3,Y=$.input.charCodeAt(G),Y===0||S1(Y))return!0}return!1}function f5($,G){if(G===1)$.result+=" ";else if(G>1)$.result+=U2.repeat(`
|
|
19
|
+
`,G-1)}function zq($,G,Y){var J,X,q,W,H,V,U,M,R=$.kind,z=$.result,K;if(K=$.input.charCodeAt($.position),S1(K)||O0(K)||K===35||K===38||K===42||K===33||K===124||K===62||K===39||K===34||K===37||K===64||K===96)return!1;if(K===63||K===45){if(X=$.input.charCodeAt($.position+1),S1(X)||Y&&O0(X))return!1}$.kind="scalar",$.result="",q=W=$.position,H=!1;while(K!==0){if(K===58){if(X=$.input.charCodeAt($.position+1),S1(X)||Y&&O0(X))break}else if(K===35){if(J=$.input.charCodeAt($.position-1),S1(J))break}else if($.position===$.lineStart&&b4($)||Y&&O0(K))break;else if($2(K))if(V=$.line,U=$.lineStart,M=$.lineIndent,M1($,!1,-1),$.lineIndent>=G){H=!0,K=$.input.charCodeAt($.position);continue}else{$.position=W,$.line=V,$.lineStart=U,$.lineIndent=M;break}if(H)F2($,q,W,!1),f5($,$.line-V),q=W=$.position,H=!1;if(!m2(K))W=$.position+1;K=$.input.charCodeAt(++$.position)}if(F2($,q,W,!1),$.result)return!0;return $.kind=R,$.result=z,!1}function Aq($,G){var Y,J,X;if(Y=$.input.charCodeAt($.position),Y!==39)return!1;$.kind="scalar",$.result="",$.position++,J=X=$.position;while((Y=$.input.charCodeAt($.position))!==0)if(Y===39)if(F2($,J,$.position,!0),Y=$.input.charCodeAt(++$.position),Y===39)J=$.position,$.position++,X=$.position;else return!0;else if($2(Y))F2($,J,X,!0),f5($,M1($,!1,G)),J=X=$.position;else if($.position===$.lineStart&&b4($))m($,"unexpected end of the document within a single quoted scalar");else $.position++,X=$.position;m($,"unexpected end of the stream within a single quoted scalar")}function Oq($,G){var Y,J,X,q,W,H;if(H=$.input.charCodeAt($.position),H!==34)return!1;$.kind="scalar",$.result="",$.position++,Y=J=$.position;while((H=$.input.charCodeAt($.position))!==0)if(H===34)return F2($,Y,$.position,!0),$.position++,!0;else if(H===92){if(F2($,Y,$.position,!0),H=$.input.charCodeAt(++$.position),$2(H))M1($,!1,G);else if(H<256&&E7[H])$.result+=Z7[H],$.position++;else if((W=Dq(H))>0){X=W,q=0;for(;X>0;X--)if(H=$.input.charCodeAt(++$.position),(W=Mq(H))>=0)q=(q<<4)+W;else m($,"expected hexadecimal character");$.result+=Rq(q),$.position++}else m($,"unknown escape sequence");Y=J=$.position}else if($2(H))F2($,Y,J,!0),f5($,M1($,!1,G)),Y=J=$.position;else if($.position===$.lineStart&&b4($))m($,"unexpected end of the document within a double quoted scalar");else $.position++,J=$.position;m($,"unexpected end of the stream within a double quoted scalar")}function Fq($,G){var Y=!0,J,X=$.tag,q,W=$.anchor,H,V,U,M,R,z={},K,Z,S,I;if(I=$.input.charCodeAt($.position),I===91)V=93,R=!1,q=[];else if(I===123)V=125,R=!0,q={};else return!1;if($.anchor!==null)$.anchorMap[$.anchor]=q;I=$.input.charCodeAt(++$.position);while(I!==0){if(M1($,!0,G),I=$.input.charCodeAt($.position),I===V)return $.position++,$.tag=X,$.anchor=W,$.kind=R?"mapping":"sequence",$.result=q,!0;else if(!Y)m($,"missed comma between flow collection entries");if(Z=K=S=null,U=M=!1,I===63){if(H=$.input.charCodeAt($.position+1),S1(H))U=M=!0,$.position++,M1($,!0,G)}if(J=$.line,_0($,G,S4,!1,!0),Z=$.tag,K=$.result,M1($,!0,G),I=$.input.charCodeAt($.position),(M||$.line===J)&&I===58)U=!0,I=$.input.charCodeAt(++$.position),M1($,!0,G),_0($,G,S4,!1,!0),S=$.result;if(R)F0($,q,z,Z,K,S);else if(U)q.push(F0($,null,z,Z,K,S));else q.push(K);if(M1($,!0,G),I=$.input.charCodeAt($.position),I===44)Y=!0,I=$.input.charCodeAt(++$.position);else Y=!1}m($,"unexpected end of the stream within a flow collection")}function _q($,G){var Y,J,X=y5,q=!1,W=!1,H=G,V=0,U=!1,M,R;if(R=$.input.charCodeAt($.position),R===124)J=!1;else if(R===62)J=!0;else return!1;$.kind="scalar",$.result="";while(R!==0)if(R=$.input.charCodeAt(++$.position),R===43||R===45)if(y5===X)X=R===43?R7:Wq;else m($,"repeat of a chomping mode identifier");else if((M=Qq(R))>=0)if(M===0)m($,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!W)H=G+M-1,W=!0;else m($,"repeat of an indentation width identifier");else break;if(m2(R)){do R=$.input.charCodeAt(++$.position);while(m2(R));if(R===35)do R=$.input.charCodeAt(++$.position);while(!$2(R)&&R!==0)}while(R!==0){m5($),$.lineIndent=0,R=$.input.charCodeAt($.position);while((!W||$.lineIndent<H)&&R===32)$.lineIndent++,R=$.input.charCodeAt(++$.position);if(!W&&$.lineIndent>H)H=$.lineIndent;if($2(R)){V++;continue}if($.lineIndent<H){if(X===R7)$.result+=U2.repeat(`
|
|
20
20
|
`,q?1+V:V);else if(X===y5){if(q)$.result+=`
|
|
21
21
|
`}break}if(J)if(m2(R))U=!0,$.result+=U2.repeat(`
|
|
22
22
|
`,q?1+V:V);else if(U)U=!1,$.result+=U2.repeat(`
|
|
23
23
|
`,V+1);else if(V===0){if(q)$.result+=" "}else $.result+=U2.repeat(`
|
|
24
24
|
`,V);else $.result+=U2.repeat(`
|
|
25
|
-
`,q?1+V:V);q=!0,W=!0,V=0,Y=$.position;while(!$2(R)&&R!==0)R=$.input.charCodeAt(++$.position);F2($,Y,$.position,!1)}return!0}function F7($,G){var Y,J=$.tag,X=$.anchor,q=[],W,H=!1,V;if($.anchor!==null)$.anchorMap[$.anchor]=q;V=$.input.charCodeAt($.position);while(V!==0){if(V!==45)break;if(W=$.input.charCodeAt($.position+1),!
|
|
26
|
-
`;if($.charCodeAt(0)===65279)$=$.slice(1)}var Y=new Kq($,G),J=$.indexOf("\x00");if(J!==-1)Y.position=J,m(Y,"null byte is not allowed in input");Y.input+="\x00";while(Y.input.charCodeAt(Y.position)===32)Y.lineIndent+=1,Y.position+=1;while(Y.position<Y.length-1)Lq(Y);return Y.documents}function I7($,G,Y){if(G!==null&&typeof G==="object"&&typeof Y>"u")Y=G,G=null;var J=
|
|
25
|
+
`,q?1+V:V);q=!0,W=!0,V=0,Y=$.position;while(!$2(R)&&R!==0)R=$.input.charCodeAt(++$.position);F2($,Y,$.position,!1)}return!0}function F7($,G){var Y,J=$.tag,X=$.anchor,q=[],W,H=!1,V;if($.anchor!==null)$.anchorMap[$.anchor]=q;V=$.input.charCodeAt($.position);while(V!==0){if(V!==45)break;if(W=$.input.charCodeAt($.position+1),!S1(W))break;if(H=!0,$.position++,M1($,!0,-1)){if($.lineIndent<=G){q.push(null),V=$.input.charCodeAt($.position);continue}}if(Y=$.line,_0($,G,N7,!1,!0),q.push($.result),M1($,!0,-1),V=$.input.charCodeAt($.position),($.line===Y||$.lineIndent>G)&&V!==0)m($,"bad indentation of a sequence entry");else if($.lineIndent<G)break}if(H)return $.tag=J,$.anchor=X,$.kind="sequence",$.result=q,!0;return!1}function wq($,G,Y){var J,X,q,W,H=$.tag,V=$.anchor,U={},M={},R=null,z=null,K=null,Z=!1,S=!1,I;if($.anchor!==null)$.anchorMap[$.anchor]=U;I=$.input.charCodeAt($.position);while(I!==0){if(J=$.input.charCodeAt($.position+1),q=$.line,W=$.position,(I===63||I===58)&&S1(J)){if(I===63){if(Z)F0($,U,M,R,z,null),R=z=K=null;S=!0,Z=!0,X=!0}else if(Z)Z=!1,X=!0;else m($,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");$.position+=1,I=J}else if(_0($,Y,B7,!1,!0))if($.line===q){I=$.input.charCodeAt($.position);while(m2(I))I=$.input.charCodeAt(++$.position);if(I===58){if(I=$.input.charCodeAt(++$.position),!S1(I))m($,"a whitespace character is expected after the key-value separator within a block mapping");if(Z)F0($,U,M,R,z,null),R=z=K=null;S=!0,Z=!1,X=!1,R=$.tag,z=$.result}else if(S)m($,"can not read an implicit mapping pair; a colon is missed");else return $.tag=H,$.anchor=V,!0}else if(S)m($,"can not read a block mapping entry; a multiline key may not be an implicit key");else return $.tag=H,$.anchor=V,!0;else break;if($.line===q||$.lineIndent>G){if(_0($,G,I4,!0,X))if(Z)z=$.result;else K=$.result;if(!Z)F0($,U,M,R,z,K,q,W),R=z=K=null;M1($,!0,-1),I=$.input.charCodeAt($.position)}if($.lineIndent>G&&I!==0)m($,"bad indentation of a mapping entry");else if($.lineIndent<G)break}if(Z)F0($,U,M,R,z,null);if(S)$.tag=H,$.anchor=V,$.kind="mapping",$.result=U;return S}function Bq($){var G,Y=!1,J=!1,X,q,W;if(W=$.input.charCodeAt($.position),W!==33)return!1;if($.tag!==null)m($,"duplication of a tag property");if(W=$.input.charCodeAt(++$.position),W===60)Y=!0,W=$.input.charCodeAt(++$.position);else if(W===33)J=!0,X="!!",W=$.input.charCodeAt(++$.position);else X="!";if(G=$.position,Y){do W=$.input.charCodeAt(++$.position);while(W!==0&&W!==62);if($.position<$.length)q=$.input.slice(G,$.position),W=$.input.charCodeAt(++$.position);else m($,"unexpected end of the stream within a verbatim tag")}else{while(W!==0&&!S1(W)){if(W===33)if(!J){if(X=$.input.slice(G-1,$.position+1),!j7.test(X))m($,"named tag handle cannot contain such characters");J=!0,G=$.position+1}else m($,"tag suffix cannot contain exclamation marks");W=$.input.charCodeAt(++$.position)}if(q=$.input.slice(G,$.position),Uq.test(q))m($,"tag suffix cannot contain flow indicator characters")}if(q&&!L7.test(q))m($,"tag name cannot contain such characters: "+q);if(Y)$.tag=q;else if(_2.call($.tagMap,X))$.tag=$.tagMap[X]+q;else if(X==="!")$.tag="!"+q;else if(X==="!!")$.tag="tag:yaml.org,2002:"+q;else m($,'undeclared tag handle "'+X+'"');return!0}function Nq($){var G,Y;if(Y=$.input.charCodeAt($.position),Y!==38)return!1;if($.anchor!==null)m($,"duplication of an anchor property");Y=$.input.charCodeAt(++$.position),G=$.position;while(Y!==0&&!S1(Y)&&!O0(Y))Y=$.input.charCodeAt(++$.position);if($.position===G)m($,"name of an anchor node must contain at least one character");return $.anchor=$.input.slice(G,$.position),!0}function jq($){var G,Y,J;if(J=$.input.charCodeAt($.position),J!==42)return!1;J=$.input.charCodeAt(++$.position),G=$.position;while(J!==0&&!S1(J)&&!O0(J))J=$.input.charCodeAt(++$.position);if($.position===G)m($,"name of an alias node must contain at least one character");if(Y=$.input.slice(G,$.position),!_2.call($.anchorMap,Y))m($,'unidentified alias "'+Y+'"');return $.result=$.anchorMap[Y],M1($,!0,-1),!0}function _0($,G,Y,J,X){var q,W,H,V=1,U=!1,M=!1,R,z,K,Z,S;if($.listener!==null)$.listener("open",$);if($.tag=null,$.anchor=null,$.kind=null,$.result=null,q=W=H=I4===Y||N7===Y,J){if(M1($,!0,-1)){if(U=!0,$.lineIndent>G)V=1;else if($.lineIndent===G)V=0;else if($.lineIndent<G)V=-1}}if(V===1)while(Bq($)||Nq($))if(M1($,!0,-1)){if(U=!0,H=q,$.lineIndent>G)V=1;else if($.lineIndent===G)V=0;else if($.lineIndent<G)V=-1}else H=!1;if(H)H=U||X;if(V===1||I4===Y){if(S4===Y||B7===Y)Z=G;else Z=G+1;if(S=$.position-$.lineStart,V===1)if(H&&(F7($,S)||wq($,S,Z))||Fq($,Z))M=!0;else{if(W&&_q($,Z)||Aq($,Z)||Oq($,Z))M=!0;else if(jq($)){if(M=!0,$.tag!==null||$.anchor!==null)m($,"alias node should not have any properties")}else if(zq($,Z,S4===Y)){if(M=!0,$.tag===null)$.tag="?"}if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if(V===0)M=H&&F7($,S)}if($.tag!==null&&$.tag!=="!")if($.tag==="?"){if($.result!==null&&$.kind!=="scalar")m($,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+$.kind+'"');for(R=0,z=$.implicitTypes.length;R<z;R+=1)if(K=$.implicitTypes[R],K.resolve($.result)){if($.result=K.construct($.result),$.tag=K.tag,$.anchor!==null)$.anchorMap[$.anchor]=$.result;break}}else if(_2.call($.typeMap[$.kind||"fallback"],$.tag)){if(K=$.typeMap[$.kind||"fallback"][$.tag],$.result!==null&&K.kind!==$.kind)m($,"unacceptable node kind for !<"+$.tag+'> tag; it should be "'+K.kind+'", not "'+$.kind+'"');if(!K.resolve($.result))m($,"cannot resolve a node with !<"+$.tag+"> explicit tag");else if($.result=K.construct($.result),$.anchor!==null)$.anchorMap[$.anchor]=$.result}else m($,"unknown tag !<"+$.tag+">");if($.listener!==null)$.listener("close",$);return $.tag!==null||$.anchor!==null||M}function Lq($){var G=$.position,Y,J,X,q=!1,W;$.version=null,$.checkLineBreaks=$.legacy,$.tagMap={},$.anchorMap={};while((W=$.input.charCodeAt($.position))!==0){if(M1($,!0,-1),W=$.input.charCodeAt($.position),$.lineIndent>0||W!==37)break;q=!0,W=$.input.charCodeAt(++$.position),Y=$.position;while(W!==0&&!S1(W))W=$.input.charCodeAt(++$.position);if(J=$.input.slice(Y,$.position),X=[],J.length<1)m($,"directive name must not be less than one character in length");while(W!==0){while(m2(W))W=$.input.charCodeAt(++$.position);if(W===35){do W=$.input.charCodeAt(++$.position);while(W!==0&&!$2(W));break}if($2(W))break;Y=$.position;while(W!==0&&!S1(W))W=$.input.charCodeAt(++$.position);X.push($.input.slice(Y,$.position))}if(W!==0)m5($);if(_2.call(A7,J))A7[J]($,J,X);else C4($,'unknown document directive "'+J+'"')}if(M1($,!0,-1),$.lineIndent===0&&$.input.charCodeAt($.position)===45&&$.input.charCodeAt($.position+1)===45&&$.input.charCodeAt($.position+2)===45)$.position+=3,M1($,!0,-1);else if(q)m($,"directives end mark is expected");if(_0($,$.lineIndent-1,I4,!1,!0),M1($,!0,-1),$.checkLineBreaks&&Vq.test($.input.slice(G,$.position)))C4($,"non-ASCII line breaks are interpreted as content");if($.documents.push($.result),$.position===$.lineStart&&b4($)){if($.input.charCodeAt($.position)===46)$.position+=3,M1($,!0,-1);return}if($.position<$.length-1)m($,"end of the stream or a document separator is expected");else return}function S7($,G){if($=String($),G=G||{},$.length!==0){if($.charCodeAt($.length-1)!==10&&$.charCodeAt($.length-1)!==13)$+=`
|
|
26
|
+
`;if($.charCodeAt(0)===65279)$=$.slice(1)}var Y=new Kq($,G),J=$.indexOf("\x00");if(J!==-1)Y.position=J,m(Y,"null byte is not allowed in input");Y.input+="\x00";while(Y.input.charCodeAt(Y.position)===32)Y.lineIndent+=1,Y.position+=1;while(Y.position<Y.length-1)Lq(Y);return Y.documents}function I7($,G,Y){if(G!==null&&typeof G==="object"&&typeof Y>"u")Y=G,G=null;var J=S7($,Y);if(typeof G!=="function")return J;for(var X=0,q=J.length;X<q;X+=1)G(J[X])}function C7($,G){var Y=S7($,G);if(Y.length===0)return;else if(Y.length===1)return Y[0];throw new _7("expected a single document in the stream, but found more")}function Pq($,G,Y){if(typeof G==="object"&&G!==null&&typeof Y>"u")Y=G,G=null;return I7($,G,U2.extend({schema:w7},Y))}function Eq($,G){return C7($,U2.extend({schema:w7},G))}Zq.loadAll=I7;Zq.load=C7;Zq.safeLoadAll=Pq;Zq.safeLoad=Eq});var G8=v((QW,r5)=>{var t0=g2(),e0=K0(),bq=n0(),xq=A0(),f7=Object.prototype.toString,p7=Object.prototype.hasOwnProperty,hq=9,s0=10,kq=13,gq=32,vq=33,yq=34,u7=35,mq=37,fq=38,pq=39,uq=42,l7=44,lq=45,r7=58,rq=61,cq=62,dq=63,iq=64,c7=91,d7=93,oq=96,i7=123,nq=124,o7=125,B1={};B1[0]="\\0";B1[7]="\\a";B1[8]="\\b";B1[9]="\\t";B1[10]="\\n";B1[11]="\\v";B1[12]="\\f";B1[13]="\\r";B1[27]="\\e";B1[34]="\\\"";B1[92]="\\\\";B1[133]="\\N";B1[160]="\\_";B1[8232]="\\L";B1[8233]="\\P";var aq=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function sq($,G){var Y,J,X,q,W,H,V;if(G===null)return{};Y={},J=Object.keys(G);for(X=0,q=J.length;X<q;X+=1){if(W=J[X],H=String(G[W]),W.slice(0,2)==="!!")W="tag:yaml.org,2002:"+W.slice(2);if(V=$.compiledTypeMap.fallback[W],V&&p7.call(V.styleAliases,H))H=V.styleAliases[H];Y[W]=H}return Y}function x7($){var G,Y,J;if(G=$.toString(16).toUpperCase(),$<=255)Y="x",J=2;else if($<=65535)Y="u",J=4;else if($<=4294967295)Y="U",J=8;else throw new e0("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+Y+t0.repeat("0",J-G.length)+G}function tq($){this.schema=$.schema||bq,this.indent=Math.max(1,$.indent||2),this.noArrayIndent=$.noArrayIndent||!1,this.skipInvalid=$.skipInvalid||!1,this.flowLevel=t0.isNothing($.flowLevel)?-1:$.flowLevel,this.styleMap=sq(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 h7($,G){var Y=t0.repeat(" ",G),J=0,X=-1,q="",W,H=$.length;while(J<H){if(X=$.indexOf(`
|
|
27
27
|
`,J),X===-1)W=$.slice(J),J=H;else W=$.slice(J,X+1),J=X+1;if(W.length&&W!==`
|
|
28
28
|
`)q+=Y;q+=W}return q}function p5($,G){return`
|
|
29
29
|
`+t0.repeat(" ",$.indent*G)}function eq($,G){var Y,J,X;for(Y=0,J=$.implicitTypes.length;Y<J;Y+=1)if(X=$.implicitTypes[Y],X.resolve(G))return!0;return!1}function l5($){return $===gq||$===hq}function w0($){return 32<=$&&$<=126||161<=$&&$<=55295&&$!==8232&&$!==8233||57344<=$&&$<=65533&&$!==65279||65536<=$&&$<=1114111}function $W($){return w0($)&&!l5($)&&$!==65279&&$!==kq&&$!==s0}function k7($,G){return w0($)&&$!==65279&&$!==l7&&$!==c7&&$!==d7&&$!==i7&&$!==o7&&$!==r7&&($!==u7||G&&$W(G))}function GW($){return w0($)&&$!==65279&&!l5($)&&$!==lq&&$!==dq&&$!==r7&&$!==l7&&$!==c7&&$!==d7&&$!==i7&&$!==o7&&$!==u7&&$!==fq&&$!==uq&&$!==vq&&$!==nq&&$!==rq&&$!==cq&&$!==pq&&$!==yq&&$!==mq&&$!==iq&&$!==oq}function n7($){var G=/^\n* /;return G.test($)}var a7=1,s7=2,t7=3,e7=4,x4=5;function YW($,G,Y,J,X){var q,W,H,V=!1,U=!1,M=J!==-1,R=-1,z=GW($.charCodeAt(0))&&!l5($.charCodeAt($.length-1));if(G)for(q=0;q<$.length;q++){if(W=$.charCodeAt(q),!w0(W))return x4;H=q>0?$.charCodeAt(q-1):null,z=z&&k7(W,H)}else{for(q=0;q<$.length;q++){if(W=$.charCodeAt(q),W===s0){if(V=!0,M)U=U||q-R-1>J&&$[R+1]!==" ",R=q}else if(!w0(W))return x4;H=q>0?$.charCodeAt(q-1):null,z=z&&k7(W,H)}U=U||M&&(q-R-1>J&&$[R+1]!==" ")}if(!V&&!U)return z&&!X($)?a7:s7;if(Y>9&&n7($))return x4;return U?e7:t7}function JW($,G,Y,J){$.dump=function(){if(G.length===0)return"''";if(!$.noCompatMode&&aq.indexOf(G)!==-1)return"'"+G+"'";var X=$.indent*Math.max(1,Y),q=$.lineWidth===-1?-1:Math.max(Math.min($.lineWidth,40),$.lineWidth-X),W=J||$.flowLevel>-1&&Y>=$.flowLevel;function H(V){return eq($,V)}switch(YW(G,W,$.indent,q,H)){case a7:return G;case s7:return"'"+G.replace(/'/g,"''")+"'";case t7:return"|"+g7(G,$.indent)+v7(h7(G,X));case e7:return">"+g7(G,$.indent)+v7(h7(XW(G,q),X));case x4:return'"'+qW(G,q)+'"';default:throw new e0("impossible error: invalid scalar style")}}()}function g7($,G){var Y=n7($)?String(G):"",J=$[$.length-1]===`
|
|
@@ -49,24 +49,24 @@ return `+str.trim()+`;
|
|
|
49
49
|
`?$+`
|
|
50
50
|
`:$}});var z8=v((dR,K8)=>{var sW=$4();K8.exports=function($,G){let Y=sW(G);if($.data==null)$.data={};if(typeof Y.excerpt==="function")return Y.excerpt($,Y);let J=$.data.excerpt_separator||Y.excerpt_separator;if(J==null&&(Y.excerpt===!1||Y.excerpt==null))return $;let X=typeof Y.excerpt==="string"?Y.excerpt:J||Y.delimiters[0],q=$.content.indexOf(X);if(q!==-1)$.excerpt=$.content.slice(0,q);return $}});var F8=v((iR,O8)=>{var A8=i0(),tW=a5(),N0=v4();O8.exports=function($){if(A8($)!=="object")$={content:$};if(A8($.data)!=="object")$.data={};if($.contents&&$.content==null)$.content=$.contents;return N0.define($,"orig",N0.toBuffer($.content)),N0.define($,"language",$.language||""),N0.define($,"matter",$.matter||""),N0.define($,"stringify",function(G,Y){if(Y&&Y.language)$.language=Y.language;return tW($,G,Y)}),$.content=N0.toString($.content),$.isEmpty=!1,$.excerpt="",$}});var w8=v((oR,_8)=>{var eW=n5(),$H=$4();_8.exports=function($,G,Y){let J=$H(Y),X=eW($,J);if(typeof X.parse!=="function")throw TypeError('expected "'+$+'.parse" to be a function');return X.parse(G,J)}});var t5=v((nR,j8)=>{var GH=q2("fs"),YH=A$(),s5=$4(),JH=a5(),B8=z8(),XH=o5(),qH=F8(),WH=w8(),N8=v4();function P1($,G){if($==="")return{data:{},content:$,excerpt:"",orig:$};let Y=qH($),J=P1.cache[Y.content];if(!G){if(J)return Y=Object.assign({},J),Y.orig=J.orig,Y;P1.cache[Y.content]=Y}return HH(Y,G)}function HH($,G){let Y=s5(G),J=Y.delimiters[0],X=`
|
|
51
51
|
`+Y.delimiters[1],q=$.content;if(Y.language)$.language=Y.language;let W=J.length;if(!N8.startsWith(q,J,W))return B8($,Y),$;if(q.charAt(W)===J.slice(-1))return $;q=q.slice(W);let H=q.length,V=P1.language(q,Y);if(V.name)$.language=V.name,q=q.slice(V.raw.length);let U=q.indexOf(X);if(U===-1)U=H;if($.matter=q.slice(0,U),$.matter.replace(/^\s*#[^\n]+/gm,"").trim()==="")$.isEmpty=!0,$.empty=$.content,$.data={};else $.data=WH($.language,$.matter,Y);if(U===H)$.content="";else{if($.content=q.slice(U+X.length),$.content[0]==="\r")$.content=$.content.slice(1);if($.content[0]===`
|
|
52
|
-
`)$.content=$.content.slice(1)}if(B8($,Y),Y.sections===!0||typeof Y.section==="function")YH($,Y.section);return $}P1.engines=XH;P1.stringify=function($,G,Y){if(typeof $==="string")$=P1($,Y);return JH($,G,Y)};P1.read=function($,G){let Y=GH.readFileSync($,"utf8"),J=P1(Y,G);return J.path=$,J};P1.test=function($,G){return N8.startsWith($,s5(G).delimiters[0])};P1.language=function($,G){let J=s5(G).delimiters[0];if(P1.test($))$=$.slice(J.length);let X=$.slice(0,$.search(/\r?\n/));return{raw:X,name:X?X.trim():""}};P1.cache={};P1.clearCache=function(){P1.cache={}};j8.exports=P1});var o8=v((G_,i8)=>{var E0=1000,Z0=E0*60,
|
|
52
|
+
`)$.content=$.content.slice(1)}if(B8($,Y),Y.sections===!0||typeof Y.section==="function")YH($,Y.section);return $}P1.engines=XH;P1.stringify=function($,G,Y){if(typeof $==="string")$=P1($,Y);return JH($,G,Y)};P1.read=function($,G){let Y=GH.readFileSync($,"utf8"),J=P1(Y,G);return J.path=$,J};P1.test=function($,G){return N8.startsWith($,s5(G).delimiters[0])};P1.language=function($,G){let J=s5(G).delimiters[0];if(P1.test($))$=$.slice(J.length);let X=$.slice(0,$.search(/\r?\n/));return{raw:X,name:X?X.trim():""}};P1.cache={};P1.clearCache=function(){P1.cache={}};j8.exports=P1});var o8=v((G_,i8)=>{var E0=1000,Z0=E0*60,T0=Z0*60,c2=T0*24,lV=c2*7,rV=c2*365.25;i8.exports=function($,G){G=G||{};var Y=typeof $;if(Y==="string"&&$.length>0)return cV($);else if(Y==="number"&&isFinite($))return G.long?iV($):dV($);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify($))};function cV($){if($=String($),$.length>100)return;var G=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec($);if(!G)return;var Y=parseFloat(G[1]),J=(G[2]||"ms").toLowerCase();switch(J){case"years":case"year":case"yrs":case"yr":case"y":return Y*rV;case"weeks":case"week":case"w":return Y*lV;case"days":case"day":case"d":return Y*c2;case"hours":case"hour":case"hrs":case"hr":case"h":return Y*T0;case"minutes":case"minute":case"mins":case"min":case"m":return Y*Z0;case"seconds":case"second":case"secs":case"sec":case"s":return Y*E0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return Y;default:return}}function dV($){var G=Math.abs($);if(G>=c2)return Math.round($/c2)+"d";if(G>=T0)return Math.round($/T0)+"h";if(G>=Z0)return Math.round($/Z0)+"m";if(G>=E0)return Math.round($/E0)+"s";return $+"ms"}function iV($){var G=Math.abs($);if(G>=c2)return o4($,G,c2,"day");if(G>=T0)return o4($,G,T0,"hour");if(G>=Z0)return o4($,G,Z0,"minute");if(G>=E0)return o4($,G,E0,"second");return $+" ms"}function o4($,G,Y,J){var X=G>=Y*1.5;return Math.round($/Y)+" "+J+(X?"s":"")}});var R6=v((Y_,n8)=>{function oV($){Y.debug=Y,Y.default=Y,Y.coerce=V,Y.disable=W,Y.enable=X,Y.enabled=H,Y.humanize=o8(),Y.destroy=U,Object.keys($).forEach((M)=>{Y[M]=$[M]}),Y.names=[],Y.skips=[],Y.formatters={};function G(M){let R=0;for(let z=0;z<M.length;z++)R=(R<<5)-R+M.charCodeAt(z),R|=0;return Y.colors[Math.abs(R)%Y.colors.length]}Y.selectColor=G;function Y(M){let R,z=null,K,Z;function S(...I){if(!S.enabled)return;let P=S,a=Number(new Date),g=a-(R||a);if(P.diff=g,P.prev=R,P.curr=a,R=a,I[0]=Y.coerce(I[0]),typeof I[0]!=="string")I.unshift("%O");let s=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,(B,e)=>{if(B==="%%")return"%";s++;let J1=Y.formatters[e];if(typeof J1==="function"){let n=I[s];B=J1.call(P,n),I.splice(s,1),s--}return B}),Y.formatArgs.call(P,I),(P.log||Y.log).apply(P,I)}if(S.namespace=M,S.useColors=Y.useColors(),S.color=Y.selectColor(M),S.extend=J,S.destroy=Y.destroy,Object.defineProperty(S,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(z!==null)return z;if(K!==Y.namespaces)K=Y.namespaces,Z=Y.enabled(M);return Z},set:(I)=>{z=I}}),typeof Y.init==="function")Y.init(S);return S}function J(M,R){let z=Y(this.namespace+(typeof R>"u"?":":R)+M);return z.log=this.log,z}function X(M){Y.save(M),Y.namespaces=M,Y.names=[],Y.skips=[];let R=(typeof M==="string"?M:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let z of R)if(z[0]==="-")Y.skips.push(z.slice(1));else Y.names.push(z)}function q(M,R){let z=0,K=0,Z=-1,S=0;while(z<M.length)if(K<R.length&&(R[K]===M[z]||R[K]==="*"))if(R[K]==="*")Z=K,S=z,K++;else z++,K++;else if(Z!==-1)K=Z+1,S++,z=S;else return!1;while(K<R.length&&R[K]==="*")K++;return K===R.length}function W(){let M=[...Y.names,...Y.skips.map((R)=>"-"+R)].join(",");return Y.enable(""),M}function H(M){for(let R of Y.skips)if(q(M,R))return!1;for(let R of Y.names)if(q(M,R))return!0;return!1}function V(M){if(M instanceof Error)return M.stack||M.message;return M}function U(){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 Y.enable(Y.load()),Y}n8.exports=oV});var s8=v((a8,n4)=>{a8.formatArgs=aV;a8.save=sV;a8.load=tV;a8.useColors=nV;a8.storage=eV();a8.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`.")}})();a8.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 nV(){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 aV($){if($[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+$[0]+(this.useColors?"%c ":" ")+"+"+n4.exports.humanize(this.diff),!this.useColors)return;let G="color: "+this.color;$.splice(1,0,G,"color: inherit");let Y=0,J=0;$[0].replace(/%[a-zA-Z%]/g,(X)=>{if(X==="%%")return;if(Y++,X==="%c")J=Y}),$.splice(J,0,G)}a8.log=console.debug||console.log||(()=>{});function sV($){try{if($)a8.storage.setItem("debug",$);else a8.storage.removeItem("debug")}catch(G){}}function tV(){let $;try{$=a8.storage.getItem("debug")||a8.storage.getItem("DEBUG")}catch(G){}if(!$&&typeof process<"u"&&"env"in process)$=process.env.DEBUG;return $}function eV(){try{return localStorage}catch($){}}n4.exports=R6()(a8);var{formatters:$U}=n4.exports;$U.j=function($){try{return JSON.stringify($)}catch(G){return"[UnexpectedJSONParseError]: "+G.message}}});var e8=v((X_,t8)=>{t8.exports=($,G=process.argv)=>{let Y=$.startsWith("-")?"":$.length===1?"-":"--",J=G.indexOf(Y+$),X=G.indexOf("--");return J!==-1&&(X===-1||J<X)}});var YG=v((q_,GG)=>{var VU=q2("os"),$G=q2("tty"),p1=e8(),{env:A1}=process,N2;if(p1("no-color")||p1("no-colors")||p1("color=false")||p1("color=never"))N2=0;else if(p1("color")||p1("colors")||p1("color=true")||p1("color=always"))N2=1;if("FORCE_COLOR"in A1)if(A1.FORCE_COLOR==="true")N2=1;else if(A1.FORCE_COLOR==="false")N2=0;else N2=A1.FORCE_COLOR.length===0?1:Math.min(parseInt(A1.FORCE_COLOR,10),3);function K6($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function z6($,G){if(N2===0)return 0;if(p1("color=16m")||p1("color=full")||p1("color=truecolor"))return 3;if(p1("color=256"))return 2;if($&&!G&&N2===void 0)return 0;let Y=N2||0;if(A1.TERM==="dumb")return Y;if(process.platform==="win32"){let J=VU.release().split(".");if(Number(J[0])>=10&&Number(J[2])>=10586)return Number(J[2])>=14931?3:2;return 1}if("CI"in A1){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((J)=>(J in A1))||A1.CI_NAME==="codeship")return 1;return Y}if("TEAMCITY_VERSION"in A1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(A1.TEAMCITY_VERSION)?1:0;if(A1.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in A1){let J=parseInt((A1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(A1.TERM_PROGRAM){case"iTerm.app":return J>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(A1.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(A1.TERM))return 1;if("COLORTERM"in A1)return 1;return Y}function UU($){let G=z6($,$&&$.isTTY);return K6(G)}GG.exports={supportsColor:UU,stdout:K6(z6(!0,$G.isatty(1))),stderr:K6(z6(!0,$G.isatty(2)))}});var WG=v((XG,s4)=>{var MU=q2("tty"),a4=q2("util");XG.init=OU;XG.log=KU;XG.formatArgs=QU;XG.save=zU;XG.load=AU;XG.useColors=DU;XG.destroy=a4.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");XG.colors=[6,2,3,4,5,1];try{let $=YG();if($&&($.stderr||$).level>=2)XG.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($){}XG.inspectOpts=Object.keys(process.env).filter(($)=>{return/^debug_/i.test($)}).reduce(($,G)=>{let Y=G.substring(6).toLowerCase().replace(/_([a-z])/g,(X,q)=>{return q.toUpperCase()}),J=process.env[G];if(/^(yes|on|true|enabled)$/i.test(J))J=!0;else if(/^(no|off|false|disabled)$/i.test(J))J=!1;else if(J==="null")J=null;else J=Number(J);return $[Y]=J,$},{});function DU(){return"colors"in XG.inspectOpts?Boolean(XG.inspectOpts.colors):MU.isatty(process.stderr.fd)}function QU($){let{namespace:G,useColors:Y}=this;if(Y){let J=this.color,X="\x1B[3"+(J<8?J:"8;5;"+J),q=` ${X};1m${G} \x1B[0m`;$[0]=q+$[0].split(`
|
|
53
53
|
`).join(`
|
|
54
54
|
`+q),$.push(X+"m+"+s4.exports.humanize(this.diff)+"\x1B[0m")}else $[0]=RU()+G+" "+$[0]}function RU(){if(XG.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function KU(...$){return process.stderr.write(a4.formatWithOptions(XG.inspectOpts,...$)+`
|
|
55
55
|
`)}function zU($){if($)process.env.DEBUG=$;else delete process.env.DEBUG}function AU(){return process.env.DEBUG}function OU($){$.inspectOpts={};let G=Object.keys(XG.inspectOpts);for(let Y=0;Y<G.length;Y++)$.inspectOpts[G[Y]]=XG.inspectOpts[G[Y]]}s4.exports=R6()(XG);var{formatters:JG}=s4.exports;JG.o=function($){return this.inspectOpts.colors=this.useColors,a4.inspect($,this.inspectOpts).split(`
|
|
56
|
-
`).map((G)=>G.trim()).join(" ")};JG.O=function($){return this.inspectOpts.colors=this.useColors,a4.inspect($,this.inspectOpts)}});var HG=v((H_,A6)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)A6.exports=s8();else A6.exports=WG()});var qY=v((hN,XY)=>{var H5=Object.prototype.hasOwnProperty,JY=Object.prototype.toString,sG=Object.defineProperty,tG=Object.getOwnPropertyDescriptor,eG=function(G){if(typeof Array.isArray==="function")return Array.isArray(G);return JY.call(G)==="[object Array]"},$Y=function(G){if(!G||JY.call(G)!=="[object Object]")return!1;var Y=H5.call(G,"constructor"),J=G.constructor&&G.constructor.prototype&&H5.call(G.constructor.prototype,"isPrototypeOf");if(G.constructor&&!Y&&!J)return!1;var X;for(X in G);return typeof X>"u"||H5.call(G,X)},GY=function(G,Y){if(sG&&Y.name==="__proto__")sG(G,Y.name,{enumerable:!0,configurable:!0,value:Y.newValue,writable:!0});else G[Y.name]=Y.newValue},YY=function(G,Y){if(Y==="__proto__"){if(!H5.call(G,Y))return;else if(tG)return tG(G,Y).value}return G[Y]};XY.exports=function $(){var G,Y,J,X,q,W,H=arguments[0],V=1,U=arguments.length,M=!1;if(typeof H==="boolean")M=H,H=arguments[1]||{},V=2;if(H==null||typeof H!=="object"&&typeof H!=="function")H={};for(;V<U;++V)if(G=arguments[V],G!=null){for(Y in G)if(J=YY(H,Y),X=YY(G,Y),H!==X){if(M&&X&&($Y(X)||(q=eG(X)))){if(q)q=!1,W=J&&eG(J)?J:[];else W=J&&$Y(J)?J:{};GY(H,{name:Y,newValue:$(M,W,X)})}else if(typeof X<"u")GY(H,{name:Y,newValue:X})}}return H}});import{createClient as $Q}from"@libsql/client";var b=Symbol.for("drizzle:entityKind");function j1($,G){if(!$||typeof $!=="object")return!1;if($ instanceof G)return!0;if(!Object.prototype.hasOwnProperty.call(G,b))throw Error(`Class "${G.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 Y=Object.getPrototypeOf($).constructor;if(Y)while(Y){if(b in Y&&Y[b]===G[b])return!0;Y=Object.getPrototypeOf(Y)}return!1}class D2{constructor($,G){this.table=$,this.config=G,this.name=G.name,this.keyAsName=G.keyAsName,this.notNull=G.notNull,this.default=G.default,this.defaultFn=G.defaultFn,this.onUpdateFn=G.onUpdateFn,this.hasDefault=G.hasDefault,this.primary=G.primaryKey,this.isUnique=G.isUnique,this.uniqueName=G.uniqueName,this.uniqueType=G.uniqueType,this.dataType=G.dataType,this.columnType=G.columnType,this.generated=G.generated,this.generatedIdentity=G.generatedIdentity}static[b]="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"}}class z5{static[b]="ColumnBuilder";config;constructor($,G,Y){this.config={name:$,keyAsName:$==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:G,columnType:Y,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 u1=Symbol.for("drizzle:Name");function $9($,...G){return $(...G)}function G9($,G){return`${$[u1]}_${G.join("_")}_unique`}class g0 extends D2{constructor($,G){if(!G.uniqueName)G.uniqueName=G9($,[G.name]);super($,G);this.table=$}static[b]="PgColumn"}class kY extends g0{static[b]="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}}class gY extends g0{static[b]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor($,G){super($,G);this.enum=G.enum}getSQLType(){return this.enum.enumName}}var Y9=Symbol.for("drizzle:isPgEnum");function J9($){return!!$&&typeof $==="function"&&Y9 in $&&$[Y9]===!0}class vY extends g0{static[b]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor($,G){super($,G);this.enum=G.enum}getSQLType(){return this.enum.enumName}}class Q4{static[b]="Subquery";constructor($,G,Y,J=!1,X=[]){this._={brand:"Subquery",sql:$,selectedFields:G,alias:Y,isWith:J,usedTables:X}}}var X9="0.44.7";var A5,O5,q9={startActiveSpan($,G){if(!A5)return G();if(!O5)O5=A5.trace.getTracer("drizzle-orm",X9);return $9((Y,J)=>J.startActiveSpan($,(X)=>{try{return G(X)}catch(q){throw X.setStatus({code:Y.SpanStatusCode.ERROR,message:q instanceof Error?q.message:"Unknown error"}),q}finally{X.end()}}),A5,O5)}};var t2=Symbol.for("drizzle:ViewBaseConfig");var F5=Symbol.for("drizzle:Schema"),W9=Symbol.for("drizzle:Columns"),H9=Symbol.for("drizzle:ExtraConfigColumns"),_5=Symbol.for("drizzle:OriginalName"),w5=Symbol.for("drizzle:BaseName"),v0=Symbol.for("drizzle:IsAlias"),V9=Symbol.for("drizzle:ExtraConfigBuilder"),yY=Symbol.for("drizzle:IsDrizzleTable");class V1{static[b]="Table";static Symbol={Name:u1,Schema:F5,OriginalName:_5,Columns:W9,ExtraConfigColumns:H9,BaseName:w5,IsAlias:v0,ExtraConfigBuilder:V9};[u1];[_5];[F5];[W9];[H9];[w5];[v0]=!1;[yY]=!0;[V9]=void 0;constructor($,G,Y){this[u1]=this[_5]=$,this[F5]=G,this[w5]=Y}}function mY($){return $!==null&&$!==void 0&&typeof $.getSQL==="function"}function fY($){let G={sql:"",params:[]};for(let Y of $)if(G.sql+=Y.sql,G.params.push(...Y.params),Y.typings?.length){if(!G.typings)G.typings=[];G.typings.push(...Y.typings)}return G}class m1{static[b]="StringChunk";value;constructor($){this.value=Array.isArray($)?$:[$]}getSQL(){return new U1([this])}}class U1{constructor($){this.queryChunks=$;for(let G of $)if(j1(G,V1)){let Y=G[V1.Symbol.Schema];this.usedTables.push(Y===void 0?G[V1.Symbol.Name]:Y+"."+G[V1.Symbol.Name])}}static[b]="SQL";decoder=U9;shouldInlineParams=!1;usedTables=[];append($){return this.queryChunks.push(...$.queryChunks),this}toQuery($){return q9.startActiveSpan("drizzle.buildSQL",(G)=>{let Y=this.buildQueryFromSourceParams(this.queryChunks,$);return G?.setAttributes({"drizzle.query.text":Y.sql,"drizzle.query.params":JSON.stringify(Y.params)}),Y})}buildQueryFromSourceParams($,G){let Y=Object.assign({},G,{inlineParams:G.inlineParams||this.shouldInlineParams,paramStartIndex:G.paramStartIndex||{value:0}}),{casing:J,escapeName:X,escapeParam:q,prepareTyping:W,inlineParams:H,paramStartIndex:V}=Y;return fY($.map((U)=>{if(j1(U,m1))return{sql:U.value.join(""),params:[]};if(j1(U,R4))return{sql:X(U.value),params:[]};if(U===void 0)return{sql:"",params:[]};if(Array.isArray(U)){let M=[new m1("(")];for(let[R,z]of U.entries())if(M.push(z),R<U.length-1)M.push(new m1(", "));return M.push(new m1(")")),this.buildQueryFromSourceParams(M,Y)}if(j1(U,U1))return this.buildQueryFromSourceParams(U.queryChunks,{...Y,inlineParams:H||U.shouldInlineParams});if(j1(U,V1)){let M=U[V1.Symbol.Schema],R=U[V1.Symbol.Name];return{sql:M===void 0||U[v0]?X(R):X(M)+"."+X(R),params:[]}}if(j1(U,D2)){let M=J.getColumnCasing(U);if(G.invokeSource==="indexes")return{sql:X(M),params:[]};let R=U.table[V1.Symbol.Schema];return{sql:U.table[v0]||R===void 0?X(U.table[V1.Symbol.Name])+"."+X(M):X(R)+"."+X(U.table[V1.Symbol.Name])+"."+X(M),params:[]}}if(j1(U,D9)){let M=U[t2].schema,R=U[t2].name;return{sql:M===void 0||U[t2].isAlias?X(R):X(M)+"."+X(R),params:[]}}if(j1(U,B5)){if(j1(U.value,K4))return{sql:q(V.value++,U),params:[U],typings:["none"]};let M=U.value===null?null:U.encoder.mapToDriverValue(U.value);if(j1(M,U1))return this.buildQueryFromSourceParams([M],Y);if(H)return{sql:this.mapInlineParam(M,Y),params:[]};let R=["none"];if(W)R=[W(U.encoder)];return{sql:q(V.value++,M),params:[M],typings:R}}if(j1(U,K4))return{sql:q(V.value++,U),params:[U],typings:["none"]};if(j1(U,U1.Aliased)&&U.fieldAlias!==void 0)return{sql:X(U.fieldAlias),params:[]};if(j1(U,Q4)){if(U._.isWith)return{sql:X(U._.alias),params:[]};return this.buildQueryFromSourceParams([new m1("("),U._.sql,new m1(") "),new R4(U._.alias)],Y)}if(J9(U)){if(U.schema)return{sql:X(U.schema)+"."+X(U.enumName),params:[]};return{sql:X(U.enumName),params:[]}}if(mY(U)){if(U.shouldOmitSQLParens?.())return this.buildQueryFromSourceParams([U.getSQL()],Y);return this.buildQueryFromSourceParams([new m1("("),U.getSQL(),new m1(")")],Y)}if(H)return{sql:this.mapInlineParam(U,Y),params:[]};return{sql:q(V.value++,U),params:[U],typings:["none"]}}))}mapInlineParam($,{escapeString:G}){if($===null)return"null";if(typeof $==="number"||typeof $==="boolean")return $.toString();if(typeof $==="string")return G($);if(typeof $==="object"){let Y=$.toString();if(Y==="[object Object]")return G(JSON.stringify($));return G(Y)}throw Error("Unexpected param value: "+$)}getSQL(){return this}as($){if($===void 0)return this;return new U1.Aliased(this,$)}mapWith($){return this.decoder=typeof $==="function"?{mapFromDriverValue:$}:$,this}inlineParams(){return this.shouldInlineParams=!0,this}if($){return $?this:void 0}}class R4{constructor($){this.value=$}static[b]="Name";brand;getSQL(){return new U1([this])}}var U9={mapFromDriverValue:($)=>$},M9={mapToDriverValue:($)=>$},aM={...U9,...M9};class B5{constructor($,G=M9){this.value=$,this.encoder=G}static[b]="Param";brand;getSQL(){return new U1([this])}}function S2($,...G){let Y=[];if(G.length>0||$.length>0&&$[0]!=="")Y.push(new m1($[0]));for(let[J,X]of G.entries())Y.push(X,new m1($[J+1]));return new U1(Y)}(($)=>{function G(){return new U1([])}$.empty=G;function Y(V){return new U1(V)}$.fromList=Y;function J(V){return new U1([new m1(V)])}$.raw=J;function X(V,U){let M=[];for(let[R,z]of V.entries()){if(R>0&&U!==void 0)M.push(U);M.push(z)}return new U1(M)}$.join=X;function q(V){return new R4(V)}$.identifier=q;function W(V){return new K4(V)}$.placeholder=W;function H(V,U){return new B5(V,U)}$.param=H})(S2||(S2={}));(($)=>{class G{constructor(Y,J){this.sql=Y,this.fieldAlias=J}static[b]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new G(this.sql,this.fieldAlias)}}$.Aliased=G})(U1||(U1={}));class K4{constructor($){this.name=$}static[b]="Placeholder";getSQL(){return new U1([this])}}var pY=Symbol.for("drizzle:IsDrizzleView");class D9{static[b]="View";[t2];[pY]=!0;constructor({name:$,schema:G,selectedFields:Y,query:J}){this[t2]={name:$,originalName:$,schema:G,selectedFields:Y,query:J,isExisting:!J,isAlias:!1}}getSQL(){return new U1([this])}}D2.prototype.getSQL=function(){return new U1([this])};V1.prototype.getSQL=function(){return new U1([this])};Q4.prototype.getSQL=function(){return new U1([this])};function a1($,G){return{name:typeof $==="string"&&$.length>0?$:"",config:typeof $==="object"?$:G}}var N5=typeof TextDecoder>"u"?null:new TextDecoder;class j5{static[b]="SQLiteForeignKeyBuilder";reference;_onUpdate;_onDelete;constructor($,G){if(this.reference=()=>{let{name:Y,columns:J,foreignColumns:X}=$();return{name:Y,columns:J,foreignTable:X[0].table,foreignColumns:X}},G)this._onUpdate=G.onUpdate,this._onDelete=G.onDelete}onUpdate($){return this._onUpdate=$,this}onDelete($){return this._onDelete=$,this}build($){return new Q9($,this)}}class Q9{constructor($,G){this.table=$,this.reference=G.reference,this.onUpdate=G._onUpdate,this.onDelete=G._onDelete}static[b]="SQLiteForeignKey";reference;onUpdate;onDelete;getName(){let{name:$,columns:G,foreignColumns:Y}=this.reference(),J=G.map((W)=>W.name),X=Y.map((W)=>W.name),q=[this.table[u1],...J,Y[0].table[u1],...X];return $??`${q.join("_")}_fk`}}function R9($,G){return`${$[u1]}_${G.join("_")}_unique`}class K1 extends z5{static[b]="SQLiteColumnBuilder";foreignKeyConfigs=[];references($,G={}){return this.foreignKeyConfigs.push({ref:$,actions:G}),this}unique($){return this.config.isUnique=!0,this.config.uniqueName=$,this}generatedAlwaysAs($,G){return this.config.generated={as:$,type:"always",mode:G?.mode??"virtual"},this}buildForeignKeys($,G){return this.foreignKeyConfigs.map(({ref:Y,actions:J})=>{return((X,q)=>{let W=new j5(()=>{let H=X();return{columns:[$],foreignColumns:[H]}});if(q.onUpdate)W.onUpdate(q.onUpdate);if(q.onDelete)W.onDelete(q.onDelete);return W.build(G)})(Y,J)})}}class z1 extends D2{constructor($,G){if(!G.uniqueName)G.uniqueName=R9($,[G.name]);super($,G);this.table=$}static[b]="SQLiteColumn"}class K9 extends K1{static[b]="SQLiteBigIntBuilder";constructor($){super($,"bigint","SQLiteBigInt")}build($){return new z9($,this.config)}}class z9 extends z1{static[b]="SQLiteBigInt";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let G=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return BigInt(G.toString("utf8"))}return BigInt(N5.decode($))}mapToDriverValue($){return Buffer.from($.toString())}}class A9 extends K1{static[b]="SQLiteBlobJsonBuilder";constructor($){super($,"json","SQLiteBlobJson")}build($){return new O9($,this.config)}}class O9 extends z1{static[b]="SQLiteBlobJson";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let G=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return JSON.parse(G.toString("utf8"))}return JSON.parse(N5.decode($))}mapToDriverValue($){return Buffer.from(JSON.stringify($))}}class F9 extends K1{static[b]="SQLiteBlobBufferBuilder";constructor($){super($,"buffer","SQLiteBlobBuffer")}build($){return new _9($,this.config)}}class _9 extends z1{static[b]="SQLiteBlobBuffer";mapFromDriverValue($){if(Buffer.isBuffer($))return $;return Buffer.from($)}getSQLType(){return"blob"}}function w9($,G){let{name:Y,config:J}=a1($,G);if(J?.mode==="json")return new A9(Y);if(J?.mode==="bigint")return new K9(Y);return new F9(Y)}class B9 extends K1{static[b]="SQLiteCustomColumnBuilder";constructor($,G,Y){super($,"custom","SQLiteCustomColumn");this.config.fieldConfig=G,this.config.customTypeParams=Y}build($){return new N9($,this.config)}}class N9 extends z1{static[b]="SQLiteCustomColumn";sqlName;mapTo;mapFrom;constructor($,G){super($,G);this.sqlName=G.customTypeParams.dataType(G.fieldConfig),this.mapTo=G.customTypeParams.toDriver,this.mapFrom=G.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue($){return typeof this.mapFrom==="function"?this.mapFrom($):$}mapToDriverValue($){return typeof this.mapTo==="function"?this.mapTo($):$}}function z4($){return(G,Y)=>{let{name:J,config:X}=a1(G,Y);return new B9(J,X,$)}}class A4 extends K1{static[b]="SQLiteBaseIntegerBuilder";constructor($,G,Y){super($,G,Y);this.config.autoIncrement=!1}primaryKey($){if($?.autoIncrement)this.config.autoIncrement=!0;return this.config.hasDefault=!0,super.primaryKey()}}class O4 extends z1{static[b]="SQLiteBaseInteger";autoIncrement=this.config.autoIncrement;getSQLType(){return"integer"}}class j9 extends A4{static[b]="SQLiteIntegerBuilder";constructor($){super($,"number","SQLiteInteger")}build($){return new L9($,this.config)}}class L9 extends O4{static[b]="SQLiteInteger"}class P9 extends A4{static[b]="SQLiteTimestampBuilder";constructor($,G){super($,"date","SQLiteTimestamp");this.config.mode=G}defaultNow(){return this.default(S2`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build($){return new E9($,this.config)}}class E9 extends O4{static[b]="SQLiteTimestamp";mode=this.config.mode;mapFromDriverValue($){if(this.config.mode==="timestamp")return new Date($*1000);return new Date($)}mapToDriverValue($){let G=$.getTime();if(this.config.mode==="timestamp")return Math.floor(G/1000);return G}}class Z9 extends A4{static[b]="SQLiteBooleanBuilder";constructor($,G){super($,"boolean","SQLiteBoolean");this.config.mode=G}build($){return new S9($,this.config)}}class S9 extends O4{static[b]="SQLiteBoolean";mode=this.config.mode;mapFromDriverValue($){return Number($)===1}mapToDriverValue($){return $?1:0}}function y0($,G){let{name:Y,config:J}=a1($,G);if(J?.mode==="timestamp"||J?.mode==="timestamp_ms")return new P9(Y,J.mode);if(J?.mode==="boolean")return new Z9(Y,J.mode);return new j9(Y)}class T9 extends K1{static[b]="SQLiteNumericBuilder";constructor($){super($,"string","SQLiteNumeric")}build($){return new I9($,this.config)}}class I9 extends z1{static[b]="SQLiteNumeric";mapFromDriverValue($){if(typeof $==="string")return $;return String($)}getSQLType(){return"numeric"}}class C9 extends K1{static[b]="SQLiteNumericNumberBuilder";constructor($){super($,"number","SQLiteNumericNumber")}build($){return new b9($,this.config)}}class b9 extends z1{static[b]="SQLiteNumericNumber";mapFromDriverValue($){if(typeof $==="number")return $;return Number($)}mapToDriverValue=String;getSQLType(){return"numeric"}}class x9 extends K1{static[b]="SQLiteNumericBigIntBuilder";constructor($){super($,"bigint","SQLiteNumericBigInt")}build($){return new h9($,this.config)}}class h9 extends z1{static[b]="SQLiteNumericBigInt";mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return"numeric"}}function k9($,G){let{name:Y,config:J}=a1($,G),X=J?.mode;return X==="number"?new C9(Y):X==="bigint"?new x9(Y):new T9(Y)}class g9 extends K1{static[b]="SQLiteRealBuilder";constructor($){super($,"number","SQLiteReal")}build($){return new v9($,this.config)}}class v9 extends z1{static[b]="SQLiteReal";getSQLType(){return"real"}}function y9($){return new g9($??"")}class m9 extends K1{static[b]="SQLiteTextBuilder";constructor($,G){super($,"string","SQLiteText");this.config.enumValues=G.enum,this.config.length=G.length}build($){return new f9($,this.config)}}class f9 extends z1{static[b]="SQLiteText";enumValues=this.config.enumValues;length=this.config.length;constructor($,G){super($,G)}getSQLType(){return`text${this.config.length?`(${this.config.length})`:""}`}}class p9 extends K1{static[b]="SQLiteTextJsonBuilder";constructor($){super($,"json","SQLiteTextJson")}build($){return new u9($,this.config)}}class u9 extends z1{static[b]="SQLiteTextJson";getSQLType(){return"text"}mapFromDriverValue($){return JSON.parse($)}mapToDriverValue($){return JSON.stringify($)}}function b1($,G={}){let{name:Y,config:J}=a1($,G);if(J.mode==="json")return new p9(Y);return new m9(Y,J)}function l9(){return{blob:w9,customType:z4,integer:y0,numeric:k9,real:y9,text:b1}}var L5=Symbol.for("drizzle:SQLiteInlineForeignKeys");class m0 extends V1{static[b]="SQLiteTable";static Symbol=Object.assign({},V1.Symbol,{InlineForeignKeys:L5});[V1.Symbol.Columns];[L5]=[];[V1.Symbol.ExtraConfigBuilder]=void 0}function uY($,G,Y,J,X=$){let q=new m0($,J,X),W=typeof G==="function"?G(l9()):G,H=Object.fromEntries(Object.entries(W).map(([U,M])=>{let R=M;R.setName(U);let z=R.build(q);return q[L5].push(...R.buildForeignKeys(z,q)),[U,z]})),V=Object.assign(q,H);if(V[V1.Symbol.Columns]=H,V[V1.Symbol.ExtraConfigColumns]=H,Y)V[m0.Symbol.ExtraConfigBuilder]=Y;return V}var F4=($,G,Y)=>{return uY($,G,Y)};class r9{constructor($,G){this.name=$,this.value=G}static[b]="SQLiteCheckBuilder";brand;build($){return new c9($,this)}}class c9{constructor($,G){this.table=$,this.name=G.name,this.value=G.value}static[b]="SQLiteCheck";name;value}function d9($,G){return new r9($,G)}function _4(...$){if($[0].columns)return new P5($[0].columns,$[0].name);return new P5($)}class P5{static[b]="SQLitePrimaryKeyBuilder";columns;name;constructor($,G){this.columns=$,this.name=G}build($){return new i9($,this.columns,this.name)}}class i9{constructor($,G,Y){this.table=$,this.columns=G,this.name=Y}static[b]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[m0.Symbol.Name]}_${this.columns.map(($)=>$.name).join("_")}_pk`}}var w4=F4("entities",{id:b1("id").notNull(),entityType:b1("entityType").notNull(),content:b1("content").notNull(),contentHash:b1("contentHash").notNull(),visibility:b1("visibility",{enum:["public","shared","restricted"]}).notNull().default("public"),metadata:b1("metadata",{mode:"json"}).$type().notNull().default(S2`'{}'`),created:y0("created").notNull().$defaultFn(()=>Date.now()),updated:y0("updated").notNull().$defaultFn(()=>Date.now())},($)=>{return{pk:_4({columns:[$.id,$.entityType]}),visibilityCheck:d9("entities_visibility_check",S2`${$.visibility} IN ('public', 'shared', 'restricted')`)}});import{createClient as UQ}from"@libsql/client";var o9=z4({dataType(){return"F32_BLOB(1536)"},toDriver($){return Buffer.from($.buffer)},fromDriver($){return new Float32Array($.buffer,$.byteOffset,$.byteLength/4)}});var B4=F4("embeddings",{entityId:b1("entity_id").notNull(),entityType:b1("entity_type").notNull(),embedding:o9("embedding").notNull(),contentHash:b1("content_hash").notNull()},($)=>{return{pk:_4({columns:[$.entityId,$.entityType]})}});var L={};e6(L,{void:()=>EJ,util:()=>o,unknown:()=>LJ,union:()=>IJ,undefined:()=>BJ,tuple:()=>xJ,transformer:()=>lJ,symbol:()=>wJ,string:()=>J$,strictObject:()=>TJ,setErrorMap:()=>cY,set:()=>gJ,record:()=>hJ,quotelessJson:()=>lY,promise:()=>uJ,preprocess:()=>dJ,pipeline:()=>iJ,ostring:()=>oJ,optional:()=>rJ,onumber:()=>nJ,oboolean:()=>aJ,objectUtil:()=>E5,object:()=>SJ,number:()=>X$,nullable:()=>cJ,null:()=>NJ,never:()=>PJ,nativeEnum:()=>pJ,nan:()=>OJ,map:()=>kJ,makeIssue:()=>f0,literal:()=>mJ,lazy:()=>yJ,late:()=>zJ,isValid:()=>Q2,isDirty:()=>j4,isAsync:()=>$0,isAborted:()=>N4,intersection:()=>bJ,instanceof:()=>AJ,getParsedType:()=>s1,getErrorMap:()=>e2,function:()=>vJ,enum:()=>fJ,effect:()=>lJ,discriminatedUnion:()=>CJ,defaultErrorMap:()=>W2,datetimeRegex:()=>$$,date:()=>_J,custom:()=>Y$,coerce:()=>sJ,boolean:()=>q$,bigint:()=>FJ,array:()=>ZJ,any:()=>jJ,addIssueToContext:()=>C,ZodVoid:()=>u0,ZodUnknown:()=>R2,ZodUnion:()=>W0,ZodUndefined:()=>X0,ZodType:()=>d,ZodTuple:()=>e1,ZodTransformer:()=>i1,ZodSymbol:()=>p0,ZodString:()=>l1,ZodSet:()=>b2,ZodSchema:()=>d,ZodRecord:()=>l0,ZodReadonly:()=>R0,ZodPromise:()=>x2,ZodPipeline:()=>d0,ZodParsedType:()=>E,ZodOptional:()=>c1,ZodObject:()=>X1,ZodNumber:()=>K2,ZodNullable:()=>V2,ZodNull:()=>q0,ZodNever:()=>t1,ZodNativeEnum:()=>M0,ZodNaN:()=>c0,ZodMap:()=>r0,ZodLiteral:()=>U0,ZodLazy:()=>V0,ZodIssueCode:()=>N,ZodIntersection:()=>H0,ZodFunction:()=>Y0,ZodFirstPartyTypeKind:()=>f,ZodError:()=>L1,ZodEnum:()=>A2,ZodEffects:()=>i1,ZodDiscriminatedUnion:()=>L4,ZodDefault:()=>D0,ZodDate:()=>I2,ZodCatch:()=>Q0,ZodBranded:()=>P4,ZodBoolean:()=>J0,ZodBigInt:()=>z2,ZodArray:()=>r1,ZodAny:()=>C2,Schema:()=>d,ParseStatus:()=>O1,OK:()=>w1,NEVER:()=>tJ,INVALID:()=>y,EMPTY_PATH:()=>dY,DIRTY:()=>T2,BRAND:()=>KJ});var o;(function($){$.assertEqual=(X)=>{};function G(X){}$.assertIs=G;function Y(X){throw Error()}$.assertNever=Y,$.arrayToEnum=(X)=>{let q={};for(let W of X)q[W]=W;return q},$.getValidEnumValues=(X)=>{let q=$.objectKeys(X).filter((H)=>typeof X[X[H]]!=="number"),W={};for(let H of q)W[H]=X[H];return $.objectValues(W)},$.objectValues=(X)=>{return $.objectKeys(X).map(function(q){return X[q]})},$.objectKeys=typeof Object.keys==="function"?(X)=>Object.keys(X):(X)=>{let q=[];for(let W in X)if(Object.prototype.hasOwnProperty.call(X,W))q.push(W);return q},$.find=(X,q)=>{for(let W of X)if(q(W))return W;return},$.isInteger=typeof Number.isInteger==="function"?(X)=>Number.isInteger(X):(X)=>typeof X==="number"&&Number.isFinite(X)&&Math.floor(X)===X;function J(X,q=" | "){return X.map((W)=>typeof W==="string"?`'${W}'`:W).join(q)}$.joinValues=J,$.jsonStringifyReplacer=(X,q)=>{if(typeof q==="bigint")return q.toString();return q}})(o||(o={}));var E5;(function($){$.mergeShapes=(G,Y)=>{return{...G,...Y}}})(E5||(E5={}));var E=o.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s1=($)=>{switch(typeof $){case"undefined":return E.undefined;case"string":return E.string;case"number":return Number.isNaN($)?E.nan:E.number;case"boolean":return E.boolean;case"function":return E.function;case"bigint":return E.bigint;case"symbol":return E.symbol;case"object":if(Array.isArray($))return E.array;if($===null)return E.null;if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return E.promise;if(typeof Map<"u"&&$ instanceof Map)return E.map;if(typeof Set<"u"&&$ instanceof Set)return E.set;if(typeof Date<"u"&&$ instanceof Date)return E.date;return E.object;default:return E.unknown}};var N=o.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"]),lY=($)=>{return JSON.stringify($,null,2).replace(/"([^"]+)":/g,"$1:")};class L1 extends Error{get errors(){return this.issues}constructor($){super();this.issues=[],this.addIssue=(Y)=>{this.issues=[...this.issues,Y]},this.addIssues=(Y=[])=>{this.issues=[...this.issues,...Y]};let G=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,G);else this.__proto__=G;this.name="ZodError",this.issues=$}format($){let G=$||function(X){return X.message},Y={_errors:[]},J=(X)=>{for(let q of X.issues)if(q.code==="invalid_union")q.unionErrors.map(J);else if(q.code==="invalid_return_type")J(q.returnTypeError);else if(q.code==="invalid_arguments")J(q.argumentsError);else if(q.path.length===0)Y._errors.push(G(q));else{let W=Y,H=0;while(H<q.path.length){let V=q.path[H];if(H!==q.path.length-1)W[V]=W[V]||{_errors:[]};else W[V]=W[V]||{_errors:[]},W[V]._errors.push(G(q));W=W[V],H++}}};return J(this),Y}static assert($){if(!($ instanceof L1))throw Error(`Not a ZodError: ${$}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,o.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten($=(G)=>G.message){let G={},Y=[];for(let J of this.issues)if(J.path.length>0){let X=J.path[0];G[X]=G[X]||[],G[X].push($(J))}else Y.push($(J));return{formErrors:Y,fieldErrors:G}}get formErrors(){return this.flatten()}}L1.create=($)=>{return new L1($)};var rY=($,G)=>{let Y;switch($.code){case N.invalid_type:if($.received===E.undefined)Y="Required";else Y=`Expected ${$.expected}, received ${$.received}`;break;case N.invalid_literal:Y=`Invalid literal value, expected ${JSON.stringify($.expected,o.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:Y=`Unrecognized key(s) in object: ${o.joinValues($.keys,", ")}`;break;case N.invalid_union:Y="Invalid input";break;case N.invalid_union_discriminator:Y=`Invalid discriminator value. Expected ${o.joinValues($.options)}`;break;case N.invalid_enum_value:Y=`Invalid enum value. Expected ${o.joinValues($.options)}, received '${$.received}'`;break;case N.invalid_arguments:Y="Invalid function arguments";break;case N.invalid_return_type:Y="Invalid function return type";break;case N.invalid_date:Y="Invalid date";break;case N.invalid_string:if(typeof $.validation==="object")if("includes"in $.validation){if(Y=`Invalid input: must include "${$.validation.includes}"`,typeof $.validation.position==="number")Y=`${Y} at one or more positions greater than or equal to ${$.validation.position}`}else if("startsWith"in $.validation)Y=`Invalid input: must start with "${$.validation.startsWith}"`;else if("endsWith"in $.validation)Y=`Invalid input: must end with "${$.validation.endsWith}"`;else o.assertNever($.validation);else if($.validation!=="regex")Y=`Invalid ${$.validation}`;else Y="Invalid";break;case N.too_small:if($.type==="array")Y=`Array must contain ${$.exact?"exactly":$.inclusive?"at least":"more than"} ${$.minimum} element(s)`;else if($.type==="string")Y=`String must contain ${$.exact?"exactly":$.inclusive?"at least":"over"} ${$.minimum} character(s)`;else if($.type==="number")Y=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="bigint")Y=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="date")Y=`Date must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${new Date(Number($.minimum))}`;else Y="Invalid input";break;case N.too_big:if($.type==="array")Y=`Array must contain ${$.exact?"exactly":$.inclusive?"at most":"less than"} ${$.maximum} element(s)`;else if($.type==="string")Y=`String must contain ${$.exact?"exactly":$.inclusive?"at most":"under"} ${$.maximum} character(s)`;else if($.type==="number")Y=`Number must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="bigint")Y=`BigInt must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="date")Y=`Date must be ${$.exact?"exactly":$.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number($.maximum))}`;else Y="Invalid input";break;case N.custom:Y="Invalid input";break;case N.invalid_intersection_types:Y="Intersection results could not be merged";break;case N.not_multiple_of:Y=`Number must be a multiple of ${$.multipleOf}`;break;case N.not_finite:Y="Number must be finite";break;default:Y=G.defaultError,o.assertNever($)}return{message:Y}},W2=rY;var n9=W2;function cY($){n9=$}function e2(){return n9}var f0=($)=>{let{data:G,path:Y,errorMaps:J,issueData:X}=$,q=[...Y,...X.path||[]],W={...X,path:q};if(X.message!==void 0)return{...X,path:q,message:X.message};let H="",V=J.filter((U)=>!!U).slice().reverse();for(let U of V)H=U(W,{data:G,defaultError:H}).message;return{...X,path:q,message:H}},dY=[];function C($,G){let Y=e2(),J=f0({issueData:G,data:$.data,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,Y,Y===W2?void 0:W2].filter((X)=>!!X)});$.common.issues.push(J)}class O1{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray($,G){let Y=[];for(let J of G){if(J.status==="aborted")return y;if(J.status==="dirty")$.dirty();Y.push(J.value)}return{status:$.value,value:Y}}static async mergeObjectAsync($,G){let Y=[];for(let J of G){let X=await J.key,q=await J.value;Y.push({key:X,value:q})}return O1.mergeObjectSync($,Y)}static mergeObjectSync($,G){let Y={};for(let J of G){let{key:X,value:q}=J;if(X.status==="aborted")return y;if(q.status==="aborted")return y;if(X.status==="dirty")$.dirty();if(q.status==="dirty")$.dirty();if(X.value!=="__proto__"&&(typeof q.value<"u"||J.alwaysSet))Y[X.value]=q.value}return{status:$.value,value:Y}}}var y=Object.freeze({status:"aborted"}),T2=($)=>({status:"dirty",value:$}),w1=($)=>({status:"valid",value:$}),N4=($)=>$.status==="aborted",j4=($)=>$.status==="dirty",Q2=($)=>$.status==="valid",$0=($)=>typeof Promise<"u"&&$ instanceof Promise;var k;(function($){$.errToObj=(G)=>typeof G==="string"?{message:G}:G||{},$.toString=(G)=>typeof G==="string"?G:G?.message})(k||(k={}));class d1{constructor($,G,Y,J){this._cachedPath=[],this.parent=$,this.data=G,this._path=Y,this._key=J}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}}var a9=($,G)=>{if(Q2(G))return{success:!0,data:G.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 Y=new L1($.common.issues);return this._error=Y,this._error}}}};function r($){if(!$)return{};let{errorMap:G,invalid_type_error:Y,required_error:J,description:X}=$;if(G&&(Y||J))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(G)return{errorMap:G,description:X};return{errorMap:(W,H)=>{let{message:V}=$;if(W.code==="invalid_enum_value")return{message:V??H.defaultError};if(typeof H.data>"u")return{message:V??J??H.defaultError};if(W.code!=="invalid_type")return{message:H.defaultError};return{message:V??Y??H.defaultError}},description:X}}class d{get description(){return this._def.description}_getType($){return s1($.data)}_getOrReturnCtx($,G){return G||{common:$.parent.common,data:$.data,parsedType:s1($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}_processInputParams($){return{status:new O1,ctx:{common:$.parent.common,data:$.data,parsedType:s1($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}}_parseSync($){let G=this._parse($);if($0(G))throw Error("Synchronous parse encountered promise.");return G}_parseAsync($){let G=this._parse($);return Promise.resolve(G)}parse($,G){let Y=this.safeParse($,G);if(Y.success)return Y.data;throw Y.error}safeParse($,G){let Y={common:{issues:[],async:G?.async??!1,contextualErrorMap:G?.errorMap},path:G?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:s1($)},J=this._parseSync({data:$,path:Y.path,parent:Y});return a9(Y,J)}"~validate"($){let G={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:s1($)};if(!this["~standard"].async)try{let Y=this._parseSync({data:$,path:[],parent:G});return Q2(Y)?{value:Y.value}:{issues:G.common.issues}}catch(Y){if(Y?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;G.common={issues:[],async:!0}}return this._parseAsync({data:$,path:[],parent:G}).then((Y)=>Q2(Y)?{value:Y.value}:{issues:G.common.issues})}async parseAsync($,G){let Y=await this.safeParseAsync($,G);if(Y.success)return Y.data;throw Y.error}async safeParseAsync($,G){let Y={common:{issues:[],contextualErrorMap:G?.errorMap,async:!0},path:G?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:s1($)},J=this._parse({data:$,path:Y.path,parent:Y}),X=await($0(J)?J:Promise.resolve(J));return a9(Y,X)}refine($,G){let Y=(J)=>{if(typeof G==="string"||typeof G>"u")return{message:G};else if(typeof G==="function")return G(J);else return G};return this._refinement((J,X)=>{let q=$(J),W=()=>X.addIssue({code:N.custom,...Y(J)});if(typeof Promise<"u"&&q instanceof Promise)return q.then((H)=>{if(!H)return W(),!1;else return!0});if(!q)return W(),!1;else return!0})}refinement($,G){return this._refinement((Y,J)=>{if(!$(Y))return J.addIssue(typeof G==="function"?G(Y,J):G),!1;else return!0})}_refinement($){return new i1({schema:this,typeName:f.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:(G)=>this["~validate"](G)}}optional(){return c1.create(this,this._def)}nullable(){return V2.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return r1.create(this)}promise(){return x2.create(this,this._def)}or($){return W0.create([this,$],this._def)}and($){return H0.create(this,$,this._def)}transform($){return new i1({...r(this._def),schema:this,typeName:f.ZodEffects,effect:{type:"transform",transform:$}})}default($){let G=typeof $==="function"?$:()=>$;return new D0({...r(this._def),innerType:this,defaultValue:G,typeName:f.ZodDefault})}brand(){return new P4({typeName:f.ZodBranded,type:this,...r(this._def)})}catch($){let G=typeof $==="function"?$:()=>$;return new Q0({...r(this._def),innerType:this,catchValue:G,typeName:f.ZodCatch})}describe($){return new this.constructor({...this._def,description:$})}pipe($){return d0.create(this,$)}readonly(){return R0.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var iY=/^c[^\s-]{8,}$/i,oY=/^[0-9a-z]+$/,nY=/^[0-9A-HJKMNP-TV-Z]{26}$/i,aY=/^[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,sY=/^[a-z0-9_-]{21}$/i,tY=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,eY=/^[-+]?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)?)??$/,$J=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,GJ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Z5,YJ=/^(?:(?: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])$/,JJ=/^(?:(?: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])$/,XJ=/^(([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]))$/,qJ=/^(([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])$/,WJ=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,HJ=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,t9="((\\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])))",VJ=new RegExp(`^${t9}$`);function e9($){let G="[0-5]\\d";if($.precision)G=`${G}\\.\\d{${$.precision}}`;else if($.precision==null)G=`${G}(\\.\\d+)?`;let Y=$.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${G})${Y}`}function UJ($){return new RegExp(`^${e9($)}$`)}function $$($){let G=`${t9}T${e9($)}`,Y=[];if(Y.push($.local?"Z?":"Z"),$.offset)Y.push("([+-]\\d{2}:?\\d{2})");return G=`${G}(${Y.join("|")})`,new RegExp(`^${G}$`)}function MJ($,G){if((G==="v4"||!G)&&YJ.test($))return!0;if((G==="v6"||!G)&&XJ.test($))return!0;return!1}function DJ($,G){if(!tY.test($))return!1;try{let[Y]=$.split(".");if(!Y)return!1;let J=Y.replace(/-/g,"+").replace(/_/g,"/").padEnd(Y.length+(4-Y.length%4)%4,"="),X=JSON.parse(atob(J));if(typeof X!=="object"||X===null)return!1;if("typ"in X&&X?.typ!=="JWT")return!1;if(!X.alg)return!1;if(G&&X.alg!==G)return!1;return!0}catch{return!1}}function QJ($,G){if((G==="v4"||!G)&&JJ.test($))return!0;if((G==="v6"||!G)&&qJ.test($))return!0;return!1}class l1 extends d{_parse($){if(this._def.coerce)$.data=String($.data);if(this._getType($)!==E.string){let X=this._getOrReturnCtx($);return C(X,{code:N.invalid_type,expected:E.string,received:X.parsedType}),y}let Y=new O1,J=void 0;for(let X of this._def.checks)if(X.kind==="min"){if($.data.length<X.value)J=this._getOrReturnCtx($,J),C(J,{code:N.too_small,minimum:X.value,type:"string",inclusive:!0,exact:!1,message:X.message}),Y.dirty()}else if(X.kind==="max"){if($.data.length>X.value)J=this._getOrReturnCtx($,J),C(J,{code:N.too_big,maximum:X.value,type:"string",inclusive:!0,exact:!1,message:X.message}),Y.dirty()}else if(X.kind==="length"){let q=$.data.length>X.value,W=$.data.length<X.value;if(q||W){if(J=this._getOrReturnCtx($,J),q)C(J,{code:N.too_big,maximum:X.value,type:"string",inclusive:!0,exact:!0,message:X.message});else if(W)C(J,{code:N.too_small,minimum:X.value,type:"string",inclusive:!0,exact:!0,message:X.message});Y.dirty()}}else if(X.kind==="email"){if(!$J.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"email",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="emoji"){if(!Z5)Z5=new RegExp(GJ,"u");if(!Z5.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"emoji",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="uuid"){if(!aY.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"uuid",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="nanoid"){if(!sY.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"nanoid",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="cuid"){if(!iY.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"cuid",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="cuid2"){if(!oY.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"cuid2",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="ulid"){if(!nY.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"ulid",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="url")try{new URL($.data)}catch{J=this._getOrReturnCtx($,J),C(J,{validation:"url",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="regex"){if(X.regex.lastIndex=0,!X.regex.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"regex",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="trim")$.data=$.data.trim();else if(X.kind==="includes"){if(!$.data.includes(X.value,X.position))J=this._getOrReturnCtx($,J),C(J,{code:N.invalid_string,validation:{includes:X.value,position:X.position},message:X.message}),Y.dirty()}else if(X.kind==="toLowerCase")$.data=$.data.toLowerCase();else if(X.kind==="toUpperCase")$.data=$.data.toUpperCase();else if(X.kind==="startsWith"){if(!$.data.startsWith(X.value))J=this._getOrReturnCtx($,J),C(J,{code:N.invalid_string,validation:{startsWith:X.value},message:X.message}),Y.dirty()}else if(X.kind==="endsWith"){if(!$.data.endsWith(X.value))J=this._getOrReturnCtx($,J),C(J,{code:N.invalid_string,validation:{endsWith:X.value},message:X.message}),Y.dirty()}else if(X.kind==="datetime"){if(!$$(X).test($.data))J=this._getOrReturnCtx($,J),C(J,{code:N.invalid_string,validation:"datetime",message:X.message}),Y.dirty()}else if(X.kind==="date"){if(!VJ.test($.data))J=this._getOrReturnCtx($,J),C(J,{code:N.invalid_string,validation:"date",message:X.message}),Y.dirty()}else if(X.kind==="time"){if(!UJ(X).test($.data))J=this._getOrReturnCtx($,J),C(J,{code:N.invalid_string,validation:"time",message:X.message}),Y.dirty()}else if(X.kind==="duration"){if(!eY.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"duration",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="ip"){if(!MJ($.data,X.version))J=this._getOrReturnCtx($,J),C(J,{validation:"ip",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="jwt"){if(!DJ($.data,X.alg))J=this._getOrReturnCtx($,J),C(J,{validation:"jwt",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="cidr"){if(!QJ($.data,X.version))J=this._getOrReturnCtx($,J),C(J,{validation:"cidr",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="base64"){if(!WJ.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"base64",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="base64url"){if(!HJ.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"base64url",code:N.invalid_string,message:X.message}),Y.dirty()}else o.assertNever(X);return{status:Y.value,value:$.data}}_regex($,G,Y){return this.refinement((J)=>$.test(J),{validation:G,code:N.invalid_string,...k.errToObj(Y)})}_addCheck($){return new l1({...this._def,checks:[...this._def.checks,$]})}email($){return this._addCheck({kind:"email",...k.errToObj($)})}url($){return this._addCheck({kind:"url",...k.errToObj($)})}emoji($){return this._addCheck({kind:"emoji",...k.errToObj($)})}uuid($){return this._addCheck({kind:"uuid",...k.errToObj($)})}nanoid($){return this._addCheck({kind:"nanoid",...k.errToObj($)})}cuid($){return this._addCheck({kind:"cuid",...k.errToObj($)})}cuid2($){return this._addCheck({kind:"cuid2",...k.errToObj($)})}ulid($){return this._addCheck({kind:"ulid",...k.errToObj($)})}base64($){return this._addCheck({kind:"base64",...k.errToObj($)})}base64url($){return this._addCheck({kind:"base64url",...k.errToObj($)})}jwt($){return this._addCheck({kind:"jwt",...k.errToObj($)})}ip($){return this._addCheck({kind:"ip",...k.errToObj($)})}cidr($){return this._addCheck({kind:"cidr",...k.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,...k.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,...k.errToObj($?.message)})}duration($){return this._addCheck({kind:"duration",...k.errToObj($)})}regex($,G){return this._addCheck({kind:"regex",regex:$,...k.errToObj(G)})}includes($,G){return this._addCheck({kind:"includes",value:$,position:G?.position,...k.errToObj(G?.message)})}startsWith($,G){return this._addCheck({kind:"startsWith",value:$,...k.errToObj(G)})}endsWith($,G){return this._addCheck({kind:"endsWith",value:$,...k.errToObj(G)})}min($,G){return this._addCheck({kind:"min",value:$,...k.errToObj(G)})}max($,G){return this._addCheck({kind:"max",value:$,...k.errToObj(G)})}length($,G){return this._addCheck({kind:"length",value:$,...k.errToObj(G)})}nonempty($){return this.min(1,k.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 G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $}get maxLength(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $}}l1.create=($)=>{return new l1({checks:[],typeName:f.ZodString,coerce:$?.coerce??!1,...r($)})};function RJ($,G){let Y=($.toString().split(".")[1]||"").length,J=(G.toString().split(".")[1]||"").length,X=Y>J?Y:J,q=Number.parseInt($.toFixed(X).replace(".","")),W=Number.parseInt(G.toFixed(X).replace(".",""));return q%W/10**X}class K2 extends d{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($)!==E.number){let X=this._getOrReturnCtx($);return C(X,{code:N.invalid_type,expected:E.number,received:X.parsedType}),y}let Y=void 0,J=new O1;for(let X of this._def.checks)if(X.kind==="int"){if(!o.isInteger($.data))Y=this._getOrReturnCtx($,Y),C(Y,{code:N.invalid_type,expected:"integer",received:"float",message:X.message}),J.dirty()}else if(X.kind==="min"){if(X.inclusive?$.data<X.value:$.data<=X.value)Y=this._getOrReturnCtx($,Y),C(Y,{code:N.too_small,minimum:X.value,type:"number",inclusive:X.inclusive,exact:!1,message:X.message}),J.dirty()}else if(X.kind==="max"){if(X.inclusive?$.data>X.value:$.data>=X.value)Y=this._getOrReturnCtx($,Y),C(Y,{code:N.too_big,maximum:X.value,type:"number",inclusive:X.inclusive,exact:!1,message:X.message}),J.dirty()}else if(X.kind==="multipleOf"){if(RJ($.data,X.value)!==0)Y=this._getOrReturnCtx($,Y),C(Y,{code:N.not_multiple_of,multipleOf:X.value,message:X.message}),J.dirty()}else if(X.kind==="finite"){if(!Number.isFinite($.data))Y=this._getOrReturnCtx($,Y),C(Y,{code:N.not_finite,message:X.message}),J.dirty()}else o.assertNever(X);return{status:J.value,value:$.data}}gte($,G){return this.setLimit("min",$,!0,k.toString(G))}gt($,G){return this.setLimit("min",$,!1,k.toString(G))}lte($,G){return this.setLimit("max",$,!0,k.toString(G))}lt($,G){return this.setLimit("max",$,!1,k.toString(G))}setLimit($,G,Y,J){return new K2({...this._def,checks:[...this._def.checks,{kind:$,value:G,inclusive:Y,message:k.toString(J)}]})}_addCheck($){return new K2({...this._def,checks:[...this._def.checks,$]})}int($){return this._addCheck({kind:"int",message:k.toString($)})}positive($){return this._addCheck({kind:"min",value:0,inclusive:!1,message:k.toString($)})}negative($){return this._addCheck({kind:"max",value:0,inclusive:!1,message:k.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:0,inclusive:!0,message:k.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:0,inclusive:!0,message:k.toString($)})}multipleOf($,G){return this._addCheck({kind:"multipleOf",value:$,message:k.toString(G)})}finite($){return this._addCheck({kind:"finite",message:k.toString($)})}safe($){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:k.toString($)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:k.toString($)})}get minValue(){let $=null;for(let G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $}get maxValue(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $}get isInt(){return!!this._def.checks.find(($)=>$.kind==="int"||$.kind==="multipleOf"&&o.isInteger($.value))}get isFinite(){let $=null,G=null;for(let Y of this._def.checks)if(Y.kind==="finite"||Y.kind==="int"||Y.kind==="multipleOf")return!0;else if(Y.kind==="min"){if(G===null||Y.value>G)G=Y.value}else if(Y.kind==="max"){if($===null||Y.value<$)$=Y.value}return Number.isFinite(G)&&Number.isFinite($)}}K2.create=($)=>{return new K2({checks:[],typeName:f.ZodNumber,coerce:$?.coerce||!1,...r($)})};class z2 extends d{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($)!==E.bigint)return this._getInvalidInput($);let Y=void 0,J=new O1;for(let X of this._def.checks)if(X.kind==="min"){if(X.inclusive?$.data<X.value:$.data<=X.value)Y=this._getOrReturnCtx($,Y),C(Y,{code:N.too_small,type:"bigint",minimum:X.value,inclusive:X.inclusive,message:X.message}),J.dirty()}else if(X.kind==="max"){if(X.inclusive?$.data>X.value:$.data>=X.value)Y=this._getOrReturnCtx($,Y),C(Y,{code:N.too_big,type:"bigint",maximum:X.value,inclusive:X.inclusive,message:X.message}),J.dirty()}else if(X.kind==="multipleOf"){if($.data%X.value!==BigInt(0))Y=this._getOrReturnCtx($,Y),C(Y,{code:N.not_multiple_of,multipleOf:X.value,message:X.message}),J.dirty()}else o.assertNever(X);return{status:J.value,value:$.data}}_getInvalidInput($){let G=this._getOrReturnCtx($);return C(G,{code:N.invalid_type,expected:E.bigint,received:G.parsedType}),y}gte($,G){return this.setLimit("min",$,!0,k.toString(G))}gt($,G){return this.setLimit("min",$,!1,k.toString(G))}lte($,G){return this.setLimit("max",$,!0,k.toString(G))}lt($,G){return this.setLimit("max",$,!1,k.toString(G))}setLimit($,G,Y,J){return new z2({...this._def,checks:[...this._def.checks,{kind:$,value:G,inclusive:Y,message:k.toString(J)}]})}_addCheck($){return new z2({...this._def,checks:[...this._def.checks,$]})}positive($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:k.toString($)})}negative($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:k.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:k.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:k.toString($)})}multipleOf($,G){return this._addCheck({kind:"multipleOf",value:$,message:k.toString(G)})}get minValue(){let $=null;for(let G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $}get maxValue(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $}}z2.create=($)=>{return new z2({checks:[],typeName:f.ZodBigInt,coerce:$?.coerce??!1,...r($)})};class J0 extends d{_parse($){if(this._def.coerce)$.data=Boolean($.data);if(this._getType($)!==E.boolean){let Y=this._getOrReturnCtx($);return C(Y,{code:N.invalid_type,expected:E.boolean,received:Y.parsedType}),y}return w1($.data)}}J0.create=($)=>{return new J0({typeName:f.ZodBoolean,coerce:$?.coerce||!1,...r($)})};class I2 extends d{_parse($){if(this._def.coerce)$.data=new Date($.data);if(this._getType($)!==E.date){let X=this._getOrReturnCtx($);return C(X,{code:N.invalid_type,expected:E.date,received:X.parsedType}),y}if(Number.isNaN($.data.getTime())){let X=this._getOrReturnCtx($);return C(X,{code:N.invalid_date}),y}let Y=new O1,J=void 0;for(let X of this._def.checks)if(X.kind==="min"){if($.data.getTime()<X.value)J=this._getOrReturnCtx($,J),C(J,{code:N.too_small,message:X.message,inclusive:!0,exact:!1,minimum:X.value,type:"date"}),Y.dirty()}else if(X.kind==="max"){if($.data.getTime()>X.value)J=this._getOrReturnCtx($,J),C(J,{code:N.too_big,message:X.message,inclusive:!0,exact:!1,maximum:X.value,type:"date"}),Y.dirty()}else o.assertNever(X);return{status:Y.value,value:new Date($.data.getTime())}}_addCheck($){return new I2({...this._def,checks:[...this._def.checks,$]})}min($,G){return this._addCheck({kind:"min",value:$.getTime(),message:k.toString(G)})}max($,G){return this._addCheck({kind:"max",value:$.getTime(),message:k.toString(G)})}get minDate(){let $=null;for(let G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $!=null?new Date($):null}get maxDate(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $!=null?new Date($):null}}I2.create=($)=>{return new I2({checks:[],coerce:$?.coerce||!1,typeName:f.ZodDate,...r($)})};class p0 extends d{_parse($){if(this._getType($)!==E.symbol){let Y=this._getOrReturnCtx($);return C(Y,{code:N.invalid_type,expected:E.symbol,received:Y.parsedType}),y}return w1($.data)}}p0.create=($)=>{return new p0({typeName:f.ZodSymbol,...r($)})};class X0 extends d{_parse($){if(this._getType($)!==E.undefined){let Y=this._getOrReturnCtx($);return C(Y,{code:N.invalid_type,expected:E.undefined,received:Y.parsedType}),y}return w1($.data)}}X0.create=($)=>{return new X0({typeName:f.ZodUndefined,...r($)})};class q0 extends d{_parse($){if(this._getType($)!==E.null){let Y=this._getOrReturnCtx($);return C(Y,{code:N.invalid_type,expected:E.null,received:Y.parsedType}),y}return w1($.data)}}q0.create=($)=>{return new q0({typeName:f.ZodNull,...r($)})};class C2 extends d{constructor(){super(...arguments);this._any=!0}_parse($){return w1($.data)}}C2.create=($)=>{return new C2({typeName:f.ZodAny,...r($)})};class R2 extends d{constructor(){super(...arguments);this._unknown=!0}_parse($){return w1($.data)}}R2.create=($)=>{return new R2({typeName:f.ZodUnknown,...r($)})};class t1 extends d{_parse($){let G=this._getOrReturnCtx($);return C(G,{code:N.invalid_type,expected:E.never,received:G.parsedType}),y}}t1.create=($)=>{return new t1({typeName:f.ZodNever,...r($)})};class u0 extends d{_parse($){if(this._getType($)!==E.undefined){let Y=this._getOrReturnCtx($);return C(Y,{code:N.invalid_type,expected:E.void,received:Y.parsedType}),y}return w1($.data)}}u0.create=($)=>{return new u0({typeName:f.ZodVoid,...r($)})};class r1 extends d{_parse($){let{ctx:G,status:Y}=this._processInputParams($),J=this._def;if(G.parsedType!==E.array)return C(G,{code:N.invalid_type,expected:E.array,received:G.parsedType}),y;if(J.exactLength!==null){let q=G.data.length>J.exactLength.value,W=G.data.length<J.exactLength.value;if(q||W)C(G,{code:q?N.too_big:N.too_small,minimum:W?J.exactLength.value:void 0,maximum:q?J.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:J.exactLength.message}),Y.dirty()}if(J.minLength!==null){if(G.data.length<J.minLength.value)C(G,{code:N.too_small,minimum:J.minLength.value,type:"array",inclusive:!0,exact:!1,message:J.minLength.message}),Y.dirty()}if(J.maxLength!==null){if(G.data.length>J.maxLength.value)C(G,{code:N.too_big,maximum:J.maxLength.value,type:"array",inclusive:!0,exact:!1,message:J.maxLength.message}),Y.dirty()}if(G.common.async)return Promise.all([...G.data].map((q,W)=>{return J.type._parseAsync(new d1(G,q,G.path,W))})).then((q)=>{return O1.mergeArray(Y,q)});let X=[...G.data].map((q,W)=>{return J.type._parseSync(new d1(G,q,G.path,W))});return O1.mergeArray(Y,X)}get element(){return this._def.type}min($,G){return new r1({...this._def,minLength:{value:$,message:k.toString(G)}})}max($,G){return new r1({...this._def,maxLength:{value:$,message:k.toString(G)}})}length($,G){return new r1({...this._def,exactLength:{value:$,message:k.toString(G)}})}nonempty($){return this.min(1,$)}}r1.create=($,G)=>{return new r1({type:$,minLength:null,maxLength:null,exactLength:null,typeName:f.ZodArray,...r(G)})};function G0($){if($ instanceof X1){let G={};for(let Y in $.shape){let J=$.shape[Y];G[Y]=c1.create(G0(J))}return new X1({...$._def,shape:()=>G})}else if($ instanceof r1)return new r1({...$._def,type:G0($.element)});else if($ instanceof c1)return c1.create(G0($.unwrap()));else if($ instanceof V2)return V2.create(G0($.unwrap()));else if($ instanceof e1)return e1.create($.items.map((G)=>G0(G)));else return $}class X1 extends d{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(),G=o.objectKeys($);return this._cached={shape:$,keys:G},this._cached}_parse($){if(this._getType($)!==E.object){let V=this._getOrReturnCtx($);return C(V,{code:N.invalid_type,expected:E.object,received:V.parsedType}),y}let{status:Y,ctx:J}=this._processInputParams($),{shape:X,keys:q}=this._getCached(),W=[];if(!(this._def.catchall instanceof t1&&this._def.unknownKeys==="strip")){for(let V in J.data)if(!q.includes(V))W.push(V)}let H=[];for(let V of q){let U=X[V],M=J.data[V];H.push({key:{status:"valid",value:V},value:U._parse(new d1(J,M,J.path,V)),alwaysSet:V in J.data})}if(this._def.catchall instanceof t1){let V=this._def.unknownKeys;if(V==="passthrough")for(let U of W)H.push({key:{status:"valid",value:U},value:{status:"valid",value:J.data[U]}});else if(V==="strict"){if(W.length>0)C(J,{code:N.unrecognized_keys,keys:W}),Y.dirty()}else if(V==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let V=this._def.catchall;for(let U of W){let M=J.data[U];H.push({key:{status:"valid",value:U},value:V._parse(new d1(J,M,J.path,U)),alwaysSet:U in J.data})}}if(J.common.async)return Promise.resolve().then(async()=>{let V=[];for(let U of H){let M=await U.key,R=await U.value;V.push({key:M,value:R,alwaysSet:U.alwaysSet})}return V}).then((V)=>{return O1.mergeObjectSync(Y,V)});else return O1.mergeObjectSync(Y,H)}get shape(){return this._def.shape()}strict($){return k.errToObj,new X1({...this._def,unknownKeys:"strict",...$!==void 0?{errorMap:(G,Y)=>{let J=this._def.errorMap?.(G,Y).message??Y.defaultError;if(G.code==="unrecognized_keys")return{message:k.errToObj($).message??J};return{message:J}}}:{}})}strip(){return new X1({...this._def,unknownKeys:"strip"})}passthrough(){return new X1({...this._def,unknownKeys:"passthrough"})}extend($){return new X1({...this._def,shape:()=>({...this._def.shape(),...$})})}merge($){return new X1({unknownKeys:$._def.unknownKeys,catchall:$._def.catchall,shape:()=>({...this._def.shape(),...$._def.shape()}),typeName:f.ZodObject})}setKey($,G){return this.augment({[$]:G})}catchall($){return new X1({...this._def,catchall:$})}pick($){let G={};for(let Y of o.objectKeys($))if($[Y]&&this.shape[Y])G[Y]=this.shape[Y];return new X1({...this._def,shape:()=>G})}omit($){let G={};for(let Y of o.objectKeys(this.shape))if(!$[Y])G[Y]=this.shape[Y];return new X1({...this._def,shape:()=>G})}deepPartial(){return G0(this)}partial($){let G={};for(let Y of o.objectKeys(this.shape)){let J=this.shape[Y];if($&&!$[Y])G[Y]=J;else G[Y]=J.optional()}return new X1({...this._def,shape:()=>G})}required($){let G={};for(let Y of o.objectKeys(this.shape))if($&&!$[Y])G[Y]=this.shape[Y];else{let X=this.shape[Y];while(X instanceof c1)X=X._def.innerType;G[Y]=X}return new X1({...this._def,shape:()=>G})}keyof(){return G$(o.objectKeys(this.shape))}}X1.create=($,G)=>{return new X1({shape:()=>$,unknownKeys:"strip",catchall:t1.create(),typeName:f.ZodObject,...r(G)})};X1.strictCreate=($,G)=>{return new X1({shape:()=>$,unknownKeys:"strict",catchall:t1.create(),typeName:f.ZodObject,...r(G)})};X1.lazycreate=($,G)=>{return new X1({shape:$,unknownKeys:"strip",catchall:t1.create(),typeName:f.ZodObject,...r(G)})};class W0 extends d{_parse($){let{ctx:G}=this._processInputParams($),Y=this._def.options;function J(X){for(let W of X)if(W.result.status==="valid")return W.result;for(let W of X)if(W.result.status==="dirty")return G.common.issues.push(...W.ctx.common.issues),W.result;let q=X.map((W)=>new L1(W.ctx.common.issues));return C(G,{code:N.invalid_union,unionErrors:q}),y}if(G.common.async)return Promise.all(Y.map(async(X)=>{let q={...G,common:{...G.common,issues:[]},parent:null};return{result:await X._parseAsync({data:G.data,path:G.path,parent:q}),ctx:q}})).then(J);else{let X=void 0,q=[];for(let H of Y){let V={...G,common:{...G.common,issues:[]},parent:null},U=H._parseSync({data:G.data,path:G.path,parent:V});if(U.status==="valid")return U;else if(U.status==="dirty"&&!X)X={result:U,ctx:V};if(V.common.issues.length)q.push(V.common.issues)}if(X)return G.common.issues.push(...X.ctx.common.issues),X.result;let W=q.map((H)=>new L1(H));return C(G,{code:N.invalid_union,unionErrors:W}),y}}get options(){return this._def.options}}W0.create=($,G)=>{return new W0({options:$,typeName:f.ZodUnion,...r(G)})};var H2=($)=>{if($ instanceof V0)return H2($.schema);else if($ instanceof i1)return H2($.innerType());else if($ instanceof U0)return[$.value];else if($ instanceof A2)return $.options;else if($ instanceof M0)return o.objectValues($.enum);else if($ instanceof D0)return H2($._def.innerType);else if($ instanceof X0)return[void 0];else if($ instanceof q0)return[null];else if($ instanceof c1)return[void 0,...H2($.unwrap())];else if($ instanceof V2)return[null,...H2($.unwrap())];else if($ instanceof P4)return H2($.unwrap());else if($ instanceof R0)return H2($.unwrap());else if($ instanceof Q0)return H2($._def.innerType);else return[]};class L4 extends d{_parse($){let{ctx:G}=this._processInputParams($);if(G.parsedType!==E.object)return C(G,{code:N.invalid_type,expected:E.object,received:G.parsedType}),y;let Y=this.discriminator,J=G.data[Y],X=this.optionsMap.get(J);if(!X)return C(G,{code:N.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[Y]}),y;if(G.common.async)return X._parseAsync({data:G.data,path:G.path,parent:G});else return X._parseSync({data:G.data,path:G.path,parent:G})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create($,G,Y){let J=new Map;for(let X of G){let q=H2(X.shape[$]);if(!q.length)throw Error(`A discriminator value for key \`${$}\` could not be extracted from all schema options`);for(let W of q){if(J.has(W))throw Error(`Discriminator property ${String($)} has duplicate value ${String(W)}`);J.set(W,X)}}return new L4({typeName:f.ZodDiscriminatedUnion,discriminator:$,options:G,optionsMap:J,...r(Y)})}}function S5($,G){let Y=s1($),J=s1(G);if($===G)return{valid:!0,data:$};else if(Y===E.object&&J===E.object){let X=o.objectKeys(G),q=o.objectKeys($).filter((H)=>X.indexOf(H)!==-1),W={...$,...G};for(let H of q){let V=S5($[H],G[H]);if(!V.valid)return{valid:!1};W[H]=V.data}return{valid:!0,data:W}}else if(Y===E.array&&J===E.array){if($.length!==G.length)return{valid:!1};let X=[];for(let q=0;q<$.length;q++){let W=$[q],H=G[q],V=S5(W,H);if(!V.valid)return{valid:!1};X.push(V.data)}return{valid:!0,data:X}}else if(Y===E.date&&J===E.date&&+$===+G)return{valid:!0,data:$};else return{valid:!1}}class H0 extends d{_parse($){let{status:G,ctx:Y}=this._processInputParams($),J=(X,q)=>{if(N4(X)||N4(q))return y;let W=S5(X.value,q.value);if(!W.valid)return C(Y,{code:N.invalid_intersection_types}),y;if(j4(X)||j4(q))G.dirty();return{status:G.value,value:W.data}};if(Y.common.async)return Promise.all([this._def.left._parseAsync({data:Y.data,path:Y.path,parent:Y}),this._def.right._parseAsync({data:Y.data,path:Y.path,parent:Y})]).then(([X,q])=>J(X,q));else return J(this._def.left._parseSync({data:Y.data,path:Y.path,parent:Y}),this._def.right._parseSync({data:Y.data,path:Y.path,parent:Y}))}}H0.create=($,G,Y)=>{return new H0({left:$,right:G,typeName:f.ZodIntersection,...r(Y)})};class e1 extends d{_parse($){let{status:G,ctx:Y}=this._processInputParams($);if(Y.parsedType!==E.array)return C(Y,{code:N.invalid_type,expected:E.array,received:Y.parsedType}),y;if(Y.data.length<this._def.items.length)return C(Y,{code:N.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),y;if(!this._def.rest&&Y.data.length>this._def.items.length)C(Y,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),G.dirty();let X=[...Y.data].map((q,W)=>{let H=this._def.items[W]||this._def.rest;if(!H)return null;return H._parse(new d1(Y,q,Y.path,W))}).filter((q)=>!!q);if(Y.common.async)return Promise.all(X).then((q)=>{return O1.mergeArray(G,q)});else return O1.mergeArray(G,X)}get items(){return this._def.items}rest($){return new e1({...this._def,rest:$})}}e1.create=($,G)=>{if(!Array.isArray($))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new e1({items:$,typeName:f.ZodTuple,rest:null,...r(G)})};class l0 extends d{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:G,ctx:Y}=this._processInputParams($);if(Y.parsedType!==E.object)return C(Y,{code:N.invalid_type,expected:E.object,received:Y.parsedType}),y;let J=[],X=this._def.keyType,q=this._def.valueType;for(let W in Y.data)J.push({key:X._parse(new d1(Y,W,Y.path,W)),value:q._parse(new d1(Y,Y.data[W],Y.path,W)),alwaysSet:W in Y.data});if(Y.common.async)return O1.mergeObjectAsync(G,J);else return O1.mergeObjectSync(G,J)}get element(){return this._def.valueType}static create($,G,Y){if(G instanceof d)return new l0({keyType:$,valueType:G,typeName:f.ZodRecord,...r(Y)});return new l0({keyType:l1.create(),valueType:$,typeName:f.ZodRecord,...r(G)})}}class r0 extends d{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:G,ctx:Y}=this._processInputParams($);if(Y.parsedType!==E.map)return C(Y,{code:N.invalid_type,expected:E.map,received:Y.parsedType}),y;let J=this._def.keyType,X=this._def.valueType,q=[...Y.data.entries()].map(([W,H],V)=>{return{key:J._parse(new d1(Y,W,Y.path,[V,"key"])),value:X._parse(new d1(Y,H,Y.path,[V,"value"]))}});if(Y.common.async){let W=new Map;return Promise.resolve().then(async()=>{for(let H of q){let V=await H.key,U=await H.value;if(V.status==="aborted"||U.status==="aborted")return y;if(V.status==="dirty"||U.status==="dirty")G.dirty();W.set(V.value,U.value)}return{status:G.value,value:W}})}else{let W=new Map;for(let H of q){let{key:V,value:U}=H;if(V.status==="aborted"||U.status==="aborted")return y;if(V.status==="dirty"||U.status==="dirty")G.dirty();W.set(V.value,U.value)}return{status:G.value,value:W}}}}r0.create=($,G,Y)=>{return new r0({valueType:G,keyType:$,typeName:f.ZodMap,...r(Y)})};class b2 extends d{_parse($){let{status:G,ctx:Y}=this._processInputParams($);if(Y.parsedType!==E.set)return C(Y,{code:N.invalid_type,expected:E.set,received:Y.parsedType}),y;let J=this._def;if(J.minSize!==null){if(Y.data.size<J.minSize.value)C(Y,{code:N.too_small,minimum:J.minSize.value,type:"set",inclusive:!0,exact:!1,message:J.minSize.message}),G.dirty()}if(J.maxSize!==null){if(Y.data.size>J.maxSize.value)C(Y,{code:N.too_big,maximum:J.maxSize.value,type:"set",inclusive:!0,exact:!1,message:J.maxSize.message}),G.dirty()}let X=this._def.valueType;function q(H){let V=new Set;for(let U of H){if(U.status==="aborted")return y;if(U.status==="dirty")G.dirty();V.add(U.value)}return{status:G.value,value:V}}let W=[...Y.data.values()].map((H,V)=>X._parse(new d1(Y,H,Y.path,V)));if(Y.common.async)return Promise.all(W).then((H)=>q(H));else return q(W)}min($,G){return new b2({...this._def,minSize:{value:$,message:k.toString(G)}})}max($,G){return new b2({...this._def,maxSize:{value:$,message:k.toString(G)}})}size($,G){return this.min($,G).max($,G)}nonempty($){return this.min(1,$)}}b2.create=($,G)=>{return new b2({valueType:$,minSize:null,maxSize:null,typeName:f.ZodSet,...r(G)})};class Y0 extends d{constructor(){super(...arguments);this.validate=this.implement}_parse($){let{ctx:G}=this._processInputParams($);if(G.parsedType!==E.function)return C(G,{code:N.invalid_type,expected:E.function,received:G.parsedType}),y;function Y(W,H){return f0({data:W,path:G.path,errorMaps:[G.common.contextualErrorMap,G.schemaErrorMap,e2(),W2].filter((V)=>!!V),issueData:{code:N.invalid_arguments,argumentsError:H}})}function J(W,H){return f0({data:W,path:G.path,errorMaps:[G.common.contextualErrorMap,G.schemaErrorMap,e2(),W2].filter((V)=>!!V),issueData:{code:N.invalid_return_type,returnTypeError:H}})}let X={errorMap:G.common.contextualErrorMap},q=G.data;if(this._def.returns instanceof x2){let W=this;return w1(async function(...H){let V=new L1([]),U=await W._def.args.parseAsync(H,X).catch((z)=>{throw V.addIssue(Y(H,z)),V}),M=await Reflect.apply(q,this,U);return await W._def.returns._def.type.parseAsync(M,X).catch((z)=>{throw V.addIssue(J(M,z)),V})})}else{let W=this;return w1(function(...H){let V=W._def.args.safeParse(H,X);if(!V.success)throw new L1([Y(H,V.error)]);let U=Reflect.apply(q,this,V.data),M=W._def.returns.safeParse(U,X);if(!M.success)throw new L1([J(U,M.error)]);return M.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...$){return new Y0({...this._def,args:e1.create($).rest(R2.create())})}returns($){return new Y0({...this._def,returns:$})}implement($){return this.parse($)}strictImplement($){return this.parse($)}static create($,G,Y){return new Y0({args:$?$:e1.create([]).rest(R2.create()),returns:G||R2.create(),typeName:f.ZodFunction,...r(Y)})}}class V0 extends d{get schema(){return this._def.getter()}_parse($){let{ctx:G}=this._processInputParams($);return this._def.getter()._parse({data:G.data,path:G.path,parent:G})}}V0.create=($,G)=>{return new V0({getter:$,typeName:f.ZodLazy,...r(G)})};class U0 extends d{_parse($){if($.data!==this._def.value){let G=this._getOrReturnCtx($);return C(G,{received:G.data,code:N.invalid_literal,expected:this._def.value}),y}return{status:"valid",value:$.data}}get value(){return this._def.value}}U0.create=($,G)=>{return new U0({value:$,typeName:f.ZodLiteral,...r(G)})};function G$($,G){return new A2({values:$,typeName:f.ZodEnum,...r(G)})}class A2 extends d{_parse($){if(typeof $.data!=="string"){let G=this._getOrReturnCtx($),Y=this._def.values;return C(G,{expected:o.joinValues(Y),received:G.parsedType,code:N.invalid_type}),y}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has($.data)){let G=this._getOrReturnCtx($),Y=this._def.values;return C(G,{received:G.data,code:N.invalid_enum_value,options:Y}),y}return w1($.data)}get options(){return this._def.values}get enum(){let $={};for(let G of this._def.values)$[G]=G;return $}get Values(){let $={};for(let G of this._def.values)$[G]=G;return $}get Enum(){let $={};for(let G of this._def.values)$[G]=G;return $}extract($,G=this._def){return A2.create($,{...this._def,...G})}exclude($,G=this._def){return A2.create(this.options.filter((Y)=>!$.includes(Y)),{...this._def,...G})}}A2.create=G$;class M0 extends d{_parse($){let G=o.getValidEnumValues(this._def.values),Y=this._getOrReturnCtx($);if(Y.parsedType!==E.string&&Y.parsedType!==E.number){let J=o.objectValues(G);return C(Y,{expected:o.joinValues(J),received:Y.parsedType,code:N.invalid_type}),y}if(!this._cache)this._cache=new Set(o.getValidEnumValues(this._def.values));if(!this._cache.has($.data)){let J=o.objectValues(G);return C(Y,{received:Y.data,code:N.invalid_enum_value,options:J}),y}return w1($.data)}get enum(){return this._def.values}}M0.create=($,G)=>{return new M0({values:$,typeName:f.ZodNativeEnum,...r(G)})};class x2 extends d{unwrap(){return this._def.type}_parse($){let{ctx:G}=this._processInputParams($);if(G.parsedType!==E.promise&&G.common.async===!1)return C(G,{code:N.invalid_type,expected:E.promise,received:G.parsedType}),y;let Y=G.parsedType===E.promise?G.data:Promise.resolve(G.data);return w1(Y.then((J)=>{return this._def.type.parseAsync(J,{path:G.path,errorMap:G.common.contextualErrorMap})}))}}x2.create=($,G)=>{return new x2({type:$,typeName:f.ZodPromise,...r(G)})};class i1 extends d{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===f.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse($){let{status:G,ctx:Y}=this._processInputParams($),J=this._def.effect||null,X={addIssue:(q)=>{if(C(Y,q),q.fatal)G.abort();else G.dirty()},get path(){return Y.path}};if(X.addIssue=X.addIssue.bind(X),J.type==="preprocess"){let q=J.transform(Y.data,X);if(Y.common.async)return Promise.resolve(q).then(async(W)=>{if(G.value==="aborted")return y;let H=await this._def.schema._parseAsync({data:W,path:Y.path,parent:Y});if(H.status==="aborted")return y;if(H.status==="dirty")return T2(H.value);if(G.value==="dirty")return T2(H.value);return H});else{if(G.value==="aborted")return y;let W=this._def.schema._parseSync({data:q,path:Y.path,parent:Y});if(W.status==="aborted")return y;if(W.status==="dirty")return T2(W.value);if(G.value==="dirty")return T2(W.value);return W}}if(J.type==="refinement"){let q=(W)=>{let H=J.refinement(W,X);if(Y.common.async)return Promise.resolve(H);if(H instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return W};if(Y.common.async===!1){let W=this._def.schema._parseSync({data:Y.data,path:Y.path,parent:Y});if(W.status==="aborted")return y;if(W.status==="dirty")G.dirty();return q(W.value),{status:G.value,value:W.value}}else return this._def.schema._parseAsync({data:Y.data,path:Y.path,parent:Y}).then((W)=>{if(W.status==="aborted")return y;if(W.status==="dirty")G.dirty();return q(W.value).then(()=>{return{status:G.value,value:W.value}})})}if(J.type==="transform")if(Y.common.async===!1){let q=this._def.schema._parseSync({data:Y.data,path:Y.path,parent:Y});if(!Q2(q))return y;let W=J.transform(q.value,X);if(W instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:G.value,value:W}}else return this._def.schema._parseAsync({data:Y.data,path:Y.path,parent:Y}).then((q)=>{if(!Q2(q))return y;return Promise.resolve(J.transform(q.value,X)).then((W)=>({status:G.value,value:W}))});o.assertNever(J)}}i1.create=($,G,Y)=>{return new i1({schema:$,typeName:f.ZodEffects,effect:G,...r(Y)})};i1.createWithPreprocess=($,G,Y)=>{return new i1({schema:G,effect:{type:"preprocess",transform:$},typeName:f.ZodEffects,...r(Y)})};class c1 extends d{_parse($){if(this._getType($)===E.undefined)return w1(void 0);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}c1.create=($,G)=>{return new c1({innerType:$,typeName:f.ZodOptional,...r(G)})};class V2 extends d{_parse($){if(this._getType($)===E.null)return w1(null);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}V2.create=($,G)=>{return new V2({innerType:$,typeName:f.ZodNullable,...r(G)})};class D0 extends d{_parse($){let{ctx:G}=this._processInputParams($),Y=G.data;if(G.parsedType===E.undefined)Y=this._def.defaultValue();return this._def.innerType._parse({data:Y,path:G.path,parent:G})}removeDefault(){return this._def.innerType}}D0.create=($,G)=>{return new D0({innerType:$,typeName:f.ZodDefault,defaultValue:typeof G.default==="function"?G.default:()=>G.default,...r(G)})};class Q0 extends d{_parse($){let{ctx:G}=this._processInputParams($),Y={...G,common:{...G.common,issues:[]}},J=this._def.innerType._parse({data:Y.data,path:Y.path,parent:{...Y}});if($0(J))return J.then((X)=>{return{status:"valid",value:X.status==="valid"?X.value:this._def.catchValue({get error(){return new L1(Y.common.issues)},input:Y.data})}});else return{status:"valid",value:J.status==="valid"?J.value:this._def.catchValue({get error(){return new L1(Y.common.issues)},input:Y.data})}}removeCatch(){return this._def.innerType}}Q0.create=($,G)=>{return new Q0({innerType:$,typeName:f.ZodCatch,catchValue:typeof G.catch==="function"?G.catch:()=>G.catch,...r(G)})};class c0 extends d{_parse($){if(this._getType($)!==E.nan){let Y=this._getOrReturnCtx($);return C(Y,{code:N.invalid_type,expected:E.nan,received:Y.parsedType}),y}return{status:"valid",value:$.data}}}c0.create=($)=>{return new c0({typeName:f.ZodNaN,...r($)})};var KJ=Symbol("zod_brand");class P4 extends d{_parse($){let{ctx:G}=this._processInputParams($),Y=G.data;return this._def.type._parse({data:Y,path:G.path,parent:G})}unwrap(){return this._def.type}}class d0 extends d{_parse($){let{status:G,ctx:Y}=this._processInputParams($);if(Y.common.async)return(async()=>{let X=await this._def.in._parseAsync({data:Y.data,path:Y.path,parent:Y});if(X.status==="aborted")return y;if(X.status==="dirty")return G.dirty(),T2(X.value);else return this._def.out._parseAsync({data:X.value,path:Y.path,parent:Y})})();else{let J=this._def.in._parseSync({data:Y.data,path:Y.path,parent:Y});if(J.status==="aborted")return y;if(J.status==="dirty")return G.dirty(),{status:"dirty",value:J.value};else return this._def.out._parseSync({data:J.value,path:Y.path,parent:Y})}}static create($,G){return new d0({in:$,out:G,typeName:f.ZodPipeline})}}class R0 extends d{_parse($){let G=this._def.innerType._parse($),Y=(J)=>{if(Q2(J))J.value=Object.freeze(J.value);return J};return $0(G)?G.then((J)=>Y(J)):Y(G)}unwrap(){return this._def.innerType}}R0.create=($,G)=>{return new R0({innerType:$,typeName:f.ZodReadonly,...r(G)})};function s9($,G){let Y=typeof $==="function"?$(G):typeof $==="string"?{message:$}:$;return typeof Y==="string"?{message:Y}:Y}function Y$($,G={},Y){if($)return C2.create().superRefine((J,X)=>{let q=$(J);if(q instanceof Promise)return q.then((W)=>{if(!W){let H=s9(G,J),V=H.fatal??Y??!0;X.addIssue({code:"custom",...H,fatal:V})}});if(!q){let W=s9(G,J),H=W.fatal??Y??!0;X.addIssue({code:"custom",...W,fatal:H})}return});return C2.create()}var zJ={object:X1.lazycreate},f;(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"})(f||(f={}));var AJ=($,G={message:`Input not instance of ${$.name}`})=>Y$((Y)=>Y instanceof $,G),J$=l1.create,X$=K2.create,OJ=c0.create,FJ=z2.create,q$=J0.create,_J=I2.create,wJ=p0.create,BJ=X0.create,NJ=q0.create,jJ=C2.create,LJ=R2.create,PJ=t1.create,EJ=u0.create,ZJ=r1.create,SJ=X1.create,TJ=X1.strictCreate,IJ=W0.create,CJ=L4.create,bJ=H0.create,xJ=e1.create,hJ=l0.create,kJ=r0.create,gJ=b2.create,vJ=Y0.create,yJ=V0.create,mJ=U0.create,fJ=A2.create,pJ=M0.create,uJ=x2.create,lJ=i1.create,rJ=c1.create,cJ=V2.create,dJ=i1.createWithPreprocess,iJ=d0.create,oJ=()=>J$().optional(),nJ=()=>X$().optional(),aJ=()=>q$().optional(),sJ={string:($)=>l1.create({...$,coerce:!0}),number:($)=>K2.create({...$,coerce:!0}),boolean:($)=>J0.create({...$,coerce:!0}),bigint:($)=>z2.create({...$,coerce:!0}),date:($)=>I2.create({...$,coerce:!0})};var tJ=y;var eJ=L.enum(["public","shared","restricted"]),h2=L.union([eJ,L.literal("private")]).optional().transform(($)=>{if($===void 0)return"public";if($==="private")return"restricted";return $});var I5=L.object({id:L.string(),entityType:L.string(),content:L.string(),created:L.string().datetime(),updated:L.string().datetime(),visibility:h2,metadata:L.record(L.string(),L.unknown()),contentHash:L.string()}),JX=L.object({mediaType:L.string(),url:L.string(),downloadUrl:L.string().optional(),previewUrl:L.string().optional(),filename:L.string().optional(),sizeBytes:L.number().optional(),source:L.object({entityType:L.string().optional(),entityId:L.string().optional(),attachmentType:L.string().optional()}).optional()});import{openSync as XX,writeSync as qX}from"fs";class f1{static instance=null;level;context;useStderr;format;logFile;fileHandle;constructor($={},G){if(this.level=$.level??3,this.context=$.context??void 0,this.useStderr=$.useStderr??!1,this.format=$.format??"text",this.logFile=$.logFile,G!==void 0)this.fileHandle=G;else if(this.logFile)try{this.fileHandle=XX(this.logFile,"a")}catch{}}static getInstance($){if(!f1.instance)f1.instance=new f1($);else if($?.useStderr!==void 0)f1.instance.useStderr=$.useStderr;return f1.instance}static resetInstance(){f1.instance=null}static createFresh($){return new f1($)}formatEntry($,G,Y){let J=new Date().toISOString();if(this.format==="json"){let X={ts:J,level:$,msg:G};if(this.context)X.ctx=this.context;if(Y.length>0)X.data=Y;return JSON.stringify(X)}return this.context?`[${J}] [${this.context}] ${G}`:`[${J}] ${G}`}write($,G,Y,J){if(this.format==="json")$(this.formatEntry(G,Y,J));else if(J.length>0)$(this.formatEntry(G,Y,[]),...J);else $(this.formatEntry(G,Y,[]));if(this.fileHandle!==void 0){let X=this.formatJsonEntry(G,Y,J);try{qX(this.fileHandle,X+`
|
|
57
|
-
`)}catch{}}}formatJsonEntry($,G,Y){let J={ts:new Date().toISOString(),level:$,msg:G};if(this.context)J.ctx=this.context;if(Y.length>0)J.data=Y;return JSON.stringify(J)}silly($,...G){if(this.level<=0)this.write(console.debug.bind(console),"silly",$,G)}verbose($,...G){if(this.level<=1)this.write(console.debug.bind(console),"verbose",$,G)}debug($,...G){if(this.level<=2)this.write(console.debug.bind(console),"debug",$,G)}info($,...G){if(this.level<=3){let Y=this.useStderr?console.error.bind(console):console.info.bind(console);this.write(Y,"info",$,G)}}warn($,...G){if(this.level<=4)this.write(console.warn.bind(console),"warn",$,G)}error($,...G){if(this.level<=5)this.write(console.error.bind(console),"error",$,G)}child($){return new f1({level:this.level,context:$,useStderr:this.useStderr,format:this.format},this.fileHandle)}setUseStderr($){this.useStderr=$}}var nQ=f1.getInstance();var GR=L.object({id:L.string().min(1,"Entity ID is required"),entityType:L.string().min(1,"Entity type is required"),contentHash:L.string().min(1,"Content hash is required"),operation:L.enum(["create","update"])});var WR=L.object({limit:L.number().int().positive().optional().default(20),offset:L.number().int().min(0).optional().default(0),types:L.array(L.string()).optional().default([]),excludeTypes:L.array(L.string()).optional().default([]),weight:L.record(L.string(),L.number()).optional(),visibilityScope:L.enum(["public","shared","restricted"]).optional(),includeUngenerated:L.boolean().optional().default(!1)});var VH=D4(t5(),1);var tR=L.object({visibility:h2});var QH=L.object({field:L.string(),direction:L.enum(["asc","desc"]),nullsFirst:L.boolean().optional()}),DK=L.object({limit:L.number().int().positive().optional(),offset:L.number().int().min(0).optional().default(0),sortFields:L.array(QH).optional(),filter:L.object({metadata:L.record(L.string(),L.unknown()).optional(),visibilityScope:L.enum(["public","shared","restricted"]).optional()}).optional(),publishedOnly:L.boolean().optional()});var NK=L.object({id:L.string().min(1),entityType:L.string().min(1),contentHash:L.string().min(1)});var MM=D4(t5(),1);class L8 extends Error{name="Assertion";code="ERR_ASSERTION";constructor($,G,Y,J,X){super($);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.actual=G,this.expected=Y,this.generated=X,this.operator=J}}function A($,G){BH(Boolean($),!1,!0,"ok","Expected value to be truthy",G)}function BH($,G,Y,J,X,q){if(!$)throw q instanceof Error?q:new L8(q||X,G,Y,J,!q)}var NH={};function p2($,G){let Y=G||NH,J=typeof Y.includeImageAlt==="boolean"?Y.includeImageAlt:!0,X=typeof Y.includeHtml==="boolean"?Y.includeHtml:!0;return E8($,J,X)}function E8($,G,Y){if(jH($)){if("value"in $)return $.type==="html"&&!Y?"":$.value;if(G&&"alt"in $&&$.alt)return $.alt;if("children"in $)return P8($.children,G,Y)}if(Array.isArray($))return P8($,G,Y);return""}function P8($,G,Y){let J=[],X=-1;while(++X<$.length)J[X]=E8($[X],G,Y);return J.join("")}function jH($){return Boolean($&&typeof $==="object")}var e5={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:`
|
|
56
|
+
`).map((G)=>G.trim()).join(" ")};JG.O=function($){return this.inspectOpts.colors=this.useColors,a4.inspect($,this.inspectOpts)}});var HG=v((H_,A6)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)A6.exports=s8();else A6.exports=WG()});var qY=v((hN,XY)=>{var H5=Object.prototype.hasOwnProperty,JY=Object.prototype.toString,sG=Object.defineProperty,tG=Object.getOwnPropertyDescriptor,eG=function(G){if(typeof Array.isArray==="function")return Array.isArray(G);return JY.call(G)==="[object Array]"},$Y=function(G){if(!G||JY.call(G)!=="[object Object]")return!1;var Y=H5.call(G,"constructor"),J=G.constructor&&G.constructor.prototype&&H5.call(G.constructor.prototype,"isPrototypeOf");if(G.constructor&&!Y&&!J)return!1;var X;for(X in G);return typeof X>"u"||H5.call(G,X)},GY=function(G,Y){if(sG&&Y.name==="__proto__")sG(G,Y.name,{enumerable:!0,configurable:!0,value:Y.newValue,writable:!0});else G[Y.name]=Y.newValue},YY=function(G,Y){if(Y==="__proto__"){if(!H5.call(G,Y))return;else if(tG)return tG(G,Y).value}return G[Y]};XY.exports=function $(){var G,Y,J,X,q,W,H=arguments[0],V=1,U=arguments.length,M=!1;if(typeof H==="boolean")M=H,H=arguments[1]||{},V=2;if(H==null||typeof H!=="object"&&typeof H!=="function")H={};for(;V<U;++V)if(G=arguments[V],G!=null){for(Y in G)if(J=YY(H,Y),X=YY(G,Y),H!==X){if(M&&X&&($Y(X)||(q=eG(X)))){if(q)q=!1,W=J&&eG(J)?J:[];else W=J&&$Y(J)?J:{};GY(H,{name:Y,newValue:$(M,W,X)})}else if(typeof X<"u")GY(H,{name:Y,newValue:X})}}return H}});import{createClient as $Q}from"@libsql/client";var b=Symbol.for("drizzle:entityKind");function j1($,G){if(!$||typeof $!=="object")return!1;if($ instanceof G)return!0;if(!Object.prototype.hasOwnProperty.call(G,b))throw Error(`Class "${G.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 Y=Object.getPrototypeOf($).constructor;if(Y)while(Y){if(b in Y&&Y[b]===G[b])return!0;Y=Object.getPrototypeOf(Y)}return!1}class D2{constructor($,G){this.table=$,this.config=G,this.name=G.name,this.keyAsName=G.keyAsName,this.notNull=G.notNull,this.default=G.default,this.defaultFn=G.defaultFn,this.onUpdateFn=G.onUpdateFn,this.hasDefault=G.hasDefault,this.primary=G.primaryKey,this.isUnique=G.isUnique,this.uniqueName=G.uniqueName,this.uniqueType=G.uniqueType,this.dataType=G.dataType,this.columnType=G.columnType,this.generated=G.generated,this.generatedIdentity=G.generatedIdentity}static[b]="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"}}class z5{static[b]="ColumnBuilder";config;constructor($,G,Y){this.config={name:$,keyAsName:$==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:G,columnType:Y,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 u1=Symbol.for("drizzle:Name");function $9($,...G){return $(...G)}function G9($,G){return`${$[u1]}_${G.join("_")}_unique`}class g0 extends D2{constructor($,G){if(!G.uniqueName)G.uniqueName=G9($,[G.name]);super($,G);this.table=$}static[b]="PgColumn"}class kY extends g0{static[b]="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}}class gY extends g0{static[b]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor($,G){super($,G);this.enum=G.enum}getSQLType(){return this.enum.enumName}}var Y9=Symbol.for("drizzle:isPgEnum");function J9($){return!!$&&typeof $==="function"&&Y9 in $&&$[Y9]===!0}class vY extends g0{static[b]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor($,G){super($,G);this.enum=G.enum}getSQLType(){return this.enum.enumName}}class Q4{static[b]="Subquery";constructor($,G,Y,J=!1,X=[]){this._={brand:"Subquery",sql:$,selectedFields:G,alias:Y,isWith:J,usedTables:X}}}var X9="0.44.7";var A5,O5,q9={startActiveSpan($,G){if(!A5)return G();if(!O5)O5=A5.trace.getTracer("drizzle-orm",X9);return $9((Y,J)=>J.startActiveSpan($,(X)=>{try{return G(X)}catch(q){throw X.setStatus({code:Y.SpanStatusCode.ERROR,message:q instanceof Error?q.message:"Unknown error"}),q}finally{X.end()}}),A5,O5)}};var t2=Symbol.for("drizzle:ViewBaseConfig");var F5=Symbol.for("drizzle:Schema"),W9=Symbol.for("drizzle:Columns"),H9=Symbol.for("drizzle:ExtraConfigColumns"),_5=Symbol.for("drizzle:OriginalName"),w5=Symbol.for("drizzle:BaseName"),v0=Symbol.for("drizzle:IsAlias"),V9=Symbol.for("drizzle:ExtraConfigBuilder"),yY=Symbol.for("drizzle:IsDrizzleTable");class V1{static[b]="Table";static Symbol={Name:u1,Schema:F5,OriginalName:_5,Columns:W9,ExtraConfigColumns:H9,BaseName:w5,IsAlias:v0,ExtraConfigBuilder:V9};[u1];[_5];[F5];[W9];[H9];[w5];[v0]=!1;[yY]=!0;[V9]=void 0;constructor($,G,Y){this[u1]=this[_5]=$,this[F5]=G,this[w5]=Y}}function mY($){return $!==null&&$!==void 0&&typeof $.getSQL==="function"}function fY($){let G={sql:"",params:[]};for(let Y of $)if(G.sql+=Y.sql,G.params.push(...Y.params),Y.typings?.length){if(!G.typings)G.typings=[];G.typings.push(...Y.typings)}return G}class m1{static[b]="StringChunk";value;constructor($){this.value=Array.isArray($)?$:[$]}getSQL(){return new U1([this])}}class U1{constructor($){this.queryChunks=$;for(let G of $)if(j1(G,V1)){let Y=G[V1.Symbol.Schema];this.usedTables.push(Y===void 0?G[V1.Symbol.Name]:Y+"."+G[V1.Symbol.Name])}}static[b]="SQL";decoder=U9;shouldInlineParams=!1;usedTables=[];append($){return this.queryChunks.push(...$.queryChunks),this}toQuery($){return q9.startActiveSpan("drizzle.buildSQL",(G)=>{let Y=this.buildQueryFromSourceParams(this.queryChunks,$);return G?.setAttributes({"drizzle.query.text":Y.sql,"drizzle.query.params":JSON.stringify(Y.params)}),Y})}buildQueryFromSourceParams($,G){let Y=Object.assign({},G,{inlineParams:G.inlineParams||this.shouldInlineParams,paramStartIndex:G.paramStartIndex||{value:0}}),{casing:J,escapeName:X,escapeParam:q,prepareTyping:W,inlineParams:H,paramStartIndex:V}=Y;return fY($.map((U)=>{if(j1(U,m1))return{sql:U.value.join(""),params:[]};if(j1(U,R4))return{sql:X(U.value),params:[]};if(U===void 0)return{sql:"",params:[]};if(Array.isArray(U)){let M=[new m1("(")];for(let[R,z]of U.entries())if(M.push(z),R<U.length-1)M.push(new m1(", "));return M.push(new m1(")")),this.buildQueryFromSourceParams(M,Y)}if(j1(U,U1))return this.buildQueryFromSourceParams(U.queryChunks,{...Y,inlineParams:H||U.shouldInlineParams});if(j1(U,V1)){let M=U[V1.Symbol.Schema],R=U[V1.Symbol.Name];return{sql:M===void 0||U[v0]?X(R):X(M)+"."+X(R),params:[]}}if(j1(U,D2)){let M=J.getColumnCasing(U);if(G.invokeSource==="indexes")return{sql:X(M),params:[]};let R=U.table[V1.Symbol.Schema];return{sql:U.table[v0]||R===void 0?X(U.table[V1.Symbol.Name])+"."+X(M):X(R)+"."+X(U.table[V1.Symbol.Name])+"."+X(M),params:[]}}if(j1(U,D9)){let M=U[t2].schema,R=U[t2].name;return{sql:M===void 0||U[t2].isAlias?X(R):X(M)+"."+X(R),params:[]}}if(j1(U,B5)){if(j1(U.value,K4))return{sql:q(V.value++,U),params:[U],typings:["none"]};let M=U.value===null?null:U.encoder.mapToDriverValue(U.value);if(j1(M,U1))return this.buildQueryFromSourceParams([M],Y);if(H)return{sql:this.mapInlineParam(M,Y),params:[]};let R=["none"];if(W)R=[W(U.encoder)];return{sql:q(V.value++,M),params:[M],typings:R}}if(j1(U,K4))return{sql:q(V.value++,U),params:[U],typings:["none"]};if(j1(U,U1.Aliased)&&U.fieldAlias!==void 0)return{sql:X(U.fieldAlias),params:[]};if(j1(U,Q4)){if(U._.isWith)return{sql:X(U._.alias),params:[]};return this.buildQueryFromSourceParams([new m1("("),U._.sql,new m1(") "),new R4(U._.alias)],Y)}if(J9(U)){if(U.schema)return{sql:X(U.schema)+"."+X(U.enumName),params:[]};return{sql:X(U.enumName),params:[]}}if(mY(U)){if(U.shouldOmitSQLParens?.())return this.buildQueryFromSourceParams([U.getSQL()],Y);return this.buildQueryFromSourceParams([new m1("("),U.getSQL(),new m1(")")],Y)}if(H)return{sql:this.mapInlineParam(U,Y),params:[]};return{sql:q(V.value++,U),params:[U],typings:["none"]}}))}mapInlineParam($,{escapeString:G}){if($===null)return"null";if(typeof $==="number"||typeof $==="boolean")return $.toString();if(typeof $==="string")return G($);if(typeof $==="object"){let Y=$.toString();if(Y==="[object Object]")return G(JSON.stringify($));return G(Y)}throw Error("Unexpected param value: "+$)}getSQL(){return this}as($){if($===void 0)return this;return new U1.Aliased(this,$)}mapWith($){return this.decoder=typeof $==="function"?{mapFromDriverValue:$}:$,this}inlineParams(){return this.shouldInlineParams=!0,this}if($){return $?this:void 0}}class R4{constructor($){this.value=$}static[b]="Name";brand;getSQL(){return new U1([this])}}var U9={mapFromDriverValue:($)=>$},M9={mapToDriverValue:($)=>$},aM={...U9,...M9};class B5{constructor($,G=M9){this.value=$,this.encoder=G}static[b]="Param";brand;getSQL(){return new U1([this])}}function T2($,...G){let Y=[];if(G.length>0||$.length>0&&$[0]!=="")Y.push(new m1($[0]));for(let[J,X]of G.entries())Y.push(X,new m1($[J+1]));return new U1(Y)}(($)=>{function G(){return new U1([])}$.empty=G;function Y(V){return new U1(V)}$.fromList=Y;function J(V){return new U1([new m1(V)])}$.raw=J;function X(V,U){let M=[];for(let[R,z]of V.entries()){if(R>0&&U!==void 0)M.push(U);M.push(z)}return new U1(M)}$.join=X;function q(V){return new R4(V)}$.identifier=q;function W(V){return new K4(V)}$.placeholder=W;function H(V,U){return new B5(V,U)}$.param=H})(T2||(T2={}));(($)=>{class G{constructor(Y,J){this.sql=Y,this.fieldAlias=J}static[b]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new G(this.sql,this.fieldAlias)}}$.Aliased=G})(U1||(U1={}));class K4{constructor($){this.name=$}static[b]="Placeholder";getSQL(){return new U1([this])}}var pY=Symbol.for("drizzle:IsDrizzleView");class D9{static[b]="View";[t2];[pY]=!0;constructor({name:$,schema:G,selectedFields:Y,query:J}){this[t2]={name:$,originalName:$,schema:G,selectedFields:Y,query:J,isExisting:!J,isAlias:!1}}getSQL(){return new U1([this])}}D2.prototype.getSQL=function(){return new U1([this])};V1.prototype.getSQL=function(){return new U1([this])};Q4.prototype.getSQL=function(){return new U1([this])};function a1($,G){return{name:typeof $==="string"&&$.length>0?$:"",config:typeof $==="object"?$:G}}var N5=typeof TextDecoder>"u"?null:new TextDecoder;class j5{static[b]="SQLiteForeignKeyBuilder";reference;_onUpdate;_onDelete;constructor($,G){if(this.reference=()=>{let{name:Y,columns:J,foreignColumns:X}=$();return{name:Y,columns:J,foreignTable:X[0].table,foreignColumns:X}},G)this._onUpdate=G.onUpdate,this._onDelete=G.onDelete}onUpdate($){return this._onUpdate=$,this}onDelete($){return this._onDelete=$,this}build($){return new Q9($,this)}}class Q9{constructor($,G){this.table=$,this.reference=G.reference,this.onUpdate=G._onUpdate,this.onDelete=G._onDelete}static[b]="SQLiteForeignKey";reference;onUpdate;onDelete;getName(){let{name:$,columns:G,foreignColumns:Y}=this.reference(),J=G.map((W)=>W.name),X=Y.map((W)=>W.name),q=[this.table[u1],...J,Y[0].table[u1],...X];return $??`${q.join("_")}_fk`}}function R9($,G){return`${$[u1]}_${G.join("_")}_unique`}class K1 extends z5{static[b]="SQLiteColumnBuilder";foreignKeyConfigs=[];references($,G={}){return this.foreignKeyConfigs.push({ref:$,actions:G}),this}unique($){return this.config.isUnique=!0,this.config.uniqueName=$,this}generatedAlwaysAs($,G){return this.config.generated={as:$,type:"always",mode:G?.mode??"virtual"},this}buildForeignKeys($,G){return this.foreignKeyConfigs.map(({ref:Y,actions:J})=>{return((X,q)=>{let W=new j5(()=>{let H=X();return{columns:[$],foreignColumns:[H]}});if(q.onUpdate)W.onUpdate(q.onUpdate);if(q.onDelete)W.onDelete(q.onDelete);return W.build(G)})(Y,J)})}}class z1 extends D2{constructor($,G){if(!G.uniqueName)G.uniqueName=R9($,[G.name]);super($,G);this.table=$}static[b]="SQLiteColumn"}class K9 extends K1{static[b]="SQLiteBigIntBuilder";constructor($){super($,"bigint","SQLiteBigInt")}build($){return new z9($,this.config)}}class z9 extends z1{static[b]="SQLiteBigInt";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let G=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return BigInt(G.toString("utf8"))}return BigInt(N5.decode($))}mapToDriverValue($){return Buffer.from($.toString())}}class A9 extends K1{static[b]="SQLiteBlobJsonBuilder";constructor($){super($,"json","SQLiteBlobJson")}build($){return new O9($,this.config)}}class O9 extends z1{static[b]="SQLiteBlobJson";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let G=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return JSON.parse(G.toString("utf8"))}return JSON.parse(N5.decode($))}mapToDriverValue($){return Buffer.from(JSON.stringify($))}}class F9 extends K1{static[b]="SQLiteBlobBufferBuilder";constructor($){super($,"buffer","SQLiteBlobBuffer")}build($){return new _9($,this.config)}}class _9 extends z1{static[b]="SQLiteBlobBuffer";mapFromDriverValue($){if(Buffer.isBuffer($))return $;return Buffer.from($)}getSQLType(){return"blob"}}function w9($,G){let{name:Y,config:J}=a1($,G);if(J?.mode==="json")return new A9(Y);if(J?.mode==="bigint")return new K9(Y);return new F9(Y)}class B9 extends K1{static[b]="SQLiteCustomColumnBuilder";constructor($,G,Y){super($,"custom","SQLiteCustomColumn");this.config.fieldConfig=G,this.config.customTypeParams=Y}build($){return new N9($,this.config)}}class N9 extends z1{static[b]="SQLiteCustomColumn";sqlName;mapTo;mapFrom;constructor($,G){super($,G);this.sqlName=G.customTypeParams.dataType(G.fieldConfig),this.mapTo=G.customTypeParams.toDriver,this.mapFrom=G.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue($){return typeof this.mapFrom==="function"?this.mapFrom($):$}mapToDriverValue($){return typeof this.mapTo==="function"?this.mapTo($):$}}function z4($){return(G,Y)=>{let{name:J,config:X}=a1(G,Y);return new B9(J,X,$)}}class A4 extends K1{static[b]="SQLiteBaseIntegerBuilder";constructor($,G,Y){super($,G,Y);this.config.autoIncrement=!1}primaryKey($){if($?.autoIncrement)this.config.autoIncrement=!0;return this.config.hasDefault=!0,super.primaryKey()}}class O4 extends z1{static[b]="SQLiteBaseInteger";autoIncrement=this.config.autoIncrement;getSQLType(){return"integer"}}class j9 extends A4{static[b]="SQLiteIntegerBuilder";constructor($){super($,"number","SQLiteInteger")}build($){return new L9($,this.config)}}class L9 extends O4{static[b]="SQLiteInteger"}class P9 extends A4{static[b]="SQLiteTimestampBuilder";constructor($,G){super($,"date","SQLiteTimestamp");this.config.mode=G}defaultNow(){return this.default(T2`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build($){return new E9($,this.config)}}class E9 extends O4{static[b]="SQLiteTimestamp";mode=this.config.mode;mapFromDriverValue($){if(this.config.mode==="timestamp")return new Date($*1000);return new Date($)}mapToDriverValue($){let G=$.getTime();if(this.config.mode==="timestamp")return Math.floor(G/1000);return G}}class Z9 extends A4{static[b]="SQLiteBooleanBuilder";constructor($,G){super($,"boolean","SQLiteBoolean");this.config.mode=G}build($){return new T9($,this.config)}}class T9 extends O4{static[b]="SQLiteBoolean";mode=this.config.mode;mapFromDriverValue($){return Number($)===1}mapToDriverValue($){return $?1:0}}function y0($,G){let{name:Y,config:J}=a1($,G);if(J?.mode==="timestamp"||J?.mode==="timestamp_ms")return new P9(Y,J.mode);if(J?.mode==="boolean")return new Z9(Y,J.mode);return new j9(Y)}class S9 extends K1{static[b]="SQLiteNumericBuilder";constructor($){super($,"string","SQLiteNumeric")}build($){return new I9($,this.config)}}class I9 extends z1{static[b]="SQLiteNumeric";mapFromDriverValue($){if(typeof $==="string")return $;return String($)}getSQLType(){return"numeric"}}class C9 extends K1{static[b]="SQLiteNumericNumberBuilder";constructor($){super($,"number","SQLiteNumericNumber")}build($){return new b9($,this.config)}}class b9 extends z1{static[b]="SQLiteNumericNumber";mapFromDriverValue($){if(typeof $==="number")return $;return Number($)}mapToDriverValue=String;getSQLType(){return"numeric"}}class x9 extends K1{static[b]="SQLiteNumericBigIntBuilder";constructor($){super($,"bigint","SQLiteNumericBigInt")}build($){return new h9($,this.config)}}class h9 extends z1{static[b]="SQLiteNumericBigInt";mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return"numeric"}}function k9($,G){let{name:Y,config:J}=a1($,G),X=J?.mode;return X==="number"?new C9(Y):X==="bigint"?new x9(Y):new S9(Y)}class g9 extends K1{static[b]="SQLiteRealBuilder";constructor($){super($,"number","SQLiteReal")}build($){return new v9($,this.config)}}class v9 extends z1{static[b]="SQLiteReal";getSQLType(){return"real"}}function y9($){return new g9($??"")}class m9 extends K1{static[b]="SQLiteTextBuilder";constructor($,G){super($,"string","SQLiteText");this.config.enumValues=G.enum,this.config.length=G.length}build($){return new f9($,this.config)}}class f9 extends z1{static[b]="SQLiteText";enumValues=this.config.enumValues;length=this.config.length;constructor($,G){super($,G)}getSQLType(){return`text${this.config.length?`(${this.config.length})`:""}`}}class p9 extends K1{static[b]="SQLiteTextJsonBuilder";constructor($){super($,"json","SQLiteTextJson")}build($){return new u9($,this.config)}}class u9 extends z1{static[b]="SQLiteTextJson";getSQLType(){return"text"}mapFromDriverValue($){return JSON.parse($)}mapToDriverValue($){return JSON.stringify($)}}function b1($,G={}){let{name:Y,config:J}=a1($,G);if(J.mode==="json")return new p9(Y);return new m9(Y,J)}function l9(){return{blob:w9,customType:z4,integer:y0,numeric:k9,real:y9,text:b1}}var L5=Symbol.for("drizzle:SQLiteInlineForeignKeys");class m0 extends V1{static[b]="SQLiteTable";static Symbol=Object.assign({},V1.Symbol,{InlineForeignKeys:L5});[V1.Symbol.Columns];[L5]=[];[V1.Symbol.ExtraConfigBuilder]=void 0}function uY($,G,Y,J,X=$){let q=new m0($,J,X),W=typeof G==="function"?G(l9()):G,H=Object.fromEntries(Object.entries(W).map(([U,M])=>{let R=M;R.setName(U);let z=R.build(q);return q[L5].push(...R.buildForeignKeys(z,q)),[U,z]})),V=Object.assign(q,H);if(V[V1.Symbol.Columns]=H,V[V1.Symbol.ExtraConfigColumns]=H,Y)V[m0.Symbol.ExtraConfigBuilder]=Y;return V}var F4=($,G,Y)=>{return uY($,G,Y)};class r9{constructor($,G){this.name=$,this.value=G}static[b]="SQLiteCheckBuilder";brand;build($){return new c9($,this)}}class c9{constructor($,G){this.table=$,this.name=G.name,this.value=G.value}static[b]="SQLiteCheck";name;value}function d9($,G){return new r9($,G)}function _4(...$){if($[0].columns)return new P5($[0].columns,$[0].name);return new P5($)}class P5{static[b]="SQLitePrimaryKeyBuilder";columns;name;constructor($,G){this.columns=$,this.name=G}build($){return new i9($,this.columns,this.name)}}class i9{constructor($,G,Y){this.table=$,this.columns=G,this.name=Y}static[b]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[m0.Symbol.Name]}_${this.columns.map(($)=>$.name).join("_")}_pk`}}var w4=F4("entities",{id:b1("id").notNull(),entityType:b1("entityType").notNull(),content:b1("content").notNull(),contentHash:b1("contentHash").notNull(),visibility:b1("visibility",{enum:["public","shared","restricted"]}).notNull().default("public"),metadata:b1("metadata",{mode:"json"}).$type().notNull().default(T2`'{}'`),created:y0("created").notNull().$defaultFn(()=>Date.now()),updated:y0("updated").notNull().$defaultFn(()=>Date.now())},($)=>{return{pk:_4({columns:[$.id,$.entityType]}),visibilityCheck:d9("entities_visibility_check",T2`${$.visibility} IN ('public', 'shared', 'restricted')`)}});import{createClient as UQ}from"@libsql/client";var o9=z4({dataType(){return"F32_BLOB(1536)"},toDriver($){return Buffer.from($.buffer)},fromDriver($){return new Float32Array($.buffer,$.byteOffset,$.byteLength/4)}});var B4=F4("embeddings",{entityId:b1("entity_id").notNull(),entityType:b1("entity_type").notNull(),embedding:o9("embedding").notNull(),contentHash:b1("content_hash").notNull()},($)=>{return{pk:_4({columns:[$.entityId,$.entityType]})}});var L={};e6(L,{void:()=>EJ,util:()=>o,unknown:()=>LJ,union:()=>IJ,undefined:()=>BJ,tuple:()=>xJ,transformer:()=>lJ,symbol:()=>wJ,string:()=>J$,strictObject:()=>SJ,setErrorMap:()=>cY,set:()=>gJ,record:()=>hJ,quotelessJson:()=>lY,promise:()=>uJ,preprocess:()=>dJ,pipeline:()=>iJ,ostring:()=>oJ,optional:()=>rJ,onumber:()=>nJ,oboolean:()=>aJ,objectUtil:()=>E5,object:()=>TJ,number:()=>X$,nullable:()=>cJ,null:()=>NJ,never:()=>PJ,nativeEnum:()=>pJ,nan:()=>OJ,map:()=>kJ,makeIssue:()=>f0,literal:()=>mJ,lazy:()=>yJ,late:()=>zJ,isValid:()=>Q2,isDirty:()=>j4,isAsync:()=>$0,isAborted:()=>N4,intersection:()=>bJ,instanceof:()=>AJ,getParsedType:()=>s1,getErrorMap:()=>e2,function:()=>vJ,enum:()=>fJ,effect:()=>lJ,discriminatedUnion:()=>CJ,defaultErrorMap:()=>W2,datetimeRegex:()=>$$,date:()=>_J,custom:()=>Y$,coerce:()=>sJ,boolean:()=>q$,bigint:()=>FJ,array:()=>ZJ,any:()=>jJ,addIssueToContext:()=>C,ZodVoid:()=>u0,ZodUnknown:()=>R2,ZodUnion:()=>W0,ZodUndefined:()=>X0,ZodType:()=>d,ZodTuple:()=>e1,ZodTransformer:()=>i1,ZodSymbol:()=>p0,ZodString:()=>l1,ZodSet:()=>b2,ZodSchema:()=>d,ZodRecord:()=>l0,ZodReadonly:()=>R0,ZodPromise:()=>x2,ZodPipeline:()=>d0,ZodParsedType:()=>E,ZodOptional:()=>c1,ZodObject:()=>X1,ZodNumber:()=>K2,ZodNullable:()=>V2,ZodNull:()=>q0,ZodNever:()=>t1,ZodNativeEnum:()=>M0,ZodNaN:()=>c0,ZodMap:()=>r0,ZodLiteral:()=>U0,ZodLazy:()=>V0,ZodIssueCode:()=>N,ZodIntersection:()=>H0,ZodFunction:()=>Y0,ZodFirstPartyTypeKind:()=>f,ZodError:()=>L1,ZodEnum:()=>A2,ZodEffects:()=>i1,ZodDiscriminatedUnion:()=>L4,ZodDefault:()=>D0,ZodDate:()=>I2,ZodCatch:()=>Q0,ZodBranded:()=>P4,ZodBoolean:()=>J0,ZodBigInt:()=>z2,ZodArray:()=>r1,ZodAny:()=>C2,Schema:()=>d,ParseStatus:()=>O1,OK:()=>w1,NEVER:()=>tJ,INVALID:()=>y,EMPTY_PATH:()=>dY,DIRTY:()=>S2,BRAND:()=>KJ});var o;(function($){$.assertEqual=(X)=>{};function G(X){}$.assertIs=G;function Y(X){throw Error()}$.assertNever=Y,$.arrayToEnum=(X)=>{let q={};for(let W of X)q[W]=W;return q},$.getValidEnumValues=(X)=>{let q=$.objectKeys(X).filter((H)=>typeof X[X[H]]!=="number"),W={};for(let H of q)W[H]=X[H];return $.objectValues(W)},$.objectValues=(X)=>{return $.objectKeys(X).map(function(q){return X[q]})},$.objectKeys=typeof Object.keys==="function"?(X)=>Object.keys(X):(X)=>{let q=[];for(let W in X)if(Object.prototype.hasOwnProperty.call(X,W))q.push(W);return q},$.find=(X,q)=>{for(let W of X)if(q(W))return W;return},$.isInteger=typeof Number.isInteger==="function"?(X)=>Number.isInteger(X):(X)=>typeof X==="number"&&Number.isFinite(X)&&Math.floor(X)===X;function J(X,q=" | "){return X.map((W)=>typeof W==="string"?`'${W}'`:W).join(q)}$.joinValues=J,$.jsonStringifyReplacer=(X,q)=>{if(typeof q==="bigint")return q.toString();return q}})(o||(o={}));var E5;(function($){$.mergeShapes=(G,Y)=>{return{...G,...Y}}})(E5||(E5={}));var E=o.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s1=($)=>{switch(typeof $){case"undefined":return E.undefined;case"string":return E.string;case"number":return Number.isNaN($)?E.nan:E.number;case"boolean":return E.boolean;case"function":return E.function;case"bigint":return E.bigint;case"symbol":return E.symbol;case"object":if(Array.isArray($))return E.array;if($===null)return E.null;if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return E.promise;if(typeof Map<"u"&&$ instanceof Map)return E.map;if(typeof Set<"u"&&$ instanceof Set)return E.set;if(typeof Date<"u"&&$ instanceof Date)return E.date;return E.object;default:return E.unknown}};var N=o.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"]),lY=($)=>{return JSON.stringify($,null,2).replace(/"([^"]+)":/g,"$1:")};class L1 extends Error{get errors(){return this.issues}constructor($){super();this.issues=[],this.addIssue=(Y)=>{this.issues=[...this.issues,Y]},this.addIssues=(Y=[])=>{this.issues=[...this.issues,...Y]};let G=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,G);else this.__proto__=G;this.name="ZodError",this.issues=$}format($){let G=$||function(X){return X.message},Y={_errors:[]},J=(X)=>{for(let q of X.issues)if(q.code==="invalid_union")q.unionErrors.map(J);else if(q.code==="invalid_return_type")J(q.returnTypeError);else if(q.code==="invalid_arguments")J(q.argumentsError);else if(q.path.length===0)Y._errors.push(G(q));else{let W=Y,H=0;while(H<q.path.length){let V=q.path[H];if(H!==q.path.length-1)W[V]=W[V]||{_errors:[]};else W[V]=W[V]||{_errors:[]},W[V]._errors.push(G(q));W=W[V],H++}}};return J(this),Y}static assert($){if(!($ instanceof L1))throw Error(`Not a ZodError: ${$}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,o.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten($=(G)=>G.message){let G={},Y=[];for(let J of this.issues)if(J.path.length>0){let X=J.path[0];G[X]=G[X]||[],G[X].push($(J))}else Y.push($(J));return{formErrors:Y,fieldErrors:G}}get formErrors(){return this.flatten()}}L1.create=($)=>{return new L1($)};var rY=($,G)=>{let Y;switch($.code){case N.invalid_type:if($.received===E.undefined)Y="Required";else Y=`Expected ${$.expected}, received ${$.received}`;break;case N.invalid_literal:Y=`Invalid literal value, expected ${JSON.stringify($.expected,o.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:Y=`Unrecognized key(s) in object: ${o.joinValues($.keys,", ")}`;break;case N.invalid_union:Y="Invalid input";break;case N.invalid_union_discriminator:Y=`Invalid discriminator value. Expected ${o.joinValues($.options)}`;break;case N.invalid_enum_value:Y=`Invalid enum value. Expected ${o.joinValues($.options)}, received '${$.received}'`;break;case N.invalid_arguments:Y="Invalid function arguments";break;case N.invalid_return_type:Y="Invalid function return type";break;case N.invalid_date:Y="Invalid date";break;case N.invalid_string:if(typeof $.validation==="object")if("includes"in $.validation){if(Y=`Invalid input: must include "${$.validation.includes}"`,typeof $.validation.position==="number")Y=`${Y} at one or more positions greater than or equal to ${$.validation.position}`}else if("startsWith"in $.validation)Y=`Invalid input: must start with "${$.validation.startsWith}"`;else if("endsWith"in $.validation)Y=`Invalid input: must end with "${$.validation.endsWith}"`;else o.assertNever($.validation);else if($.validation!=="regex")Y=`Invalid ${$.validation}`;else Y="Invalid";break;case N.too_small:if($.type==="array")Y=`Array must contain ${$.exact?"exactly":$.inclusive?"at least":"more than"} ${$.minimum} element(s)`;else if($.type==="string")Y=`String must contain ${$.exact?"exactly":$.inclusive?"at least":"over"} ${$.minimum} character(s)`;else if($.type==="number")Y=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="bigint")Y=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="date")Y=`Date must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${new Date(Number($.minimum))}`;else Y="Invalid input";break;case N.too_big:if($.type==="array")Y=`Array must contain ${$.exact?"exactly":$.inclusive?"at most":"less than"} ${$.maximum} element(s)`;else if($.type==="string")Y=`String must contain ${$.exact?"exactly":$.inclusive?"at most":"under"} ${$.maximum} character(s)`;else if($.type==="number")Y=`Number must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="bigint")Y=`BigInt must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="date")Y=`Date must be ${$.exact?"exactly":$.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number($.maximum))}`;else Y="Invalid input";break;case N.custom:Y="Invalid input";break;case N.invalid_intersection_types:Y="Intersection results could not be merged";break;case N.not_multiple_of:Y=`Number must be a multiple of ${$.multipleOf}`;break;case N.not_finite:Y="Number must be finite";break;default:Y=G.defaultError,o.assertNever($)}return{message:Y}},W2=rY;var n9=W2;function cY($){n9=$}function e2(){return n9}var f0=($)=>{let{data:G,path:Y,errorMaps:J,issueData:X}=$,q=[...Y,...X.path||[]],W={...X,path:q};if(X.message!==void 0)return{...X,path:q,message:X.message};let H="",V=J.filter((U)=>!!U).slice().reverse();for(let U of V)H=U(W,{data:G,defaultError:H}).message;return{...X,path:q,message:H}},dY=[];function C($,G){let Y=e2(),J=f0({issueData:G,data:$.data,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,Y,Y===W2?void 0:W2].filter((X)=>!!X)});$.common.issues.push(J)}class O1{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray($,G){let Y=[];for(let J of G){if(J.status==="aborted")return y;if(J.status==="dirty")$.dirty();Y.push(J.value)}return{status:$.value,value:Y}}static async mergeObjectAsync($,G){let Y=[];for(let J of G){let X=await J.key,q=await J.value;Y.push({key:X,value:q})}return O1.mergeObjectSync($,Y)}static mergeObjectSync($,G){let Y={};for(let J of G){let{key:X,value:q}=J;if(X.status==="aborted")return y;if(q.status==="aborted")return y;if(X.status==="dirty")$.dirty();if(q.status==="dirty")$.dirty();if(X.value!=="__proto__"&&(typeof q.value<"u"||J.alwaysSet))Y[X.value]=q.value}return{status:$.value,value:Y}}}var y=Object.freeze({status:"aborted"}),S2=($)=>({status:"dirty",value:$}),w1=($)=>({status:"valid",value:$}),N4=($)=>$.status==="aborted",j4=($)=>$.status==="dirty",Q2=($)=>$.status==="valid",$0=($)=>typeof Promise<"u"&&$ instanceof Promise;var k;(function($){$.errToObj=(G)=>typeof G==="string"?{message:G}:G||{},$.toString=(G)=>typeof G==="string"?G:G?.message})(k||(k={}));class d1{constructor($,G,Y,J){this._cachedPath=[],this.parent=$,this.data=G,this._path=Y,this._key=J}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}}var a9=($,G)=>{if(Q2(G))return{success:!0,data:G.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 Y=new L1($.common.issues);return this._error=Y,this._error}}}};function r($){if(!$)return{};let{errorMap:G,invalid_type_error:Y,required_error:J,description:X}=$;if(G&&(Y||J))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(G)return{errorMap:G,description:X};return{errorMap:(W,H)=>{let{message:V}=$;if(W.code==="invalid_enum_value")return{message:V??H.defaultError};if(typeof H.data>"u")return{message:V??J??H.defaultError};if(W.code!=="invalid_type")return{message:H.defaultError};return{message:V??Y??H.defaultError}},description:X}}class d{get description(){return this._def.description}_getType($){return s1($.data)}_getOrReturnCtx($,G){return G||{common:$.parent.common,data:$.data,parsedType:s1($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}_processInputParams($){return{status:new O1,ctx:{common:$.parent.common,data:$.data,parsedType:s1($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}}_parseSync($){let G=this._parse($);if($0(G))throw Error("Synchronous parse encountered promise.");return G}_parseAsync($){let G=this._parse($);return Promise.resolve(G)}parse($,G){let Y=this.safeParse($,G);if(Y.success)return Y.data;throw Y.error}safeParse($,G){let Y={common:{issues:[],async:G?.async??!1,contextualErrorMap:G?.errorMap},path:G?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:s1($)},J=this._parseSync({data:$,path:Y.path,parent:Y});return a9(Y,J)}"~validate"($){let G={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:s1($)};if(!this["~standard"].async)try{let Y=this._parseSync({data:$,path:[],parent:G});return Q2(Y)?{value:Y.value}:{issues:G.common.issues}}catch(Y){if(Y?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;G.common={issues:[],async:!0}}return this._parseAsync({data:$,path:[],parent:G}).then((Y)=>Q2(Y)?{value:Y.value}:{issues:G.common.issues})}async parseAsync($,G){let Y=await this.safeParseAsync($,G);if(Y.success)return Y.data;throw Y.error}async safeParseAsync($,G){let Y={common:{issues:[],contextualErrorMap:G?.errorMap,async:!0},path:G?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:s1($)},J=this._parse({data:$,path:Y.path,parent:Y}),X=await($0(J)?J:Promise.resolve(J));return a9(Y,X)}refine($,G){let Y=(J)=>{if(typeof G==="string"||typeof G>"u")return{message:G};else if(typeof G==="function")return G(J);else return G};return this._refinement((J,X)=>{let q=$(J),W=()=>X.addIssue({code:N.custom,...Y(J)});if(typeof Promise<"u"&&q instanceof Promise)return q.then((H)=>{if(!H)return W(),!1;else return!0});if(!q)return W(),!1;else return!0})}refinement($,G){return this._refinement((Y,J)=>{if(!$(Y))return J.addIssue(typeof G==="function"?G(Y,J):G),!1;else return!0})}_refinement($){return new i1({schema:this,typeName:f.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:(G)=>this["~validate"](G)}}optional(){return c1.create(this,this._def)}nullable(){return V2.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return r1.create(this)}promise(){return x2.create(this,this._def)}or($){return W0.create([this,$],this._def)}and($){return H0.create(this,$,this._def)}transform($){return new i1({...r(this._def),schema:this,typeName:f.ZodEffects,effect:{type:"transform",transform:$}})}default($){let G=typeof $==="function"?$:()=>$;return new D0({...r(this._def),innerType:this,defaultValue:G,typeName:f.ZodDefault})}brand(){return new P4({typeName:f.ZodBranded,type:this,...r(this._def)})}catch($){let G=typeof $==="function"?$:()=>$;return new Q0({...r(this._def),innerType:this,catchValue:G,typeName:f.ZodCatch})}describe($){return new this.constructor({...this._def,description:$})}pipe($){return d0.create(this,$)}readonly(){return R0.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var iY=/^c[^\s-]{8,}$/i,oY=/^[0-9a-z]+$/,nY=/^[0-9A-HJKMNP-TV-Z]{26}$/i,aY=/^[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,sY=/^[a-z0-9_-]{21}$/i,tY=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,eY=/^[-+]?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)?)??$/,$J=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,GJ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Z5,YJ=/^(?:(?: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])$/,JJ=/^(?:(?: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])$/,XJ=/^(([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]))$/,qJ=/^(([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])$/,WJ=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,HJ=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,t9="((\\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])))",VJ=new RegExp(`^${t9}$`);function e9($){let G="[0-5]\\d";if($.precision)G=`${G}\\.\\d{${$.precision}}`;else if($.precision==null)G=`${G}(\\.\\d+)?`;let Y=$.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${G})${Y}`}function UJ($){return new RegExp(`^${e9($)}$`)}function $$($){let G=`${t9}T${e9($)}`,Y=[];if(Y.push($.local?"Z?":"Z"),$.offset)Y.push("([+-]\\d{2}:?\\d{2})");return G=`${G}(${Y.join("|")})`,new RegExp(`^${G}$`)}function MJ($,G){if((G==="v4"||!G)&&YJ.test($))return!0;if((G==="v6"||!G)&&XJ.test($))return!0;return!1}function DJ($,G){if(!tY.test($))return!1;try{let[Y]=$.split(".");if(!Y)return!1;let J=Y.replace(/-/g,"+").replace(/_/g,"/").padEnd(Y.length+(4-Y.length%4)%4,"="),X=JSON.parse(atob(J));if(typeof X!=="object"||X===null)return!1;if("typ"in X&&X?.typ!=="JWT")return!1;if(!X.alg)return!1;if(G&&X.alg!==G)return!1;return!0}catch{return!1}}function QJ($,G){if((G==="v4"||!G)&&JJ.test($))return!0;if((G==="v6"||!G)&&qJ.test($))return!0;return!1}class l1 extends d{_parse($){if(this._def.coerce)$.data=String($.data);if(this._getType($)!==E.string){let X=this._getOrReturnCtx($);return C(X,{code:N.invalid_type,expected:E.string,received:X.parsedType}),y}let Y=new O1,J=void 0;for(let X of this._def.checks)if(X.kind==="min"){if($.data.length<X.value)J=this._getOrReturnCtx($,J),C(J,{code:N.too_small,minimum:X.value,type:"string",inclusive:!0,exact:!1,message:X.message}),Y.dirty()}else if(X.kind==="max"){if($.data.length>X.value)J=this._getOrReturnCtx($,J),C(J,{code:N.too_big,maximum:X.value,type:"string",inclusive:!0,exact:!1,message:X.message}),Y.dirty()}else if(X.kind==="length"){let q=$.data.length>X.value,W=$.data.length<X.value;if(q||W){if(J=this._getOrReturnCtx($,J),q)C(J,{code:N.too_big,maximum:X.value,type:"string",inclusive:!0,exact:!0,message:X.message});else if(W)C(J,{code:N.too_small,minimum:X.value,type:"string",inclusive:!0,exact:!0,message:X.message});Y.dirty()}}else if(X.kind==="email"){if(!$J.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"email",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="emoji"){if(!Z5)Z5=new RegExp(GJ,"u");if(!Z5.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"emoji",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="uuid"){if(!aY.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"uuid",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="nanoid"){if(!sY.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"nanoid",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="cuid"){if(!iY.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"cuid",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="cuid2"){if(!oY.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"cuid2",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="ulid"){if(!nY.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"ulid",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="url")try{new URL($.data)}catch{J=this._getOrReturnCtx($,J),C(J,{validation:"url",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="regex"){if(X.regex.lastIndex=0,!X.regex.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"regex",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="trim")$.data=$.data.trim();else if(X.kind==="includes"){if(!$.data.includes(X.value,X.position))J=this._getOrReturnCtx($,J),C(J,{code:N.invalid_string,validation:{includes:X.value,position:X.position},message:X.message}),Y.dirty()}else if(X.kind==="toLowerCase")$.data=$.data.toLowerCase();else if(X.kind==="toUpperCase")$.data=$.data.toUpperCase();else if(X.kind==="startsWith"){if(!$.data.startsWith(X.value))J=this._getOrReturnCtx($,J),C(J,{code:N.invalid_string,validation:{startsWith:X.value},message:X.message}),Y.dirty()}else if(X.kind==="endsWith"){if(!$.data.endsWith(X.value))J=this._getOrReturnCtx($,J),C(J,{code:N.invalid_string,validation:{endsWith:X.value},message:X.message}),Y.dirty()}else if(X.kind==="datetime"){if(!$$(X).test($.data))J=this._getOrReturnCtx($,J),C(J,{code:N.invalid_string,validation:"datetime",message:X.message}),Y.dirty()}else if(X.kind==="date"){if(!VJ.test($.data))J=this._getOrReturnCtx($,J),C(J,{code:N.invalid_string,validation:"date",message:X.message}),Y.dirty()}else if(X.kind==="time"){if(!UJ(X).test($.data))J=this._getOrReturnCtx($,J),C(J,{code:N.invalid_string,validation:"time",message:X.message}),Y.dirty()}else if(X.kind==="duration"){if(!eY.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"duration",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="ip"){if(!MJ($.data,X.version))J=this._getOrReturnCtx($,J),C(J,{validation:"ip",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="jwt"){if(!DJ($.data,X.alg))J=this._getOrReturnCtx($,J),C(J,{validation:"jwt",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="cidr"){if(!QJ($.data,X.version))J=this._getOrReturnCtx($,J),C(J,{validation:"cidr",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="base64"){if(!WJ.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"base64",code:N.invalid_string,message:X.message}),Y.dirty()}else if(X.kind==="base64url"){if(!HJ.test($.data))J=this._getOrReturnCtx($,J),C(J,{validation:"base64url",code:N.invalid_string,message:X.message}),Y.dirty()}else o.assertNever(X);return{status:Y.value,value:$.data}}_regex($,G,Y){return this.refinement((J)=>$.test(J),{validation:G,code:N.invalid_string,...k.errToObj(Y)})}_addCheck($){return new l1({...this._def,checks:[...this._def.checks,$]})}email($){return this._addCheck({kind:"email",...k.errToObj($)})}url($){return this._addCheck({kind:"url",...k.errToObj($)})}emoji($){return this._addCheck({kind:"emoji",...k.errToObj($)})}uuid($){return this._addCheck({kind:"uuid",...k.errToObj($)})}nanoid($){return this._addCheck({kind:"nanoid",...k.errToObj($)})}cuid($){return this._addCheck({kind:"cuid",...k.errToObj($)})}cuid2($){return this._addCheck({kind:"cuid2",...k.errToObj($)})}ulid($){return this._addCheck({kind:"ulid",...k.errToObj($)})}base64($){return this._addCheck({kind:"base64",...k.errToObj($)})}base64url($){return this._addCheck({kind:"base64url",...k.errToObj($)})}jwt($){return this._addCheck({kind:"jwt",...k.errToObj($)})}ip($){return this._addCheck({kind:"ip",...k.errToObj($)})}cidr($){return this._addCheck({kind:"cidr",...k.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,...k.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,...k.errToObj($?.message)})}duration($){return this._addCheck({kind:"duration",...k.errToObj($)})}regex($,G){return this._addCheck({kind:"regex",regex:$,...k.errToObj(G)})}includes($,G){return this._addCheck({kind:"includes",value:$,position:G?.position,...k.errToObj(G?.message)})}startsWith($,G){return this._addCheck({kind:"startsWith",value:$,...k.errToObj(G)})}endsWith($,G){return this._addCheck({kind:"endsWith",value:$,...k.errToObj(G)})}min($,G){return this._addCheck({kind:"min",value:$,...k.errToObj(G)})}max($,G){return this._addCheck({kind:"max",value:$,...k.errToObj(G)})}length($,G){return this._addCheck({kind:"length",value:$,...k.errToObj(G)})}nonempty($){return this.min(1,k.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 G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $}get maxLength(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $}}l1.create=($)=>{return new l1({checks:[],typeName:f.ZodString,coerce:$?.coerce??!1,...r($)})};function RJ($,G){let Y=($.toString().split(".")[1]||"").length,J=(G.toString().split(".")[1]||"").length,X=Y>J?Y:J,q=Number.parseInt($.toFixed(X).replace(".","")),W=Number.parseInt(G.toFixed(X).replace(".",""));return q%W/10**X}class K2 extends d{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($)!==E.number){let X=this._getOrReturnCtx($);return C(X,{code:N.invalid_type,expected:E.number,received:X.parsedType}),y}let Y=void 0,J=new O1;for(let X of this._def.checks)if(X.kind==="int"){if(!o.isInteger($.data))Y=this._getOrReturnCtx($,Y),C(Y,{code:N.invalid_type,expected:"integer",received:"float",message:X.message}),J.dirty()}else if(X.kind==="min"){if(X.inclusive?$.data<X.value:$.data<=X.value)Y=this._getOrReturnCtx($,Y),C(Y,{code:N.too_small,minimum:X.value,type:"number",inclusive:X.inclusive,exact:!1,message:X.message}),J.dirty()}else if(X.kind==="max"){if(X.inclusive?$.data>X.value:$.data>=X.value)Y=this._getOrReturnCtx($,Y),C(Y,{code:N.too_big,maximum:X.value,type:"number",inclusive:X.inclusive,exact:!1,message:X.message}),J.dirty()}else if(X.kind==="multipleOf"){if(RJ($.data,X.value)!==0)Y=this._getOrReturnCtx($,Y),C(Y,{code:N.not_multiple_of,multipleOf:X.value,message:X.message}),J.dirty()}else if(X.kind==="finite"){if(!Number.isFinite($.data))Y=this._getOrReturnCtx($,Y),C(Y,{code:N.not_finite,message:X.message}),J.dirty()}else o.assertNever(X);return{status:J.value,value:$.data}}gte($,G){return this.setLimit("min",$,!0,k.toString(G))}gt($,G){return this.setLimit("min",$,!1,k.toString(G))}lte($,G){return this.setLimit("max",$,!0,k.toString(G))}lt($,G){return this.setLimit("max",$,!1,k.toString(G))}setLimit($,G,Y,J){return new K2({...this._def,checks:[...this._def.checks,{kind:$,value:G,inclusive:Y,message:k.toString(J)}]})}_addCheck($){return new K2({...this._def,checks:[...this._def.checks,$]})}int($){return this._addCheck({kind:"int",message:k.toString($)})}positive($){return this._addCheck({kind:"min",value:0,inclusive:!1,message:k.toString($)})}negative($){return this._addCheck({kind:"max",value:0,inclusive:!1,message:k.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:0,inclusive:!0,message:k.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:0,inclusive:!0,message:k.toString($)})}multipleOf($,G){return this._addCheck({kind:"multipleOf",value:$,message:k.toString(G)})}finite($){return this._addCheck({kind:"finite",message:k.toString($)})}safe($){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:k.toString($)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:k.toString($)})}get minValue(){let $=null;for(let G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $}get maxValue(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $}get isInt(){return!!this._def.checks.find(($)=>$.kind==="int"||$.kind==="multipleOf"&&o.isInteger($.value))}get isFinite(){let $=null,G=null;for(let Y of this._def.checks)if(Y.kind==="finite"||Y.kind==="int"||Y.kind==="multipleOf")return!0;else if(Y.kind==="min"){if(G===null||Y.value>G)G=Y.value}else if(Y.kind==="max"){if($===null||Y.value<$)$=Y.value}return Number.isFinite(G)&&Number.isFinite($)}}K2.create=($)=>{return new K2({checks:[],typeName:f.ZodNumber,coerce:$?.coerce||!1,...r($)})};class z2 extends d{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($)!==E.bigint)return this._getInvalidInput($);let Y=void 0,J=new O1;for(let X of this._def.checks)if(X.kind==="min"){if(X.inclusive?$.data<X.value:$.data<=X.value)Y=this._getOrReturnCtx($,Y),C(Y,{code:N.too_small,type:"bigint",minimum:X.value,inclusive:X.inclusive,message:X.message}),J.dirty()}else if(X.kind==="max"){if(X.inclusive?$.data>X.value:$.data>=X.value)Y=this._getOrReturnCtx($,Y),C(Y,{code:N.too_big,type:"bigint",maximum:X.value,inclusive:X.inclusive,message:X.message}),J.dirty()}else if(X.kind==="multipleOf"){if($.data%X.value!==BigInt(0))Y=this._getOrReturnCtx($,Y),C(Y,{code:N.not_multiple_of,multipleOf:X.value,message:X.message}),J.dirty()}else o.assertNever(X);return{status:J.value,value:$.data}}_getInvalidInput($){let G=this._getOrReturnCtx($);return C(G,{code:N.invalid_type,expected:E.bigint,received:G.parsedType}),y}gte($,G){return this.setLimit("min",$,!0,k.toString(G))}gt($,G){return this.setLimit("min",$,!1,k.toString(G))}lte($,G){return this.setLimit("max",$,!0,k.toString(G))}lt($,G){return this.setLimit("max",$,!1,k.toString(G))}setLimit($,G,Y,J){return new z2({...this._def,checks:[...this._def.checks,{kind:$,value:G,inclusive:Y,message:k.toString(J)}]})}_addCheck($){return new z2({...this._def,checks:[...this._def.checks,$]})}positive($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:k.toString($)})}negative($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:k.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:k.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:k.toString($)})}multipleOf($,G){return this._addCheck({kind:"multipleOf",value:$,message:k.toString(G)})}get minValue(){let $=null;for(let G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $}get maxValue(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $}}z2.create=($)=>{return new z2({checks:[],typeName:f.ZodBigInt,coerce:$?.coerce??!1,...r($)})};class J0 extends d{_parse($){if(this._def.coerce)$.data=Boolean($.data);if(this._getType($)!==E.boolean){let Y=this._getOrReturnCtx($);return C(Y,{code:N.invalid_type,expected:E.boolean,received:Y.parsedType}),y}return w1($.data)}}J0.create=($)=>{return new J0({typeName:f.ZodBoolean,coerce:$?.coerce||!1,...r($)})};class I2 extends d{_parse($){if(this._def.coerce)$.data=new Date($.data);if(this._getType($)!==E.date){let X=this._getOrReturnCtx($);return C(X,{code:N.invalid_type,expected:E.date,received:X.parsedType}),y}if(Number.isNaN($.data.getTime())){let X=this._getOrReturnCtx($);return C(X,{code:N.invalid_date}),y}let Y=new O1,J=void 0;for(let X of this._def.checks)if(X.kind==="min"){if($.data.getTime()<X.value)J=this._getOrReturnCtx($,J),C(J,{code:N.too_small,message:X.message,inclusive:!0,exact:!1,minimum:X.value,type:"date"}),Y.dirty()}else if(X.kind==="max"){if($.data.getTime()>X.value)J=this._getOrReturnCtx($,J),C(J,{code:N.too_big,message:X.message,inclusive:!0,exact:!1,maximum:X.value,type:"date"}),Y.dirty()}else o.assertNever(X);return{status:Y.value,value:new Date($.data.getTime())}}_addCheck($){return new I2({...this._def,checks:[...this._def.checks,$]})}min($,G){return this._addCheck({kind:"min",value:$.getTime(),message:k.toString(G)})}max($,G){return this._addCheck({kind:"max",value:$.getTime(),message:k.toString(G)})}get minDate(){let $=null;for(let G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $!=null?new Date($):null}get maxDate(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $!=null?new Date($):null}}I2.create=($)=>{return new I2({checks:[],coerce:$?.coerce||!1,typeName:f.ZodDate,...r($)})};class p0 extends d{_parse($){if(this._getType($)!==E.symbol){let Y=this._getOrReturnCtx($);return C(Y,{code:N.invalid_type,expected:E.symbol,received:Y.parsedType}),y}return w1($.data)}}p0.create=($)=>{return new p0({typeName:f.ZodSymbol,...r($)})};class X0 extends d{_parse($){if(this._getType($)!==E.undefined){let Y=this._getOrReturnCtx($);return C(Y,{code:N.invalid_type,expected:E.undefined,received:Y.parsedType}),y}return w1($.data)}}X0.create=($)=>{return new X0({typeName:f.ZodUndefined,...r($)})};class q0 extends d{_parse($){if(this._getType($)!==E.null){let Y=this._getOrReturnCtx($);return C(Y,{code:N.invalid_type,expected:E.null,received:Y.parsedType}),y}return w1($.data)}}q0.create=($)=>{return new q0({typeName:f.ZodNull,...r($)})};class C2 extends d{constructor(){super(...arguments);this._any=!0}_parse($){return w1($.data)}}C2.create=($)=>{return new C2({typeName:f.ZodAny,...r($)})};class R2 extends d{constructor(){super(...arguments);this._unknown=!0}_parse($){return w1($.data)}}R2.create=($)=>{return new R2({typeName:f.ZodUnknown,...r($)})};class t1 extends d{_parse($){let G=this._getOrReturnCtx($);return C(G,{code:N.invalid_type,expected:E.never,received:G.parsedType}),y}}t1.create=($)=>{return new t1({typeName:f.ZodNever,...r($)})};class u0 extends d{_parse($){if(this._getType($)!==E.undefined){let Y=this._getOrReturnCtx($);return C(Y,{code:N.invalid_type,expected:E.void,received:Y.parsedType}),y}return w1($.data)}}u0.create=($)=>{return new u0({typeName:f.ZodVoid,...r($)})};class r1 extends d{_parse($){let{ctx:G,status:Y}=this._processInputParams($),J=this._def;if(G.parsedType!==E.array)return C(G,{code:N.invalid_type,expected:E.array,received:G.parsedType}),y;if(J.exactLength!==null){let q=G.data.length>J.exactLength.value,W=G.data.length<J.exactLength.value;if(q||W)C(G,{code:q?N.too_big:N.too_small,minimum:W?J.exactLength.value:void 0,maximum:q?J.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:J.exactLength.message}),Y.dirty()}if(J.minLength!==null){if(G.data.length<J.minLength.value)C(G,{code:N.too_small,minimum:J.minLength.value,type:"array",inclusive:!0,exact:!1,message:J.minLength.message}),Y.dirty()}if(J.maxLength!==null){if(G.data.length>J.maxLength.value)C(G,{code:N.too_big,maximum:J.maxLength.value,type:"array",inclusive:!0,exact:!1,message:J.maxLength.message}),Y.dirty()}if(G.common.async)return Promise.all([...G.data].map((q,W)=>{return J.type._parseAsync(new d1(G,q,G.path,W))})).then((q)=>{return O1.mergeArray(Y,q)});let X=[...G.data].map((q,W)=>{return J.type._parseSync(new d1(G,q,G.path,W))});return O1.mergeArray(Y,X)}get element(){return this._def.type}min($,G){return new r1({...this._def,minLength:{value:$,message:k.toString(G)}})}max($,G){return new r1({...this._def,maxLength:{value:$,message:k.toString(G)}})}length($,G){return new r1({...this._def,exactLength:{value:$,message:k.toString(G)}})}nonempty($){return this.min(1,$)}}r1.create=($,G)=>{return new r1({type:$,minLength:null,maxLength:null,exactLength:null,typeName:f.ZodArray,...r(G)})};function G0($){if($ instanceof X1){let G={};for(let Y in $.shape){let J=$.shape[Y];G[Y]=c1.create(G0(J))}return new X1({...$._def,shape:()=>G})}else if($ instanceof r1)return new r1({...$._def,type:G0($.element)});else if($ instanceof c1)return c1.create(G0($.unwrap()));else if($ instanceof V2)return V2.create(G0($.unwrap()));else if($ instanceof e1)return e1.create($.items.map((G)=>G0(G)));else return $}class X1 extends d{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(),G=o.objectKeys($);return this._cached={shape:$,keys:G},this._cached}_parse($){if(this._getType($)!==E.object){let V=this._getOrReturnCtx($);return C(V,{code:N.invalid_type,expected:E.object,received:V.parsedType}),y}let{status:Y,ctx:J}=this._processInputParams($),{shape:X,keys:q}=this._getCached(),W=[];if(!(this._def.catchall instanceof t1&&this._def.unknownKeys==="strip")){for(let V in J.data)if(!q.includes(V))W.push(V)}let H=[];for(let V of q){let U=X[V],M=J.data[V];H.push({key:{status:"valid",value:V},value:U._parse(new d1(J,M,J.path,V)),alwaysSet:V in J.data})}if(this._def.catchall instanceof t1){let V=this._def.unknownKeys;if(V==="passthrough")for(let U of W)H.push({key:{status:"valid",value:U},value:{status:"valid",value:J.data[U]}});else if(V==="strict"){if(W.length>0)C(J,{code:N.unrecognized_keys,keys:W}),Y.dirty()}else if(V==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let V=this._def.catchall;for(let U of W){let M=J.data[U];H.push({key:{status:"valid",value:U},value:V._parse(new d1(J,M,J.path,U)),alwaysSet:U in J.data})}}if(J.common.async)return Promise.resolve().then(async()=>{let V=[];for(let U of H){let M=await U.key,R=await U.value;V.push({key:M,value:R,alwaysSet:U.alwaysSet})}return V}).then((V)=>{return O1.mergeObjectSync(Y,V)});else return O1.mergeObjectSync(Y,H)}get shape(){return this._def.shape()}strict($){return k.errToObj,new X1({...this._def,unknownKeys:"strict",...$!==void 0?{errorMap:(G,Y)=>{let J=this._def.errorMap?.(G,Y).message??Y.defaultError;if(G.code==="unrecognized_keys")return{message:k.errToObj($).message??J};return{message:J}}}:{}})}strip(){return new X1({...this._def,unknownKeys:"strip"})}passthrough(){return new X1({...this._def,unknownKeys:"passthrough"})}extend($){return new X1({...this._def,shape:()=>({...this._def.shape(),...$})})}merge($){return new X1({unknownKeys:$._def.unknownKeys,catchall:$._def.catchall,shape:()=>({...this._def.shape(),...$._def.shape()}),typeName:f.ZodObject})}setKey($,G){return this.augment({[$]:G})}catchall($){return new X1({...this._def,catchall:$})}pick($){let G={};for(let Y of o.objectKeys($))if($[Y]&&this.shape[Y])G[Y]=this.shape[Y];return new X1({...this._def,shape:()=>G})}omit($){let G={};for(let Y of o.objectKeys(this.shape))if(!$[Y])G[Y]=this.shape[Y];return new X1({...this._def,shape:()=>G})}deepPartial(){return G0(this)}partial($){let G={};for(let Y of o.objectKeys(this.shape)){let J=this.shape[Y];if($&&!$[Y])G[Y]=J;else G[Y]=J.optional()}return new X1({...this._def,shape:()=>G})}required($){let G={};for(let Y of o.objectKeys(this.shape))if($&&!$[Y])G[Y]=this.shape[Y];else{let X=this.shape[Y];while(X instanceof c1)X=X._def.innerType;G[Y]=X}return new X1({...this._def,shape:()=>G})}keyof(){return G$(o.objectKeys(this.shape))}}X1.create=($,G)=>{return new X1({shape:()=>$,unknownKeys:"strip",catchall:t1.create(),typeName:f.ZodObject,...r(G)})};X1.strictCreate=($,G)=>{return new X1({shape:()=>$,unknownKeys:"strict",catchall:t1.create(),typeName:f.ZodObject,...r(G)})};X1.lazycreate=($,G)=>{return new X1({shape:$,unknownKeys:"strip",catchall:t1.create(),typeName:f.ZodObject,...r(G)})};class W0 extends d{_parse($){let{ctx:G}=this._processInputParams($),Y=this._def.options;function J(X){for(let W of X)if(W.result.status==="valid")return W.result;for(let W of X)if(W.result.status==="dirty")return G.common.issues.push(...W.ctx.common.issues),W.result;let q=X.map((W)=>new L1(W.ctx.common.issues));return C(G,{code:N.invalid_union,unionErrors:q}),y}if(G.common.async)return Promise.all(Y.map(async(X)=>{let q={...G,common:{...G.common,issues:[]},parent:null};return{result:await X._parseAsync({data:G.data,path:G.path,parent:q}),ctx:q}})).then(J);else{let X=void 0,q=[];for(let H of Y){let V={...G,common:{...G.common,issues:[]},parent:null},U=H._parseSync({data:G.data,path:G.path,parent:V});if(U.status==="valid")return U;else if(U.status==="dirty"&&!X)X={result:U,ctx:V};if(V.common.issues.length)q.push(V.common.issues)}if(X)return G.common.issues.push(...X.ctx.common.issues),X.result;let W=q.map((H)=>new L1(H));return C(G,{code:N.invalid_union,unionErrors:W}),y}}get options(){return this._def.options}}W0.create=($,G)=>{return new W0({options:$,typeName:f.ZodUnion,...r(G)})};var H2=($)=>{if($ instanceof V0)return H2($.schema);else if($ instanceof i1)return H2($.innerType());else if($ instanceof U0)return[$.value];else if($ instanceof A2)return $.options;else if($ instanceof M0)return o.objectValues($.enum);else if($ instanceof D0)return H2($._def.innerType);else if($ instanceof X0)return[void 0];else if($ instanceof q0)return[null];else if($ instanceof c1)return[void 0,...H2($.unwrap())];else if($ instanceof V2)return[null,...H2($.unwrap())];else if($ instanceof P4)return H2($.unwrap());else if($ instanceof R0)return H2($.unwrap());else if($ instanceof Q0)return H2($._def.innerType);else return[]};class L4 extends d{_parse($){let{ctx:G}=this._processInputParams($);if(G.parsedType!==E.object)return C(G,{code:N.invalid_type,expected:E.object,received:G.parsedType}),y;let Y=this.discriminator,J=G.data[Y],X=this.optionsMap.get(J);if(!X)return C(G,{code:N.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[Y]}),y;if(G.common.async)return X._parseAsync({data:G.data,path:G.path,parent:G});else return X._parseSync({data:G.data,path:G.path,parent:G})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create($,G,Y){let J=new Map;for(let X of G){let q=H2(X.shape[$]);if(!q.length)throw Error(`A discriminator value for key \`${$}\` could not be extracted from all schema options`);for(let W of q){if(J.has(W))throw Error(`Discriminator property ${String($)} has duplicate value ${String(W)}`);J.set(W,X)}}return new L4({typeName:f.ZodDiscriminatedUnion,discriminator:$,options:G,optionsMap:J,...r(Y)})}}function T5($,G){let Y=s1($),J=s1(G);if($===G)return{valid:!0,data:$};else if(Y===E.object&&J===E.object){let X=o.objectKeys(G),q=o.objectKeys($).filter((H)=>X.indexOf(H)!==-1),W={...$,...G};for(let H of q){let V=T5($[H],G[H]);if(!V.valid)return{valid:!1};W[H]=V.data}return{valid:!0,data:W}}else if(Y===E.array&&J===E.array){if($.length!==G.length)return{valid:!1};let X=[];for(let q=0;q<$.length;q++){let W=$[q],H=G[q],V=T5(W,H);if(!V.valid)return{valid:!1};X.push(V.data)}return{valid:!0,data:X}}else if(Y===E.date&&J===E.date&&+$===+G)return{valid:!0,data:$};else return{valid:!1}}class H0 extends d{_parse($){let{status:G,ctx:Y}=this._processInputParams($),J=(X,q)=>{if(N4(X)||N4(q))return y;let W=T5(X.value,q.value);if(!W.valid)return C(Y,{code:N.invalid_intersection_types}),y;if(j4(X)||j4(q))G.dirty();return{status:G.value,value:W.data}};if(Y.common.async)return Promise.all([this._def.left._parseAsync({data:Y.data,path:Y.path,parent:Y}),this._def.right._parseAsync({data:Y.data,path:Y.path,parent:Y})]).then(([X,q])=>J(X,q));else return J(this._def.left._parseSync({data:Y.data,path:Y.path,parent:Y}),this._def.right._parseSync({data:Y.data,path:Y.path,parent:Y}))}}H0.create=($,G,Y)=>{return new H0({left:$,right:G,typeName:f.ZodIntersection,...r(Y)})};class e1 extends d{_parse($){let{status:G,ctx:Y}=this._processInputParams($);if(Y.parsedType!==E.array)return C(Y,{code:N.invalid_type,expected:E.array,received:Y.parsedType}),y;if(Y.data.length<this._def.items.length)return C(Y,{code:N.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),y;if(!this._def.rest&&Y.data.length>this._def.items.length)C(Y,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),G.dirty();let X=[...Y.data].map((q,W)=>{let H=this._def.items[W]||this._def.rest;if(!H)return null;return H._parse(new d1(Y,q,Y.path,W))}).filter((q)=>!!q);if(Y.common.async)return Promise.all(X).then((q)=>{return O1.mergeArray(G,q)});else return O1.mergeArray(G,X)}get items(){return this._def.items}rest($){return new e1({...this._def,rest:$})}}e1.create=($,G)=>{if(!Array.isArray($))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new e1({items:$,typeName:f.ZodTuple,rest:null,...r(G)})};class l0 extends d{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:G,ctx:Y}=this._processInputParams($);if(Y.parsedType!==E.object)return C(Y,{code:N.invalid_type,expected:E.object,received:Y.parsedType}),y;let J=[],X=this._def.keyType,q=this._def.valueType;for(let W in Y.data)J.push({key:X._parse(new d1(Y,W,Y.path,W)),value:q._parse(new d1(Y,Y.data[W],Y.path,W)),alwaysSet:W in Y.data});if(Y.common.async)return O1.mergeObjectAsync(G,J);else return O1.mergeObjectSync(G,J)}get element(){return this._def.valueType}static create($,G,Y){if(G instanceof d)return new l0({keyType:$,valueType:G,typeName:f.ZodRecord,...r(Y)});return new l0({keyType:l1.create(),valueType:$,typeName:f.ZodRecord,...r(G)})}}class r0 extends d{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:G,ctx:Y}=this._processInputParams($);if(Y.parsedType!==E.map)return C(Y,{code:N.invalid_type,expected:E.map,received:Y.parsedType}),y;let J=this._def.keyType,X=this._def.valueType,q=[...Y.data.entries()].map(([W,H],V)=>{return{key:J._parse(new d1(Y,W,Y.path,[V,"key"])),value:X._parse(new d1(Y,H,Y.path,[V,"value"]))}});if(Y.common.async){let W=new Map;return Promise.resolve().then(async()=>{for(let H of q){let V=await H.key,U=await H.value;if(V.status==="aborted"||U.status==="aborted")return y;if(V.status==="dirty"||U.status==="dirty")G.dirty();W.set(V.value,U.value)}return{status:G.value,value:W}})}else{let W=new Map;for(let H of q){let{key:V,value:U}=H;if(V.status==="aborted"||U.status==="aborted")return y;if(V.status==="dirty"||U.status==="dirty")G.dirty();W.set(V.value,U.value)}return{status:G.value,value:W}}}}r0.create=($,G,Y)=>{return new r0({valueType:G,keyType:$,typeName:f.ZodMap,...r(Y)})};class b2 extends d{_parse($){let{status:G,ctx:Y}=this._processInputParams($);if(Y.parsedType!==E.set)return C(Y,{code:N.invalid_type,expected:E.set,received:Y.parsedType}),y;let J=this._def;if(J.minSize!==null){if(Y.data.size<J.minSize.value)C(Y,{code:N.too_small,minimum:J.minSize.value,type:"set",inclusive:!0,exact:!1,message:J.minSize.message}),G.dirty()}if(J.maxSize!==null){if(Y.data.size>J.maxSize.value)C(Y,{code:N.too_big,maximum:J.maxSize.value,type:"set",inclusive:!0,exact:!1,message:J.maxSize.message}),G.dirty()}let X=this._def.valueType;function q(H){let V=new Set;for(let U of H){if(U.status==="aborted")return y;if(U.status==="dirty")G.dirty();V.add(U.value)}return{status:G.value,value:V}}let W=[...Y.data.values()].map((H,V)=>X._parse(new d1(Y,H,Y.path,V)));if(Y.common.async)return Promise.all(W).then((H)=>q(H));else return q(W)}min($,G){return new b2({...this._def,minSize:{value:$,message:k.toString(G)}})}max($,G){return new b2({...this._def,maxSize:{value:$,message:k.toString(G)}})}size($,G){return this.min($,G).max($,G)}nonempty($){return this.min(1,$)}}b2.create=($,G)=>{return new b2({valueType:$,minSize:null,maxSize:null,typeName:f.ZodSet,...r(G)})};class Y0 extends d{constructor(){super(...arguments);this.validate=this.implement}_parse($){let{ctx:G}=this._processInputParams($);if(G.parsedType!==E.function)return C(G,{code:N.invalid_type,expected:E.function,received:G.parsedType}),y;function Y(W,H){return f0({data:W,path:G.path,errorMaps:[G.common.contextualErrorMap,G.schemaErrorMap,e2(),W2].filter((V)=>!!V),issueData:{code:N.invalid_arguments,argumentsError:H}})}function J(W,H){return f0({data:W,path:G.path,errorMaps:[G.common.contextualErrorMap,G.schemaErrorMap,e2(),W2].filter((V)=>!!V),issueData:{code:N.invalid_return_type,returnTypeError:H}})}let X={errorMap:G.common.contextualErrorMap},q=G.data;if(this._def.returns instanceof x2){let W=this;return w1(async function(...H){let V=new L1([]),U=await W._def.args.parseAsync(H,X).catch((z)=>{throw V.addIssue(Y(H,z)),V}),M=await Reflect.apply(q,this,U);return await W._def.returns._def.type.parseAsync(M,X).catch((z)=>{throw V.addIssue(J(M,z)),V})})}else{let W=this;return w1(function(...H){let V=W._def.args.safeParse(H,X);if(!V.success)throw new L1([Y(H,V.error)]);let U=Reflect.apply(q,this,V.data),M=W._def.returns.safeParse(U,X);if(!M.success)throw new L1([J(U,M.error)]);return M.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...$){return new Y0({...this._def,args:e1.create($).rest(R2.create())})}returns($){return new Y0({...this._def,returns:$})}implement($){return this.parse($)}strictImplement($){return this.parse($)}static create($,G,Y){return new Y0({args:$?$:e1.create([]).rest(R2.create()),returns:G||R2.create(),typeName:f.ZodFunction,...r(Y)})}}class V0 extends d{get schema(){return this._def.getter()}_parse($){let{ctx:G}=this._processInputParams($);return this._def.getter()._parse({data:G.data,path:G.path,parent:G})}}V0.create=($,G)=>{return new V0({getter:$,typeName:f.ZodLazy,...r(G)})};class U0 extends d{_parse($){if($.data!==this._def.value){let G=this._getOrReturnCtx($);return C(G,{received:G.data,code:N.invalid_literal,expected:this._def.value}),y}return{status:"valid",value:$.data}}get value(){return this._def.value}}U0.create=($,G)=>{return new U0({value:$,typeName:f.ZodLiteral,...r(G)})};function G$($,G){return new A2({values:$,typeName:f.ZodEnum,...r(G)})}class A2 extends d{_parse($){if(typeof $.data!=="string"){let G=this._getOrReturnCtx($),Y=this._def.values;return C(G,{expected:o.joinValues(Y),received:G.parsedType,code:N.invalid_type}),y}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has($.data)){let G=this._getOrReturnCtx($),Y=this._def.values;return C(G,{received:G.data,code:N.invalid_enum_value,options:Y}),y}return w1($.data)}get options(){return this._def.values}get enum(){let $={};for(let G of this._def.values)$[G]=G;return $}get Values(){let $={};for(let G of this._def.values)$[G]=G;return $}get Enum(){let $={};for(let G of this._def.values)$[G]=G;return $}extract($,G=this._def){return A2.create($,{...this._def,...G})}exclude($,G=this._def){return A2.create(this.options.filter((Y)=>!$.includes(Y)),{...this._def,...G})}}A2.create=G$;class M0 extends d{_parse($){let G=o.getValidEnumValues(this._def.values),Y=this._getOrReturnCtx($);if(Y.parsedType!==E.string&&Y.parsedType!==E.number){let J=o.objectValues(G);return C(Y,{expected:o.joinValues(J),received:Y.parsedType,code:N.invalid_type}),y}if(!this._cache)this._cache=new Set(o.getValidEnumValues(this._def.values));if(!this._cache.has($.data)){let J=o.objectValues(G);return C(Y,{received:Y.data,code:N.invalid_enum_value,options:J}),y}return w1($.data)}get enum(){return this._def.values}}M0.create=($,G)=>{return new M0({values:$,typeName:f.ZodNativeEnum,...r(G)})};class x2 extends d{unwrap(){return this._def.type}_parse($){let{ctx:G}=this._processInputParams($);if(G.parsedType!==E.promise&&G.common.async===!1)return C(G,{code:N.invalid_type,expected:E.promise,received:G.parsedType}),y;let Y=G.parsedType===E.promise?G.data:Promise.resolve(G.data);return w1(Y.then((J)=>{return this._def.type.parseAsync(J,{path:G.path,errorMap:G.common.contextualErrorMap})}))}}x2.create=($,G)=>{return new x2({type:$,typeName:f.ZodPromise,...r(G)})};class i1 extends d{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===f.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse($){let{status:G,ctx:Y}=this._processInputParams($),J=this._def.effect||null,X={addIssue:(q)=>{if(C(Y,q),q.fatal)G.abort();else G.dirty()},get path(){return Y.path}};if(X.addIssue=X.addIssue.bind(X),J.type==="preprocess"){let q=J.transform(Y.data,X);if(Y.common.async)return Promise.resolve(q).then(async(W)=>{if(G.value==="aborted")return y;let H=await this._def.schema._parseAsync({data:W,path:Y.path,parent:Y});if(H.status==="aborted")return y;if(H.status==="dirty")return S2(H.value);if(G.value==="dirty")return S2(H.value);return H});else{if(G.value==="aborted")return y;let W=this._def.schema._parseSync({data:q,path:Y.path,parent:Y});if(W.status==="aborted")return y;if(W.status==="dirty")return S2(W.value);if(G.value==="dirty")return S2(W.value);return W}}if(J.type==="refinement"){let q=(W)=>{let H=J.refinement(W,X);if(Y.common.async)return Promise.resolve(H);if(H instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return W};if(Y.common.async===!1){let W=this._def.schema._parseSync({data:Y.data,path:Y.path,parent:Y});if(W.status==="aborted")return y;if(W.status==="dirty")G.dirty();return q(W.value),{status:G.value,value:W.value}}else return this._def.schema._parseAsync({data:Y.data,path:Y.path,parent:Y}).then((W)=>{if(W.status==="aborted")return y;if(W.status==="dirty")G.dirty();return q(W.value).then(()=>{return{status:G.value,value:W.value}})})}if(J.type==="transform")if(Y.common.async===!1){let q=this._def.schema._parseSync({data:Y.data,path:Y.path,parent:Y});if(!Q2(q))return y;let W=J.transform(q.value,X);if(W instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:G.value,value:W}}else return this._def.schema._parseAsync({data:Y.data,path:Y.path,parent:Y}).then((q)=>{if(!Q2(q))return y;return Promise.resolve(J.transform(q.value,X)).then((W)=>({status:G.value,value:W}))});o.assertNever(J)}}i1.create=($,G,Y)=>{return new i1({schema:$,typeName:f.ZodEffects,effect:G,...r(Y)})};i1.createWithPreprocess=($,G,Y)=>{return new i1({schema:G,effect:{type:"preprocess",transform:$},typeName:f.ZodEffects,...r(Y)})};class c1 extends d{_parse($){if(this._getType($)===E.undefined)return w1(void 0);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}c1.create=($,G)=>{return new c1({innerType:$,typeName:f.ZodOptional,...r(G)})};class V2 extends d{_parse($){if(this._getType($)===E.null)return w1(null);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}V2.create=($,G)=>{return new V2({innerType:$,typeName:f.ZodNullable,...r(G)})};class D0 extends d{_parse($){let{ctx:G}=this._processInputParams($),Y=G.data;if(G.parsedType===E.undefined)Y=this._def.defaultValue();return this._def.innerType._parse({data:Y,path:G.path,parent:G})}removeDefault(){return this._def.innerType}}D0.create=($,G)=>{return new D0({innerType:$,typeName:f.ZodDefault,defaultValue:typeof G.default==="function"?G.default:()=>G.default,...r(G)})};class Q0 extends d{_parse($){let{ctx:G}=this._processInputParams($),Y={...G,common:{...G.common,issues:[]}},J=this._def.innerType._parse({data:Y.data,path:Y.path,parent:{...Y}});if($0(J))return J.then((X)=>{return{status:"valid",value:X.status==="valid"?X.value:this._def.catchValue({get error(){return new L1(Y.common.issues)},input:Y.data})}});else return{status:"valid",value:J.status==="valid"?J.value:this._def.catchValue({get error(){return new L1(Y.common.issues)},input:Y.data})}}removeCatch(){return this._def.innerType}}Q0.create=($,G)=>{return new Q0({innerType:$,typeName:f.ZodCatch,catchValue:typeof G.catch==="function"?G.catch:()=>G.catch,...r(G)})};class c0 extends d{_parse($){if(this._getType($)!==E.nan){let Y=this._getOrReturnCtx($);return C(Y,{code:N.invalid_type,expected:E.nan,received:Y.parsedType}),y}return{status:"valid",value:$.data}}}c0.create=($)=>{return new c0({typeName:f.ZodNaN,...r($)})};var KJ=Symbol("zod_brand");class P4 extends d{_parse($){let{ctx:G}=this._processInputParams($),Y=G.data;return this._def.type._parse({data:Y,path:G.path,parent:G})}unwrap(){return this._def.type}}class d0 extends d{_parse($){let{status:G,ctx:Y}=this._processInputParams($);if(Y.common.async)return(async()=>{let X=await this._def.in._parseAsync({data:Y.data,path:Y.path,parent:Y});if(X.status==="aborted")return y;if(X.status==="dirty")return G.dirty(),S2(X.value);else return this._def.out._parseAsync({data:X.value,path:Y.path,parent:Y})})();else{let J=this._def.in._parseSync({data:Y.data,path:Y.path,parent:Y});if(J.status==="aborted")return y;if(J.status==="dirty")return G.dirty(),{status:"dirty",value:J.value};else return this._def.out._parseSync({data:J.value,path:Y.path,parent:Y})}}static create($,G){return new d0({in:$,out:G,typeName:f.ZodPipeline})}}class R0 extends d{_parse($){let G=this._def.innerType._parse($),Y=(J)=>{if(Q2(J))J.value=Object.freeze(J.value);return J};return $0(G)?G.then((J)=>Y(J)):Y(G)}unwrap(){return this._def.innerType}}R0.create=($,G)=>{return new R0({innerType:$,typeName:f.ZodReadonly,...r(G)})};function s9($,G){let Y=typeof $==="function"?$(G):typeof $==="string"?{message:$}:$;return typeof Y==="string"?{message:Y}:Y}function Y$($,G={},Y){if($)return C2.create().superRefine((J,X)=>{let q=$(J);if(q instanceof Promise)return q.then((W)=>{if(!W){let H=s9(G,J),V=H.fatal??Y??!0;X.addIssue({code:"custom",...H,fatal:V})}});if(!q){let W=s9(G,J),H=W.fatal??Y??!0;X.addIssue({code:"custom",...W,fatal:H})}return});return C2.create()}var zJ={object:X1.lazycreate},f;(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"})(f||(f={}));var AJ=($,G={message:`Input not instance of ${$.name}`})=>Y$((Y)=>Y instanceof $,G),J$=l1.create,X$=K2.create,OJ=c0.create,FJ=z2.create,q$=J0.create,_J=I2.create,wJ=p0.create,BJ=X0.create,NJ=q0.create,jJ=C2.create,LJ=R2.create,PJ=t1.create,EJ=u0.create,ZJ=r1.create,TJ=X1.create,SJ=X1.strictCreate,IJ=W0.create,CJ=L4.create,bJ=H0.create,xJ=e1.create,hJ=l0.create,kJ=r0.create,gJ=b2.create,vJ=Y0.create,yJ=V0.create,mJ=U0.create,fJ=A2.create,pJ=M0.create,uJ=x2.create,lJ=i1.create,rJ=c1.create,cJ=V2.create,dJ=i1.createWithPreprocess,iJ=d0.create,oJ=()=>J$().optional(),nJ=()=>X$().optional(),aJ=()=>q$().optional(),sJ={string:($)=>l1.create({...$,coerce:!0}),number:($)=>K2.create({...$,coerce:!0}),boolean:($)=>J0.create({...$,coerce:!0}),bigint:($)=>z2.create({...$,coerce:!0}),date:($)=>I2.create({...$,coerce:!0})};var tJ=y;var eJ=L.enum(["public","shared","restricted"]),h2=L.union([eJ,L.literal("private")]).optional().transform(($)=>{if($===void 0)return"public";if($==="private")return"restricted";return $});var I5=L.object({id:L.string(),entityType:L.string(),content:L.string(),created:L.string().datetime(),updated:L.string().datetime(),visibility:h2,metadata:L.record(L.string(),L.unknown()),contentHash:L.string()}),JX=L.object({mediaType:L.string(),url:L.string(),downloadUrl:L.string().optional(),previewUrl:L.string().optional(),filename:L.string().optional(),sizeBytes:L.number().optional(),source:L.object({entityType:L.string().optional(),entityId:L.string().optional(),attachmentType:L.string().optional()}).optional()});import{openSync as XX,writeSync as qX}from"fs";class f1{static instance=null;level;context;useStderr;format;logFile;fileHandle;constructor($={},G){if(this.level=$.level??3,this.context=$.context??void 0,this.useStderr=$.useStderr??!1,this.format=$.format??"text",this.logFile=$.logFile,G!==void 0)this.fileHandle=G;else if(this.logFile)try{this.fileHandle=XX(this.logFile,"a")}catch{}}static getInstance($){if(!f1.instance)f1.instance=new f1($);else if($?.useStderr!==void 0)f1.instance.useStderr=$.useStderr;return f1.instance}static resetInstance(){f1.instance=null}static createFresh($){return new f1($)}formatEntry($,G,Y){let J=new Date().toISOString();if(this.format==="json"){let X={ts:J,level:$,msg:G};if(this.context)X.ctx=this.context;if(Y.length>0)X.data=Y;return JSON.stringify(X)}return this.context?`[${J}] [${this.context}] ${G}`:`[${J}] ${G}`}write($,G,Y,J){if(this.format==="json")$(this.formatEntry(G,Y,J));else if(J.length>0)$(this.formatEntry(G,Y,[]),...J);else $(this.formatEntry(G,Y,[]));if(this.fileHandle!==void 0){let X=this.formatJsonEntry(G,Y,J);try{qX(this.fileHandle,X+`
|
|
57
|
+
`)}catch{}}}formatJsonEntry($,G,Y){let J={ts:new Date().toISOString(),level:$,msg:G};if(this.context)J.ctx=this.context;if(Y.length>0)J.data=Y;return JSON.stringify(J)}silly($,...G){if(this.level<=0)this.write(console.debug.bind(console),"silly",$,G)}verbose($,...G){if(this.level<=1)this.write(console.debug.bind(console),"verbose",$,G)}debug($,...G){if(this.level<=2)this.write(console.debug.bind(console),"debug",$,G)}info($,...G){if(this.level<=3){let Y=this.useStderr?console.error.bind(console):console.info.bind(console);this.write(Y,"info",$,G)}}warn($,...G){if(this.level<=4)this.write(console.warn.bind(console),"warn",$,G)}error($,...G){if(this.level<=5)this.write(console.error.bind(console),"error",$,G)}child($){return new f1({level:this.level,context:$,useStderr:this.useStderr,format:this.format},this.fileHandle)}setUseStderr($){this.useStderr=$}}var nQ=f1.getInstance();var GR=L.object({id:L.string().min(1,"Entity ID is required"),entityType:L.string().min(1,"Entity type is required"),contentHash:L.string().min(1,"Content hash is required"),operation:L.enum(["create","update"])});var WR=L.object({limit:L.number().int().positive().optional().default(20),offset:L.number().int().min(0).optional().default(0),types:L.array(L.string()).optional().default([]),excludeTypes:L.array(L.string()).optional().default([]),weight:L.record(L.string(),L.number()).optional(),visibilityScope:L.enum(["public","shared","restricted"]).optional(),includeUngenerated:L.boolean().optional().default(!1),minScore:L.number().min(0).optional()});var VH=D4(t5(),1);var tR=L.object({visibility:h2});var QH=L.object({field:L.string(),direction:L.enum(["asc","desc"]),nullsFirst:L.boolean().optional()}),DK=L.object({limit:L.number().int().positive().optional(),offset:L.number().int().min(0).optional().default(0),sortFields:L.array(QH).optional(),filter:L.object({metadata:L.record(L.string(),L.unknown()).optional(),visibilityScope:L.enum(["public","shared","restricted"]).optional()}).optional(),publishedOnly:L.boolean().optional()});var NK=L.object({id:L.string().min(1),entityType:L.string().min(1),contentHash:L.string().min(1)});var MM=D4(t5(),1);class L8 extends Error{name="Assertion";code="ERR_ASSERTION";constructor($,G,Y,J,X){super($);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.actual=G,this.expected=Y,this.generated=X,this.operator=J}}function A($,G){BH(Boolean($),!1,!0,"ok","Expected value to be truthy",G)}function BH($,G,Y,J,X,q){if(!$)throw q instanceof Error?q:new L8(q||X,G,Y,J,!q)}var NH={};function p2($,G){let Y=G||NH,J=typeof Y.includeImageAlt==="boolean"?Y.includeImageAlt:!0,X=typeof Y.includeHtml==="boolean"?Y.includeHtml:!0;return E8($,J,X)}function E8($,G,Y){if(jH($)){if("value"in $)return $.type==="html"&&!Y?"":$.value;if(G&&"alt"in $&&$.alt)return $.alt;if("children"in $)return P8($.children,G,Y)}if(Array.isArray($))return P8($,G,Y);return""}function P8($,G,Y){let J=[],X=-1;while(++X<$.length)J[X]=E8($[X],G,Y);return J.join("")}function jH($){return Boolean($&&typeof $==="object")}var e5={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:`
|
|
58
58
|
`,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"};var LH={}.hasOwnProperty;function j0($){return LH.call(e5,$)?e5[$]:!1}var Q={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 j={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 D={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 x1={ht:"\t",lf:`
|
|
59
|
-
`,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"};function F1($,G,Y,J){let X=$.length,q=0,W;if(G<0)G=-G>X?0:X+G;else G=G>X?X:G;if(Y=Y>0?Y:0,J.length<j.v8MaxSafeChunkSize)W=Array.from(J),W.unshift(G,Y),$.splice(...W);else{if(Y)$.splice(G,Y);while(q<J.length)W=J.slice(q,q+j.v8MaxSafeChunkSize),W.unshift(G,0),$.splice(...W),q+=j.v8MaxSafeChunkSize,G+=j.v8MaxSafeChunkSize}}function E1($,G){if($.length>0)return F1($,$.length,0,G),$;return G}var Z8={}.hasOwnProperty;function S8($){let G={},Y=-1;while(++Y<$.length)PH(G,$[Y]);return G}function PH($,G){let Y;for(Y in G){let X=(Z8.call($,Y)?$[Y]:void 0)||($[Y]={}),q=G[Y],W;if(q)for(W in q){if(!Z8.call(X,W))X[W]=[];let H=q[W];EH(X[W],Array.isArray(H)?H:H?[H]:[])}}}function EH($,G){let Y=-1,J=[];while(++Y<G.length)(G[Y].add==="after"?$:J).push(G[Y]);F1($,0,0,J)}function y4($,G){let Y=Number.parseInt($,G);if(Y<Q.ht||Y===Q.vt||Y>Q.cr&&Y<Q.space||Y>Q.tilde&&Y<160||Y>55295&&Y<57344||Y>64975&&Y<65008||(Y&65535)===65535||(Y&65535)===65534||Y>1114111)return x1.replacementCharacter;return String.fromCodePoint(Y)}function M2($){return $.replace(/[\t\n\r ]+/g,x1.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}var h1=w2(/[A-Za-z]/),Z1=w2(/[\dA-Za-z]/),T8=w2(/[#-'*+\--9=?A-Z^-~]/);function G4($){return $!==null&&($<Q.space||$===Q.del)}var Y4=w2(/\d/),I8=w2(/[\dA-Fa-f]/),C8=w2(/[!-/:-@[-`{-~]/);function S($){return $!==null&&$<Q.horizontalTab}function H1($){return $!==null&&($<Q.nul||$===Q.space)}function p($){return $===Q.horizontalTab||$===Q.virtualSpace||$===Q.space}var b8=w2(/\p{P}|\p{S}/u),x8=w2(/\s/);function w2($){return G;function G(Y){return Y!==null&&Y>-1&&$.test(String.fromCharCode(Y))}}function l($,G,Y,J){let X=J?J-1:Number.POSITIVE_INFINITY,q=0;return W;function W(V){if(p(V))return $.enter(Y),H(V);return G(V)}function H(V){if(p(V)&&q++<X)return $.consume(V),H;return $.exit(Y),G(V)}}var h8={tokenize:ZH};function ZH($){let G=$.attempt(this.parser.constructs.contentInitial,J,X),Y;return G;function J(H){if(A(H===Q.eof||S(H),"expected eol or eof"),H===Q.eof){$.consume(H);return}return $.enter(D.lineEnding),$.consume(H),$.exit(D.lineEnding),l($,G,D.linePrefix)}function X(H){return A(H!==Q.eof&&!S(H),"expected anything other than a line ending or EOF"),$.enter(D.paragraph),q(H)}function q(H){let V=$.enter(D.chunkText,{contentType:j.contentTypeText,previous:Y});if(Y)Y.next=V;return Y=V,W(H)}function W(H){if(H===Q.eof){$.exit(D.chunkText),$.exit(D.paragraph),$.consume(H);return}if(S(H))return $.consume(H),$.exit(D.chunkText),q;return $.consume(H),W}}var g8={tokenize:SH},k8={tokenize:TH};function SH($){let G=this,Y=[],J=0,X,q,W;return H;function H(g){if(J<Y.length){let s=Y[J];return G.containerState=s[1],A(s[0].continuation,"expected `continuation` to be defined on container construct"),$.attempt(s[0].continuation,V,U)(g)}return U(g)}function V(g){if(A(G.containerState,"expected `containerState` to be defined after continuation"),J++,G.containerState._closeFlow){if(G.containerState._closeFlow=void 0,X)a();let s=G.events.length,G1=s,B;while(G1--)if(G.events[G1][0]==="exit"&&G.events[G1][1].type===D.chunkFlow){B=G.events[G1][1].end;break}A(B,"could not find previous flow chunk"),P(J);let e=s;while(e<G.events.length)G.events[e][1].end={...B},e++;return F1(G.events,G1+1,0,G.events.slice(s)),G.events.length=e,U(g)}return H(g)}function U(g){if(J===Y.length){if(!X)return z(g);if(X.currentConstruct&&X.currentConstruct.concrete)return Z(g);G.interrupt=Boolean(X.currentConstruct&&!X._gfmTableDynamicInterruptHack)}return G.containerState={},$.check(k8,M,R)(g)}function M(g){if(X)a();return P(J),z(g)}function R(g){return G.parser.lazy[G.now().line]=J!==Y.length,W=G.now().offset,Z(g)}function z(g){return G.containerState={},$.attempt(k8,K,Z)(g)}function K(g){return A(G.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),A(G.containerState,"expected `containerState` to be defined on tokenizer"),J++,Y.push([G.currentConstruct,G.containerState]),z(g)}function Z(g){if(g===Q.eof){if(X)a();P(0),$.consume(g);return}return X=X||G.parser.flow(G.now()),$.enter(D.chunkFlow,{_tokenizer:X,contentType:j.contentTypeFlow,previous:q}),T(g)}function T(g){if(g===Q.eof){I($.exit(D.chunkFlow),!0),P(0),$.consume(g);return}if(S(g))return $.consume(g),I($.exit(D.chunkFlow)),J=0,G.interrupt=void 0,H;return $.consume(g),T}function I(g,s){A(X,"expected `childFlow` to be defined when continuing");let G1=G.sliceStream(g);if(s)G1.push(null);if(g.previous=q,q)q.next=g;if(q=g,X.defineSkip(g.start),X.write(G1),G.parser.lazy[g.start.line]){let B=X.events.length;while(B--)if(X.events[B][1].start.offset<W&&(!X.events[B][1].end||X.events[B][1].end.offset>W))return;let e=G.events.length,J1=e,n,Y1;while(J1--)if(G.events[J1][0]==="exit"&&G.events[J1][1].type===D.chunkFlow){if(n){Y1=G.events[J1][1].end;break}n=!0}A(Y1,"could not find previous flow chunk"),P(J),B=e;while(B<G.events.length)G.events[B][1].end={...Y1},B++;F1(G.events,J1+1,0,G.events.slice(e)),G.events.length=B}}function P(g){let s=Y.length;while(s-- >g){let G1=Y[s];G.containerState=G1[1],A(G1[0].exit,"expected `exit` to be defined on container construct"),G1[0].exit.call(G,$)}Y.length=g}function a(){A(G.containerState,"expected `containerState` to be defined when closing flow"),A(X,"expected `childFlow` to be defined when closing it"),X.write([Q.eof]),q=void 0,X=void 0,G.containerState._closeFlow=void 0}}function TH($,G,Y){return A(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),l($,$.attempt(this.parser.constructs.document,G,Y),D.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:j.tabSize)}function L0($){if($===Q.eof||H1($)||x8($))return j.characterGroupWhitespace;if(b8($))return j.characterGroupPunctuation}function P0($,G,Y){let J=[],X=-1;while(++X<$.length){let q=$[X].resolveAll;if(q&&!J.includes(q))G=q(G,Y),J.push(q)}return G}var J4={name:"attention",resolveAll:IH,tokenize:CH};function IH($,G){let Y=-1,J,X,q,W,H,V,U,M;while(++Y<$.length)if($[Y][0]==="enter"&&$[Y][1].type==="attentionSequence"&&$[Y][1]._close){J=Y;while(J--)if($[J][0]==="exit"&&$[J][1].type==="attentionSequence"&&$[J][1]._open&&G.sliceSerialize($[J][1]).charCodeAt(0)===G.sliceSerialize($[Y][1]).charCodeAt(0)){if(($[J][1]._close||$[Y][1]._open)&&($[Y][1].end.offset-$[Y][1].start.offset)%3&&!(($[J][1].end.offset-$[J][1].start.offset+$[Y][1].end.offset-$[Y][1].start.offset)%3))continue;V=$[J][1].end.offset-$[J][1].start.offset>1&&$[Y][1].end.offset-$[Y][1].start.offset>1?2:1;let R={...$[J][1].end},z={...$[Y][1].start};if(v8(R,-V),v8(z,V),W={type:V>1?D.strongSequence:D.emphasisSequence,start:R,end:{...$[J][1].end}},H={type:V>1?D.strongSequence:D.emphasisSequence,start:{...$[Y][1].start},end:z},q={type:V>1?D.strongText:D.emphasisText,start:{...$[J][1].end},end:{...$[Y][1].start}},X={type:V>1?D.strong:D.emphasis,start:{...W.start},end:{...H.end}},$[J][1].end={...W.start},$[Y][1].start={...H.end},U=[],$[J][1].end.offset-$[J][1].start.offset)U=E1(U,[["enter",$[J][1],G],["exit",$[J][1],G]]);if(U=E1(U,[["enter",X,G],["enter",W,G],["exit",W,G],["enter",q,G]]),A(G.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),U=E1(U,P0(G.parser.constructs.insideSpan.null,$.slice(J+1,Y),G)),U=E1(U,[["exit",q,G],["enter",H,G],["exit",H,G],["exit",X,G]]),$[Y][1].end.offset-$[Y][1].start.offset)M=2,U=E1(U,[["enter",$[Y][1],G],["exit",$[Y][1],G]]);else M=0;F1($,J-1,Y-J+3,U),Y=J+U.length-M-2;break}}Y=-1;while(++Y<$.length)if($[Y][1].type==="attentionSequence")$[Y][1].type="data";return $}function CH($,G){let Y=this.parser.constructs.attentionMarkers.null,J=this.previous,X=L0(J),q;return W;function W(V){return A(V===Q.asterisk||V===Q.underscore,"expected asterisk or underscore"),q=V,$.enter("attentionSequence"),H(V)}function H(V){if(V===q)return $.consume(V),H;let U=$.exit("attentionSequence"),M=L0(V);A(Y,"expected `attentionMarkers` to be populated");let R=!M||M===j.characterGroupPunctuation&&X||Y.includes(V),z=!X||X===j.characterGroupPunctuation&&M||Y.includes(J);return U._open=Boolean(q===Q.asterisk?R:R&&(X||!z)),U._close=Boolean(q===Q.asterisk?z:z&&(M||!R)),G(V)}}function v8($,G){$.column+=G,$.offset+=G,$._bufferIndex+=G}var $6={name:"autolink",tokenize:bH};function bH($,G,Y){let J=0;return X;function X(K){return A(K===Q.lessThan,"expected `<`"),$.enter(D.autolink),$.enter(D.autolinkMarker),$.consume(K),$.exit(D.autolinkMarker),$.enter(D.autolinkProtocol),q}function q(K){if(h1(K))return $.consume(K),W;if(K===Q.atSign)return Y(K);return U(K)}function W(K){if(K===Q.plusSign||K===Q.dash||K===Q.dot||Z1(K))return J=1,H(K);return U(K)}function H(K){if(K===Q.colon)return $.consume(K),J=0,V;if((K===Q.plusSign||K===Q.dash||K===Q.dot||Z1(K))&&J++<j.autolinkSchemeSizeMax)return $.consume(K),H;return J=0,U(K)}function V(K){if(K===Q.greaterThan)return $.exit(D.autolinkProtocol),$.enter(D.autolinkMarker),$.consume(K),$.exit(D.autolinkMarker),$.exit(D.autolink),G;if(K===Q.eof||K===Q.space||K===Q.lessThan||G4(K))return Y(K);return $.consume(K),V}function U(K){if(K===Q.atSign)return $.consume(K),M;if(T8(K))return $.consume(K),U;return Y(K)}function M(K){return Z1(K)?R(K):Y(K)}function R(K){if(K===Q.dot)return $.consume(K),J=0,M;if(K===Q.greaterThan)return $.exit(D.autolinkProtocol).type=D.autolinkEmail,$.enter(D.autolinkMarker),$.consume(K),$.exit(D.autolinkMarker),$.exit(D.autolink),G;return z(K)}function z(K){if((K===Q.dash||Z1(K))&&J++<j.autolinkDomainSizeMax){let Z=K===Q.dash?z:R;return $.consume(K),Z}return Y(K)}}var B2={partial:!0,tokenize:xH};function xH($,G,Y){return J;function J(q){return p(q)?l($,X,D.linePrefix)(q):X(q)}function X(q){return q===Q.eof||S(q)?G(q):Y(q)}}var m4={continuation:{tokenize:kH},exit:gH,name:"blockQuote",tokenize:hH};function hH($,G,Y){let J=this;return X;function X(W){if(W===Q.greaterThan){let H=J.containerState;if(A(H,"expected `containerState` to be defined in container"),!H.open)$.enter(D.blockQuote,{_container:!0}),H.open=!0;return $.enter(D.blockQuotePrefix),$.enter(D.blockQuoteMarker),$.consume(W),$.exit(D.blockQuoteMarker),q}return Y(W)}function q(W){if(p(W))return $.enter(D.blockQuotePrefixWhitespace),$.consume(W),$.exit(D.blockQuotePrefixWhitespace),$.exit(D.blockQuotePrefix),G;return $.exit(D.blockQuotePrefix),G(W)}}function kH($,G,Y){let J=this;return X;function X(W){if(p(W))return A(J.parser.constructs.disable.null,"expected `disable.null` to be populated"),l($,q,D.linePrefix,J.parser.constructs.disable.null.includes("codeIndented")?void 0:j.tabSize)(W);return q(W)}function q(W){return $.attempt(m4,G,Y)(W)}}function gH($){$.exit(D.blockQuote)}var f4={name:"characterEscape",tokenize:vH};function vH($,G,Y){return J;function J(q){return A(q===Q.backslash,"expected `\\`"),$.enter(D.characterEscape),$.enter(D.escapeMarker),$.consume(q),$.exit(D.escapeMarker),X}function X(q){if(C8(q))return $.enter(D.characterEscapeValue),$.consume(q),$.exit(D.characterEscapeValue),$.exit(D.characterEscape),G;return Y(q)}}var p4={name:"characterReference",tokenize:yH};function yH($,G,Y){let J=this,X=0,q,W;return H;function H(R){return A(R===Q.ampersand,"expected `&`"),$.enter(D.characterReference),$.enter(D.characterReferenceMarker),$.consume(R),$.exit(D.characterReferenceMarker),V}function V(R){if(R===Q.numberSign)return $.enter(D.characterReferenceMarkerNumeric),$.consume(R),$.exit(D.characterReferenceMarkerNumeric),U;return $.enter(D.characterReferenceValue),q=j.characterReferenceNamedSizeMax,W=Z1,M(R)}function U(R){if(R===Q.uppercaseX||R===Q.lowercaseX)return $.enter(D.characterReferenceMarkerHexadecimal),$.consume(R),$.exit(D.characterReferenceMarkerHexadecimal),$.enter(D.characterReferenceValue),q=j.characterReferenceHexadecimalSizeMax,W=I8,M;return $.enter(D.characterReferenceValue),q=j.characterReferenceDecimalSizeMax,W=Y4,M(R)}function M(R){if(R===Q.semicolon&&X){let z=$.exit(D.characterReferenceValue);if(W===Z1&&!j0(J.sliceSerialize(z)))return Y(R);return $.enter(D.characterReferenceMarker),$.consume(R),$.exit(D.characterReferenceMarker),$.exit(D.characterReference),G}if(W(R)&&X++<q)return $.consume(R),M;return Y(R)}}var y8={partial:!0,tokenize:fH},u4={concrete:!0,name:"codeFenced",tokenize:mH};function mH($,G,Y){let J=this,X={partial:!0,tokenize:G1},q=0,W=0,H;return V;function V(B){return U(B)}function U(B){A(B===Q.graveAccent||B===Q.tilde,"expected `` ` `` or `~`");let e=J.events[J.events.length-1];return q=e&&e[1].type===D.linePrefix?e[2].sliceSerialize(e[1],!0).length:0,H=B,$.enter(D.codeFenced),$.enter(D.codeFencedFence),$.enter(D.codeFencedFenceSequence),M(B)}function M(B){if(B===H)return W++,$.consume(B),M;if(W<j.codeFencedSequenceSizeMin)return Y(B);return $.exit(D.codeFencedFenceSequence),p(B)?l($,R,D.whitespace)(B):R(B)}function R(B){if(B===Q.eof||S(B))return $.exit(D.codeFencedFence),J.interrupt?G(B):$.check(y8,T,s)(B);return $.enter(D.codeFencedFenceInfo),$.enter(D.chunkString,{contentType:j.contentTypeString}),z(B)}function z(B){if(B===Q.eof||S(B))return $.exit(D.chunkString),$.exit(D.codeFencedFenceInfo),R(B);if(p(B))return $.exit(D.chunkString),$.exit(D.codeFencedFenceInfo),l($,K,D.whitespace)(B);if(B===Q.graveAccent&&B===H)return Y(B);return $.consume(B),z}function K(B){if(B===Q.eof||S(B))return R(B);return $.enter(D.codeFencedFenceMeta),$.enter(D.chunkString,{contentType:j.contentTypeString}),Z(B)}function Z(B){if(B===Q.eof||S(B))return $.exit(D.chunkString),$.exit(D.codeFencedFenceMeta),R(B);if(B===Q.graveAccent&&B===H)return Y(B);return $.consume(B),Z}function T(B){return A(S(B),"expected eol"),$.attempt(X,s,I)(B)}function I(B){return A(S(B),"expected eol"),$.enter(D.lineEnding),$.consume(B),$.exit(D.lineEnding),P}function P(B){return q>0&&p(B)?l($,a,D.linePrefix,q+1)(B):a(B)}function a(B){if(B===Q.eof||S(B))return $.check(y8,T,s)(B);return $.enter(D.codeFlowValue),g(B)}function g(B){if(B===Q.eof||S(B))return $.exit(D.codeFlowValue),a(B);return $.consume(B),g}function s(B){return $.exit(D.codeFenced),G(B)}function G1(B,e,J1){let n=0;return Y1;function Y1(c){return A(S(c),"expected eol"),B.enter(D.lineEnding),B.consume(c),B.exit(D.lineEnding),g1}function g1(c){return A(J.parser.constructs.disable.null,"expected `disable.null` to be populated"),B.enter(D.codeFencedFence),p(c)?l(B,$1,D.linePrefix,J.parser.constructs.disable.null.includes("codeIndented")?void 0:j.tabSize)(c):$1(c)}function $1(c){if(c===H)return B.enter(D.codeFencedFenceSequence),x(c);return J1(c)}function x(c){if(c===H)return n++,B.consume(c),x;if(n>=W)return B.exit(D.codeFencedFenceSequence),p(c)?l(B,u,D.whitespace)(c):u(c);return J1(c)}function u(c){if(c===Q.eof||S(c))return B.exit(D.codeFencedFence),e(c);return J1(c)}}}function fH($,G,Y){let J=this;return X;function X(W){if(W===Q.eof)return Y(W);return A(S(W),"expected eol"),$.enter(D.lineEnding),$.consume(W),$.exit(D.lineEnding),q}function q(W){return J.parser.lazy[J.now().line]?Y(W):G(W)}}var X4={name:"codeIndented",tokenize:uH},pH={partial:!0,tokenize:lH};function uH($,G,Y){let J=this;return X;function X(U){return A(p(U)),$.enter(D.codeIndented),l($,q,D.linePrefix,j.tabSize+1)(U)}function q(U){let M=J.events[J.events.length-1];return M&&M[1].type===D.linePrefix&&M[2].sliceSerialize(M[1],!0).length>=j.tabSize?W(U):Y(U)}function W(U){if(U===Q.eof)return V(U);if(S(U))return $.attempt(pH,W,V)(U);return $.enter(D.codeFlowValue),H(U)}function H(U){if(U===Q.eof||S(U))return $.exit(D.codeFlowValue),W(U);return $.consume(U),H}function V(U){return $.exit(D.codeIndented),G(U)}}function lH($,G,Y){let J=this;return X;function X(W){if(J.parser.lazy[J.now().line])return Y(W);if(S(W))return $.enter(D.lineEnding),$.consume(W),$.exit(D.lineEnding),X;return l($,q,D.linePrefix,j.tabSize+1)(W)}function q(W){let H=J.events[J.events.length-1];return H&&H[1].type===D.linePrefix&&H[2].sliceSerialize(H[1],!0).length>=j.tabSize?G(W):S(W)?X(W):Y(W)}}var G6={name:"codeText",previous:m8,resolve:rH,tokenize:cH};function rH($){let G=$.length-4,Y=3,J,X;if(($[Y][1].type===D.lineEnding||$[Y][1].type==="space")&&($[G][1].type===D.lineEnding||$[G][1].type==="space")){J=Y;while(++J<G)if($[J][1].type===D.codeTextData){$[Y][1].type=D.codeTextPadding,$[G][1].type=D.codeTextPadding,Y+=2,G-=2;break}}J=Y-1,G++;while(++J<=G)if(X===void 0){if(J!==G&&$[J][1].type!==D.lineEnding)X=J}else if(J===G||$[J][1].type===D.lineEnding){if($[X][1].type=D.codeTextData,J!==X+2)$[X][1].end=$[J-1][1].end,$.splice(X+2,J-X-2),G-=J-X-2,J=X+2;X=void 0}return $}function m8($){return $!==Q.graveAccent||this.events[this.events.length-1][1].type===D.characterEscape}function cH($,G,Y){let J=this,X=0,q,W;return H;function H(z){return A(z===Q.graveAccent,"expected `` ` ``"),A(m8.call(J,J.previous),"expected correct previous"),$.enter(D.codeText),$.enter(D.codeTextSequence),V(z)}function V(z){if(z===Q.graveAccent)return $.consume(z),X++,V;return $.exit(D.codeTextSequence),U(z)}function U(z){if(z===Q.eof)return Y(z);if(z===Q.space)return $.enter("space"),$.consume(z),$.exit("space"),U;if(z===Q.graveAccent)return W=$.enter(D.codeTextSequence),q=0,R(z);if(S(z))return $.enter(D.lineEnding),$.consume(z),$.exit(D.lineEnding),U;return $.enter(D.codeTextData),M(z)}function M(z){if(z===Q.eof||z===Q.space||z===Q.graveAccent||S(z))return $.exit(D.codeTextData),U(z);return $.consume(z),M}function R(z){if(z===Q.graveAccent)return $.consume(z),q++,R;if(q===X)return $.exit(D.codeTextSequence),$.exit(D.codeText),G(z);return W.type=D.codeTextData,M(z)}}class Y6{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($,G){let Y=G===null||G===void 0?Number.POSITIVE_INFINITY:G;if(Y<this.left.length)return this.left.slice($,Y);if($>this.left.length)return this.right.slice(this.right.length-Y+this.left.length,this.right.length-$+this.left.length).reverse();return this.left.slice($).concat(this.right.slice(this.right.length-Y+this.left.length).reverse())}splice($,G,Y){let J=G||0;this.setCursor(Math.trunc($));let X=this.right.splice(this.right.length-J,Number.POSITIVE_INFINITY);if(Y)q4(this.left,Y);return X.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),q4(this.left,$)}unshift($){this.setCursor(0),this.right.push($)}unshiftMany($){this.setCursor(0),q4(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 G=this.left.splice($,Number.POSITIVE_INFINITY);q4(this.right,G.reverse())}else{let G=this.right.splice(this.left.length+this.right.length-$,Number.POSITIVE_INFINITY);q4(this.left,G.reverse())}}}function q4($,G){let Y=0;if(G.length<j.v8MaxSafeChunkSize)$.push(...G);else while(Y<G.length)$.push(...G.slice(Y,Y+j.v8MaxSafeChunkSize)),Y+=j.v8MaxSafeChunkSize}function l4($){let G={},Y=-1,J,X,q,W,H,V,U,M=new Y6($);while(++Y<M.length){while(Y in G)Y=G[Y];if(J=M.get(Y),Y&&J[1].type===D.chunkFlow&&M.get(Y-1)[1].type===D.listItemPrefix){if(A(J[1]._tokenizer,"expected `_tokenizer` on subtokens"),V=J[1]._tokenizer.events,q=0,q<V.length&&V[q][1].type===D.lineEndingBlank)q+=2;if(q<V.length&&V[q][1].type===D.content)while(++q<V.length){if(V[q][1].type===D.content)break;if(V[q][1].type===D.chunkText)V[q][1]._isInFirstContentOfListItem=!0,q++}}if(J[0]==="enter"){if(J[1].contentType)Object.assign(G,dH(M,Y)),Y=G[Y],U=!0}else if(J[1]._container){q=Y,X=void 0;while(q--)if(W=M.get(q),W[1].type===D.lineEnding||W[1].type===D.lineEndingBlank){if(W[0]==="enter"){if(X)M.get(X)[1].type=D.lineEndingBlank;W[1].type=D.lineEnding,X=q}}else if(W[1].type===D.linePrefix||W[1].type===D.listItemIndent);else break;if(X)J[1].end={...M.get(X)[1].start},H=M.slice(X,Y),H.unshift(J),M.splice(X,Y-X+1,H)}}return F1($,0,Number.POSITIVE_INFINITY,M.slice(0)),!U}function dH($,G){let Y=$.get(G)[1],J=$.get(G)[2],X=G-1,q=[];A(Y.contentType,"expected `contentType` on subtokens");let W=Y._tokenizer;if(!W){if(W=J.parser[Y.contentType](Y.start),Y._contentTypeTextTrailing)W._contentTypeTextTrailing=!0}let H=W.events,V=[],U={},M,R,z=-1,K=Y,Z=0,T=0,I=[T];while(K){while($.get(++X)[1]!==K);if(A(!R||K.previous===R,"expected previous to match"),A(!R||R.next===K,"expected next to match"),q.push(X),!K._tokenizer){if(M=J.sliceStream(K),!K.next)M.push(Q.eof);if(R)W.defineSkip(K.start);if(K._isInFirstContentOfListItem)W._gfmTasklistFirstContentOfListItem=!0;if(W.write(M),K._isInFirstContentOfListItem)W._gfmTasklistFirstContentOfListItem=void 0}R=K,K=K.next}K=Y;while(++z<H.length)if(H[z][0]==="exit"&&H[z-1][0]==="enter"&&H[z][1].type===H[z-1][1].type&&H[z][1].start.line!==H[z][1].end.line)A(K,"expected a current token"),T=z+1,I.push(T),K._tokenizer=void 0,K.previous=void 0,K=K.next;if(W.events=[],K)K._tokenizer=void 0,K.previous=void 0,A(!K.next,"expected no next token");else I.pop();z=I.length;while(z--){let P=H.slice(I[z],I[z+1]),a=q.pop();A(a!==void 0,"expected a start position when splicing"),V.push([a,a+P.length-1]),$.splice(a,2,P)}V.reverse(),z=-1;while(++z<V.length)U[Z+V[z][0]]=Z+V[z][1],Z+=V[z][1]-V[z][0]-1;return U}var J6={resolve:oH,tokenize:nH},iH={partial:!0,tokenize:aH};function oH($){return l4($),$}function nH($,G){let Y;return J;function J(H){return A(H!==Q.eof&&!S(H),"expected no eof or eol"),$.enter(D.content),Y=$.enter(D.chunkContent,{contentType:j.contentTypeContent}),X(H)}function X(H){if(H===Q.eof)return q(H);if(S(H))return $.check(iH,W,q)(H);return $.consume(H),X}function q(H){return $.exit(D.chunkContent),$.exit(D.content),G(H)}function W(H){return A(S(H),"expected eol"),$.consume(H),$.exit(D.chunkContent),A(Y,"expected previous token"),Y.next=$.enter(D.chunkContent,{contentType:j.contentTypeContent,previous:Y}),Y=Y.next,X}}function aH($,G,Y){let J=this;return X;function X(W){return A(S(W),"expected a line ending"),$.exit(D.chunkContent),$.enter(D.lineEnding),$.consume(W),$.exit(D.lineEnding),l($,q,D.linePrefix)}function q(W){if(W===Q.eof||S(W))return Y(W);A(J.parser.constructs.disable.null,"expected `disable.null` to be populated");let H=J.events[J.events.length-1];if(!J.parser.constructs.disable.null.includes("codeIndented")&&H&&H[1].type===D.linePrefix&&H[2].sliceSerialize(H[1],!0).length>=j.tabSize)return G(W);return $.interrupt(J.parser.constructs.flow,Y,G)(W)}}function r4($,G,Y,J,X,q,W,H,V){let U=V||Number.POSITIVE_INFINITY,M=0;return R;function R(P){if(P===Q.lessThan)return $.enter(J),$.enter(X),$.enter(q),$.consume(P),$.exit(q),z;if(P===Q.eof||P===Q.space||P===Q.rightParenthesis||G4(P))return Y(P);return $.enter(J),$.enter(W),$.enter(H),$.enter(D.chunkString,{contentType:j.contentTypeString}),T(P)}function z(P){if(P===Q.greaterThan)return $.enter(q),$.consume(P),$.exit(q),$.exit(X),$.exit(J),G;return $.enter(H),$.enter(D.chunkString,{contentType:j.contentTypeString}),K(P)}function K(P){if(P===Q.greaterThan)return $.exit(D.chunkString),$.exit(H),z(P);if(P===Q.eof||P===Q.lessThan||S(P))return Y(P);return $.consume(P),P===Q.backslash?Z:K}function Z(P){if(P===Q.lessThan||P===Q.greaterThan||P===Q.backslash)return $.consume(P),K;return K(P)}function T(P){if(!M&&(P===Q.eof||P===Q.rightParenthesis||H1(P)))return $.exit(D.chunkString),$.exit(H),$.exit(W),$.exit(J),G(P);if(M<U&&P===Q.leftParenthesis)return $.consume(P),M++,T;if(P===Q.rightParenthesis)return $.consume(P),M--,T;if(P===Q.eof||P===Q.space||P===Q.leftParenthesis||G4(P))return Y(P);return $.consume(P),P===Q.backslash?I:T}function I(P){if(P===Q.leftParenthesis||P===Q.rightParenthesis||P===Q.backslash)return $.consume(P),T;return T(P)}}function c4($,G,Y,J,X,q){let W=this,H=0,V;return U;function U(K){return A(K===Q.leftSquareBracket,"expected `[`"),$.enter(J),$.enter(X),$.consume(K),$.exit(X),$.enter(q),M}function M(K){if(H>j.linkReferenceSizeMax||K===Q.eof||K===Q.leftSquareBracket||K===Q.rightSquareBracket&&!V||K===Q.caret&&!H&&"_hiddenFootnoteSupport"in W.parser.constructs)return Y(K);if(K===Q.rightSquareBracket)return $.exit(q),$.enter(X),$.consume(K),$.exit(X),$.exit(J),G;if(S(K))return $.enter(D.lineEnding),$.consume(K),$.exit(D.lineEnding),M;return $.enter(D.chunkString,{contentType:j.contentTypeString}),R(K)}function R(K){if(K===Q.eof||K===Q.leftSquareBracket||K===Q.rightSquareBracket||S(K)||H++>j.linkReferenceSizeMax)return $.exit(D.chunkString),M(K);if($.consume(K),!V)V=!p(K);return K===Q.backslash?z:R}function z(K){if(K===Q.leftSquareBracket||K===Q.backslash||K===Q.rightSquareBracket)return $.consume(K),H++,R;return R(K)}}function d4($,G,Y,J,X,q){let W;return H;function H(z){if(z===Q.quotationMark||z===Q.apostrophe||z===Q.leftParenthesis)return $.enter(J),$.enter(X),$.consume(z),$.exit(X),W=z===Q.leftParenthesis?Q.rightParenthesis:z,V;return Y(z)}function V(z){if(z===W)return $.enter(X),$.consume(z),$.exit(X),$.exit(J),G;return $.enter(q),U(z)}function U(z){if(z===W)return $.exit(q),V(W);if(z===Q.eof)return Y(z);if(S(z))return $.enter(D.lineEnding),$.consume(z),$.exit(D.lineEnding),l($,U,D.linePrefix);return $.enter(D.chunkString,{contentType:j.contentTypeString}),M(z)}function M(z){if(z===W||z===Q.eof||S(z))return $.exit(D.chunkString),U(z);return $.consume(z),z===Q.backslash?R:M}function R(z){if(z===W||z===Q.backslash)return $.consume(z),M;return M(z)}}function u2($,G){let Y;return J;function J(X){if(S(X))return $.enter(D.lineEnding),$.consume(X),$.exit(D.lineEnding),Y=!0,J;if(p(X))return l($,J,Y?D.linePrefix:D.lineSuffix)(X);return G(X)}}var X6={name:"definition",tokenize:tH},sH={partial:!0,tokenize:eH};function tH($,G,Y){let J=this,X;return q;function q(K){return $.enter(D.definition),W(K)}function W(K){return A(K===Q.leftSquareBracket,"expected `[`"),c4.call(J,$,H,Y,D.definitionLabel,D.definitionLabelMarker,D.definitionLabelString)(K)}function H(K){if(X=M2(J.sliceSerialize(J.events[J.events.length-1][1]).slice(1,-1)),K===Q.colon)return $.enter(D.definitionMarker),$.consume(K),$.exit(D.definitionMarker),V;return Y(K)}function V(K){return H1(K)?u2($,U)(K):U(K)}function U(K){return r4($,M,Y,D.definitionDestination,D.definitionDestinationLiteral,D.definitionDestinationLiteralMarker,D.definitionDestinationRaw,D.definitionDestinationString)(K)}function M(K){return $.attempt(sH,R,R)(K)}function R(K){return p(K)?l($,z,D.whitespace)(K):z(K)}function z(K){if(K===Q.eof||S(K))return $.exit(D.definition),J.parser.defined.push(X),G(K);return Y(K)}}function eH($,G,Y){return J;function J(H){return H1(H)?u2($,X)(H):Y(H)}function X(H){return d4($,q,Y,D.definitionTitle,D.definitionTitleMarker,D.definitionTitleString)(H)}function q(H){return p(H)?l($,W,D.whitespace)(H):W(H)}function W(H){return H===Q.eof||S(H)?G(H):Y(H)}}var q6={name:"hardBreakEscape",tokenize:$V};function $V($,G,Y){return J;function J(q){return A(q===Q.backslash,"expected `\\`"),$.enter(D.hardBreakEscape),$.consume(q),X}function X(q){if(S(q))return $.exit(D.hardBreakEscape),G(q);return Y(q)}}var W6={name:"headingAtx",resolve:GV,tokenize:YV};function GV($,G){let Y=$.length-2,J=3,X,q;if($[J][1].type===D.whitespace)J+=2;if(Y-2>J&&$[Y][1].type===D.whitespace)Y-=2;if($[Y][1].type===D.atxHeadingSequence&&(J===Y-1||Y-4>J&&$[Y-2][1].type===D.whitespace))Y-=J+1===Y?2:4;if(Y>J)X={type:D.atxHeadingText,start:$[J][1].start,end:$[Y][1].end},q={type:D.chunkText,start:$[J][1].start,end:$[Y][1].end,contentType:j.contentTypeText},F1($,J,Y-J+1,[["enter",X,G],["enter",q,G],["exit",q,G],["exit",X,G]]);return $}function YV($,G,Y){let J=0;return X;function X(M){return $.enter(D.atxHeading),q(M)}function q(M){return A(M===Q.numberSign,"expected `#`"),$.enter(D.atxHeadingSequence),W(M)}function W(M){if(M===Q.numberSign&&J++<j.atxHeadingOpeningFenceSizeMax)return $.consume(M),W;if(M===Q.eof||H1(M))return $.exit(D.atxHeadingSequence),H(M);return Y(M)}function H(M){if(M===Q.numberSign)return $.enter(D.atxHeadingSequence),V(M);if(M===Q.eof||S(M))return $.exit(D.atxHeading),G(M);if(p(M))return l($,H,D.whitespace)(M);return $.enter(D.atxHeadingText),U(M)}function V(M){if(M===Q.numberSign)return $.consume(M),V;return $.exit(D.atxHeadingSequence),H(M)}function U(M){if(M===Q.eof||M===Q.numberSign||H1(M))return $.exit(D.atxHeadingText),H(M);return $.consume(M),U}}var f8=["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"],H6=["pre","script","style","textarea"];var V6={concrete:!0,name:"htmlFlow",resolveTo:qV,tokenize:WV},JV={partial:!0,tokenize:VV},XV={partial:!0,tokenize:HV};function qV($){let G=$.length;while(G--)if($[G][0]==="enter"&&$[G][1].type===D.htmlFlow)break;if(G>1&&$[G-2][1].type===D.linePrefix)$[G][1].start=$[G-2][1].start,$[G+1][1].start=$[G-2][1].start,$.splice(G-2,2);return $}function WV($,G,Y){let J=this,X,q,W,H,V;return U;function U(F){return M(F)}function M(F){return A(F===Q.lessThan,"expected `<`"),$.enter(D.htmlFlow),$.enter(D.htmlFlowData),$.consume(F),R}function R(F){if(F===Q.exclamationMark)return $.consume(F),z;if(F===Q.slash)return $.consume(F),q=!0,T;if(F===Q.questionMark)return $.consume(F),X=j.htmlInstruction,J.interrupt?G:O;if(h1(F))return A(F!==null),$.consume(F),W=String.fromCharCode(F),I;return Y(F)}function z(F){if(F===Q.dash)return $.consume(F),X=j.htmlComment,K;if(F===Q.leftSquareBracket)return $.consume(F),X=j.htmlCdata,H=0,Z;if(h1(F))return $.consume(F),X=j.htmlDeclaration,J.interrupt?G:O;return Y(F)}function K(F){if(F===Q.dash)return $.consume(F),J.interrupt?G:O;return Y(F)}function Z(F){let I1=j.cdataOpeningString;if(F===I1.charCodeAt(H++)){if($.consume(F),H===I1.length)return J.interrupt?G:$1;return Z}return Y(F)}function T(F){if(h1(F))return A(F!==null),$.consume(F),W=String.fromCharCode(F),I;return Y(F)}function I(F){if(F===Q.eof||F===Q.slash||F===Q.greaterThan||H1(F)){let I1=F===Q.slash,P2=W.toLowerCase();if(!I1&&!q&&H6.includes(P2))return X=j.htmlRaw,J.interrupt?G(F):$1(F);if(f8.includes(W.toLowerCase())){if(X=j.htmlBasic,I1)return $.consume(F),P;return J.interrupt?G(F):$1(F)}return X=j.htmlComplete,J.interrupt&&!J.parser.lazy[J.now().line]?Y(F):q?a(F):g(F)}if(F===Q.dash||Z1(F))return $.consume(F),W+=String.fromCharCode(F),I;return Y(F)}function P(F){if(F===Q.greaterThan)return $.consume(F),J.interrupt?G:$1;return Y(F)}function a(F){if(p(F))return $.consume(F),a;return Y1(F)}function g(F){if(F===Q.slash)return $.consume(F),Y1;if(F===Q.colon||F===Q.underscore||h1(F))return $.consume(F),s;if(p(F))return $.consume(F),g;return Y1(F)}function s(F){if(F===Q.dash||F===Q.dot||F===Q.colon||F===Q.underscore||Z1(F))return $.consume(F),s;return G1(F)}function G1(F){if(F===Q.equalsTo)return $.consume(F),B;if(p(F))return $.consume(F),G1;return g(F)}function B(F){if(F===Q.eof||F===Q.lessThan||F===Q.equalsTo||F===Q.greaterThan||F===Q.graveAccent)return Y(F);if(F===Q.quotationMark||F===Q.apostrophe)return $.consume(F),V=F,e;if(p(F))return $.consume(F),B;return J1(F)}function e(F){if(F===V)return $.consume(F),V=null,n;if(F===Q.eof||S(F))return Y(F);return $.consume(F),e}function J1(F){if(F===Q.eof||F===Q.quotationMark||F===Q.apostrophe||F===Q.slash||F===Q.lessThan||F===Q.equalsTo||F===Q.greaterThan||F===Q.graveAccent||H1(F))return G1(F);return $.consume(F),J1}function n(F){if(F===Q.slash||F===Q.greaterThan||p(F))return g(F);return Y(F)}function Y1(F){if(F===Q.greaterThan)return $.consume(F),g1;return Y(F)}function g1(F){if(F===Q.eof||S(F))return $1(F);if(p(F))return $.consume(F),g1;return Y(F)}function $1(F){if(F===Q.dash&&X===j.htmlComment)return $.consume(F),q1;if(F===Q.lessThan&&X===j.htmlRaw)return $.consume(F),D1;if(F===Q.greaterThan&&X===j.htmlDeclaration)return $.consume(F),y1;if(F===Q.questionMark&&X===j.htmlInstruction)return $.consume(F),O;if(F===Q.rightSquareBracket&&X===j.htmlCdata)return $.consume(F),n1;if(S(F)&&(X===j.htmlBasic||X===j.htmlComplete))return $.exit(D.htmlFlowData),$.check(JV,G2,x)(F);if(F===Q.eof||S(F))return $.exit(D.htmlFlowData),x(F);return $.consume(F),$1}function x(F){return $.check(XV,u,G2)(F)}function u(F){return A(S(F)),$.enter(D.lineEnding),$.consume(F),$.exit(D.lineEnding),c}function c(F){if(F===Q.eof||S(F))return x(F);return $.enter(D.htmlFlowData),$1(F)}function q1(F){if(F===Q.dash)return $.consume(F),O;return $1(F)}function D1(F){if(F===Q.slash)return $.consume(F),W="",v1;return $1(F)}function v1(F){if(F===Q.greaterThan){let I1=W.toLowerCase();if(H6.includes(I1))return $.consume(F),y1;return $1(F)}if(h1(F)&&W.length<j.htmlRawSizeMax)return A(F!==null),$.consume(F),W+=String.fromCharCode(F),v1;return $1(F)}function n1(F){if(F===Q.rightSquareBracket)return $.consume(F),O;return $1(F)}function O(F){if(F===Q.greaterThan)return $.consume(F),y1;if(F===Q.dash&&X===j.htmlComment)return $.consume(F),O;return $1(F)}function y1(F){if(F===Q.eof||S(F))return $.exit(D.htmlFlowData),G2(F);return $.consume(F),y1}function G2(F){return $.exit(D.htmlFlow),G(F)}}function HV($,G,Y){let J=this;return X;function X(W){if(S(W))return $.enter(D.lineEnding),$.consume(W),$.exit(D.lineEnding),q;return Y(W)}function q(W){return J.parser.lazy[J.now().line]?Y(W):G(W)}}function VV($,G,Y){return J;function J(X){return A(S(X),"expected a line ending"),$.enter(D.lineEnding),$.consume(X),$.exit(D.lineEnding),$.attempt(B2,G,Y)}}var U6={name:"htmlText",tokenize:UV};function UV($,G,Y){let J=this,X,q,W;return H;function H(O){return A(O===Q.lessThan,"expected `<`"),$.enter(D.htmlText),$.enter(D.htmlTextData),$.consume(O),V}function V(O){if(O===Q.exclamationMark)return $.consume(O),U;if(O===Q.slash)return $.consume(O),G1;if(O===Q.questionMark)return $.consume(O),g;if(h1(O))return $.consume(O),J1;return Y(O)}function U(O){if(O===Q.dash)return $.consume(O),M;if(O===Q.leftSquareBracket)return $.consume(O),q=0,Z;if(h1(O))return $.consume(O),a;return Y(O)}function M(O){if(O===Q.dash)return $.consume(O),K;return Y(O)}function R(O){if(O===Q.eof)return Y(O);if(O===Q.dash)return $.consume(O),z;if(S(O))return W=R,D1(O);return $.consume(O),R}function z(O){if(O===Q.dash)return $.consume(O),K;return R(O)}function K(O){return O===Q.greaterThan?q1(O):O===Q.dash?z(O):R(O)}function Z(O){let y1=j.cdataOpeningString;if(O===y1.charCodeAt(q++))return $.consume(O),q===y1.length?T:Z;return Y(O)}function T(O){if(O===Q.eof)return Y(O);if(O===Q.rightSquareBracket)return $.consume(O),I;if(S(O))return W=T,D1(O);return $.consume(O),T}function I(O){if(O===Q.rightSquareBracket)return $.consume(O),P;return T(O)}function P(O){if(O===Q.greaterThan)return q1(O);if(O===Q.rightSquareBracket)return $.consume(O),P;return T(O)}function a(O){if(O===Q.eof||O===Q.greaterThan)return q1(O);if(S(O))return W=a,D1(O);return $.consume(O),a}function g(O){if(O===Q.eof)return Y(O);if(O===Q.questionMark)return $.consume(O),s;if(S(O))return W=g,D1(O);return $.consume(O),g}function s(O){return O===Q.greaterThan?q1(O):g(O)}function G1(O){if(h1(O))return $.consume(O),B;return Y(O)}function B(O){if(O===Q.dash||Z1(O))return $.consume(O),B;return e(O)}function e(O){if(S(O))return W=e,D1(O);if(p(O))return $.consume(O),e;return q1(O)}function J1(O){if(O===Q.dash||Z1(O))return $.consume(O),J1;if(O===Q.slash||O===Q.greaterThan||H1(O))return n(O);return Y(O)}function n(O){if(O===Q.slash)return $.consume(O),q1;if(O===Q.colon||O===Q.underscore||h1(O))return $.consume(O),Y1;if(S(O))return W=n,D1(O);if(p(O))return $.consume(O),n;return q1(O)}function Y1(O){if(O===Q.dash||O===Q.dot||O===Q.colon||O===Q.underscore||Z1(O))return $.consume(O),Y1;return g1(O)}function g1(O){if(O===Q.equalsTo)return $.consume(O),$1;if(S(O))return W=g1,D1(O);if(p(O))return $.consume(O),g1;return n(O)}function $1(O){if(O===Q.eof||O===Q.lessThan||O===Q.equalsTo||O===Q.greaterThan||O===Q.graveAccent)return Y(O);if(O===Q.quotationMark||O===Q.apostrophe)return $.consume(O),X=O,x;if(S(O))return W=$1,D1(O);if(p(O))return $.consume(O),$1;return $.consume(O),u}function x(O){if(O===X)return $.consume(O),X=void 0,c;if(O===Q.eof)return Y(O);if(S(O))return W=x,D1(O);return $.consume(O),x}function u(O){if(O===Q.eof||O===Q.quotationMark||O===Q.apostrophe||O===Q.lessThan||O===Q.equalsTo||O===Q.graveAccent)return Y(O);if(O===Q.slash||O===Q.greaterThan||H1(O))return n(O);return $.consume(O),u}function c(O){if(O===Q.slash||O===Q.greaterThan||H1(O))return n(O);return Y(O)}function q1(O){if(O===Q.greaterThan)return $.consume(O),$.exit(D.htmlTextData),$.exit(D.htmlText),G;return Y(O)}function D1(O){return A(W,"expected return state"),A(S(O),"expected eol"),$.exit(D.htmlTextData),$.enter(D.lineEnding),$.consume(O),$.exit(D.lineEnding),v1}function v1(O){return A(J.parser.constructs.disable.null,"expected `disable.null` to be populated"),p(O)?l($,n1,D.linePrefix,J.parser.constructs.disable.null.includes("codeIndented")?void 0:j.tabSize)(O):n1(O)}function n1(O){return $.enter(D.htmlTextData),W(O)}}var l2={name:"labelEnd",resolveAll:RV,resolveTo:KV,tokenize:zV},MV={tokenize:AV},DV={tokenize:OV},QV={tokenize:FV};function RV($){let G=-1,Y=[];while(++G<$.length){let J=$[G][1];if(Y.push($[G]),J.type===D.labelImage||J.type===D.labelLink||J.type===D.labelEnd){let X=J.type===D.labelImage?4:2;J.type=D.data,G+=X}}if($.length!==Y.length)F1($,0,$.length,Y);return $}function KV($,G){let Y=$.length,J=0,X,q,W,H;while(Y--)if(X=$[Y][1],q){if(X.type===D.link||X.type===D.labelLink&&X._inactive)break;if($[Y][0]==="enter"&&X.type===D.labelLink)X._inactive=!0}else if(W){if($[Y][0]==="enter"&&(X.type===D.labelImage||X.type===D.labelLink)&&!X._balanced){if(q=Y,X.type!==D.labelLink){J=2;break}}}else if(X.type===D.labelEnd)W=Y;A(q!==void 0,"`open` is supposed to be found"),A(W!==void 0,"`close` is supposed to be found");let V={type:$[q][1].type===D.labelLink?D.link:D.image,start:{...$[q][1].start},end:{...$[$.length-1][1].end}},U={type:D.label,start:{...$[q][1].start},end:{...$[W][1].end}},M={type:D.labelText,start:{...$[q+J+2][1].end},end:{...$[W-2][1].start}};return H=[["enter",V,G],["enter",U,G]],H=E1(H,$.slice(q+1,q+J+3)),H=E1(H,[["enter",M,G]]),A(G.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),H=E1(H,P0(G.parser.constructs.insideSpan.null,$.slice(q+J+4,W-3),G)),H=E1(H,[["exit",M,G],$[W-2],$[W-1],["exit",U,G]]),H=E1(H,$.slice(W+1)),H=E1(H,[["exit",V,G]]),F1($,q,$.length,H),$}function zV($,G,Y){let J=this,X=J.events.length,q,W;while(X--)if((J.events[X][1].type===D.labelImage||J.events[X][1].type===D.labelLink)&&!J.events[X][1]._balanced){q=J.events[X][1];break}return H;function H(z){if(A(z===Q.rightSquareBracket,"expected `]`"),!q)return Y(z);if(q._inactive)return R(z);return W=J.parser.defined.includes(M2(J.sliceSerialize({start:q.end,end:J.now()}))),$.enter(D.labelEnd),$.enter(D.labelMarker),$.consume(z),$.exit(D.labelMarker),$.exit(D.labelEnd),V}function V(z){if(z===Q.leftParenthesis)return $.attempt(MV,M,W?M:R)(z);if(z===Q.leftSquareBracket)return $.attempt(DV,M,W?U:R)(z);return W?M(z):R(z)}function U(z){return $.attempt(QV,M,R)(z)}function M(z){return G(z)}function R(z){return q._balanced=!0,Y(z)}}function AV($,G,Y){return J;function J(R){return A(R===Q.leftParenthesis,"expected left paren"),$.enter(D.resource),$.enter(D.resourceMarker),$.consume(R),$.exit(D.resourceMarker),X}function X(R){return H1(R)?u2($,q)(R):q(R)}function q(R){if(R===Q.rightParenthesis)return M(R);return r4($,W,H,D.resourceDestination,D.resourceDestinationLiteral,D.resourceDestinationLiteralMarker,D.resourceDestinationRaw,D.resourceDestinationString,j.linkResourceDestinationBalanceMax)(R)}function W(R){return H1(R)?u2($,V)(R):M(R)}function H(R){return Y(R)}function V(R){if(R===Q.quotationMark||R===Q.apostrophe||R===Q.leftParenthesis)return d4($,U,Y,D.resourceTitle,D.resourceTitleMarker,D.resourceTitleString)(R);return M(R)}function U(R){return H1(R)?u2($,M)(R):M(R)}function M(R){if(R===Q.rightParenthesis)return $.enter(D.resourceMarker),$.consume(R),$.exit(D.resourceMarker),$.exit(D.resource),G;return Y(R)}}function OV($,G,Y){let J=this;return X;function X(H){return A(H===Q.leftSquareBracket,"expected left bracket"),c4.call(J,$,q,W,D.reference,D.referenceMarker,D.referenceString)(H)}function q(H){return J.parser.defined.includes(M2(J.sliceSerialize(J.events[J.events.length-1][1]).slice(1,-1)))?G(H):Y(H)}function W(H){return Y(H)}}function FV($,G,Y){return J;function J(q){return A(q===Q.leftSquareBracket,"expected left bracket"),$.enter(D.reference),$.enter(D.referenceMarker),$.consume(q),$.exit(D.referenceMarker),X}function X(q){if(q===Q.rightSquareBracket)return $.enter(D.referenceMarker),$.consume(q),$.exit(D.referenceMarker),$.exit(D.reference),G;return Y(q)}}var M6={name:"labelStartImage",resolveAll:l2.resolveAll,tokenize:_V};function _V($,G,Y){let J=this;return X;function X(H){return A(H===Q.exclamationMark,"expected `!`"),$.enter(D.labelImage),$.enter(D.labelImageMarker),$.consume(H),$.exit(D.labelImageMarker),q}function q(H){if(H===Q.leftSquareBracket)return $.enter(D.labelMarker),$.consume(H),$.exit(D.labelMarker),$.exit(D.labelImage),W;return Y(H)}function W(H){return H===Q.caret&&"_hiddenFootnoteSupport"in J.parser.constructs?Y(H):G(H)}}var D6={name:"labelStartLink",resolveAll:l2.resolveAll,tokenize:wV};function wV($,G,Y){let J=this;return X;function X(W){return A(W===Q.leftSquareBracket,"expected `[`"),$.enter(D.labelLink),$.enter(D.labelMarker),$.consume(W),$.exit(D.labelMarker),$.exit(D.labelLink),q}function q(W){return W===Q.caret&&"_hiddenFootnoteSupport"in J.parser.constructs?Y(W):G(W)}}var W4={name:"lineEnding",tokenize:BV};function BV($,G){return Y;function Y(J){return A(S(J),"expected eol"),$.enter(D.lineEnding),$.consume(J),$.exit(D.lineEnding),l($,G,D.linePrefix)}}var r2={name:"thematicBreak",tokenize:NV};function NV($,G,Y){let J=0,X;return q;function q(U){return $.enter(D.thematicBreak),W(U)}function W(U){return A(U===Q.asterisk||U===Q.dash||U===Q.underscore,"expected `*`, `-`, or `_`"),X=U,H(U)}function H(U){if(U===X)return $.enter(D.thematicBreakSequence),V(U);if(J>=j.thematicBreakMarkerCountMin&&(U===Q.eof||S(U)))return $.exit(D.thematicBreak),G(U);return Y(U)}function V(U){if(U===X)return $.consume(U),J++,V;return $.exit(D.thematicBreakSequence),p(U)?l($,H,D.whitespace)(U):H(U)}}var N1={continuation:{tokenize:EV},exit:SV,name:"list",tokenize:PV},jV={partial:!0,tokenize:TV},LV={partial:!0,tokenize:ZV};function PV($,G,Y){let J=this,X=J.events[J.events.length-1],q=X&&X[1].type===D.linePrefix?X[2].sliceSerialize(X[1],!0).length:0,W=0;return H;function H(K){A(J.containerState,"expected state");let Z=J.containerState.type||(K===Q.asterisk||K===Q.plusSign||K===Q.dash?D.listUnordered:D.listOrdered);if(Z===D.listUnordered?!J.containerState.marker||K===J.containerState.marker:Y4(K)){if(!J.containerState.type)J.containerState.type=Z,$.enter(Z,{_container:!0});if(Z===D.listUnordered)return $.enter(D.listItemPrefix),K===Q.asterisk||K===Q.dash?$.check(r2,Y,U)(K):U(K);if(!J.interrupt||K===Q.digit1)return $.enter(D.listItemPrefix),$.enter(D.listItemValue),V(K)}return Y(K)}function V(K){if(A(J.containerState,"expected state"),Y4(K)&&++W<j.listItemValueSizeMax)return $.consume(K),V;if((!J.interrupt||W<2)&&(J.containerState.marker?K===J.containerState.marker:K===Q.rightParenthesis||K===Q.dot))return $.exit(D.listItemValue),U(K);return Y(K)}function U(K){return A(J.containerState,"expected state"),A(K!==Q.eof,"eof (`null`) is not a marker"),$.enter(D.listItemMarker),$.consume(K),$.exit(D.listItemMarker),J.containerState.marker=J.containerState.marker||K,$.check(B2,J.interrupt?Y:M,$.attempt(jV,z,R))}function M(K){return A(J.containerState,"expected state"),J.containerState.initialBlankLine=!0,q++,z(K)}function R(K){if(p(K))return $.enter(D.listItemPrefixWhitespace),$.consume(K),$.exit(D.listItemPrefixWhitespace),z;return Y(K)}function z(K){return A(J.containerState,"expected state"),J.containerState.size=q+J.sliceSerialize($.exit(D.listItemPrefix),!0).length,G(K)}}function EV($,G,Y){let J=this;return A(J.containerState,"expected state"),J.containerState._closeFlow=void 0,$.check(B2,X,q);function X(H){return A(J.containerState,"expected state"),A(typeof J.containerState.size==="number","expected size"),J.containerState.furtherBlankLines=J.containerState.furtherBlankLines||J.containerState.initialBlankLine,l($,G,D.listItemIndent,J.containerState.size+1)(H)}function q(H){if(A(J.containerState,"expected state"),J.containerState.furtherBlankLines||!p(H))return J.containerState.furtherBlankLines=void 0,J.containerState.initialBlankLine=void 0,W(H);return J.containerState.furtherBlankLines=void 0,J.containerState.initialBlankLine=void 0,$.attempt(LV,G,W)(H)}function W(H){return A(J.containerState,"expected state"),J.containerState._closeFlow=!0,J.interrupt=void 0,A(J.parser.constructs.disable.null,"expected `disable.null` to be populated"),l($,$.attempt(N1,G,Y),D.linePrefix,J.parser.constructs.disable.null.includes("codeIndented")?void 0:j.tabSize)(H)}}function ZV($,G,Y){let J=this;return A(J.containerState,"expected state"),A(typeof J.containerState.size==="number","expected size"),l($,X,D.listItemIndent,J.containerState.size+1);function X(q){A(J.containerState,"expected state");let W=J.events[J.events.length-1];return W&&W[1].type===D.listItemIndent&&W[2].sliceSerialize(W[1],!0).length===J.containerState.size?G(q):Y(q)}}function SV($){A(this.containerState,"expected state"),A(typeof this.containerState.type==="string","expected type"),$.exit(this.containerState.type)}function TV($,G,Y){let J=this;return A(J.parser.constructs.disable.null,"expected `disable.null` to be populated"),l($,X,D.listItemPrefixWhitespace,J.parser.constructs.disable.null.includes("codeIndented")?void 0:j.tabSize+1);function X(q){let W=J.events[J.events.length-1];return!p(q)&&W&&W[1].type===D.listItemPrefixWhitespace?G(q):Y(q)}}var i4={name:"setextUnderline",resolveTo:IV,tokenize:CV};function IV($,G){let Y=$.length,J,X,q;while(Y--)if($[Y][0]==="enter"){if($[Y][1].type===D.content){J=Y;break}if($[Y][1].type===D.paragraph)X=Y}else{if($[Y][1].type===D.content)$.splice(Y,1);if(!q&&$[Y][1].type===D.definition)q=Y}A(X!==void 0,"expected a `text` index to be found"),A(J!==void 0,"expected a `text` index to be found"),A($[J][2]===G,"enter context should be same"),A($[$.length-1][2]===G,"enter context should be same");let W={type:D.setextHeading,start:{...$[J][1].start},end:{...$[$.length-1][1].end}};if($[X][1].type=D.setextHeadingText,q)$.splice(X,0,["enter",W,G]),$.splice(q+1,0,["exit",$[J][1],G]),$[J][1].end={...$[q][1].end};else $[J][1]=W;return $.push(["exit",W,G]),$}function CV($,G,Y){let J=this,X;return q;function q(U){let M=J.events.length,R;A(U===Q.dash||U===Q.equalsTo,"expected `=` or `-`");while(M--)if(J.events[M][1].type!==D.lineEnding&&J.events[M][1].type!==D.linePrefix&&J.events[M][1].type!==D.content){R=J.events[M][1].type===D.paragraph;break}if(!J.parser.lazy[J.now().line]&&(J.interrupt||R))return $.enter(D.setextHeadingLine),X=U,W(U);return Y(U)}function W(U){return $.enter(D.setextHeadingLineSequence),H(U)}function H(U){if(U===X)return $.consume(U),H;return $.exit(D.setextHeadingLineSequence),p(U)?l($,V,D.lineSuffix)(U):V(U)}function V(U){if(U===Q.eof||S(U))return $.exit(D.setextHeadingLine),G(U);return Y(U)}}var p8={tokenize:bV};function bV($){let G=this,Y=$.attempt(B2,J,$.attempt(this.parser.constructs.flowInitial,X,l($,$.attempt(this.parser.constructs.flow,X,$.attempt(J6,X)),D.linePrefix)));return Y;function J(q){if(A(q===Q.eof||S(q),"expected eol or eof"),q===Q.eof){$.consume(q);return}return $.enter(D.lineEndingBlank),$.consume(q),$.exit(D.lineEndingBlank),G.currentConstruct=void 0,Y}function X(q){if(A(q===Q.eof||S(q),"expected eol or eof"),q===Q.eof){$.consume(q);return}return $.enter(D.lineEnding),$.consume(q),$.exit(D.lineEnding),G.currentConstruct=void 0,Y}}var u8={resolveAll:d8()},l8=c8("string"),r8=c8("text");function c8($){return{resolveAll:d8($==="text"?xV:void 0),tokenize:G};function G(Y){let J=this,X=this.parser.constructs[$],q=Y.attempt(X,W,H);return W;function W(M){return U(M)?q(M):H(M)}function H(M){if(M===Q.eof){Y.consume(M);return}return Y.enter(D.data),Y.consume(M),V}function V(M){if(U(M))return Y.exit(D.data),q(M);return Y.consume(M),V}function U(M){if(M===Q.eof)return!0;let R=X[M],z=-1;if(R){A(Array.isArray(R),"expected `disable.null` to be populated");while(++z<R.length){let K=R[z];if(!K.previous||K.previous.call(J,J.previous))return!0}}return!1}}}function d8($){return G;function G(Y,J){let X=-1,q;while(++X<=Y.length)if(q===void 0){if(Y[X]&&Y[X][1].type===D.data)q=X,X++}else if(!Y[X]||Y[X][1].type!==D.data){if(X!==q+2)Y[q][1].end=Y[X-1][1].end,Y.splice(q+2,X-q-2),X=q+2;q=void 0}return $?$(Y,J):Y}}function xV($,G){let Y=0;while(++Y<=$.length)if((Y===$.length||$[Y][1].type===D.lineEnding)&&$[Y-1][1].type===D.data){let J=$[Y-1][1],X=G.sliceStream(J),q=X.length,W=-1,H=0,V;while(q--){let U=X[q];if(typeof U==="string"){W=U.length;while(U.charCodeAt(W-1)===Q.space)H++,W--;if(W)break;W=-1}else if(U===Q.horizontalTab)V=!0,H++;else if(U===Q.virtualSpace);else{q++;break}}if(G._contentTypeTextTrailing&&Y===$.length)H=0;if(H){let U={type:Y===$.length||V||H<j.hardBreakPrefixSizeMin?D.lineSuffix:D.hardBreakTrailing,start:{_bufferIndex:q?W:J.start._bufferIndex+W,_index:J.start._index+q,line:J.end.line,column:J.end.column-H,offset:J.end.offset-H},end:{...J.end}};if(J.end={...U.start},J.start.offset===J.end.offset)Object.assign(J,U);else $.splice(Y,0,["enter",U,G],["exit",U,G]),Y+=2}Y++}return $}var Q6={};e6(Q6,{text:()=>mV,string:()=>yV,insideSpan:()=>fV,flowInitial:()=>gV,flow:()=>vV,document:()=>hV,disable:()=>uV,contentInitial:()=>kV,attentionMarkers:()=>pV});var hV={[Q.asterisk]:N1,[Q.plusSign]:N1,[Q.dash]:N1,[Q.digit0]:N1,[Q.digit1]:N1,[Q.digit2]:N1,[Q.digit3]:N1,[Q.digit4]:N1,[Q.digit5]:N1,[Q.digit6]:N1,[Q.digit7]:N1,[Q.digit8]:N1,[Q.digit9]:N1,[Q.greaterThan]:m4},kV={[Q.leftSquareBracket]:X6},gV={[Q.horizontalTab]:X4,[Q.virtualSpace]:X4,[Q.space]:X4},vV={[Q.numberSign]:W6,[Q.asterisk]:r2,[Q.dash]:[i4,r2],[Q.lessThan]:V6,[Q.equalsTo]:i4,[Q.underscore]:r2,[Q.graveAccent]:u4,[Q.tilde]:u4},yV={[Q.ampersand]:p4,[Q.backslash]:f4},mV={[Q.carriageReturn]:W4,[Q.lineFeed]:W4,[Q.carriageReturnLineFeed]:W4,[Q.exclamationMark]:M6,[Q.ampersand]:p4,[Q.asterisk]:J4,[Q.lessThan]:[$6,U6],[Q.leftSquareBracket]:D6,[Q.backslash]:[q6,f4],[Q.rightSquareBracket]:l2,[Q.underscore]:J4,[Q.graveAccent]:G6},fV={null:[J4,u8]},pV={null:[Q.asterisk,Q.underscore]},uV={null:[]};var VG=D4(HG(),1);var i2=VG.default("micromark");function UG($,G,Y){let J={_bufferIndex:-1,_index:0,line:Y&&Y.line||1,column:Y&&Y.column||1,offset:Y&&Y.offset||0},X={},q=[],W=[],H=[],V=!0,U={attempt:n(e),check:n(J1),consume:s,enter:G1,exit:B,interrupt:n(J1,{interrupt:!0})},M={code:Q.eof,containerState:{},defineSkip:P,events:[],now:I,parser:$,previous:Q.eof,sliceSerialize:Z,sliceStream:T,write:K},R=G.tokenize.call(M,U),z;if(G.resolveAll)q.push(G);return M;function K(x){if(W=E1(W,x),a(),W[W.length-1]!==Q.eof)return[];return Y1(G,0),M.events=P0(q,M.events,M),M.events}function Z(x,u){return EU(T(x),u)}function T(x){return PU(W,x)}function I(){let{_bufferIndex:x,_index:u,line:c,column:q1,offset:D1}=J;return{_bufferIndex:x,_index:u,line:c,column:q1,offset:D1}}function P(x){X[x.line]=x.column,$1(),i2("position: define skip: `%j`",J)}function a(){let x;while(J._index<W.length){let u=W[J._index];if(typeof u==="string"){if(x=J._index,J._bufferIndex<0)J._bufferIndex=0;while(J._index===x&&J._bufferIndex<u.length)g(u.charCodeAt(J._bufferIndex))}else g(u)}}function g(x){A(V===!0,"expected character to be consumed"),V=void 0,i2("main: passing `%s` to %s",x,R&&R.name),z=x,A(typeof R==="function","expected state"),R=R(x)}function s(x){if(A(x===z,"expected given code to equal expected code"),i2("consume: `%s`",x),A(V===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),A(x===null?M.events.length===0||M.events[M.events.length-1][0]==="exit":M.events[M.events.length-1][0]==="enter","expected last token to be open"),S(x))J.line++,J.column=1,J.offset+=x===Q.carriageReturnLineFeed?2:1,$1(),i2("position: after eol: `%j`",J);else if(x!==Q.virtualSpace)J.column++,J.offset++;if(J._bufferIndex<0)J._index++;else if(J._bufferIndex++,J._bufferIndex===W[J._index].length)J._bufferIndex=-1,J._index++;M.previous=x,V=!0}function G1(x,u){let c=u||{};return c.type=x,c.start=I(),A(typeof x==="string","expected string type"),A(x.length>0,"expected non-empty string"),i2("enter: `%s`",x),M.events.push(["enter",c,M]),H.push(c),c}function B(x){A(typeof x==="string","expected string type"),A(x.length>0,"expected non-empty string");let u=H.pop();return A(u,"cannot close w/o open tokens"),u.end=I(),A(x===u.type,"expected exit token to match current token"),A(!(u.start._index===u.end._index&&u.start._bufferIndex===u.end._bufferIndex),"expected non-empty token (`"+x+"`)"),i2("exit: `%s`",u.type),M.events.push(["exit",u,M]),u}function e(x,u){Y1(x,u.from)}function J1(x,u){u.restore()}function n(x,u){return c;function c(q1,D1,v1){let n1,O,y1,G2;return Array.isArray(q1)?I1(q1):("tokenize"in q1)?I1([q1]):F(q1);function F(Q1){return x0;function x0(Y2){let E2=Y2!==null&&Q1[Y2],a2=Y2!==null&&Q1.null,R5=[...Array.isArray(E2)?E2:E2?[E2]:[],...Array.isArray(a2)?a2:a2?[a2]:[]];return I1(R5)(Y2)}}function I1(Q1){if(n1=Q1,O=0,Q1.length===0)return A(v1,"expected `bogusState` to be given"),v1;return P2(Q1[O])}function P2(Q1){return x0;function x0(Y2){if(G2=g1(),y1=Q1,!Q1.partial)M.currentConstruct=Q1;if(A(M.parser.constructs.disable.null,"expected `disable.null` to be populated"),Q1.name&&M.parser.constructs.disable.null.includes(Q1.name))return M4(Y2);return Q1.tokenize.call(u?Object.assign(Object.create(M),u):M,U,Q5,M4)(Y2)}}function Q5(Q1){return A(Q1===z,"expected code"),V=!0,x(y1,G2),D1}function M4(Q1){if(A(Q1===z,"expected code"),V=!0,G2.restore(),++O<n1.length)return P2(n1[O]);return v1}}}function Y1(x,u){if(x.resolveAll&&!q.includes(x))q.push(x);if(x.resolve)F1(M.events,u,M.events.length-u,x.resolve(M.events.slice(u),M));if(x.resolveTo)M.events=x.resolveTo(M.events,M);A(x.partial||M.events.length===0||M.events[M.events.length-1][0]==="exit","expected last token to end")}function g1(){let x=I(),u=M.previous,c=M.currentConstruct,q1=M.events.length,D1=Array.from(H);return{from:q1,restore:v1};function v1(){J=x,M.previous=u,M.currentConstruct=c,M.events.length=q1,H=D1,$1(),i2("position: restore: `%j`",J)}}function $1(){if(J.line in X&&J.column<2)J.column=X[J.line],J.offset+=X[J.line]-1}}function PU($,G){let Y=G.start._index,J=G.start._bufferIndex,X=G.end._index,q=G.end._bufferIndex,W;if(Y===X)A(q>-1,"expected non-negative end buffer index"),A(J>-1,"expected non-negative start buffer index"),W=[$[Y].slice(J,q)];else{if(W=$.slice(Y,X),J>-1){let H=W[0];if(typeof H==="string")W[0]=H.slice(J);else A(J===0,"expected `startBufferIndex` to be `0`"),W.shift()}if(q>0)W.push($[X].slice(0,q))}return W}function EU($,G){let Y=-1,J=[],X;while(++Y<$.length){let q=$[Y],W;if(typeof q==="string")W=q;else switch(q){case Q.carriageReturn:{W=x1.cr;break}case Q.lineFeed:{W=x1.lf;break}case Q.carriageReturnLineFeed:{W=x1.cr+x1.lf;break}case Q.horizontalTab:{W=G?x1.space:x1.ht;break}case Q.virtualSpace:{if(!G&&X)continue;W=x1.space;break}default:A(typeof q==="number","expected number"),W=String.fromCharCode(q)}X=q===Q.horizontalTab,J.push(W)}return J.join("")}function O6($){let J={constructs:S8([Q6,...($||{}).extensions||[]]),content:X(h8),defined:[],document:X(g8),flow:X(p8),lazy:{},string:X(l8),text:X(r8)};return J;function X(q){return W;function W(H){return UG(J,q,H)}}}function F6($){while(!l4($));return $}var MG=/[\0\t\n\r]/g;function _6(){let $=1,G="",Y=!0,J;return X;function X(q,W,H){let V=[],U,M,R,z,K;if(q=G+(typeof q==="string"?q.toString():new TextDecoder(W||void 0).decode(q)),R=0,G="",Y){if(q.charCodeAt(0)===Q.byteOrderMarker)R++;Y=void 0}while(R<q.length){if(MG.lastIndex=R,U=MG.exec(q),z=U&&U.index!==void 0?U.index:q.length,K=q.charCodeAt(z),!U){G=q.slice(R);break}if(K===Q.lf&&R===z&&J)V.push(Q.carriageReturnLineFeed),J=void 0;else{if(J)V.push(Q.carriageReturn),J=void 0;if(R<z)V.push(q.slice(R,z)),$+=z-R;switch(K){case Q.nul:{V.push(Q.replacementCharacter),$++;break}case Q.ht:{M=Math.ceil($/j.tabSize)*j.tabSize,V.push(Q.horizontalTab);while($++<M)V.push(Q.virtualSpace);break}case Q.lf:{V.push(Q.lineFeed),$=1;break}default:J=!0,$=1}}R=z+1}if(H){if(J)V.push(Q.carriageReturn);if(G)V.push(G);V.push(Q.eof)}return V}}var ZU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t4($){return $.replace(ZU,SU)}function SU($,G,Y){if(G)return G;if(Y.charCodeAt(0)===Q.numberSign){let X=Y.charCodeAt(1),q=X===Q.lowercaseX||X===Q.uppercaseX;return y4(Y.slice(q?2:1),q?j.numericBaseHexadecimal:j.numericBaseDecimal)}return j0(Y)||$}function j2($){if(!$||typeof $!=="object")return"";if("position"in $||"type"in $)return DG($.position);if("start"in $||"end"in $)return DG($);if("line"in $||"column"in $)return w6($);return""}function w6($){return QG($&&$.line)+":"+QG($&&$.column)}function DG($){return w6($&&$.start)+"-"+w6($&&$.end)}function QG($){return $&&typeof $==="number"?$:1}var KG={}.hasOwnProperty;function B6($,G,Y){if(G&&typeof G==="object")Y=G,G=void 0;return TU(Y)(F6(O6(Y).document().write(_6()($,G,!0))))}function TU($){let G={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:q(s6),autolinkProtocol:n,autolinkEmail:n,atxHeading:q(o6),blockQuote:q(Y2),characterEscape:n,characterReference:n,codeFenced:q(E2),codeFencedFenceInfo:W,codeFencedFenceMeta:W,codeIndented:q(E2,W),codeText:q(a2,W),codeTextData:n,data:n,codeFlowValue:n,definition:q(R5),definitionDestinationString:W,definitionLabelString:W,definitionTitleString:W,emphasis:q(_Y),hardBreakEscape:q(n6),hardBreakTrailing:q(n6),htmlFlow:q(a6,W),htmlFlowData:n,htmlText:q(a6,W),htmlTextData:n,image:q(wY),label:W,link:q(s6),listItem:q(BY),listItemValue:z,listOrdered:q(t6,R),listUnordered:q(t6),paragraph:q(NY),reference:F,referenceString:W,resourceDestinationString:W,resourceTitleString:W,setextHeading:q(o6),strong:q(jY),thematicBreak:q(PY)},exit:{atxHeading:V(),atxHeadingSequence:G1,autolink:V(),autolinkEmail:x0,autolinkProtocol:Q1,blockQuote:V(),characterEscapeValue:Y1,characterReferenceMarkerHexadecimal:P2,characterReferenceMarkerNumeric:P2,characterReferenceValue:Q5,characterReference:M4,codeFenced:V(I),codeFencedFence:T,codeFencedFenceInfo:K,codeFencedFenceMeta:Z,codeFlowValue:Y1,codeIndented:V(P),codeText:V(c),codeTextData:Y1,data:Y1,definition:V(),definitionDestinationString:s,definitionLabelString:a,definitionTitleString:g,emphasis:V(),hardBreakEscape:V($1),hardBreakTrailing:V($1),htmlFlow:V(x),htmlFlowData:Y1,htmlText:V(u),htmlTextData:Y1,image:V(D1),label:n1,labelText:v1,lineEnding:g1,link:V(q1),listItem:V(),listOrdered:V(),listUnordered:V(),paragraph:V(),referenceString:I1,resourceDestinationString:O,resourceTitleString:y1,resource:G2,setextHeading:V(J1),setextHeadingLineSequence:e,setextHeadingText:B,strong:V(),thematicBreak:V()}};zG(G,($||{}).mdastExtensions||[]);let Y={};return J;function J(_){let w={type:"root",children:[]},h={stack:[w],tokenStack:[],config:G,enter:H,exit:U,buffer:W,resume:M,data:Y},i=[],t=-1;while(++t<_.length)if(_[t][1].type===D.listOrdered||_[t][1].type===D.listUnordered)if(_[t][0]==="enter")i.push(t);else{let S1=i.pop();A(typeof S1==="number","expected list to be open"),t=X(_,S1,t)}t=-1;while(++t<_.length){let S1=G[_[t][0]];if(KG.call(S1,_[t][1].type))S1[_[t][1].type].call(Object.assign({sliceSerialize:_[t][2].sliceSerialize},h),_[t][1])}if(h.tokenStack.length>0){let S1=h.tokenStack[h.tokenStack.length-1];(S1[1]||RG).call(h,void 0,S1[0])}w.position={start:L2(_.length>0?_[0][1].start:{line:1,column:1,offset:0}),end:L2(_.length>0?_[_.length-2][1].end:{line:1,column:1,offset:0})},t=-1;while(++t<G.transforms.length)w=G.transforms[t](w)||w;return w}function X(_,w,h){let i=w-1,t=-1,S1=!1,Z2,J2,h0,k0;while(++i<=h){let C1=_[i];switch(C1[1].type){case D.listUnordered:case D.listOrdered:case D.blockQuote:{if(C1[0]==="enter")t++;else t--;k0=void 0;break}case D.lineEndingBlank:{if(C1[0]==="enter"){if(Z2&&!k0&&!t&&!h0)h0=i;k0=void 0}break}case D.linePrefix:case D.listItemValue:case D.listItemMarker:case D.listItemPrefix:case D.listItemPrefixWhitespace:break;default:k0=void 0}if(!t&&C1[0]==="enter"&&C1[1].type===D.listItemPrefix||t===-1&&C1[0]==="exit"&&(C1[1].type===D.listUnordered||C1[1].type===D.listOrdered)){if(Z2){let s2=i;J2=void 0;while(s2--){let X2=_[s2];if(X2[1].type===D.lineEnding||X2[1].type===D.lineEndingBlank){if(X2[0]==="exit")continue;if(J2)_[J2][1].type=D.lineEndingBlank,S1=!0;X2[1].type=D.lineEnding,J2=s2}else if(X2[1].type===D.linePrefix||X2[1].type===D.blockQuotePrefix||X2[1].type===D.blockQuotePrefixWhitespace||X2[1].type===D.blockQuoteMarker||X2[1].type===D.listItemIndent);else break}if(h0&&(!J2||h0<J2))Z2._spread=!0;Z2.end=Object.assign({},J2?_[J2][1].start:C1[1].end),_.splice(J2||i,0,["exit",Z2,C1[2]]),i++,h++}if(C1[1].type===D.listItemPrefix){let s2={type:"listItem",_spread:!1,start:Object.assign({},C1[1].start),end:void 0};Z2=s2,_.splice(i,0,["enter",s2,C1[2]]),i++,h++,h0=void 0,k0=!0}}}return _[w][1]._spread=S1,h}function q(_,w){return h;function h(i){if(H.call(this,_(i),i),w)w.call(this,i)}}function W(){this.stack.push({type:"fragment",children:[]})}function H(_,w,h){let i=this.stack[this.stack.length-1];A(i,"expected `parent`"),A("children"in i,"expected `parent`"),i.children.push(_),this.stack.push(_),this.tokenStack.push([w,h||void 0]),_.position={start:L2(w.start),end:void 0}}function V(_){return w;function w(h){if(_)_.call(this,h);U.call(this,h)}}function U(_,w){let h=this.stack.pop();A(h,"expected `node`");let i=this.tokenStack.pop();if(!i)throw Error("Cannot close `"+_.type+"` ("+j2({start:_.start,end:_.end})+"): it\u2019s not open");else if(i[0].type!==_.type)if(w)w.call(this,_,i[0]);else(i[1]||RG).call(this,_,i[0]);A(h.type!=="fragment","unexpected fragment `exit`ed"),A(h.position,"expected `position` to be defined"),h.position.end=L2(_.end)}function M(){return p2(this.stack.pop())}function R(){this.data.expectingFirstListItemValue=!0}function z(_){if(this.data.expectingFirstListItemValue){let w=this.stack[this.stack.length-2];A(w,"expected nodes on stack"),A(w.type==="list","expected list on stack"),w.start=Number.parseInt(this.sliceSerialize(_),j.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function K(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="code","expected code on stack"),w.lang=_}function Z(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="code","expected code on stack"),w.meta=_}function T(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function I(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="code","expected code on stack"),w.value=_.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function P(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="code","expected code on stack"),w.value=_.replace(/(\r?\n|\r)$/g,"")}function a(_){let w=this.resume(),h=this.stack[this.stack.length-1];A(h,"expected node on stack"),A(h.type==="definition","expected definition on stack"),h.label=w,h.identifier=M2(this.sliceSerialize(_)).toLowerCase()}function g(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="definition","expected definition on stack"),w.title=_}function s(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="definition","expected definition on stack"),w.url=_}function G1(_){let w=this.stack[this.stack.length-1];if(A(w,"expected node on stack"),A(w.type==="heading","expected heading on stack"),!w.depth){let h=this.sliceSerialize(_).length;A(h===1||h===2||h===3||h===4||h===5||h===6,"expected `depth` between `1` and `6`"),w.depth=h}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function e(_){let w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="heading","expected heading on stack"),w.depth=this.sliceSerialize(_).codePointAt(0)===Q.equalsTo?1:2}function J1(){this.data.setextHeadingSlurpLineEnding=void 0}function n(_){let w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A("children"in w,"expected parent on stack");let h=w.children,i=h[h.length-1];if(!i||i.type!=="text")i=LY(),i.position={start:L2(_.start),end:void 0},h.push(i);this.stack.push(i)}function Y1(_){let w=this.stack.pop();A(w,"expected a `node` to be on the stack"),A("value"in w,"expected a `literal` to be on the stack"),A(w.position,"expected `node` to have an open position"),w.value+=this.sliceSerialize(_),w.position.end=L2(_.end)}function g1(_){let w=this.stack[this.stack.length-1];if(A(w,"expected `node`"),this.data.atHardBreak){A("children"in w,"expected `parent`");let h=w.children[w.children.length-1];A(h.position,"expected tail to have a starting position"),h.position.end=L2(_.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&G.canContainEols.includes(w.type))n.call(this,_),Y1.call(this,_)}function $1(){this.data.atHardBreak=!0}function x(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="html","expected html on stack"),w.value=_}function u(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="html","expected html on stack"),w.value=_}function c(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="inlineCode","expected inline code on stack"),w.value=_}function q1(){let _=this.stack[this.stack.length-1];if(A(_,"expected node on stack"),A(_.type==="link","expected link on stack"),this.data.inReference){let w=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=w,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function D1(){let _=this.stack[this.stack.length-1];if(A(_,"expected node on stack"),A(_.type==="image","expected image on stack"),this.data.inReference){let w=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=w,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function v1(_){let w=this.sliceSerialize(_),h=this.stack[this.stack.length-2];A(h,"expected ancestor on stack"),A(h.type==="image"||h.type==="link","expected image or link on stack"),h.label=t4(w),h.identifier=M2(w).toLowerCase()}function n1(){let _=this.stack[this.stack.length-1];A(_,"expected node on stack"),A(_.type==="fragment","expected fragment on stack");let w=this.resume(),h=this.stack[this.stack.length-1];if(A(h,"expected node on stack"),A(h.type==="image"||h.type==="link","expected image or link on stack"),this.data.inReference=!0,h.type==="link"){let i=_.children;h.children=i}else h.alt=w}function O(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="image"||w.type==="link","expected image or link on stack"),w.url=_}function y1(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="image"||w.type==="link","expected image or link on stack"),w.title=_}function G2(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function I1(_){let w=this.resume(),h=this.stack[this.stack.length-1];A(h,"expected node on stack"),A(h.type==="image"||h.type==="link","expected image reference or link reference on stack"),h.label=w,h.identifier=M2(this.sliceSerialize(_)).toLowerCase(),this.data.referenceType="full"}function P2(_){A(_.type==="characterReferenceMarkerNumeric"||_.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=_.type}function Q5(_){let w=this.sliceSerialize(_),h=this.data.characterReferenceType,i;if(h)i=y4(w,h===D.characterReferenceMarkerNumeric?j.numericBaseDecimal:j.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let S1=j0(w);A(S1!==!1,"expected reference to decode"),i=S1}let t=this.stack[this.stack.length-1];A(t,"expected `node`"),A("value"in t,"expected `node.value`"),t.value+=i}function M4(_){let w=this.stack.pop();A(w,"expected `node`"),A(w.position,"expected `node.position`"),w.position.end=L2(_.end)}function Q1(_){Y1.call(this,_);let w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="link","expected link on stack"),w.url=this.sliceSerialize(_)}function x0(_){Y1.call(this,_);let w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="link","expected link on stack"),w.url="mailto:"+this.sliceSerialize(_)}function Y2(){return{type:"blockquote",children:[]}}function E2(){return{type:"code",lang:null,meta:null,value:""}}function a2(){return{type:"inlineCode",value:""}}function R5(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _Y(){return{type:"emphasis",children:[]}}function o6(){return{type:"heading",depth:0,children:[]}}function n6(){return{type:"break"}}function a6(){return{type:"html",value:""}}function wY(){return{type:"image",title:null,url:"",alt:null}}function s6(){return{type:"link",title:null,url:"",children:[]}}function t6(_){return{type:"list",ordered:_.type==="listOrdered",start:null,spread:_._spread,children:[]}}function BY(_){return{type:"listItem",spread:_._spread,checked:null,children:[]}}function NY(){return{type:"paragraph",children:[]}}function jY(){return{type:"strong",children:[]}}function LY(){return{type:"text",value:""}}function PY(){return{type:"thematicBreak"}}}function L2($){return{line:$.line,column:$.column,offset:$.offset}}function zG($,G){let Y=-1;while(++Y<G.length){let J=G[Y];if(Array.isArray(J))zG($,J);else IU($,J)}}function IU($,G){let Y;for(Y in G)if(KG.call(G,Y))switch(Y){case"canContainEols":{let J=G[Y];if(J)$[Y].push(...J);break}case"transforms":{let J=G[Y];if(J)$[Y].push(...J);break}case"enter":case"exit":{let J=G[Y];if(J)Object.assign($[Y],J);break}}}function RG($,G){if($)throw Error("Cannot close `"+$.type+"` ("+j2({start:$.start,end:$.end})+"): a different token (`"+G.type+"`, "+j2({start:G.start,end:G.end})+") is open");else throw Error("Cannot close document, a token (`"+G.type+"`, "+j2({start:G.start,end:G.end})+") is still open")}function e4($){let G=this;G.parser=Y;function Y(J){return B6(J,{...G.data("settings"),...$,extensions:G.data("micromarkExtensions")||[],mdastExtensions:G.data("fromMarkdownExtensions")||[]})}}var AG={}.hasOwnProperty;function OG($,G){let Y=G||{};function J(X,...q){let{invalid:W,handlers:H}=J;if(X&&AG.call(X,$)){let V=String(X[$]);W=AG.call(H,V)?H[V]:J.unknown}if(W)return W.call(this,X,...q)}return J.handlers=Y.handlers||{},J.invalid=Y.invalid,J.unknown=Y.unknown,J}var CU={}.hasOwnProperty;function N6($,G){let Y=-1,J;if(G.extensions)while(++Y<G.extensions.length)N6($,G.extensions[Y]);for(J in G)if(CU.call(G,J))switch(J){case"extensions":break;case"unsafe":{FG($[J],G[J]);break}case"join":{FG($[J],G[J]);break}case"handlers":{bU($[J],G[J]);break}default:$.options[J]=G[J]}return $}function FG($,G){if(G)$.push(...G)}function bU($,G){if(G)Object.assign($,G)}function _G($,G,Y,J){let X=Y.enter("blockquote"),q=Y.createTracker(J);q.move("> "),q.shift(2);let W=Y.indentLines(Y.containerFlow($,q.current()),xU);return X(),W}function xU($,G,Y){return">"+(Y?"":" ")+$}function $5($,G){return wG($,G.inConstruct,!0)&&!wG($,G.notInConstruct,!1)}function wG($,G,Y){if(typeof G==="string")G=[G];if(!G||G.length===0)return Y;let J=-1;while(++J<G.length)if($.includes(G[J]))return!0;return!1}function j6($,G,Y,J){let X=-1;while(++X<Y.unsafe.length)if(Y.unsafe[X].character===`
|
|
59
|
+
`,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"};function F1($,G,Y,J){let X=$.length,q=0,W;if(G<0)G=-G>X?0:X+G;else G=G>X?X:G;if(Y=Y>0?Y:0,J.length<j.v8MaxSafeChunkSize)W=Array.from(J),W.unshift(G,Y),$.splice(...W);else{if(Y)$.splice(G,Y);while(q<J.length)W=J.slice(q,q+j.v8MaxSafeChunkSize),W.unshift(G,0),$.splice(...W),q+=j.v8MaxSafeChunkSize,G+=j.v8MaxSafeChunkSize}}function E1($,G){if($.length>0)return F1($,$.length,0,G),$;return G}var Z8={}.hasOwnProperty;function T8($){let G={},Y=-1;while(++Y<$.length)PH(G,$[Y]);return G}function PH($,G){let Y;for(Y in G){let X=(Z8.call($,Y)?$[Y]:void 0)||($[Y]={}),q=G[Y],W;if(q)for(W in q){if(!Z8.call(X,W))X[W]=[];let H=q[W];EH(X[W],Array.isArray(H)?H:H?[H]:[])}}}function EH($,G){let Y=-1,J=[];while(++Y<G.length)(G[Y].add==="after"?$:J).push(G[Y]);F1($,0,0,J)}function y4($,G){let Y=Number.parseInt($,G);if(Y<Q.ht||Y===Q.vt||Y>Q.cr&&Y<Q.space||Y>Q.tilde&&Y<160||Y>55295&&Y<57344||Y>64975&&Y<65008||(Y&65535)===65535||(Y&65535)===65534||Y>1114111)return x1.replacementCharacter;return String.fromCodePoint(Y)}function M2($){return $.replace(/[\t\n\r ]+/g,x1.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}var h1=w2(/[A-Za-z]/),Z1=w2(/[\dA-Za-z]/),S8=w2(/[#-'*+\--9=?A-Z^-~]/);function G4($){return $!==null&&($<Q.space||$===Q.del)}var Y4=w2(/\d/),I8=w2(/[\dA-Fa-f]/),C8=w2(/[!-/:-@[-`{-~]/);function T($){return $!==null&&$<Q.horizontalTab}function H1($){return $!==null&&($<Q.nul||$===Q.space)}function p($){return $===Q.horizontalTab||$===Q.virtualSpace||$===Q.space}var b8=w2(/\p{P}|\p{S}/u),x8=w2(/\s/);function w2($){return G;function G(Y){return Y!==null&&Y>-1&&$.test(String.fromCharCode(Y))}}function l($,G,Y,J){let X=J?J-1:Number.POSITIVE_INFINITY,q=0;return W;function W(V){if(p(V))return $.enter(Y),H(V);return G(V)}function H(V){if(p(V)&&q++<X)return $.consume(V),H;return $.exit(Y),G(V)}}var h8={tokenize:ZH};function ZH($){let G=$.attempt(this.parser.constructs.contentInitial,J,X),Y;return G;function J(H){if(A(H===Q.eof||T(H),"expected eol or eof"),H===Q.eof){$.consume(H);return}return $.enter(D.lineEnding),$.consume(H),$.exit(D.lineEnding),l($,G,D.linePrefix)}function X(H){return A(H!==Q.eof&&!T(H),"expected anything other than a line ending or EOF"),$.enter(D.paragraph),q(H)}function q(H){let V=$.enter(D.chunkText,{contentType:j.contentTypeText,previous:Y});if(Y)Y.next=V;return Y=V,W(H)}function W(H){if(H===Q.eof){$.exit(D.chunkText),$.exit(D.paragraph),$.consume(H);return}if(T(H))return $.consume(H),$.exit(D.chunkText),q;return $.consume(H),W}}var g8={tokenize:TH},k8={tokenize:SH};function TH($){let G=this,Y=[],J=0,X,q,W;return H;function H(g){if(J<Y.length){let s=Y[J];return G.containerState=s[1],A(s[0].continuation,"expected `continuation` to be defined on container construct"),$.attempt(s[0].continuation,V,U)(g)}return U(g)}function V(g){if(A(G.containerState,"expected `containerState` to be defined after continuation"),J++,G.containerState._closeFlow){if(G.containerState._closeFlow=void 0,X)a();let s=G.events.length,G1=s,B;while(G1--)if(G.events[G1][0]==="exit"&&G.events[G1][1].type===D.chunkFlow){B=G.events[G1][1].end;break}A(B,"could not find previous flow chunk"),P(J);let e=s;while(e<G.events.length)G.events[e][1].end={...B},e++;return F1(G.events,G1+1,0,G.events.slice(s)),G.events.length=e,U(g)}return H(g)}function U(g){if(J===Y.length){if(!X)return z(g);if(X.currentConstruct&&X.currentConstruct.concrete)return Z(g);G.interrupt=Boolean(X.currentConstruct&&!X._gfmTableDynamicInterruptHack)}return G.containerState={},$.check(k8,M,R)(g)}function M(g){if(X)a();return P(J),z(g)}function R(g){return G.parser.lazy[G.now().line]=J!==Y.length,W=G.now().offset,Z(g)}function z(g){return G.containerState={},$.attempt(k8,K,Z)(g)}function K(g){return A(G.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),A(G.containerState,"expected `containerState` to be defined on tokenizer"),J++,Y.push([G.currentConstruct,G.containerState]),z(g)}function Z(g){if(g===Q.eof){if(X)a();P(0),$.consume(g);return}return X=X||G.parser.flow(G.now()),$.enter(D.chunkFlow,{_tokenizer:X,contentType:j.contentTypeFlow,previous:q}),S(g)}function S(g){if(g===Q.eof){I($.exit(D.chunkFlow),!0),P(0),$.consume(g);return}if(T(g))return $.consume(g),I($.exit(D.chunkFlow)),J=0,G.interrupt=void 0,H;return $.consume(g),S}function I(g,s){A(X,"expected `childFlow` to be defined when continuing");let G1=G.sliceStream(g);if(s)G1.push(null);if(g.previous=q,q)q.next=g;if(q=g,X.defineSkip(g.start),X.write(G1),G.parser.lazy[g.start.line]){let B=X.events.length;while(B--)if(X.events[B][1].start.offset<W&&(!X.events[B][1].end||X.events[B][1].end.offset>W))return;let e=G.events.length,J1=e,n,Y1;while(J1--)if(G.events[J1][0]==="exit"&&G.events[J1][1].type===D.chunkFlow){if(n){Y1=G.events[J1][1].end;break}n=!0}A(Y1,"could not find previous flow chunk"),P(J),B=e;while(B<G.events.length)G.events[B][1].end={...Y1},B++;F1(G.events,J1+1,0,G.events.slice(e)),G.events.length=B}}function P(g){let s=Y.length;while(s-- >g){let G1=Y[s];G.containerState=G1[1],A(G1[0].exit,"expected `exit` to be defined on container construct"),G1[0].exit.call(G,$)}Y.length=g}function a(){A(G.containerState,"expected `containerState` to be defined when closing flow"),A(X,"expected `childFlow` to be defined when closing it"),X.write([Q.eof]),q=void 0,X=void 0,G.containerState._closeFlow=void 0}}function SH($,G,Y){return A(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),l($,$.attempt(this.parser.constructs.document,G,Y),D.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:j.tabSize)}function L0($){if($===Q.eof||H1($)||x8($))return j.characterGroupWhitespace;if(b8($))return j.characterGroupPunctuation}function P0($,G,Y){let J=[],X=-1;while(++X<$.length){let q=$[X].resolveAll;if(q&&!J.includes(q))G=q(G,Y),J.push(q)}return G}var J4={name:"attention",resolveAll:IH,tokenize:CH};function IH($,G){let Y=-1,J,X,q,W,H,V,U,M;while(++Y<$.length)if($[Y][0]==="enter"&&$[Y][1].type==="attentionSequence"&&$[Y][1]._close){J=Y;while(J--)if($[J][0]==="exit"&&$[J][1].type==="attentionSequence"&&$[J][1]._open&&G.sliceSerialize($[J][1]).charCodeAt(0)===G.sliceSerialize($[Y][1]).charCodeAt(0)){if(($[J][1]._close||$[Y][1]._open)&&($[Y][1].end.offset-$[Y][1].start.offset)%3&&!(($[J][1].end.offset-$[J][1].start.offset+$[Y][1].end.offset-$[Y][1].start.offset)%3))continue;V=$[J][1].end.offset-$[J][1].start.offset>1&&$[Y][1].end.offset-$[Y][1].start.offset>1?2:1;let R={...$[J][1].end},z={...$[Y][1].start};if(v8(R,-V),v8(z,V),W={type:V>1?D.strongSequence:D.emphasisSequence,start:R,end:{...$[J][1].end}},H={type:V>1?D.strongSequence:D.emphasisSequence,start:{...$[Y][1].start},end:z},q={type:V>1?D.strongText:D.emphasisText,start:{...$[J][1].end},end:{...$[Y][1].start}},X={type:V>1?D.strong:D.emphasis,start:{...W.start},end:{...H.end}},$[J][1].end={...W.start},$[Y][1].start={...H.end},U=[],$[J][1].end.offset-$[J][1].start.offset)U=E1(U,[["enter",$[J][1],G],["exit",$[J][1],G]]);if(U=E1(U,[["enter",X,G],["enter",W,G],["exit",W,G],["enter",q,G]]),A(G.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),U=E1(U,P0(G.parser.constructs.insideSpan.null,$.slice(J+1,Y),G)),U=E1(U,[["exit",q,G],["enter",H,G],["exit",H,G],["exit",X,G]]),$[Y][1].end.offset-$[Y][1].start.offset)M=2,U=E1(U,[["enter",$[Y][1],G],["exit",$[Y][1],G]]);else M=0;F1($,J-1,Y-J+3,U),Y=J+U.length-M-2;break}}Y=-1;while(++Y<$.length)if($[Y][1].type==="attentionSequence")$[Y][1].type="data";return $}function CH($,G){let Y=this.parser.constructs.attentionMarkers.null,J=this.previous,X=L0(J),q;return W;function W(V){return A(V===Q.asterisk||V===Q.underscore,"expected asterisk or underscore"),q=V,$.enter("attentionSequence"),H(V)}function H(V){if(V===q)return $.consume(V),H;let U=$.exit("attentionSequence"),M=L0(V);A(Y,"expected `attentionMarkers` to be populated");let R=!M||M===j.characterGroupPunctuation&&X||Y.includes(V),z=!X||X===j.characterGroupPunctuation&&M||Y.includes(J);return U._open=Boolean(q===Q.asterisk?R:R&&(X||!z)),U._close=Boolean(q===Q.asterisk?z:z&&(M||!R)),G(V)}}function v8($,G){$.column+=G,$.offset+=G,$._bufferIndex+=G}var $6={name:"autolink",tokenize:bH};function bH($,G,Y){let J=0;return X;function X(K){return A(K===Q.lessThan,"expected `<`"),$.enter(D.autolink),$.enter(D.autolinkMarker),$.consume(K),$.exit(D.autolinkMarker),$.enter(D.autolinkProtocol),q}function q(K){if(h1(K))return $.consume(K),W;if(K===Q.atSign)return Y(K);return U(K)}function W(K){if(K===Q.plusSign||K===Q.dash||K===Q.dot||Z1(K))return J=1,H(K);return U(K)}function H(K){if(K===Q.colon)return $.consume(K),J=0,V;if((K===Q.plusSign||K===Q.dash||K===Q.dot||Z1(K))&&J++<j.autolinkSchemeSizeMax)return $.consume(K),H;return J=0,U(K)}function V(K){if(K===Q.greaterThan)return $.exit(D.autolinkProtocol),$.enter(D.autolinkMarker),$.consume(K),$.exit(D.autolinkMarker),$.exit(D.autolink),G;if(K===Q.eof||K===Q.space||K===Q.lessThan||G4(K))return Y(K);return $.consume(K),V}function U(K){if(K===Q.atSign)return $.consume(K),M;if(S8(K))return $.consume(K),U;return Y(K)}function M(K){return Z1(K)?R(K):Y(K)}function R(K){if(K===Q.dot)return $.consume(K),J=0,M;if(K===Q.greaterThan)return $.exit(D.autolinkProtocol).type=D.autolinkEmail,$.enter(D.autolinkMarker),$.consume(K),$.exit(D.autolinkMarker),$.exit(D.autolink),G;return z(K)}function z(K){if((K===Q.dash||Z1(K))&&J++<j.autolinkDomainSizeMax){let Z=K===Q.dash?z:R;return $.consume(K),Z}return Y(K)}}var B2={partial:!0,tokenize:xH};function xH($,G,Y){return J;function J(q){return p(q)?l($,X,D.linePrefix)(q):X(q)}function X(q){return q===Q.eof||T(q)?G(q):Y(q)}}var m4={continuation:{tokenize:kH},exit:gH,name:"blockQuote",tokenize:hH};function hH($,G,Y){let J=this;return X;function X(W){if(W===Q.greaterThan){let H=J.containerState;if(A(H,"expected `containerState` to be defined in container"),!H.open)$.enter(D.blockQuote,{_container:!0}),H.open=!0;return $.enter(D.blockQuotePrefix),$.enter(D.blockQuoteMarker),$.consume(W),$.exit(D.blockQuoteMarker),q}return Y(W)}function q(W){if(p(W))return $.enter(D.blockQuotePrefixWhitespace),$.consume(W),$.exit(D.blockQuotePrefixWhitespace),$.exit(D.blockQuotePrefix),G;return $.exit(D.blockQuotePrefix),G(W)}}function kH($,G,Y){let J=this;return X;function X(W){if(p(W))return A(J.parser.constructs.disable.null,"expected `disable.null` to be populated"),l($,q,D.linePrefix,J.parser.constructs.disable.null.includes("codeIndented")?void 0:j.tabSize)(W);return q(W)}function q(W){return $.attempt(m4,G,Y)(W)}}function gH($){$.exit(D.blockQuote)}var f4={name:"characterEscape",tokenize:vH};function vH($,G,Y){return J;function J(q){return A(q===Q.backslash,"expected `\\`"),$.enter(D.characterEscape),$.enter(D.escapeMarker),$.consume(q),$.exit(D.escapeMarker),X}function X(q){if(C8(q))return $.enter(D.characterEscapeValue),$.consume(q),$.exit(D.characterEscapeValue),$.exit(D.characterEscape),G;return Y(q)}}var p4={name:"characterReference",tokenize:yH};function yH($,G,Y){let J=this,X=0,q,W;return H;function H(R){return A(R===Q.ampersand,"expected `&`"),$.enter(D.characterReference),$.enter(D.characterReferenceMarker),$.consume(R),$.exit(D.characterReferenceMarker),V}function V(R){if(R===Q.numberSign)return $.enter(D.characterReferenceMarkerNumeric),$.consume(R),$.exit(D.characterReferenceMarkerNumeric),U;return $.enter(D.characterReferenceValue),q=j.characterReferenceNamedSizeMax,W=Z1,M(R)}function U(R){if(R===Q.uppercaseX||R===Q.lowercaseX)return $.enter(D.characterReferenceMarkerHexadecimal),$.consume(R),$.exit(D.characterReferenceMarkerHexadecimal),$.enter(D.characterReferenceValue),q=j.characterReferenceHexadecimalSizeMax,W=I8,M;return $.enter(D.characterReferenceValue),q=j.characterReferenceDecimalSizeMax,W=Y4,M(R)}function M(R){if(R===Q.semicolon&&X){let z=$.exit(D.characterReferenceValue);if(W===Z1&&!j0(J.sliceSerialize(z)))return Y(R);return $.enter(D.characterReferenceMarker),$.consume(R),$.exit(D.characterReferenceMarker),$.exit(D.characterReference),G}if(W(R)&&X++<q)return $.consume(R),M;return Y(R)}}var y8={partial:!0,tokenize:fH},u4={concrete:!0,name:"codeFenced",tokenize:mH};function mH($,G,Y){let J=this,X={partial:!0,tokenize:G1},q=0,W=0,H;return V;function V(B){return U(B)}function U(B){A(B===Q.graveAccent||B===Q.tilde,"expected `` ` `` or `~`");let e=J.events[J.events.length-1];return q=e&&e[1].type===D.linePrefix?e[2].sliceSerialize(e[1],!0).length:0,H=B,$.enter(D.codeFenced),$.enter(D.codeFencedFence),$.enter(D.codeFencedFenceSequence),M(B)}function M(B){if(B===H)return W++,$.consume(B),M;if(W<j.codeFencedSequenceSizeMin)return Y(B);return $.exit(D.codeFencedFenceSequence),p(B)?l($,R,D.whitespace)(B):R(B)}function R(B){if(B===Q.eof||T(B))return $.exit(D.codeFencedFence),J.interrupt?G(B):$.check(y8,S,s)(B);return $.enter(D.codeFencedFenceInfo),$.enter(D.chunkString,{contentType:j.contentTypeString}),z(B)}function z(B){if(B===Q.eof||T(B))return $.exit(D.chunkString),$.exit(D.codeFencedFenceInfo),R(B);if(p(B))return $.exit(D.chunkString),$.exit(D.codeFencedFenceInfo),l($,K,D.whitespace)(B);if(B===Q.graveAccent&&B===H)return Y(B);return $.consume(B),z}function K(B){if(B===Q.eof||T(B))return R(B);return $.enter(D.codeFencedFenceMeta),$.enter(D.chunkString,{contentType:j.contentTypeString}),Z(B)}function Z(B){if(B===Q.eof||T(B))return $.exit(D.chunkString),$.exit(D.codeFencedFenceMeta),R(B);if(B===Q.graveAccent&&B===H)return Y(B);return $.consume(B),Z}function S(B){return A(T(B),"expected eol"),$.attempt(X,s,I)(B)}function I(B){return A(T(B),"expected eol"),$.enter(D.lineEnding),$.consume(B),$.exit(D.lineEnding),P}function P(B){return q>0&&p(B)?l($,a,D.linePrefix,q+1)(B):a(B)}function a(B){if(B===Q.eof||T(B))return $.check(y8,S,s)(B);return $.enter(D.codeFlowValue),g(B)}function g(B){if(B===Q.eof||T(B))return $.exit(D.codeFlowValue),a(B);return $.consume(B),g}function s(B){return $.exit(D.codeFenced),G(B)}function G1(B,e,J1){let n=0;return Y1;function Y1(c){return A(T(c),"expected eol"),B.enter(D.lineEnding),B.consume(c),B.exit(D.lineEnding),g1}function g1(c){return A(J.parser.constructs.disable.null,"expected `disable.null` to be populated"),B.enter(D.codeFencedFence),p(c)?l(B,$1,D.linePrefix,J.parser.constructs.disable.null.includes("codeIndented")?void 0:j.tabSize)(c):$1(c)}function $1(c){if(c===H)return B.enter(D.codeFencedFenceSequence),x(c);return J1(c)}function x(c){if(c===H)return n++,B.consume(c),x;if(n>=W)return B.exit(D.codeFencedFenceSequence),p(c)?l(B,u,D.whitespace)(c):u(c);return J1(c)}function u(c){if(c===Q.eof||T(c))return B.exit(D.codeFencedFence),e(c);return J1(c)}}}function fH($,G,Y){let J=this;return X;function X(W){if(W===Q.eof)return Y(W);return A(T(W),"expected eol"),$.enter(D.lineEnding),$.consume(W),$.exit(D.lineEnding),q}function q(W){return J.parser.lazy[J.now().line]?Y(W):G(W)}}var X4={name:"codeIndented",tokenize:uH},pH={partial:!0,tokenize:lH};function uH($,G,Y){let J=this;return X;function X(U){return A(p(U)),$.enter(D.codeIndented),l($,q,D.linePrefix,j.tabSize+1)(U)}function q(U){let M=J.events[J.events.length-1];return M&&M[1].type===D.linePrefix&&M[2].sliceSerialize(M[1],!0).length>=j.tabSize?W(U):Y(U)}function W(U){if(U===Q.eof)return V(U);if(T(U))return $.attempt(pH,W,V)(U);return $.enter(D.codeFlowValue),H(U)}function H(U){if(U===Q.eof||T(U))return $.exit(D.codeFlowValue),W(U);return $.consume(U),H}function V(U){return $.exit(D.codeIndented),G(U)}}function lH($,G,Y){let J=this;return X;function X(W){if(J.parser.lazy[J.now().line])return Y(W);if(T(W))return $.enter(D.lineEnding),$.consume(W),$.exit(D.lineEnding),X;return l($,q,D.linePrefix,j.tabSize+1)(W)}function q(W){let H=J.events[J.events.length-1];return H&&H[1].type===D.linePrefix&&H[2].sliceSerialize(H[1],!0).length>=j.tabSize?G(W):T(W)?X(W):Y(W)}}var G6={name:"codeText",previous:m8,resolve:rH,tokenize:cH};function rH($){let G=$.length-4,Y=3,J,X;if(($[Y][1].type===D.lineEnding||$[Y][1].type==="space")&&($[G][1].type===D.lineEnding||$[G][1].type==="space")){J=Y;while(++J<G)if($[J][1].type===D.codeTextData){$[Y][1].type=D.codeTextPadding,$[G][1].type=D.codeTextPadding,Y+=2,G-=2;break}}J=Y-1,G++;while(++J<=G)if(X===void 0){if(J!==G&&$[J][1].type!==D.lineEnding)X=J}else if(J===G||$[J][1].type===D.lineEnding){if($[X][1].type=D.codeTextData,J!==X+2)$[X][1].end=$[J-1][1].end,$.splice(X+2,J-X-2),G-=J-X-2,J=X+2;X=void 0}return $}function m8($){return $!==Q.graveAccent||this.events[this.events.length-1][1].type===D.characterEscape}function cH($,G,Y){let J=this,X=0,q,W;return H;function H(z){return A(z===Q.graveAccent,"expected `` ` ``"),A(m8.call(J,J.previous),"expected correct previous"),$.enter(D.codeText),$.enter(D.codeTextSequence),V(z)}function V(z){if(z===Q.graveAccent)return $.consume(z),X++,V;return $.exit(D.codeTextSequence),U(z)}function U(z){if(z===Q.eof)return Y(z);if(z===Q.space)return $.enter("space"),$.consume(z),$.exit("space"),U;if(z===Q.graveAccent)return W=$.enter(D.codeTextSequence),q=0,R(z);if(T(z))return $.enter(D.lineEnding),$.consume(z),$.exit(D.lineEnding),U;return $.enter(D.codeTextData),M(z)}function M(z){if(z===Q.eof||z===Q.space||z===Q.graveAccent||T(z))return $.exit(D.codeTextData),U(z);return $.consume(z),M}function R(z){if(z===Q.graveAccent)return $.consume(z),q++,R;if(q===X)return $.exit(D.codeTextSequence),$.exit(D.codeText),G(z);return W.type=D.codeTextData,M(z)}}class Y6{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($,G){let Y=G===null||G===void 0?Number.POSITIVE_INFINITY:G;if(Y<this.left.length)return this.left.slice($,Y);if($>this.left.length)return this.right.slice(this.right.length-Y+this.left.length,this.right.length-$+this.left.length).reverse();return this.left.slice($).concat(this.right.slice(this.right.length-Y+this.left.length).reverse())}splice($,G,Y){let J=G||0;this.setCursor(Math.trunc($));let X=this.right.splice(this.right.length-J,Number.POSITIVE_INFINITY);if(Y)q4(this.left,Y);return X.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),q4(this.left,$)}unshift($){this.setCursor(0),this.right.push($)}unshiftMany($){this.setCursor(0),q4(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 G=this.left.splice($,Number.POSITIVE_INFINITY);q4(this.right,G.reverse())}else{let G=this.right.splice(this.left.length+this.right.length-$,Number.POSITIVE_INFINITY);q4(this.left,G.reverse())}}}function q4($,G){let Y=0;if(G.length<j.v8MaxSafeChunkSize)$.push(...G);else while(Y<G.length)$.push(...G.slice(Y,Y+j.v8MaxSafeChunkSize)),Y+=j.v8MaxSafeChunkSize}function l4($){let G={},Y=-1,J,X,q,W,H,V,U,M=new Y6($);while(++Y<M.length){while(Y in G)Y=G[Y];if(J=M.get(Y),Y&&J[1].type===D.chunkFlow&&M.get(Y-1)[1].type===D.listItemPrefix){if(A(J[1]._tokenizer,"expected `_tokenizer` on subtokens"),V=J[1]._tokenizer.events,q=0,q<V.length&&V[q][1].type===D.lineEndingBlank)q+=2;if(q<V.length&&V[q][1].type===D.content)while(++q<V.length){if(V[q][1].type===D.content)break;if(V[q][1].type===D.chunkText)V[q][1]._isInFirstContentOfListItem=!0,q++}}if(J[0]==="enter"){if(J[1].contentType)Object.assign(G,dH(M,Y)),Y=G[Y],U=!0}else if(J[1]._container){q=Y,X=void 0;while(q--)if(W=M.get(q),W[1].type===D.lineEnding||W[1].type===D.lineEndingBlank){if(W[0]==="enter"){if(X)M.get(X)[1].type=D.lineEndingBlank;W[1].type=D.lineEnding,X=q}}else if(W[1].type===D.linePrefix||W[1].type===D.listItemIndent);else break;if(X)J[1].end={...M.get(X)[1].start},H=M.slice(X,Y),H.unshift(J),M.splice(X,Y-X+1,H)}}return F1($,0,Number.POSITIVE_INFINITY,M.slice(0)),!U}function dH($,G){let Y=$.get(G)[1],J=$.get(G)[2],X=G-1,q=[];A(Y.contentType,"expected `contentType` on subtokens");let W=Y._tokenizer;if(!W){if(W=J.parser[Y.contentType](Y.start),Y._contentTypeTextTrailing)W._contentTypeTextTrailing=!0}let H=W.events,V=[],U={},M,R,z=-1,K=Y,Z=0,S=0,I=[S];while(K){while($.get(++X)[1]!==K);if(A(!R||K.previous===R,"expected previous to match"),A(!R||R.next===K,"expected next to match"),q.push(X),!K._tokenizer){if(M=J.sliceStream(K),!K.next)M.push(Q.eof);if(R)W.defineSkip(K.start);if(K._isInFirstContentOfListItem)W._gfmTasklistFirstContentOfListItem=!0;if(W.write(M),K._isInFirstContentOfListItem)W._gfmTasklistFirstContentOfListItem=void 0}R=K,K=K.next}K=Y;while(++z<H.length)if(H[z][0]==="exit"&&H[z-1][0]==="enter"&&H[z][1].type===H[z-1][1].type&&H[z][1].start.line!==H[z][1].end.line)A(K,"expected a current token"),S=z+1,I.push(S),K._tokenizer=void 0,K.previous=void 0,K=K.next;if(W.events=[],K)K._tokenizer=void 0,K.previous=void 0,A(!K.next,"expected no next token");else I.pop();z=I.length;while(z--){let P=H.slice(I[z],I[z+1]),a=q.pop();A(a!==void 0,"expected a start position when splicing"),V.push([a,a+P.length-1]),$.splice(a,2,P)}V.reverse(),z=-1;while(++z<V.length)U[Z+V[z][0]]=Z+V[z][1],Z+=V[z][1]-V[z][0]-1;return U}var J6={resolve:oH,tokenize:nH},iH={partial:!0,tokenize:aH};function oH($){return l4($),$}function nH($,G){let Y;return J;function J(H){return A(H!==Q.eof&&!T(H),"expected no eof or eol"),$.enter(D.content),Y=$.enter(D.chunkContent,{contentType:j.contentTypeContent}),X(H)}function X(H){if(H===Q.eof)return q(H);if(T(H))return $.check(iH,W,q)(H);return $.consume(H),X}function q(H){return $.exit(D.chunkContent),$.exit(D.content),G(H)}function W(H){return A(T(H),"expected eol"),$.consume(H),$.exit(D.chunkContent),A(Y,"expected previous token"),Y.next=$.enter(D.chunkContent,{contentType:j.contentTypeContent,previous:Y}),Y=Y.next,X}}function aH($,G,Y){let J=this;return X;function X(W){return A(T(W),"expected a line ending"),$.exit(D.chunkContent),$.enter(D.lineEnding),$.consume(W),$.exit(D.lineEnding),l($,q,D.linePrefix)}function q(W){if(W===Q.eof||T(W))return Y(W);A(J.parser.constructs.disable.null,"expected `disable.null` to be populated");let H=J.events[J.events.length-1];if(!J.parser.constructs.disable.null.includes("codeIndented")&&H&&H[1].type===D.linePrefix&&H[2].sliceSerialize(H[1],!0).length>=j.tabSize)return G(W);return $.interrupt(J.parser.constructs.flow,Y,G)(W)}}function r4($,G,Y,J,X,q,W,H,V){let U=V||Number.POSITIVE_INFINITY,M=0;return R;function R(P){if(P===Q.lessThan)return $.enter(J),$.enter(X),$.enter(q),$.consume(P),$.exit(q),z;if(P===Q.eof||P===Q.space||P===Q.rightParenthesis||G4(P))return Y(P);return $.enter(J),$.enter(W),$.enter(H),$.enter(D.chunkString,{contentType:j.contentTypeString}),S(P)}function z(P){if(P===Q.greaterThan)return $.enter(q),$.consume(P),$.exit(q),$.exit(X),$.exit(J),G;return $.enter(H),$.enter(D.chunkString,{contentType:j.contentTypeString}),K(P)}function K(P){if(P===Q.greaterThan)return $.exit(D.chunkString),$.exit(H),z(P);if(P===Q.eof||P===Q.lessThan||T(P))return Y(P);return $.consume(P),P===Q.backslash?Z:K}function Z(P){if(P===Q.lessThan||P===Q.greaterThan||P===Q.backslash)return $.consume(P),K;return K(P)}function S(P){if(!M&&(P===Q.eof||P===Q.rightParenthesis||H1(P)))return $.exit(D.chunkString),$.exit(H),$.exit(W),$.exit(J),G(P);if(M<U&&P===Q.leftParenthesis)return $.consume(P),M++,S;if(P===Q.rightParenthesis)return $.consume(P),M--,S;if(P===Q.eof||P===Q.space||P===Q.leftParenthesis||G4(P))return Y(P);return $.consume(P),P===Q.backslash?I:S}function I(P){if(P===Q.leftParenthesis||P===Q.rightParenthesis||P===Q.backslash)return $.consume(P),S;return S(P)}}function c4($,G,Y,J,X,q){let W=this,H=0,V;return U;function U(K){return A(K===Q.leftSquareBracket,"expected `[`"),$.enter(J),$.enter(X),$.consume(K),$.exit(X),$.enter(q),M}function M(K){if(H>j.linkReferenceSizeMax||K===Q.eof||K===Q.leftSquareBracket||K===Q.rightSquareBracket&&!V||K===Q.caret&&!H&&"_hiddenFootnoteSupport"in W.parser.constructs)return Y(K);if(K===Q.rightSquareBracket)return $.exit(q),$.enter(X),$.consume(K),$.exit(X),$.exit(J),G;if(T(K))return $.enter(D.lineEnding),$.consume(K),$.exit(D.lineEnding),M;return $.enter(D.chunkString,{contentType:j.contentTypeString}),R(K)}function R(K){if(K===Q.eof||K===Q.leftSquareBracket||K===Q.rightSquareBracket||T(K)||H++>j.linkReferenceSizeMax)return $.exit(D.chunkString),M(K);if($.consume(K),!V)V=!p(K);return K===Q.backslash?z:R}function z(K){if(K===Q.leftSquareBracket||K===Q.backslash||K===Q.rightSquareBracket)return $.consume(K),H++,R;return R(K)}}function d4($,G,Y,J,X,q){let W;return H;function H(z){if(z===Q.quotationMark||z===Q.apostrophe||z===Q.leftParenthesis)return $.enter(J),$.enter(X),$.consume(z),$.exit(X),W=z===Q.leftParenthesis?Q.rightParenthesis:z,V;return Y(z)}function V(z){if(z===W)return $.enter(X),$.consume(z),$.exit(X),$.exit(J),G;return $.enter(q),U(z)}function U(z){if(z===W)return $.exit(q),V(W);if(z===Q.eof)return Y(z);if(T(z))return $.enter(D.lineEnding),$.consume(z),$.exit(D.lineEnding),l($,U,D.linePrefix);return $.enter(D.chunkString,{contentType:j.contentTypeString}),M(z)}function M(z){if(z===W||z===Q.eof||T(z))return $.exit(D.chunkString),U(z);return $.consume(z),z===Q.backslash?R:M}function R(z){if(z===W||z===Q.backslash)return $.consume(z),M;return M(z)}}function u2($,G){let Y;return J;function J(X){if(T(X))return $.enter(D.lineEnding),$.consume(X),$.exit(D.lineEnding),Y=!0,J;if(p(X))return l($,J,Y?D.linePrefix:D.lineSuffix)(X);return G(X)}}var X6={name:"definition",tokenize:tH},sH={partial:!0,tokenize:eH};function tH($,G,Y){let J=this,X;return q;function q(K){return $.enter(D.definition),W(K)}function W(K){return A(K===Q.leftSquareBracket,"expected `[`"),c4.call(J,$,H,Y,D.definitionLabel,D.definitionLabelMarker,D.definitionLabelString)(K)}function H(K){if(X=M2(J.sliceSerialize(J.events[J.events.length-1][1]).slice(1,-1)),K===Q.colon)return $.enter(D.definitionMarker),$.consume(K),$.exit(D.definitionMarker),V;return Y(K)}function V(K){return H1(K)?u2($,U)(K):U(K)}function U(K){return r4($,M,Y,D.definitionDestination,D.definitionDestinationLiteral,D.definitionDestinationLiteralMarker,D.definitionDestinationRaw,D.definitionDestinationString)(K)}function M(K){return $.attempt(sH,R,R)(K)}function R(K){return p(K)?l($,z,D.whitespace)(K):z(K)}function z(K){if(K===Q.eof||T(K))return $.exit(D.definition),J.parser.defined.push(X),G(K);return Y(K)}}function eH($,G,Y){return J;function J(H){return H1(H)?u2($,X)(H):Y(H)}function X(H){return d4($,q,Y,D.definitionTitle,D.definitionTitleMarker,D.definitionTitleString)(H)}function q(H){return p(H)?l($,W,D.whitespace)(H):W(H)}function W(H){return H===Q.eof||T(H)?G(H):Y(H)}}var q6={name:"hardBreakEscape",tokenize:$V};function $V($,G,Y){return J;function J(q){return A(q===Q.backslash,"expected `\\`"),$.enter(D.hardBreakEscape),$.consume(q),X}function X(q){if(T(q))return $.exit(D.hardBreakEscape),G(q);return Y(q)}}var W6={name:"headingAtx",resolve:GV,tokenize:YV};function GV($,G){let Y=$.length-2,J=3,X,q;if($[J][1].type===D.whitespace)J+=2;if(Y-2>J&&$[Y][1].type===D.whitespace)Y-=2;if($[Y][1].type===D.atxHeadingSequence&&(J===Y-1||Y-4>J&&$[Y-2][1].type===D.whitespace))Y-=J+1===Y?2:4;if(Y>J)X={type:D.atxHeadingText,start:$[J][1].start,end:$[Y][1].end},q={type:D.chunkText,start:$[J][1].start,end:$[Y][1].end,contentType:j.contentTypeText},F1($,J,Y-J+1,[["enter",X,G],["enter",q,G],["exit",q,G],["exit",X,G]]);return $}function YV($,G,Y){let J=0;return X;function X(M){return $.enter(D.atxHeading),q(M)}function q(M){return A(M===Q.numberSign,"expected `#`"),$.enter(D.atxHeadingSequence),W(M)}function W(M){if(M===Q.numberSign&&J++<j.atxHeadingOpeningFenceSizeMax)return $.consume(M),W;if(M===Q.eof||H1(M))return $.exit(D.atxHeadingSequence),H(M);return Y(M)}function H(M){if(M===Q.numberSign)return $.enter(D.atxHeadingSequence),V(M);if(M===Q.eof||T(M))return $.exit(D.atxHeading),G(M);if(p(M))return l($,H,D.whitespace)(M);return $.enter(D.atxHeadingText),U(M)}function V(M){if(M===Q.numberSign)return $.consume(M),V;return $.exit(D.atxHeadingSequence),H(M)}function U(M){if(M===Q.eof||M===Q.numberSign||H1(M))return $.exit(D.atxHeadingText),H(M);return $.consume(M),U}}var f8=["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"],H6=["pre","script","style","textarea"];var V6={concrete:!0,name:"htmlFlow",resolveTo:qV,tokenize:WV},JV={partial:!0,tokenize:VV},XV={partial:!0,tokenize:HV};function qV($){let G=$.length;while(G--)if($[G][0]==="enter"&&$[G][1].type===D.htmlFlow)break;if(G>1&&$[G-2][1].type===D.linePrefix)$[G][1].start=$[G-2][1].start,$[G+1][1].start=$[G-2][1].start,$.splice(G-2,2);return $}function WV($,G,Y){let J=this,X,q,W,H,V;return U;function U(F){return M(F)}function M(F){return A(F===Q.lessThan,"expected `<`"),$.enter(D.htmlFlow),$.enter(D.htmlFlowData),$.consume(F),R}function R(F){if(F===Q.exclamationMark)return $.consume(F),z;if(F===Q.slash)return $.consume(F),q=!0,S;if(F===Q.questionMark)return $.consume(F),X=j.htmlInstruction,J.interrupt?G:O;if(h1(F))return A(F!==null),$.consume(F),W=String.fromCharCode(F),I;return Y(F)}function z(F){if(F===Q.dash)return $.consume(F),X=j.htmlComment,K;if(F===Q.leftSquareBracket)return $.consume(F),X=j.htmlCdata,H=0,Z;if(h1(F))return $.consume(F),X=j.htmlDeclaration,J.interrupt?G:O;return Y(F)}function K(F){if(F===Q.dash)return $.consume(F),J.interrupt?G:O;return Y(F)}function Z(F){let I1=j.cdataOpeningString;if(F===I1.charCodeAt(H++)){if($.consume(F),H===I1.length)return J.interrupt?G:$1;return Z}return Y(F)}function S(F){if(h1(F))return A(F!==null),$.consume(F),W=String.fromCharCode(F),I;return Y(F)}function I(F){if(F===Q.eof||F===Q.slash||F===Q.greaterThan||H1(F)){let I1=F===Q.slash,P2=W.toLowerCase();if(!I1&&!q&&H6.includes(P2))return X=j.htmlRaw,J.interrupt?G(F):$1(F);if(f8.includes(W.toLowerCase())){if(X=j.htmlBasic,I1)return $.consume(F),P;return J.interrupt?G(F):$1(F)}return X=j.htmlComplete,J.interrupt&&!J.parser.lazy[J.now().line]?Y(F):q?a(F):g(F)}if(F===Q.dash||Z1(F))return $.consume(F),W+=String.fromCharCode(F),I;return Y(F)}function P(F){if(F===Q.greaterThan)return $.consume(F),J.interrupt?G:$1;return Y(F)}function a(F){if(p(F))return $.consume(F),a;return Y1(F)}function g(F){if(F===Q.slash)return $.consume(F),Y1;if(F===Q.colon||F===Q.underscore||h1(F))return $.consume(F),s;if(p(F))return $.consume(F),g;return Y1(F)}function s(F){if(F===Q.dash||F===Q.dot||F===Q.colon||F===Q.underscore||Z1(F))return $.consume(F),s;return G1(F)}function G1(F){if(F===Q.equalsTo)return $.consume(F),B;if(p(F))return $.consume(F),G1;return g(F)}function B(F){if(F===Q.eof||F===Q.lessThan||F===Q.equalsTo||F===Q.greaterThan||F===Q.graveAccent)return Y(F);if(F===Q.quotationMark||F===Q.apostrophe)return $.consume(F),V=F,e;if(p(F))return $.consume(F),B;return J1(F)}function e(F){if(F===V)return $.consume(F),V=null,n;if(F===Q.eof||T(F))return Y(F);return $.consume(F),e}function J1(F){if(F===Q.eof||F===Q.quotationMark||F===Q.apostrophe||F===Q.slash||F===Q.lessThan||F===Q.equalsTo||F===Q.greaterThan||F===Q.graveAccent||H1(F))return G1(F);return $.consume(F),J1}function n(F){if(F===Q.slash||F===Q.greaterThan||p(F))return g(F);return Y(F)}function Y1(F){if(F===Q.greaterThan)return $.consume(F),g1;return Y(F)}function g1(F){if(F===Q.eof||T(F))return $1(F);if(p(F))return $.consume(F),g1;return Y(F)}function $1(F){if(F===Q.dash&&X===j.htmlComment)return $.consume(F),q1;if(F===Q.lessThan&&X===j.htmlRaw)return $.consume(F),D1;if(F===Q.greaterThan&&X===j.htmlDeclaration)return $.consume(F),y1;if(F===Q.questionMark&&X===j.htmlInstruction)return $.consume(F),O;if(F===Q.rightSquareBracket&&X===j.htmlCdata)return $.consume(F),n1;if(T(F)&&(X===j.htmlBasic||X===j.htmlComplete))return $.exit(D.htmlFlowData),$.check(JV,G2,x)(F);if(F===Q.eof||T(F))return $.exit(D.htmlFlowData),x(F);return $.consume(F),$1}function x(F){return $.check(XV,u,G2)(F)}function u(F){return A(T(F)),$.enter(D.lineEnding),$.consume(F),$.exit(D.lineEnding),c}function c(F){if(F===Q.eof||T(F))return x(F);return $.enter(D.htmlFlowData),$1(F)}function q1(F){if(F===Q.dash)return $.consume(F),O;return $1(F)}function D1(F){if(F===Q.slash)return $.consume(F),W="",v1;return $1(F)}function v1(F){if(F===Q.greaterThan){let I1=W.toLowerCase();if(H6.includes(I1))return $.consume(F),y1;return $1(F)}if(h1(F)&&W.length<j.htmlRawSizeMax)return A(F!==null),$.consume(F),W+=String.fromCharCode(F),v1;return $1(F)}function n1(F){if(F===Q.rightSquareBracket)return $.consume(F),O;return $1(F)}function O(F){if(F===Q.greaterThan)return $.consume(F),y1;if(F===Q.dash&&X===j.htmlComment)return $.consume(F),O;return $1(F)}function y1(F){if(F===Q.eof||T(F))return $.exit(D.htmlFlowData),G2(F);return $.consume(F),y1}function G2(F){return $.exit(D.htmlFlow),G(F)}}function HV($,G,Y){let J=this;return X;function X(W){if(T(W))return $.enter(D.lineEnding),$.consume(W),$.exit(D.lineEnding),q;return Y(W)}function q(W){return J.parser.lazy[J.now().line]?Y(W):G(W)}}function VV($,G,Y){return J;function J(X){return A(T(X),"expected a line ending"),$.enter(D.lineEnding),$.consume(X),$.exit(D.lineEnding),$.attempt(B2,G,Y)}}var U6={name:"htmlText",tokenize:UV};function UV($,G,Y){let J=this,X,q,W;return H;function H(O){return A(O===Q.lessThan,"expected `<`"),$.enter(D.htmlText),$.enter(D.htmlTextData),$.consume(O),V}function V(O){if(O===Q.exclamationMark)return $.consume(O),U;if(O===Q.slash)return $.consume(O),G1;if(O===Q.questionMark)return $.consume(O),g;if(h1(O))return $.consume(O),J1;return Y(O)}function U(O){if(O===Q.dash)return $.consume(O),M;if(O===Q.leftSquareBracket)return $.consume(O),q=0,Z;if(h1(O))return $.consume(O),a;return Y(O)}function M(O){if(O===Q.dash)return $.consume(O),K;return Y(O)}function R(O){if(O===Q.eof)return Y(O);if(O===Q.dash)return $.consume(O),z;if(T(O))return W=R,D1(O);return $.consume(O),R}function z(O){if(O===Q.dash)return $.consume(O),K;return R(O)}function K(O){return O===Q.greaterThan?q1(O):O===Q.dash?z(O):R(O)}function Z(O){let y1=j.cdataOpeningString;if(O===y1.charCodeAt(q++))return $.consume(O),q===y1.length?S:Z;return Y(O)}function S(O){if(O===Q.eof)return Y(O);if(O===Q.rightSquareBracket)return $.consume(O),I;if(T(O))return W=S,D1(O);return $.consume(O),S}function I(O){if(O===Q.rightSquareBracket)return $.consume(O),P;return S(O)}function P(O){if(O===Q.greaterThan)return q1(O);if(O===Q.rightSquareBracket)return $.consume(O),P;return S(O)}function a(O){if(O===Q.eof||O===Q.greaterThan)return q1(O);if(T(O))return W=a,D1(O);return $.consume(O),a}function g(O){if(O===Q.eof)return Y(O);if(O===Q.questionMark)return $.consume(O),s;if(T(O))return W=g,D1(O);return $.consume(O),g}function s(O){return O===Q.greaterThan?q1(O):g(O)}function G1(O){if(h1(O))return $.consume(O),B;return Y(O)}function B(O){if(O===Q.dash||Z1(O))return $.consume(O),B;return e(O)}function e(O){if(T(O))return W=e,D1(O);if(p(O))return $.consume(O),e;return q1(O)}function J1(O){if(O===Q.dash||Z1(O))return $.consume(O),J1;if(O===Q.slash||O===Q.greaterThan||H1(O))return n(O);return Y(O)}function n(O){if(O===Q.slash)return $.consume(O),q1;if(O===Q.colon||O===Q.underscore||h1(O))return $.consume(O),Y1;if(T(O))return W=n,D1(O);if(p(O))return $.consume(O),n;return q1(O)}function Y1(O){if(O===Q.dash||O===Q.dot||O===Q.colon||O===Q.underscore||Z1(O))return $.consume(O),Y1;return g1(O)}function g1(O){if(O===Q.equalsTo)return $.consume(O),$1;if(T(O))return W=g1,D1(O);if(p(O))return $.consume(O),g1;return n(O)}function $1(O){if(O===Q.eof||O===Q.lessThan||O===Q.equalsTo||O===Q.greaterThan||O===Q.graveAccent)return Y(O);if(O===Q.quotationMark||O===Q.apostrophe)return $.consume(O),X=O,x;if(T(O))return W=$1,D1(O);if(p(O))return $.consume(O),$1;return $.consume(O),u}function x(O){if(O===X)return $.consume(O),X=void 0,c;if(O===Q.eof)return Y(O);if(T(O))return W=x,D1(O);return $.consume(O),x}function u(O){if(O===Q.eof||O===Q.quotationMark||O===Q.apostrophe||O===Q.lessThan||O===Q.equalsTo||O===Q.graveAccent)return Y(O);if(O===Q.slash||O===Q.greaterThan||H1(O))return n(O);return $.consume(O),u}function c(O){if(O===Q.slash||O===Q.greaterThan||H1(O))return n(O);return Y(O)}function q1(O){if(O===Q.greaterThan)return $.consume(O),$.exit(D.htmlTextData),$.exit(D.htmlText),G;return Y(O)}function D1(O){return A(W,"expected return state"),A(T(O),"expected eol"),$.exit(D.htmlTextData),$.enter(D.lineEnding),$.consume(O),$.exit(D.lineEnding),v1}function v1(O){return A(J.parser.constructs.disable.null,"expected `disable.null` to be populated"),p(O)?l($,n1,D.linePrefix,J.parser.constructs.disable.null.includes("codeIndented")?void 0:j.tabSize)(O):n1(O)}function n1(O){return $.enter(D.htmlTextData),W(O)}}var l2={name:"labelEnd",resolveAll:RV,resolveTo:KV,tokenize:zV},MV={tokenize:AV},DV={tokenize:OV},QV={tokenize:FV};function RV($){let G=-1,Y=[];while(++G<$.length){let J=$[G][1];if(Y.push($[G]),J.type===D.labelImage||J.type===D.labelLink||J.type===D.labelEnd){let X=J.type===D.labelImage?4:2;J.type=D.data,G+=X}}if($.length!==Y.length)F1($,0,$.length,Y);return $}function KV($,G){let Y=$.length,J=0,X,q,W,H;while(Y--)if(X=$[Y][1],q){if(X.type===D.link||X.type===D.labelLink&&X._inactive)break;if($[Y][0]==="enter"&&X.type===D.labelLink)X._inactive=!0}else if(W){if($[Y][0]==="enter"&&(X.type===D.labelImage||X.type===D.labelLink)&&!X._balanced){if(q=Y,X.type!==D.labelLink){J=2;break}}}else if(X.type===D.labelEnd)W=Y;A(q!==void 0,"`open` is supposed to be found"),A(W!==void 0,"`close` is supposed to be found");let V={type:$[q][1].type===D.labelLink?D.link:D.image,start:{...$[q][1].start},end:{...$[$.length-1][1].end}},U={type:D.label,start:{...$[q][1].start},end:{...$[W][1].end}},M={type:D.labelText,start:{...$[q+J+2][1].end},end:{...$[W-2][1].start}};return H=[["enter",V,G],["enter",U,G]],H=E1(H,$.slice(q+1,q+J+3)),H=E1(H,[["enter",M,G]]),A(G.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),H=E1(H,P0(G.parser.constructs.insideSpan.null,$.slice(q+J+4,W-3),G)),H=E1(H,[["exit",M,G],$[W-2],$[W-1],["exit",U,G]]),H=E1(H,$.slice(W+1)),H=E1(H,[["exit",V,G]]),F1($,q,$.length,H),$}function zV($,G,Y){let J=this,X=J.events.length,q,W;while(X--)if((J.events[X][1].type===D.labelImage||J.events[X][1].type===D.labelLink)&&!J.events[X][1]._balanced){q=J.events[X][1];break}return H;function H(z){if(A(z===Q.rightSquareBracket,"expected `]`"),!q)return Y(z);if(q._inactive)return R(z);return W=J.parser.defined.includes(M2(J.sliceSerialize({start:q.end,end:J.now()}))),$.enter(D.labelEnd),$.enter(D.labelMarker),$.consume(z),$.exit(D.labelMarker),$.exit(D.labelEnd),V}function V(z){if(z===Q.leftParenthesis)return $.attempt(MV,M,W?M:R)(z);if(z===Q.leftSquareBracket)return $.attempt(DV,M,W?U:R)(z);return W?M(z):R(z)}function U(z){return $.attempt(QV,M,R)(z)}function M(z){return G(z)}function R(z){return q._balanced=!0,Y(z)}}function AV($,G,Y){return J;function J(R){return A(R===Q.leftParenthesis,"expected left paren"),$.enter(D.resource),$.enter(D.resourceMarker),$.consume(R),$.exit(D.resourceMarker),X}function X(R){return H1(R)?u2($,q)(R):q(R)}function q(R){if(R===Q.rightParenthesis)return M(R);return r4($,W,H,D.resourceDestination,D.resourceDestinationLiteral,D.resourceDestinationLiteralMarker,D.resourceDestinationRaw,D.resourceDestinationString,j.linkResourceDestinationBalanceMax)(R)}function W(R){return H1(R)?u2($,V)(R):M(R)}function H(R){return Y(R)}function V(R){if(R===Q.quotationMark||R===Q.apostrophe||R===Q.leftParenthesis)return d4($,U,Y,D.resourceTitle,D.resourceTitleMarker,D.resourceTitleString)(R);return M(R)}function U(R){return H1(R)?u2($,M)(R):M(R)}function M(R){if(R===Q.rightParenthesis)return $.enter(D.resourceMarker),$.consume(R),$.exit(D.resourceMarker),$.exit(D.resource),G;return Y(R)}}function OV($,G,Y){let J=this;return X;function X(H){return A(H===Q.leftSquareBracket,"expected left bracket"),c4.call(J,$,q,W,D.reference,D.referenceMarker,D.referenceString)(H)}function q(H){return J.parser.defined.includes(M2(J.sliceSerialize(J.events[J.events.length-1][1]).slice(1,-1)))?G(H):Y(H)}function W(H){return Y(H)}}function FV($,G,Y){return J;function J(q){return A(q===Q.leftSquareBracket,"expected left bracket"),$.enter(D.reference),$.enter(D.referenceMarker),$.consume(q),$.exit(D.referenceMarker),X}function X(q){if(q===Q.rightSquareBracket)return $.enter(D.referenceMarker),$.consume(q),$.exit(D.referenceMarker),$.exit(D.reference),G;return Y(q)}}var M6={name:"labelStartImage",resolveAll:l2.resolveAll,tokenize:_V};function _V($,G,Y){let J=this;return X;function X(H){return A(H===Q.exclamationMark,"expected `!`"),$.enter(D.labelImage),$.enter(D.labelImageMarker),$.consume(H),$.exit(D.labelImageMarker),q}function q(H){if(H===Q.leftSquareBracket)return $.enter(D.labelMarker),$.consume(H),$.exit(D.labelMarker),$.exit(D.labelImage),W;return Y(H)}function W(H){return H===Q.caret&&"_hiddenFootnoteSupport"in J.parser.constructs?Y(H):G(H)}}var D6={name:"labelStartLink",resolveAll:l2.resolveAll,tokenize:wV};function wV($,G,Y){let J=this;return X;function X(W){return A(W===Q.leftSquareBracket,"expected `[`"),$.enter(D.labelLink),$.enter(D.labelMarker),$.consume(W),$.exit(D.labelMarker),$.exit(D.labelLink),q}function q(W){return W===Q.caret&&"_hiddenFootnoteSupport"in J.parser.constructs?Y(W):G(W)}}var W4={name:"lineEnding",tokenize:BV};function BV($,G){return Y;function Y(J){return A(T(J),"expected eol"),$.enter(D.lineEnding),$.consume(J),$.exit(D.lineEnding),l($,G,D.linePrefix)}}var r2={name:"thematicBreak",tokenize:NV};function NV($,G,Y){let J=0,X;return q;function q(U){return $.enter(D.thematicBreak),W(U)}function W(U){return A(U===Q.asterisk||U===Q.dash||U===Q.underscore,"expected `*`, `-`, or `_`"),X=U,H(U)}function H(U){if(U===X)return $.enter(D.thematicBreakSequence),V(U);if(J>=j.thematicBreakMarkerCountMin&&(U===Q.eof||T(U)))return $.exit(D.thematicBreak),G(U);return Y(U)}function V(U){if(U===X)return $.consume(U),J++,V;return $.exit(D.thematicBreakSequence),p(U)?l($,H,D.whitespace)(U):H(U)}}var N1={continuation:{tokenize:EV},exit:TV,name:"list",tokenize:PV},jV={partial:!0,tokenize:SV},LV={partial:!0,tokenize:ZV};function PV($,G,Y){let J=this,X=J.events[J.events.length-1],q=X&&X[1].type===D.linePrefix?X[2].sliceSerialize(X[1],!0).length:0,W=0;return H;function H(K){A(J.containerState,"expected state");let Z=J.containerState.type||(K===Q.asterisk||K===Q.plusSign||K===Q.dash?D.listUnordered:D.listOrdered);if(Z===D.listUnordered?!J.containerState.marker||K===J.containerState.marker:Y4(K)){if(!J.containerState.type)J.containerState.type=Z,$.enter(Z,{_container:!0});if(Z===D.listUnordered)return $.enter(D.listItemPrefix),K===Q.asterisk||K===Q.dash?$.check(r2,Y,U)(K):U(K);if(!J.interrupt||K===Q.digit1)return $.enter(D.listItemPrefix),$.enter(D.listItemValue),V(K)}return Y(K)}function V(K){if(A(J.containerState,"expected state"),Y4(K)&&++W<j.listItemValueSizeMax)return $.consume(K),V;if((!J.interrupt||W<2)&&(J.containerState.marker?K===J.containerState.marker:K===Q.rightParenthesis||K===Q.dot))return $.exit(D.listItemValue),U(K);return Y(K)}function U(K){return A(J.containerState,"expected state"),A(K!==Q.eof,"eof (`null`) is not a marker"),$.enter(D.listItemMarker),$.consume(K),$.exit(D.listItemMarker),J.containerState.marker=J.containerState.marker||K,$.check(B2,J.interrupt?Y:M,$.attempt(jV,z,R))}function M(K){return A(J.containerState,"expected state"),J.containerState.initialBlankLine=!0,q++,z(K)}function R(K){if(p(K))return $.enter(D.listItemPrefixWhitespace),$.consume(K),$.exit(D.listItemPrefixWhitespace),z;return Y(K)}function z(K){return A(J.containerState,"expected state"),J.containerState.size=q+J.sliceSerialize($.exit(D.listItemPrefix),!0).length,G(K)}}function EV($,G,Y){let J=this;return A(J.containerState,"expected state"),J.containerState._closeFlow=void 0,$.check(B2,X,q);function X(H){return A(J.containerState,"expected state"),A(typeof J.containerState.size==="number","expected size"),J.containerState.furtherBlankLines=J.containerState.furtherBlankLines||J.containerState.initialBlankLine,l($,G,D.listItemIndent,J.containerState.size+1)(H)}function q(H){if(A(J.containerState,"expected state"),J.containerState.furtherBlankLines||!p(H))return J.containerState.furtherBlankLines=void 0,J.containerState.initialBlankLine=void 0,W(H);return J.containerState.furtherBlankLines=void 0,J.containerState.initialBlankLine=void 0,$.attempt(LV,G,W)(H)}function W(H){return A(J.containerState,"expected state"),J.containerState._closeFlow=!0,J.interrupt=void 0,A(J.parser.constructs.disable.null,"expected `disable.null` to be populated"),l($,$.attempt(N1,G,Y),D.linePrefix,J.parser.constructs.disable.null.includes("codeIndented")?void 0:j.tabSize)(H)}}function ZV($,G,Y){let J=this;return A(J.containerState,"expected state"),A(typeof J.containerState.size==="number","expected size"),l($,X,D.listItemIndent,J.containerState.size+1);function X(q){A(J.containerState,"expected state");let W=J.events[J.events.length-1];return W&&W[1].type===D.listItemIndent&&W[2].sliceSerialize(W[1],!0).length===J.containerState.size?G(q):Y(q)}}function TV($){A(this.containerState,"expected state"),A(typeof this.containerState.type==="string","expected type"),$.exit(this.containerState.type)}function SV($,G,Y){let J=this;return A(J.parser.constructs.disable.null,"expected `disable.null` to be populated"),l($,X,D.listItemPrefixWhitespace,J.parser.constructs.disable.null.includes("codeIndented")?void 0:j.tabSize+1);function X(q){let W=J.events[J.events.length-1];return!p(q)&&W&&W[1].type===D.listItemPrefixWhitespace?G(q):Y(q)}}var i4={name:"setextUnderline",resolveTo:IV,tokenize:CV};function IV($,G){let Y=$.length,J,X,q;while(Y--)if($[Y][0]==="enter"){if($[Y][1].type===D.content){J=Y;break}if($[Y][1].type===D.paragraph)X=Y}else{if($[Y][1].type===D.content)$.splice(Y,1);if(!q&&$[Y][1].type===D.definition)q=Y}A(X!==void 0,"expected a `text` index to be found"),A(J!==void 0,"expected a `text` index to be found"),A($[J][2]===G,"enter context should be same"),A($[$.length-1][2]===G,"enter context should be same");let W={type:D.setextHeading,start:{...$[J][1].start},end:{...$[$.length-1][1].end}};if($[X][1].type=D.setextHeadingText,q)$.splice(X,0,["enter",W,G]),$.splice(q+1,0,["exit",$[J][1],G]),$[J][1].end={...$[q][1].end};else $[J][1]=W;return $.push(["exit",W,G]),$}function CV($,G,Y){let J=this,X;return q;function q(U){let M=J.events.length,R;A(U===Q.dash||U===Q.equalsTo,"expected `=` or `-`");while(M--)if(J.events[M][1].type!==D.lineEnding&&J.events[M][1].type!==D.linePrefix&&J.events[M][1].type!==D.content){R=J.events[M][1].type===D.paragraph;break}if(!J.parser.lazy[J.now().line]&&(J.interrupt||R))return $.enter(D.setextHeadingLine),X=U,W(U);return Y(U)}function W(U){return $.enter(D.setextHeadingLineSequence),H(U)}function H(U){if(U===X)return $.consume(U),H;return $.exit(D.setextHeadingLineSequence),p(U)?l($,V,D.lineSuffix)(U):V(U)}function V(U){if(U===Q.eof||T(U))return $.exit(D.setextHeadingLine),G(U);return Y(U)}}var p8={tokenize:bV};function bV($){let G=this,Y=$.attempt(B2,J,$.attempt(this.parser.constructs.flowInitial,X,l($,$.attempt(this.parser.constructs.flow,X,$.attempt(J6,X)),D.linePrefix)));return Y;function J(q){if(A(q===Q.eof||T(q),"expected eol or eof"),q===Q.eof){$.consume(q);return}return $.enter(D.lineEndingBlank),$.consume(q),$.exit(D.lineEndingBlank),G.currentConstruct=void 0,Y}function X(q){if(A(q===Q.eof||T(q),"expected eol or eof"),q===Q.eof){$.consume(q);return}return $.enter(D.lineEnding),$.consume(q),$.exit(D.lineEnding),G.currentConstruct=void 0,Y}}var u8={resolveAll:d8()},l8=c8("string"),r8=c8("text");function c8($){return{resolveAll:d8($==="text"?xV:void 0),tokenize:G};function G(Y){let J=this,X=this.parser.constructs[$],q=Y.attempt(X,W,H);return W;function W(M){return U(M)?q(M):H(M)}function H(M){if(M===Q.eof){Y.consume(M);return}return Y.enter(D.data),Y.consume(M),V}function V(M){if(U(M))return Y.exit(D.data),q(M);return Y.consume(M),V}function U(M){if(M===Q.eof)return!0;let R=X[M],z=-1;if(R){A(Array.isArray(R),"expected `disable.null` to be populated");while(++z<R.length){let K=R[z];if(!K.previous||K.previous.call(J,J.previous))return!0}}return!1}}}function d8($){return G;function G(Y,J){let X=-1,q;while(++X<=Y.length)if(q===void 0){if(Y[X]&&Y[X][1].type===D.data)q=X,X++}else if(!Y[X]||Y[X][1].type!==D.data){if(X!==q+2)Y[q][1].end=Y[X-1][1].end,Y.splice(q+2,X-q-2),X=q+2;q=void 0}return $?$(Y,J):Y}}function xV($,G){let Y=0;while(++Y<=$.length)if((Y===$.length||$[Y][1].type===D.lineEnding)&&$[Y-1][1].type===D.data){let J=$[Y-1][1],X=G.sliceStream(J),q=X.length,W=-1,H=0,V;while(q--){let U=X[q];if(typeof U==="string"){W=U.length;while(U.charCodeAt(W-1)===Q.space)H++,W--;if(W)break;W=-1}else if(U===Q.horizontalTab)V=!0,H++;else if(U===Q.virtualSpace);else{q++;break}}if(G._contentTypeTextTrailing&&Y===$.length)H=0;if(H){let U={type:Y===$.length||V||H<j.hardBreakPrefixSizeMin?D.lineSuffix:D.hardBreakTrailing,start:{_bufferIndex:q?W:J.start._bufferIndex+W,_index:J.start._index+q,line:J.end.line,column:J.end.column-H,offset:J.end.offset-H},end:{...J.end}};if(J.end={...U.start},J.start.offset===J.end.offset)Object.assign(J,U);else $.splice(Y,0,["enter",U,G],["exit",U,G]),Y+=2}Y++}return $}var Q6={};e6(Q6,{text:()=>mV,string:()=>yV,insideSpan:()=>fV,flowInitial:()=>gV,flow:()=>vV,document:()=>hV,disable:()=>uV,contentInitial:()=>kV,attentionMarkers:()=>pV});var hV={[Q.asterisk]:N1,[Q.plusSign]:N1,[Q.dash]:N1,[Q.digit0]:N1,[Q.digit1]:N1,[Q.digit2]:N1,[Q.digit3]:N1,[Q.digit4]:N1,[Q.digit5]:N1,[Q.digit6]:N1,[Q.digit7]:N1,[Q.digit8]:N1,[Q.digit9]:N1,[Q.greaterThan]:m4},kV={[Q.leftSquareBracket]:X6},gV={[Q.horizontalTab]:X4,[Q.virtualSpace]:X4,[Q.space]:X4},vV={[Q.numberSign]:W6,[Q.asterisk]:r2,[Q.dash]:[i4,r2],[Q.lessThan]:V6,[Q.equalsTo]:i4,[Q.underscore]:r2,[Q.graveAccent]:u4,[Q.tilde]:u4},yV={[Q.ampersand]:p4,[Q.backslash]:f4},mV={[Q.carriageReturn]:W4,[Q.lineFeed]:W4,[Q.carriageReturnLineFeed]:W4,[Q.exclamationMark]:M6,[Q.ampersand]:p4,[Q.asterisk]:J4,[Q.lessThan]:[$6,U6],[Q.leftSquareBracket]:D6,[Q.backslash]:[q6,f4],[Q.rightSquareBracket]:l2,[Q.underscore]:J4,[Q.graveAccent]:G6},fV={null:[J4,u8]},pV={null:[Q.asterisk,Q.underscore]},uV={null:[]};var VG=D4(HG(),1);var i2=VG.default("micromark");function UG($,G,Y){let J={_bufferIndex:-1,_index:0,line:Y&&Y.line||1,column:Y&&Y.column||1,offset:Y&&Y.offset||0},X={},q=[],W=[],H=[],V=!0,U={attempt:n(e),check:n(J1),consume:s,enter:G1,exit:B,interrupt:n(J1,{interrupt:!0})},M={code:Q.eof,containerState:{},defineSkip:P,events:[],now:I,parser:$,previous:Q.eof,sliceSerialize:Z,sliceStream:S,write:K},R=G.tokenize.call(M,U),z;if(G.resolveAll)q.push(G);return M;function K(x){if(W=E1(W,x),a(),W[W.length-1]!==Q.eof)return[];return Y1(G,0),M.events=P0(q,M.events,M),M.events}function Z(x,u){return EU(S(x),u)}function S(x){return PU(W,x)}function I(){let{_bufferIndex:x,_index:u,line:c,column:q1,offset:D1}=J;return{_bufferIndex:x,_index:u,line:c,column:q1,offset:D1}}function P(x){X[x.line]=x.column,$1(),i2("position: define skip: `%j`",J)}function a(){let x;while(J._index<W.length){let u=W[J._index];if(typeof u==="string"){if(x=J._index,J._bufferIndex<0)J._bufferIndex=0;while(J._index===x&&J._bufferIndex<u.length)g(u.charCodeAt(J._bufferIndex))}else g(u)}}function g(x){A(V===!0,"expected character to be consumed"),V=void 0,i2("main: passing `%s` to %s",x,R&&R.name),z=x,A(typeof R==="function","expected state"),R=R(x)}function s(x){if(A(x===z,"expected given code to equal expected code"),i2("consume: `%s`",x),A(V===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),A(x===null?M.events.length===0||M.events[M.events.length-1][0]==="exit":M.events[M.events.length-1][0]==="enter","expected last token to be open"),T(x))J.line++,J.column=1,J.offset+=x===Q.carriageReturnLineFeed?2:1,$1(),i2("position: after eol: `%j`",J);else if(x!==Q.virtualSpace)J.column++,J.offset++;if(J._bufferIndex<0)J._index++;else if(J._bufferIndex++,J._bufferIndex===W[J._index].length)J._bufferIndex=-1,J._index++;M.previous=x,V=!0}function G1(x,u){let c=u||{};return c.type=x,c.start=I(),A(typeof x==="string","expected string type"),A(x.length>0,"expected non-empty string"),i2("enter: `%s`",x),M.events.push(["enter",c,M]),H.push(c),c}function B(x){A(typeof x==="string","expected string type"),A(x.length>0,"expected non-empty string");let u=H.pop();return A(u,"cannot close w/o open tokens"),u.end=I(),A(x===u.type,"expected exit token to match current token"),A(!(u.start._index===u.end._index&&u.start._bufferIndex===u.end._bufferIndex),"expected non-empty token (`"+x+"`)"),i2("exit: `%s`",u.type),M.events.push(["exit",u,M]),u}function e(x,u){Y1(x,u.from)}function J1(x,u){u.restore()}function n(x,u){return c;function c(q1,D1,v1){let n1,O,y1,G2;return Array.isArray(q1)?I1(q1):("tokenize"in q1)?I1([q1]):F(q1);function F(Q1){return x0;function x0(Y2){let E2=Y2!==null&&Q1[Y2],a2=Y2!==null&&Q1.null,R5=[...Array.isArray(E2)?E2:E2?[E2]:[],...Array.isArray(a2)?a2:a2?[a2]:[]];return I1(R5)(Y2)}}function I1(Q1){if(n1=Q1,O=0,Q1.length===0)return A(v1,"expected `bogusState` to be given"),v1;return P2(Q1[O])}function P2(Q1){return x0;function x0(Y2){if(G2=g1(),y1=Q1,!Q1.partial)M.currentConstruct=Q1;if(A(M.parser.constructs.disable.null,"expected `disable.null` to be populated"),Q1.name&&M.parser.constructs.disable.null.includes(Q1.name))return M4(Y2);return Q1.tokenize.call(u?Object.assign(Object.create(M),u):M,U,Q5,M4)(Y2)}}function Q5(Q1){return A(Q1===z,"expected code"),V=!0,x(y1,G2),D1}function M4(Q1){if(A(Q1===z,"expected code"),V=!0,G2.restore(),++O<n1.length)return P2(n1[O]);return v1}}}function Y1(x,u){if(x.resolveAll&&!q.includes(x))q.push(x);if(x.resolve)F1(M.events,u,M.events.length-u,x.resolve(M.events.slice(u),M));if(x.resolveTo)M.events=x.resolveTo(M.events,M);A(x.partial||M.events.length===0||M.events[M.events.length-1][0]==="exit","expected last token to end")}function g1(){let x=I(),u=M.previous,c=M.currentConstruct,q1=M.events.length,D1=Array.from(H);return{from:q1,restore:v1};function v1(){J=x,M.previous=u,M.currentConstruct=c,M.events.length=q1,H=D1,$1(),i2("position: restore: `%j`",J)}}function $1(){if(J.line in X&&J.column<2)J.column=X[J.line],J.offset+=X[J.line]-1}}function PU($,G){let Y=G.start._index,J=G.start._bufferIndex,X=G.end._index,q=G.end._bufferIndex,W;if(Y===X)A(q>-1,"expected non-negative end buffer index"),A(J>-1,"expected non-negative start buffer index"),W=[$[Y].slice(J,q)];else{if(W=$.slice(Y,X),J>-1){let H=W[0];if(typeof H==="string")W[0]=H.slice(J);else A(J===0,"expected `startBufferIndex` to be `0`"),W.shift()}if(q>0)W.push($[X].slice(0,q))}return W}function EU($,G){let Y=-1,J=[],X;while(++Y<$.length){let q=$[Y],W;if(typeof q==="string")W=q;else switch(q){case Q.carriageReturn:{W=x1.cr;break}case Q.lineFeed:{W=x1.lf;break}case Q.carriageReturnLineFeed:{W=x1.cr+x1.lf;break}case Q.horizontalTab:{W=G?x1.space:x1.ht;break}case Q.virtualSpace:{if(!G&&X)continue;W=x1.space;break}default:A(typeof q==="number","expected number"),W=String.fromCharCode(q)}X=q===Q.horizontalTab,J.push(W)}return J.join("")}function O6($){let J={constructs:T8([Q6,...($||{}).extensions||[]]),content:X(h8),defined:[],document:X(g8),flow:X(p8),lazy:{},string:X(l8),text:X(r8)};return J;function X(q){return W;function W(H){return UG(J,q,H)}}}function F6($){while(!l4($));return $}var MG=/[\0\t\n\r]/g;function _6(){let $=1,G="",Y=!0,J;return X;function X(q,W,H){let V=[],U,M,R,z,K;if(q=G+(typeof q==="string"?q.toString():new TextDecoder(W||void 0).decode(q)),R=0,G="",Y){if(q.charCodeAt(0)===Q.byteOrderMarker)R++;Y=void 0}while(R<q.length){if(MG.lastIndex=R,U=MG.exec(q),z=U&&U.index!==void 0?U.index:q.length,K=q.charCodeAt(z),!U){G=q.slice(R);break}if(K===Q.lf&&R===z&&J)V.push(Q.carriageReturnLineFeed),J=void 0;else{if(J)V.push(Q.carriageReturn),J=void 0;if(R<z)V.push(q.slice(R,z)),$+=z-R;switch(K){case Q.nul:{V.push(Q.replacementCharacter),$++;break}case Q.ht:{M=Math.ceil($/j.tabSize)*j.tabSize,V.push(Q.horizontalTab);while($++<M)V.push(Q.virtualSpace);break}case Q.lf:{V.push(Q.lineFeed),$=1;break}default:J=!0,$=1}}R=z+1}if(H){if(J)V.push(Q.carriageReturn);if(G)V.push(G);V.push(Q.eof)}return V}}var ZU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t4($){return $.replace(ZU,TU)}function TU($,G,Y){if(G)return G;if(Y.charCodeAt(0)===Q.numberSign){let X=Y.charCodeAt(1),q=X===Q.lowercaseX||X===Q.uppercaseX;return y4(Y.slice(q?2:1),q?j.numericBaseHexadecimal:j.numericBaseDecimal)}return j0(Y)||$}function j2($){if(!$||typeof $!=="object")return"";if("position"in $||"type"in $)return DG($.position);if("start"in $||"end"in $)return DG($);if("line"in $||"column"in $)return w6($);return""}function w6($){return QG($&&$.line)+":"+QG($&&$.column)}function DG($){return w6($&&$.start)+"-"+w6($&&$.end)}function QG($){return $&&typeof $==="number"?$:1}var KG={}.hasOwnProperty;function B6($,G,Y){if(G&&typeof G==="object")Y=G,G=void 0;return SU(Y)(F6(O6(Y).document().write(_6()($,G,!0))))}function SU($){let G={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:q(s6),autolinkProtocol:n,autolinkEmail:n,atxHeading:q(o6),blockQuote:q(Y2),characterEscape:n,characterReference:n,codeFenced:q(E2),codeFencedFenceInfo:W,codeFencedFenceMeta:W,codeIndented:q(E2,W),codeText:q(a2,W),codeTextData:n,data:n,codeFlowValue:n,definition:q(R5),definitionDestinationString:W,definitionLabelString:W,definitionTitleString:W,emphasis:q(_Y),hardBreakEscape:q(n6),hardBreakTrailing:q(n6),htmlFlow:q(a6,W),htmlFlowData:n,htmlText:q(a6,W),htmlTextData:n,image:q(wY),label:W,link:q(s6),listItem:q(BY),listItemValue:z,listOrdered:q(t6,R),listUnordered:q(t6),paragraph:q(NY),reference:F,referenceString:W,resourceDestinationString:W,resourceTitleString:W,setextHeading:q(o6),strong:q(jY),thematicBreak:q(PY)},exit:{atxHeading:V(),atxHeadingSequence:G1,autolink:V(),autolinkEmail:x0,autolinkProtocol:Q1,blockQuote:V(),characterEscapeValue:Y1,characterReferenceMarkerHexadecimal:P2,characterReferenceMarkerNumeric:P2,characterReferenceValue:Q5,characterReference:M4,codeFenced:V(I),codeFencedFence:S,codeFencedFenceInfo:K,codeFencedFenceMeta:Z,codeFlowValue:Y1,codeIndented:V(P),codeText:V(c),codeTextData:Y1,data:Y1,definition:V(),definitionDestinationString:s,definitionLabelString:a,definitionTitleString:g,emphasis:V(),hardBreakEscape:V($1),hardBreakTrailing:V($1),htmlFlow:V(x),htmlFlowData:Y1,htmlText:V(u),htmlTextData:Y1,image:V(D1),label:n1,labelText:v1,lineEnding:g1,link:V(q1),listItem:V(),listOrdered:V(),listUnordered:V(),paragraph:V(),referenceString:I1,resourceDestinationString:O,resourceTitleString:y1,resource:G2,setextHeading:V(J1),setextHeadingLineSequence:e,setextHeadingText:B,strong:V(),thematicBreak:V()}};zG(G,($||{}).mdastExtensions||[]);let Y={};return J;function J(_){let w={type:"root",children:[]},h={stack:[w],tokenStack:[],config:G,enter:H,exit:U,buffer:W,resume:M,data:Y},i=[],t=-1;while(++t<_.length)if(_[t][1].type===D.listOrdered||_[t][1].type===D.listUnordered)if(_[t][0]==="enter")i.push(t);else{let T1=i.pop();A(typeof T1==="number","expected list to be open"),t=X(_,T1,t)}t=-1;while(++t<_.length){let T1=G[_[t][0]];if(KG.call(T1,_[t][1].type))T1[_[t][1].type].call(Object.assign({sliceSerialize:_[t][2].sliceSerialize},h),_[t][1])}if(h.tokenStack.length>0){let T1=h.tokenStack[h.tokenStack.length-1];(T1[1]||RG).call(h,void 0,T1[0])}w.position={start:L2(_.length>0?_[0][1].start:{line:1,column:1,offset:0}),end:L2(_.length>0?_[_.length-2][1].end:{line:1,column:1,offset:0})},t=-1;while(++t<G.transforms.length)w=G.transforms[t](w)||w;return w}function X(_,w,h){let i=w-1,t=-1,T1=!1,Z2,J2,h0,k0;while(++i<=h){let C1=_[i];switch(C1[1].type){case D.listUnordered:case D.listOrdered:case D.blockQuote:{if(C1[0]==="enter")t++;else t--;k0=void 0;break}case D.lineEndingBlank:{if(C1[0]==="enter"){if(Z2&&!k0&&!t&&!h0)h0=i;k0=void 0}break}case D.linePrefix:case D.listItemValue:case D.listItemMarker:case D.listItemPrefix:case D.listItemPrefixWhitespace:break;default:k0=void 0}if(!t&&C1[0]==="enter"&&C1[1].type===D.listItemPrefix||t===-1&&C1[0]==="exit"&&(C1[1].type===D.listUnordered||C1[1].type===D.listOrdered)){if(Z2){let s2=i;J2=void 0;while(s2--){let X2=_[s2];if(X2[1].type===D.lineEnding||X2[1].type===D.lineEndingBlank){if(X2[0]==="exit")continue;if(J2)_[J2][1].type=D.lineEndingBlank,T1=!0;X2[1].type=D.lineEnding,J2=s2}else if(X2[1].type===D.linePrefix||X2[1].type===D.blockQuotePrefix||X2[1].type===D.blockQuotePrefixWhitespace||X2[1].type===D.blockQuoteMarker||X2[1].type===D.listItemIndent);else break}if(h0&&(!J2||h0<J2))Z2._spread=!0;Z2.end=Object.assign({},J2?_[J2][1].start:C1[1].end),_.splice(J2||i,0,["exit",Z2,C1[2]]),i++,h++}if(C1[1].type===D.listItemPrefix){let s2={type:"listItem",_spread:!1,start:Object.assign({},C1[1].start),end:void 0};Z2=s2,_.splice(i,0,["enter",s2,C1[2]]),i++,h++,h0=void 0,k0=!0}}}return _[w][1]._spread=T1,h}function q(_,w){return h;function h(i){if(H.call(this,_(i),i),w)w.call(this,i)}}function W(){this.stack.push({type:"fragment",children:[]})}function H(_,w,h){let i=this.stack[this.stack.length-1];A(i,"expected `parent`"),A("children"in i,"expected `parent`"),i.children.push(_),this.stack.push(_),this.tokenStack.push([w,h||void 0]),_.position={start:L2(w.start),end:void 0}}function V(_){return w;function w(h){if(_)_.call(this,h);U.call(this,h)}}function U(_,w){let h=this.stack.pop();A(h,"expected `node`");let i=this.tokenStack.pop();if(!i)throw Error("Cannot close `"+_.type+"` ("+j2({start:_.start,end:_.end})+"): it\u2019s not open");else if(i[0].type!==_.type)if(w)w.call(this,_,i[0]);else(i[1]||RG).call(this,_,i[0]);A(h.type!=="fragment","unexpected fragment `exit`ed"),A(h.position,"expected `position` to be defined"),h.position.end=L2(_.end)}function M(){return p2(this.stack.pop())}function R(){this.data.expectingFirstListItemValue=!0}function z(_){if(this.data.expectingFirstListItemValue){let w=this.stack[this.stack.length-2];A(w,"expected nodes on stack"),A(w.type==="list","expected list on stack"),w.start=Number.parseInt(this.sliceSerialize(_),j.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function K(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="code","expected code on stack"),w.lang=_}function Z(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="code","expected code on stack"),w.meta=_}function S(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function I(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="code","expected code on stack"),w.value=_.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function P(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="code","expected code on stack"),w.value=_.replace(/(\r?\n|\r)$/g,"")}function a(_){let w=this.resume(),h=this.stack[this.stack.length-1];A(h,"expected node on stack"),A(h.type==="definition","expected definition on stack"),h.label=w,h.identifier=M2(this.sliceSerialize(_)).toLowerCase()}function g(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="definition","expected definition on stack"),w.title=_}function s(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="definition","expected definition on stack"),w.url=_}function G1(_){let w=this.stack[this.stack.length-1];if(A(w,"expected node on stack"),A(w.type==="heading","expected heading on stack"),!w.depth){let h=this.sliceSerialize(_).length;A(h===1||h===2||h===3||h===4||h===5||h===6,"expected `depth` between `1` and `6`"),w.depth=h}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function e(_){let w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="heading","expected heading on stack"),w.depth=this.sliceSerialize(_).codePointAt(0)===Q.equalsTo?1:2}function J1(){this.data.setextHeadingSlurpLineEnding=void 0}function n(_){let w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A("children"in w,"expected parent on stack");let h=w.children,i=h[h.length-1];if(!i||i.type!=="text")i=LY(),i.position={start:L2(_.start),end:void 0},h.push(i);this.stack.push(i)}function Y1(_){let w=this.stack.pop();A(w,"expected a `node` to be on the stack"),A("value"in w,"expected a `literal` to be on the stack"),A(w.position,"expected `node` to have an open position"),w.value+=this.sliceSerialize(_),w.position.end=L2(_.end)}function g1(_){let w=this.stack[this.stack.length-1];if(A(w,"expected `node`"),this.data.atHardBreak){A("children"in w,"expected `parent`");let h=w.children[w.children.length-1];A(h.position,"expected tail to have a starting position"),h.position.end=L2(_.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&G.canContainEols.includes(w.type))n.call(this,_),Y1.call(this,_)}function $1(){this.data.atHardBreak=!0}function x(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="html","expected html on stack"),w.value=_}function u(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="html","expected html on stack"),w.value=_}function c(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="inlineCode","expected inline code on stack"),w.value=_}function q1(){let _=this.stack[this.stack.length-1];if(A(_,"expected node on stack"),A(_.type==="link","expected link on stack"),this.data.inReference){let w=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=w,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function D1(){let _=this.stack[this.stack.length-1];if(A(_,"expected node on stack"),A(_.type==="image","expected image on stack"),this.data.inReference){let w=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=w,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function v1(_){let w=this.sliceSerialize(_),h=this.stack[this.stack.length-2];A(h,"expected ancestor on stack"),A(h.type==="image"||h.type==="link","expected image or link on stack"),h.label=t4(w),h.identifier=M2(w).toLowerCase()}function n1(){let _=this.stack[this.stack.length-1];A(_,"expected node on stack"),A(_.type==="fragment","expected fragment on stack");let w=this.resume(),h=this.stack[this.stack.length-1];if(A(h,"expected node on stack"),A(h.type==="image"||h.type==="link","expected image or link on stack"),this.data.inReference=!0,h.type==="link"){let i=_.children;h.children=i}else h.alt=w}function O(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="image"||w.type==="link","expected image or link on stack"),w.url=_}function y1(){let _=this.resume(),w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="image"||w.type==="link","expected image or link on stack"),w.title=_}function G2(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function I1(_){let w=this.resume(),h=this.stack[this.stack.length-1];A(h,"expected node on stack"),A(h.type==="image"||h.type==="link","expected image reference or link reference on stack"),h.label=w,h.identifier=M2(this.sliceSerialize(_)).toLowerCase(),this.data.referenceType="full"}function P2(_){A(_.type==="characterReferenceMarkerNumeric"||_.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=_.type}function Q5(_){let w=this.sliceSerialize(_),h=this.data.characterReferenceType,i;if(h)i=y4(w,h===D.characterReferenceMarkerNumeric?j.numericBaseDecimal:j.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let T1=j0(w);A(T1!==!1,"expected reference to decode"),i=T1}let t=this.stack[this.stack.length-1];A(t,"expected `node`"),A("value"in t,"expected `node.value`"),t.value+=i}function M4(_){let w=this.stack.pop();A(w,"expected `node`"),A(w.position,"expected `node.position`"),w.position.end=L2(_.end)}function Q1(_){Y1.call(this,_);let w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="link","expected link on stack"),w.url=this.sliceSerialize(_)}function x0(_){Y1.call(this,_);let w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="link","expected link on stack"),w.url="mailto:"+this.sliceSerialize(_)}function Y2(){return{type:"blockquote",children:[]}}function E2(){return{type:"code",lang:null,meta:null,value:""}}function a2(){return{type:"inlineCode",value:""}}function R5(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _Y(){return{type:"emphasis",children:[]}}function o6(){return{type:"heading",depth:0,children:[]}}function n6(){return{type:"break"}}function a6(){return{type:"html",value:""}}function wY(){return{type:"image",title:null,url:"",alt:null}}function s6(){return{type:"link",title:null,url:"",children:[]}}function t6(_){return{type:"list",ordered:_.type==="listOrdered",start:null,spread:_._spread,children:[]}}function BY(_){return{type:"listItem",spread:_._spread,checked:null,children:[]}}function NY(){return{type:"paragraph",children:[]}}function jY(){return{type:"strong",children:[]}}function LY(){return{type:"text",value:""}}function PY(){return{type:"thematicBreak"}}}function L2($){return{line:$.line,column:$.column,offset:$.offset}}function zG($,G){let Y=-1;while(++Y<G.length){let J=G[Y];if(Array.isArray(J))zG($,J);else IU($,J)}}function IU($,G){let Y;for(Y in G)if(KG.call(G,Y))switch(Y){case"canContainEols":{let J=G[Y];if(J)$[Y].push(...J);break}case"transforms":{let J=G[Y];if(J)$[Y].push(...J);break}case"enter":case"exit":{let J=G[Y];if(J)Object.assign($[Y],J);break}}}function RG($,G){if($)throw Error("Cannot close `"+$.type+"` ("+j2({start:$.start,end:$.end})+"): a different token (`"+G.type+"`, "+j2({start:G.start,end:G.end})+") is open");else throw Error("Cannot close document, a token (`"+G.type+"`, "+j2({start:G.start,end:G.end})+") is still open")}function e4($){let G=this;G.parser=Y;function Y(J){return B6(J,{...G.data("settings"),...$,extensions:G.data("micromarkExtensions")||[],mdastExtensions:G.data("fromMarkdownExtensions")||[]})}}var AG={}.hasOwnProperty;function OG($,G){let Y=G||{};function J(X,...q){let{invalid:W,handlers:H}=J;if(X&&AG.call(X,$)){let V=String(X[$]);W=AG.call(H,V)?H[V]:J.unknown}if(W)return W.call(this,X,...q)}return J.handlers=Y.handlers||{},J.invalid=Y.invalid,J.unknown=Y.unknown,J}var CU={}.hasOwnProperty;function N6($,G){let Y=-1,J;if(G.extensions)while(++Y<G.extensions.length)N6($,G.extensions[Y]);for(J in G)if(CU.call(G,J))switch(J){case"extensions":break;case"unsafe":{FG($[J],G[J]);break}case"join":{FG($[J],G[J]);break}case"handlers":{bU($[J],G[J]);break}default:$.options[J]=G[J]}return $}function FG($,G){if(G)$.push(...G)}function bU($,G){if(G)Object.assign($,G)}function _G($,G,Y,J){let X=Y.enter("blockquote"),q=Y.createTracker(J);q.move("> "),q.shift(2);let W=Y.indentLines(Y.containerFlow($,q.current()),xU);return X(),W}function xU($,G,Y){return">"+(Y?"":" ")+$}function $5($,G){return wG($,G.inConstruct,!0)&&!wG($,G.notInConstruct,!1)}function wG($,G,Y){if(typeof G==="string")G=[G];if(!G||G.length===0)return Y;let J=-1;while(++J<G.length)if($.includes(G[J]))return!0;return!1}function j6($,G,Y,J){let X=-1;while(++X<Y.unsafe.length)if(Y.unsafe[X].character===`
|
|
60
60
|
`&&$5(Y.stack,Y.unsafe[X]))return/[ \t]/.test(J.before)?"":" ";return"\\\n"}function BG($,G){let Y=String($),J=Y.indexOf(G),X=J,q=0,W=0;if(typeof G!=="string")throw TypeError("Expected substring");while(J!==-1){if(J===X){if(++q>W)W=q}else q=1;X=J+G.length,J=Y.indexOf(G,X)}return W}function V4($,G){return Boolean(G.options.fences===!1&&$.value&&!$.lang&&/[^ \r\n]/.test($.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test($.value))}function NG($){let G=$.options.fence||"`";if(G!=="`"&&G!=="~")throw Error("Cannot serialize code with `"+G+"` for `options.fence`, expected `` ` `` or `~`");return G}function jG($,G,Y,J){let X=NG(Y),q=$.value||"",W=X==="`"?"GraveAccent":"Tilde";if(V4($,Y)){let R=Y.enter("codeIndented"),z=Y.indentLines(q,hU);return R(),z}let H=Y.createTracker(J),V=X.repeat(Math.max(BG(q,X)+1,3)),U=Y.enter("codeFenced"),M=H.move(V);if($.lang){let R=Y.enter(`codeFencedLang${W}`);M+=H.move(Y.safe($.lang,{before:M,after:" ",encode:["`"],...H.current()})),R()}if($.lang&&$.meta){let R=Y.enter(`codeFencedMeta${W}`);M+=H.move(" "),M+=H.move(Y.safe($.meta,{before:M,after:`
|
|
61
61
|
`,encode:["`"],...H.current()})),R()}if(M+=H.move(`
|
|
62
62
|
`),q)M+=H.move(q+`
|
|
63
|
-
`);return M+=H.move(V),U(),M}function hU($,G,Y){return(Y?"":" ")+$}function
|
|
64
|
-
`,...V.current()}));if(H(),$.title)H=Y.enter(`title${q}`),U+=V.move(" "+X),U+=V.move(Y.safe($.title,{before:U,after:X,...V.current()})),U+=V.move(X),H();return W(),U}function PG($){let G=$.options.emphasis||"*";if(G!=="*"&&G!=="_")throw Error("Cannot serialize emphasis with `"+G+"` for `options.emphasis`, expected `*`, or `_`");return G}function k1($){return"&#x"+$.toString(16).toUpperCase()+";"}function I0($,G,Y){let J=L0($),X=L0(G);if(J===void 0)return X===void 0?Y==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:X===1?{inside:!0,outside:!0}:{inside:!1,outside:!0};if(J===1)return X===void 0?{inside:!1,outside:!1}:X===1?{inside:!0,outside:!0}:{inside:!1,outside:!1};return X===void 0?{inside:!1,outside:!1}:X===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}L6.peek=kU;function L6($,G,Y,J){let X=PG(Y),q=Y.enter("emphasis"),W=Y.createTracker(J),H=W.move(X),V=W.move(Y.containerPhrasing($,{after:X,before:H,...W.current()})),U=V.charCodeAt(0),M=I0(J.before.charCodeAt(J.before.length-1),U,X);if(M.inside)V=k1(U)+V.slice(1);let R=V.charCodeAt(V.length-1),z=I0(J.after.charCodeAt(0),R,X);if(z.inside)V=V.slice(0,-1)+k1(R);let K=W.move(X);return q(),Y.attentionEncodeSurroundingInfo={after:z.outside,before:M.outside},H+V+K}function kU($,G,Y){return Y.options.emphasis||"*"}var C0=function($){if($===null||$===void 0)return mU;if(typeof $==="function")return G5($);if(typeof $==="object")return Array.isArray($)?gU($):vU($);if(typeof $==="string")return yU($);throw Error("Expected function, string, or object as test")};function gU($){let G=[],Y=-1;while(++Y<$.length)G[Y]=C0($[Y]);return G5(J);function J(...X){let q=-1;while(++q<G.length)if(G[q].apply(this,X))return!0;return!1}}function vU($){let G=$;return G5(Y);function Y(J){let X=J,q;for(q in $)if(X[q]!==G[q])return!1;return!0}}function yU($){return G5(G);function G(Y){return Y&&Y.type===$}}function G5($){return G;function G(Y,J,X){return Boolean(fU(Y)&&$.call(this,Y,typeof J==="number"?J:void 0,X||void 0))}}function mU(){return!0}function fU($){return $!==null&&typeof $==="object"&&"type"in $}function EG($){return"\x1B[33m"+$+"\x1B[39m"}var ZG=[],Y5=!0,o2=!1,J5="skip";function P6($,G,Y,J){let X;if(typeof G==="function"&&typeof Y!=="function")J=Y,Y=G;else X=G;let q=C0(X),W=J?-1:1;H($,void 0,[])();function H(V,U,M){let R=V&&typeof V==="object"?V:{};if(typeof R.type==="string"){let K=typeof R.tagName==="string"?R.tagName:typeof R.name==="string"?R.name:void 0;Object.defineProperty(z,"name",{value:"node ("+EG(V.type+(K?"<"+K+">":""))+")"})}return z;function z(){let K=ZG,Z,
|
|
63
|
+
`);return M+=H.move(V),U(),M}function hU($,G,Y){return(Y?"":" ")+$}function S0($){let G=$.options.quote||'"';if(G!=='"'&&G!=="'")throw Error("Cannot serialize title with `"+G+"` for `options.quote`, expected `\"`, or `'`");return G}function LG($,G,Y,J){let X=S0(Y),q=X==='"'?"Quote":"Apostrophe",W=Y.enter("definition"),H=Y.enter("label"),V=Y.createTracker(J),U=V.move("[");if(U+=V.move(Y.safe(Y.associationId($),{before:U,after:"]",...V.current()})),U+=V.move("]: "),H(),!$.url||/[\0- \u007F]/.test($.url))H=Y.enter("destinationLiteral"),U+=V.move("<"),U+=V.move(Y.safe($.url,{before:U,after:">",...V.current()})),U+=V.move(">");else H=Y.enter("destinationRaw"),U+=V.move(Y.safe($.url,{before:U,after:$.title?" ":`
|
|
64
|
+
`,...V.current()}));if(H(),$.title)H=Y.enter(`title${q}`),U+=V.move(" "+X),U+=V.move(Y.safe($.title,{before:U,after:X,...V.current()})),U+=V.move(X),H();return W(),U}function PG($){let G=$.options.emphasis||"*";if(G!=="*"&&G!=="_")throw Error("Cannot serialize emphasis with `"+G+"` for `options.emphasis`, expected `*`, or `_`");return G}function k1($){return"&#x"+$.toString(16).toUpperCase()+";"}function I0($,G,Y){let J=L0($),X=L0(G);if(J===void 0)return X===void 0?Y==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:X===1?{inside:!0,outside:!0}:{inside:!1,outside:!0};if(J===1)return X===void 0?{inside:!1,outside:!1}:X===1?{inside:!0,outside:!0}:{inside:!1,outside:!1};return X===void 0?{inside:!1,outside:!1}:X===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}L6.peek=kU;function L6($,G,Y,J){let X=PG(Y),q=Y.enter("emphasis"),W=Y.createTracker(J),H=W.move(X),V=W.move(Y.containerPhrasing($,{after:X,before:H,...W.current()})),U=V.charCodeAt(0),M=I0(J.before.charCodeAt(J.before.length-1),U,X);if(M.inside)V=k1(U)+V.slice(1);let R=V.charCodeAt(V.length-1),z=I0(J.after.charCodeAt(0),R,X);if(z.inside)V=V.slice(0,-1)+k1(R);let K=W.move(X);return q(),Y.attentionEncodeSurroundingInfo={after:z.outside,before:M.outside},H+V+K}function kU($,G,Y){return Y.options.emphasis||"*"}var C0=function($){if($===null||$===void 0)return mU;if(typeof $==="function")return G5($);if(typeof $==="object")return Array.isArray($)?gU($):vU($);if(typeof $==="string")return yU($);throw Error("Expected function, string, or object as test")};function gU($){let G=[],Y=-1;while(++Y<$.length)G[Y]=C0($[Y]);return G5(J);function J(...X){let q=-1;while(++q<G.length)if(G[q].apply(this,X))return!0;return!1}}function vU($){let G=$;return G5(Y);function Y(J){let X=J,q;for(q in $)if(X[q]!==G[q])return!1;return!0}}function yU($){return G5(G);function G(Y){return Y&&Y.type===$}}function G5($){return G;function G(Y,J,X){return Boolean(fU(Y)&&$.call(this,Y,typeof J==="number"?J:void 0,X||void 0))}}function mU(){return!0}function fU($){return $!==null&&typeof $==="object"&&"type"in $}function EG($){return"\x1B[33m"+$+"\x1B[39m"}var ZG=[],Y5=!0,o2=!1,J5="skip";function P6($,G,Y,J){let X;if(typeof G==="function"&&typeof Y!=="function")J=Y,Y=G;else X=G;let q=C0(X),W=J?-1:1;H($,void 0,[])();function H(V,U,M){let R=V&&typeof V==="object"?V:{};if(typeof R.type==="string"){let K=typeof R.tagName==="string"?R.tagName:typeof R.name==="string"?R.name:void 0;Object.defineProperty(z,"name",{value:"node ("+EG(V.type+(K?"<"+K+">":""))+")"})}return z;function z(){let K=ZG,Z,S,I;if(!G||q(V,U,M[M.length-1]||void 0)){if(K=pU(Y(V,M)),K[0]===o2)return K}if("children"in V&&V.children){let P=V;if(P.children&&K[0]!==J5){S=(J?P.children.length:-1)+W,I=M.concat(P);while(S>-1&&S<P.children.length){let a=P.children[S];if(Z=H(a,S,I)(),Z[0]===o2)return Z;S=typeof Z[1]==="number"?Z[1]:S+W}}}return K}}}function pU($){if(Array.isArray($))return $;if(typeof $==="number")return[Y5,$];return $===null||$===void 0?ZG:[$]}function E6($,G,Y,J){let X,q,W;if(typeof G==="function"&&typeof Y!=="function")q=void 0,W=G,X=Y;else q=G,W=Y,X=J;P6($,q,H,X);function H(V,U){let M=U[U.length-1],R=M?M.children.indexOf(V):void 0;return W(V,R,M)}}function X5($,G){let Y=!1;return E6($,function(J){if("value"in J&&/\r?\n|\r/.test(J.value)||J.type==="break")return Y=!0,o2}),Boolean((!$.depth||$.depth<3)&&p2($)&&(G.options.setext||Y))}function TG($,G,Y,J){let X=Math.max(Math.min(6,$.depth||1),1),q=Y.createTracker(J);if(X5($,Y)){let M=Y.enter("headingSetext"),R=Y.enter("phrasing"),z=Y.containerPhrasing($,{...q.current(),before:`
|
|
65
65
|
`,after:`
|
|
66
66
|
`});return R(),M(),z+`
|
|
67
67
|
`+(X===1?"=":"-").repeat(z.length-(Math.max(z.lastIndexOf("\r"),z.lastIndexOf(`
|
|
68
68
|
`))+1))}let W="#".repeat(X),H=Y.enter("headingAtx"),V=Y.enter("phrasing");q.move(W+" ");let U=Y.containerPhrasing($,{before:"# ",after:`
|
|
69
|
-
`,...q.current()});if(/^[\t ]/.test(U))U=k1(U.charCodeAt(0))+U.slice(1);if(U=U?W+" "+U:W,Y.options.closeAtx)U+=" "+W;return V(),H(),U}Z6.peek=uU;function Z6($){return $.value||""}function uU(){return"<"}
|
|
69
|
+
`,...q.current()});if(/^[\t ]/.test(U))U=k1(U.charCodeAt(0))+U.slice(1);if(U=U?W+" "+U:W,Y.options.closeAtx)U+=" "+W;return V(),H(),U}Z6.peek=uU;function Z6($){return $.value||""}function uU(){return"<"}T6.peek=lU;function T6($,G,Y,J){let X=S0(Y),q=X==='"'?"Quote":"Apostrophe",W=Y.enter("image"),H=Y.enter("label"),V=Y.createTracker(J),U=V.move("![");if(U+=V.move(Y.safe($.alt,{before:U,after:"]",...V.current()})),U+=V.move("]("),H(),!$.url&&$.title||/[\0- \u007F]/.test($.url))H=Y.enter("destinationLiteral"),U+=V.move("<"),U+=V.move(Y.safe($.url,{before:U,after:">",...V.current()})),U+=V.move(">");else H=Y.enter("destinationRaw"),U+=V.move(Y.safe($.url,{before:U,after:$.title?" ":")",...V.current()}));if(H(),$.title)H=Y.enter(`title${q}`),U+=V.move(" "+X),U+=V.move(Y.safe($.title,{before:U,after:X,...V.current()})),U+=V.move(X),H();return U+=V.move(")"),W(),U}function lU(){return"!"}S6.peek=rU;function S6($,G,Y,J){let X=$.referenceType,q=Y.enter("imageReference"),W=Y.enter("label"),H=Y.createTracker(J),V=H.move("!["),U=Y.safe($.alt,{before:V,after:"]",...H.current()});V+=H.move(U+"]["),W();let M=Y.stack;Y.stack=[],W=Y.enter("reference");let R=Y.safe(Y.associationId($),{before:V,after:"]",...H.current()});if(W(),Y.stack=M,q(),X==="full"||!U||U!==R)V+=H.move(R+"]");else if(X==="shortcut")V=V.slice(0,-1);else V+=H.move("]");return V}function rU(){return"!"}I6.peek=cU;function I6($,G,Y){let J=$.value||"",X="`",q=-1;while(new RegExp("(^|[^`])"+X+"([^`]|$)").test(J))X+="`";if(/[^ \r\n]/.test(J)&&(/^[ \r\n]/.test(J)&&/[ \r\n]$/.test(J)||/^`|`$/.test(J)))J=" "+J+" ";while(++q<Y.unsafe.length){let W=Y.unsafe[q],H=Y.compilePattern(W),V;if(!W.atBreak)continue;while(V=H.exec(J)){let U=V.index;if(J.charCodeAt(U)===10&&J.charCodeAt(U-1)===13)U--;J=J.slice(0,U)+" "+J.slice(V.index+1)}}return X+J+X}function cU(){return"`"}function C6($,G){let Y=p2($);return Boolean(!G.options.resourceLink&&$.url&&!$.title&&$.children&&$.children.length===1&&$.children[0].type==="text"&&(Y===$.url||"mailto:"+Y===$.url)&&/^[a-z][a-z+.-]+:/i.test($.url)&&!/[\0- <>\u007F]/.test($.url))}b6.peek=dU;function b6($,G,Y,J){let X=S0(Y),q=X==='"'?"Quote":"Apostrophe",W=Y.createTracker(J),H,V;if(C6($,Y)){let M=Y.stack;Y.stack=[],H=Y.enter("autolink");let R=W.move("<");return R+=W.move(Y.containerPhrasing($,{before:R,after:">",...W.current()})),R+=W.move(">"),H(),Y.stack=M,R}H=Y.enter("link"),V=Y.enter("label");let U=W.move("[");if(U+=W.move(Y.containerPhrasing($,{before:U,after:"](",...W.current()})),U+=W.move("]("),V(),!$.url&&$.title||/[\0- \u007F]/.test($.url))V=Y.enter("destinationLiteral"),U+=W.move("<"),U+=W.move(Y.safe($.url,{before:U,after:">",...W.current()})),U+=W.move(">");else V=Y.enter("destinationRaw"),U+=W.move(Y.safe($.url,{before:U,after:$.title?" ":")",...W.current()}));if(V(),$.title)V=Y.enter(`title${q}`),U+=W.move(" "+X),U+=W.move(Y.safe($.title,{before:U,after:X,...W.current()})),U+=W.move(X),V();return U+=W.move(")"),H(),U}function dU($,G,Y){return C6($,Y)?"<":"["}x6.peek=iU;function x6($,G,Y,J){let X=$.referenceType,q=Y.enter("linkReference"),W=Y.enter("label"),H=Y.createTracker(J),V=H.move("["),U=Y.containerPhrasing($,{before:V,after:"]",...H.current()});V+=H.move(U+"]["),W();let M=Y.stack;Y.stack=[],W=Y.enter("reference");let R=Y.safe(Y.associationId($),{before:V,after:"]",...H.current()});if(W(),Y.stack=M,q(),X==="full"||!U||U!==R)V+=H.move(R+"]");else if(X==="shortcut")V=V.slice(0,-1);else V+=H.move("]");return V}function iU(){return"["}function b0($){let G=$.options.bullet||"*";if(G!=="*"&&G!=="+"&&G!=="-")throw Error("Cannot serialize items with `"+G+"` for `options.bullet`, expected `*`, `+`, or `-`");return G}function SG($){let G=b0($),Y=$.options.bulletOther;if(!Y)return G==="*"?"-":"*";if(Y!=="*"&&Y!=="+"&&Y!=="-")throw Error("Cannot serialize items with `"+Y+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(Y===G)throw Error("Expected `bullet` (`"+G+"`) and `bulletOther` (`"+Y+"`) to be different");return Y}function IG($){let G=$.options.bulletOrdered||".";if(G!=="."&&G!==")")throw Error("Cannot serialize items with `"+G+"` for `options.bulletOrdered`, expected `.` or `)`");return G}function q5($){let G=$.options.rule||"*";if(G!=="*"&&G!=="-"&&G!=="_")throw Error("Cannot serialize rules with `"+G+"` for `options.rule`, expected `*`, `-`, or `_`");return G}function CG($,G,Y,J){let X=Y.enter("list"),q=Y.bulletCurrent,W=$.ordered?IG(Y):b0(Y),H=$.ordered?W==="."?")":".":SG(Y),V=G&&Y.bulletLastUsed?W===Y.bulletLastUsed:!1;if(!$.ordered){let M=$.children?$.children[0]:void 0;if((W==="*"||W==="-")&&M&&(!M.children||!M.children[0])&&Y.stack[Y.stack.length-1]==="list"&&Y.stack[Y.stack.length-2]==="listItem"&&Y.stack[Y.stack.length-3]==="list"&&Y.stack[Y.stack.length-4]==="listItem"&&Y.indexStack[Y.indexStack.length-1]===0&&Y.indexStack[Y.indexStack.length-2]===0&&Y.indexStack[Y.indexStack.length-3]===0)V=!0;if(q5(Y)===W&&M){let R=-1;while(++R<$.children.length){let z=$.children[R];if(z&&z.type==="listItem"&&z.children&&z.children[0]&&z.children[0].type==="thematicBreak"){V=!0;break}}}}if(V)W=H;Y.bulletCurrent=W;let U=Y.containerFlow($,J);return Y.bulletLastUsed=W,Y.bulletCurrent=q,X(),U}function bG($){let G=$.options.listItemIndent||"one";if(G!=="tab"&&G!=="one"&&G!=="mixed")throw Error("Cannot serialize items with `"+G+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return G}function xG($,G,Y,J){let X=bG(Y),q=Y.bulletCurrent||b0(Y);if(G&&G.type==="list"&&G.ordered)q=(typeof G.start==="number"&&G.start>-1?G.start:1)+(Y.options.incrementListMarker===!1?0:G.children.indexOf($))+q;let W=q.length+1;if(X==="tab"||X==="mixed"&&(G&&G.type==="list"&&G.spread||$.spread))W=Math.ceil(W/4)*4;let H=Y.createTracker(J);H.move(q+" ".repeat(W-q.length)),H.shift(W);let V=Y.enter("listItem"),U=Y.indentLines(Y.containerFlow($,H.current()),M);return V(),U;function M(R,z,K){if(z)return(K?"":" ".repeat(W))+R;return(K?q:q+" ".repeat(W-q.length))+R}}function hG($,G,Y,J){let X=Y.enter("paragraph"),q=Y.enter("phrasing"),W=Y.containerPhrasing($,J);return q(),X(),W}var h6=C0(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function kG($,G,Y,J){return($.children.some(function(W){return h6(W)})?Y.containerPhrasing:Y.containerFlow).call(Y,$,J)}function gG($){let G=$.options.strong||"*";if(G!=="*"&&G!=="_")throw Error("Cannot serialize strong with `"+G+"` for `options.strong`, expected `*`, or `_`");return G}k6.peek=oU;function k6($,G,Y,J){let X=gG(Y),q=Y.enter("strong"),W=Y.createTracker(J),H=W.move(X+X),V=W.move(Y.containerPhrasing($,{after:X,before:H,...W.current()})),U=V.charCodeAt(0),M=I0(J.before.charCodeAt(J.before.length-1),U,X);if(M.inside)V=k1(U)+V.slice(1);let R=V.charCodeAt(V.length-1),z=I0(J.after.charCodeAt(0),R,X);if(z.inside)V=V.slice(0,-1)+k1(R);let K=W.move(X+X);return q(),Y.attentionEncodeSurroundingInfo={after:z.outside,before:M.outside},H+V+K}function oU($,G,Y){return Y.options.strong||"*"}function vG($,G,Y,J){return Y.safe($.value,J)}function yG($){let G=$.options.ruleRepetition||3;if(G<3)throw Error("Cannot serialize rules with repetition `"+G+"` for `options.ruleRepetition`, expected `3` or more");return G}function mG($,G,Y){let J=(q5(Y)+(Y.options.ruleSpaces?" ":"")).repeat(yG(Y));return Y.options.ruleSpaces?J.slice(0,-1):J}var fG={blockquote:_G,break:j6,code:jG,definition:LG,emphasis:L6,hardBreak:j6,heading:TG,html:Z6,image:T6,imageReference:S6,inlineCode:I6,link:b6,linkReference:x6,list:CG,listItem:xG,paragraph:hG,root:kG,strong:k6,text:vG,thematicBreak:mG};var pG=[nU];function nU($,G,Y,J){if(G.type==="code"&&V4(G,J)&&($.type==="list"||$.type===G.type&&V4($,J)))return!1;if("spread"in Y&&typeof Y.spread==="boolean"){if($.type==="paragraph"&&($.type===G.type||G.type==="definition"||G.type==="heading"&&X5(G,J)))return;return Y.spread?1:0}}var n2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],uG=[{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
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:n2},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
71
71
|
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:n2},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
72
72
|
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:n2},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
@@ -82,10 +82,10 @@ return `+str.trim()+`;
|
|
|
82
82
|
|
|
83
83
|
`}return`
|
|
84
84
|
|
|
85
|
-
`}var sU=/\r?\n|\r/g;function iG($,G){let Y=[],J=0,X=0,q;while(q=sU.exec($))W($.slice(J,q.index)),Y.push(q[0]),J=q.index+q[0].length,X++;return W($.slice(J)),Y.join("");function W(H){Y.push(G(H,X,!H))}}function nG($,G,Y){let J=(Y.before||"")+(G||"")+(Y.after||""),X=[],q=[],W={},H=-1;while(++H<$.unsafe.length){let M=$.unsafe[H];if(!$5($.stack,M))continue;let R=$.compilePattern(M),z;while(z=R.exec(J)){let K="before"in M||Boolean(M.atBreak),Z="after"in M,
|
|
85
|
+
`}var sU=/\r?\n|\r/g;function iG($,G){let Y=[],J=0,X=0,q;while(q=sU.exec($))W($.slice(J,q.index)),Y.push(q[0]),J=q.index+q[0].length,X++;return W($.slice(J)),Y.join("");function W(H){Y.push(G(H,X,!H))}}function nG($,G,Y){let J=(Y.before||"")+(G||"")+(Y.after||""),X=[],q=[],W={},H=-1;while(++H<$.unsafe.length){let M=$.unsafe[H];if(!$5($.stack,M))continue;let R=$.compilePattern(M),z;while(z=R.exec(J)){let K="before"in M||Boolean(M.atBreak),Z="after"in M,S=z.index+(K?z[1].length:0);if(X.includes(S)){if(W[S].before&&!K)W[S].before=!1;if(W[S].after&&!Z)W[S].after=!1}else X.push(S),W[S]={before:K,after:Z}}}X.sort(tU);let V=Y.before?Y.before.length:0,U=J.length-(Y.after?Y.after.length:0);H=-1;while(++H<X.length){let M=X[H];if(M<V||M>=U)continue;if(M+1<U&&X[H+1]===M+1&&W[M].after&&!W[M+1].before&&!W[M+1].after||X[H-1]===M-1&&W[M].before&&!W[M-1].before&&!W[M-1].after)continue;if(V!==M)q.push(oG(J.slice(V,M),"\\"));if(V=M,/[!-/:-@[-`{-~]/.test(J.charAt(M))&&(!Y.encode||!Y.encode.includes(J.charAt(M))))q.push("\\");else q.push(k1(J.charCodeAt(M))),V++}return q.push(oG(J.slice(V,U),Y.after)),q.join("")}function tU($,G){return $-G}function oG($,G){let Y=/\\(?=[!-/:-@[-`{-~])/g,J=[],X=[],q=$+G,W=-1,H=0,V;while(V=Y.exec(q))J.push(V.index);while(++W<J.length){if(H!==J[W])X.push($.slice(H,J[W]));X.push("\\"),H=J[W]}return X.push($.slice(H)),X.join("")}function aG($){let G=$||{},Y=G.now||{},J=G.lineShift||0,X=Y.line||1,q=Y.column||1;return{move:V,current:W,shift:H};function W(){return{now:{line:X,column:q},lineShift:J}}function H(U){J+=U}function V(U){let M=U||"",R=M.split(/\r?\n|\r/g),z=R[R.length-1];return X+=R.length-1,q=R.length===1?q+z.length:1+z.length+J,M}}function g6($,G){let Y=G||{},J={associationId:lG,containerPhrasing:YM,containerFlow:JM,createTracker:aG,compilePattern:rG,enter:q,handlers:{...fG},handle:void 0,indentLines:iG,indexStack:[],join:[...pG],options:{},safe:XM,stack:[],unsafe:[...uG]};if(N6(J,Y),J.options.tightDefinitions)J.join.push(GM);J.handle=OG("type",{invalid:eU,unknown:$M,handlers:J.handlers});let X=J.handle($,void 0,J,{before:`
|
|
86
86
|
`,after:`
|
|
87
87
|
`,now:{line:1,column:1},lineShift:0});if(X&&X.charCodeAt(X.length-1)!==10&&X.charCodeAt(X.length-1)!==13)X+=`
|
|
88
88
|
`;return X;function q(W){return J.stack.push(W),H;function H(){J.stack.pop()}}}function eU($){throw Error("Cannot handle value `"+$+"`, expected node")}function $M($){throw Error("Cannot handle unknown node `"+$.type+"`")}function GM($,G){if($.type==="definition"&&$.type===G.type)return 0}function YM($,G){return cG($,this,G)}function JM($,G){return dG($,this,G)}function XM($,G){return nG(this,$,G)}function W5($){let G=this;G.compiler=Y;function Y(J){return g6(J,{...G.data("settings"),...$,extensions:G.data("toMarkdownExtensions")||[]})}}function v6($){if($)throw $}var D5=D4(qY(),1);function U4($){if(typeof $!=="object"||$===null)return!1;let G=Object.getPrototypeOf($);return(G===null||G===Object.prototype||Object.getPrototypeOf(G)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)}function y6(){let $=[],G={run:Y,use:J};return G;function Y(...X){let q=-1,W=X.pop();if(typeof W!=="function")throw TypeError("Expected function as last argument, not "+W);H(null,...X);function H(V,...U){let M=$[++q],R=-1;if(V){W(V);return}while(++R<X.length)if(U[R]===null||U[R]===void 0)U[R]=X[R];if(X=U,M)WY(M,H)(...U);else W(null,...U)}}function J(X){if(typeof X!=="function")throw TypeError("Expected `middelware` to be a function, not "+X);return $.push(X),G}}function WY($,G){let Y;return J;function J(...W){let H=$.length>W.length,V;if(H)W.push(X);try{V=$.apply(this,W)}catch(U){let M=U;if(H&&Y)throw M;return X(M)}if(!H)if(V&&V.then&&typeof V.then==="function")V.then(q,X);else if(V instanceof Error)X(V);else q(V)}function X(W,...H){if(!Y)Y=!0,G(W,...H)}function q(W){X(null,W)}}class _1 extends Error{constructor($,G,Y){super();if(typeof G==="string")Y=G,G=void 0;let J="",X={},q=!1;if(G)if("line"in G&&"column"in G)X={place:G};else if("start"in G&&"end"in G)X={place:G};else if("type"in G)X={ancestors:[G],place:G.position};else X={...G};if(typeof $==="string")J=$;else if(!X.cause&&$)q=!0,J=$.message,X.cause=$;if(!X.ruleId&&!X.source&&typeof Y==="string"){let H=Y.indexOf(":");if(H===-1)X.ruleId=Y;else X.source=Y.slice(0,H),X.ruleId=Y.slice(H+1)}if(!X.place&&X.ancestors&&X.ancestors){let H=X.ancestors[X.ancestors.length-1];if(H)X.place=H.position}let W=X.place&&"start"in X.place?X.place.start:X.place;this.ancestors=X.ancestors||void 0,this.cause=X.cause||void 0,this.column=W?W.column:void 0,this.fatal=void 0,this.file="",this.message=J,this.line=W?W.line:void 0,this.name=j2(X.place)||"1:1",this.place=X.place||void 0,this.reason=this.message,this.ruleId=X.ruleId||void 0,this.source=X.source||void 0,this.stack=q&&X.cause&&typeof X.cause.stack==="string"?X.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}_1.prototype.file="";_1.prototype.name="";_1.prototype.reason="";_1.prototype.message="";_1.prototype.stack="";_1.prototype.column=void 0;_1.prototype.line=void 0;_1.prototype.ancestors=void 0;_1.prototype.cause=void 0;_1.prototype.fatal=void 0;_1.prototype.place=void 0;_1.prototype.ruleId=void 0;_1.prototype.source=void 0;import{default as o1}from"path";import{default as HY}from"process";import{fileURLToPath as VY}from"url";function V5($){return Boolean($!==null&&typeof $==="object"&&"href"in $&&$.href&&"protocol"in $&&$.protocol&&$.auth===void 0)}var m6=["history","path","basename","stem","extname","dirname"];class U5{constructor($){let G;if(!$)G={};else if(V5($))G={path:$};else if(typeof $==="string"||qM($))G={value:$};else G=$;this.cwd="cwd"in G?"":HY.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let Y=-1;while(++Y<m6.length){let X=m6[Y];if(X in G&&G[X]!==void 0&&G[X]!==null)this[X]=X==="history"?[...G[X]]:G[X]}let J;for(J in G)if(!m6.includes(J))this[J]=G[J]}get basename(){return typeof this.path==="string"?o1.basename(this.path):void 0}set basename($){p6($,"basename"),f6($,"basename"),this.path=o1.join(this.dirname||"",$)}get dirname(){return typeof this.path==="string"?o1.dirname(this.path):void 0}set dirname($){UY(this.basename,"dirname"),this.path=o1.join($||"",this.basename)}get extname(){return typeof this.path==="string"?o1.extname(this.path):void 0}set extname($){if(f6($,"extname"),UY(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=o1.join(this.dirname,this.stem+($||""))}get path(){return this.history[this.history.length-1]}set path($){if(V5($))$=VY($);if(p6($,"path"),this.path!==$)this.history.push($)}get stem(){return typeof this.path==="string"?o1.basename(this.path,this.extname):void 0}set stem($){p6($,"stem"),f6($,"stem"),this.path=o1.join(this.dirname||"",$+(this.extname||""))}fail($,G,Y){let J=this.message($,G,Y);throw J.fatal=!0,J}info($,G,Y){let J=this.message($,G,Y);return J.fatal=void 0,J}message($,G,Y){let J=new _1($,G,Y);if(this.path)J.name=this.path+":"+J.name,J.file=this.path;return J.fatal=!1,this.messages.push(J),J}toString($){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder($||void 0).decode(this.value)}}function f6($,G){if($&&$.includes(o1.sep))throw Error("`"+G+"` cannot be a path: did not expect `"+o1.sep+"`")}function p6($,G){if(!$)throw Error("`"+G+"` cannot be empty")}function UY($,G){if(!$)throw Error("Setting `"+G+"` requires `path` to be set too")}function qM($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var MY=function($){let J=this.constructor.prototype,X=J[$],q=function(){return X.apply(q,arguments)};return Object.setPrototypeOf(q,J),q};var WM={}.hasOwnProperty;class c6 extends MY{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=y6()}copy(){let $=new c6,G=-1;while(++G<this.attachers.length){let Y=this.attachers[G];$.use(...Y)}return $.data(D5.default(!0,{},this.namespace)),$}data($,G){if(typeof $==="string"){if(arguments.length===2)return r6("data",this.frozen),this.namespace[$]=G,this;return WM.call(this.namespace,$)&&this.namespace[$]||void 0}if($)return r6("data",this.frozen),this.namespace=$,this;return this.namespace}freeze(){if(this.frozen)return this;let $=this;while(++this.freezeIndex<this.attachers.length){let[G,...Y]=this.attachers[this.freezeIndex];if(Y[0]===!1)continue;if(Y[0]===!0)Y[0]=void 0;let J=G.call($,...Y);if(typeof J==="function")this.transformers.use(J)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse($){this.freeze();let G=M5($),Y=this.parser||this.Parser;return u6("parse",Y),Y(String(G),G)}process($,G){let Y=this;return this.freeze(),u6("process",this.parser||this.Parser),l6("process",this.compiler||this.Compiler),G?J(void 0,G):new Promise(J);function J(X,q){let W=M5($),H=Y.parse(W);Y.run(H,W,function(U,M,R){if(U||!M||!R)return V(U);let z=M,K=Y.stringify(z,R);if(VM(K))R.value=K;else R.result=K;V(U,R)});function V(U,M){if(U||!M)q(U);else if(X)X(M);else A(G,"`done` is defined if `resolve` is not"),G(void 0,M)}}}processSync($){let G=!1,Y;return this.freeze(),u6("processSync",this.parser||this.Parser),l6("processSync",this.compiler||this.Compiler),this.process($,J),QY("processSync","process",G),A(Y,"we either bailed on an error or have a tree"),Y;function J(X,q){G=!0,v6(X),Y=q}}run($,G,Y){DY($),this.freeze();let J=this.transformers;if(!Y&&typeof G==="function")Y=G,G=void 0;return Y?X(void 0,Y):new Promise(X);function X(q,W){A(typeof G!=="function","`file` can\u2019t be a `done` anymore, we checked");let H=M5(G);J.run($,H,V);function V(U,M,R){let z=M||$;if(U)W(U);else if(q)q(z);else A(Y,"`done` is defined if `resolve` is not"),Y(void 0,z,R)}}}runSync($,G){let Y=!1,J;return this.run($,G,X),QY("runSync","run",Y),A(J,"we either bailed on an error or have a tree"),J;function X(q,W){v6(q),J=W,Y=!0}}stringify($,G){this.freeze();let Y=M5(G),J=this.compiler||this.Compiler;return l6("stringify",J),DY($),J($,Y)}use($,...G){let Y=this.attachers,J=this.namespace;if(r6("use",this.frozen),$===null||$===void 0);else if(typeof $==="function")H($,G);else if(typeof $==="object")if(Array.isArray($))W($);else q($);else throw TypeError("Expected usable value, not `"+$+"`");return this;function X(V){if(typeof V==="function")H(V,[]);else if(typeof V==="object")if(Array.isArray(V)){let[U,...M]=V;H(U,M)}else q(V);else throw TypeError("Expected usable value, not `"+V+"`")}function q(V){if(!("plugins"in V)&&!("settings"in V))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(W(V.plugins),V.settings)J.settings=D5.default(!0,J.settings,V.settings)}function W(V){let U=-1;if(V===null||V===void 0);else if(Array.isArray(V))while(++U<V.length){let M=V[U];X(M)}else throw TypeError("Expected a list of plugins, not `"+V+"`")}function H(V,U){let M=-1,R=-1;while(++M<Y.length)if(Y[M][0]===V){R=M;break}if(R===-1)Y.push([V,...U]);else if(U.length>0){let[z,...K]=U,Z=Y[R][1];if(U4(Z)&&U4(z))z=D5.default(!0,Z,z);Y[R]=[V,z,...K]}}}}var d6=new c6().freeze();function u6($,G){if(typeof G!=="function")throw TypeError("Cannot `"+$+"` without `parser`")}function l6($,G){if(typeof G!=="function")throw TypeError("Cannot `"+$+"` without `compiler`")}function r6($,G){if(G)throw Error("Cannot call `"+$+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function DY($){if(!U4($)||typeof $.type!=="string")throw TypeError("Expected node, got `"+$+"`")}function QY($,G,Y){if(!Y)throw Error("`"+$+"` finished async. Use `"+G+"` instead")}function M5($){return HM($)?$:new U5($)}function HM($){return Boolean($&&typeof $==="object"&&"message"in $&&"messages"in $)}function VM($){return typeof $==="string"||UM($)}function UM($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var RY=d6().use(e4).use(W5).freeze();var _j=RY();var KM=L.object({currentPage:L.number(),totalPages:L.number(),totalItems:L.number(),pageSize:L.number(),hasNextPage:L.boolean(),hasPrevPage:L.boolean()});function i6($,G,Y){let J=Math.max(1,Math.ceil($/Y));return{currentPage:G,totalPages:J,totalItems:$,pageSize:Y,hasNextPage:G<J,hasPrevPage:G>1}}var AY=L.object({id:L.string().optional(),limit:L.number().optional(),page:L.number().optional(),pageSize:L.number().optional(),baseUrl:L.string().optional()}).passthrough(),OY=L.object({entityType:L.string().optional(),query:AY.optional()}).passthrough();class FY{logger;constructor($){this.logger=$}buildDetailResult($,G){throw Error(`${this.id}: buildDetailResult() not implemented. Override this method or override fetch() to handle detail views.`)}parseQuery($){let G=OY.parse($);return{entityType:G.entityType??this.config.entityType,query:G.query??{}}}async fetch($,G,Y){let J=this.parseQuery($),X=Y.entityService;if(J.query.id){let W=await this.fetchDetail(J.query.id,X);return G.parse(this.buildDetailResult(W.item,W.navigation))}let q=await this.fetchList(J.query,X);return G.parse(this.buildListResult(q.items,q.pagination,J.query))}async fetchDetail($,G){let Y=await this.lookupEntity($,G),J=this.transformEntity(Y),X=null;if(this.config.enableNavigation)X=await this.resolveNavigation(Y,G);return{item:J,navigation:X}}async fetchList($,G,Y){let J=$.page??1,X=$.pageSize??$.limit??this.config.defaultLimit??100,q=(J-1)*X,W=$.page!==void 0,[H,V]=await Promise.all([G.listEntities({entityType:this.config.entityType,options:{limit:X,offset:q,sortFields:this.config.defaultSort,...Y}}),W?G.countEntities({entityType:this.config.entityType,options:Y?.filter?{filter:Y.filter}:void 0}):Promise.resolve(0)]),U=H.map((R)=>this.transformEntity(R)),M=W?i6(V,J,X):null;return{items:U,pagination:M}}async resolveNavigation($,G,Y){let J=this.config.navigationLimit??1000,X=await G.listEntities({entityType:this.config.entityType,options:{limit:J,sortFields:Y??this.config.defaultSort}}),q=X.findIndex((M)=>M.id===$.id),W=q>0?X[q-1]:void 0,H=q<X.length-1?X[q+1]:void 0,V=W?this.transformEntity(W):null,U=H?this.transformEntity(H):null;return{prev:V,next:U}}async lookupEntity($,G){if(this.config.lookupField==="id"){let X=await G.getEntity({entityType:this.config.entityType,id:$});if(!X)throw Error(`${this.config.entityType} not found: ${$}`);return X}let J=(await G.listEntities({entityType:this.config.entityType,options:{filter:{metadata:{slug:$}},limit:1}}))[0];if(!J)throw Error(`${this.config.entityType} not found with slug: ${$}`);return J}}export{AY as baseQuerySchema,OY as baseInputSchema,FY as BaseEntityDataSource};
|
|
89
89
|
|
|
90
|
-
//# debugId=
|
|
90
|
+
//# debugId=61EBAA95324051F864756E2164756E21
|
|
91
91
|
//# sourceMappingURL=services.js.map
|